@claudexor/schema 3.1.2 → 3.3.7-rc.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/dist/agent-capabilities.d.ts +157 -129
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +3 -1
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +472 -273
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +25 -1
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +17 -17
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +1 -1
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +475 -475
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/budget.d.ts +59 -59
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +1 -1
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +320 -316
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +26 -19
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +38 -38
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/context.js.map +1 -1
- package/dist/control-auth-route.d.ts +46 -0
- package/dist/control-auth-route.d.ts.map +1 -0
- package/dist/control-auth-route.js +24 -0
- package/dist/control-auth-route.js.map +1 -0
- package/dist/control-gc.d.ts +15 -15
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +1 -1
- package/dist/control-gc.js.map +1 -1
- package/dist/control-harness-list.d.ts +896 -0
- package/dist/control-harness-list.d.ts.map +1 -0
- package/dist/control-harness-list.js +13 -0
- package/dist/control-harness-list.js.map +1 -0
- package/dist/control-operation-responses.d.ts +644 -629
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +5 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +2229 -1569
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +46 -2
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-failure.d.ts +57 -0
- package/dist/control-run-failure.d.ts.map +1 -0
- package/dist/control-run-failure.js +89 -0
- package/dist/control-run-failure.js.map +1 -0
- package/dist/control-run-retry.d.ts +16 -16
- package/dist/control-run-retry.d.ts.map +1 -1
- package/dist/control-run-retry.js +1 -1
- package/dist/control-run-retry.js.map +1 -1
- package/dist/control-run-scope.d.ts +19 -2
- package/dist/control-run-scope.d.ts.map +1 -1
- package/dist/control-run-scope.js +22 -1
- package/dist/control-run-scope.js.map +1 -1
- package/dist/control-secret.d.ts +7 -7
- package/dist/control-secret.d.ts.map +1 -1
- package/dist/control-secret.js +1 -1
- package/dist/control-secret.js.map +1 -1
- package/dist/control-thread-apply.d.ts +65 -65
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control-thread-apply.js +1 -1
- package/dist/control-thread-apply.js.map +1 -1
- package/dist/control-trust.d.ts +23 -23
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +1 -1
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1551 -2385
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +29 -107
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +3206 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -0
- package/dist/credential-profile-snapshot.js +28 -0
- package/dist/credential-profile-snapshot.js.map +1 -0
- package/dist/credential-profile.d.ts +170 -107
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +24 -7
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +121 -121
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +2 -1
- package/dist/decision.js.map +1 -1
- package/dist/deep-scan.d.ts +5 -5
- package/dist/deep-scan.d.ts.map +1 -1
- package/dist/deep-scan.js +1 -1
- package/dist/deep-scan.js.map +1 -1
- package/dist/delegation.d.ts +13 -13
- package/dist/delegation.d.ts.map +1 -1
- package/dist/delegation.js +1 -1
- package/dist/delegation.js.map +1 -1
- package/dist/delivery.d.ts +32 -32
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +1 -1
- package/dist/delivery.js.map +1 -1
- package/dist/effort.d.ts +1 -1
- package/dist/effort.d.ts.map +1 -1
- package/dist/effort.js +1 -1
- package/dist/effort.js.map +1 -1
- package/dist/events.d.ts +55 -35
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +20 -1
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +7 -7
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +1 -1
- package/dist/gate.js.map +1 -1
- package/dist/git-capability.d.ts +23 -0
- package/dist/git-capability.d.ts.map +1 -0
- package/dist/git-capability.js +15 -0
- package/dist/git-capability.js.map +1 -0
- package/dist/harness-confinement.d.ts +64 -0
- package/dist/harness-confinement.d.ts.map +1 -0
- package/dist/harness-confinement.js +64 -0
- package/dist/harness-confinement.js.map +1 -0
- package/dist/harness.d.ts +428 -408
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +15 -26
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +10 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +2 -0
- package/dist/interaction.js.map +1 -0
- package/dist/operation.d.ts +113 -113
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +1 -1
- package/dist/operation.js.map +1 -1
- package/dist/output-schema-dialect.d.ts +1 -1
- package/dist/output-schema-dialect.d.ts.map +1 -1
- package/dist/output-schema-dialect.js +1 -1
- package/dist/output-schema-dialect.js.map +1 -1
- package/dist/output-schema.d.ts +2 -2
- package/dist/output-schema.js +2 -2
- package/dist/plan.d.ts +29 -29
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +2 -2
- package/dist/plan.js.map +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +1 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +6 -6
- package/dist/problem.d.ts.map +1 -1
- package/dist/problem.js +1 -1
- package/dist/problem.js.map +1 -1
- package/dist/project.d.ts +87 -25
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +21 -1
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +51 -51
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +6 -1
- package/dist/quota.js.map +1 -1
- package/dist/raw.d.ts +16 -16
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +1 -1
- package/dist/raw.js.map +1 -1
- package/dist/readiness.d.ts +242 -242
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +1 -1
- package/dist/readiness.js.map +1 -1
- package/dist/recovery.d.ts +106 -106
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +1 -1
- package/dist/recovery.js.map +1 -1
- package/dist/request-requirements.d.ts +9 -9
- package/dist/request-requirements.d.ts.map +1 -1
- package/dist/request-requirements.js +1 -1
- package/dist/request-requirements.js.map +1 -1
- package/dist/review.d.ts +29 -29
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +1 -1
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +11 -11
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +1 -1
- package/dist/route.js.map +1 -1
- package/dist/run-applicability.d.ts +764 -0
- package/dist/run-applicability.d.ts.map +1 -0
- package/dist/run-applicability.js +56 -0
- package/dist/run-applicability.js.map +1 -0
- package/dist/run-facts.d.ts +628 -0
- package/dist/run-facts.d.ts.map +1 -0
- package/dist/run-facts.js +429 -0
- package/dist/run-facts.js.map +1 -0
- package/dist/run-strategy.d.ts +40 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +68 -1
- package/dist/run-strategy.js.map +1 -1
- package/dist/setup-device-code-envelope.d.ts +67 -0
- package/dist/setup-device-code-envelope.d.ts.map +1 -0
- package/dist/setup-device-code-envelope.js +25 -0
- package/dist/setup-device-code-envelope.js.map +1 -0
- package/dist/setup-login-protocol.d.ts +6 -0
- package/dist/setup-login-protocol.d.ts.map +1 -0
- package/dist/setup-login-protocol.js +12 -0
- package/dist/setup-login-protocol.js.map +1 -0
- package/dist/setup-transport.d.ts +12 -0
- package/dist/setup-transport.d.ts.map +1 -0
- package/dist/setup-transport.js +22 -0
- package/dist/setup-transport.js.map +1 -0
- package/dist/setup.d.ts +12572 -3749
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +34 -38
- package/dist/setup.js.map +1 -1
- package/dist/status-projection.d.ts +7 -5
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +11 -6
- package/dist/status-projection.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +10 -1
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +303 -303
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +1 -1
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +1157 -633
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +7 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +133 -84
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +21 -2
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +7 -7
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +1 -1
- package/dist/tool-ref.js.map +1 -1
- package/dist/work-report.d.ts +28 -28
- package/dist/work-report.d.ts.map +1 -1
- package/dist/work-report.js +3 -3
- package/dist/work-report.js.map +1 -1
- package/dist/workproduct.d.ts +6 -9
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js +1 -2
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +13 -13
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +1 -1
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +41 -0
- package/generated/ControlCredentialProfileCreateResponse.schema.json +10 -1
- package/generated/ControlCredentialProfileUpdateResponse.schema.json +10 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +1343 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +20 -3
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1322 -0
- package/generated/ControlDirectoryEntry.schema.json +36 -0
- package/generated/ControlDirectoryListing.schema.json +77 -0
- package/generated/ControlHarnessListResponse.schema.json +41 -1
- package/generated/ControlQuotaResponse.schema.json +2 -1
- package/generated/ControlRunAgainDraft.schema.json +12 -2
- package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
- package/generated/ControlRunDetail.schema.json +494 -69
- package/generated/ControlRunListResponse.schema.json +30 -4
- package/generated/ControlRunStartRequest.schema.json +12 -2
- package/generated/ControlRunSummary.schema.json +30 -4
- package/generated/ControlSettingsSnapshot.schema.json +12 -3
- package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
- package/generated/ControlSetupJob.schema.json +9 -0
- package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
- package/generated/ControlSetupJobEvent.schema.json +858 -758
- package/generated/ControlSetupJobListResponse.schema.json +9 -0
- package/generated/ControlSetupJobSnapshot.schema.json +811 -736
- package/generated/ControlThreadCreateRequest.schema.json +5 -0
- package/generated/ControlThreadDetail.schema.json +31 -1
- package/generated/ControlThreadTurnRequest.schema.json +5 -24
- package/generated/CredentialProfileStatus.schema.json +10 -1
- package/generated/DecisionRecord.schema.json +2 -1
- package/generated/GitCapability.schema.json +46 -0
- package/generated/GlobalConfig.schema.json +13 -4
- package/generated/HarnessEvent.schema.json +2 -1
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/McpRunHandleResult.schema.json +182 -1
- package/generated/McpRunToolResult.schema.json +182 -1
- package/generated/OutputReadyPayload.schema.json +44 -0
- package/generated/RunFacts.schema.json +569 -0
- package/generated/RunFailure.schema.json +19 -2
- package/generated/RunTelemetry.schema.json +492 -2
- package/generated/ThreadTurn.schema.json +29 -0
- package/generated/WorkProduct.schema.json +0 -4
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-profile-snapshot.d.ts","sourceRoot":"","sources":["../src/credential-profile-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B;+EAC+E;AAC/E,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqC,CAAC;AACzF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,sCAAsC,CAC9C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import { ControlCredentialProfilesResponse } from "./credential-profile.js";
|
|
3
|
+
import { GitCapability } from "./git-capability.js";
|
|
4
|
+
import { ControlQuotaResponse } from "./quota.js";
|
|
5
|
+
import { HarnessStatusDto } from "./readiness.js";
|
|
6
|
+
/** Opt-in atomic Accounts snapshot (`GET /credential-profiles?snapshot=true`).
|
|
7
|
+
* The legacy response stays byte/shape compatible for older strict clients. */
|
|
8
|
+
export const ControlCredentialProfilesSnapshotResponse = ControlCredentialProfilesResponse.extend({
|
|
9
|
+
harnesses: z
|
|
10
|
+
.array(HarnessStatusDto)
|
|
11
|
+
.describe("Fresh harness readiness used for the account next-up projection."),
|
|
12
|
+
git: GitCapability.describe("Git readiness from the same Accounts refresh cycle."),
|
|
13
|
+
quota: ControlQuotaResponse.describe("Fresh quota response used to compute next-up in this exact Accounts snapshot epoch."),
|
|
14
|
+
quotaEventCursor: z
|
|
15
|
+
.string()
|
|
16
|
+
.min(1)
|
|
17
|
+
.max(4096)
|
|
18
|
+
.describe("Opaque global-journal cursor fencing the returned quota response; pass it verbatim as Last-Event-ID only for the dedicated quota event observer, never the general stream."),
|
|
19
|
+
})
|
|
20
|
+
.strict()
|
|
21
|
+
.describe("Atomic Accounts snapshot: profiles, next-up authority, fresh harness readiness, Git capability, and quota from one server-authored epoch.");
|
|
22
|
+
/** Operation-catalog response contract for the query-shaped endpoint. The
|
|
23
|
+
* actual route selects exactly one member from the validated `snapshot` query;
|
|
24
|
+
* this union keeps discovery/docs honest without changing the legacy shape. */
|
|
25
|
+
export const ControlCredentialProfilesQueryResponse = z
|
|
26
|
+
.union([ControlCredentialProfilesResponse, ControlCredentialProfilesSnapshotResponse])
|
|
27
|
+
.describe("Legacy credential-profile listing or the opt-in atomic Accounts snapshot.");
|
|
28
|
+
//# sourceMappingURL=credential-profile-snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-profile-snapshot.js","sourceRoot":"","sources":["../src/credential-profile-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD;+EAC+E;AAC/E,MAAM,CAAC,MAAM,yCAAyC,GAAG,iCAAiC,CAAC,MAAM,CAAC;IAChG,SAAS,EAAE,CAAC;SACT,KAAK,CAAC,gBAAgB,CAAC;SACvB,QAAQ,CAAC,kEAAkE,CAAC;IAC/E,GAAG,EAAE,aAAa,CAAC,QAAQ,CAAC,qDAAqD,CAAC;IAClF,KAAK,EAAE,oBAAoB,CAAC,QAAQ,CAClC,qFAAqF,CACtF;IACD,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,IAAI,CAAC;SACT,QAAQ,CACP,4KAA4K,CAC7K;CACJ,CAAC;KACC,MAAM,EAAE;KACR,QAAQ,CACP,2IAA2I,CAC5I,CAAC;AAKJ;;+EAE+E;AAC/E,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC;KACpD,KAAK,CAAC,CAAC,iCAAiC,EAAE,yCAAyC,CAAC,CAAC;KACrF,QAAQ,CAAC,2EAA2E,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
/**
|
|
3
3
|
* The credential transport a profile isolates (INV-135). `config_dir_login` is
|
|
4
4
|
* a vendor-owned login living in a Claudexor-scoped config dir (claude
|
|
@@ -71,20 +71,30 @@ export declare const CredentialProfileStatus: z.ZodObject<{
|
|
|
71
71
|
harness_id: z.ZodString;
|
|
72
72
|
availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
|
|
73
73
|
verification: z.ZodEnum<["passed", "failed", "not_run"]>;
|
|
74
|
+
/** WHAT the `verification` verdict is worth. `local_store` means only that
|
|
75
|
+
* this profile's own credential material is present and well-formed where
|
|
76
|
+
* it should be — it cannot tell a live token from a revoked one.
|
|
77
|
+
* `vendor` means the vendor itself answered a request made with THIS
|
|
78
|
+
* profile's credential. A router that needs "configured AND healthy" must
|
|
79
|
+
* read this alongside `verification`; `passed` + `local_store` promises
|
|
80
|
+
* strictly less than it sounds. */
|
|
81
|
+
verification_source: z.ZodDefault<z.ZodEnum<["local_store", "vendor"]>>;
|
|
74
82
|
detail: z.ZodOptional<z.ZodString>;
|
|
75
83
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
76
84
|
}, "strict", z.ZodTypeAny, {
|
|
77
|
-
availability: "unknown" | "available" | "unavailable";
|
|
78
|
-
verification: "passed" | "failed" | "not_run";
|
|
79
85
|
profile_id: string;
|
|
80
86
|
harness_id: string;
|
|
81
|
-
|
|
87
|
+
availability: "available" | "unavailable" | "unknown";
|
|
88
|
+
verification: "failed" | "not_run" | "passed";
|
|
89
|
+
verification_source: "local_store" | "vendor";
|
|
82
90
|
detail?: string | undefined;
|
|
91
|
+
last_verified_at: string | null;
|
|
83
92
|
}, {
|
|
84
|
-
availability: "unknown" | "available" | "unavailable";
|
|
85
|
-
verification: "passed" | "failed" | "not_run";
|
|
86
93
|
profile_id: string;
|
|
87
94
|
harness_id: string;
|
|
95
|
+
availability: "available" | "unavailable" | "unknown";
|
|
96
|
+
verification: "failed" | "not_run" | "passed";
|
|
97
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
88
98
|
detail?: string | undefined;
|
|
89
99
|
last_verified_at?: string | null | undefined;
|
|
90
100
|
}>;
|
|
@@ -103,11 +113,11 @@ export declare const AccountIdentity: z.ZodObject<{
|
|
|
103
113
|
email: z.ZodOptional<z.ZodString>;
|
|
104
114
|
plan: z.ZodOptional<z.ZodString>;
|
|
105
115
|
}, "strict", z.ZodTypeAny, {
|
|
106
|
-
plan?: string | undefined;
|
|
107
116
|
email?: string | undefined;
|
|
108
|
-
}, {
|
|
109
117
|
plan?: string | undefined;
|
|
118
|
+
}, {
|
|
110
119
|
email?: string | undefined;
|
|
120
|
+
plan?: string | undefined;
|
|
111
121
|
}>;
|
|
112
122
|
export type AccountIdentity = z.infer<typeof AccountIdentity>;
|
|
113
123
|
/**
|
|
@@ -115,8 +125,8 @@ export type AccountIdentity = z.infer<typeof AccountIdentity>;
|
|
|
115
125
|
* purely informational, never user-set. Server-computed by the routing owner
|
|
116
126
|
* from enabled profiles + native readiness + quota so no surface re-derives it:
|
|
117
127
|
* `profile` names the enabled credential profile a quota-rotation would land on;
|
|
118
|
-
* `native` is the
|
|
119
|
-
* means an unpinned run has nothing routable (the
|
|
128
|
+
* `native` is the existing unprofiled/default subject (normally the CLI login,
|
|
129
|
+
* or the configured key for an API-only harness); `none` means an unpinned run has nothing routable (the default is disabled and no
|
|
120
130
|
* account is pinned) with a human reason. Explicit control stays a per-run
|
|
121
131
|
* `--profile` pin or a per-thread pin — this field never gates routing.
|
|
122
132
|
*/
|
|
@@ -131,10 +141,13 @@ export declare const ControlNextUpIdentity: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
131
141
|
profileId: string;
|
|
132
142
|
}>, z.ZodObject<{
|
|
133
143
|
kind: z.ZodLiteral<"native">;
|
|
144
|
+
route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
|
|
134
145
|
}, "strict", z.ZodTypeAny, {
|
|
135
146
|
kind: "native";
|
|
147
|
+
route?: "api_key" | "local_session" | undefined;
|
|
136
148
|
}, {
|
|
137
149
|
kind: "native";
|
|
150
|
+
route?: "api_key" | "local_session" | undefined;
|
|
138
151
|
}>, z.ZodObject<{
|
|
139
152
|
kind: z.ZodLiteral<"none">;
|
|
140
153
|
reason: z.ZodString;
|
|
@@ -162,11 +175,11 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
162
175
|
email: z.ZodOptional<z.ZodString>;
|
|
163
176
|
plan: z.ZodOptional<z.ZodString>;
|
|
164
177
|
}, "strict", z.ZodTypeAny, {
|
|
165
|
-
plan?: string | undefined;
|
|
166
178
|
email?: string | undefined;
|
|
167
|
-
}, {
|
|
168
179
|
plan?: string | undefined;
|
|
180
|
+
}, {
|
|
169
181
|
email?: string | undefined;
|
|
182
|
+
plan?: string | undefined;
|
|
170
183
|
}>>>;
|
|
171
184
|
next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
172
185
|
kind: z.ZodLiteral<"profile">;
|
|
@@ -179,10 +192,13 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
179
192
|
profileId: string;
|
|
180
193
|
}>, z.ZodObject<{
|
|
181
194
|
kind: z.ZodLiteral<"native">;
|
|
195
|
+
route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
|
|
182
196
|
}, "strict", z.ZodTypeAny, {
|
|
183
197
|
kind: "native";
|
|
198
|
+
route?: "api_key" | "local_session" | undefined;
|
|
184
199
|
}, {
|
|
185
200
|
kind: "native";
|
|
201
|
+
route?: "api_key" | "local_session" | undefined;
|
|
186
202
|
}>, z.ZodObject<{
|
|
187
203
|
kind: z.ZodLiteral<"none">;
|
|
188
204
|
reason: z.ZodString;
|
|
@@ -198,14 +214,15 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
198
214
|
native_credentials_enabled: boolean;
|
|
199
215
|
native_login_detected: boolean;
|
|
200
216
|
identity: {
|
|
201
|
-
plan?: string | undefined;
|
|
202
217
|
email?: string | undefined;
|
|
218
|
+
plan?: string | undefined;
|
|
203
219
|
} | null;
|
|
204
220
|
next_up: {
|
|
205
221
|
kind: "profile";
|
|
206
222
|
profileId: string;
|
|
207
223
|
} | {
|
|
208
224
|
kind: "native";
|
|
225
|
+
route?: "api_key" | "local_session" | undefined;
|
|
209
226
|
} | {
|
|
210
227
|
kind: "none";
|
|
211
228
|
reason: string;
|
|
@@ -214,19 +231,20 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
214
231
|
harness_id: string;
|
|
215
232
|
native_credentials_enabled: boolean;
|
|
216
233
|
native_login_detected: boolean;
|
|
234
|
+
identity?: {
|
|
235
|
+
email?: string | undefined;
|
|
236
|
+
plan?: string | undefined;
|
|
237
|
+
} | null | undefined;
|
|
217
238
|
next_up: {
|
|
218
239
|
kind: "profile";
|
|
219
240
|
profileId: string;
|
|
220
241
|
} | {
|
|
221
242
|
kind: "native";
|
|
243
|
+
route?: "api_key" | "local_session" | undefined;
|
|
222
244
|
} | {
|
|
223
245
|
kind: "none";
|
|
224
246
|
reason: string;
|
|
225
247
|
};
|
|
226
|
-
identity?: {
|
|
227
|
-
plan?: string | undefined;
|
|
228
|
-
email?: string | undefined;
|
|
229
|
-
} | null | undefined;
|
|
230
248
|
}>;
|
|
231
249
|
export type ControlHarnessAccounts = z.infer<typeof ControlHarnessAccounts>;
|
|
232
250
|
/** Control response: every registered profile with its doctor projection, plus
|
|
@@ -284,20 +302,30 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
284
302
|
harness_id: z.ZodString;
|
|
285
303
|
availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
|
|
286
304
|
verification: z.ZodEnum<["passed", "failed", "not_run"]>;
|
|
305
|
+
/** WHAT the `verification` verdict is worth. `local_store` means only that
|
|
306
|
+
* this profile's own credential material is present and well-formed where
|
|
307
|
+
* it should be — it cannot tell a live token from a revoked one.
|
|
308
|
+
* `vendor` means the vendor itself answered a request made with THIS
|
|
309
|
+
* profile's credential. A router that needs "configured AND healthy" must
|
|
310
|
+
* read this alongside `verification`; `passed` + `local_store` promises
|
|
311
|
+
* strictly less than it sounds. */
|
|
312
|
+
verification_source: z.ZodDefault<z.ZodEnum<["local_store", "vendor"]>>;
|
|
287
313
|
detail: z.ZodOptional<z.ZodString>;
|
|
288
314
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
289
315
|
}, "strict", z.ZodTypeAny, {
|
|
290
|
-
availability: "unknown" | "available" | "unavailable";
|
|
291
|
-
verification: "passed" | "failed" | "not_run";
|
|
292
316
|
profile_id: string;
|
|
293
317
|
harness_id: string;
|
|
294
|
-
|
|
318
|
+
availability: "available" | "unavailable" | "unknown";
|
|
319
|
+
verification: "failed" | "not_run" | "passed";
|
|
320
|
+
verification_source: "local_store" | "vendor";
|
|
295
321
|
detail?: string | undefined;
|
|
322
|
+
last_verified_at: string | null;
|
|
296
323
|
}, {
|
|
297
|
-
availability: "unknown" | "available" | "unavailable";
|
|
298
|
-
verification: "passed" | "failed" | "not_run";
|
|
299
324
|
profile_id: string;
|
|
300
325
|
harness_id: string;
|
|
326
|
+
availability: "available" | "unavailable" | "unknown";
|
|
327
|
+
verification: "failed" | "not_run" | "passed";
|
|
328
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
301
329
|
detail?: string | undefined;
|
|
302
330
|
last_verified_at?: string | null | undefined;
|
|
303
331
|
}>;
|
|
@@ -305,21 +333,13 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
305
333
|
email: z.ZodOptional<z.ZodString>;
|
|
306
334
|
plan: z.ZodOptional<z.ZodString>;
|
|
307
335
|
}, "strict", z.ZodTypeAny, {
|
|
308
|
-
plan?: string | undefined;
|
|
309
336
|
email?: string | undefined;
|
|
310
|
-
}, {
|
|
311
337
|
plan?: string | undefined;
|
|
338
|
+
}, {
|
|
312
339
|
email?: string | undefined;
|
|
340
|
+
plan?: string | undefined;
|
|
313
341
|
}>>>;
|
|
314
342
|
}, "strict", z.ZodTypeAny, {
|
|
315
|
-
status: {
|
|
316
|
-
availability: "unknown" | "available" | "unavailable";
|
|
317
|
-
verification: "passed" | "failed" | "not_run";
|
|
318
|
-
profile_id: string;
|
|
319
|
-
harness_id: string;
|
|
320
|
-
last_verified_at: string | null;
|
|
321
|
-
detail?: string | undefined;
|
|
322
|
-
};
|
|
323
343
|
profile: {
|
|
324
344
|
profile_id: string;
|
|
325
345
|
harness_id: string;
|
|
@@ -330,19 +350,20 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
330
350
|
enabled: boolean;
|
|
331
351
|
created_at: string | null;
|
|
332
352
|
};
|
|
333
|
-
identity: {
|
|
334
|
-
plan?: string | undefined;
|
|
335
|
-
email?: string | undefined;
|
|
336
|
-
} | null;
|
|
337
|
-
}, {
|
|
338
353
|
status: {
|
|
339
|
-
availability: "unknown" | "available" | "unavailable";
|
|
340
|
-
verification: "passed" | "failed" | "not_run";
|
|
341
354
|
profile_id: string;
|
|
342
355
|
harness_id: string;
|
|
356
|
+
availability: "available" | "unavailable" | "unknown";
|
|
357
|
+
verification: "failed" | "not_run" | "passed";
|
|
358
|
+
verification_source: "local_store" | "vendor";
|
|
343
359
|
detail?: string | undefined;
|
|
344
|
-
last_verified_at
|
|
360
|
+
last_verified_at: string | null;
|
|
345
361
|
};
|
|
362
|
+
identity: {
|
|
363
|
+
email?: string | undefined;
|
|
364
|
+
plan?: string | undefined;
|
|
365
|
+
} | null;
|
|
366
|
+
}, {
|
|
346
367
|
profile: {
|
|
347
368
|
profile_id: string;
|
|
348
369
|
harness_id: string;
|
|
@@ -353,9 +374,18 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
353
374
|
enabled?: boolean | undefined;
|
|
354
375
|
created_at?: string | null | undefined;
|
|
355
376
|
};
|
|
377
|
+
status: {
|
|
378
|
+
profile_id: string;
|
|
379
|
+
harness_id: string;
|
|
380
|
+
availability: "available" | "unavailable" | "unknown";
|
|
381
|
+
verification: "failed" | "not_run" | "passed";
|
|
382
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
383
|
+
detail?: string | undefined;
|
|
384
|
+
last_verified_at?: string | null | undefined;
|
|
385
|
+
};
|
|
356
386
|
identity?: {
|
|
357
|
-
plan?: string | undefined;
|
|
358
387
|
email?: string | undefined;
|
|
388
|
+
plan?: string | undefined;
|
|
359
389
|
} | null | undefined;
|
|
360
390
|
}>, "many">;
|
|
361
391
|
harnessAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -366,11 +396,11 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
366
396
|
email: z.ZodOptional<z.ZodString>;
|
|
367
397
|
plan: z.ZodOptional<z.ZodString>;
|
|
368
398
|
}, "strict", z.ZodTypeAny, {
|
|
369
|
-
plan?: string | undefined;
|
|
370
399
|
email?: string | undefined;
|
|
371
|
-
}, {
|
|
372
400
|
plan?: string | undefined;
|
|
401
|
+
}, {
|
|
373
402
|
email?: string | undefined;
|
|
403
|
+
plan?: string | undefined;
|
|
374
404
|
}>>>;
|
|
375
405
|
next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
376
406
|
kind: z.ZodLiteral<"profile">;
|
|
@@ -383,10 +413,13 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
383
413
|
profileId: string;
|
|
384
414
|
}>, z.ZodObject<{
|
|
385
415
|
kind: z.ZodLiteral<"native">;
|
|
416
|
+
route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
|
|
386
417
|
}, "strict", z.ZodTypeAny, {
|
|
387
418
|
kind: "native";
|
|
419
|
+
route?: "api_key" | "local_session" | undefined;
|
|
388
420
|
}, {
|
|
389
421
|
kind: "native";
|
|
422
|
+
route?: "api_key" | "local_session" | undefined;
|
|
390
423
|
}>, z.ZodObject<{
|
|
391
424
|
kind: z.ZodLiteral<"none">;
|
|
392
425
|
reason: z.ZodString;
|
|
@@ -402,14 +435,15 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
402
435
|
native_credentials_enabled: boolean;
|
|
403
436
|
native_login_detected: boolean;
|
|
404
437
|
identity: {
|
|
405
|
-
plan?: string | undefined;
|
|
406
438
|
email?: string | undefined;
|
|
439
|
+
plan?: string | undefined;
|
|
407
440
|
} | null;
|
|
408
441
|
next_up: {
|
|
409
442
|
kind: "profile";
|
|
410
443
|
profileId: string;
|
|
411
444
|
} | {
|
|
412
445
|
kind: "native";
|
|
446
|
+
route?: "api_key" | "local_session" | undefined;
|
|
413
447
|
} | {
|
|
414
448
|
kind: "none";
|
|
415
449
|
reason: string;
|
|
@@ -418,30 +452,23 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
418
452
|
harness_id: string;
|
|
419
453
|
native_credentials_enabled: boolean;
|
|
420
454
|
native_login_detected: boolean;
|
|
455
|
+
identity?: {
|
|
456
|
+
email?: string | undefined;
|
|
457
|
+
plan?: string | undefined;
|
|
458
|
+
} | null | undefined;
|
|
421
459
|
next_up: {
|
|
422
460
|
kind: "profile";
|
|
423
461
|
profileId: string;
|
|
424
462
|
} | {
|
|
425
463
|
kind: "native";
|
|
464
|
+
route?: "api_key" | "local_session" | undefined;
|
|
426
465
|
} | {
|
|
427
466
|
kind: "none";
|
|
428
467
|
reason: string;
|
|
429
468
|
};
|
|
430
|
-
identity?: {
|
|
431
|
-
plan?: string | undefined;
|
|
432
|
-
email?: string | undefined;
|
|
433
|
-
} | null | undefined;
|
|
434
469
|
}>, "many">>;
|
|
435
470
|
}, "strict", z.ZodTypeAny, {
|
|
436
471
|
profiles: {
|
|
437
|
-
status: {
|
|
438
|
-
availability: "unknown" | "available" | "unavailable";
|
|
439
|
-
verification: "passed" | "failed" | "not_run";
|
|
440
|
-
profile_id: string;
|
|
441
|
-
harness_id: string;
|
|
442
|
-
last_verified_at: string | null;
|
|
443
|
-
detail?: string | undefined;
|
|
444
|
-
};
|
|
445
472
|
profile: {
|
|
446
473
|
profile_id: string;
|
|
447
474
|
harness_id: string;
|
|
@@ -452,9 +479,18 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
452
479
|
enabled: boolean;
|
|
453
480
|
created_at: string | null;
|
|
454
481
|
};
|
|
482
|
+
status: {
|
|
483
|
+
profile_id: string;
|
|
484
|
+
harness_id: string;
|
|
485
|
+
availability: "available" | "unavailable" | "unknown";
|
|
486
|
+
verification: "failed" | "not_run" | "passed";
|
|
487
|
+
verification_source: "local_store" | "vendor";
|
|
488
|
+
detail?: string | undefined;
|
|
489
|
+
last_verified_at: string | null;
|
|
490
|
+
};
|
|
455
491
|
identity: {
|
|
456
|
-
plan?: string | undefined;
|
|
457
492
|
email?: string | undefined;
|
|
493
|
+
plan?: string | undefined;
|
|
458
494
|
} | null;
|
|
459
495
|
}[];
|
|
460
496
|
harnessAccounts: {
|
|
@@ -462,14 +498,15 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
462
498
|
native_credentials_enabled: boolean;
|
|
463
499
|
native_login_detected: boolean;
|
|
464
500
|
identity: {
|
|
465
|
-
plan?: string | undefined;
|
|
466
501
|
email?: string | undefined;
|
|
502
|
+
plan?: string | undefined;
|
|
467
503
|
} | null;
|
|
468
504
|
next_up: {
|
|
469
505
|
kind: "profile";
|
|
470
506
|
profileId: string;
|
|
471
507
|
} | {
|
|
472
508
|
kind: "native";
|
|
509
|
+
route?: "api_key" | "local_session" | undefined;
|
|
473
510
|
} | {
|
|
474
511
|
kind: "none";
|
|
475
512
|
reason: string;
|
|
@@ -477,14 +514,6 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
477
514
|
}[];
|
|
478
515
|
}, {
|
|
479
516
|
profiles: {
|
|
480
|
-
status: {
|
|
481
|
-
availability: "unknown" | "available" | "unavailable";
|
|
482
|
-
verification: "passed" | "failed" | "not_run";
|
|
483
|
-
profile_id: string;
|
|
484
|
-
harness_id: string;
|
|
485
|
-
detail?: string | undefined;
|
|
486
|
-
last_verified_at?: string | null | undefined;
|
|
487
|
-
};
|
|
488
517
|
profile: {
|
|
489
518
|
profile_id: string;
|
|
490
519
|
harness_id: string;
|
|
@@ -495,28 +524,38 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
495
524
|
enabled?: boolean | undefined;
|
|
496
525
|
created_at?: string | null | undefined;
|
|
497
526
|
};
|
|
527
|
+
status: {
|
|
528
|
+
profile_id: string;
|
|
529
|
+
harness_id: string;
|
|
530
|
+
availability: "available" | "unavailable" | "unknown";
|
|
531
|
+
verification: "failed" | "not_run" | "passed";
|
|
532
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
533
|
+
detail?: string | undefined;
|
|
534
|
+
last_verified_at?: string | null | undefined;
|
|
535
|
+
};
|
|
498
536
|
identity?: {
|
|
499
|
-
plan?: string | undefined;
|
|
500
537
|
email?: string | undefined;
|
|
538
|
+
plan?: string | undefined;
|
|
501
539
|
} | null | undefined;
|
|
502
540
|
}[];
|
|
503
541
|
harnessAccounts?: {
|
|
504
542
|
harness_id: string;
|
|
505
543
|
native_credentials_enabled: boolean;
|
|
506
544
|
native_login_detected: boolean;
|
|
545
|
+
identity?: {
|
|
546
|
+
email?: string | undefined;
|
|
547
|
+
plan?: string | undefined;
|
|
548
|
+
} | null | undefined;
|
|
507
549
|
next_up: {
|
|
508
550
|
kind: "profile";
|
|
509
551
|
profileId: string;
|
|
510
552
|
} | {
|
|
511
553
|
kind: "native";
|
|
554
|
+
route?: "api_key" | "local_session" | undefined;
|
|
512
555
|
} | {
|
|
513
556
|
kind: "none";
|
|
514
557
|
reason: string;
|
|
515
558
|
};
|
|
516
|
-
identity?: {
|
|
517
|
-
plan?: string | undefined;
|
|
518
|
-
email?: string | undefined;
|
|
519
|
-
} | null | undefined;
|
|
520
559
|
}[] | undefined;
|
|
521
560
|
}>;
|
|
522
561
|
export type ControlCredentialProfilesResponse = z.infer<typeof ControlCredentialProfilesResponse>;
|
|
@@ -585,32 +624,34 @@ export declare const ControlCredentialProfileUpdateResponse: z.ZodObject<{
|
|
|
585
624
|
harness_id: z.ZodString;
|
|
586
625
|
availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
|
|
587
626
|
verification: z.ZodEnum<["passed", "failed", "not_run"]>;
|
|
627
|
+
/** WHAT the `verification` verdict is worth. `local_store` means only that
|
|
628
|
+
* this profile's own credential material is present and well-formed where
|
|
629
|
+
* it should be — it cannot tell a live token from a revoked one.
|
|
630
|
+
* `vendor` means the vendor itself answered a request made with THIS
|
|
631
|
+
* profile's credential. A router that needs "configured AND healthy" must
|
|
632
|
+
* read this alongside `verification`; `passed` + `local_store` promises
|
|
633
|
+
* strictly less than it sounds. */
|
|
634
|
+
verification_source: z.ZodDefault<z.ZodEnum<["local_store", "vendor"]>>;
|
|
588
635
|
detail: z.ZodOptional<z.ZodString>;
|
|
589
636
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
590
637
|
}, "strict", z.ZodTypeAny, {
|
|
591
|
-
availability: "unknown" | "available" | "unavailable";
|
|
592
|
-
verification: "passed" | "failed" | "not_run";
|
|
593
638
|
profile_id: string;
|
|
594
639
|
harness_id: string;
|
|
595
|
-
|
|
640
|
+
availability: "available" | "unavailable" | "unknown";
|
|
641
|
+
verification: "failed" | "not_run" | "passed";
|
|
642
|
+
verification_source: "local_store" | "vendor";
|
|
596
643
|
detail?: string | undefined;
|
|
644
|
+
last_verified_at: string | null;
|
|
597
645
|
}, {
|
|
598
|
-
availability: "unknown" | "available" | "unavailable";
|
|
599
|
-
verification: "passed" | "failed" | "not_run";
|
|
600
646
|
profile_id: string;
|
|
601
647
|
harness_id: string;
|
|
648
|
+
availability: "available" | "unavailable" | "unknown";
|
|
649
|
+
verification: "failed" | "not_run" | "passed";
|
|
650
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
602
651
|
detail?: string | undefined;
|
|
603
652
|
last_verified_at?: string | null | undefined;
|
|
604
653
|
}>;
|
|
605
654
|
}, "strict", z.ZodTypeAny, {
|
|
606
|
-
status: {
|
|
607
|
-
availability: "unknown" | "available" | "unavailable";
|
|
608
|
-
verification: "passed" | "failed" | "not_run";
|
|
609
|
-
profile_id: string;
|
|
610
|
-
harness_id: string;
|
|
611
|
-
last_verified_at: string | null;
|
|
612
|
-
detail?: string | undefined;
|
|
613
|
-
};
|
|
614
655
|
profile: {
|
|
615
656
|
profile_id: string;
|
|
616
657
|
harness_id: string;
|
|
@@ -621,15 +662,16 @@ export declare const ControlCredentialProfileUpdateResponse: z.ZodObject<{
|
|
|
621
662
|
enabled: boolean;
|
|
622
663
|
created_at: string | null;
|
|
623
664
|
};
|
|
624
|
-
}, {
|
|
625
665
|
status: {
|
|
626
|
-
availability: "unknown" | "available" | "unavailable";
|
|
627
|
-
verification: "passed" | "failed" | "not_run";
|
|
628
666
|
profile_id: string;
|
|
629
667
|
harness_id: string;
|
|
668
|
+
availability: "available" | "unavailable" | "unknown";
|
|
669
|
+
verification: "failed" | "not_run" | "passed";
|
|
670
|
+
verification_source: "local_store" | "vendor";
|
|
630
671
|
detail?: string | undefined;
|
|
631
|
-
last_verified_at
|
|
672
|
+
last_verified_at: string | null;
|
|
632
673
|
};
|
|
674
|
+
}, {
|
|
633
675
|
profile: {
|
|
634
676
|
profile_id: string;
|
|
635
677
|
harness_id: string;
|
|
@@ -640,6 +682,15 @@ export declare const ControlCredentialProfileUpdateResponse: z.ZodObject<{
|
|
|
640
682
|
enabled?: boolean | undefined;
|
|
641
683
|
created_at?: string | null | undefined;
|
|
642
684
|
};
|
|
685
|
+
status: {
|
|
686
|
+
profile_id: string;
|
|
687
|
+
harness_id: string;
|
|
688
|
+
availability: "available" | "unavailable" | "unknown";
|
|
689
|
+
verification: "failed" | "not_run" | "passed";
|
|
690
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
691
|
+
detail?: string | undefined;
|
|
692
|
+
last_verified_at?: string | null | undefined;
|
|
693
|
+
};
|
|
643
694
|
}>;
|
|
644
695
|
export type ControlCredentialProfileUpdateResponse = z.infer<typeof ControlCredentialProfileUpdateResponse>;
|
|
645
696
|
/** Register a config-dir login profile (claude/codex) from a UI surface —
|
|
@@ -723,7 +774,7 @@ export declare const ControlCredentialProfileDeleteResponse: z.ZodObject<{
|
|
|
723
774
|
created_at: string | null;
|
|
724
775
|
};
|
|
725
776
|
removed: true;
|
|
726
|
-
credentialCleanup: "
|
|
777
|
+
credentialCleanup: "config_dir_removed" | "none" | "secret_deleted";
|
|
727
778
|
cleanupWarning?: string | undefined;
|
|
728
779
|
}, {
|
|
729
780
|
profile: {
|
|
@@ -737,7 +788,7 @@ export declare const ControlCredentialProfileDeleteResponse: z.ZodObject<{
|
|
|
737
788
|
created_at?: string | null | undefined;
|
|
738
789
|
};
|
|
739
790
|
removed: true;
|
|
740
|
-
credentialCleanup: "
|
|
791
|
+
credentialCleanup: "config_dir_removed" | "none" | "secret_deleted";
|
|
741
792
|
cleanupWarning?: string | undefined;
|
|
742
793
|
}>;
|
|
743
794
|
export type ControlCredentialProfileDeleteResponse = z.infer<typeof ControlCredentialProfileDeleteResponse>;
|
|
@@ -793,32 +844,34 @@ export declare const ControlCredentialProfileCreateResponse: z.ZodObject<{
|
|
|
793
844
|
harness_id: z.ZodString;
|
|
794
845
|
availability: z.ZodEnum<["available", "unavailable", "unknown"]>;
|
|
795
846
|
verification: z.ZodEnum<["passed", "failed", "not_run"]>;
|
|
847
|
+
/** WHAT the `verification` verdict is worth. `local_store` means only that
|
|
848
|
+
* this profile's own credential material is present and well-formed where
|
|
849
|
+
* it should be — it cannot tell a live token from a revoked one.
|
|
850
|
+
* `vendor` means the vendor itself answered a request made with THIS
|
|
851
|
+
* profile's credential. A router that needs "configured AND healthy" must
|
|
852
|
+
* read this alongside `verification`; `passed` + `local_store` promises
|
|
853
|
+
* strictly less than it sounds. */
|
|
854
|
+
verification_source: z.ZodDefault<z.ZodEnum<["local_store", "vendor"]>>;
|
|
796
855
|
detail: z.ZodOptional<z.ZodString>;
|
|
797
856
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
798
857
|
}, "strict", z.ZodTypeAny, {
|
|
799
|
-
availability: "unknown" | "available" | "unavailable";
|
|
800
|
-
verification: "passed" | "failed" | "not_run";
|
|
801
858
|
profile_id: string;
|
|
802
859
|
harness_id: string;
|
|
803
|
-
|
|
860
|
+
availability: "available" | "unavailable" | "unknown";
|
|
861
|
+
verification: "failed" | "not_run" | "passed";
|
|
862
|
+
verification_source: "local_store" | "vendor";
|
|
804
863
|
detail?: string | undefined;
|
|
864
|
+
last_verified_at: string | null;
|
|
805
865
|
}, {
|
|
806
|
-
availability: "unknown" | "available" | "unavailable";
|
|
807
|
-
verification: "passed" | "failed" | "not_run";
|
|
808
866
|
profile_id: string;
|
|
809
867
|
harness_id: string;
|
|
868
|
+
availability: "available" | "unavailable" | "unknown";
|
|
869
|
+
verification: "failed" | "not_run" | "passed";
|
|
870
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
810
871
|
detail?: string | undefined;
|
|
811
872
|
last_verified_at?: string | null | undefined;
|
|
812
873
|
}>;
|
|
813
874
|
}, "strict", z.ZodTypeAny, {
|
|
814
|
-
status: {
|
|
815
|
-
availability: "unknown" | "available" | "unavailable";
|
|
816
|
-
verification: "passed" | "failed" | "not_run";
|
|
817
|
-
profile_id: string;
|
|
818
|
-
harness_id: string;
|
|
819
|
-
last_verified_at: string | null;
|
|
820
|
-
detail?: string | undefined;
|
|
821
|
-
};
|
|
822
875
|
profile: {
|
|
823
876
|
profile_id: string;
|
|
824
877
|
harness_id: string;
|
|
@@ -829,15 +882,16 @@ export declare const ControlCredentialProfileCreateResponse: z.ZodObject<{
|
|
|
829
882
|
enabled: boolean;
|
|
830
883
|
created_at: string | null;
|
|
831
884
|
};
|
|
832
|
-
}, {
|
|
833
885
|
status: {
|
|
834
|
-
availability: "unknown" | "available" | "unavailable";
|
|
835
|
-
verification: "passed" | "failed" | "not_run";
|
|
836
886
|
profile_id: string;
|
|
837
887
|
harness_id: string;
|
|
888
|
+
availability: "available" | "unavailable" | "unknown";
|
|
889
|
+
verification: "failed" | "not_run" | "passed";
|
|
890
|
+
verification_source: "local_store" | "vendor";
|
|
838
891
|
detail?: string | undefined;
|
|
839
|
-
last_verified_at
|
|
892
|
+
last_verified_at: string | null;
|
|
840
893
|
};
|
|
894
|
+
}, {
|
|
841
895
|
profile: {
|
|
842
896
|
profile_id: string;
|
|
843
897
|
harness_id: string;
|
|
@@ -848,6 +902,15 @@ export declare const ControlCredentialProfileCreateResponse: z.ZodObject<{
|
|
|
848
902
|
enabled?: boolean | undefined;
|
|
849
903
|
created_at?: string | null | undefined;
|
|
850
904
|
};
|
|
905
|
+
status: {
|
|
906
|
+
profile_id: string;
|
|
907
|
+
harness_id: string;
|
|
908
|
+
availability: "available" | "unavailable" | "unknown";
|
|
909
|
+
verification: "failed" | "not_run" | "passed";
|
|
910
|
+
verification_source?: "local_store" | "vendor" | undefined;
|
|
911
|
+
detail?: string | undefined;
|
|
912
|
+
last_verified_at?: string | null | undefined;
|
|
913
|
+
};
|
|
851
914
|
}>;
|
|
852
915
|
export type ControlCredentialProfileCreateResponse = z.infer<typeof ControlCredentialProfileCreateResponse>;
|
|
853
916
|
//# sourceMappingURL=credential-profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-profile.d.ts","sourceRoot":"","sources":["../src/credential-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"credential-profile.d.ts","sourceRoot":"","sources":["../src/credential-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,2DAIxB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6D3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;IAMhC;;;;;;uCAMmC;;;;;;;;;;;;;;;;;;;;EAe2D,CAAC;AACnG,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;;;;;;;EAoBzB,CAAC;AACJ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuB0D,CAAC;AAC7F,MAAM,MAAM,qBAAqB,GA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