@opengeni/contracts 0.50.0 → 1.0.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-authored-durable-text.d.ts +70 -0
- package/dist/agent-config.d.ts +869 -0
- package/dist/agent-instruction-changes.d.ts +110 -0
- package/dist/agent-learning.d.ts +243 -0
- package/dist/agent-topology.d.ts +292 -0
- package/dist/allowance-refusal.d.ts +9 -0
- package/dist/allowance-refusal.js +50 -0
- package/dist/allowance-refusal.js.map +1 -0
- package/dist/analytics-consent-report.d.ts +19 -0
- package/dist/analytics-consent-report.js +10 -0
- package/dist/analytics-consent-report.js.map +1 -0
- package/dist/api-key-presets.d.ts +19 -0
- package/dist/artifact-catalog.d.ts +161 -0
- package/dist/artifacts.d.ts +135 -11
- package/dist/atlassian-native-retirement.d.ts +16 -0
- package/dist/atlassian-native-retirement.js +30 -0
- package/dist/atlassian-native-retirement.js.map +1 -0
- package/dist/atlassian.d.ts +2 -0
- package/dist/atlassian.js +26 -12
- package/dist/browser-storage.d.ts +5 -0
- package/dist/browser-storage.js +9 -0
- package/dist/browser-storage.js.map +1 -0
- package/dist/bundled-skills.d.ts +40 -0
- package/dist/chunk-2ACYHZFB.js +292 -0
- package/dist/chunk-2ACYHZFB.js.map +1 -0
- package/dist/chunk-2VORLN2R.js +353 -0
- package/dist/chunk-2VORLN2R.js.map +1 -0
- package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
- package/dist/chunk-3SIZGL3O.js.map +1 -0
- package/dist/chunk-46KLD2UH.js +186 -0
- package/dist/chunk-46KLD2UH.js.map +1 -0
- package/dist/chunk-4JGHSSB7.js +11 -0
- package/dist/chunk-4JGHSSB7.js.map +1 -0
- package/dist/{chunk-M5ZGRVIQ.js → chunk-5IXYF6XN.js} +14 -5
- package/dist/chunk-5IXYF6XN.js.map +1 -0
- package/dist/chunk-BCS7WHCK.js +139 -0
- package/dist/chunk-BCS7WHCK.js.map +1 -0
- package/dist/chunk-EK7NDGFR.js +128 -0
- package/dist/chunk-EK7NDGFR.js.map +1 -0
- package/dist/{chunk-5UDNP7AO.js → chunk-FZ6BXQHL.js} +78 -38
- package/dist/chunk-FZ6BXQHL.js.map +1 -0
- package/dist/{chunk-CM6BMECR.js → chunk-GRG7PHWQ.js} +2 -1
- package/dist/chunk-GRG7PHWQ.js.map +1 -0
- package/dist/chunk-KHHZTBP7.js +11 -0
- package/dist/chunk-KHHZTBP7.js.map +1 -0
- package/dist/chunk-KR2V42UZ.js +187 -0
- package/dist/chunk-KR2V42UZ.js.map +1 -0
- package/dist/chunk-MZLBPKFE.js +168 -0
- package/dist/chunk-MZLBPKFE.js.map +1 -0
- package/dist/{chunk-LW7OH6CS.js → chunk-NRMCVHAU.js} +6 -5
- package/dist/chunk-NRMCVHAU.js.map +1 -0
- package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
- package/dist/chunk-NVJMJWLL.js.map +1 -0
- package/dist/chunk-O77VSFYZ.js +70 -0
- package/dist/chunk-O77VSFYZ.js.map +1 -0
- package/dist/chunk-PX3VCKAU.js +29 -0
- package/dist/chunk-PX3VCKAU.js.map +1 -0
- package/dist/chunk-QR5D2IQC.js +61 -0
- package/dist/chunk-QR5D2IQC.js.map +1 -0
- package/dist/chunk-RJ76DRPO.js +117 -0
- package/dist/chunk-RJ76DRPO.js.map +1 -0
- package/dist/chunk-RKX3NQYS.js +28 -0
- package/dist/chunk-RKX3NQYS.js.map +1 -0
- package/dist/{chunk-JBCIY7QD.js → chunk-SIOU2K4U.js} +45 -22
- package/dist/chunk-SIOU2K4U.js.map +1 -0
- package/dist/chunk-TSCDAGET.js +75 -0
- package/dist/chunk-TSCDAGET.js.map +1 -0
- package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
- package/dist/chunk-TXTQIYCV.js.map +1 -0
- package/dist/chunk-X7ETVO4P.js +26544 -0
- package/dist/chunk-X7ETVO4P.js.map +1 -0
- package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
- package/dist/chunk-YBW5JSA3.js +251 -0
- package/dist/chunk-YBW5JSA3.js.map +1 -0
- package/dist/chunk-YRXAWWCU.js +45 -0
- package/dist/chunk-YRXAWWCU.js.map +1 -0
- package/dist/claude-provider-account-authority.d.ts +18 -0
- package/dist/claude-subscription-oauth.d.ts +42 -0
- package/dist/claude-subscription-usage.d.ts +159 -0
- package/dist/client-error-report.d.ts +109 -0
- package/dist/client-error-report.js +87 -0
- package/dist/client-error-report.js.map +1 -0
- package/dist/code-search.d.ts +52 -0
- package/dist/code-search.js +40 -0
- package/dist/code-search.js.map +1 -0
- package/dist/company-brain-governed-writes.d.ts +475 -0
- package/dist/company-brain.d.ts +336 -0
- package/dist/company-profile.d.ts +566 -0
- package/dist/connect.d.ts +325 -0
- package/dist/connect.js +191 -0
- package/dist/connect.js.map +1 -0
- package/dist/connection-account-label.d.ts +2 -0
- package/dist/connection-account-label.js +35 -0
- package/dist/connection-account-label.js.map +1 -0
- package/dist/connection-authority.d.ts +193 -0
- package/dist/connection-authority.js +50 -0
- package/dist/connection-authority.js.map +1 -0
- package/dist/connector-attachments.d.ts +95 -0
- package/dist/connector-attachments.js +51 -0
- package/dist/connector-attachments.js.map +1 -0
- package/dist/connector-tool-permissions.d.ts +73 -0
- package/dist/direct-model-provider.d.ts +36 -0
- package/dist/editable-artifact-codec-registry.d.ts +16 -7
- package/dist/editable-artifact-codec-registry.js +18 -8
- package/dist/editable-artifact-committed-transaction.d.ts +2 -2
- package/dist/editable-artifact-committed-transaction.js +2 -2
- package/dist/editable-artifact-live.d.ts +11 -12
- package/dist/editable-artifact-live.js +110 -45
- package/dist/editable-artifact-live.js.map +1 -1
- package/dist/editable-artifact-serialized-commit.d.ts +2 -1
- package/dist/editable-artifact-serialized-commit.js +8 -7
- package/dist/editable-artifact-versions.d.ts +20 -5
- package/dist/editable-artifact-versions.js +23 -5
- package/dist/editable-artifacts.d.ts +2 -0
- package/dist/editable-artifacts.js +47 -35
- package/dist/external-identities.d.ts +784 -0
- package/dist/external-identities.js +44 -0
- package/dist/external-identities.js.map +1 -0
- package/dist/feedback.d.ts +51 -0
- package/dist/github-repository-contracts.d.ts +36 -0
- package/dist/github-repository-contracts.js +59 -0
- package/dist/github-repository-contracts.js.map +1 -0
- package/dist/github-repository.d.ts +14 -0
- package/dist/github-repository.js +36 -0
- package/dist/github-repository.js.map +1 -0
- package/dist/google-drive.d.ts +90 -1
- package/dist/google-drive.js +90 -16
- package/dist/google-drive.js.map +1 -1
- package/dist/governed-learning-activation.d.ts +154 -0
- package/dist/governed-learning-evaluator.d.ts +152 -0
- package/dist/host-mcp-bindings.d.ts +326 -0
- package/dist/host-mcp-bindings.js +252 -0
- package/dist/host-mcp-bindings.js.map +1 -0
- package/dist/image-generation.d.ts +1 -0
- package/dist/index.d.ts +32396 -11386
- package/dist/index.js +2198 -164
- package/dist/insights-usage.d.ts +877 -0
- package/dist/insights-usage.js +509 -0
- package/dist/insights-usage.js.map +1 -0
- package/dist/interaction.d.ts +344 -0
- package/dist/knowledge-entries.d.ts +982 -0
- package/dist/knowledge-preparation.d.ts +237 -0
- package/dist/knowledge.d.ts +197 -0
- package/dist/managed-auth-session-sets.d.ts +241 -0
- package/dist/managed-auth-session-sets.js +191 -0
- package/dist/managed-auth-session-sets.js.map +1 -0
- package/dist/managed-sign-in-methods.d.ts +56 -0
- package/dist/managed-sign-in-methods.js +46 -0
- package/dist/managed-sign-in-methods.js.map +1 -0
- package/dist/mcp-catalog-limits.d.ts +2 -0
- package/dist/mcp-endpoint.d.ts +7 -0
- package/dist/mcp-endpoint.js +9 -0
- package/dist/mcp-endpoint.js.map +1 -0
- package/dist/mcp-oauth.d.ts +71 -0
- package/dist/modal-native-proof-v2.d.ts +587 -0
- package/dist/modal-native-proof-v2.js +37 -0
- package/dist/modal-native-proof-v2.js.map +1 -0
- package/dist/model-availability.d.ts +15 -0
- package/dist/model-connection-access.d.ts +24 -0
- package/dist/model-context-inspector.d.ts +329 -0
- package/dist/model-display.d.ts +38 -0
- package/dist/model-display.js +134 -0
- package/dist/model-display.js.map +1 -0
- package/dist/model-picker-order.d.ts +25 -0
- package/dist/model-picker-order.js +42 -0
- package/dist/model-picker-order.js.map +1 -0
- package/dist/organization-access.d.ts +231 -0
- package/dist/organization-access.js +34 -0
- package/dist/organization-access.js.map +1 -0
- package/dist/organization-integration-policy.d.ts +27 -0
- package/dist/organization-membership-lifecycle.d.ts +1022 -0
- package/dist/organization-model-usage.d.ts +146 -0
- package/dist/organization-model-usage.js +67 -0
- package/dist/organization-model-usage.js.map +1 -0
- package/dist/organization-recovery.d.ts +337 -0
- package/dist/organization-recovery.js +37 -0
- package/dist/organization-recovery.js.map +1 -0
- package/dist/organization-usage.d.ts +138 -0
- package/dist/permissions.d.ts +54 -0
- package/dist/personal-github.d.ts +320 -0
- package/dist/personal-github.js +222 -0
- package/dist/personal-github.js.map +1 -0
- package/dist/plugin-discovery.d.ts +35 -0
- package/dist/plugin-discovery.js +7 -0
- package/dist/plugin-discovery.js.map +1 -0
- package/dist/preference-registry.d.ts +44 -1
- package/dist/product-analytics.d.ts +113 -0
- package/dist/product-lifecycle-facts.d.ts +73 -0
- package/dist/remember.d.ts +350 -0
- package/dist/retained-output.d.ts +8 -0
- package/dist/sandbox-file-artifacts.d.ts +57 -0
- package/dist/sandbox-provider-command.d.ts +113 -0
- package/dist/sandbox-recovery.d.ts +146 -0
- package/dist/sandbox-snapshots.d.ts +39 -0
- package/dist/session-final-reply.d.ts +6 -0
- package/dist/session-final-reply.js +9 -0
- package/dist/session-final-reply.js.map +1 -0
- package/dist/session-goal-reports.d.ts +21 -0
- package/dist/session-history-import.d.ts +947 -0
- package/dist/session-list-entries.d.ts +4 -0
- package/dist/session-list-entries.js +51 -0
- package/dist/session-list-entries.js.map +1 -0
- package/dist/session-mcp-projections.d.ts +215 -0
- package/dist/session-message-search.d.ts +68 -0
- package/dist/session-titles.d.ts +68 -0
- package/dist/session-titles.js +25 -0
- package/dist/session-titles.js.map +1 -0
- package/dist/session-topology-primitives.d.ts +22 -0
- package/dist/signup-attribution.d.ts +39 -0
- package/dist/site-request-headers.test.d.ts +1 -0
- package/dist/site-session-http.d.ts +11 -0
- package/dist/site-session-http.js +11 -0
- package/dist/site-session-http.js.map +1 -0
- package/dist/skill-catalog-context.d.ts +7 -0
- package/dist/skill-files.d.ts +12 -0
- package/dist/skill-metadata.d.ts +9 -0
- package/dist/skill-use.d.ts +61 -0
- package/dist/skills.d.ts +185 -0
- package/dist/slack-bot-scopes.d.ts +46 -21
- package/dist/slack-bot-scopes.js +14 -3
- package/dist/slack-rest-mcp.d.ts +31 -0
- package/dist/slack-rest-mcp.js +19 -0
- package/dist/slack-rest-mcp.js.map +1 -0
- package/dist/spreadsheet-artifact-commands.d.ts +2 -3
- package/dist/spreadsheet-artifact-commands.js +4 -2
- package/dist/spreadsheet-artifact-query.js +3 -2
- package/dist/subscription-account-pools.d.ts +292 -0
- package/dist/task-notes.d.ts +42 -1
- package/dist/tool-catalog.d.ts +286 -0
- package/dist/tool-result-spill.d.ts +16 -0
- package/dist/usage-allowances.d.ts +285 -0
- package/dist/usage-allowances.js +49 -0
- package/dist/usage-allowances.js.map +1 -0
- package/dist/video-generation.d.ts +3 -0
- package/dist/video-generation.js +1 -1
- package/dist/work-claims.d.ts +411 -0
- package/dist/workspace-instruction-policies.d.ts +94 -0
- package/dist/workspace-integration-wire.d.ts +36 -0
- package/dist/workspace-integration-wire.js +23 -0
- package/dist/workspace-integration-wire.js.map +1 -0
- package/dist/workspace-integrations.d.ts +948 -0
- package/dist/workspace-learning-administration.d.ts +289 -0
- package/dist/workspace-learning-policy.d.ts +1 -1
- package/dist/workspace-state.d.ts +85 -416
- package/dist/xai-provider-account-authority.d.ts +3 -0
- package/dist/xai-provider-account-authority.js +1 -1
- package/package.json +134 -1
- package/src/agent-authored-durable-text.ts +116 -0
- package/src/agent-config.ts +1527 -0
- package/src/agent-instruction-changes.ts +98 -0
- package/src/agent-learning.ts +161 -0
- package/src/agent-topology.ts +69 -0
- package/src/allowance-refusal.ts +81 -0
- package/src/analytics-consent-report.ts +20 -0
- package/src/api-key-presets.ts +25 -0
- package/src/artifact-catalog.ts +60 -0
- package/src/artifacts.ts +146 -18
- package/src/atlassian-native-retirement.ts +33 -0
- package/src/browser-storage.ts +10 -0
- package/src/bundled-skills.ts +73 -0
- package/src/claude-provider-account-authority.ts +12 -0
- package/src/claude-subscription-oauth.ts +62 -0
- package/src/claude-subscription-usage.ts +59 -0
- package/src/client-error-report.ts +184 -0
- package/src/code-search.ts +105 -0
- package/src/company-brain-governed-writes.ts +356 -0
- package/src/company-brain.ts +201 -0
- package/src/company-profile.ts +167 -1
- package/src/connect.ts +202 -0
- package/src/connection-account-label.ts +46 -0
- package/src/connection-authority.ts +213 -0
- package/src/connector-attachments.ts +327 -0
- package/src/connector-tool-permissions.ts +60 -0
- package/src/direct-model-provider.ts +98 -0
- package/src/editable-artifact-codec-registry.ts +55 -17
- package/src/editable-artifact-committed-transaction.ts +44 -31
- package/src/editable-artifact-live.ts +123 -57
- package/src/editable-artifact-serialized-commit.ts +2 -1
- package/src/editable-artifact-versions.ts +26 -5
- package/src/editable-artifacts.ts +2 -0
- package/src/external-identities.ts +285 -0
- package/src/feedback.ts +39 -0
- package/src/github-repository-contracts.ts +85 -0
- package/src/github-repository.ts +59 -0
- package/src/google-drive.ts +76 -4
- package/src/governed-learning-activation.ts +191 -0
- package/src/governed-learning-evaluator.ts +176 -0
- package/src/host-mcp-bindings.ts +298 -0
- package/src/image-generation.ts +8 -2
- package/src/index.ts +7093 -1466
- package/src/insights-usage.ts +679 -0
- package/src/interaction.ts +220 -5
- package/src/knowledge-entries.ts +375 -0
- package/src/knowledge-preparation.ts +50 -0
- package/src/knowledge.ts +134 -6
- package/src/managed-auth-session-sets.ts +253 -0
- package/src/managed-sign-in-methods.ts +37 -0
- package/src/mcp-catalog-limits.ts +2 -0
- package/src/mcp-endpoint.ts +30 -0
- package/src/mcp-oauth.ts +66 -0
- package/src/modal-native-proof-v2.ts +398 -0
- package/src/model-availability.ts +22 -0
- package/src/model-connection-access.ts +17 -0
- package/src/model-context-inspector.ts +139 -0
- package/src/model-display.ts +195 -0
- package/src/model-picker-order.ts +97 -0
- package/src/organization-access.ts +176 -0
- package/src/organization-integration-policy.ts +54 -0
- package/src/organization-membership-lifecycle.ts +559 -0
- package/src/organization-model-usage.ts +72 -0
- package/src/organization-recovery.ts +186 -0
- package/src/organization-usage.ts +79 -0
- package/src/permissions.ts +58 -0
- package/src/personal-github.ts +267 -0
- package/src/plugin-discovery.ts +33 -0
- package/src/preference-registry.ts +20 -1
- package/src/product-analytics.ts +253 -0
- package/src/product-lifecycle-facts.ts +121 -0
- package/src/remember.ts +243 -0
- package/src/retained-output.ts +20 -3
- package/src/sandbox-file-artifacts.ts +73 -0
- package/src/sandbox-provider-command.ts +82 -0
- package/src/sandbox-recovery.ts +116 -0
- package/src/sandbox-snapshots.ts +142 -0
- package/src/session-final-reply.ts +16 -0
- package/src/session-goal-reports.ts +55 -0
- package/src/session-history-import.ts +159 -0
- package/src/session-list-entries.ts +91 -0
- package/src/session-mcp-projections.ts +273 -0
- package/src/session-message-search.ts +54 -0
- package/src/session-titles.ts +467 -0
- package/src/session-topology-primitives.ts +21 -0
- package/src/signup-attribution.ts +81 -0
- package/src/site-request-headers.test.ts +28 -0
- package/src/site-session-http.ts +63 -0
- package/src/skill-catalog-context.ts +50 -0
- package/src/skill-files.ts +52 -0
- package/src/skill-metadata.ts +40 -0
- package/src/skill-use.ts +77 -0
- package/src/skills.ts +136 -0
- package/src/slack-bot-scopes.ts +106 -42
- package/src/slack-rest-mcp.ts +194 -0
- package/src/spreadsheet-artifact-commands.ts +12 -13
- package/src/subscription-account-pools.ts +44 -0
- package/src/task-notes.ts +14 -1
- package/src/tool-catalog.ts +155 -0
- package/src/tool-result-spill.ts +35 -0
- package/src/usage-allowances.ts +187 -0
- package/src/work-claims.ts +266 -0
- package/src/workspace-instruction-policies.ts +31 -0
- package/src/workspace-integration-wire.ts +99 -0
- package/src/workspace-integrations.ts +640 -0
- package/src/workspace-learning-administration.ts +88 -0
- package/src/workspace-learning-policy.ts +4 -3
- package/src/workspace-state.ts +16 -126
- package/src/xai-provider-account-authority.ts +1 -0
- package/dist/chunk-5UDNP7AO.js.map +0 -1
- package/dist/chunk-BVGIYW7D.js +0 -11
- package/dist/chunk-BVGIYW7D.js.map +0 -1
- package/dist/chunk-CM6BMECR.js.map +0 -1
- package/dist/chunk-JBCIY7QD.js.map +0 -1
- package/dist/chunk-LSB7GRLG.js.map +0 -1
- package/dist/chunk-LW7OH6CS.js.map +0 -1
- package/dist/chunk-M5ZGRVIQ.js.map +0 -1
- package/dist/chunk-Q6A7XT2N.js +0 -16734
- package/dist/chunk-Q6A7XT2N.js.map +0 -1
- package/dist/chunk-TZ6YEYN4.js.map +0 -1
- package/dist/chunk-Y3MLSLB4.js.map +0 -1
- /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AgentInstructionEditMode: z.ZodEnum<{
|
|
3
|
+
append: "append";
|
|
4
|
+
edit: "edit";
|
|
5
|
+
}>;
|
|
6
|
+
export type AgentInstructionEditMode = z.infer<typeof AgentInstructionEditMode>;
|
|
7
|
+
export declare const AgentInstructionSaveRequest: z.ZodObject<{
|
|
8
|
+
operationId: z.ZodUUID;
|
|
9
|
+
target: z.ZodObject<{
|
|
10
|
+
kind: z.ZodEnum<{
|
|
11
|
+
charter: "charter";
|
|
12
|
+
policy: "policy";
|
|
13
|
+
}>;
|
|
14
|
+
scope: z.ZodEnum<{
|
|
15
|
+
global: "global";
|
|
16
|
+
role: "role";
|
|
17
|
+
}>;
|
|
18
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
editMode: z.ZodEnum<{
|
|
21
|
+
append: "append";
|
|
22
|
+
edit: "edit";
|
|
23
|
+
}>;
|
|
24
|
+
content: z.ZodOptional<z.ZodString>;
|
|
25
|
+
oldText: z.ZodOptional<z.ZodString>;
|
|
26
|
+
newText: z.ZodOptional<z.ZodString>;
|
|
27
|
+
expectedCurrentRevisionId: z.ZodNullable<z.ZodUUID>;
|
|
28
|
+
expectedActivationVersion: z.ZodNumber;
|
|
29
|
+
evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
30
|
+
entryId: z.ZodUUID;
|
|
31
|
+
revisionId: z.ZodUUID;
|
|
32
|
+
location: z.ZodDefault<z.ZodObject<{
|
|
33
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
passage: z.ZodOptional<z.ZodString>;
|
|
35
|
+
messageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
path: z.ZodOptional<z.ZodString>;
|
|
37
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
38
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strict>>>;
|
|
43
|
+
reason: z.ZodString;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type AgentInstructionSaveRequest = z.input<typeof AgentInstructionSaveRequest>;
|
|
46
|
+
export declare const AgentInstructionReviewRequest: z.ZodObject<{
|
|
47
|
+
operationId: z.ZodUUID;
|
|
48
|
+
revisionId: z.ZodUUID;
|
|
49
|
+
decision: z.ZodEnum<{
|
|
50
|
+
approve: "approve";
|
|
51
|
+
reject: "reject";
|
|
52
|
+
}>;
|
|
53
|
+
reason: z.ZodString;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export type AgentInstructionReviewRequest = z.infer<typeof AgentInstructionReviewRequest>;
|
|
56
|
+
export declare const AgentInstructionReceipt: z.ZodObject<{
|
|
57
|
+
operationId: z.ZodUUID;
|
|
58
|
+
revisionId: z.ZodUUID;
|
|
59
|
+
outcome: z.ZodEnum<{
|
|
60
|
+
pending: "pending";
|
|
61
|
+
published: "published";
|
|
62
|
+
rejected: "rejected";
|
|
63
|
+
}>;
|
|
64
|
+
reviewBatchId: z.ZodNullable<z.ZodUUID>;
|
|
65
|
+
replayed: z.ZodBoolean;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type AgentInstructionReceipt = z.infer<typeof AgentInstructionReceipt>;
|
|
68
|
+
export declare const AgentInstructionReviewItem: z.ZodObject<{
|
|
69
|
+
revisionId: z.ZodUUID;
|
|
70
|
+
content: z.ZodString;
|
|
71
|
+
target: z.ZodObject<{
|
|
72
|
+
kind: z.ZodEnum<{
|
|
73
|
+
charter: "charter";
|
|
74
|
+
policy: "policy";
|
|
75
|
+
}>;
|
|
76
|
+
scope: z.ZodEnum<{
|
|
77
|
+
global: "global";
|
|
78
|
+
role: "role";
|
|
79
|
+
}>;
|
|
80
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
reviewBatchId: z.ZodNullable<z.ZodUUID>;
|
|
83
|
+
sessionId: z.ZodNullable<z.ZodUUID>;
|
|
84
|
+
reason: z.ZodString;
|
|
85
|
+
createdAt: z.ZodString;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type AgentInstructionReviewItem = z.infer<typeof AgentInstructionReviewItem>;
|
|
88
|
+
export declare const AgentInstructionReviewListResponse: z.ZodObject<{
|
|
89
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
90
|
+
revisionId: z.ZodUUID;
|
|
91
|
+
content: z.ZodString;
|
|
92
|
+
target: z.ZodObject<{
|
|
93
|
+
kind: z.ZodEnum<{
|
|
94
|
+
charter: "charter";
|
|
95
|
+
policy: "policy";
|
|
96
|
+
}>;
|
|
97
|
+
scope: z.ZodEnum<{
|
|
98
|
+
global: "global";
|
|
99
|
+
role: "role";
|
|
100
|
+
}>;
|
|
101
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
reviewBatchId: z.ZodNullable<z.ZodUUID>;
|
|
104
|
+
sessionId: z.ZodNullable<z.ZodUUID>;
|
|
105
|
+
reason: z.ZodString;
|
|
106
|
+
createdAt: z.ZodString;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type AgentInstructionReviewListResponse = z.infer<typeof AgentInstructionReviewListResponse>;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Review controls publication. It never grants content or external-action authority. */
|
|
3
|
+
export declare const AgentLearningMode: z.ZodEnum<{
|
|
4
|
+
automatic: "automatic";
|
|
5
|
+
off: "off";
|
|
6
|
+
review_first: "review_first";
|
|
7
|
+
}>;
|
|
8
|
+
export type AgentLearningMode = z.infer<typeof AgentLearningMode>;
|
|
9
|
+
export declare const AgentLearningCategory: z.ZodEnum<{
|
|
10
|
+
instructions: "instructions";
|
|
11
|
+
knowledge: "knowledge";
|
|
12
|
+
skills: "skills";
|
|
13
|
+
}>;
|
|
14
|
+
export type AgentLearningCategory = z.infer<typeof AgentLearningCategory>;
|
|
15
|
+
export declare const AgentLearningDefaults: z.ZodObject<{
|
|
16
|
+
knowledge: z.ZodEnum<{
|
|
17
|
+
automatic: "automatic";
|
|
18
|
+
off: "off";
|
|
19
|
+
review_first: "review_first";
|
|
20
|
+
}>;
|
|
21
|
+
instructions: z.ZodEnum<{
|
|
22
|
+
automatic: "automatic";
|
|
23
|
+
off: "off";
|
|
24
|
+
review_first: "review_first";
|
|
25
|
+
}>;
|
|
26
|
+
skills: z.ZodEnum<{
|
|
27
|
+
automatic: "automatic";
|
|
28
|
+
off: "off";
|
|
29
|
+
review_first: "review_first";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type AgentLearningDefaults = z.infer<typeof AgentLearningDefaults>;
|
|
33
|
+
export declare const DEFAULT_AGENT_LEARNING: Readonly<AgentLearningDefaults>;
|
|
34
|
+
/** An absent category inherits. `inherit` is a reset request, not persisted policy. */
|
|
35
|
+
export declare const AgentLearningOverrides: z.ZodObject<{
|
|
36
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
automatic: "automatic";
|
|
38
|
+
off: "off";
|
|
39
|
+
review_first: "review_first";
|
|
40
|
+
}>>;
|
|
41
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
automatic: "automatic";
|
|
43
|
+
off: "off";
|
|
44
|
+
review_first: "review_first";
|
|
45
|
+
}>>;
|
|
46
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
automatic: "automatic";
|
|
48
|
+
off: "off";
|
|
49
|
+
review_first: "review_first";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type AgentLearningOverrides = z.infer<typeof AgentLearningOverrides>;
|
|
53
|
+
export declare const AgentLearningOverridePatch: z.ZodObject<{
|
|
54
|
+
knowledge: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
55
|
+
automatic: "automatic";
|
|
56
|
+
off: "off";
|
|
57
|
+
review_first: "review_first";
|
|
58
|
+
}>, z.ZodLiteral<"inherit">]>>;
|
|
59
|
+
instructions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
60
|
+
automatic: "automatic";
|
|
61
|
+
off: "off";
|
|
62
|
+
review_first: "review_first";
|
|
63
|
+
}>, z.ZodLiteral<"inherit">]>>;
|
|
64
|
+
skills: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
65
|
+
automatic: "automatic";
|
|
66
|
+
off: "off";
|
|
67
|
+
review_first: "review_first";
|
|
68
|
+
}>, z.ZodLiteral<"inherit">]>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export type AgentLearningOverridePatch = z.infer<typeof AgentLearningOverridePatch>;
|
|
71
|
+
export declare const AgentLearningContext: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"chat">;
|
|
73
|
+
id: z.ZodUUID;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
kind: z.ZodLiteral<"scheduled_task">;
|
|
76
|
+
id: z.ZodUUID;
|
|
77
|
+
}, z.core.$strict>], "kind">;
|
|
78
|
+
export type AgentLearningContext = z.infer<typeof AgentLearningContext>;
|
|
79
|
+
export declare const AgentLearningOwner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"workspace">;
|
|
81
|
+
workspaceId: z.ZodUUID;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"personal">;
|
|
84
|
+
subjectId: z.ZodString;
|
|
85
|
+
}, z.core.$strict>], "kind">;
|
|
86
|
+
export type AgentLearningOwner = z.infer<typeof AgentLearningOwner>;
|
|
87
|
+
export declare const AgentLearningSettings: z.ZodObject<{
|
|
88
|
+
owner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"workspace">;
|
|
90
|
+
workspaceId: z.ZodUUID;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
kind: z.ZodLiteral<"personal">;
|
|
93
|
+
subjectId: z.ZodString;
|
|
94
|
+
}, z.core.$strict>], "kind">;
|
|
95
|
+
version: z.ZodNumber;
|
|
96
|
+
defaults: z.ZodObject<{
|
|
97
|
+
knowledge: z.ZodEnum<{
|
|
98
|
+
automatic: "automatic";
|
|
99
|
+
off: "off";
|
|
100
|
+
review_first: "review_first";
|
|
101
|
+
}>;
|
|
102
|
+
instructions: z.ZodEnum<{
|
|
103
|
+
automatic: "automatic";
|
|
104
|
+
off: "off";
|
|
105
|
+
review_first: "review_first";
|
|
106
|
+
}>;
|
|
107
|
+
skills: z.ZodEnum<{
|
|
108
|
+
automatic: "automatic";
|
|
109
|
+
off: "off";
|
|
110
|
+
review_first: "review_first";
|
|
111
|
+
}>;
|
|
112
|
+
}, z.core.$strict>;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export type AgentLearningSettings = z.infer<typeof AgentLearningSettings>;
|
|
115
|
+
export declare const AgentLearningContextSettings: z.ZodObject<{
|
|
116
|
+
context: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"chat">;
|
|
118
|
+
id: z.ZodUUID;
|
|
119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"scheduled_task">;
|
|
121
|
+
id: z.ZodUUID;
|
|
122
|
+
}, z.core.$strict>], "kind">;
|
|
123
|
+
version: z.ZodNumber;
|
|
124
|
+
overrides: z.ZodObject<{
|
|
125
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
automatic: "automatic";
|
|
127
|
+
off: "off";
|
|
128
|
+
review_first: "review_first";
|
|
129
|
+
}>>;
|
|
130
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
automatic: "automatic";
|
|
132
|
+
off: "off";
|
|
133
|
+
review_first: "review_first";
|
|
134
|
+
}>>;
|
|
135
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
automatic: "automatic";
|
|
137
|
+
off: "off";
|
|
138
|
+
review_first: "review_first";
|
|
139
|
+
}>>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export type AgentLearningContextSettings = z.infer<typeof AgentLearningContextSettings>;
|
|
143
|
+
/** Versioned settings returned by both central and contextual editors. */
|
|
144
|
+
export declare const AgentLearningSettingsRecord: z.ZodObject<{
|
|
145
|
+
ownerKey: z.ZodString;
|
|
146
|
+
contextKey: z.ZodString;
|
|
147
|
+
version: z.ZodNumber;
|
|
148
|
+
settings: z.ZodObject<{
|
|
149
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
automatic: "automatic";
|
|
151
|
+
off: "off";
|
|
152
|
+
review_first: "review_first";
|
|
153
|
+
}>>;
|
|
154
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
automatic: "automatic";
|
|
156
|
+
off: "off";
|
|
157
|
+
review_first: "review_first";
|
|
158
|
+
}>>;
|
|
159
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
automatic: "automatic";
|
|
161
|
+
off: "off";
|
|
162
|
+
review_first: "review_first";
|
|
163
|
+
}>>;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
export type AgentLearningSettingsRecord = z.infer<typeof AgentLearningSettingsRecord>;
|
|
167
|
+
export declare const AgentLearningOverrideRecord: z.ZodObject<{
|
|
168
|
+
contextKey: z.ZodString;
|
|
169
|
+
version: z.ZodNumber;
|
|
170
|
+
settings: z.ZodObject<{
|
|
171
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
automatic: "automatic";
|
|
173
|
+
off: "off";
|
|
174
|
+
review_first: "review_first";
|
|
175
|
+
}>>;
|
|
176
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
automatic: "automatic";
|
|
178
|
+
off: "off";
|
|
179
|
+
review_first: "review_first";
|
|
180
|
+
}>>;
|
|
181
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
automatic: "automatic";
|
|
183
|
+
off: "off";
|
|
184
|
+
review_first: "review_first";
|
|
185
|
+
}>>;
|
|
186
|
+
}, z.core.$strict>;
|
|
187
|
+
updatedAt: z.ZodString;
|
|
188
|
+
label: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export type AgentLearningOverrideRecord = z.infer<typeof AgentLearningOverrideRecord>;
|
|
191
|
+
export type SaveAgentLearningSettingsRequest = {
|
|
192
|
+
scope: "workspace" | "personal";
|
|
193
|
+
source?: AgentLearningContext;
|
|
194
|
+
operationId: string;
|
|
195
|
+
expectedVersion: number;
|
|
196
|
+
settings: AgentLearningOverridePatch;
|
|
197
|
+
};
|
|
198
|
+
export declare const AgentLearningEffectiveCategory: z.ZodObject<{
|
|
199
|
+
mode: z.ZodEnum<{
|
|
200
|
+
automatic: "automatic";
|
|
201
|
+
off: "off";
|
|
202
|
+
review_first: "review_first";
|
|
203
|
+
}>;
|
|
204
|
+
inherited: z.ZodBoolean;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
export declare const AgentLearningEffectivePolicy: z.ZodObject<{
|
|
207
|
+
knowledge: z.ZodObject<{
|
|
208
|
+
mode: z.ZodEnum<{
|
|
209
|
+
automatic: "automatic";
|
|
210
|
+
off: "off";
|
|
211
|
+
review_first: "review_first";
|
|
212
|
+
}>;
|
|
213
|
+
inherited: z.ZodBoolean;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
|
+
instructions: z.ZodObject<{
|
|
216
|
+
mode: z.ZodEnum<{
|
|
217
|
+
automatic: "automatic";
|
|
218
|
+
off: "off";
|
|
219
|
+
review_first: "review_first";
|
|
220
|
+
}>;
|
|
221
|
+
inherited: z.ZodBoolean;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
skills: z.ZodObject<{
|
|
224
|
+
mode: z.ZodEnum<{
|
|
225
|
+
automatic: "automatic";
|
|
226
|
+
off: "off";
|
|
227
|
+
review_first: "review_first";
|
|
228
|
+
}>;
|
|
229
|
+
inherited: z.ZodBoolean;
|
|
230
|
+
}, z.core.$strict>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
export type AgentLearningEffectivePolicy = z.infer<typeof AgentLearningEffectivePolicy>;
|
|
233
|
+
/** Apply only at an authorized settings boundary; this function confers no authority. */
|
|
234
|
+
export declare function patchAgentLearningOverrides(current: AgentLearningOverrides, patch: AgentLearningOverridePatch): AgentLearningOverrides;
|
|
235
|
+
/** Pure resolution over accepted settings. Runtime callers persist the resulting snapshot. */
|
|
236
|
+
export declare function resolveAgentLearningPolicy(defaults: AgentLearningDefaults, overrides: AgentLearningOverrides): AgentLearningEffectivePolicy;
|
|
237
|
+
/** Migration adapter preserves explicit opt-outs and existing instruction/Skill choices. */
|
|
238
|
+
export declare function agentLearningDefaultsFromLegacy(input: {
|
|
239
|
+
memoryEnabled?: boolean;
|
|
240
|
+
workspaceMode?: "off" | "suggest" | "automatic";
|
|
241
|
+
}): AgentLearningDefaults;
|
|
242
|
+
/** Existing instruction and Skill lifecycles retain their native mode vocabulary. */
|
|
243
|
+
export declare function agentLearningDestinationMode(mode: AgentLearningMode): "automatic" | "off" | "suggest";
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Compact, bounded session projection for workspace agent-topology browsers. */
|
|
3
|
+
export declare const AgentTopologySession: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
title: z.ZodNullable<z.ZodString>;
|
|
6
|
+
titleTruncated: z.ZodBoolean;
|
|
7
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
8
|
+
rootSessionId: z.ZodString;
|
|
9
|
+
nestedAgentDepth: z.ZodNumber;
|
|
10
|
+
ancestorPath: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
title: z.ZodNullable<z.ZodString>;
|
|
13
|
+
titleTruncated: z.ZodBoolean;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
status: z.ZodEnum<{
|
|
16
|
+
cancelled: "cancelled";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
idle: "idle";
|
|
19
|
+
queued: "queued";
|
|
20
|
+
recovering: "recovering";
|
|
21
|
+
requires_action: "requires_action";
|
|
22
|
+
running: "running";
|
|
23
|
+
waiting_capacity: "waiting_capacity";
|
|
24
|
+
}>;
|
|
25
|
+
goal: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
active: "active";
|
|
28
|
+
completed: "completed";
|
|
29
|
+
paused: "paused";
|
|
30
|
+
}>;
|
|
31
|
+
summary: z.ZodString;
|
|
32
|
+
summaryTruncated: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
pause: z.ZodObject<{
|
|
35
|
+
state: z.ZodEnum<{
|
|
36
|
+
active: "active";
|
|
37
|
+
paused: "paused";
|
|
38
|
+
}>;
|
|
39
|
+
additionalBlockerCount: z.ZodNumber;
|
|
40
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
kind: z.ZodEnum<{
|
|
42
|
+
session: "session";
|
|
43
|
+
workspace: "workspace";
|
|
44
|
+
}>;
|
|
45
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
displayName: z.ZodString;
|
|
47
|
+
displayNameTruncated: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
children: z.ZodObject<{
|
|
51
|
+
directChildren: z.ZodNumber;
|
|
52
|
+
totalDescendants: z.ZodNumber;
|
|
53
|
+
runningDescendants: z.ZodNumber;
|
|
54
|
+
queuedDescendants: z.ZodNumber;
|
|
55
|
+
attentionDescendants: z.ZodNumber;
|
|
56
|
+
pausedDescendants: z.ZodNumber;
|
|
57
|
+
failedDescendants: z.ZodNumber;
|
|
58
|
+
truncated: z.ZodBoolean;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
relatedWork: z.ZodObject<{
|
|
61
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
sessionId: z.ZodString;
|
|
64
|
+
subject: z.ZodObject<{
|
|
65
|
+
namespace: z.ZodString;
|
|
66
|
+
type: z.ZodEnum<{
|
|
67
|
+
artifact: "artifact";
|
|
68
|
+
branch: "branch";
|
|
69
|
+
ci_run: "ci_run";
|
|
70
|
+
issue: "issue";
|
|
71
|
+
other: "other";
|
|
72
|
+
pull_request: "pull_request";
|
|
73
|
+
release: "release";
|
|
74
|
+
repository: "repository";
|
|
75
|
+
}>;
|
|
76
|
+
canonicalKey: z.ZodString;
|
|
77
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
role: z.ZodEnum<{
|
|
80
|
+
delivering: "delivering";
|
|
81
|
+
monitoring: "monitoring";
|
|
82
|
+
reviewing: "reviewing";
|
|
83
|
+
working: "working";
|
|
84
|
+
}>;
|
|
85
|
+
state: z.ZodEnum<{
|
|
86
|
+
active: "active";
|
|
87
|
+
released: "released";
|
|
88
|
+
stale: "stale";
|
|
89
|
+
superseded: "superseded";
|
|
90
|
+
}>;
|
|
91
|
+
revision: z.ZodNumber;
|
|
92
|
+
provenance: z.ZodEnum<{
|
|
93
|
+
explicit_agent: "explicit_agent";
|
|
94
|
+
session_resource: "session_resource";
|
|
95
|
+
system_lifecycle: "system_lifecycle";
|
|
96
|
+
trusted_integration: "trusted_integration";
|
|
97
|
+
user_api: "user_api";
|
|
98
|
+
}>;
|
|
99
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
100
|
+
kind: z.ZodEnum<{
|
|
101
|
+
artifact_version: "artifact_version";
|
|
102
|
+
branch_head: "branch_head";
|
|
103
|
+
ci_run: "ci_run";
|
|
104
|
+
git_commit: "git_commit";
|
|
105
|
+
other: "other";
|
|
106
|
+
pull_request_head: "pull_request_head";
|
|
107
|
+
release_version: "release_version";
|
|
108
|
+
}>;
|
|
109
|
+
value: z.ZodString;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
observedAt: z.ZodString;
|
|
112
|
+
updatedAt: z.ZodString;
|
|
113
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
claimsTruncated: z.ZodBoolean;
|
|
116
|
+
match: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
class: z.ZodEnum<{
|
|
118
|
+
exact_subject: "exact_subject";
|
|
119
|
+
fuzzy: "fuzzy";
|
|
120
|
+
goal: "goal";
|
|
121
|
+
title: "title";
|
|
122
|
+
}>;
|
|
123
|
+
field: z.ZodEnum<{
|
|
124
|
+
claim_key: "claim_key";
|
|
125
|
+
claim_label: "claim_label";
|
|
126
|
+
goal: "goal";
|
|
127
|
+
subject: "subject";
|
|
128
|
+
title: "title";
|
|
129
|
+
}>;
|
|
130
|
+
scoreBand: z.ZodEnum<{
|
|
131
|
+
exact: "exact";
|
|
132
|
+
related: "related";
|
|
133
|
+
strong: "strong";
|
|
134
|
+
}>;
|
|
135
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
136
|
+
}, z.core.$strict>>;
|
|
137
|
+
possibleOverlap: z.ZodBoolean;
|
|
138
|
+
advisoryOnly: z.ZodLiteral<true>;
|
|
139
|
+
noAdditionalAccess: z.ZodLiteral<true>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
createdAt: z.ZodString;
|
|
142
|
+
updatedAt: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type AgentTopologySession = z.infer<typeof AgentTopologySession>;
|
|
145
|
+
export declare const AgentTopologyPageResponse: z.ZodObject<{
|
|
146
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
title: z.ZodNullable<z.ZodString>;
|
|
149
|
+
titleTruncated: z.ZodBoolean;
|
|
150
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
151
|
+
rootSessionId: z.ZodString;
|
|
152
|
+
nestedAgentDepth: z.ZodNumber;
|
|
153
|
+
ancestorPath: z.ZodArray<z.ZodObject<{
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
title: z.ZodNullable<z.ZodString>;
|
|
156
|
+
titleTruncated: z.ZodBoolean;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
status: z.ZodEnum<{
|
|
159
|
+
cancelled: "cancelled";
|
|
160
|
+
failed: "failed";
|
|
161
|
+
idle: "idle";
|
|
162
|
+
queued: "queued";
|
|
163
|
+
recovering: "recovering";
|
|
164
|
+
requires_action: "requires_action";
|
|
165
|
+
running: "running";
|
|
166
|
+
waiting_capacity: "waiting_capacity";
|
|
167
|
+
}>;
|
|
168
|
+
goal: z.ZodNullable<z.ZodObject<{
|
|
169
|
+
status: z.ZodEnum<{
|
|
170
|
+
active: "active";
|
|
171
|
+
completed: "completed";
|
|
172
|
+
paused: "paused";
|
|
173
|
+
}>;
|
|
174
|
+
summary: z.ZodString;
|
|
175
|
+
summaryTruncated: z.ZodBoolean;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
pause: z.ZodObject<{
|
|
178
|
+
state: z.ZodEnum<{
|
|
179
|
+
active: "active";
|
|
180
|
+
paused: "paused";
|
|
181
|
+
}>;
|
|
182
|
+
additionalBlockerCount: z.ZodNumber;
|
|
183
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
184
|
+
kind: z.ZodEnum<{
|
|
185
|
+
session: "session";
|
|
186
|
+
workspace: "workspace";
|
|
187
|
+
}>;
|
|
188
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
displayName: z.ZodString;
|
|
190
|
+
displayNameTruncated: z.ZodBoolean;
|
|
191
|
+
}, z.core.$strip>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
children: z.ZodObject<{
|
|
194
|
+
directChildren: z.ZodNumber;
|
|
195
|
+
totalDescendants: z.ZodNumber;
|
|
196
|
+
runningDescendants: z.ZodNumber;
|
|
197
|
+
queuedDescendants: z.ZodNumber;
|
|
198
|
+
attentionDescendants: z.ZodNumber;
|
|
199
|
+
pausedDescendants: z.ZodNumber;
|
|
200
|
+
failedDescendants: z.ZodNumber;
|
|
201
|
+
truncated: z.ZodBoolean;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
relatedWork: z.ZodObject<{
|
|
204
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
sessionId: z.ZodString;
|
|
207
|
+
subject: z.ZodObject<{
|
|
208
|
+
namespace: z.ZodString;
|
|
209
|
+
type: z.ZodEnum<{
|
|
210
|
+
artifact: "artifact";
|
|
211
|
+
branch: "branch";
|
|
212
|
+
ci_run: "ci_run";
|
|
213
|
+
issue: "issue";
|
|
214
|
+
other: "other";
|
|
215
|
+
pull_request: "pull_request";
|
|
216
|
+
release: "release";
|
|
217
|
+
repository: "repository";
|
|
218
|
+
}>;
|
|
219
|
+
canonicalKey: z.ZodString;
|
|
220
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
role: z.ZodEnum<{
|
|
223
|
+
delivering: "delivering";
|
|
224
|
+
monitoring: "monitoring";
|
|
225
|
+
reviewing: "reviewing";
|
|
226
|
+
working: "working";
|
|
227
|
+
}>;
|
|
228
|
+
state: z.ZodEnum<{
|
|
229
|
+
active: "active";
|
|
230
|
+
released: "released";
|
|
231
|
+
stale: "stale";
|
|
232
|
+
superseded: "superseded";
|
|
233
|
+
}>;
|
|
234
|
+
revision: z.ZodNumber;
|
|
235
|
+
provenance: z.ZodEnum<{
|
|
236
|
+
explicit_agent: "explicit_agent";
|
|
237
|
+
session_resource: "session_resource";
|
|
238
|
+
system_lifecycle: "system_lifecycle";
|
|
239
|
+
trusted_integration: "trusted_integration";
|
|
240
|
+
user_api: "user_api";
|
|
241
|
+
}>;
|
|
242
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
243
|
+
kind: z.ZodEnum<{
|
|
244
|
+
artifact_version: "artifact_version";
|
|
245
|
+
branch_head: "branch_head";
|
|
246
|
+
ci_run: "ci_run";
|
|
247
|
+
git_commit: "git_commit";
|
|
248
|
+
other: "other";
|
|
249
|
+
pull_request_head: "pull_request_head";
|
|
250
|
+
release_version: "release_version";
|
|
251
|
+
}>;
|
|
252
|
+
value: z.ZodString;
|
|
253
|
+
}, z.core.$strip>>;
|
|
254
|
+
observedAt: z.ZodString;
|
|
255
|
+
updatedAt: z.ZodString;
|
|
256
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
claimsTruncated: z.ZodBoolean;
|
|
259
|
+
match: z.ZodNullable<z.ZodObject<{
|
|
260
|
+
class: z.ZodEnum<{
|
|
261
|
+
exact_subject: "exact_subject";
|
|
262
|
+
fuzzy: "fuzzy";
|
|
263
|
+
goal: "goal";
|
|
264
|
+
title: "title";
|
|
265
|
+
}>;
|
|
266
|
+
field: z.ZodEnum<{
|
|
267
|
+
claim_key: "claim_key";
|
|
268
|
+
claim_label: "claim_label";
|
|
269
|
+
goal: "goal";
|
|
270
|
+
subject: "subject";
|
|
271
|
+
title: "title";
|
|
272
|
+
}>;
|
|
273
|
+
scoreBand: z.ZodEnum<{
|
|
274
|
+
exact: "exact";
|
|
275
|
+
related: "related";
|
|
276
|
+
strong: "strong";
|
|
277
|
+
}>;
|
|
278
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
279
|
+
}, z.core.$strict>>;
|
|
280
|
+
possibleOverlap: z.ZodBoolean;
|
|
281
|
+
advisoryOnly: z.ZodLiteral<true>;
|
|
282
|
+
noAdditionalAccess: z.ZodLiteral<true>;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
createdAt: z.ZodString;
|
|
285
|
+
updatedAt: z.ZodString;
|
|
286
|
+
}, z.core.$strip>>;
|
|
287
|
+
total: z.ZodNumber;
|
|
288
|
+
hasMore: z.ZodBoolean;
|
|
289
|
+
humanAdvisoriesEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
export type AgentTopologyPageResponse = z.infer<typeof AgentTopologyPageResponse>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AllowanceExhaustedRefusal } from "./usage-allowances.js";
|
|
2
|
+
/** Select only public refusal fields, including from an API error's details.
|
|
3
|
+
* LimitDecision's allowed:false and transport/SQL diagnostics never cross out.
|
|
4
|
+
*/
|
|
5
|
+
export declare function parseAllowanceExhaustedRefusal(value: unknown): AllowanceExhaustedRefusal | null;
|
|
6
|
+
/** Bounded, fixed remedies: a ceiling is not an exhausted billing source.
|
|
7
|
+
* Never interpolate arbitrary exception prose or a member identifier.
|
|
8
|
+
*/
|
|
9
|
+
export declare function allowanceExhaustedMessage(refusal: AllowanceExhaustedRefusal): string;
|