@kya-os/cli 2.0.2 → 2.1.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.
Files changed (73) hide show
  1. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.d.ts +1 -1
  2. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.js +1 -1
  3. package/node_modules/@kya-os/contracts/dist/agent-deployment.d.ts +10 -10
  4. package/node_modules/@kya-os/contracts/dist/agent-deployment.js +2 -2
  5. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.d.ts +116 -11
  6. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.js +38 -40
  7. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-schemas.d.ts +3 -3
  8. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-schemas.js +3 -3
  9. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-types.d.ts +4 -4
  10. package/node_modules/@kya-os/contracts/dist/checkpoint-api/admin-types.js +10 -0
  11. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/endpoints.d.ts +10 -10
  12. package/node_modules/@kya-os/contracts/dist/checkpoint-api/endpoints.js +49 -0
  13. package/node_modules/@kya-os/contracts/dist/checkpoint-api/index.d.ts +15 -0
  14. package/node_modules/@kya-os/contracts/dist/checkpoint-api/index.js +46 -0
  15. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/schemas.d.ts +10 -10
  16. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/schemas.js +24 -24
  17. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/types.d.ts +27 -27
  18. package/node_modules/@kya-os/contracts/dist/checkpoint-api/types.js +26 -0
  19. package/node_modules/@kya-os/contracts/dist/compute.d.ts +5 -5
  20. package/node_modules/@kya-os/contracts/dist/compute.js +5 -5
  21. package/node_modules/@kya-os/contracts/dist/config/builder.js +2 -0
  22. package/node_modules/@kya-os/contracts/dist/config/delegation.d.ts +1 -1
  23. package/node_modules/@kya-os/contracts/dist/config/identity.d.ts +4 -4
  24. package/node_modules/@kya-os/contracts/dist/config/index.d.ts +1 -1
  25. package/node_modules/@kya-os/contracts/dist/config/proofing.d.ts +3 -2
  26. package/node_modules/@kya-os/contracts/dist/config/tool-protection.d.ts +34 -26
  27. package/node_modules/@kya-os/contracts/dist/consent/schemas.d.ts +5 -5
  28. package/node_modules/@kya-os/contracts/dist/consent/schemas.js +1 -1
  29. package/node_modules/@kya-os/contracts/dist/consent/types.d.ts +2 -2
  30. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.d.ts +3 -1
  31. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.js +3 -1
  32. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.d.ts +479 -197
  33. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.js +10 -3
  34. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.d.ts +19 -9
  35. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.js +2 -2
  36. package/node_modules/@kya-os/contracts/dist/delegation/schemas.d.ts +19 -19
  37. package/node_modules/@kya-os/contracts/dist/delegation/schemas.js +4 -4
  38. package/node_modules/@kya-os/contracts/dist/deploy/index.d.ts +1 -1
  39. package/node_modules/@kya-os/contracts/dist/deploy/index.js +1 -1
  40. package/node_modules/@kya-os/contracts/dist/deploy/schemas.d.ts +7 -7
  41. package/node_modules/@kya-os/contracts/dist/deploy/schemas.js +3 -3
  42. package/node_modules/@kya-os/contracts/dist/deploy/types.d.ts +8 -8
  43. package/node_modules/@kya-os/contracts/dist/deploy/types.js +1 -1
  44. package/node_modules/@kya-os/contracts/dist/handshake/schemas.d.ts +1 -1
  45. package/node_modules/@kya-os/contracts/dist/handshake/schemas.js +1 -1
  46. package/node_modules/@kya-os/contracts/dist/identity/schemas.d.ts +1 -1
  47. package/node_modules/@kya-os/contracts/dist/identity/schemas.js +1 -1
  48. package/node_modules/@kya-os/contracts/dist/index.js +1 -1
  49. package/node_modules/@kya-os/contracts/dist/molti/schemas.d.ts +6 -6
  50. package/node_modules/@kya-os/contracts/dist/molti/schemas.js +2 -2
  51. package/node_modules/@kya-os/contracts/dist/molti/types.d.ts +9 -9
  52. package/node_modules/@kya-os/contracts/dist/molti/types.js +1 -1
  53. package/node_modules/@kya-os/contracts/dist/policy/schemas.d.ts +1 -1
  54. package/node_modules/@kya-os/contracts/dist/policy/schemas.js +1 -1
  55. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.d.ts +3 -3
  56. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.js +3 -3
  57. package/node_modules/@kya-os/contracts/dist/skills/schemas.d.ts +1 -1
  58. package/node_modules/@kya-os/contracts/dist/vault/schemas.d.ts +1 -1
  59. package/node_modules/@kya-os/contracts/dist/vault/schemas.js +1 -1
  60. package/node_modules/@kya-os/contracts/dist/well-known/index.d.ts +4 -4
  61. package/node_modules/@kya-os/contracts/dist/workbench/execution.d.ts +13 -0
  62. package/node_modules/@kya-os/contracts/dist/workbench/execution.js +12 -1
  63. package/node_modules/@kya-os/contracts/dist/workbench/governed.d.ts +52 -0
  64. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.d.ts +11 -0
  65. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.d.ts +29 -0
  66. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.d.ts +77 -0
  67. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.js +7 -0
  68. package/node_modules/@kya-os/contracts/dist/workbench/review.d.ts +9 -0
  69. package/node_modules/@kya-os/contracts/package.json +5 -1
  70. package/package.json +6 -6
  71. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.js +0 -10
  72. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.js +0 -49
  73. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.js +0 -26
@@ -20,7 +20,7 @@
20
20
  * Safe for millions of agents.
21
21
  *
22
22
  * **Note**: Uses Node.js `crypto.createHash` intentionally. This function runs
23
- * server-side only (AgentShield + deploy services), never in browser or edge runtimes.
23
+ * server-side only (Checkpoint + deploy services), never in browser or edge runtimes.
24
24
  * If edge support is needed in the future, swap to Web Crypto `subtle.digest`.
25
25
  *
26
26
  * @param did - The agent DID string (must start with "did:")
@@ -26,7 +26,7 @@ const crypto_1 = require("crypto");
26
26
  * Safe for millions of agents.
27
27
  *
28
28
  * **Note**: Uses Node.js `crypto.createHash` intentionally. This function runs
29
- * server-side only (AgentShield + deploy services), never in browser or edge runtimes.
29
+ * server-side only (Checkpoint + deploy services), never in browser or edge runtimes.
30
30
  * If edge support is needed in the future, swap to Web Crypto `subtle.digest`.
31
31
  *
32
32
  * @param did - The agent DID string (must start with "did:")
@@ -75,9 +75,9 @@ export declare const ManagedDeployResultSchema: z.ZodObject<{
75
75
  agentUrl: z.ZodString;
76
76
  /** Current agent status */
77
77
  status: z.ZodEnum<["provisioning", "starting", "running", "stopping", "stopped", "error", "revoked"]>;
78
- /** AgentShield project ID */
78
+ /** Checkpoint project ID */
79
79
  projectId: z.ZodString;
80
- /** AgentShield project friendly ID */
80
+ /** Checkpoint project friendly ID */
81
81
  friendlyId: z.ZodString;
82
82
  }, "strip", z.ZodTypeAny, {
83
83
  status: "provisioning" | "starting" | "running" | "stopping" | "stopped" | "error" | "revoked";
@@ -241,9 +241,9 @@ export declare const ManagedDeploySuccessResponseSchema: z.ZodObject<{
241
241
  agentUrl: z.ZodString;
242
242
  /** Current agent status */
243
243
  status: z.ZodEnum<["provisioning", "starting", "running", "stopping", "stopped", "error", "revoked"]>;
244
- /** AgentShield project ID */
244
+ /** Checkpoint project ID */
245
245
  projectId: z.ZodString;
246
- /** AgentShield project friendly ID */
246
+ /** Checkpoint project friendly ID */
247
247
  friendlyId: z.ZodString;
248
248
  }, "strip", z.ZodTypeAny, {
249
249
  status: "provisioning" | "starting" | "running" | "stopping" | "stopped" | "error" | "revoked";
@@ -289,9 +289,9 @@ export declare const ManagedDeployResponseSchema: z.ZodDiscriminatedUnion<"succe
289
289
  agentUrl: z.ZodString;
290
290
  /** Current agent status */
291
291
  status: z.ZodEnum<["provisioning", "starting", "running", "stopping", "stopped", "error", "revoked"]>;
292
- /** AgentShield project ID */
292
+ /** Checkpoint project ID */
293
293
  projectId: z.ZodString;
294
- /** AgentShield project friendly ID */
294
+ /** Checkpoint project friendly ID */
295
295
  friendlyId: z.ZodString;
296
296
  }, "strip", z.ZodTypeAny, {
297
297
  status: "provisioning" | "starting" | "running" | "stopping" | "stopped" | "error" | "revoked";
@@ -452,9 +452,9 @@ export declare const ManagedSSECompleteEventSchema: z.ZodObject<{
452
452
  agentUrl: z.ZodString;
453
453
  /** Current agent status */
454
454
  status: z.ZodEnum<["provisioning", "starting", "running", "stopping", "stopped", "error", "revoked"]>;
455
- /** AgentShield project ID */
455
+ /** Checkpoint project ID */
456
456
  projectId: z.ZodString;
457
- /** AgentShield project friendly ID */
457
+ /** Checkpoint project friendly ID */
458
458
  friendlyId: z.ZodString;
459
459
  }, "strip", z.ZodTypeAny, {
460
460
  status: "provisioning" | "starting" | "running" | "stopping" | "stopped" | "error" | "revoked";
@@ -635,9 +635,9 @@ export declare const ManagedSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
635
635
  agentUrl: z.ZodString;
636
636
  /** Current agent status */
637
637
  status: z.ZodEnum<["provisioning", "starting", "running", "stopping", "stopped", "error", "revoked"]>;
638
- /** AgentShield project ID */
638
+ /** Checkpoint project ID */
639
639
  projectId: z.ZodString;
640
- /** AgentShield project friendly ID */
640
+ /** Checkpoint project friendly ID */
641
641
  friendlyId: z.ZodString;
642
642
  }, "strip", z.ZodTypeAny, {
643
643
  status: "provisioning" | "starting" | "running" | "stopping" | "stopped" | "error" | "revoked";
@@ -123,9 +123,9 @@ exports.ManagedDeployResultSchema = zod_1.z.object({
123
123
  agentUrl: zod_1.z.string().url(),
124
124
  /** Current agent status */
125
125
  status: exports.AgentStatusSchema,
126
- /** AgentShield project ID */
126
+ /** Checkpoint project ID */
127
127
  projectId: zod_1.z.string().uuid(),
128
- /** AgentShield project friendly ID */
128
+ /** Checkpoint project friendly ID */
129
129
  friendlyId: zod_1.z.string().min(1),
130
130
  });
131
131
  // ============================================================================
@@ -1,15 +1,120 @@
1
1
  /**
2
- * AgentShield/Bouncer API Contracts
2
+ * The former name of `@kya-os/contracts/checkpoint-api`.
3
3
  *
4
- * Centralized type definitions, validation schemas, and endpoint constants
5
- * for the AgentShield dashboard API integration.
4
+ * Imports from `@kya-os/contracts/agentshield-api`, and the AgentShield-named
5
+ * exports below, keep working so existing code upgrades without changes. Each
6
+ * former name is the Checkpoint export itself, not a copy.
6
7
  *
7
- * @package @kya-os/contracts/agentshield-api
8
+ * @deprecated Import from `@kya-os/contracts/checkpoint-api` and use the
9
+ * Checkpoint names.
10
+ * @module @kya-os/contracts/agentshield-api
8
11
  */
9
- export type { AgentShieldAPIResponse, AgentShieldAPIErrorResponse, ProofSubmissionRequest, ProofSubmissionResponse, ToolCallContext, ConsentEventContext, BouncerOutcome, VerifyDelegationRequest, VerifyDelegationResponse, VerifyDelegationAPIResponse, DelegationCredential, AgentShieldToolProtection, ToolProtectionConfigResponse, ToolProtectionConfigAPIResponse, CreateDelegationRequest, CreateDelegationResponse, CreateDelegationAPIResponse, RevokeDelegationRequest, RevokeDelegationResponse, RevokeDelegationAPIResponse, SessionClientInfo, SessionClientIdentity, RegisterSessionRequest, RegisterSessionResponse, RegisterSessionAPIResponse, } from "./types.js";
10
- export { AgentShieldAPIError } from "./types.js";
11
- export type { AgentShieldAPIHeaders } from "./endpoints.js";
12
- export type { ClearCacheRequest, ClearCacheResponse } from "./admin-types.js";
13
- export { agentShieldAPIErrorSchema, agentShieldAPIResponseSchema, proofSubmissionRequestSchema, proofSubmissionResponseSchema, delegationCredentialSchema, verifyDelegationRequestSchema, verifyDelegationResponseSchema, verifyDelegationAPIResponseSchema, agentShieldToolProtectionSchema, toolProtectionConfigResponseSchema, toolProtectionConfigAPIResponseSchema, createDelegationRequestSchema, createDelegationResponseSchema, createDelegationAPIResponseSchema, revokeDelegationRequestSchema, revokeDelegationResponseSchema, revokeDelegationAPIResponseSchema, sessionClientInfoSchema, sessionClientIdentitySchema, registerSessionRequestSchema, registerSessionResponseSchema, registerSessionAPIResponseSchema, } from "./schemas.js";
14
- export { clearCacheRequestSchema, clearCacheResponseSchema, } from "./admin-schemas.js";
15
- export { AGENTSHIELD_API_BASE, AGENTSHIELD_ENDPOINTS, AGENTSHIELD_METHODS, } from "./endpoints.js";
12
+ import { CheckpointAPIError } from "../checkpoint-api/index.js";
13
+ import type { CheckpointAPIErrorResponse, CheckpointAPIHeaders, CheckpointAPIResponse, CheckpointToolProtection } from "../checkpoint-api/index.js";
14
+ export * from "../checkpoint-api/index.js";
15
+ /** @deprecated Use `CHECKPOINT_API_BASE`. */
16
+ export declare const AGENTSHIELD_API_BASE: "/api/v1/bouncer";
17
+ /** @deprecated Use `CHECKPOINT_ENDPOINTS`. */
18
+ export declare const AGENTSHIELD_ENDPOINTS: {
19
+ readonly PROOFS: "/api/v1/bouncer/proofs";
20
+ readonly SESSIONS: "/api/v1/bouncer/sessions";
21
+ readonly DELEGATIONS_VERIFY: "/api/v1/bouncer/delegations/verify";
22
+ readonly DELEGATIONS_GET: (id: string) => `/api/v1/bouncer/delegations/${string}`;
23
+ readonly DELEGATIONS_CREATE: "/api/v1/bouncer/delegations";
24
+ readonly DELEGATIONS_REVOKE: (id: string) => `/api/v1/bouncer/delegations/${string}/revoke`;
25
+ readonly CONFIG: (projectId: string) => `/api/v1/bouncer/projects/${string}/config`;
26
+ };
27
+ /** @deprecated Use `CHECKPOINT_METHODS`. */
28
+ export declare const AGENTSHIELD_METHODS: {
29
+ readonly PROOFS: "POST";
30
+ readonly SESSIONS: "POST";
31
+ readonly DELEGATIONS_VERIFY: "POST";
32
+ readonly DELEGATIONS_GET: "GET";
33
+ readonly DELEGATIONS_CREATE: "POST";
34
+ readonly DELEGATIONS_REVOKE: "POST";
35
+ readonly CONFIG: "GET";
36
+ };
37
+ /** @deprecated Use `CheckpointAPIError`. */
38
+ export declare const AgentShieldAPIError: typeof CheckpointAPIError;
39
+ /** @deprecated Use `CheckpointAPIError`. */
40
+ export type AgentShieldAPIError = CheckpointAPIError;
41
+ /** @deprecated Use `CheckpointAPIResponse`. */
42
+ export type AgentShieldAPIResponse<T> = CheckpointAPIResponse<T>;
43
+ /** @deprecated Use `CheckpointAPIErrorResponse`. */
44
+ export type AgentShieldAPIErrorResponse = CheckpointAPIErrorResponse;
45
+ /** @deprecated Use `CheckpointAPIHeaders`. */
46
+ export type AgentShieldAPIHeaders = CheckpointAPIHeaders;
47
+ /** @deprecated Use `CheckpointToolProtection`. */
48
+ export type AgentShieldToolProtection = CheckpointToolProtection;
49
+ /** @deprecated Use `checkpointAPIErrorSchema`. */
50
+ export declare const agentShieldAPIErrorSchema: import("zod").ZodObject<{
51
+ code: import("zod").ZodString;
52
+ message: import("zod").ZodString;
53
+ details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
54
+ }, "strip", import("zod").ZodTypeAny, {
55
+ code: string;
56
+ message: string;
57
+ details?: Record<string, unknown> | undefined;
58
+ }, {
59
+ code: string;
60
+ message: string;
61
+ details?: Record<string, unknown> | undefined;
62
+ }>;
63
+ /** @deprecated Use `checkpointAPIResponseSchema`. */
64
+ export declare const agentShieldAPIResponseSchema: <T extends import("zod").ZodTypeAny>(dataSchema: T) => import("zod").ZodObject<{
65
+ success: import("zod").ZodBoolean;
66
+ data: T;
67
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
68
+ requestId: import("zod").ZodString;
69
+ timestamp: import("zod").ZodString;
70
+ }, "strip", import("zod").ZodTypeAny, {
71
+ timestamp: string;
72
+ requestId: string;
73
+ }, {
74
+ timestamp: string;
75
+ requestId: string;
76
+ }>>;
77
+ }, "strip", import("zod").ZodTypeAny, import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
78
+ success: import("zod").ZodBoolean;
79
+ data: T;
80
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
81
+ requestId: import("zod").ZodString;
82
+ timestamp: import("zod").ZodString;
83
+ }, "strip", import("zod").ZodTypeAny, {
84
+ timestamp: string;
85
+ requestId: string;
86
+ }, {
87
+ timestamp: string;
88
+ requestId: string;
89
+ }>>;
90
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, import("zod").baseObjectInputType<{
91
+ success: import("zod").ZodBoolean;
92
+ data: T;
93
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
94
+ requestId: import("zod").ZodString;
95
+ timestamp: import("zod").ZodString;
96
+ }, "strip", import("zod").ZodTypeAny, {
97
+ timestamp: string;
98
+ requestId: string;
99
+ }, {
100
+ timestamp: string;
101
+ requestId: string;
102
+ }>>;
103
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
104
+ /** @deprecated Use `checkpointToolProtectionSchema`. */
105
+ export declare const agentShieldToolProtectionSchema: import("zod").ZodObject<{
106
+ scopes: import("zod").ZodArray<import("zod").ZodString, "many">;
107
+ requires_delegation: import("zod").ZodOptional<import("zod").ZodBoolean>;
108
+ requiresDelegation: import("zod").ZodOptional<import("zod").ZodBoolean>;
109
+ required_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
110
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
111
+ scopes: import("zod").ZodArray<import("zod").ZodString, "many">;
112
+ requires_delegation: import("zod").ZodOptional<import("zod").ZodBoolean>;
113
+ requiresDelegation: import("zod").ZodOptional<import("zod").ZodBoolean>;
114
+ required_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
115
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
116
+ scopes: import("zod").ZodArray<import("zod").ZodString, "many">;
117
+ requires_delegation: import("zod").ZodOptional<import("zod").ZodBoolean>;
118
+ requiresDelegation: import("zod").ZodOptional<import("zod").ZodBoolean>;
119
+ required_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
120
+ }, import("zod").ZodTypeAny, "passthrough">>;
@@ -1,46 +1,44 @@
1
1
  "use strict";
2
2
  /**
3
- * AgentShield/Bouncer API Contracts
3
+ * The former name of `@kya-os/contracts/checkpoint-api`.
4
4
  *
5
- * Centralized type definitions, validation schemas, and endpoint constants
6
- * for the AgentShield dashboard API integration.
5
+ * Imports from `@kya-os/contracts/agentshield-api`, and the AgentShield-named
6
+ * exports below, keep working so existing code upgrades without changes. Each
7
+ * former name is the Checkpoint export itself, not a copy.
7
8
  *
8
- * @package @kya-os/contracts/agentshield-api
9
+ * @deprecated Import from `@kya-os/contracts/checkpoint-api` and use the
10
+ * Checkpoint names.
11
+ * @module @kya-os/contracts/agentshield-api
9
12
  */
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
+ };
10
27
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.AGENTSHIELD_METHODS = exports.AGENTSHIELD_ENDPOINTS = exports.AGENTSHIELD_API_BASE = exports.clearCacheResponseSchema = exports.clearCacheRequestSchema = exports.registerSessionAPIResponseSchema = exports.registerSessionResponseSchema = exports.registerSessionRequestSchema = exports.sessionClientIdentitySchema = exports.sessionClientInfoSchema = exports.revokeDelegationAPIResponseSchema = exports.revokeDelegationResponseSchema = exports.revokeDelegationRequestSchema = exports.createDelegationAPIResponseSchema = exports.createDelegationResponseSchema = exports.createDelegationRequestSchema = exports.toolProtectionConfigAPIResponseSchema = exports.toolProtectionConfigResponseSchema = exports.agentShieldToolProtectionSchema = exports.verifyDelegationAPIResponseSchema = exports.verifyDelegationResponseSchema = exports.verifyDelegationRequestSchema = exports.delegationCredentialSchema = exports.proofSubmissionResponseSchema = exports.proofSubmissionRequestSchema = exports.agentShieldAPIResponseSchema = exports.agentShieldAPIErrorSchema = exports.AgentShieldAPIError = void 0;
12
- var types_js_1 = require("./types.js");
13
- Object.defineProperty(exports, "AgentShieldAPIError", { enumerable: true, get: function () { return types_js_1.AgentShieldAPIError; } });
14
- // Schema exports
15
- var schemas_js_1 = require("./schemas.js");
16
- Object.defineProperty(exports, "agentShieldAPIErrorSchema", { enumerable: true, get: function () { return schemas_js_1.agentShieldAPIErrorSchema; } });
17
- Object.defineProperty(exports, "agentShieldAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.agentShieldAPIResponseSchema; } });
18
- Object.defineProperty(exports, "proofSubmissionRequestSchema", { enumerable: true, get: function () { return schemas_js_1.proofSubmissionRequestSchema; } });
19
- Object.defineProperty(exports, "proofSubmissionResponseSchema", { enumerable: true, get: function () { return schemas_js_1.proofSubmissionResponseSchema; } });
20
- Object.defineProperty(exports, "delegationCredentialSchema", { enumerable: true, get: function () { return schemas_js_1.delegationCredentialSchema; } });
21
- Object.defineProperty(exports, "verifyDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationRequestSchema; } });
22
- Object.defineProperty(exports, "verifyDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationResponseSchema; } });
23
- Object.defineProperty(exports, "verifyDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationAPIResponseSchema; } });
24
- Object.defineProperty(exports, "agentShieldToolProtectionSchema", { enumerable: true, get: function () { return schemas_js_1.agentShieldToolProtectionSchema; } });
25
- Object.defineProperty(exports, "toolProtectionConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigResponseSchema; } });
26
- Object.defineProperty(exports, "toolProtectionConfigAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigAPIResponseSchema; } });
27
- Object.defineProperty(exports, "createDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationRequestSchema; } });
28
- Object.defineProperty(exports, "createDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationResponseSchema; } });
29
- Object.defineProperty(exports, "createDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationAPIResponseSchema; } });
30
- Object.defineProperty(exports, "revokeDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationRequestSchema; } });
31
- Object.defineProperty(exports, "revokeDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationResponseSchema; } });
32
- Object.defineProperty(exports, "revokeDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationAPIResponseSchema; } });
33
- // Session Registration
34
- Object.defineProperty(exports, "sessionClientInfoSchema", { enumerable: true, get: function () { return schemas_js_1.sessionClientInfoSchema; } });
35
- Object.defineProperty(exports, "sessionClientIdentitySchema", { enumerable: true, get: function () { return schemas_js_1.sessionClientIdentitySchema; } });
36
- Object.defineProperty(exports, "registerSessionRequestSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionRequestSchema; } });
37
- Object.defineProperty(exports, "registerSessionResponseSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionResponseSchema; } });
38
- Object.defineProperty(exports, "registerSessionAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionAPIResponseSchema; } });
39
- var admin_schemas_js_1 = require("./admin-schemas.js");
40
- Object.defineProperty(exports, "clearCacheRequestSchema", { enumerable: true, get: function () { return admin_schemas_js_1.clearCacheRequestSchema; } });
41
- Object.defineProperty(exports, "clearCacheResponseSchema", { enumerable: true, get: function () { return admin_schemas_js_1.clearCacheResponseSchema; } });
42
- // Endpoint exports
43
- var endpoints_js_1 = require("./endpoints.js");
44
- Object.defineProperty(exports, "AGENTSHIELD_API_BASE", { enumerable: true, get: function () { return endpoints_js_1.AGENTSHIELD_API_BASE; } });
45
- Object.defineProperty(exports, "AGENTSHIELD_ENDPOINTS", { enumerable: true, get: function () { return endpoints_js_1.AGENTSHIELD_ENDPOINTS; } });
46
- Object.defineProperty(exports, "AGENTSHIELD_METHODS", { enumerable: true, get: function () { return endpoints_js_1.AGENTSHIELD_METHODS; } });
28
+ exports.agentShieldToolProtectionSchema = exports.agentShieldAPIResponseSchema = exports.agentShieldAPIErrorSchema = exports.AgentShieldAPIError = exports.AGENTSHIELD_METHODS = exports.AGENTSHIELD_ENDPOINTS = exports.AGENTSHIELD_API_BASE = void 0;
29
+ const index_js_1 = require("../checkpoint-api/index.js");
30
+ __exportStar(require("../checkpoint-api/index.js"), exports);
31
+ /** @deprecated Use `CHECKPOINT_API_BASE`. */
32
+ exports.AGENTSHIELD_API_BASE = index_js_1.CHECKPOINT_API_BASE;
33
+ /** @deprecated Use `CHECKPOINT_ENDPOINTS`. */
34
+ exports.AGENTSHIELD_ENDPOINTS = index_js_1.CHECKPOINT_ENDPOINTS;
35
+ /** @deprecated Use `CHECKPOINT_METHODS`. */
36
+ exports.AGENTSHIELD_METHODS = index_js_1.CHECKPOINT_METHODS;
37
+ /** @deprecated Use `CheckpointAPIError`. */
38
+ exports.AgentShieldAPIError = index_js_1.CheckpointAPIError;
39
+ /** @deprecated Use `checkpointAPIErrorSchema`. */
40
+ exports.agentShieldAPIErrorSchema = index_js_1.checkpointAPIErrorSchema;
41
+ /** @deprecated Use `checkpointAPIResponseSchema`. */
42
+ exports.agentShieldAPIResponseSchema = index_js_1.checkpointAPIResponseSchema;
43
+ /** @deprecated Use `checkpointToolProtectionSchema`. */
44
+ exports.agentShieldToolProtectionSchema = index_js_1.checkpointToolProtectionSchema;
@@ -1,9 +1,9 @@
1
1
  /**
2
- * AgentShield Admin API Validation Schemas
2
+ * Checkpoint Admin API Validation Schemas
3
3
  *
4
- * Zod schemas for administrative operations in AgentShield.
4
+ * Zod schemas for administrative operations in Checkpoint.
5
5
  *
6
- * @package @kya-os/contracts/agentshield-api
6
+ * @package @kya-os/contracts/checkpoint-api
7
7
  */
8
8
  import { z } from 'zod';
9
9
  /**
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
- * AgentShield Admin API Validation Schemas
3
+ * Checkpoint Admin API Validation Schemas
4
4
  *
5
- * Zod schemas for administrative operations in AgentShield.
5
+ * Zod schemas for administrative operations in Checkpoint.
6
6
  *
7
- * @package @kya-os/contracts/agentshield-api
7
+ * @package @kya-os/contracts/checkpoint-api
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.clearCacheResponseSchema = exports.clearCacheRequestSchema = void 0;
@@ -1,10 +1,10 @@
1
1
  /**
2
- * AgentShield Admin API Type Definitions
2
+ * Checkpoint Admin API Type Definitions
3
3
  *
4
- * TypeScript interfaces for administrative operations in AgentShield.
5
- * These types ensure parity between xmcp-i admin endpoints and the AgentShield service.
4
+ * TypeScript interfaces for administrative operations in Checkpoint.
5
+ * These types ensure parity between xmcp-i admin endpoints and the Checkpoint service.
6
6
  *
7
- * @package @kya-os/contracts/agentshield-api
7
+ * @package @kya-os/contracts/checkpoint-api
8
8
  */
9
9
  /**
10
10
  * Request to clear agent cache
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * Checkpoint Admin API Type Definitions
4
+ *
5
+ * TypeScript interfaces for administrative operations in Checkpoint.
6
+ * These types ensure parity between xmcp-i admin endpoints and the Checkpoint service.
7
+ *
8
+ * @package @kya-os/contracts/checkpoint-api
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +1,22 @@
1
1
  /**
2
- * AgentShield/Bouncer API Endpoint Constants
2
+ * Checkpoint/Bouncer API Endpoint Constants
3
3
  *
4
4
  * Centralized endpoint definitions to prevent hardcoded URLs
5
5
  * and ensure consistency across all API clients.
6
6
  *
7
- * @package @kya-os/contracts/agentshield-api
7
+ * @package @kya-os/contracts/checkpoint-api
8
8
  */
9
9
  /**
10
- * Base path for all AgentShield/Bouncer API endpoints
10
+ * Base path for all Checkpoint/Bouncer API endpoints
11
11
  */
12
- export declare const AGENTSHIELD_API_BASE: "/api/v1/bouncer";
12
+ export declare const CHECKPOINT_API_BASE: "/api/v1/bouncer";
13
13
  /**
14
- * AgentShield API endpoint paths
14
+ * Checkpoint API endpoint paths
15
15
  *
16
16
  * These are relative paths that should be appended to the base API URL.
17
- * Example: `${apiUrl}${AGENTSHIELD_ENDPOINTS.PROOFS}`
17
+ * Example: `${apiUrl}${CHECKPOINT_ENDPOINTS.PROOFS}`
18
18
  */
19
- export declare const AGENTSHIELD_ENDPOINTS: {
19
+ export declare const CHECKPOINT_ENDPOINTS: {
20
20
  /** Submit proofs in batch */
21
21
  readonly PROOFS: "/api/v1/bouncer/proofs";
22
22
  /** Register a new session with client information */
@@ -35,7 +35,7 @@ export declare const AGENTSHIELD_ENDPOINTS: {
35
35
  /**
36
36
  * HTTP methods for each endpoint
37
37
  */
38
- export declare const AGENTSHIELD_METHODS: {
38
+ export declare const CHECKPOINT_METHODS: {
39
39
  readonly PROOFS: "POST";
40
40
  readonly SESSIONS: "POST";
41
41
  readonly DELEGATIONS_VERIFY: "POST";
@@ -45,9 +45,9 @@ export declare const AGENTSHIELD_METHODS: {
45
45
  readonly CONFIG: "GET";
46
46
  };
47
47
  /**
48
- * Required headers for AgentShield API requests
48
+ * Required headers for Checkpoint API requests
49
49
  */
50
- export interface AgentShieldAPIHeaders {
50
+ export interface CheckpointAPIHeaders {
51
51
  'Content-Type': 'application/json';
52
52
  'Authorization': `Bearer ${string}`;
53
53
  }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /**
3
+ * Checkpoint/Bouncer API Endpoint Constants
4
+ *
5
+ * Centralized endpoint definitions to prevent hardcoded URLs
6
+ * and ensure consistency across all API clients.
7
+ *
8
+ * @package @kya-os/contracts/checkpoint-api
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.CHECKPOINT_METHODS = exports.CHECKPOINT_ENDPOINTS = exports.CHECKPOINT_API_BASE = void 0;
12
+ /**
13
+ * Base path for all Checkpoint/Bouncer API endpoints
14
+ */
15
+ exports.CHECKPOINT_API_BASE = '/api/v1/bouncer';
16
+ /**
17
+ * Checkpoint API endpoint paths
18
+ *
19
+ * These are relative paths that should be appended to the base API URL.
20
+ * Example: `${apiUrl}${CHECKPOINT_ENDPOINTS.PROOFS}`
21
+ */
22
+ exports.CHECKPOINT_ENDPOINTS = {
23
+ /** Submit proofs in batch */
24
+ PROOFS: `${exports.CHECKPOINT_API_BASE}/proofs`,
25
+ /** Register a new session with client information */
26
+ SESSIONS: `${exports.CHECKPOINT_API_BASE}/sessions`,
27
+ /** Verify delegation by agent DID and scopes */
28
+ DELEGATIONS_VERIFY: `${exports.CHECKPOINT_API_BASE}/delegations/verify`,
29
+ /** Get delegation by ID */
30
+ DELEGATIONS_GET: (id) => `${exports.CHECKPOINT_API_BASE}/delegations/${id}`,
31
+ /** Create new delegation */
32
+ DELEGATIONS_CREATE: `${exports.CHECKPOINT_API_BASE}/delegations`,
33
+ /** Revoke delegation */
34
+ DELEGATIONS_REVOKE: (id) => `${exports.CHECKPOINT_API_BASE}/delegations/${id}/revoke`,
35
+ /** Get server configuration */
36
+ CONFIG: (projectId) => `${exports.CHECKPOINT_API_BASE}/projects/${projectId}/config`,
37
+ };
38
+ /**
39
+ * HTTP methods for each endpoint
40
+ */
41
+ exports.CHECKPOINT_METHODS = {
42
+ PROOFS: 'POST',
43
+ SESSIONS: 'POST',
44
+ DELEGATIONS_VERIFY: 'POST',
45
+ DELEGATIONS_GET: 'GET',
46
+ DELEGATIONS_CREATE: 'POST',
47
+ DELEGATIONS_REVOKE: 'POST',
48
+ CONFIG: 'GET',
49
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Checkpoint/Bouncer API Contracts
3
+ *
4
+ * Centralized type definitions, validation schemas, and endpoint constants
5
+ * for the Checkpoint dashboard API integration.
6
+ *
7
+ * @package @kya-os/contracts/checkpoint-api
8
+ */
9
+ export type { CheckpointAPIResponse, CheckpointAPIErrorResponse, ProofSubmissionRequest, ProofSubmissionResponse, ToolCallContext, ConsentEventContext, BouncerOutcome, VerifyDelegationRequest, VerifyDelegationResponse, VerifyDelegationAPIResponse, DelegationCredential, CheckpointToolProtection, ToolProtectionConfigResponse, ToolProtectionConfigAPIResponse, CreateDelegationRequest, CreateDelegationResponse, CreateDelegationAPIResponse, RevokeDelegationRequest, RevokeDelegationResponse, RevokeDelegationAPIResponse, SessionClientInfo, SessionClientIdentity, RegisterSessionRequest, RegisterSessionResponse, RegisterSessionAPIResponse, } from "./types.js";
10
+ export { CheckpointAPIError } from "./types.js";
11
+ export type { CheckpointAPIHeaders } from "./endpoints.js";
12
+ export type { ClearCacheRequest, ClearCacheResponse } from "./admin-types.js";
13
+ export { checkpointAPIErrorSchema, checkpointAPIResponseSchema, proofSubmissionRequestSchema, proofSubmissionResponseSchema, delegationCredentialSchema, verifyDelegationRequestSchema, verifyDelegationResponseSchema, verifyDelegationAPIResponseSchema, checkpointToolProtectionSchema, toolProtectionConfigResponseSchema, toolProtectionConfigAPIResponseSchema, createDelegationRequestSchema, createDelegationResponseSchema, createDelegationAPIResponseSchema, revokeDelegationRequestSchema, revokeDelegationResponseSchema, revokeDelegationAPIResponseSchema, sessionClientInfoSchema, sessionClientIdentitySchema, registerSessionRequestSchema, registerSessionResponseSchema, registerSessionAPIResponseSchema, } from "./schemas.js";
14
+ export { clearCacheRequestSchema, clearCacheResponseSchema, } from "./admin-schemas.js";
15
+ export { CHECKPOINT_API_BASE, CHECKPOINT_ENDPOINTS, CHECKPOINT_METHODS, } from "./endpoints.js";
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * Checkpoint/Bouncer API Contracts
4
+ *
5
+ * Centralized type definitions, validation schemas, and endpoint constants
6
+ * for the Checkpoint dashboard API integration.
7
+ *
8
+ * @package @kya-os/contracts/checkpoint-api
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.CHECKPOINT_METHODS = exports.CHECKPOINT_ENDPOINTS = exports.CHECKPOINT_API_BASE = exports.clearCacheResponseSchema = exports.clearCacheRequestSchema = exports.registerSessionAPIResponseSchema = exports.registerSessionResponseSchema = exports.registerSessionRequestSchema = exports.sessionClientIdentitySchema = exports.sessionClientInfoSchema = exports.revokeDelegationAPIResponseSchema = exports.revokeDelegationResponseSchema = exports.revokeDelegationRequestSchema = exports.createDelegationAPIResponseSchema = exports.createDelegationResponseSchema = exports.createDelegationRequestSchema = exports.toolProtectionConfigAPIResponseSchema = exports.toolProtectionConfigResponseSchema = exports.checkpointToolProtectionSchema = exports.verifyDelegationAPIResponseSchema = exports.verifyDelegationResponseSchema = exports.verifyDelegationRequestSchema = exports.delegationCredentialSchema = exports.proofSubmissionResponseSchema = exports.proofSubmissionRequestSchema = exports.checkpointAPIResponseSchema = exports.checkpointAPIErrorSchema = exports.CheckpointAPIError = void 0;
12
+ var types_js_1 = require("./types.js");
13
+ Object.defineProperty(exports, "CheckpointAPIError", { enumerable: true, get: function () { return types_js_1.CheckpointAPIError; } });
14
+ // Schema exports
15
+ var schemas_js_1 = require("./schemas.js");
16
+ Object.defineProperty(exports, "checkpointAPIErrorSchema", { enumerable: true, get: function () { return schemas_js_1.checkpointAPIErrorSchema; } });
17
+ Object.defineProperty(exports, "checkpointAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.checkpointAPIResponseSchema; } });
18
+ Object.defineProperty(exports, "proofSubmissionRequestSchema", { enumerable: true, get: function () { return schemas_js_1.proofSubmissionRequestSchema; } });
19
+ Object.defineProperty(exports, "proofSubmissionResponseSchema", { enumerable: true, get: function () { return schemas_js_1.proofSubmissionResponseSchema; } });
20
+ Object.defineProperty(exports, "delegationCredentialSchema", { enumerable: true, get: function () { return schemas_js_1.delegationCredentialSchema; } });
21
+ Object.defineProperty(exports, "verifyDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationRequestSchema; } });
22
+ Object.defineProperty(exports, "verifyDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationResponseSchema; } });
23
+ Object.defineProperty(exports, "verifyDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.verifyDelegationAPIResponseSchema; } });
24
+ Object.defineProperty(exports, "checkpointToolProtectionSchema", { enumerable: true, get: function () { return schemas_js_1.checkpointToolProtectionSchema; } });
25
+ Object.defineProperty(exports, "toolProtectionConfigResponseSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigResponseSchema; } });
26
+ Object.defineProperty(exports, "toolProtectionConfigAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.toolProtectionConfigAPIResponseSchema; } });
27
+ Object.defineProperty(exports, "createDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationRequestSchema; } });
28
+ Object.defineProperty(exports, "createDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationResponseSchema; } });
29
+ Object.defineProperty(exports, "createDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.createDelegationAPIResponseSchema; } });
30
+ Object.defineProperty(exports, "revokeDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationRequestSchema; } });
31
+ Object.defineProperty(exports, "revokeDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationResponseSchema; } });
32
+ Object.defineProperty(exports, "revokeDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationAPIResponseSchema; } });
33
+ // Session Registration
34
+ Object.defineProperty(exports, "sessionClientInfoSchema", { enumerable: true, get: function () { return schemas_js_1.sessionClientInfoSchema; } });
35
+ Object.defineProperty(exports, "sessionClientIdentitySchema", { enumerable: true, get: function () { return schemas_js_1.sessionClientIdentitySchema; } });
36
+ Object.defineProperty(exports, "registerSessionRequestSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionRequestSchema; } });
37
+ Object.defineProperty(exports, "registerSessionResponseSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionResponseSchema; } });
38
+ Object.defineProperty(exports, "registerSessionAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionAPIResponseSchema; } });
39
+ var admin_schemas_js_1 = require("./admin-schemas.js");
40
+ Object.defineProperty(exports, "clearCacheRequestSchema", { enumerable: true, get: function () { return admin_schemas_js_1.clearCacheRequestSchema; } });
41
+ Object.defineProperty(exports, "clearCacheResponseSchema", { enumerable: true, get: function () { return admin_schemas_js_1.clearCacheResponseSchema; } });
42
+ // Endpoint exports
43
+ var endpoints_js_1 = require("./endpoints.js");
44
+ Object.defineProperty(exports, "CHECKPOINT_API_BASE", { enumerable: true, get: function () { return endpoints_js_1.CHECKPOINT_API_BASE; } });
45
+ Object.defineProperty(exports, "CHECKPOINT_ENDPOINTS", { enumerable: true, get: function () { return endpoints_js_1.CHECKPOINT_ENDPOINTS; } });
46
+ Object.defineProperty(exports, "CHECKPOINT_METHODS", { enumerable: true, get: function () { return endpoints_js_1.CHECKPOINT_METHODS; } });