@claudexor/schema 3.1.1 → 3.2.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 +232 -116
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +8 -1
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +513 -222
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +42 -2
- 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 +61 -61
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +3 -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 +691 -590
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +27 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +2663 -920
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +13 -1
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +18 -18
- 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 +2 -2
- package/dist/control-run-scope.d.ts.map +1 -1
- package/dist/control-run-scope.js +1 -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 +1658 -2225
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +43 -73
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +3185 -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 +122 -107
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +12 -6
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +122 -117
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +9 -4
- 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 +73 -0
- package/dist/delegation.d.ts.map +1 -0
- package/dist/delegation.js +120 -0
- package/dist/delegation.js.map +1 -0
- 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 +57 -37
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +23 -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.d.ts +409 -409
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +19 -22
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -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 +1 -1
- 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 +48 -48
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +1 -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 +264 -226
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +5 -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 +12 -12
- package/dist/request-requirements.d.ts.map +1 -1
- package/dist/request-requirements.js +3 -2
- 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 +331 -289
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +12 -1
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +1189 -627
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +13 -13
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +128 -84
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +16 -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 +14 -14
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +8 -8
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +80 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +1333 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +10 -2
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1312 -0
- package/generated/ControlDirectoryEntry.schema.json +36 -0
- package/generated/ControlDirectoryListing.schema.json +77 -0
- package/generated/ControlHarnessListResponse.schema.json +89 -3
- package/generated/ControlRunAgainDraft.schema.json +7 -3
- package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
- package/generated/ControlRunControlResponse.schema.json +8 -0
- package/generated/ControlRunDetail.schema.json +543 -80
- package/generated/ControlRunListResponse.schema.json +104 -11
- package/generated/ControlRunStartRequest.schema.json +7 -3
- package/generated/ControlRunSummary.schema.json +104 -11
- 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/ControlThreadDetail.schema.json +83 -1
- package/generated/ControlThreadTurnRequest.schema.json +2 -25
- package/generated/DecisionRecord.schema.json +12 -2
- 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 +3 -3
- package/generated/HarnessStatusDto.schema.json +49 -3
- package/generated/McpRunHandleResult.schema.json +237 -2
- package/generated/McpRunToolResult.schema.json +234 -1
- package/generated/OutputReadyPayload.schema.json +44 -0
- package/generated/RunEvent.schema.json +1 -0
- package/generated/RunFacts.schema.json +569 -0
- package/generated/RunFailure.schema.json +4 -3
- package/generated/RunTelemetry.schema.json +553 -4
- package/generated/TaskContract.schema.json +43 -3
- package/generated/ThreadTurn.schema.json +17 -0
- package/generated/WorkProduct.schema.json +0 -4
- package/generated/WorkspaceEnvelope.schema.json +6 -6
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-profile-snapshot.d.ts","sourceRoot":"","sources":["../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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
|
|
@@ -74,17 +74,17 @@ export declare const CredentialProfileStatus: z.ZodObject<{
|
|
|
74
74
|
detail: z.ZodOptional<z.ZodString>;
|
|
75
75
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
76
76
|
}, "strict", z.ZodTypeAny, {
|
|
77
|
-
availability: "unknown" | "available" | "unavailable";
|
|
78
|
-
verification: "passed" | "failed" | "not_run";
|
|
79
77
|
profile_id: string;
|
|
80
78
|
harness_id: string;
|
|
81
|
-
|
|
79
|
+
availability: "available" | "unavailable" | "unknown";
|
|
80
|
+
verification: "failed" | "not_run" | "passed";
|
|
82
81
|
detail?: string | undefined;
|
|
82
|
+
last_verified_at: string | null;
|
|
83
83
|
}, {
|
|
84
|
-
availability: "unknown" | "available" | "unavailable";
|
|
85
|
-
verification: "passed" | "failed" | "not_run";
|
|
86
84
|
profile_id: string;
|
|
87
85
|
harness_id: string;
|
|
86
|
+
availability: "available" | "unavailable" | "unknown";
|
|
87
|
+
verification: "failed" | "not_run" | "passed";
|
|
88
88
|
detail?: string | undefined;
|
|
89
89
|
last_verified_at?: string | null | undefined;
|
|
90
90
|
}>;
|
|
@@ -103,11 +103,11 @@ export declare const AccountIdentity: z.ZodObject<{
|
|
|
103
103
|
email: z.ZodOptional<z.ZodString>;
|
|
104
104
|
plan: z.ZodOptional<z.ZodString>;
|
|
105
105
|
}, "strict", z.ZodTypeAny, {
|
|
106
|
-
plan?: string | undefined;
|
|
107
106
|
email?: string | undefined;
|
|
108
|
-
}, {
|
|
109
107
|
plan?: string | undefined;
|
|
108
|
+
}, {
|
|
110
109
|
email?: string | undefined;
|
|
110
|
+
plan?: string | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
export type AccountIdentity = z.infer<typeof AccountIdentity>;
|
|
113
113
|
/**
|
|
@@ -115,8 +115,8 @@ export type AccountIdentity = z.infer<typeof AccountIdentity>;
|
|
|
115
115
|
* purely informational, never user-set. Server-computed by the routing owner
|
|
116
116
|
* from enabled profiles + native readiness + quota so no surface re-derives it:
|
|
117
117
|
* `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
|
|
118
|
+
* `native` is the existing unprofiled/default subject (normally the CLI login,
|
|
119
|
+
* or the configured key for an API-only harness); `none` means an unpinned run has nothing routable (the default is disabled and no
|
|
120
120
|
* account is pinned) with a human reason. Explicit control stays a per-run
|
|
121
121
|
* `--profile` pin or a per-thread pin — this field never gates routing.
|
|
122
122
|
*/
|
|
@@ -131,10 +131,13 @@ export declare const ControlNextUpIdentity: z.ZodDiscriminatedUnion<"kind", [z.Z
|
|
|
131
131
|
profileId: string;
|
|
132
132
|
}>, z.ZodObject<{
|
|
133
133
|
kind: z.ZodLiteral<"native">;
|
|
134
|
+
route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
|
|
134
135
|
}, "strict", z.ZodTypeAny, {
|
|
135
136
|
kind: "native";
|
|
137
|
+
route?: "api_key" | "local_session" | undefined;
|
|
136
138
|
}, {
|
|
137
139
|
kind: "native";
|
|
140
|
+
route?: "api_key" | "local_session" | undefined;
|
|
138
141
|
}>, z.ZodObject<{
|
|
139
142
|
kind: z.ZodLiteral<"none">;
|
|
140
143
|
reason: z.ZodString;
|
|
@@ -162,11 +165,11 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
162
165
|
email: z.ZodOptional<z.ZodString>;
|
|
163
166
|
plan: z.ZodOptional<z.ZodString>;
|
|
164
167
|
}, "strict", z.ZodTypeAny, {
|
|
165
|
-
plan?: string | undefined;
|
|
166
168
|
email?: string | undefined;
|
|
167
|
-
}, {
|
|
168
169
|
plan?: string | undefined;
|
|
170
|
+
}, {
|
|
169
171
|
email?: string | undefined;
|
|
172
|
+
plan?: string | undefined;
|
|
170
173
|
}>>>;
|
|
171
174
|
next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
172
175
|
kind: z.ZodLiteral<"profile">;
|
|
@@ -179,10 +182,13 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
179
182
|
profileId: string;
|
|
180
183
|
}>, z.ZodObject<{
|
|
181
184
|
kind: z.ZodLiteral<"native">;
|
|
185
|
+
route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
|
|
182
186
|
}, "strict", z.ZodTypeAny, {
|
|
183
187
|
kind: "native";
|
|
188
|
+
route?: "api_key" | "local_session" | undefined;
|
|
184
189
|
}, {
|
|
185
190
|
kind: "native";
|
|
191
|
+
route?: "api_key" | "local_session" | undefined;
|
|
186
192
|
}>, z.ZodObject<{
|
|
187
193
|
kind: z.ZodLiteral<"none">;
|
|
188
194
|
reason: z.ZodString;
|
|
@@ -198,14 +204,15 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
198
204
|
native_credentials_enabled: boolean;
|
|
199
205
|
native_login_detected: boolean;
|
|
200
206
|
identity: {
|
|
201
|
-
plan?: string | undefined;
|
|
202
207
|
email?: string | undefined;
|
|
208
|
+
plan?: string | undefined;
|
|
203
209
|
} | null;
|
|
204
210
|
next_up: {
|
|
205
211
|
kind: "profile";
|
|
206
212
|
profileId: string;
|
|
207
213
|
} | {
|
|
208
214
|
kind: "native";
|
|
215
|
+
route?: "api_key" | "local_session" | undefined;
|
|
209
216
|
} | {
|
|
210
217
|
kind: "none";
|
|
211
218
|
reason: string;
|
|
@@ -214,19 +221,20 @@ export declare const ControlHarnessAccounts: z.ZodObject<{
|
|
|
214
221
|
harness_id: string;
|
|
215
222
|
native_credentials_enabled: boolean;
|
|
216
223
|
native_login_detected: boolean;
|
|
224
|
+
identity?: {
|
|
225
|
+
email?: string | undefined;
|
|
226
|
+
plan?: string | undefined;
|
|
227
|
+
} | null | undefined;
|
|
217
228
|
next_up: {
|
|
218
229
|
kind: "profile";
|
|
219
230
|
profileId: string;
|
|
220
231
|
} | {
|
|
221
232
|
kind: "native";
|
|
233
|
+
route?: "api_key" | "local_session" | undefined;
|
|
222
234
|
} | {
|
|
223
235
|
kind: "none";
|
|
224
236
|
reason: string;
|
|
225
237
|
};
|
|
226
|
-
identity?: {
|
|
227
|
-
plan?: string | undefined;
|
|
228
|
-
email?: string | undefined;
|
|
229
|
-
} | null | undefined;
|
|
230
238
|
}>;
|
|
231
239
|
export type ControlHarnessAccounts = z.infer<typeof ControlHarnessAccounts>;
|
|
232
240
|
/** Control response: every registered profile with its doctor projection, plus
|
|
@@ -287,17 +295,17 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
287
295
|
detail: z.ZodOptional<z.ZodString>;
|
|
288
296
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
289
297
|
}, "strict", z.ZodTypeAny, {
|
|
290
|
-
availability: "unknown" | "available" | "unavailable";
|
|
291
|
-
verification: "passed" | "failed" | "not_run";
|
|
292
298
|
profile_id: string;
|
|
293
299
|
harness_id: string;
|
|
294
|
-
|
|
300
|
+
availability: "available" | "unavailable" | "unknown";
|
|
301
|
+
verification: "failed" | "not_run" | "passed";
|
|
295
302
|
detail?: string | undefined;
|
|
303
|
+
last_verified_at: string | null;
|
|
296
304
|
}, {
|
|
297
|
-
availability: "unknown" | "available" | "unavailable";
|
|
298
|
-
verification: "passed" | "failed" | "not_run";
|
|
299
305
|
profile_id: string;
|
|
300
306
|
harness_id: string;
|
|
307
|
+
availability: "available" | "unavailable" | "unknown";
|
|
308
|
+
verification: "failed" | "not_run" | "passed";
|
|
301
309
|
detail?: string | undefined;
|
|
302
310
|
last_verified_at?: string | null | undefined;
|
|
303
311
|
}>;
|
|
@@ -305,21 +313,13 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
305
313
|
email: z.ZodOptional<z.ZodString>;
|
|
306
314
|
plan: z.ZodOptional<z.ZodString>;
|
|
307
315
|
}, "strict", z.ZodTypeAny, {
|
|
308
|
-
plan?: string | undefined;
|
|
309
316
|
email?: string | undefined;
|
|
310
|
-
}, {
|
|
311
317
|
plan?: string | undefined;
|
|
318
|
+
}, {
|
|
312
319
|
email?: string | undefined;
|
|
320
|
+
plan?: string | undefined;
|
|
313
321
|
}>>>;
|
|
314
322
|
}, "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
323
|
profile: {
|
|
324
324
|
profile_id: string;
|
|
325
325
|
harness_id: string;
|
|
@@ -330,19 +330,19 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
330
330
|
enabled: boolean;
|
|
331
331
|
created_at: string | null;
|
|
332
332
|
};
|
|
333
|
-
identity: {
|
|
334
|
-
plan?: string | undefined;
|
|
335
|
-
email?: string | undefined;
|
|
336
|
-
} | null;
|
|
337
|
-
}, {
|
|
338
333
|
status: {
|
|
339
|
-
availability: "unknown" | "available" | "unavailable";
|
|
340
|
-
verification: "passed" | "failed" | "not_run";
|
|
341
334
|
profile_id: string;
|
|
342
335
|
harness_id: string;
|
|
336
|
+
availability: "available" | "unavailable" | "unknown";
|
|
337
|
+
verification: "failed" | "not_run" | "passed";
|
|
343
338
|
detail?: string | undefined;
|
|
344
|
-
last_verified_at
|
|
339
|
+
last_verified_at: string | null;
|
|
345
340
|
};
|
|
341
|
+
identity: {
|
|
342
|
+
email?: string | undefined;
|
|
343
|
+
plan?: string | undefined;
|
|
344
|
+
} | null;
|
|
345
|
+
}, {
|
|
346
346
|
profile: {
|
|
347
347
|
profile_id: string;
|
|
348
348
|
harness_id: string;
|
|
@@ -353,9 +353,17 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
353
353
|
enabled?: boolean | undefined;
|
|
354
354
|
created_at?: string | null | undefined;
|
|
355
355
|
};
|
|
356
|
+
status: {
|
|
357
|
+
profile_id: string;
|
|
358
|
+
harness_id: string;
|
|
359
|
+
availability: "available" | "unavailable" | "unknown";
|
|
360
|
+
verification: "failed" | "not_run" | "passed";
|
|
361
|
+
detail?: string | undefined;
|
|
362
|
+
last_verified_at?: string | null | undefined;
|
|
363
|
+
};
|
|
356
364
|
identity?: {
|
|
357
|
-
plan?: string | undefined;
|
|
358
365
|
email?: string | undefined;
|
|
366
|
+
plan?: string | undefined;
|
|
359
367
|
} | null | undefined;
|
|
360
368
|
}>, "many">;
|
|
361
369
|
harnessAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -366,11 +374,11 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
366
374
|
email: z.ZodOptional<z.ZodString>;
|
|
367
375
|
plan: z.ZodOptional<z.ZodString>;
|
|
368
376
|
}, "strict", z.ZodTypeAny, {
|
|
369
|
-
plan?: string | undefined;
|
|
370
377
|
email?: string | undefined;
|
|
371
|
-
}, {
|
|
372
378
|
plan?: string | undefined;
|
|
379
|
+
}, {
|
|
373
380
|
email?: string | undefined;
|
|
381
|
+
plan?: string | undefined;
|
|
374
382
|
}>>>;
|
|
375
383
|
next_up: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
376
384
|
kind: z.ZodLiteral<"profile">;
|
|
@@ -383,10 +391,13 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
383
391
|
profileId: string;
|
|
384
392
|
}>, z.ZodObject<{
|
|
385
393
|
kind: z.ZodLiteral<"native">;
|
|
394
|
+
route: z.ZodOptional<z.ZodEnum<["local_session", "api_key"]>>;
|
|
386
395
|
}, "strict", z.ZodTypeAny, {
|
|
387
396
|
kind: "native";
|
|
397
|
+
route?: "api_key" | "local_session" | undefined;
|
|
388
398
|
}, {
|
|
389
399
|
kind: "native";
|
|
400
|
+
route?: "api_key" | "local_session" | undefined;
|
|
390
401
|
}>, z.ZodObject<{
|
|
391
402
|
kind: z.ZodLiteral<"none">;
|
|
392
403
|
reason: z.ZodString;
|
|
@@ -402,14 +413,15 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
402
413
|
native_credentials_enabled: boolean;
|
|
403
414
|
native_login_detected: boolean;
|
|
404
415
|
identity: {
|
|
405
|
-
plan?: string | undefined;
|
|
406
416
|
email?: string | undefined;
|
|
417
|
+
plan?: string | undefined;
|
|
407
418
|
} | null;
|
|
408
419
|
next_up: {
|
|
409
420
|
kind: "profile";
|
|
410
421
|
profileId: string;
|
|
411
422
|
} | {
|
|
412
423
|
kind: "native";
|
|
424
|
+
route?: "api_key" | "local_session" | undefined;
|
|
413
425
|
} | {
|
|
414
426
|
kind: "none";
|
|
415
427
|
reason: string;
|
|
@@ -418,30 +430,23 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
418
430
|
harness_id: string;
|
|
419
431
|
native_credentials_enabled: boolean;
|
|
420
432
|
native_login_detected: boolean;
|
|
433
|
+
identity?: {
|
|
434
|
+
email?: string | undefined;
|
|
435
|
+
plan?: string | undefined;
|
|
436
|
+
} | null | undefined;
|
|
421
437
|
next_up: {
|
|
422
438
|
kind: "profile";
|
|
423
439
|
profileId: string;
|
|
424
440
|
} | {
|
|
425
441
|
kind: "native";
|
|
442
|
+
route?: "api_key" | "local_session" | undefined;
|
|
426
443
|
} | {
|
|
427
444
|
kind: "none";
|
|
428
445
|
reason: string;
|
|
429
446
|
};
|
|
430
|
-
identity?: {
|
|
431
|
-
plan?: string | undefined;
|
|
432
|
-
email?: string | undefined;
|
|
433
|
-
} | null | undefined;
|
|
434
447
|
}>, "many">>;
|
|
435
448
|
}, "strict", z.ZodTypeAny, {
|
|
436
449
|
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
450
|
profile: {
|
|
446
451
|
profile_id: string;
|
|
447
452
|
harness_id: string;
|
|
@@ -452,9 +457,17 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
452
457
|
enabled: boolean;
|
|
453
458
|
created_at: string | null;
|
|
454
459
|
};
|
|
460
|
+
status: {
|
|
461
|
+
profile_id: string;
|
|
462
|
+
harness_id: string;
|
|
463
|
+
availability: "available" | "unavailable" | "unknown";
|
|
464
|
+
verification: "failed" | "not_run" | "passed";
|
|
465
|
+
detail?: string | undefined;
|
|
466
|
+
last_verified_at: string | null;
|
|
467
|
+
};
|
|
455
468
|
identity: {
|
|
456
|
-
plan?: string | undefined;
|
|
457
469
|
email?: string | undefined;
|
|
470
|
+
plan?: string | undefined;
|
|
458
471
|
} | null;
|
|
459
472
|
}[];
|
|
460
473
|
harnessAccounts: {
|
|
@@ -462,14 +475,15 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
462
475
|
native_credentials_enabled: boolean;
|
|
463
476
|
native_login_detected: boolean;
|
|
464
477
|
identity: {
|
|
465
|
-
plan?: string | undefined;
|
|
466
478
|
email?: string | undefined;
|
|
479
|
+
plan?: string | undefined;
|
|
467
480
|
} | null;
|
|
468
481
|
next_up: {
|
|
469
482
|
kind: "profile";
|
|
470
483
|
profileId: string;
|
|
471
484
|
} | {
|
|
472
485
|
kind: "native";
|
|
486
|
+
route?: "api_key" | "local_session" | undefined;
|
|
473
487
|
} | {
|
|
474
488
|
kind: "none";
|
|
475
489
|
reason: string;
|
|
@@ -477,14 +491,6 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
477
491
|
}[];
|
|
478
492
|
}, {
|
|
479
493
|
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
494
|
profile: {
|
|
489
495
|
profile_id: string;
|
|
490
496
|
harness_id: string;
|
|
@@ -495,28 +501,37 @@ export declare const ControlCredentialProfilesResponse: z.ZodObject<{
|
|
|
495
501
|
enabled?: boolean | undefined;
|
|
496
502
|
created_at?: string | null | undefined;
|
|
497
503
|
};
|
|
504
|
+
status: {
|
|
505
|
+
profile_id: string;
|
|
506
|
+
harness_id: string;
|
|
507
|
+
availability: "available" | "unavailable" | "unknown";
|
|
508
|
+
verification: "failed" | "not_run" | "passed";
|
|
509
|
+
detail?: string | undefined;
|
|
510
|
+
last_verified_at?: string | null | undefined;
|
|
511
|
+
};
|
|
498
512
|
identity?: {
|
|
499
|
-
plan?: string | undefined;
|
|
500
513
|
email?: string | undefined;
|
|
514
|
+
plan?: string | undefined;
|
|
501
515
|
} | null | undefined;
|
|
502
516
|
}[];
|
|
503
517
|
harnessAccounts?: {
|
|
504
518
|
harness_id: string;
|
|
505
519
|
native_credentials_enabled: boolean;
|
|
506
520
|
native_login_detected: boolean;
|
|
521
|
+
identity?: {
|
|
522
|
+
email?: string | undefined;
|
|
523
|
+
plan?: string | undefined;
|
|
524
|
+
} | null | undefined;
|
|
507
525
|
next_up: {
|
|
508
526
|
kind: "profile";
|
|
509
527
|
profileId: string;
|
|
510
528
|
} | {
|
|
511
529
|
kind: "native";
|
|
530
|
+
route?: "api_key" | "local_session" | undefined;
|
|
512
531
|
} | {
|
|
513
532
|
kind: "none";
|
|
514
533
|
reason: string;
|
|
515
534
|
};
|
|
516
|
-
identity?: {
|
|
517
|
-
plan?: string | undefined;
|
|
518
|
-
email?: string | undefined;
|
|
519
|
-
} | null | undefined;
|
|
520
535
|
}[] | undefined;
|
|
521
536
|
}>;
|
|
522
537
|
export type ControlCredentialProfilesResponse = z.infer<typeof ControlCredentialProfilesResponse>;
|
|
@@ -588,29 +603,21 @@ export declare const ControlCredentialProfileUpdateResponse: z.ZodObject<{
|
|
|
588
603
|
detail: z.ZodOptional<z.ZodString>;
|
|
589
604
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
590
605
|
}, "strict", z.ZodTypeAny, {
|
|
591
|
-
availability: "unknown" | "available" | "unavailable";
|
|
592
|
-
verification: "passed" | "failed" | "not_run";
|
|
593
606
|
profile_id: string;
|
|
594
607
|
harness_id: string;
|
|
595
|
-
|
|
608
|
+
availability: "available" | "unavailable" | "unknown";
|
|
609
|
+
verification: "failed" | "not_run" | "passed";
|
|
596
610
|
detail?: string | undefined;
|
|
611
|
+
last_verified_at: string | null;
|
|
597
612
|
}, {
|
|
598
|
-
availability: "unknown" | "available" | "unavailable";
|
|
599
|
-
verification: "passed" | "failed" | "not_run";
|
|
600
613
|
profile_id: string;
|
|
601
614
|
harness_id: string;
|
|
615
|
+
availability: "available" | "unavailable" | "unknown";
|
|
616
|
+
verification: "failed" | "not_run" | "passed";
|
|
602
617
|
detail?: string | undefined;
|
|
603
618
|
last_verified_at?: string | null | undefined;
|
|
604
619
|
}>;
|
|
605
620
|
}, "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
621
|
profile: {
|
|
615
622
|
profile_id: string;
|
|
616
623
|
harness_id: string;
|
|
@@ -621,15 +628,15 @@ export declare const ControlCredentialProfileUpdateResponse: z.ZodObject<{
|
|
|
621
628
|
enabled: boolean;
|
|
622
629
|
created_at: string | null;
|
|
623
630
|
};
|
|
624
|
-
}, {
|
|
625
631
|
status: {
|
|
626
|
-
availability: "unknown" | "available" | "unavailable";
|
|
627
|
-
verification: "passed" | "failed" | "not_run";
|
|
628
632
|
profile_id: string;
|
|
629
633
|
harness_id: string;
|
|
634
|
+
availability: "available" | "unavailable" | "unknown";
|
|
635
|
+
verification: "failed" | "not_run" | "passed";
|
|
630
636
|
detail?: string | undefined;
|
|
631
|
-
last_verified_at
|
|
637
|
+
last_verified_at: string | null;
|
|
632
638
|
};
|
|
639
|
+
}, {
|
|
633
640
|
profile: {
|
|
634
641
|
profile_id: string;
|
|
635
642
|
harness_id: string;
|
|
@@ -640,6 +647,14 @@ export declare const ControlCredentialProfileUpdateResponse: z.ZodObject<{
|
|
|
640
647
|
enabled?: boolean | undefined;
|
|
641
648
|
created_at?: string | null | undefined;
|
|
642
649
|
};
|
|
650
|
+
status: {
|
|
651
|
+
profile_id: string;
|
|
652
|
+
harness_id: string;
|
|
653
|
+
availability: "available" | "unavailable" | "unknown";
|
|
654
|
+
verification: "failed" | "not_run" | "passed";
|
|
655
|
+
detail?: string | undefined;
|
|
656
|
+
last_verified_at?: string | null | undefined;
|
|
657
|
+
};
|
|
643
658
|
}>;
|
|
644
659
|
export type ControlCredentialProfileUpdateResponse = z.infer<typeof ControlCredentialProfileUpdateResponse>;
|
|
645
660
|
/** Register a config-dir login profile (claude/codex) from a UI surface —
|
|
@@ -723,7 +738,7 @@ export declare const ControlCredentialProfileDeleteResponse: z.ZodObject<{
|
|
|
723
738
|
created_at: string | null;
|
|
724
739
|
};
|
|
725
740
|
removed: true;
|
|
726
|
-
credentialCleanup: "
|
|
741
|
+
credentialCleanup: "config_dir_removed" | "none" | "secret_deleted";
|
|
727
742
|
cleanupWarning?: string | undefined;
|
|
728
743
|
}, {
|
|
729
744
|
profile: {
|
|
@@ -737,7 +752,7 @@ export declare const ControlCredentialProfileDeleteResponse: z.ZodObject<{
|
|
|
737
752
|
created_at?: string | null | undefined;
|
|
738
753
|
};
|
|
739
754
|
removed: true;
|
|
740
|
-
credentialCleanup: "
|
|
755
|
+
credentialCleanup: "config_dir_removed" | "none" | "secret_deleted";
|
|
741
756
|
cleanupWarning?: string | undefined;
|
|
742
757
|
}>;
|
|
743
758
|
export type ControlCredentialProfileDeleteResponse = z.infer<typeof ControlCredentialProfileDeleteResponse>;
|
|
@@ -796,29 +811,21 @@ export declare const ControlCredentialProfileCreateResponse: z.ZodObject<{
|
|
|
796
811
|
detail: z.ZodOptional<z.ZodString>;
|
|
797
812
|
last_verified_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
798
813
|
}, "strict", z.ZodTypeAny, {
|
|
799
|
-
availability: "unknown" | "available" | "unavailable";
|
|
800
|
-
verification: "passed" | "failed" | "not_run";
|
|
801
814
|
profile_id: string;
|
|
802
815
|
harness_id: string;
|
|
803
|
-
|
|
816
|
+
availability: "available" | "unavailable" | "unknown";
|
|
817
|
+
verification: "failed" | "not_run" | "passed";
|
|
804
818
|
detail?: string | undefined;
|
|
819
|
+
last_verified_at: string | null;
|
|
805
820
|
}, {
|
|
806
|
-
availability: "unknown" | "available" | "unavailable";
|
|
807
|
-
verification: "passed" | "failed" | "not_run";
|
|
808
821
|
profile_id: string;
|
|
809
822
|
harness_id: string;
|
|
823
|
+
availability: "available" | "unavailable" | "unknown";
|
|
824
|
+
verification: "failed" | "not_run" | "passed";
|
|
810
825
|
detail?: string | undefined;
|
|
811
826
|
last_verified_at?: string | null | undefined;
|
|
812
827
|
}>;
|
|
813
828
|
}, "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
829
|
profile: {
|
|
823
830
|
profile_id: string;
|
|
824
831
|
harness_id: string;
|
|
@@ -829,15 +836,15 @@ export declare const ControlCredentialProfileCreateResponse: z.ZodObject<{
|
|
|
829
836
|
enabled: boolean;
|
|
830
837
|
created_at: string | null;
|
|
831
838
|
};
|
|
832
|
-
}, {
|
|
833
839
|
status: {
|
|
834
|
-
availability: "unknown" | "available" | "unavailable";
|
|
835
|
-
verification: "passed" | "failed" | "not_run";
|
|
836
840
|
profile_id: string;
|
|
837
841
|
harness_id: string;
|
|
842
|
+
availability: "available" | "unavailable" | "unknown";
|
|
843
|
+
verification: "failed" | "not_run" | "passed";
|
|
838
844
|
detail?: string | undefined;
|
|
839
|
-
last_verified_at
|
|
845
|
+
last_verified_at: string | null;
|
|
840
846
|
};
|
|
847
|
+
}, {
|
|
841
848
|
profile: {
|
|
842
849
|
profile_id: string;
|
|
843
850
|
harness_id: string;
|
|
@@ -848,6 +855,14 @@ export declare const ControlCredentialProfileCreateResponse: z.ZodObject<{
|
|
|
848
855
|
enabled?: boolean | undefined;
|
|
849
856
|
created_at?: string | null | undefined;
|
|
850
857
|
};
|
|
858
|
+
status: {
|
|
859
|
+
profile_id: string;
|
|
860
|
+
harness_id: string;
|
|
861
|
+
availability: "available" | "unavailable" | "unknown";
|
|
862
|
+
verification: "failed" | "not_run" | "passed";
|
|
863
|
+
detail?: string | undefined;
|
|
864
|
+
last_verified_at?: string | null | undefined;
|
|
865
|
+
};
|
|
851
866
|
}>;
|
|
852
867
|
export type ControlCredentialProfileCreateResponse = z.infer<typeof ControlCredentialProfileCreateResponse>;
|
|
853
868
|
//# 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;;;;;;;;;;;;;;;;;;;;;EAY8D,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,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBhC,CAAC;AACJ,MAAM,MAAM,sBAA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;;;;;;;;;;;;;;;;;EAaK,CAAC;AACzD,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGgC,CAAC;AACpF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,sCAAsC,CAC9C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
import { namespacedSecretRefBase } from "@claudexor/util";
|
|
3
3
|
import { Id, IsoTimestamp } from "./primitives.js";
|
|
4
4
|
import { AuthAvailability, AuthVerification } from "./auth.js";
|
|
@@ -123,8 +123,8 @@ export const AccountIdentity = z
|
|
|
123
123
|
* purely informational, never user-set. Server-computed by the routing owner
|
|
124
124
|
* from enabled profiles + native readiness + quota so no surface re-derives it:
|
|
125
125
|
* `profile` names the enabled credential profile a quota-rotation would land on;
|
|
126
|
-
* `native` is the
|
|
127
|
-
* means an unpinned run has nothing routable (the
|
|
126
|
+
* `native` is the existing unprofiled/default subject (normally the CLI login,
|
|
127
|
+
* or the configured key for an API-only harness); `none` means an unpinned run has nothing routable (the default is disabled and no
|
|
128
128
|
* account is pinned) with a human reason. Explicit control stays a per-run
|
|
129
129
|
* `--profile` pin or a per-thread pin — this field never gates routing.
|
|
130
130
|
*/
|
|
@@ -135,13 +135,19 @@ export const ControlNextUpIdentity = z
|
|
|
135
135
|
.strict()
|
|
136
136
|
.describe("An enabled credential profile is who an unpinned run routes to next."),
|
|
137
137
|
z
|
|
138
|
-
.object({
|
|
138
|
+
.object({
|
|
139
|
+
kind: z.literal("native"),
|
|
140
|
+
route: z
|
|
141
|
+
.enum(["local_session", "api_key"])
|
|
142
|
+
.optional()
|
|
143
|
+
.describe("Effective route of the unprofiled/default subject; omitted by older daemons."),
|
|
144
|
+
})
|
|
139
145
|
.strict()
|
|
140
|
-
.describe("The
|
|
146
|
+
.describe("The unprofiled/default credential is the subject of an unpinned run."),
|
|
141
147
|
z
|
|
142
148
|
.object({ kind: z.literal("none"), reason: z.string() })
|
|
143
149
|
.strict()
|
|
144
|
-
.describe("An unpinned run has nothing routable (the
|
|
150
|
+
.describe("An unpinned run has nothing routable (the default credential is disabled and no account is pinned)."),
|
|
145
151
|
])
|
|
146
152
|
.describe("Server-computed identity an unpinned run of this harness would route to next.");
|
|
147
153
|
/**
|