@intutic/shared-types 1.9.0 → 1.10.1
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/anomaly.d.ts +11 -0
- package/dist/anomaly.d.ts.map +1 -1
- package/dist/api-contracts.d.ts +97 -9
- package/dist/api-contracts.d.ts.map +1 -1
- package/dist/api-contracts.js +9 -0
- package/dist/api-contracts.js.map +1 -1
- package/dist/auth.d.ts +157 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +39 -1
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +2 -99
- package/dist/billing.d.ts.map +1 -1
- package/dist/billing.js +2 -17
- package/dist/billing.js.map +1 -1
- package/dist/enums.d.ts +341 -4
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +369 -6
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +20 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +20 -1
- package/dist/errors.js.map +1 -1
- package/dist/finops.d.ts +97 -1
- package/dist/finops.d.ts.map +1 -1
- package/dist/governanceCoverage.d.ts +82 -0
- package/dist/governanceCoverage.d.ts.map +1 -0
- package/dist/governanceCoverage.js +72 -0
- package/dist/governanceCoverage.js.map +1 -0
- package/dist/guardrailIr.d.ts +287 -0
- package/dist/guardrailIr.d.ts.map +1 -0
- package/dist/guardrailIr.js +301 -0
- package/dist/guardrailIr.js.map +1 -0
- package/dist/guardrailRender.d.ts +154 -0
- package/dist/guardrailRender.d.ts.map +1 -0
- package/dist/guardrailRender.js +440 -0
- package/dist/guardrailRender.js.map +1 -0
- package/dist/identity.d.ts +75 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +5 -1
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +34 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -2
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +37 -11
- package/dist/intelligence.d.ts.map +1 -1
- package/dist/intelligence.js.map +1 -1
- package/dist/modelCatalog.d.ts +89 -0
- package/dist/modelCatalog.d.ts.map +1 -0
- package/dist/modelCatalog.generated.d.ts +7204 -0
- package/dist/modelCatalog.generated.d.ts.map +1 -0
- package/dist/modelCatalog.generated.js +576 -0
- package/dist/modelCatalog.generated.js.map +1 -0
- package/dist/modelCatalog.js +112 -0
- package/dist/modelCatalog.js.map +1 -0
- package/dist/notifications.d.ts +134 -2
- package/dist/notifications.d.ts.map +1 -1
- package/dist/observability.d.ts +4 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/policyGuardrails.d.ts +433 -0
- package/dist/policyGuardrails.d.ts.map +1 -0
- package/dist/policyGuardrails.js +91 -0
- package/dist/policyGuardrails.js.map +1 -0
- package/dist/posturePresets.d.ts +74 -0
- package/dist/posturePresets.d.ts.map +1 -0
- package/dist/posturePresets.js +139 -0
- package/dist/posturePresets.js.map +1 -0
- package/dist/providerVerification.d.ts +64 -0
- package/dist/providerVerification.d.ts.map +1 -0
- package/dist/providerVerification.js +184 -0
- package/dist/providerVerification.js.map +1 -0
- package/dist/providers.d.ts +93 -0
- package/dist/providers.d.ts.map +1 -0
- package/dist/providers.js +176 -0
- package/dist/providers.js.map +1 -0
- package/dist/rulePredicateDsl.d.ts +101 -0
- package/dist/rulePredicateDsl.d.ts.map +1 -0
- package/dist/rulePredicateDsl.js +263 -0
- package/dist/rulePredicateDsl.js.map +1 -0
- package/dist/rulePredicateEval.d.ts +38 -0
- package/dist/rulePredicateEval.d.ts.map +1 -0
- package/dist/rulePredicateEval.js +124 -0
- package/dist/rulePredicateEval.js.map +1 -0
- package/dist/scriptScan.d.ts +162 -0
- package/dist/scriptScan.d.ts.map +1 -0
- package/dist/scriptScan.js +362 -0
- package/dist/scriptScan.js.map +1 -0
- package/dist/secretPatterns.d.ts +43 -0
- package/dist/secretPatterns.d.ts.map +1 -0
- package/dist/secretPatterns.js +73 -0
- package/dist/secretPatterns.js.map +1 -0
- package/dist/skillScan.d.ts +166 -0
- package/dist/skillScan.d.ts.map +1 -0
- package/dist/skillScan.js +398 -0
- package/dist/skillScan.js.map +1 -0
- package/dist/sop.d.ts +188 -9
- package/dist/sop.d.ts.map +1 -1
- package/dist/sop.js +54 -2
- package/dist/sop.js.map +1 -1
- package/dist/sourceProviders.d.ts +41 -0
- package/dist/sourceProviders.d.ts.map +1 -0
- package/dist/sourceProviders.js +48 -0
- package/dist/sourceProviders.js.map +1 -0
- package/dist/sync.d.ts +98 -8
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js.map +1 -1
- package/dist/toon.d.ts +80 -0
- package/dist/toon.d.ts.map +1 -0
- package/dist/toon.js +278 -0
- package/dist/toon.js.map +1 -0
- package/dist/usage.d.ts +23 -0
- package/dist/usage.d.ts.map +1 -1
- package/dist/wasmHost.d.ts +58 -0
- package/dist/wasmHost.d.ts.map +1 -0
- package/dist/wasmHost.js +80 -0
- package/dist/wasmHost.js.map +1 -0
- package/dist/workspaceSettings.d.ts +463 -21
- package/dist/workspaceSettings.d.ts.map +1 -1
- package/dist/workspaceSettings.js +86 -1
- package/dist/workspaceSettings.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
| `finops` | `TraceEntry`, `Attribution4D`, `BudgetEnvelope`, `CostBreakdown` |
|
|
17
17
|
| `sop` | SOP lifecycle types, rule schemas, hook definitions |
|
|
18
18
|
| `auth` | Session, token, credential types |
|
|
19
|
-
| `identity` | SSO/
|
|
19
|
+
| `identity` | SSO/OIDC provider config, cross-workspace user identity |
|
|
20
20
|
| `sync` | Config sync state, drift detection, harness config types |
|
|
21
21
|
| `policy` | Policy evaluation results, enforcement decisions |
|
|
22
22
|
| `anomaly` | Anomaly detection signals, baseline models |
|
package/dist/anomaly.d.ts
CHANGED
|
@@ -78,6 +78,17 @@ export { ANOMALY_SEVERITY_MAP } from '@intutic/anomaly-taxonomy';
|
|
|
78
78
|
* HLD §3.5 — Corrective prompt injection
|
|
79
79
|
*/
|
|
80
80
|
export interface CorrectivePromptCard {
|
|
81
|
+
/**
|
|
82
|
+
* Stable identity for this card — `newId('crd')`.
|
|
83
|
+
*
|
|
84
|
+
* Optional because cards persisted to `execution_traces.corrective_prompt_card`
|
|
85
|
+
* before this field existed have no id, and that JSONB is append-only — old
|
|
86
|
+
* snapshots can never be backfilled. Every newly generated card carries one;
|
|
87
|
+
* it is the join key into `governance_card_labels`, the labeled dataset that
|
|
88
|
+
* records whether the card was delivered and whether the agent (or a human
|
|
89
|
+
* reviewer) judged it adopted.
|
|
90
|
+
*/
|
|
91
|
+
cardId?: string;
|
|
81
92
|
/** The corrective prompt text to inject into agent context. */
|
|
82
93
|
promptText: string;
|
|
83
94
|
/** Confidence that this prompt will resolve the anomaly (0.0–1.0). */
|
package/dist/anomaly.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anomaly.d.ts","sourceRoot":"","sources":["../src/anomaly.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAI7C;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,4DAA4D;IAC5D,IAAI,EAAE,WAAW,CAAA;IAEjB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAA;IAElB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAID;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,uCAAuC;IACvC,QAAQ,EAAE,OAAO,CAAA;IAEjB,0EAA0E;IAC1E,WAAW,EAAE,WAAW,GAAG,IAAI,CAAA;IAE/B,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAA;IAElB,gDAAgD;IAChD,QAAQ,EAAE,eAAe,CAAA;IAEzB,uDAAuD;IACvD,cAAc,EAAE,oBAAoB,GAAG,IAAI,CAA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G,IAAI,CAAA;IAExB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAA;IAEvB,iCAAiC;IACjC,YAAY,EAAE,MAAM,EAAE,CAAA;IAEtB,oDAAoD;IACpD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B,+CAA+C;IAC/C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAE9B,0CAA0C;IAC1C,iBAAiB,EAAE,gBAAgB,GAAG,qBAAqB,CAAA;CAC5D;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,gBAAgB,GAAG,qBAAqB,CAAA;CAC7D;AAID;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,CAAA;AAElF;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,cAAc,CAAA;IAC9B,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB"}
|
package/dist/api-contracts.d.ts
CHANGED
|
@@ -25,27 +25,38 @@ export declare const CreateSessionSchema: z.ZodObject<{
|
|
|
25
25
|
/** Optional SOP to govern the session. */
|
|
26
26
|
activeSopId: z.ZodOptional<z.ZodString>;
|
|
27
27
|
/** Agent harness type. */
|
|
28
|
-
harnessType: z.ZodEnum<["cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot", ...("cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot")[]]>;
|
|
28
|
+
harnessType: z.ZodEnum<["cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot" | "langgraph" | "muse-code" | "grok" | "opencode" | "dsh" | "xirp" | "agentic-orchestrator" | "langchain" | "crewai" | "autogen" | "ag2" | "google-adk" | "openai-agents" | "pydantic-ai" | "smolagents" | "strands" | "mastra" | "vercel-ai-sdk" | "eve" | "trueforge" | "ai-sdk-harness" | "ai-sdk-workflow" | "agentcore-runtime" | "trueforge-server", ...("cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot" | "langgraph" | "muse-code" | "grok" | "opencode" | "dsh" | "xirp" | "agentic-orchestrator" | "langchain" | "crewai" | "autogen" | "ag2" | "google-adk" | "openai-agents" | "pydantic-ai" | "smolagents" | "strands" | "mastra" | "vercel-ai-sdk" | "eve" | "trueforge" | "ai-sdk-harness" | "ai-sdk-workflow" | "agentcore-runtime" | "trueforge-server")[]]>;
|
|
29
29
|
/** Budget tier — defaults to JUNIOR on the server. */
|
|
30
30
|
budgetTier: z.ZodOptional<z.ZodEnum<["JUNIOR" | "SENIOR" | "STAFF" | "PRINCIPAL", ...("JUNIOR" | "SENIOR" | "STAFF" | "PRINCIPAL")[]]>>;
|
|
31
31
|
/** Execution mode — defaults to STANDARD on the server. */
|
|
32
32
|
executionMode: z.ZodOptional<z.ZodEnum<["STANDARD" | "PLAN_ONLY" | "SHADOW" | "AUTONOMOUS", ...("STANDARD" | "PLAN_ONLY" | "SHADOW" | "AUTONOMOUS")[]]>>;
|
|
33
|
+
/**
|
|
34
|
+
* The local proxy process this session's traces are filed under (TD-231).
|
|
35
|
+
* When set, the server records the git/task context on the row it derives
|
|
36
|
+
* for that process's traces — a PROXY row named by the server, never a new
|
|
37
|
+
* `ses_` id — and ignores `executionMode` / `userId`. Mutually exclusive with
|
|
38
|
+
* a caller-supplied session id. Sent by the sync daemon, which reads the id
|
|
39
|
+
* from the proxy's loopback `GET /intutic/instance`.
|
|
40
|
+
*/
|
|
41
|
+
proxyInstanceId: z.ZodOptional<z.ZodString>;
|
|
33
42
|
}, "strip", z.ZodTypeAny, {
|
|
34
43
|
workspaceId: string;
|
|
35
44
|
userId: string;
|
|
36
|
-
harnessType: "cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot";
|
|
45
|
+
harnessType: "cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot" | "langgraph" | "muse-code" | "grok" | "opencode" | "dsh" | "xirp" | "agentic-orchestrator" | "langchain" | "crewai" | "autogen" | "ag2" | "google-adk" | "openai-agents" | "pydantic-ai" | "smolagents" | "strands" | "mastra" | "vercel-ai-sdk" | "eve" | "trueforge" | "ai-sdk-harness" | "ai-sdk-workflow" | "agentcore-runtime" | "trueforge-server";
|
|
37
46
|
projectId?: string | undefined;
|
|
38
47
|
activeSopId?: string | undefined;
|
|
39
48
|
budgetTier?: "JUNIOR" | "SENIOR" | "STAFF" | "PRINCIPAL" | undefined;
|
|
40
49
|
executionMode?: "STANDARD" | "PLAN_ONLY" | "SHADOW" | "AUTONOMOUS" | undefined;
|
|
50
|
+
proxyInstanceId?: string | undefined;
|
|
41
51
|
}, {
|
|
42
52
|
workspaceId: string;
|
|
43
53
|
userId: string;
|
|
44
|
-
harnessType: "cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot";
|
|
54
|
+
harnessType: "cursor" | "claude-code" | "antigravity" | "n8n" | "codex" | "windsurf" | "aider" | "openhands" | "openclaw" | "hermes" | "pi" | "cline" | "roo-code" | "continue" | "claude-desktop" | "goose" | "open-webui" | "github-copilot" | "langgraph" | "muse-code" | "grok" | "opencode" | "dsh" | "xirp" | "agentic-orchestrator" | "langchain" | "crewai" | "autogen" | "ag2" | "google-adk" | "openai-agents" | "pydantic-ai" | "smolagents" | "strands" | "mastra" | "vercel-ai-sdk" | "eve" | "trueforge" | "ai-sdk-harness" | "ai-sdk-workflow" | "agentcore-runtime" | "trueforge-server";
|
|
45
55
|
projectId?: string | undefined;
|
|
46
56
|
activeSopId?: string | undefined;
|
|
47
57
|
budgetTier?: "JUNIOR" | "SENIOR" | "STAFF" | "PRINCIPAL" | undefined;
|
|
48
58
|
executionMode?: "STANDARD" | "PLAN_ONLY" | "SHADOW" | "AUTONOMOUS" | undefined;
|
|
59
|
+
proxyInstanceId?: string | undefined;
|
|
49
60
|
}>;
|
|
50
61
|
/** Inferred type for a create-session request payload. */
|
|
51
62
|
export type CreateSessionInput = z.infer<typeof CreateSessionSchema>;
|
|
@@ -74,7 +85,7 @@ export declare const CreateTraceSchema: z.ZodObject<{
|
|
|
74
85
|
tokenUtility: z.ZodOptional<z.ZodEnum<["USEFUL" | "WASTED", ...("USEFUL" | "WASTED")[]]>>;
|
|
75
86
|
tokenUtilityScore: z.ZodOptional<z.ZodNumber>;
|
|
76
87
|
complianceScore: z.ZodNumber;
|
|
77
|
-
enforcementAction: z.ZodEnum<["BYPASS" | "ENHANCE" | "HIJACK" | "KILL", ...("BYPASS" | "ENHANCE" | "HIJACK" | "KILL")[]]>;
|
|
88
|
+
enforcementAction: z.ZodEnum<["BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED", ...("BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED")[]]>;
|
|
78
89
|
anomalyDetected: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
90
|
anomalyConfidenceScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
80
91
|
taxonomyMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -100,7 +111,7 @@ export declare const CreateTraceSchema: z.ZodObject<{
|
|
|
100
111
|
rawCostUsd: number;
|
|
101
112
|
actualCostUsd: number;
|
|
102
113
|
complianceScore: number;
|
|
103
|
-
enforcementAction: "BYPASS" | "ENHANCE" | "HIJACK" | "KILL";
|
|
114
|
+
enforcementAction: "BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED";
|
|
104
115
|
tokenUtility?: "USEFUL" | "WASTED" | undefined;
|
|
105
116
|
tokenUtilityScore?: number | undefined;
|
|
106
117
|
anomalyDetected?: string | null | undefined;
|
|
@@ -128,7 +139,7 @@ export declare const CreateTraceSchema: z.ZodObject<{
|
|
|
128
139
|
rawCostUsd: number;
|
|
129
140
|
actualCostUsd: number;
|
|
130
141
|
complianceScore: number;
|
|
131
|
-
enforcementAction: "BYPASS" | "ENHANCE" | "HIJACK" | "KILL";
|
|
142
|
+
enforcementAction: "BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED";
|
|
132
143
|
tokenUtility?: "USEFUL" | "WASTED" | undefined;
|
|
133
144
|
tokenUtilityScore?: number | undefined;
|
|
134
145
|
anomalyDetected?: string | null | undefined;
|
|
@@ -153,7 +164,7 @@ export type CreateTraceInput = z.infer<typeof CreateTraceSchema>;
|
|
|
153
164
|
*/
|
|
154
165
|
export declare const PolicyVerdictSchema: z.ZodObject<{
|
|
155
166
|
/** Enforcement action to apply. */
|
|
156
|
-
action: z.ZodEnum<["BYPASS" | "ENHANCE" | "HIJACK" | "KILL", ...("BYPASS" | "ENHANCE" | "HIJACK" | "KILL")[]]>;
|
|
167
|
+
action: z.ZodEnum<["BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED", ...("BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED")[]]>;
|
|
157
168
|
/** Confidence score (0.0–1.0). */
|
|
158
169
|
confidence: z.ZodNumber;
|
|
159
170
|
/** Human-readable reason. */
|
|
@@ -161,16 +172,93 @@ export declare const PolicyVerdictSchema: z.ZodObject<{
|
|
|
161
172
|
/** Optional policy rule ID. */
|
|
162
173
|
policyId: z.ZodOptional<z.ZodString>;
|
|
163
174
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
action: "BYPASS" | "ENHANCE" | "HIJACK" | "KILL";
|
|
175
|
+
action: "BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED";
|
|
165
176
|
confidence: number;
|
|
166
177
|
reason: string;
|
|
167
178
|
policyId?: string | undefined;
|
|
168
179
|
}, {
|
|
169
|
-
action: "BYPASS" | "ENHANCE" | "HIJACK" | "KILL";
|
|
180
|
+
action: "BYPASS" | "ENHANCE" | "HIJACK" | "REASK" | "KILL" | "OBSERVED";
|
|
170
181
|
confidence: number;
|
|
171
182
|
reason: string;
|
|
172
183
|
policyId?: string | undefined;
|
|
173
184
|
}>;
|
|
174
185
|
/** Inferred type for a policy verdict. */
|
|
175
186
|
export type PolicyVerdictInput = z.infer<typeof PolicyVerdictSchema>;
|
|
187
|
+
/**
|
|
188
|
+
* The three triage-inbox response shapes, shared between the control plane and
|
|
189
|
+
* the dashboard.
|
|
190
|
+
*
|
|
191
|
+
* These were declared locally in `apps/dashboard/src/hooks/useIncidents.ts` — a
|
|
192
|
+
* second, hand-maintained copy of shapes the server already defines. That is the
|
|
193
|
+
* drift this repo has been bitten by twice, and it bit here too: the server has
|
|
194
|
+
* always returned `audit` on `/api/v1/trajectory/alerts`, the local copy omitted
|
|
195
|
+
* it, and the drift-alerts tab silently dropped its review-budget disclosure.
|
|
196
|
+
*
|
|
197
|
+
* `snake_case` where the API is snake_case and camelCase where it is camelCase,
|
|
198
|
+
* deliberately: these describe the wire, not an idealised model, and quietly
|
|
199
|
+
* renaming fields here would move the divergence rather than remove it.
|
|
200
|
+
*/
|
|
201
|
+
/** A bounded review queue stating its own coverage. */
|
|
202
|
+
export interface ReviewBudget {
|
|
203
|
+
budget: number;
|
|
204
|
+
matched: number;
|
|
205
|
+
withheld: number;
|
|
206
|
+
/** True when the queue held rows back; the UI discloses only then. */
|
|
207
|
+
overBudget: boolean;
|
|
208
|
+
}
|
|
209
|
+
/** Pagination plus the review budget, on list endpoints that rank and bound. */
|
|
210
|
+
export interface ListMeta {
|
|
211
|
+
total: number;
|
|
212
|
+
page: number;
|
|
213
|
+
limit: number;
|
|
214
|
+
/** Absent from older control planes; the UI degrades to no banner. */
|
|
215
|
+
audit?: ReviewBudget;
|
|
216
|
+
}
|
|
217
|
+
/** `GET /api/v1/incidents` row. */
|
|
218
|
+
export interface IncidentRow {
|
|
219
|
+
incident_id: string;
|
|
220
|
+
workspace_id: string;
|
|
221
|
+
trace_id: string | null;
|
|
222
|
+
session_id: string | null;
|
|
223
|
+
severity: string;
|
|
224
|
+
anomaly_type: string;
|
|
225
|
+
description: string | null;
|
|
226
|
+
resolution_status: string | null;
|
|
227
|
+
resolved_by: string | null;
|
|
228
|
+
resolved_at: string | null;
|
|
229
|
+
escalation_chain: Record<string, unknown> | null;
|
|
230
|
+
created_at: string;
|
|
231
|
+
}
|
|
232
|
+
/** `GET /api/v1/trajectory/alerts` row. */
|
|
233
|
+
export interface TrajectoryAlertRow {
|
|
234
|
+
alertId: string;
|
|
235
|
+
sessionId: string;
|
|
236
|
+
workspaceId: string;
|
|
237
|
+
alertType: string;
|
|
238
|
+
severity: string;
|
|
239
|
+
state: string;
|
|
240
|
+
verdict: string;
|
|
241
|
+
confidence: string;
|
|
242
|
+
summary: string;
|
|
243
|
+
heuristicTriggers: Array<{
|
|
244
|
+
rule?: string;
|
|
245
|
+
message?: string;
|
|
246
|
+
} | string>;
|
|
247
|
+
llmReasoning: string | null;
|
|
248
|
+
interventionAction: string | null;
|
|
249
|
+
monitorMode: string;
|
|
250
|
+
trajectoryWindow: Record<string, unknown>;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
}
|
|
253
|
+
/** `GET /api/v1/anomalies` row. */
|
|
254
|
+
export interface AnomalyRow {
|
|
255
|
+
trace_id: string;
|
|
256
|
+
session_id: string;
|
|
257
|
+
timestamp: string;
|
|
258
|
+
anomaly_type: string;
|
|
259
|
+
confidence: number;
|
|
260
|
+
model: string | null;
|
|
261
|
+
enforcement_action: string | null;
|
|
262
|
+
compliance_score: number;
|
|
263
|
+
}
|
|
176
264
|
//# sourceMappingURL=api-contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-contracts.d.ts","sourceRoot":"","sources":["../src/api-contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmBvB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B,0CAA0C;;IAG1C,mCAAmC;;IAGnC,6CAA6C;;IAG7C,0CAA0C;;IAG1C,0BAA0B;;IAG1B,sDAAsD;;IAGtD,2DAA2D
|
|
1
|
+
{"version":3,"file":"api-contracts.d.ts","sourceRoot":"","sources":["../src/api-contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmBvB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B,0CAA0C;;IAG1C,mCAAmC;;IAGnC,6CAA6C;;IAG7C,0CAA0C;;IAG1C,0BAA0B;;IAG1B,sDA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EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,gBAAgB,EAAE,MAAM,CAAA;CACzB"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -40,6 +40,15 @@ exports.CreateSessionSchema = zod_1.z.object({
|
|
|
40
40
|
budgetTier: zod_1.z.enum(constValues(enums_js_1.BudgetTier)).optional(),
|
|
41
41
|
/** Execution mode — defaults to STANDARD on the server. */
|
|
42
42
|
executionMode: zod_1.z.enum(constValues(enums_js_1.ExecutionMode)).optional(),
|
|
43
|
+
/**
|
|
44
|
+
* The local proxy process this session's traces are filed under (TD-231).
|
|
45
|
+
* When set, the server records the git/task context on the row it derives
|
|
46
|
+
* for that process's traces — a PROXY row named by the server, never a new
|
|
47
|
+
* `ses_` id — and ignores `executionMode` / `userId`. Mutually exclusive with
|
|
48
|
+
* a caller-supplied session id. Sent by the sync daemon, which reads the id
|
|
49
|
+
* from the proxy's loopback `GET /intutic/instance`.
|
|
50
|
+
*/
|
|
51
|
+
proxyInstanceId: zod_1.z.string().min(1).max(64).optional(),
|
|
43
52
|
});
|
|
44
53
|
// ─── CreateTrace ─────────────────────────────────────────────────────
|
|
45
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-contracts.js","sourceRoot":"","sources":["../src/api-contracts.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,6BAAuB;AACvB,yCAOmB;AAEnB,wEAAwE;AAExE,0EAA0E;AAC1E,SAAS,WAAW,CAAmC,GAAM;IAC3D,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAkC,CAAA;AAC5D,CAAC;AAED,wEAAwE;AAExE;;;;GAIG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,0CAA0C;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,C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MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA"}
|
package/dist/auth.d.ts
CHANGED
|
@@ -23,6 +23,22 @@ export interface AuthContext {
|
|
|
23
23
|
role: WorkspaceRole;
|
|
24
24
|
/** Cross-workspace user ID (LLD #11). Optional for pre-migration members. */
|
|
25
25
|
userId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The org the workspace belongs to (denormalized `workspaces.orgId`,
|
|
28
|
+
* LLD #71). Optional: cached auth entries written before this field
|
|
29
|
+
* existed lack it, and readers must treat absence as "unknown", never as
|
|
30
|
+
* "no org" — the proxy's cell org-pinning revalidates via the control
|
|
31
|
+
* plane in that case rather than guessing.
|
|
32
|
+
*/
|
|
33
|
+
orgId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The API key's own model allowlist (`api_keys.allowed_models`, migration
|
|
36
|
+
* 181). Present only for a `vk_` key that set one; absent or empty means
|
|
37
|
+
* the key inherits the workspace's `allowedModels` unchanged. The proxy
|
|
38
|
+
* INTERSECTS a non-empty list with the workspace list — a key can narrow
|
|
39
|
+
* what its workspace approves, never widen it.
|
|
40
|
+
*/
|
|
41
|
+
allowedModels?: string[];
|
|
26
42
|
}
|
|
27
43
|
/** JWT access token payload (compact claims). */
|
|
28
44
|
export interface JwtPayload {
|
|
@@ -128,6 +144,15 @@ export interface WorkspaceMemberInfo {
|
|
|
128
144
|
isActive: boolean;
|
|
129
145
|
lastLoginAt: string | null;
|
|
130
146
|
createdAt: string;
|
|
147
|
+
/**
|
|
148
|
+
* The workspace's org (tenancy phase 1, migration 130) -- optional because
|
|
149
|
+
* most `WorkspaceMemberInfo` construction sites (signup responses) return
|
|
150
|
+
* org info separately in their own `org: {...}` field already, so this
|
|
151
|
+
* would be redundant there. Only `GET /api/v1/auth/me` populates it, for
|
|
152
|
+
* the dashboard to resolve which org's teams/gateway-defaults apply
|
|
153
|
+
* without a second round-trip.
|
|
154
|
+
*/
|
|
155
|
+
orgId?: string;
|
|
131
156
|
}
|
|
132
157
|
/** Invite member request schema. */
|
|
133
158
|
export declare const InviteMemberInputSchema: z.ZodObject<{
|
|
@@ -200,6 +225,70 @@ export interface SignupResult {
|
|
|
200
225
|
cliInstall: string;
|
|
201
226
|
isNewUser: boolean;
|
|
202
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* Org signup input schema. Distinct from `SignupInputSchema`: `orgName` is
|
|
230
|
+
* required (no "N's workspace" auto-name fallback — an org identity is the
|
|
231
|
+
* point of this path), and there is no `workspaceName` — the org's default
|
|
232
|
+
* workspace is named from the org itself.
|
|
233
|
+
*/
|
|
234
|
+
export declare const OrgSignupInputSchema: z.ZodObject<{
|
|
235
|
+
email: z.ZodString;
|
|
236
|
+
password: z.ZodString;
|
|
237
|
+
name: z.ZodString;
|
|
238
|
+
orgName: z.ZodString;
|
|
239
|
+
/**
|
|
240
|
+
* The company's own domain (e.g. "acme.com") — informational, stored in
|
|
241
|
+
* `orgs.settings.domain` (LLD #71). Deliberately NOT the cell hostname:
|
|
242
|
+
* the org's slug is the subdomain under gateway.intutic.ai, so no domain
|
|
243
|
+
* verification is needed here.
|
|
244
|
+
*/
|
|
245
|
+
orgDomain: z.ZodOptional<z.ZodString>;
|
|
246
|
+
signupSource: z.ZodOptional<z.ZodString>;
|
|
247
|
+
marketingAttribution: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
email: string;
|
|
250
|
+
password: string;
|
|
251
|
+
name: string;
|
|
252
|
+
orgName: string;
|
|
253
|
+
signupSource?: string | undefined;
|
|
254
|
+
marketingAttribution?: Record<string, any> | undefined;
|
|
255
|
+
orgDomain?: string | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
email: string;
|
|
258
|
+
password: string;
|
|
259
|
+
name: string;
|
|
260
|
+
orgName: string;
|
|
261
|
+
signupSource?: string | undefined;
|
|
262
|
+
marketingAttribution?: Record<string, any> | undefined;
|
|
263
|
+
orgDomain?: string | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
/** Org signup params type. */
|
|
266
|
+
export type OrgSignupParams = z.infer<typeof OrgSignupInputSchema>;
|
|
267
|
+
/** Org signup result — same shape as SignupResult, plus the org identity. */
|
|
268
|
+
export interface OrgSignupResult {
|
|
269
|
+
user: {
|
|
270
|
+
id: string;
|
|
271
|
+
email: string;
|
|
272
|
+
name: string;
|
|
273
|
+
emailVerified: boolean;
|
|
274
|
+
};
|
|
275
|
+
org: {
|
|
276
|
+
id: string;
|
|
277
|
+
name: string;
|
|
278
|
+
planTier: string;
|
|
279
|
+
trialExpiresAt: string;
|
|
280
|
+
};
|
|
281
|
+
workspace: {
|
|
282
|
+
id: string;
|
|
283
|
+
name: string;
|
|
284
|
+
planTier: string;
|
|
285
|
+
trialExpiresAt: string;
|
|
286
|
+
};
|
|
287
|
+
accessToken: string;
|
|
288
|
+
refreshToken: string;
|
|
289
|
+
cliInstall: string;
|
|
290
|
+
isNewUser: boolean;
|
|
291
|
+
}
|
|
203
292
|
/** Verify email input schema. */
|
|
204
293
|
export declare const VerifyEmailInputSchema: z.ZodObject<{
|
|
205
294
|
token: z.ZodString;
|
|
@@ -241,14 +330,30 @@ export declare const CreateApiKeyInputSchema: z.ZodObject<{
|
|
|
241
330
|
label: z.ZodString;
|
|
242
331
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
243
332
|
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
/**
|
|
334
|
+
* Optional per-key model allowlist. Omitted or empty inherits the workspace's
|
|
335
|
+
* approved-models list; a non-empty list is intersected with it at the proxy,
|
|
336
|
+
* so a key can only narrow the workspace list, never widen it.
|
|
337
|
+
*/
|
|
338
|
+
allowedModels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
339
|
+
/**
|
|
340
|
+
* Automation key: exempt from the `ssoKeyMaxIdleDays` recency gate, because its
|
|
341
|
+
* owner may never log in interactively. Still bound to the member's active flag
|
|
342
|
+
* and still revocable, so offboarding applies (TD-218).
|
|
343
|
+
*/
|
|
344
|
+
isServiceAccount: z.ZodDefault<z.ZodBoolean>;
|
|
244
345
|
}, "strip", z.ZodTypeAny, {
|
|
245
346
|
label: string;
|
|
246
347
|
scopes: string[];
|
|
348
|
+
isServiceAccount: boolean;
|
|
247
349
|
expiresInDays?: number | undefined;
|
|
350
|
+
allowedModels?: string[] | undefined;
|
|
248
351
|
}, {
|
|
249
352
|
label: string;
|
|
250
353
|
scopes?: string[] | undefined;
|
|
251
354
|
expiresInDays?: number | undefined;
|
|
355
|
+
allowedModels?: string[] | undefined;
|
|
356
|
+
isServiceAccount?: boolean | undefined;
|
|
252
357
|
}>;
|
|
253
358
|
/** API key creation input. */
|
|
254
359
|
export type CreateApiKeyInput = z.infer<typeof CreateApiKeyInputSchema>;
|
|
@@ -260,6 +365,8 @@ export interface CreateApiKeyResult {
|
|
|
260
365
|
keyPrefix: string;
|
|
261
366
|
label: string;
|
|
262
367
|
scopes: string[];
|
|
368
|
+
/** Per-key model allowlist; `null` when the key inherits the workspace list. */
|
|
369
|
+
allowedModels: string[] | null;
|
|
263
370
|
expiresAt: string | null;
|
|
264
371
|
createdAt: string;
|
|
265
372
|
}
|
|
@@ -269,6 +376,8 @@ export interface ApiKeyInfo {
|
|
|
269
376
|
keyPrefix: string;
|
|
270
377
|
label: string;
|
|
271
378
|
scopes: string[];
|
|
379
|
+
/** Per-key model allowlist; `null` when the key inherits the workspace list. */
|
|
380
|
+
allowedModels: string[] | null;
|
|
272
381
|
expiresAt: string | null;
|
|
273
382
|
lastUsedAt: string | null;
|
|
274
383
|
revokedAt: string | null;
|
|
@@ -282,6 +391,12 @@ export interface ApiKeyInfo {
|
|
|
282
391
|
export interface DashboardSummary {
|
|
283
392
|
/** Total active sessions in the workspace. */
|
|
284
393
|
activeSessions: number;
|
|
394
|
+
/**
|
|
395
|
+
* Sessions opened with `executionMode: 'SANDBOX'` in the last 30 days —
|
|
396
|
+
* `intutic exec --sandbox` runs (LLD #63 §6). A 30-day window rather than
|
|
397
|
+
* "active" because a sandbox run is typically short-lived.
|
|
398
|
+
*/
|
|
399
|
+
sandboxSessions30d: number;
|
|
285
400
|
/** Budget utilization (current month spend vs. budget). */
|
|
286
401
|
budgetUtilization: {
|
|
287
402
|
spentUsd: number;
|
|
@@ -292,7 +407,17 @@ export interface DashboardSummary {
|
|
|
292
407
|
anomalyCount24h: number;
|
|
293
408
|
/** SOP health summary. */
|
|
294
409
|
sopHealth: {
|
|
410
|
+
/** Enforced — `VALIDATED` only. Every runtime gate filters on that state. */
|
|
295
411
|
totalActive: number;
|
|
412
|
+
/**
|
|
413
|
+
* Synced into agent context and read by the model, but enforced by nothing:
|
|
414
|
+
* `HYPOTHESIZED` and `REFINED`.
|
|
415
|
+
*
|
|
416
|
+
* Separate from `totalActive` because folding them in overstates what is
|
|
417
|
+
* enforced, and dropping them understates what is deployed — this field
|
|
418
|
+
* exists because the count previously did both at once.
|
|
419
|
+
*/
|
|
420
|
+
totalAdvisory: number;
|
|
296
421
|
totalStale: number;
|
|
297
422
|
totalInvalidated: number;
|
|
298
423
|
};
|
|
@@ -318,7 +443,6 @@ export interface DashboardSummary {
|
|
|
318
443
|
pattern: string;
|
|
319
444
|
count: number;
|
|
320
445
|
severity: 'critical' | 'high' | 'medium' | 'low';
|
|
321
|
-
sopId?: string;
|
|
322
446
|
}>;
|
|
323
447
|
sopAdherence?: Array<{
|
|
324
448
|
date: string;
|
|
@@ -330,11 +454,43 @@ export interface DashboardSummary {
|
|
|
330
454
|
tokens: number;
|
|
331
455
|
percentOfTotal: number;
|
|
332
456
|
}>;
|
|
457
|
+
/**
|
|
458
|
+
* Bytes the SnipCompactor removed from response bodies in the window.
|
|
459
|
+
*
|
|
460
|
+
* Bytes, not tokens, and deliberately outside `wastedTokenBreakdown` — the
|
|
461
|
+
* two cannot share a pie. Compaction is response-side, so its benefit lands
|
|
462
|
+
* in the next turn's prompt rather than reducing this window's input count.
|
|
463
|
+
*/
|
|
464
|
+
toolOutputTrimmedBytes?: number;
|
|
333
465
|
costSavings?: {
|
|
334
466
|
rawCostUsd: number;
|
|
335
467
|
actualCostUsd: number;
|
|
468
|
+
/**
|
|
469
|
+
* Can be negative (Wave 3.2's honest counterfactual pass removed a bug
|
|
470
|
+
* that manufactured a reward/savings bonus for the router doing
|
|
471
|
+
* nothing — `rawCostUsd` on new traces now prices identically to
|
|
472
|
+
* `actualCostUsd` when the request wasn't routed, so a genuine
|
|
473
|
+
* overspend, where routing picked a worse model, now shows as one
|
|
474
|
+
* instead of being floored to 0). Consumers must render this signed,
|
|
475
|
+
* not `Math.max(0, …)` it a second time.
|
|
476
|
+
*/
|
|
336
477
|
savedUsd: number;
|
|
337
478
|
savingsPercent: number;
|
|
479
|
+
/**
|
|
480
|
+
* Provider prompt-cache reads (TD-347) over the same window — a
|
|
481
|
+
* SEPARATE population from `savedUsd`. A request can show heavy
|
|
482
|
+
* cache-read activity while `savedUsd` is flat or negative (the router
|
|
483
|
+
* moved off a model that was warm), so this must never be folded into
|
|
484
|
+
* `savedUsd` or the two figures will misrepresent each other.
|
|
485
|
+
*/
|
|
486
|
+
cacheReadInputTokens: number;
|
|
338
487
|
};
|
|
488
|
+
/**
|
|
489
|
+
* Runaway spend averted by proxy KILL enforcement, extrapolated forward from
|
|
490
|
+
* each killed session's measured burn rate — NOT the same population as
|
|
491
|
+
* `costSavings.savedUsd` (measured routing savings) and must never be added
|
|
492
|
+
* into it. See `runawayCounterfactualService.ts` for how this is computed.
|
|
493
|
+
*/
|
|
494
|
+
runawayAvertedUsd?: number;
|
|
339
495
|
}
|
|
340
496
|
//# sourceMappingURL=auth.d.ts.map
|
package/dist/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAA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HANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.CreateApiKeyInputSchema = exports.MagicLinkLoginInputSchema = exports.MagicLinkRequestInputSchema = exports.ResendVerificationInputSchema = exports.VerifyEmailInputSchema = exports.SignupInputSchema = exports.UpdateRoleInputSchema = exports.InviteMemberInputSchema = exports.ChangePasswordInputSchema = exports.RefreshInputSchema = exports.RegisterInputSchema = exports.LoginInputSchema = void 0;
|
|
11
|
+
exports.CreateApiKeyInputSchema = exports.MagicLinkLoginInputSchema = exports.MagicLinkRequestInputSchema = exports.ResendVerificationInputSchema = exports.VerifyEmailInputSchema = exports.OrgSignupInputSchema = exports.SignupInputSchema = exports.UpdateRoleInputSchema = exports.InviteMemberInputSchema = exports.ChangePasswordInputSchema = exports.RefreshInputSchema = exports.RegisterInputSchema = exports.LoginInputSchema = void 0;
|
|
12
12
|
const zod_1 = require("zod");
|
|
13
13
|
// ─── Login ───────────────────────────────────────────────────────────
|
|
14
14
|
/** Login request schema (Zod validated). */
|
|
@@ -61,6 +61,32 @@ exports.SignupInputSchema = zod_1.z.object({
|
|
|
61
61
|
signupSource: zod_1.z.string().max(32).optional(),
|
|
62
62
|
marketingAttribution: zod_1.z.record(zod_1.z.any()).optional(),
|
|
63
63
|
});
|
|
64
|
+
// ─── Org Signup (Tenancy phase 4) ─────────────────────────────────────
|
|
65
|
+
/**
|
|
66
|
+
* Org signup input schema. Distinct from `SignupInputSchema`: `orgName` is
|
|
67
|
+
* required (no "N's workspace" auto-name fallback — an org identity is the
|
|
68
|
+
* point of this path), and there is no `workspaceName` — the org's default
|
|
69
|
+
* workspace is named from the org itself.
|
|
70
|
+
*/
|
|
71
|
+
exports.OrgSignupInputSchema = zod_1.z.object({
|
|
72
|
+
email: zod_1.z.string().email(),
|
|
73
|
+
password: zod_1.z.string().min(8).max(128),
|
|
74
|
+
name: zod_1.z.string().min(1).max(128),
|
|
75
|
+
orgName: zod_1.z.string().min(1).max(128),
|
|
76
|
+
/**
|
|
77
|
+
* The company's own domain (e.g. "acme.com") — informational, stored in
|
|
78
|
+
* `orgs.settings.domain` (LLD #71). Deliberately NOT the cell hostname:
|
|
79
|
+
* the org's slug is the subdomain under gateway.intutic.ai, so no domain
|
|
80
|
+
* verification is needed here.
|
|
81
|
+
*/
|
|
82
|
+
orgDomain: zod_1.z
|
|
83
|
+
.string()
|
|
84
|
+
.max(255)
|
|
85
|
+
.regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i, 'must be a bare domain like acme.com')
|
|
86
|
+
.optional(),
|
|
87
|
+
signupSource: zod_1.z.string().max(32).optional(),
|
|
88
|
+
marketingAttribution: zod_1.z.record(zod_1.z.any()).optional(),
|
|
89
|
+
});
|
|
64
90
|
/** Verify email input schema. */
|
|
65
91
|
exports.VerifyEmailInputSchema = zod_1.z.object({
|
|
66
92
|
token: zod_1.z.string().length(64),
|
|
@@ -83,5 +109,17 @@ exports.CreateApiKeyInputSchema = zod_1.z.object({
|
|
|
83
109
|
label: zod_1.z.string().min(1).max(128),
|
|
84
110
|
scopes: zod_1.z.array(zod_1.z.string()).default(['*']),
|
|
85
111
|
expiresInDays: zod_1.z.number().int().min(1).max(365).optional(),
|
|
112
|
+
/**
|
|
113
|
+
* Optional per-key model allowlist. Omitted or empty inherits the workspace's
|
|
114
|
+
* approved-models list; a non-empty list is intersected with it at the proxy,
|
|
115
|
+
* so a key can only narrow the workspace list, never widen it.
|
|
116
|
+
*/
|
|
117
|
+
allowedModels: zod_1.z.array(zod_1.z.string().trim().min(1).max(128)).max(64).optional(),
|
|
118
|
+
/**
|
|
119
|
+
* Automation key: exempt from the `ssoKeyMaxIdleDays` recency gate, because its
|
|
120
|
+
* owner may never log in interactively. Still bound to the member's active flag
|
|
121
|
+
* and still revocable, so offboarding applies (TD-218).
|
|
122
|
+
*/
|
|
123
|
+
isServiceAccount: zod_1.z.boolean().default(false),
|
|
86
124
|
});
|
|
87
125
|
//# sourceMappingURL=auth.js.map
|
package/dist/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,6BAAuB;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,6BAAuB;AAsDvB,wEAAwE;AAExE,4CAA4C;AAC/B,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAClC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACrC,CAAC,CAAA;AAaF,wEAAwE;AAExE,mDAAmD;AACtC,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAClC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACvC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACzC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,C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