@kya-os/contracts 1.6.17 → 1.6.19
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/cli.d.ts +56 -11
- package/dist/cli.js +38 -14
- package/dist/config/identity.d.ts +117 -0
- package/dist/config/identity.js +34 -2
- package/dist/config/tool-protection.d.ts +32 -7
- package/dist/consent/schemas.d.ts +90 -90
- package/dist/deploy/index.d.ts +27 -0
- package/dist/deploy/index.js +62 -0
- package/dist/deploy/schemas.d.ts +1001 -0
- package/dist/deploy/schemas.js +283 -0
- package/dist/deploy/types.d.ts +256 -0
- package/dist/deploy/types.js +10 -0
- package/dist/identity/index.d.ts +3 -0
- package/dist/identity/index.js +7 -0
- package/dist/index.js +1 -0
- package/dist/reputation/api.d.ts +2883 -0
- package/dist/reputation/api.js +417 -0
- package/dist/reputation/constants.d.ts +242 -0
- package/dist/reputation/constants.js +259 -0
- package/dist/reputation/credentials.d.ts +1493 -0
- package/dist/reputation/credentials.js +302 -0
- package/dist/reputation/index.d.ts +20 -0
- package/dist/reputation/index.js +40 -0
- package/dist/reputation/schemas.d.ts +1600 -0
- package/dist/reputation/schemas.js +499 -0
- package/package.json +9 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* One-Click Deployment Contracts
|
|
4
|
+
*
|
|
5
|
+
* Centralized type definitions and validation schemas for the
|
|
6
|
+
* AgentShield One-Click Deployment feature.
|
|
7
|
+
*
|
|
8
|
+
* @package @kya-os/contracts/deploy
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import {
|
|
13
|
+
* DeployToGitHubRequest,
|
|
14
|
+
* deployToGitHubRequestSchema,
|
|
15
|
+
* TemplateType,
|
|
16
|
+
* } from '@kya-os/contracts/deploy';
|
|
17
|
+
*
|
|
18
|
+
* // Validate request
|
|
19
|
+
* const result = deployToGitHubRequestSchema.safeParse(body);
|
|
20
|
+
* if (!result.success) {
|
|
21
|
+
* throw new Error('Invalid deploy request');
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* const validatedRequest: DeployToGitHubRequest = result.data;
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.deploymentProgressSchema = exports.deployStepSchema = exports.deployStepStatusSchema = exports.scaffolderResultSchema = exports.scaffolderOptionsSchema = exports.generatedFileSchema = exports.listDeployedRepositoriesResponseSchema = exports.deployedRepositorySchema = exports.deployToGitHubResultSchema = exports.deployErrorResponseSchema = exports.deployToGitHubResponseSchema = exports.deployToGitHubDataSchema = exports.deployedProjectSchema = exports.deployToGitHubRequestSchema = exports.repoNameSchema = exports.deployErrorCodeSchema = exports.gitHubDisconnectResponseSchema = exports.gitHubStatusResponseSchema = exports.gitHubCallbackResponseSchema = exports.gitHubCallbackQuerySchema = exports.gitHubInstallInitResponseSchema = exports.gitHubRepositorySchema = exports.gitHubInstallationSchema = exports.gitHubAccountTypeSchema = exports.deployPlatformSchema = exports.templateTypeSchema = void 0;
|
|
29
|
+
// Schema exports
|
|
30
|
+
var schemas_js_1 = require("./schemas.js");
|
|
31
|
+
// Template & Platform schemas
|
|
32
|
+
Object.defineProperty(exports, "templateTypeSchema", { enumerable: true, get: function () { return schemas_js_1.templateTypeSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "deployPlatformSchema", { enumerable: true, get: function () { return schemas_js_1.deployPlatformSchema; } });
|
|
34
|
+
// GitHub schemas
|
|
35
|
+
Object.defineProperty(exports, "gitHubAccountTypeSchema", { enumerable: true, get: function () { return schemas_js_1.gitHubAccountTypeSchema; } });
|
|
36
|
+
Object.defineProperty(exports, "gitHubInstallationSchema", { enumerable: true, get: function () { return schemas_js_1.gitHubInstallationSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "gitHubRepositorySchema", { enumerable: true, get: function () { return schemas_js_1.gitHubRepositorySchema; } });
|
|
38
|
+
Object.defineProperty(exports, "gitHubInstallInitResponseSchema", { enumerable: true, get: function () { return schemas_js_1.gitHubInstallInitResponseSchema; } });
|
|
39
|
+
Object.defineProperty(exports, "gitHubCallbackQuerySchema", { enumerable: true, get: function () { return schemas_js_1.gitHubCallbackQuerySchema; } });
|
|
40
|
+
Object.defineProperty(exports, "gitHubCallbackResponseSchema", { enumerable: true, get: function () { return schemas_js_1.gitHubCallbackResponseSchema; } });
|
|
41
|
+
Object.defineProperty(exports, "gitHubStatusResponseSchema", { enumerable: true, get: function () { return schemas_js_1.gitHubStatusResponseSchema; } });
|
|
42
|
+
Object.defineProperty(exports, "gitHubDisconnectResponseSchema", { enumerable: true, get: function () { return schemas_js_1.gitHubDisconnectResponseSchema; } });
|
|
43
|
+
// Deploy API schemas
|
|
44
|
+
Object.defineProperty(exports, "deployErrorCodeSchema", { enumerable: true, get: function () { return schemas_js_1.deployErrorCodeSchema; } });
|
|
45
|
+
Object.defineProperty(exports, "repoNameSchema", { enumerable: true, get: function () { return schemas_js_1.repoNameSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "deployToGitHubRequestSchema", { enumerable: true, get: function () { return schemas_js_1.deployToGitHubRequestSchema; } });
|
|
47
|
+
Object.defineProperty(exports, "deployedProjectSchema", { enumerable: true, get: function () { return schemas_js_1.deployedProjectSchema; } });
|
|
48
|
+
Object.defineProperty(exports, "deployToGitHubDataSchema", { enumerable: true, get: function () { return schemas_js_1.deployToGitHubDataSchema; } });
|
|
49
|
+
Object.defineProperty(exports, "deployToGitHubResponseSchema", { enumerable: true, get: function () { return schemas_js_1.deployToGitHubResponseSchema; } });
|
|
50
|
+
Object.defineProperty(exports, "deployErrorResponseSchema", { enumerable: true, get: function () { return schemas_js_1.deployErrorResponseSchema; } });
|
|
51
|
+
Object.defineProperty(exports, "deployToGitHubResultSchema", { enumerable: true, get: function () { return schemas_js_1.deployToGitHubResultSchema; } });
|
|
52
|
+
// Deployed repository schemas
|
|
53
|
+
Object.defineProperty(exports, "deployedRepositorySchema", { enumerable: true, get: function () { return schemas_js_1.deployedRepositorySchema; } });
|
|
54
|
+
Object.defineProperty(exports, "listDeployedRepositoriesResponseSchema", { enumerable: true, get: function () { return schemas_js_1.listDeployedRepositoriesResponseSchema; } });
|
|
55
|
+
// Scaffolder schemas
|
|
56
|
+
Object.defineProperty(exports, "generatedFileSchema", { enumerable: true, get: function () { return schemas_js_1.generatedFileSchema; } });
|
|
57
|
+
Object.defineProperty(exports, "scaffolderOptionsSchema", { enumerable: true, get: function () { return schemas_js_1.scaffolderOptionsSchema; } });
|
|
58
|
+
Object.defineProperty(exports, "scaffolderResultSchema", { enumerable: true, get: function () { return schemas_js_1.scaffolderResultSchema; } });
|
|
59
|
+
// Progress schemas
|
|
60
|
+
Object.defineProperty(exports, "deployStepStatusSchema", { enumerable: true, get: function () { return schemas_js_1.deployStepStatusSchema; } });
|
|
61
|
+
Object.defineProperty(exports, "deployStepSchema", { enumerable: true, get: function () { return schemas_js_1.deployStepSchema; } });
|
|
62
|
+
Object.defineProperty(exports, "deploymentProgressSchema", { enumerable: true, get: function () { return schemas_js_1.deploymentProgressSchema; } });
|