@hashgraphonline/standards-sdk 0.1.175 → 0.1.177
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 +23 -0
- package/dist/browser/services/registry-broker/client/base-client.d.ts +14 -7
- package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/skills.d.ts +11 -5
- package/dist/browser/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/schemas.d.ts +5562 -19962
- package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/types.d.ts +55 -12
- package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser/standards-sdk.browser.js +240 -87
- package/dist/browser/standards-sdk.browser.js.map +1 -1
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts +14 -7
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/skills.d.ts +11 -5
- package/dist/browser-root/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/schemas.d.ts +5562 -19962
- package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/types.d.ts +55 -12
- package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser-root/standards-sdk.root-browser.js +483 -116
- package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
- package/dist/cjs/services/registry-broker/client/base-client.d.ts +14 -7
- package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/skills.d.ts +11 -5
- package/dist/cjs/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/schemas.d.ts +4390 -18790
- package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/types.d.ts +55 -12
- package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +2 -2
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/es/services/registry-broker/client/base-client.d.ts +14 -7
- package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/skills.d.ts +11 -5
- package/dist/es/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/es/services/registry-broker/schemas.d.ts +4390 -18790
- package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/es/services/registry-broker/types.d.ts +55 -12
- package/dist/es/services/registry-broker/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es121.js +1 -1
- package/dist/es/standards-sdk.es142.js +2 -2
- package/dist/es/standards-sdk.es145.js +48 -10
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es148.js +1 -1
- package/dist/es/standards-sdk.es161.js +256 -91
- package/dist/es/standards-sdk.es161.js.map +1 -1
- package/dist/es/standards-sdk.es169.js +735 -81
- package/dist/es/standards-sdk.es169.js.map +1 -1
- package/dist/es/standards-sdk.es170.js +51 -68
- package/dist/es/standards-sdk.es170.js.map +1 -1
- package/dist/es/standards-sdk.es171.js +95 -47
- package/dist/es/standards-sdk.es171.js.map +1 -1
- package/dist/es/standards-sdk.es174.js +68 -568
- package/dist/es/standards-sdk.es174.js.map +1 -1
- package/dist/es/standards-sdk.es178.js +1 -1
- package/dist/es/standards-sdk.es181.js +1 -1
- package/dist/es/standards-sdk.es56.js +1 -1
- package/dist/es/standards-sdk.es59.js +1 -1
- package/dist/es/standards-sdk.es60.js +1 -1
- package/dist/es/standards-sdk.es65.js +1 -1
- package/dist/es/standards-sdk.es66.js +1 -1
- package/dist/es/standards-sdk.es69.js +1 -1
- package/package.json +2 -1
|
@@ -6164,13 +6164,6 @@ const metadataFacetSchema = recordType(
|
|
|
6164
6164
|
jsonValueSchema
|
|
6165
6165
|
])
|
|
6166
6166
|
).optional();
|
|
6167
|
-
const searchHitMetadataSchema = objectType({
|
|
6168
|
-
delegationRoles: jsonValueSchema.optional(),
|
|
6169
|
-
delegationTaskTags: jsonValueSchema.optional(),
|
|
6170
|
-
delegationProtocols: jsonValueSchema.optional(),
|
|
6171
|
-
delegationSummary: jsonValueSchema.optional(),
|
|
6172
|
-
delegationSignals: jsonValueSchema.optional()
|
|
6173
|
-
}).passthrough();
|
|
6174
6167
|
const searchHitSchema = objectType({
|
|
6175
6168
|
id: stringType(),
|
|
6176
6169
|
uaid: stringType(),
|
|
@@ -6179,7 +6172,7 @@ const searchHitSchema = objectType({
|
|
|
6179
6172
|
description: stringType().optional(),
|
|
6180
6173
|
capabilities: arrayType(capabilityValueSchema),
|
|
6181
6174
|
endpoints: unionType([recordType(jsonValueSchema), arrayType(stringType())]).optional(),
|
|
6182
|
-
metadata:
|
|
6175
|
+
metadata: recordType(jsonValueSchema).optional(),
|
|
6183
6176
|
metadataFacet: metadataFacetSchema,
|
|
6184
6177
|
profile: agentProfileSchema.optional(),
|
|
6185
6178
|
protocols: arrayType(stringType()).optional(),
|
|
@@ -6225,22 +6218,13 @@ const resolveResponseSchema = objectType({
|
|
|
6225
6218
|
});
|
|
6226
6219
|
const delegationPlanCandidateSchema = objectType({
|
|
6227
6220
|
uaid: stringType(),
|
|
6228
|
-
label: stringType(),
|
|
6229
|
-
registry: stringType().optional(),
|
|
6230
|
-
agent: searchHitSchema,
|
|
6231
6221
|
score: numberType(),
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
matchedTaskTags: arrayType(stringType()).optional(),
|
|
6239
|
-
reasons: arrayType(stringType()).optional(),
|
|
6240
|
-
suggestedMessage: stringType().optional(),
|
|
6241
|
-
trustScore: numberType().optional(),
|
|
6242
|
-
verified: booleanType().optional(),
|
|
6243
|
-
communicationSupported: booleanType().optional(),
|
|
6222
|
+
displayName: stringType().optional(),
|
|
6223
|
+
summary: stringType().optional(),
|
|
6224
|
+
protocols: arrayType(stringType()).optional(),
|
|
6225
|
+
surfaces: arrayType(stringType()).optional(),
|
|
6226
|
+
languages: arrayType(stringType()).optional(),
|
|
6227
|
+
artifacts: arrayType(stringType()).optional(),
|
|
6244
6228
|
availability: booleanType().optional(),
|
|
6245
6229
|
explanation: stringType().optional()
|
|
6246
6230
|
}).passthrough();
|
|
@@ -7158,14 +7142,6 @@ const skillRegistryListResponseSchema = objectType({
|
|
|
7158
7142
|
items: arrayType(skillRegistryPublishSummarySchema),
|
|
7159
7143
|
nextCursor: stringType().nullable()
|
|
7160
7144
|
}).passthrough();
|
|
7161
|
-
const skillSecurityBreakdownResponseSchema = objectType({
|
|
7162
|
-
name: stringType(),
|
|
7163
|
-
version: stringType(),
|
|
7164
|
-
jobId: stringType(),
|
|
7165
|
-
createdAt: stringType(),
|
|
7166
|
-
safety: skillSafetySummarySchema.nullable(),
|
|
7167
|
-
findings: arrayType(skillSafetyFindingSchema)
|
|
7168
|
-
}).passthrough();
|
|
7169
7145
|
enumType([
|
|
7170
7146
|
"stable",
|
|
7171
7147
|
"prerelease",
|
|
@@ -7219,52 +7195,17 @@ const skillDeprecationsResponseSchema = objectType({
|
|
|
7219
7195
|
name: stringType(),
|
|
7220
7196
|
items: arrayType(skillDeprecationRecordSchema)
|
|
7221
7197
|
}).passthrough();
|
|
7222
|
-
const
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
const skillPublisherTemplatePresetSchema = objectType({
|
|
7230
|
-
presetId: stringType(),
|
|
7231
|
-
label: stringType(),
|
|
7232
|
-
description: stringType(),
|
|
7233
|
-
recommendedFor: stringType(),
|
|
7234
|
-
command: stringType()
|
|
7235
|
-
}).passthrough();
|
|
7236
|
-
const skillPublisherMetadataSchema = objectType({
|
|
7237
|
-
cliPackageUrl: stringType(),
|
|
7238
|
-
cliCommand: stringType(),
|
|
7239
|
-
actionMarketplaceUrl: stringType(),
|
|
7240
|
-
repositoryUrl: stringType(),
|
|
7241
|
-
guideUrl: stringType().nullable().optional(),
|
|
7242
|
-
docsUrl: stringType().nullable().optional(),
|
|
7243
|
-
submitUrl: stringType().nullable().optional(),
|
|
7244
|
-
skillsIndexUrl: stringType().nullable().optional(),
|
|
7245
|
-
quickstartCommands: arrayType(skillPublisherQuickstartCommandSchema),
|
|
7246
|
-
templatePresets: arrayType(skillPublisherTemplatePresetSchema)
|
|
7247
|
-
}).passthrough();
|
|
7248
|
-
const skillTrustTierSchema = enumType([
|
|
7249
|
-
"unpublished",
|
|
7250
|
-
"published",
|
|
7251
|
-
"verified",
|
|
7252
|
-
"hardened"
|
|
7253
|
-
]);
|
|
7254
|
-
const skillStatusChecksSchema = objectType({
|
|
7255
|
-
repoCommitIntegrity: booleanType(),
|
|
7256
|
-
manifestIntegrity: booleanType(),
|
|
7257
|
-
domainProof: booleanType()
|
|
7258
|
-
}).passthrough();
|
|
7259
|
-
const skillStatusNextStepSchema = objectType({
|
|
7260
|
-
id: stringType(),
|
|
7261
|
-
label: stringType(),
|
|
7262
|
-
description: stringType(),
|
|
7263
|
-
href: stringType().nullable().optional(),
|
|
7264
|
-
command: stringType().nullable().optional()
|
|
7198
|
+
const skillSecurityBreakdownResponseSchema = objectType({
|
|
7199
|
+
jobId: stringType(),
|
|
7200
|
+
score: numberType().nullable().optional(),
|
|
7201
|
+
findings: arrayType(unknownType()).optional(),
|
|
7202
|
+
summary: unknownType().optional(),
|
|
7203
|
+
generatedAt: stringType().nullable().optional(),
|
|
7204
|
+
scannerVersion: stringType().nullable().optional()
|
|
7265
7205
|
}).passthrough();
|
|
7266
7206
|
const skillBadgeMetricSchema = enumType([
|
|
7267
7207
|
"version",
|
|
7208
|
+
"version_verification",
|
|
7268
7209
|
"status",
|
|
7269
7210
|
"verification",
|
|
7270
7211
|
"repo_commit",
|
|
@@ -7276,17 +7217,6 @@ const skillBadgeMetricSchema = enumType([
|
|
|
7276
7217
|
"upvotes",
|
|
7277
7218
|
"updated"
|
|
7278
7219
|
]);
|
|
7279
|
-
const skillStatusResponseSchema = objectType({
|
|
7280
|
-
name: stringType(),
|
|
7281
|
-
version: stringType().nullable(),
|
|
7282
|
-
published: booleanType(),
|
|
7283
|
-
verifiedDomain: booleanType(),
|
|
7284
|
-
trustTier: skillTrustTierSchema,
|
|
7285
|
-
badgeMetric: skillBadgeMetricSchema,
|
|
7286
|
-
checks: skillStatusChecksSchema,
|
|
7287
|
-
nextSteps: arrayType(skillStatusNextStepSchema),
|
|
7288
|
-
publisher: skillPublisherMetadataSchema.nullable().optional()
|
|
7289
|
-
}).passthrough();
|
|
7290
7220
|
const skillBadgeStyleSchema = enumType([
|
|
7291
7221
|
"flat",
|
|
7292
7222
|
"flat-square",
|
|
@@ -7401,7 +7331,34 @@ const skillRegistryConfigResponseSchema = objectType({
|
|
|
7401
7331
|
maxTotalSizeBytes: numberType().int().nullable().optional(),
|
|
7402
7332
|
allowedMimeTypes: arrayType(stringType()).nullable().optional(),
|
|
7403
7333
|
network: unionType([literalType("mainnet"), literalType("testnet")]).nullable().optional(),
|
|
7404
|
-
publisher:
|
|
7334
|
+
publisher: objectType({
|
|
7335
|
+
cliPackageUrl: stringType(),
|
|
7336
|
+
cliCommand: stringType(),
|
|
7337
|
+
actionMarketplaceUrl: stringType(),
|
|
7338
|
+
repositoryUrl: stringType(),
|
|
7339
|
+
guideUrl: stringType().nullable().optional(),
|
|
7340
|
+
docsUrl: stringType().nullable().optional(),
|
|
7341
|
+
submitUrl: stringType().nullable().optional(),
|
|
7342
|
+
skillsIndexUrl: stringType().nullable().optional(),
|
|
7343
|
+
quickstartCommands: arrayType(
|
|
7344
|
+
objectType({
|
|
7345
|
+
id: stringType(),
|
|
7346
|
+
label: stringType(),
|
|
7347
|
+
description: stringType(),
|
|
7348
|
+
command: stringType(),
|
|
7349
|
+
href: stringType().nullable().optional()
|
|
7350
|
+
}).passthrough()
|
|
7351
|
+
).optional().default([]),
|
|
7352
|
+
templatePresets: arrayType(
|
|
7353
|
+
objectType({
|
|
7354
|
+
presetId: stringType(),
|
|
7355
|
+
label: stringType(),
|
|
7356
|
+
description: stringType(),
|
|
7357
|
+
recommendedFor: stringType(),
|
|
7358
|
+
command: stringType()
|
|
7359
|
+
}).passthrough()
|
|
7360
|
+
).optional().default([])
|
|
7361
|
+
}).nullable().optional()
|
|
7405
7362
|
}).passthrough();
|
|
7406
7363
|
const skillRegistryOwnershipResponseSchema = objectType({
|
|
7407
7364
|
name: stringType(),
|
|
@@ -7413,6 +7370,202 @@ const skillRegistryVoteStatusResponseSchema = objectType({
|
|
|
7413
7370
|
upvotes: numberType().int(),
|
|
7414
7371
|
hasUpvoted: booleanType()
|
|
7415
7372
|
}).passthrough();
|
|
7373
|
+
const skillTrustTierSchema = enumType([
|
|
7374
|
+
"unclaimed",
|
|
7375
|
+
"validated",
|
|
7376
|
+
"published",
|
|
7377
|
+
"verified",
|
|
7378
|
+
"hardened"
|
|
7379
|
+
]);
|
|
7380
|
+
const skillStatusNextStepSchema = objectType({
|
|
7381
|
+
kind: enumType([
|
|
7382
|
+
"setup_validate",
|
|
7383
|
+
"publish_first_release",
|
|
7384
|
+
"verify_domain",
|
|
7385
|
+
"harden_workflow",
|
|
7386
|
+
"share_status"
|
|
7387
|
+
]),
|
|
7388
|
+
priority: numberType().int(),
|
|
7389
|
+
id: stringType(),
|
|
7390
|
+
label: stringType(),
|
|
7391
|
+
description: stringType(),
|
|
7392
|
+
url: stringType().nullable().optional(),
|
|
7393
|
+
href: stringType().nullable().optional(),
|
|
7394
|
+
command: stringType().nullable().optional()
|
|
7395
|
+
}).passthrough();
|
|
7396
|
+
const skillPreviewSuggestedNextStepSchema = objectType({
|
|
7397
|
+
id: stringType(),
|
|
7398
|
+
label: stringType(),
|
|
7399
|
+
description: stringType(),
|
|
7400
|
+
command: stringType().optional(),
|
|
7401
|
+
href: stringType().optional()
|
|
7402
|
+
}).passthrough();
|
|
7403
|
+
const skillPreviewReportSchema = objectType({
|
|
7404
|
+
schema_version: literalType("skill-preview.v1"),
|
|
7405
|
+
tool_version: stringType(),
|
|
7406
|
+
preview_id: stringType(),
|
|
7407
|
+
repo_url: stringType(),
|
|
7408
|
+
repo_owner: stringType(),
|
|
7409
|
+
repo_name: stringType(),
|
|
7410
|
+
default_branch: stringType(),
|
|
7411
|
+
commit_sha: stringType(),
|
|
7412
|
+
ref: stringType(),
|
|
7413
|
+
event_name: stringType(),
|
|
7414
|
+
workflow_run_url: stringType(),
|
|
7415
|
+
skill_dir: stringType(),
|
|
7416
|
+
name: stringType(),
|
|
7417
|
+
version: stringType(),
|
|
7418
|
+
validation_status: literalType("passed"),
|
|
7419
|
+
findings: arrayType(unknownType()),
|
|
7420
|
+
package_summary: recordType(stringType(), unknownType()),
|
|
7421
|
+
suggested_next_steps: arrayType(skillPreviewSuggestedNextStepSchema),
|
|
7422
|
+
generated_at: stringType()
|
|
7423
|
+
}).passthrough();
|
|
7424
|
+
const skillPreviewRecordSchema = objectType({
|
|
7425
|
+
id: stringType(),
|
|
7426
|
+
previewId: stringType(),
|
|
7427
|
+
source: literalType("github-oidc"),
|
|
7428
|
+
report: skillPreviewReportSchema,
|
|
7429
|
+
generatedAt: stringType(),
|
|
7430
|
+
expiresAt: stringType(),
|
|
7431
|
+
statusUrl: stringType(),
|
|
7432
|
+
authoritative: booleanType()
|
|
7433
|
+
}).passthrough();
|
|
7434
|
+
const skillPreviewLookupResponseSchema = objectType({
|
|
7435
|
+
found: booleanType(),
|
|
7436
|
+
authoritative: booleanType(),
|
|
7437
|
+
preview: skillPreviewRecordSchema.nullable(),
|
|
7438
|
+
statusUrl: stringType().nullable(),
|
|
7439
|
+
expiresAt: stringType().nullable()
|
|
7440
|
+
}).passthrough();
|
|
7441
|
+
const skillStatusPreviewMetadataSchema = objectType({
|
|
7442
|
+
previewId: stringType(),
|
|
7443
|
+
repoUrl: stringType(),
|
|
7444
|
+
repoOwner: stringType(),
|
|
7445
|
+
repoName: stringType(),
|
|
7446
|
+
commitSha: stringType(),
|
|
7447
|
+
ref: stringType(),
|
|
7448
|
+
eventName: stringType(),
|
|
7449
|
+
skillDir: stringType(),
|
|
7450
|
+
generatedAt: stringType(),
|
|
7451
|
+
expiresAt: stringType(),
|
|
7452
|
+
statusUrl: stringType()
|
|
7453
|
+
}).passthrough();
|
|
7454
|
+
const skillStatusChecksSchema = objectType({
|
|
7455
|
+
repoCommitIntegrity: booleanType(),
|
|
7456
|
+
manifestIntegrity: booleanType(),
|
|
7457
|
+
domainProof: booleanType()
|
|
7458
|
+
}).passthrough();
|
|
7459
|
+
const skillStatusVerificationSignalsSchema = objectType({
|
|
7460
|
+
publisherBound: booleanType(),
|
|
7461
|
+
domainProof: booleanType(),
|
|
7462
|
+
verifiedDomain: booleanType(),
|
|
7463
|
+
previewValidated: booleanType()
|
|
7464
|
+
}).passthrough();
|
|
7465
|
+
const skillStatusProvenanceSignalsSchema = objectType({
|
|
7466
|
+
repoCommitIntegrity: booleanType(),
|
|
7467
|
+
manifestIntegrity: booleanType(),
|
|
7468
|
+
canonicalRelease: booleanType(),
|
|
7469
|
+
previewAvailable: booleanType(),
|
|
7470
|
+
previewAuthoritative: booleanType()
|
|
7471
|
+
}).passthrough();
|
|
7472
|
+
const skillStatusResponseSchema = objectType({
|
|
7473
|
+
name: stringType(),
|
|
7474
|
+
version: stringType().nullable(),
|
|
7475
|
+
published: booleanType(),
|
|
7476
|
+
verifiedDomain: booleanType(),
|
|
7477
|
+
trustTier: skillTrustTierSchema,
|
|
7478
|
+
badgeMetric: skillBadgeMetricSchema,
|
|
7479
|
+
checks: skillStatusChecksSchema,
|
|
7480
|
+
nextSteps: arrayType(skillStatusNextStepSchema),
|
|
7481
|
+
verificationSignals: skillStatusVerificationSignalsSchema,
|
|
7482
|
+
provenanceSignals: skillStatusProvenanceSignalsSchema,
|
|
7483
|
+
publisher: skillRegistryConfigResponseSchema.shape.publisher,
|
|
7484
|
+
preview: skillStatusPreviewMetadataSchema.nullable().optional(),
|
|
7485
|
+
statusUrl: stringType().nullable().optional()
|
|
7486
|
+
}).passthrough();
|
|
7487
|
+
const skillQuotePreviewRangeSchema = objectType({
|
|
7488
|
+
min: numberType(),
|
|
7489
|
+
max: numberType()
|
|
7490
|
+
}).passthrough();
|
|
7491
|
+
const skillQuotePreviewResponseSchema = objectType({
|
|
7492
|
+
estimatedCredits: skillQuotePreviewRangeSchema,
|
|
7493
|
+
estimatedHbar: skillQuotePreviewRangeSchema,
|
|
7494
|
+
pricingVersion: stringType(),
|
|
7495
|
+
assumptions: arrayType(stringType()),
|
|
7496
|
+
purchaseUrl: stringType().nullable(),
|
|
7497
|
+
publishUrl: stringType().nullable(),
|
|
7498
|
+
verificationUrl: stringType().nullable()
|
|
7499
|
+
}).passthrough();
|
|
7500
|
+
const skillConversionSignalsResponseSchema = objectType({
|
|
7501
|
+
repoUrl: stringType(),
|
|
7502
|
+
skillDir: stringType(),
|
|
7503
|
+
trustTier: skillTrustTierSchema,
|
|
7504
|
+
actionInstalled: booleanType(),
|
|
7505
|
+
previewUploaded: booleanType(),
|
|
7506
|
+
previewId: stringType().nullable(),
|
|
7507
|
+
lastValidateSuccessAt: stringType().nullable(),
|
|
7508
|
+
stalePreviewAgeDays: numberType().nullable(),
|
|
7509
|
+
published: booleanType(),
|
|
7510
|
+
verified: booleanType(),
|
|
7511
|
+
publishReady: booleanType(),
|
|
7512
|
+
publishBlockedByMissingAuth: booleanType(),
|
|
7513
|
+
statusUrl: stringType().nullable(),
|
|
7514
|
+
purchaseUrl: stringType().nullable(),
|
|
7515
|
+
publishUrl: stringType().nullable(),
|
|
7516
|
+
verificationUrl: stringType().nullable(),
|
|
7517
|
+
nextSteps: arrayType(skillStatusNextStepSchema)
|
|
7518
|
+
}).passthrough();
|
|
7519
|
+
const skillInstallArtifactDescriptorSchema = objectType({
|
|
7520
|
+
url: stringType(),
|
|
7521
|
+
pointer: stringType().nullable(),
|
|
7522
|
+
sha256: stringType().nullable()
|
|
7523
|
+
}).passthrough();
|
|
7524
|
+
const skillInstallResolverDescriptorSchema = objectType({
|
|
7525
|
+
skillRef: stringType(),
|
|
7526
|
+
skillMdUrl: stringType(),
|
|
7527
|
+
manifestUrl: stringType()
|
|
7528
|
+
}).passthrough();
|
|
7529
|
+
const skillInstallBadgeDescriptorSchema = objectType({
|
|
7530
|
+
apiUrl: stringType(),
|
|
7531
|
+
imageUrl: stringType(),
|
|
7532
|
+
markdown: stringType(),
|
|
7533
|
+
html: stringType()
|
|
7534
|
+
}).passthrough();
|
|
7535
|
+
const skillInstallShareDescriptorSchema = objectType({
|
|
7536
|
+
canonicalUrl: stringType().nullable(),
|
|
7537
|
+
latestUrl: stringType().nullable(),
|
|
7538
|
+
markdownLink: stringType().nullable(),
|
|
7539
|
+
htmlLink: stringType().nullable(),
|
|
7540
|
+
badge: skillInstallBadgeDescriptorSchema.nullable()
|
|
7541
|
+
}).passthrough();
|
|
7542
|
+
const skillInstallSnippetSetSchema = objectType({
|
|
7543
|
+
cli: stringType(),
|
|
7544
|
+
claude: stringType(),
|
|
7545
|
+
cursor: stringType(),
|
|
7546
|
+
codex: stringType(),
|
|
7547
|
+
openclaw: stringType()
|
|
7548
|
+
}).passthrough();
|
|
7549
|
+
const skillInstallResponseSchema = objectType({
|
|
7550
|
+
name: stringType(),
|
|
7551
|
+
version: stringType(),
|
|
7552
|
+
skillRef: stringType(),
|
|
7553
|
+
network: unionType([literalType("mainnet"), literalType("testnet")]),
|
|
7554
|
+
detailUrl: stringType().nullable(),
|
|
7555
|
+
artifacts: objectType({
|
|
7556
|
+
skillMd: skillInstallArtifactDescriptorSchema,
|
|
7557
|
+
manifest: skillInstallArtifactDescriptorSchema
|
|
7558
|
+
}).passthrough(),
|
|
7559
|
+
resolvers: objectType({
|
|
7560
|
+
pinned: skillInstallResolverDescriptorSchema,
|
|
7561
|
+
latest: skillInstallResolverDescriptorSchema
|
|
7562
|
+
}).passthrough(),
|
|
7563
|
+
share: skillInstallShareDescriptorSchema,
|
|
7564
|
+
snippets: skillInstallSnippetSetSchema
|
|
7565
|
+
}).passthrough();
|
|
7566
|
+
const skillInstallCopyTelemetryResponseSchema = objectType({
|
|
7567
|
+
accepted: booleanType()
|
|
7568
|
+
}).passthrough();
|
|
7416
7569
|
const skillVerificationTierSchema = enumType(["basic", "express"]);
|
|
7417
7570
|
const skillVerificationStatusSchema = enumType([
|
|
7418
7571
|
"pending",
|
|
@@ -9977,28 +10130,6 @@ async function skillsConfig(client) {
|
|
|
9977
10130
|
"skill registry config response"
|
|
9978
10131
|
);
|
|
9979
10132
|
}
|
|
9980
|
-
async function getSkillStatus(client, params) {
|
|
9981
|
-
const normalizedName = params.name.trim();
|
|
9982
|
-
if (!normalizedName) {
|
|
9983
|
-
throw new Error("name is required");
|
|
9984
|
-
}
|
|
9985
|
-
const query = new URLSearchParams();
|
|
9986
|
-
query.set("name", normalizedName);
|
|
9987
|
-
if (params.version?.trim()) {
|
|
9988
|
-
query.set("version", params.version.trim());
|
|
9989
|
-
}
|
|
9990
|
-
const raw = await client.requestJson(
|
|
9991
|
-
`/skills/status?${query.toString()}`,
|
|
9992
|
-
{
|
|
9993
|
-
method: "GET"
|
|
9994
|
-
}
|
|
9995
|
-
);
|
|
9996
|
-
return client.parseWithSchema(
|
|
9997
|
-
raw,
|
|
9998
|
-
skillStatusResponseSchema,
|
|
9999
|
-
"skill status response"
|
|
10000
|
-
);
|
|
10001
|
-
}
|
|
10002
10133
|
async function listSkills(client, params = {}) {
|
|
10003
10134
|
const query = new URLSearchParams();
|
|
10004
10135
|
if (params.name) {
|
|
@@ -10168,6 +10299,18 @@ async function quoteSkillPublish(client, payload) {
|
|
|
10168
10299
|
"skill registry quote response"
|
|
10169
10300
|
);
|
|
10170
10301
|
}
|
|
10302
|
+
async function quoteSkillPublishPreview(client, payload) {
|
|
10303
|
+
const raw = await client.requestJson("/skills/quote-preview", {
|
|
10304
|
+
method: "POST",
|
|
10305
|
+
body: payload,
|
|
10306
|
+
headers: { "content-type": "application/json" }
|
|
10307
|
+
});
|
|
10308
|
+
return client.parseWithSchema(
|
|
10309
|
+
raw,
|
|
10310
|
+
skillQuotePreviewResponseSchema,
|
|
10311
|
+
"skill quote preview response"
|
|
10312
|
+
);
|
|
10313
|
+
}
|
|
10171
10314
|
async function publishSkill(client, payload) {
|
|
10172
10315
|
const raw = await client.requestJson("/skills/publish", {
|
|
10173
10316
|
method: "POST",
|
|
@@ -10332,6 +10475,192 @@ async function getSkillBadge(client, params) {
|
|
|
10332
10475
|
"skill badge response"
|
|
10333
10476
|
);
|
|
10334
10477
|
}
|
|
10478
|
+
async function getSkillStatus(client, params) {
|
|
10479
|
+
const normalizedName = params.name.trim();
|
|
10480
|
+
if (!normalizedName) {
|
|
10481
|
+
throw new Error("name is required");
|
|
10482
|
+
}
|
|
10483
|
+
const query = new URLSearchParams();
|
|
10484
|
+
query.set("name", normalizedName);
|
|
10485
|
+
if (params.version?.trim()) {
|
|
10486
|
+
query.set("version", params.version.trim());
|
|
10487
|
+
}
|
|
10488
|
+
const raw = await client.requestJson(
|
|
10489
|
+
`/skills/status?${query.toString()}`,
|
|
10490
|
+
{ method: "GET" }
|
|
10491
|
+
);
|
|
10492
|
+
return client.parseWithSchema(
|
|
10493
|
+
raw,
|
|
10494
|
+
skillStatusResponseSchema,
|
|
10495
|
+
"skill status response"
|
|
10496
|
+
);
|
|
10497
|
+
}
|
|
10498
|
+
async function getSkillStatusByRepo(client, params) {
|
|
10499
|
+
const repo = params.repo.trim();
|
|
10500
|
+
const skillDir = params.skillDir.trim();
|
|
10501
|
+
if (!repo) {
|
|
10502
|
+
throw new Error("repo is required");
|
|
10503
|
+
}
|
|
10504
|
+
if (!skillDir) {
|
|
10505
|
+
throw new Error("skillDir is required");
|
|
10506
|
+
}
|
|
10507
|
+
const query = new URLSearchParams();
|
|
10508
|
+
query.set("repo", repo);
|
|
10509
|
+
query.set("skillDir", skillDir);
|
|
10510
|
+
if (params.ref?.trim()) {
|
|
10511
|
+
query.set("ref", params.ref.trim());
|
|
10512
|
+
}
|
|
10513
|
+
const raw = await client.requestJson(
|
|
10514
|
+
`/skills/status/by-repo?${query.toString()}`,
|
|
10515
|
+
{ method: "GET" }
|
|
10516
|
+
);
|
|
10517
|
+
return client.parseWithSchema(
|
|
10518
|
+
raw,
|
|
10519
|
+
skillStatusResponseSchema,
|
|
10520
|
+
"skill status response"
|
|
10521
|
+
);
|
|
10522
|
+
}
|
|
10523
|
+
async function getSkillConversionSignalsByRepo(client, params) {
|
|
10524
|
+
const repo = params.repo.trim();
|
|
10525
|
+
const skillDir = params.skillDir.trim();
|
|
10526
|
+
if (!repo) {
|
|
10527
|
+
throw new Error("repo is required");
|
|
10528
|
+
}
|
|
10529
|
+
if (!skillDir) {
|
|
10530
|
+
throw new Error("skillDir is required");
|
|
10531
|
+
}
|
|
10532
|
+
const query = new URLSearchParams();
|
|
10533
|
+
query.set("repo", repo);
|
|
10534
|
+
query.set("skillDir", skillDir);
|
|
10535
|
+
if (params.ref?.trim()) {
|
|
10536
|
+
query.set("ref", params.ref.trim());
|
|
10537
|
+
}
|
|
10538
|
+
const raw = await client.requestJson(
|
|
10539
|
+
`/skills/conversion-signals/by-repo?${query.toString()}`,
|
|
10540
|
+
{ method: "GET" }
|
|
10541
|
+
);
|
|
10542
|
+
return client.parseWithSchema(
|
|
10543
|
+
raw,
|
|
10544
|
+
skillConversionSignalsResponseSchema,
|
|
10545
|
+
"skill conversion signals response"
|
|
10546
|
+
);
|
|
10547
|
+
}
|
|
10548
|
+
async function uploadSkillPreviewFromGithubOidc(client, payload) {
|
|
10549
|
+
const token = payload.token.trim();
|
|
10550
|
+
if (!token) {
|
|
10551
|
+
throw new Error("token is required");
|
|
10552
|
+
}
|
|
10553
|
+
const raw = await client.requestJson(
|
|
10554
|
+
"/skills/preview/github-oidc",
|
|
10555
|
+
{
|
|
10556
|
+
method: "POST",
|
|
10557
|
+
body: payload.report,
|
|
10558
|
+
headers: {
|
|
10559
|
+
"content-type": "application/json",
|
|
10560
|
+
authorization: `Bearer ${token}`
|
|
10561
|
+
}
|
|
10562
|
+
}
|
|
10563
|
+
);
|
|
10564
|
+
return client.parseWithSchema(
|
|
10565
|
+
raw,
|
|
10566
|
+
skillPreviewRecordSchema,
|
|
10567
|
+
"skill preview record response"
|
|
10568
|
+
);
|
|
10569
|
+
}
|
|
10570
|
+
async function getSkillPreview(client, params) {
|
|
10571
|
+
const normalizedName = params.name.trim();
|
|
10572
|
+
if (!normalizedName) {
|
|
10573
|
+
throw new Error("name is required");
|
|
10574
|
+
}
|
|
10575
|
+
const query = new URLSearchParams();
|
|
10576
|
+
query.set("name", normalizedName);
|
|
10577
|
+
if (params.version?.trim()) {
|
|
10578
|
+
query.set("version", params.version.trim());
|
|
10579
|
+
}
|
|
10580
|
+
const raw = await client.requestJson(
|
|
10581
|
+
`/skills/preview?${query.toString()}`,
|
|
10582
|
+
{ method: "GET" }
|
|
10583
|
+
);
|
|
10584
|
+
return client.parseWithSchema(
|
|
10585
|
+
raw,
|
|
10586
|
+
skillPreviewLookupResponseSchema,
|
|
10587
|
+
"skill preview response"
|
|
10588
|
+
);
|
|
10589
|
+
}
|
|
10590
|
+
async function getSkillPreviewByRepo(client, params) {
|
|
10591
|
+
const repo = params.repo.trim();
|
|
10592
|
+
const skillDir = params.skillDir.trim();
|
|
10593
|
+
if (!repo) {
|
|
10594
|
+
throw new Error("repo is required");
|
|
10595
|
+
}
|
|
10596
|
+
if (!skillDir) {
|
|
10597
|
+
throw new Error("skillDir is required");
|
|
10598
|
+
}
|
|
10599
|
+
const query = new URLSearchParams();
|
|
10600
|
+
query.set("repo", repo);
|
|
10601
|
+
query.set("skillDir", skillDir);
|
|
10602
|
+
if (params.ref?.trim()) {
|
|
10603
|
+
query.set("ref", params.ref.trim());
|
|
10604
|
+
}
|
|
10605
|
+
const raw = await client.requestJson(
|
|
10606
|
+
`/skills/preview/by-repo?${query.toString()}`,
|
|
10607
|
+
{ method: "GET" }
|
|
10608
|
+
);
|
|
10609
|
+
return client.parseWithSchema(
|
|
10610
|
+
raw,
|
|
10611
|
+
skillPreviewLookupResponseSchema,
|
|
10612
|
+
"skill preview by repo response"
|
|
10613
|
+
);
|
|
10614
|
+
}
|
|
10615
|
+
async function getSkillPreviewById(client, previewId) {
|
|
10616
|
+
const normalizedPreviewId = previewId.trim();
|
|
10617
|
+
if (!normalizedPreviewId) {
|
|
10618
|
+
throw new Error("previewId is required");
|
|
10619
|
+
}
|
|
10620
|
+
const raw = await client.requestJson(
|
|
10621
|
+
`/skills/preview/${encodeURIComponent(normalizedPreviewId)}`,
|
|
10622
|
+
{ method: "GET" }
|
|
10623
|
+
);
|
|
10624
|
+
return client.parseWithSchema(
|
|
10625
|
+
raw,
|
|
10626
|
+
skillPreviewLookupResponseSchema,
|
|
10627
|
+
"skill preview by id response"
|
|
10628
|
+
);
|
|
10629
|
+
}
|
|
10630
|
+
async function getSkillInstall(client, skillRef) {
|
|
10631
|
+
const normalizedSkillRef = skillRef.trim();
|
|
10632
|
+
if (!normalizedSkillRef) {
|
|
10633
|
+
throw new Error("skillRef is required");
|
|
10634
|
+
}
|
|
10635
|
+
const raw = await client.requestJson(
|
|
10636
|
+
`/skills/${encodeURIComponent(normalizedSkillRef)}/install`,
|
|
10637
|
+
{ method: "GET" }
|
|
10638
|
+
);
|
|
10639
|
+
return client.parseWithSchema(
|
|
10640
|
+
raw,
|
|
10641
|
+
skillInstallResponseSchema,
|
|
10642
|
+
"skill install response"
|
|
10643
|
+
);
|
|
10644
|
+
}
|
|
10645
|
+
async function recordSkillInstallCopy(client, skillRef, payload = {}) {
|
|
10646
|
+
const normalizedSkillRef = skillRef.trim();
|
|
10647
|
+
if (!normalizedSkillRef) {
|
|
10648
|
+
throw new Error("skillRef is required");
|
|
10649
|
+
}
|
|
10650
|
+
const raw = await client.requestJson(
|
|
10651
|
+
`/skills/${encodeURIComponent(normalizedSkillRef)}/telemetry/install-copy`,
|
|
10652
|
+
{
|
|
10653
|
+
method: "POST",
|
|
10654
|
+
body: payload,
|
|
10655
|
+
headers: { "content-type": "application/json" }
|
|
10656
|
+
}
|
|
10657
|
+
);
|
|
10658
|
+
return client.parseWithSchema(
|
|
10659
|
+
raw,
|
|
10660
|
+
skillInstallCopyTelemetryResponseSchema,
|
|
10661
|
+
"skill install copy telemetry response"
|
|
10662
|
+
);
|
|
10663
|
+
}
|
|
10335
10664
|
async function listSkillTags(client) {
|
|
10336
10665
|
const raw = await client.requestJson("/skills/tags", {
|
|
10337
10666
|
method: "GET"
|
|
@@ -10849,15 +11178,9 @@ class RegistryBrokerClient {
|
|
|
10849
11178
|
async skillsConfig() {
|
|
10850
11179
|
return skillsConfig(this);
|
|
10851
11180
|
}
|
|
10852
|
-
async getSkillStatus(params) {
|
|
10853
|
-
return getSkillStatus(this, params);
|
|
10854
|
-
}
|
|
10855
11181
|
async listSkills(options) {
|
|
10856
11182
|
return listSkills(this, options);
|
|
10857
11183
|
}
|
|
10858
|
-
async getSkillSecurityBreakdown(params) {
|
|
10859
|
-
return getSkillSecurityBreakdown(this, params);
|
|
10860
|
-
}
|
|
10861
11184
|
async getSkillsCatalog(options) {
|
|
10862
11185
|
return getSkillsCatalog(this, options);
|
|
10863
11186
|
}
|
|
@@ -10873,6 +11196,9 @@ class RegistryBrokerClient {
|
|
|
10873
11196
|
async quoteSkillPublish(payload) {
|
|
10874
11197
|
return quoteSkillPublish(this, payload);
|
|
10875
11198
|
}
|
|
11199
|
+
async quoteSkillPublishPreview(payload) {
|
|
11200
|
+
return quoteSkillPublishPreview(this, payload);
|
|
11201
|
+
}
|
|
10876
11202
|
async publishSkill(payload) {
|
|
10877
11203
|
return publishSkill(this, payload);
|
|
10878
11204
|
}
|
|
@@ -10897,6 +11223,36 @@ class RegistryBrokerClient {
|
|
|
10897
11223
|
async getSkillBadge(params) {
|
|
10898
11224
|
return getSkillBadge(this, params);
|
|
10899
11225
|
}
|
|
11226
|
+
async getSkillStatus(params) {
|
|
11227
|
+
return getSkillStatus(this, params);
|
|
11228
|
+
}
|
|
11229
|
+
async getSkillSecurityBreakdown(params) {
|
|
11230
|
+
return getSkillSecurityBreakdown(this, params);
|
|
11231
|
+
}
|
|
11232
|
+
async getSkillStatusByRepo(params) {
|
|
11233
|
+
return getSkillStatusByRepo(this, params);
|
|
11234
|
+
}
|
|
11235
|
+
async getSkillConversionSignalsByRepo(params) {
|
|
11236
|
+
return getSkillConversionSignalsByRepo(this, params);
|
|
11237
|
+
}
|
|
11238
|
+
async uploadSkillPreviewFromGithubOidc(payload) {
|
|
11239
|
+
return uploadSkillPreviewFromGithubOidc(this, payload);
|
|
11240
|
+
}
|
|
11241
|
+
async getSkillPreview(params) {
|
|
11242
|
+
return getSkillPreview(this, params);
|
|
11243
|
+
}
|
|
11244
|
+
async getSkillPreviewByRepo(params) {
|
|
11245
|
+
return getSkillPreviewByRepo(this, params);
|
|
11246
|
+
}
|
|
11247
|
+
async getSkillPreviewById(previewId) {
|
|
11248
|
+
return getSkillPreviewById(this, previewId);
|
|
11249
|
+
}
|
|
11250
|
+
async getSkillInstall(skillRef) {
|
|
11251
|
+
return getSkillInstall(this, skillRef);
|
|
11252
|
+
}
|
|
11253
|
+
async recordSkillInstallCopy(skillRef, payload) {
|
|
11254
|
+
return recordSkillInstallCopy(this, skillRef, payload);
|
|
11255
|
+
}
|
|
10900
11256
|
async listSkillTags() {
|
|
10901
11257
|
return listSkillTags(this);
|
|
10902
11258
|
}
|
|
@@ -11278,9 +11634,20 @@ class RegistryBrokerClient {
|
|
|
11278
11634
|
}
|
|
11279
11635
|
return nodeCrypto;
|
|
11280
11636
|
}
|
|
11637
|
+
getSecureRandomBytes(size2, feature) {
|
|
11638
|
+
const webCrypto = globalThis.crypto;
|
|
11639
|
+
if (webCrypto && typeof webCrypto.getRandomValues === "function") {
|
|
11640
|
+
const bytes = new Uint8Array(size2);
|
|
11641
|
+
webCrypto.getRandomValues(bytes);
|
|
11642
|
+
return bytes;
|
|
11643
|
+
}
|
|
11644
|
+
return this.getNodeCrypto(feature).randomBytes(size2);
|
|
11645
|
+
}
|
|
11281
11646
|
createEphemeralKeyPair() {
|
|
11282
|
-
const
|
|
11283
|
-
|
|
11647
|
+
const privateKeyBytes = this.getSecureRandomBytes(
|
|
11648
|
+
32,
|
|
11649
|
+
"generateEphemeralKeyPair"
|
|
11650
|
+
);
|
|
11284
11651
|
const publicKey = secp256k1$2.getPublicKey(privateKeyBytes, true);
|
|
11285
11652
|
return {
|
|
11286
11653
|
privateKey: Buffer$1.from(privateKeyBytes).toString("hex"),
|