@intutic/clawde 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +18 -5
- package/dist/client.js.map +1 -1
- package/dist/control-plane.d.ts +297 -12
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/control-plane.js +642 -19
- package/dist/control-plane.js.map +1 -1
- package/dist/errors.d.ts +7 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +8 -1
- package/dist/errors.js.map +1 -1
- package/dist/evidence.d.ts +22 -0
- package/dist/evidence.d.ts.map +1 -0
- package/dist/evidence.js +114 -0
- package/dist/evidence.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/integrity.d.ts +23 -0
- package/dist/integrity.d.ts.map +1 -0
- package/dist/integrity.js +89 -0
- package/dist/integrity.js.map +1 -0
- package/dist/refusals.d.ts.map +1 -1
- package/dist/refusals.js +1 -0
- package/dist/refusals.js.map +1 -1
- package/dist/toon.d.ts +22 -0
- package/dist/toon.d.ts.map +1 -0
- package/dist/toon.js +115 -0
- package/dist/toon.js.map +1 -0
- package/dist/types.d.ts +1166 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/upstream.d.ts +8 -0
- package/dist/upstream.d.ts.map +1 -0
- package/dist/upstream.js +17 -0
- package/dist/upstream.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm install @intutic/clawde
|
|
|
18
18
|
- **Circuit Breaker:** `client.circuitBreaker(toolName, options)(fn)` runs `fn`, after a workspace budget check when `requireBudget` is set, failing closed unless `failOpen` is set.
|
|
19
19
|
- **Context Resolution:** `resolveContext()` reads the sync daemon's `~/.intutic/config.json` (git branch, Jira ticket, PagerDuty incident, CI pipeline, workspace, session), falling back to environment variables.
|
|
20
20
|
- **Git context (`autoContext`, on by default):** with an Intutic virtual key, in a git repository, the first `chat()` registers a session with the control plane carrying the repository (the `origin` remote as `host/path`, credentials removed), the branch and the HEAD commit, so the calls count in cost per branch, commit and pull request. Pass `autoContext: false` to send none of it. See [Git context and cost attribution](https://docs.intutic.ai/reference/clawde-sdk#_1a-git-context-and-cost-attribution).
|
|
21
|
-
- **Control-Plane Management (`ControlPlaneClient`):** org
|
|
21
|
+
- **Control-Plane Management (`ControlPlaneClient`):** The operator APIs the CLI exposes, callable programmatically: org and workspace setup, gateways, settings and provider credentials, the MCP registry, notification rules, SIEM destinations, usage, the AI inventory, compliance evidence (with `verifyEvidenceArchive()` to check an archive offline), policy guardrails, held decisions and loop runs, findings, traces, trace integrity (with `verifyIntegrityRoot()` to check a sealed root's signature offline), policies and SOPs. The Python SDK has the same methods in snake_case. See the [SDK reference](https://docs.intutic.ai/reference/clawde-sdk#control-plane-management-controlplaneclient).
|
|
22
22
|
|
|
23
23
|
## License
|
|
24
24
|
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACb,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACb,MAAM,SAAS,CAAA;AAahB,kEAAkE;AAClE,eAAO,MAAM,WAAW,eAAe,CAAA;AAEvC,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,eAAe,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,CAAmC;IACpD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,OAAO,CAAQ;IAEvB,wEAAwE;IACxE,OAAO,CAAC,QAAQ,CAAe;IAE/B,OAAO,CAAC,aAAa,CAAe;IACpC,OAAO,CAAC,qBAAqB,CAAgB;IAC7C,OAAO,CAAC,YAAY,CAAoB;IAExC,gGAAgG;IAChG,OAAO,CAAC,OAAO,CAAC,CAAwB;gBAE5B,OAAO,EAAE,mBAAmB;IAuBjC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;IAItD,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;IAK3C,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK/E,cAAc,IAAI,OAAO,CAAC,eAAe,CAAC;IAQhD,cAAc,CAAC,CAAC,EACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,qBAA0B,GAClC,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC;IAIvC;;;;;;;;;OASG;IACU,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAgG5D;;;;;;;;;;;;;OAaG;YACW,WAAW;YA0BX,YAAY;IAW1B,iDAAiD;IACjD,OAAO,CAAC,MAAM;CAKf"}
|
package/dist/client.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ClawdeClient = exports.SDK_HARNESS = void 0;
|
|
4
4
|
const errors_1 = require("./errors");
|
|
5
5
|
const refusals_1 = require("./refusals");
|
|
6
|
+
const upstream_1 = require("./upstream");
|
|
6
7
|
const schema_enforcer_1 = require("./schema-enforcer");
|
|
7
8
|
const context_resolver_1 = require("./context-resolver");
|
|
8
9
|
const git_context_1 = require("./git-context");
|
|
@@ -114,11 +115,15 @@ class ClawdeClient {
|
|
|
114
115
|
let text;
|
|
115
116
|
let refusedBy;
|
|
116
117
|
let refusedRule;
|
|
118
|
+
let upstream;
|
|
119
|
+
let retryAfter;
|
|
117
120
|
try {
|
|
118
121
|
const response = await fetch(url, { method: 'POST', headers, body, signal: controller.signal });
|
|
119
122
|
status = response.status;
|
|
120
123
|
refusedBy = response.headers.get(refusals_1.REFUSAL_HEADER);
|
|
121
124
|
refusedRule = response.headers.get(refusals_1.REFUSAL_RULE_HEADER);
|
|
125
|
+
upstream = (0, upstream_1.upstreamCalls)(response.headers);
|
|
126
|
+
retryAfter = response.headers.get('retry-after');
|
|
122
127
|
text = await response.text();
|
|
123
128
|
}
|
|
124
129
|
catch (err) {
|
|
@@ -150,16 +155,23 @@ class ClawdeClient {
|
|
|
150
155
|
if (answered)
|
|
151
156
|
this.refuse(answered, status);
|
|
152
157
|
normalized.verdict = 'allow';
|
|
158
|
+
if (upstream)
|
|
159
|
+
normalized.upstream = upstream;
|
|
153
160
|
return normalized;
|
|
154
161
|
}
|
|
155
162
|
const refusal = (0, refusals_1.parseRefusal)(status, text);
|
|
156
163
|
if (refusal)
|
|
157
|
-
this.refuse(refusal, status);
|
|
164
|
+
this.refuse(refusal, status, retryAfter);
|
|
158
165
|
lastError = `HTTP error ${status}: ${text}`;
|
|
159
166
|
// A 4xx that is not a refusal (bad key, malformed body) fails the same
|
|
160
|
-
// way every time; only a 5xx is worth another attempt
|
|
167
|
+
// way every time; only a 5xx is worth another attempt — and not one the
|
|
168
|
+
// proxy already retried upstream, which another round from here would
|
|
169
|
+
// only multiply.
|
|
161
170
|
if (status < 500)
|
|
162
171
|
throw new errors_1.ClawdeConnectionError(lastError);
|
|
172
|
+
if (upstream) {
|
|
173
|
+
throw new errors_1.ClawdeConnectionError(`${lastError} (the proxy already made ${upstream.attempts} upstream calls)`);
|
|
174
|
+
}
|
|
163
175
|
}
|
|
164
176
|
throw new errors_1.ClawdeConnectionError(`Request failed after ${maxAttempts} attempts. Last error: ${lastError}`);
|
|
165
177
|
}
|
|
@@ -219,9 +231,10 @@ class ClawdeClient {
|
|
|
219
231
|
return (await res.json());
|
|
220
232
|
}
|
|
221
233
|
/** Fires the refusal's event, then throws it. */
|
|
222
|
-
refuse(refusal, status) {
|
|
223
|
-
|
|
224
|
-
|
|
234
|
+
refuse(refusal, status, retryAfter = null) {
|
|
235
|
+
const seconds = retryAfter !== null && /^\d+$/.test(retryAfter.trim()) ? Number(retryAfter.trim()) : undefined;
|
|
236
|
+
this.eventEmitter.emit(refusal.verdict, { ...refusal, status, ...(seconds !== undefined ? { retryAfterSeconds: seconds } : {}) });
|
|
237
|
+
throw new errors_1.ClawdeBlockedError(refusal.verdict, refusal.code, status, refusal.message, refusal.ruleId, seconds);
|
|
225
238
|
}
|
|
226
239
|
}
|
|
227
240
|
exports.ClawdeClient = ClawdeClient;
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;AAUA,qCAAoE;AACpE,yCAA+H;AAC/H,uDAAuE;AACvE,yDAAmD;AACnD,+CAAiD;AACjD,qDAAgD;AAChD,uDAAkD;AAClD,mDAAoD;AACpD,qDAAsF;AAEtF,kEAAkE;AACrD,QAAA,WAAW,GAAG,YAAY,CAAA;AAEvC,MAAa,YAAY;IACf,MAAM,CAAQ;IACd,OAAO,CAAQ;IACf,eAAe,CAAQ;IACvB,QAAQ,CAAoC;IAC5C,WAAW,CAAS;IACpB,OAAO,CAAQ;IACf,OAAO,CAAQ;IAEvB,wEAAwE;IAChE,QAAQ,CAAe;IAEvB,aAAa,CAAe;IAC5B,qBAAqB,CAAgB;IACrC,YAAY,CAAoB;IAExC,gGAAgG;IACxF,OAAO,CAAyB;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, WhoamiResult, OrgSignupParams, OrgSignupResult, StartDomainVerificationResult, CheckDomainVerificationResult, CreateOrgParams, CreateOrgResult, Team, Workspace, GatewayRegisterParams, GatewayRegisterResult, Gateway, GatewayRotateResult, GatewayStatus, GatewayConfigUpdate, GatewayConfigResult, GatewayResolution, ProviderCredentialStatus, WorkspaceSettings, WorkspaceSettingsUpdateResult } from './types';
|
|
1
|
+
import type { ControlPlaneClientOptions, WhoamiResult, OrgSignupParams, OrgSignupResult, StartDomainVerificationResult, CheckDomainVerificationResult, CreateOrgParams, CreateOrgResult, Team, Workspace, GatewayRegisterParams, GatewayRegisterResult, Gateway, GatewayRotateResult, GatewayStatus, GatewayConfigUpdate, GatewayConfigResult, GatewayResolution, ProviderCredentialStatus, ProviderModelList, WorkspaceSettings, WorkspaceSettingsUpdateResult, McpServerList, McpServerDecision, NotificationRule, NotificationRuleInput, NotificationRuleUpdate, NotificationSecretRotation, SiemDestination, SiemDestinationList, SiemSources, SiemDestinationInput, SiemDestinationUpdate, SiemSecretRotation, UsageOptions, MemberUsageResponse, TeamUsageResponse, BranchUsageResponse, CommitUsageResponse, PullRequestUsageResponse, PullRequestRefreshResult, InventorySummary, InventoryDevice, InventoryHarness, InventoryMcpServer, InventorySkill, DeviceDisconnect, InventoryFilters, InventorySkillFilters, CoverageFormat, FrameworkCoverage, EvidenceCollectOptions, EvidenceCollectResult, SigningJwks, GateLiveness, GitHubWebhookInfo, GitHubWebhookSecret, PolicySource, PolicySourceInput, PolicySourceSyncResult, PolicyDocumentSummary, PolicyDocumentDetail, ExtractDocumentResult, ExtractOptions, TokenCoverage, PassageSearchResult, GuardrailImpactSeed, LedgerImpact, DuplicatesOptions, LedgerDuplicates, GuardrailFilters, GuardrailSummary, GuardrailDetail, GuardrailReadiness, GuardrailTransitionResult, PromoteOptions, AuthoredGuardrailInput, AuthoredGuardrailUpdate, AuthoredGuardrailWriteResult, GuardrailDeleteResult, GuardrailReplay, GuardrailConflict, ReviewOptions, DecisionReviewResult, LoopRun, StartLoopRunOptions, CompleteLoopRunOptions, LoopRunReviewOptions, LoopRunActionResult, Finding, FindingFilters, FindingOutcome, AdjudicateOptions, FindingAdjudication, FindingStats, ResponseEchoReportOptions, ResponseEchoReport, TraceFilters, TraceList, IncidentFilters, Incident, IncidentList, TraceDetail, IntegrityRootList, IntegrityRootDetail, IntegrityRecompute, IntegrityChain, ConfigChain, CompliancePolicy, PolicyChangeResult, RuleCandidateSource, BundleUploadOptions, BundleUploadResult, WasmReplayOptions, WasmReplayResult, SopSummary, SopDetail, SopInput, SopCreateResult, OrgSop, OrgSopInput, AttenuateOptions, AttenuationResult, AttenuationChainLink, PredictCostParams, CostPrediction, MirrorAdoptionReport } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Control-plane management client — org/team/gateway/credentials
|
|
4
4
|
* administration, as distinct from `ClawdeClient`'s data-plane chat calls.
|
|
@@ -10,14 +10,25 @@ import type { ControlPlaneClientOptions, WhoamiResult, OrgSignupParams, OrgSignu
|
|
|
10
10
|
* management calls onto `ClawdeClient` would silently need a second base URL
|
|
11
11
|
* on a class whose whole contract today is "one client, one proxy."
|
|
12
12
|
*
|
|
13
|
-
* Every endpoint here
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
13
|
+
* Every endpoint here comes from the control-plane calls in
|
|
14
|
+
* `tools/cli/src/commands/*` — the CLI's own already-tested contracts, not
|
|
15
|
+
* re-derived — and the Python SDK's `control_plane.py` has the same methods
|
|
16
|
+
* in snake_case. `packages/shared-types/fixtures/control-plane-operations.json`
|
|
17
|
+
* lists every method with the request it makes and the answer it returns, and
|
|
18
|
+
* both SDKs' tests run against it, so neither can grow a method the other
|
|
19
|
+
* lacks. Method names follow one pattern for whatever is added next: a verb
|
|
20
|
+
* (`list`, `get`, `create`, `update`, `delete`, `rotate…Secret`, `download`,
|
|
21
|
+
* or the CLI subcommand's own verb, such as `approve` or `promote`), then the
|
|
22
|
+
* resource.
|
|
23
|
+
*
|
|
24
|
+
* Not included: session establishment (`login`/`logout`; an SDK caller
|
|
25
|
+
* supplies `apiKey` directly, and `ClawdeClient` registers its own session),
|
|
26
|
+
* the CLI's workspace budget (`ClawdeClient.checkBudget()`), and commands
|
|
27
|
+
* that act on the machine they run on: `init`, `setup`, `doctor`,
|
|
28
|
+
* `install-daemon`, `connect`, `disconnect`, `exec`, `start`, `syncContext`,
|
|
29
|
+
* `rollback`, `enforce`, `rules`, `judge`, `skill` (its loop commands are
|
|
30
|
+
* here), `sops status`, `guardrails pull`, and `policy
|
|
31
|
+
* compile|install|snapshot|list-local`.
|
|
21
32
|
*
|
|
22
33
|
* Works unmodified against a self-hosted control plane — there is no
|
|
23
34
|
* SaaS-vs-self-hosted branch anywhere in this file. An open-core user who
|
|
@@ -29,15 +40,23 @@ import type { ControlPlaneClientOptions, WhoamiResult, OrgSignupParams, OrgSignu
|
|
|
29
40
|
*
|
|
30
41
|
* Auth: the same `apiKey` type `ClawdeClient` accepts — a `vk_` token or a
|
|
31
42
|
* JWT both satisfy `services/control-plane/src/middleware/auth.ts`, which
|
|
32
|
-
* resolves either to an `AuthContext` with a role
|
|
33
|
-
* `
|
|
34
|
-
*
|
|
43
|
+
* resolves either to an `AuthContext` with a role. A call the role may not
|
|
44
|
+
* make throws `ClawdeConnectionError` with the control plane's answer; for a
|
|
45
|
+
* 403 that names the roles allowed (`detail`), the message is that sentence,
|
|
46
|
+
* as the CLI prints it.
|
|
35
47
|
*/
|
|
36
48
|
export declare class ControlPlaneClient {
|
|
37
49
|
private apiKey;
|
|
38
50
|
private baseUrl;
|
|
39
51
|
constructor(options: ControlPlaneClientOptions);
|
|
52
|
+
private send;
|
|
53
|
+
/**
|
|
54
|
+
* A JSON call. `answers` lists the error statuses whose body is the answer
|
|
55
|
+
* rather than a failure: the integrity chain walk answers a break with 409.
|
|
56
|
+
*/
|
|
40
57
|
private request;
|
|
58
|
+
/** A file download: the body as bytes. Its errors are JSON, as every other call's. */
|
|
59
|
+
private download;
|
|
41
60
|
/** GET /api/v1/auth/me */
|
|
42
61
|
whoami(): Promise<WhoamiResult>;
|
|
43
62
|
/**
|
|
@@ -125,5 +144,271 @@ export declare class ControlPlaneClient {
|
|
|
125
144
|
setProviderCredential(provider: string, fields: Record<string, string>): Promise<ProviderCredentialStatus>;
|
|
126
145
|
/** DELETE /api/v1/workspace/provider-credentials/:provider */
|
|
127
146
|
unsetProviderCredential(provider: string): Promise<void>;
|
|
147
|
+
/** GET /api/v1/workspace/provider-credentials/:provider/models */
|
|
148
|
+
listProviderModels(provider: string): Promise<ProviderModelList>;
|
|
149
|
+
/** GET /api/v1/mcp/servers — every server the workspace's MCP proxies have reported, and the registry-wide policy. */
|
|
150
|
+
listMcpServers(): Promise<McpServerList>;
|
|
151
|
+
/** POST /api/v1/mcp/servers/:serverId/status — approve a server (OWNER, ADMIN). */
|
|
152
|
+
approveMcpServer(serverId: string): Promise<McpServerDecision>;
|
|
153
|
+
/** POST /api/v1/mcp/servers/:serverId/status — block a server (OWNER, ADMIN). */
|
|
154
|
+
blockMcpServer(serverId: string): Promise<McpServerDecision>;
|
|
155
|
+
/** POST /api/v1/mcp/servers/:serverId/status — return a server to the approval queue (OWNER, ADMIN). */
|
|
156
|
+
resetMcpServer(serverId: string): Promise<McpServerDecision>;
|
|
157
|
+
/** POST /api/v1/mcp/servers/:serverId/tools — switch one tool on (OWNER, ADMIN). */
|
|
158
|
+
enableMcpTool(serverId: string, tool: string): Promise<McpServerDecision>;
|
|
159
|
+
/** POST /api/v1/mcp/servers/:serverId/tools — switch one tool off (OWNER, ADMIN). */
|
|
160
|
+
disableMcpTool(serverId: string, tool: string): Promise<McpServerDecision>;
|
|
161
|
+
private setMcpServerStatus;
|
|
162
|
+
/** GET /api/v1/notifications/rules */
|
|
163
|
+
listNotificationRules(): Promise<NotificationRule[]>;
|
|
164
|
+
/**
|
|
165
|
+
* POST /api/v1/notifications/rules. A webhook rule comes back with its
|
|
166
|
+
* `signingSecret`, which is not shown again.
|
|
167
|
+
*/
|
|
168
|
+
createNotificationRule(rule: NotificationRuleInput): Promise<NotificationRule>;
|
|
169
|
+
/**
|
|
170
|
+
* PUT /api/v1/notifications/rules/:ruleId — only the fields given change.
|
|
171
|
+
* A switch to the webhook channel comes back with the new `signingSecret`.
|
|
172
|
+
*/
|
|
173
|
+
updateNotificationRule(ruleId: string, changes: NotificationRuleUpdate): Promise<NotificationRule>;
|
|
174
|
+
/** DELETE /api/v1/notifications/rules/:ruleId */
|
|
175
|
+
deleteNotificationRule(ruleId: string): Promise<void>;
|
|
176
|
+
/** POST /api/v1/notifications/rules/:ruleId/signing-secret — deliveries are signed with the new secret from now on. */
|
|
177
|
+
rotateNotificationRuleSecret(ruleId: string): Promise<NotificationSecretRotation>;
|
|
178
|
+
/** GET /api/v1/siem/destinations — the destinations and the event sources they can receive. */
|
|
179
|
+
listSiemDestinations(): Promise<SiemDestinationList>;
|
|
180
|
+
/** GET /api/v1/siem/destinations/:destinationId */
|
|
181
|
+
getSiemDestination(destinationId: string): Promise<SiemDestination>;
|
|
182
|
+
/** The event sources a destination can receive; `defaults` are the ones an empty `sourceTables` means. */
|
|
183
|
+
listSiemSources(): Promise<SiemSources>;
|
|
184
|
+
/**
|
|
185
|
+
* POST /api/v1/siem/destinations (OWNER, ADMIN). The control plane refuses
|
|
186
|
+
* a destination that points at an internal address. A webhook destination
|
|
187
|
+
* comes back with its `signingSecret`, which is not shown again.
|
|
188
|
+
*/
|
|
189
|
+
createSiemDestination(destination: SiemDestinationInput): Promise<SiemDestination>;
|
|
190
|
+
/** PUT /api/v1/siem/destinations/:destinationId (OWNER, ADMIN) — only the fields given change. */
|
|
191
|
+
updateSiemDestination(destinationId: string, changes: SiemDestinationUpdate): Promise<SiemDestination>;
|
|
192
|
+
/** DELETE /api/v1/siem/destinations/:destinationId (OWNER, ADMIN) — deactivates it; `updateSiemDestination(id, { isActive: true })` turns it back on. */
|
|
193
|
+
deleteSiemDestination(destinationId: string): Promise<void>;
|
|
194
|
+
/** POST /api/v1/siem/destinations/:destinationId/signing-secret (OWNER, ADMIN) */
|
|
195
|
+
rotateSiemDestinationSecret(destinationId: string): Promise<SiemSecretRotation>;
|
|
196
|
+
/** GET /api/v1/usage/members */
|
|
197
|
+
getMemberUsage(options?: UsageOptions): Promise<MemberUsageResponse>;
|
|
198
|
+
/** GET /api/v1/usage/teams — per SCIM group. */
|
|
199
|
+
getTeamUsage(options?: UsageOptions): Promise<TeamUsageResponse>;
|
|
200
|
+
/** GET /api/v1/usage/branches */
|
|
201
|
+
getBranchUsage(options?: UsageOptions): Promise<BranchUsageResponse>;
|
|
202
|
+
/** GET /api/v1/usage/commits */
|
|
203
|
+
getCommitUsage(options?: UsageOptions): Promise<CommitUsageResponse>;
|
|
204
|
+
/** GET /api/v1/usage/pull-requests */
|
|
205
|
+
getPullRequestUsage(options?: UsageOptions): Promise<PullRequestUsageResponse>;
|
|
206
|
+
/** POST /api/v1/usage/pull-requests/refresh — look the branches up on GitHub now (OWNER, ADMIN, EM). */
|
|
207
|
+
refreshPullRequestUsage(): Promise<PullRequestRefreshResult>;
|
|
208
|
+
/** GET /api/v1/inventory/summary */
|
|
209
|
+
getInventorySummary(): Promise<InventorySummary>;
|
|
210
|
+
/** GET /api/v1/inventory/devices — one row per machine. */
|
|
211
|
+
listInventoryDevices(): Promise<InventoryDevice[]>;
|
|
212
|
+
/** GET /api/v1/inventory/harnesses */
|
|
213
|
+
listInventoryHarnesses(filters?: InventoryFilters): Promise<InventoryHarness[]>;
|
|
214
|
+
/** GET /api/v1/inventory/mcp-servers */
|
|
215
|
+
listInventoryMcpServers(filters?: InventoryFilters): Promise<InventoryMcpServer[]>;
|
|
216
|
+
/** GET /api/v1/inventory/skills */
|
|
217
|
+
listInventorySkills(filters?: InventorySkillFilters): Promise<InventorySkill[]>;
|
|
218
|
+
/** GET /api/v1/inventory/disconnects — machines that ran `intutic disconnect`, newest first (default 100, at most 500). */
|
|
219
|
+
listInventoryDisconnects(options?: {
|
|
220
|
+
limit?: number;
|
|
221
|
+
}): Promise<DeviceDisconnect[]>;
|
|
222
|
+
/** GET /api/v1/inventory/harnesses?format=csv — the CSV the dashboard downloads. */
|
|
223
|
+
downloadInventoryHarnessesCsv(filters?: InventoryFilters): Promise<Uint8Array>;
|
|
224
|
+
/** GET /api/v1/inventory/mcp-servers?format=csv */
|
|
225
|
+
downloadInventoryMcpServersCsv(filters?: InventoryFilters): Promise<Uint8Array>;
|
|
226
|
+
private listData;
|
|
227
|
+
/** GET /api/v1/compliance/frameworks/:frameworkId/coverage — `eu_ai_act`, `iso_42001`, `nist_ai_rmf` or `mitre_atlas`. */
|
|
228
|
+
getFrameworkCoverage(frameworkId: string): Promise<FrameworkCoverage>;
|
|
229
|
+
/**
|
|
230
|
+
* GET /api/v1/compliance/frameworks/:frameworkId/coverage?format= — the
|
|
231
|
+
* report as a file. Unsigned: the signed copies are the ones sealed in the
|
|
232
|
+
* evidence archive.
|
|
233
|
+
*/
|
|
234
|
+
downloadFrameworkCoverage(frameworkId: string, format: CoverageFormat): Promise<Uint8Array>;
|
|
235
|
+
/** POST /api/v1/compliance/soc2-collect (OWNER, ADMIN) — run a fresh evidence collection and seal it. */
|
|
236
|
+
collectEvidence(options?: EvidenceCollectOptions): Promise<EvidenceCollectResult>;
|
|
237
|
+
/** GET /api/v1/compliance/soc2-export/:runId (OWNER, ADMIN) — a stored archive, as the file. Check it with `verifyEvidenceArchive`. */
|
|
238
|
+
downloadEvidence(runId: string): Promise<Uint8Array>;
|
|
239
|
+
/**
|
|
240
|
+
* GET /.well-known/intutic-trace-signing.json — the published signing keys,
|
|
241
|
+
* fetched without credentials. `verifyEvidenceArchive` takes them.
|
|
242
|
+
*/
|
|
243
|
+
getSigningKeys(): Promise<SigningJwks>;
|
|
244
|
+
/** GET /api/v1/governance/gate-liveness (OWNER, ADMIN, EM) — whether each installed harness's gate is reporting. */
|
|
245
|
+
getGateLiveness(): Promise<GateLiveness>;
|
|
246
|
+
/** GET /api/v1/integrations/github/webhook (OWNER, ADMIN) — the payload URL; never the secret. */
|
|
247
|
+
getGithubWebhook(): Promise<GitHubWebhookInfo>;
|
|
248
|
+
/**
|
|
249
|
+
* POST /api/v1/integrations/github/webhook/secret (OWNER, ADMIN) — make the
|
|
250
|
+
* webhook, or replace its secret. Deliveries signed with an earlier secret
|
|
251
|
+
* are refused from then on.
|
|
252
|
+
*/
|
|
253
|
+
rotateGithubWebhookSecret(): Promise<GitHubWebhookSecret>;
|
|
254
|
+
/** GET /api/v1/connectors — the workspace's policy sources (Notion, Confluence, GitHub, Google Drive). */
|
|
255
|
+
listPolicySources(): Promise<PolicySource[]>;
|
|
256
|
+
/** POST /api/v1/connectors */
|
|
257
|
+
addPolicySource(source: PolicySourceInput): Promise<PolicySource>;
|
|
258
|
+
/** POST /api/v1/connectors/:connectorId/sync */
|
|
259
|
+
syncPolicySource(connectorId: string): Promise<PolicySourceSyncResult>;
|
|
260
|
+
/** GET /api/v1/policy-guardrails/documents */
|
|
261
|
+
listPolicyDocuments(): Promise<PolicyDocumentSummary[]>;
|
|
262
|
+
/** GET /api/v1/policy-guardrails/documents/:docId — passages, clauses and extraction runs. */
|
|
263
|
+
getPolicyDocument(docId: string): Promise<PolicyDocumentDetail>;
|
|
264
|
+
/** POST /api/v1/policy-guardrails/documents/:docId/extract — propose guardrails from the document's clauses. */
|
|
265
|
+
extractPolicyDocument(docId: string, options?: ExtractOptions): Promise<ExtractDocumentResult>;
|
|
266
|
+
/** GET /api/v1/policy-guardrails/coverage?token= — the passages that mention a tool or action, and the guardrails on them. */
|
|
267
|
+
getGuardrailCoverage(token: string): Promise<TokenCoverage>;
|
|
268
|
+
/** GET /api/v1/policy-guardrails/search?q= — full-text search over live passages, best match first. */
|
|
269
|
+
searchPolicyPassages(text: string): Promise<PassageSearchResult>;
|
|
270
|
+
/** GET /api/v1/policy-guardrails/impact — what a change to a document or a passage reaches. Name one of them. */
|
|
271
|
+
getGuardrailImpact(seed: GuardrailImpactSeed): Promise<LedgerImpact>;
|
|
272
|
+
/** GET /api/v1/policy-guardrails/duplicates — overlapping passages and rules cited more than once. */
|
|
273
|
+
listGuardrailDuplicates(options?: DuplicatesOptions): Promise<LedgerDuplicates>;
|
|
274
|
+
/** GET /api/v1/policy-guardrails/guardrails */
|
|
275
|
+
listGuardrails(filters?: GuardrailFilters): Promise<GuardrailSummary[]>;
|
|
276
|
+
/** GET /api/v1/policy-guardrails/guardrails/:guardrailId */
|
|
277
|
+
getGuardrail(guardrailId: string): Promise<GuardrailDetail>;
|
|
278
|
+
/** GET /api/v1/policy-guardrails/guardrails/:guardrailId/readiness — whether a SHADOW guardrail's evidence clears promotion. */
|
|
279
|
+
getGuardrailReadiness(guardrailId: string): Promise<GuardrailReadiness>;
|
|
280
|
+
/** POST …/guardrails/:guardrailId/approve-shadow — into SHADOW: distributed as warn, measuring, enforcing nothing. */
|
|
281
|
+
approveGuardrailShadow(guardrailId: string): Promise<GuardrailTransitionResult>;
|
|
282
|
+
/**
|
|
283
|
+
* POST …/guardrails/:guardrailId/promote — into ENFORCING. Refused with a
|
|
284
|
+
* 409 until the shadow evidence clears the thresholds; a guardrail that
|
|
285
|
+
* never fired needs `acknowledgeNoTraffic`.
|
|
286
|
+
*/
|
|
287
|
+
promoteGuardrail(guardrailId: string, options?: PromoteOptions): Promise<GuardrailTransitionResult>;
|
|
288
|
+
/** POST …/guardrails/:guardrailId/reject — recorded with the reason. */
|
|
289
|
+
rejectGuardrail(guardrailId: string, reason: string): Promise<GuardrailTransitionResult>;
|
|
290
|
+
/** POST …/guardrails/:guardrailId/retire — gone from every rule endpoint on the next poll. */
|
|
291
|
+
retireGuardrail(guardrailId: string): Promise<GuardrailTransitionResult>;
|
|
292
|
+
/** POST …/guardrails/:guardrailId/reconfirm — re-confirm a stale citation against a live passage. */
|
|
293
|
+
reconfirmGuardrail(guardrailId: string): Promise<GuardrailTransitionResult>;
|
|
294
|
+
/**
|
|
295
|
+
* POST /api/v1/policy-guardrails/guardrails (OWNER, ADMIN) — an authored
|
|
296
|
+
* guardrail, created PROPOSED. An IR a check refuses is a 400 naming the
|
|
297
|
+
* check.
|
|
298
|
+
*/
|
|
299
|
+
createGuardrail(guardrail: AuthoredGuardrailInput): Promise<AuthoredGuardrailWriteResult>;
|
|
300
|
+
/**
|
|
301
|
+
* PUT /api/v1/policy-guardrails/guardrails/:guardrailId (OWNER, ADMIN). A
|
|
302
|
+
* changed IR creates the next version (`forked`), PROPOSED with no
|
|
303
|
+
* evidence; a name or description edit keeps the evidence.
|
|
304
|
+
*/
|
|
305
|
+
updateGuardrail(guardrailId: string, changes: AuthoredGuardrailUpdate): Promise<AuthoredGuardrailWriteResult>;
|
|
306
|
+
/** DELETE /api/v1/policy-guardrails/guardrails/:guardrailId (OWNER, ADMIN) — retires it; its history is kept. */
|
|
307
|
+
deleteGuardrail(guardrailId: string): Promise<GuardrailDeleteResult>;
|
|
308
|
+
/** POST …/guardrails/:guardrailId/replay — what the guardrail would have done on captured traffic. */
|
|
309
|
+
replayGuardrail(guardrailId: string): Promise<GuardrailReplay>;
|
|
310
|
+
/** GET /api/v1/policy-guardrails/conflicts — live guardrails and front-matter rules that contradict each other. */
|
|
311
|
+
listGuardrailConflicts(): Promise<GuardrailConflict[]>;
|
|
312
|
+
private transitionGuardrail;
|
|
313
|
+
/** POST /api/v1/decisions/:holdId/review (OWNER, ADMIN, EM) — approve a held call. */
|
|
314
|
+
approveDecision(holdId: string, options?: ReviewOptions): Promise<DecisionReviewResult>;
|
|
315
|
+
/** POST /api/v1/decisions/:holdId/review (OWNER, ADMIN, EM) — reject a held call. */
|
|
316
|
+
rejectDecision(holdId: string, options?: ReviewOptions): Promise<DecisionReviewResult>;
|
|
317
|
+
/**
|
|
318
|
+
* POST /api/v1/loops/start — register a loop run. Send its id with the run's
|
|
319
|
+
* requests (`INTUTIC_LOOP_RUN_ID`, as `intutic loop exec` sets it) so the
|
|
320
|
+
* proxy files them under it.
|
|
321
|
+
*/
|
|
322
|
+
startLoopRun(name: string, options?: StartLoopRunOptions): Promise<LoopRun>;
|
|
323
|
+
/** GET /api/v1/loops/:loopRunId */
|
|
324
|
+
getLoopRun(loopRunId: string): Promise<LoopRun>;
|
|
325
|
+
/** GET /api/v1/loops */
|
|
326
|
+
listLoopRuns(): Promise<LoopRun[]>;
|
|
327
|
+
/** POST /api/v1/loops/:loopRunId/complete — `outcome` records how the run ended. */
|
|
328
|
+
completeLoopRun(loopRunId: string, options?: CompleteLoopRunOptions): Promise<LoopRunActionResult>;
|
|
329
|
+
/** POST /api/v1/loops/:loopRunId/kill */
|
|
330
|
+
killLoopRun(loopRunId: string): Promise<LoopRunActionResult>;
|
|
331
|
+
/** POST /api/v1/loops/:loopRunId/review (OWNER, ADMIN, EM) — approve a run held for review; it is ACTIVE again. */
|
|
332
|
+
approveLoopRun(loopRunId: string, options?: LoopRunReviewOptions): Promise<LoopRunActionResult>;
|
|
333
|
+
/** POST /api/v1/loops/:loopRunId/review (OWNER, ADMIN, EM) — reject a run held for review; it is KILLED. */
|
|
334
|
+
rejectLoopRun(loopRunId: string, options?: LoopRunReviewOptions): Promise<LoopRunActionResult>;
|
|
335
|
+
/** GET /api/v1/findings — detector findings, newest first. */
|
|
336
|
+
listFindings(filters?: FindingFilters): Promise<Finding[]>;
|
|
337
|
+
/** POST /api/v1/findings/:findingId/adjudicate — the ruling is recorded under the key's member. */
|
|
338
|
+
adjudicateFinding(findingId: string, outcome: FindingOutcome, options?: AdjudicateOptions): Promise<FindingAdjudication>;
|
|
339
|
+
/** GET /api/v1/findings/stats — false-positive rate per detector, over adjudicated findings. */
|
|
340
|
+
getFindingStats(): Promise<FindingStats>;
|
|
341
|
+
/** GET /api/v1/findings/response-echo/report */
|
|
342
|
+
getResponseEchoReport(options?: ResponseEchoReportOptions): Promise<ResponseEchoReport>;
|
|
343
|
+
/** GET /api/v1/incidents — ranked by review priority; filter by status, severity and type. */
|
|
344
|
+
listIncidents(filters?: IncidentFilters): Promise<IncidentList>;
|
|
345
|
+
/** GET /api/v1/incidents/:incidentId */
|
|
346
|
+
getIncident(incidentId: string): Promise<Incident>;
|
|
347
|
+
/** GET /api/v1/traces — newest first. */
|
|
348
|
+
listTraces(filters?: TraceFilters): Promise<TraceList>;
|
|
349
|
+
/** GET /api/v1/traces/:traceId */
|
|
350
|
+
getTrace(traceId: string): Promise<TraceDetail>;
|
|
351
|
+
/** GET /api/v1/integrity/roots — the sealed trace roots. */
|
|
352
|
+
listIntegrityRoots(options?: {
|
|
353
|
+
loopRunId?: string;
|
|
354
|
+
}): Promise<IntegrityRootList>;
|
|
355
|
+
/** GET /api/v1/integrity/roots/:rootId — the root, its signature and its leaves. */
|
|
356
|
+
getIntegrityRoot(rootId: string): Promise<IntegrityRootDetail>;
|
|
357
|
+
/** POST /api/v1/integrity/roots/:rootId/recompute — re-derive the root from the stored traces. */
|
|
358
|
+
recomputeIntegrityRoot(rootId: string): Promise<IntegrityRecompute>;
|
|
359
|
+
/** GET /api/v1/integrity/chain — the root chain walk; `intact: false` lists the breaks. */
|
|
360
|
+
getIntegrityChain(): Promise<IntegrityChain>;
|
|
361
|
+
/** GET /api/v1/integrity/config-chain — the harness config snapshot chain walk. */
|
|
362
|
+
getIntegrityConfigChain(): Promise<ConfigChain>;
|
|
363
|
+
/** GET /api/v1/policies */
|
|
364
|
+
listPolicies(): Promise<CompliancePolicy[]>;
|
|
365
|
+
/** POST /api/v1/policies/:policyId/enable */
|
|
366
|
+
enablePolicy(policyId: string): Promise<PolicyChangeResult>;
|
|
367
|
+
/** POST /api/v1/policies/:policyId/disable */
|
|
368
|
+
disablePolicy(policyId: string): Promise<PolicyChangeResult>;
|
|
369
|
+
/** POST /api/v1/policies/:policyId/rollback */
|
|
370
|
+
rollbackPolicy(policyId: string, version: number): Promise<PolicyChangeResult>;
|
|
371
|
+
/**
|
|
372
|
+
* GET /api/v1/rule-candidates/:candidateId/source — the source of record a
|
|
373
|
+
* candidate's bundle must be compiled from. A source that does not hash to
|
|
374
|
+
* the `sourceSha256` served with it is refused (`ClawdeConnectionError`):
|
|
375
|
+
* something between the control plane and this process changed it.
|
|
376
|
+
*/
|
|
377
|
+
getRuleCandidateSource(candidateId: string): Promise<RuleCandidateSource>;
|
|
378
|
+
/**
|
|
379
|
+
* POST /api/v1/rule-candidates/:candidateId/bundle (OWNER, ADMIN) — upload
|
|
380
|
+
* a compiled rule with the hash of the source it was compiled from. The
|
|
381
|
+
* control plane runs its gates; `accepted` says whether the rule went into
|
|
382
|
+
* shadow, and `gates` why.
|
|
383
|
+
*/
|
|
384
|
+
uploadRuleCandidateBundle(candidateId: string, wasm: Uint8Array, sourceSha256: string, options?: BundleUploadOptions): Promise<BundleUploadResult>;
|
|
385
|
+
/** POST /api/v1/wasm-rules/:ruleId/replay — what a rule would have done on sampled traffic, without enforcing. */
|
|
386
|
+
replayWasmRule(ruleId: string, options?: WasmReplayOptions): Promise<WasmReplayResult>;
|
|
387
|
+
/** GET /api/v1/sops */
|
|
388
|
+
listSops(options?: {
|
|
389
|
+
limit?: number;
|
|
390
|
+
}): Promise<SopSummary[]>;
|
|
391
|
+
/** GET /api/v1/sops/:sopId */
|
|
392
|
+
getSop(sopId: string): Promise<SopDetail>;
|
|
393
|
+
/** POST /api/v1/sops — one workspace SOP; `markdown_content` without front matter. */
|
|
394
|
+
createSop(sop: SopInput): Promise<SopCreateResult>;
|
|
395
|
+
/** GET /api/v1/workspace/org-sops — the org-wide SOP floors of the key's org. */
|
|
396
|
+
listOrgSops(): Promise<OrgSop[]>;
|
|
397
|
+
/** POST /api/v1/workspace/org-sops — a mandatory org-wide floor (OWNER, ADMIN of a workspace in the org). */
|
|
398
|
+
createOrgSop(sop: OrgSopInput): Promise<OrgSop>;
|
|
399
|
+
/** DELETE /api/v1/workspace/org-sops/:orgSopId — answers 404 both for no such SOP and for a member without admin access. */
|
|
400
|
+
deleteOrgSop(orgSopId: string): Promise<void>;
|
|
401
|
+
/**
|
|
402
|
+
* POST /api/v1/attenuate — a child key narrowed to a subset of the parent
|
|
403
|
+
* key's capabilities. The child key is in the response once and never
|
|
404
|
+
* stored.
|
|
405
|
+
*/
|
|
406
|
+
attenuateKey(parentKeyId: string, requestedCaps: string[], options?: AttenuateOptions): Promise<AttenuationResult>;
|
|
407
|
+
/** GET /api/v1/attenuate/chain/:chainId (OWNER, ADMIN) — the delegation lineage. */
|
|
408
|
+
getAttenuationChain(chainId: string): Promise<AttenuationChainLink[]>;
|
|
409
|
+
/** POST /api/v1/predict-cost — estimate a call's cost before it runs. Size the input with a token count or the text. */
|
|
410
|
+
predictCost(params: PredictCostParams): Promise<CostPrediction>;
|
|
411
|
+
/** GET /api/v1/routing/mirror-adoption-report — how a mirror-tested candidate model compared. Reported only; changes nothing. */
|
|
412
|
+
getMirrorAdoptionReport(candidateModel: string): Promise<MirrorAdoptionReport>;
|
|
128
413
|
}
|
|
129
414
|
//# sourceMappingURL=control-plane.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-plane.d.ts","sourceRoot":"","sources":["../src/control-plane.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,6BAA6B,EAC7B,6BAA6B,EAC7B,eAAe,EACf,eAAe,EACf,IAAI,EACJ,SAAS,EACT,qBAAqB,EACrB,qBAAqB,EACrB,OAAO,EACP,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAQ;gBAEX,OAAO,EAAE,yBAAyB;YAShC,OAAO;IAuBrB,0BAA0B;IACb,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;IA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