@opengeni/contracts 0.44.1 → 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 +27 -11
- 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/canonical-human-identities.d.ts +157 -0
- package/dist/canonical-human-identities.js +23 -0
- package/dist/canonical-human-identities.js.map +1 -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-52SGB2QO.js → chunk-5IXYF6XN.js} +50 -10
- 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-GRG7PHWQ.js +25 -0
- package/dist/chunk-GRG7PHWQ.js.map +1 -0
- package/dist/chunk-JUFK3T4Q.js +80 -0
- package/dist/chunk-JUFK3T4Q.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-H5BVCZKF.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-FJBG5E4O.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/codex-provider-account-authority.d.ts +23 -0
- package/dist/codex-provider-account-authority.js +23 -0
- package/dist/codex-provider-account-authority.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 +19 -9
- 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 +48 -36
- 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 +91 -15
- 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 +27574 -5374
- package/dist/index.js +2531 -177
- 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 +1752 -13
- package/dist/knowledge-entries.d.ts +982 -0
- package/dist/knowledge-preparation.d.ts +237 -0
- package/dist/knowledge.d.ts +740 -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/slack-task-policy.d.ts +294 -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 +169 -0
- 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 +51 -0
- package/dist/video-generation.js +9 -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 +26 -0
- package/dist/xai-provider-account-authority.js +9 -0
- package/dist/xai-provider-account-authority.js.map +1 -0
- package/package.json +146 -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/canonical-human-identities.ts +93 -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/codex-provider-account-authority.ts +37 -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 +8019 -1799
- package/src/insights-usage.ts +679 -0
- package/src/interaction.ts +1102 -6
- package/src/knowledge-entries.ts +375 -0
- package/src/knowledge-preparation.ts +50 -0
- package/src/knowledge.ts +335 -0
- 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/slack-task-policy.ts +215 -0
- package/src/spreadsheet-artifact-commands.ts +12 -13
- package/src/subscription-account-pools.ts +44 -0
- package/src/task-notes.ts +105 -0
- package/src/tool-catalog.ts +155 -0
- package/src/tool-result-spill.ts +35 -0
- package/src/usage-allowances.ts +187 -0
- package/src/video-generation.ts +43 -6
- 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 +38 -0
- package/dist/chunk-52SGB2QO.js.map +0 -1
- 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-FJBG5E4O.js.map +0 -1
- package/dist/chunk-H5BVCZKF.js.map +0 -1
- package/dist/chunk-LSB7GRLG.js.map +0 -1
- package/dist/chunk-TZ6YEYN4.js.map +0 -1
- package/dist/chunk-VA22KRHS.js +0 -15177
- package/dist/chunk-VA22KRHS.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,169 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TASK_NOTE_TEXT_MAX_BYTES = 4096;
|
|
3
|
+
export declare const TASK_NOTE_REASON_MAX_BYTES = 2048;
|
|
4
|
+
export declare const TASK_NOTE_MAX_LIFETIME_DAYS = 90;
|
|
5
|
+
export declare const TASK_NOTE_ACTIVE_RECORD_CAP = 500;
|
|
6
|
+
export declare const TASK_NOTE_LIST_DEFAULT_LIMIT = 10;
|
|
7
|
+
export declare const TASK_NOTE_LIST_MAX_LIMIT = 20;
|
|
8
|
+
export declare const TASK_NOTE_LIST_RESPONSE_MAX_BYTES: number;
|
|
9
|
+
export declare function boundedTaskNoteText(maxBytes: number, label: string): z.ZodString;
|
|
10
|
+
export declare const TaskNoteText: z.ZodString;
|
|
11
|
+
export declare const TaskNoteReason: z.ZodString;
|
|
12
|
+
export declare const TaskNoteKind: z.ZodEnum<{
|
|
13
|
+
artifact: "artifact";
|
|
14
|
+
blocker: "blocker";
|
|
15
|
+
decision: "decision";
|
|
16
|
+
finding: "finding";
|
|
17
|
+
handoff: "handoff";
|
|
18
|
+
ownership: "ownership";
|
|
19
|
+
}>;
|
|
20
|
+
export type TaskNoteKind = z.infer<typeof TaskNoteKind>;
|
|
21
|
+
export declare const TaskNoteStatus: z.ZodEnum<{
|
|
22
|
+
active: "active";
|
|
23
|
+
archived: "archived";
|
|
24
|
+
}>;
|
|
25
|
+
export type TaskNoteStatus = z.infer<typeof TaskNoteStatus>;
|
|
26
|
+
export declare const TaskNoteActorKind: z.ZodEnum<{
|
|
27
|
+
human: "human";
|
|
28
|
+
service: "service";
|
|
29
|
+
}>;
|
|
30
|
+
export type TaskNoteActorKind = z.infer<typeof TaskNoteActorKind>;
|
|
31
|
+
export declare const TaskNote: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
rootSessionId: z.ZodString;
|
|
34
|
+
kind: z.ZodEnum<{
|
|
35
|
+
artifact: "artifact";
|
|
36
|
+
blocker: "blocker";
|
|
37
|
+
decision: "decision";
|
|
38
|
+
finding: "finding";
|
|
39
|
+
handoff: "handoff";
|
|
40
|
+
ownership: "ownership";
|
|
41
|
+
}>;
|
|
42
|
+
text: z.ZodString;
|
|
43
|
+
status: z.ZodEnum<{
|
|
44
|
+
active: "active";
|
|
45
|
+
archived: "archived";
|
|
46
|
+
}>;
|
|
47
|
+
version: z.ZodNumber;
|
|
48
|
+
expiresAt: z.ZodString;
|
|
49
|
+
createdAt: z.ZodString;
|
|
50
|
+
updatedAt: z.ZodString;
|
|
51
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
52
|
+
provenance: z.ZodObject<{
|
|
53
|
+
actorKind: z.ZodEnum<{
|
|
54
|
+
human: "human";
|
|
55
|
+
service: "service";
|
|
56
|
+
}>;
|
|
57
|
+
sourceSessionId: z.ZodString;
|
|
58
|
+
sourceTurnId: z.ZodString;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type TaskNote = z.infer<typeof TaskNote>;
|
|
62
|
+
export declare const TaskNoteMutationResult: z.ZodObject<{
|
|
63
|
+
note: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
rootSessionId: z.ZodString;
|
|
66
|
+
kind: z.ZodEnum<{
|
|
67
|
+
artifact: "artifact";
|
|
68
|
+
blocker: "blocker";
|
|
69
|
+
decision: "decision";
|
|
70
|
+
finding: "finding";
|
|
71
|
+
handoff: "handoff";
|
|
72
|
+
ownership: "ownership";
|
|
73
|
+
}>;
|
|
74
|
+
text: z.ZodString;
|
|
75
|
+
status: z.ZodEnum<{
|
|
76
|
+
active: "active";
|
|
77
|
+
archived: "archived";
|
|
78
|
+
}>;
|
|
79
|
+
version: z.ZodNumber;
|
|
80
|
+
expiresAt: z.ZodString;
|
|
81
|
+
createdAt: z.ZodString;
|
|
82
|
+
updatedAt: z.ZodString;
|
|
83
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
84
|
+
provenance: z.ZodObject<{
|
|
85
|
+
actorKind: z.ZodEnum<{
|
|
86
|
+
human: "human";
|
|
87
|
+
service: "service";
|
|
88
|
+
}>;
|
|
89
|
+
sourceSessionId: z.ZodString;
|
|
90
|
+
sourceTurnId: z.ZodString;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
replayed: z.ZodBoolean;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export type TaskNoteMutationResult = z.infer<typeof TaskNoteMutationResult>;
|
|
96
|
+
/** Atomic correction lineage: archive one exact v1 note and create one v1 replacement. */
|
|
97
|
+
export declare const TaskNoteReplacementResult: z.ZodObject<{
|
|
98
|
+
operationId: z.ZodString;
|
|
99
|
+
inputHash: z.ZodString;
|
|
100
|
+
replaces: z.ZodObject<{
|
|
101
|
+
noteId: z.ZodString;
|
|
102
|
+
archivedVersion: z.ZodLiteral<2>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
replacement: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
rootSessionId: z.ZodString;
|
|
107
|
+
kind: z.ZodEnum<{
|
|
108
|
+
artifact: "artifact";
|
|
109
|
+
blocker: "blocker";
|
|
110
|
+
decision: "decision";
|
|
111
|
+
finding: "finding";
|
|
112
|
+
handoff: "handoff";
|
|
113
|
+
ownership: "ownership";
|
|
114
|
+
}>;
|
|
115
|
+
text: z.ZodString;
|
|
116
|
+
status: z.ZodEnum<{
|
|
117
|
+
active: "active";
|
|
118
|
+
archived: "archived";
|
|
119
|
+
}>;
|
|
120
|
+
version: z.ZodNumber;
|
|
121
|
+
expiresAt: z.ZodString;
|
|
122
|
+
createdAt: z.ZodString;
|
|
123
|
+
updatedAt: z.ZodString;
|
|
124
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
125
|
+
provenance: z.ZodObject<{
|
|
126
|
+
actorKind: z.ZodEnum<{
|
|
127
|
+
human: "human";
|
|
128
|
+
service: "service";
|
|
129
|
+
}>;
|
|
130
|
+
sourceSessionId: z.ZodString;
|
|
131
|
+
sourceTurnId: z.ZodString;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
replayed: z.ZodBoolean;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type TaskNoteReplacementResult = z.infer<typeof TaskNoteReplacementResult>;
|
|
137
|
+
export declare const TaskNoteListResponse: z.ZodObject<{
|
|
138
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
rootSessionId: z.ZodString;
|
|
141
|
+
kind: z.ZodEnum<{
|
|
142
|
+
artifact: "artifact";
|
|
143
|
+
blocker: "blocker";
|
|
144
|
+
decision: "decision";
|
|
145
|
+
finding: "finding";
|
|
146
|
+
handoff: "handoff";
|
|
147
|
+
ownership: "ownership";
|
|
148
|
+
}>;
|
|
149
|
+
text: z.ZodString;
|
|
150
|
+
status: z.ZodEnum<{
|
|
151
|
+
active: "active";
|
|
152
|
+
archived: "archived";
|
|
153
|
+
}>;
|
|
154
|
+
version: z.ZodNumber;
|
|
155
|
+
expiresAt: z.ZodString;
|
|
156
|
+
createdAt: z.ZodString;
|
|
157
|
+
updatedAt: z.ZodString;
|
|
158
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
159
|
+
provenance: z.ZodObject<{
|
|
160
|
+
actorKind: z.ZodEnum<{
|
|
161
|
+
human: "human";
|
|
162
|
+
service: "service";
|
|
163
|
+
}>;
|
|
164
|
+
sourceSessionId: z.ZodString;
|
|
165
|
+
sourceTurnId: z.ZodString;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type TaskNoteListResponse = z.infer<typeof TaskNoteListResponse>;
|
package/dist/tool-catalog.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ATTEMPT_TOOL_CATALOG_VERSION: 1;
|
|
3
|
+
export declare const TOOL_GATEWAY_CATALOG_VERSION: 1;
|
|
3
4
|
export declare const ATTEMPT_TOOL_CATALOG_MAX_ENTRIES = 4096;
|
|
4
5
|
export declare const ATTEMPT_TOOL_CATALOG_MAX_BYTES: number;
|
|
5
6
|
export declare const ATTEMPT_TOOL_CATALOG_MAX_PATH_SEGMENTS = 8;
|
|
@@ -17,6 +18,12 @@ export declare const AttemptToolIdentity: z.ZodObject<{
|
|
|
17
18
|
toolName: z.ZodString;
|
|
18
19
|
}, z.core.$strict>;
|
|
19
20
|
export type AttemptToolIdentity = z.infer<typeof AttemptToolIdentity>;
|
|
21
|
+
/** Protocol-neutral tool identity shared by MCP, HTTP/SDK, agents, and Codemode. */
|
|
22
|
+
export declare const ToolGatewayIdentity: z.ZodObject<{
|
|
23
|
+
serverId: z.ZodString;
|
|
24
|
+
toolName: z.ZodString;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export type ToolGatewayIdentity = AttemptToolIdentity;
|
|
20
27
|
export declare const AttemptToolCatalogIcon: z.ZodObject<{
|
|
21
28
|
src: z.ZodString;
|
|
22
29
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -39,6 +46,13 @@ export type AttemptToolAnnotations = z.infer<typeof AttemptToolAnnotations>;
|
|
|
39
46
|
/** JSON Schema is preserved as received. Runtime byte/node guards remain authoritative. */
|
|
40
47
|
export declare const AttemptToolJsonSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
41
48
|
export type AttemptToolJsonSchema = z.infer<typeof AttemptToolJsonSchema>;
|
|
49
|
+
/** Presentation only; never parsed as execution or account authority. */
|
|
50
|
+
export declare const ToolDisplayMetadata: z.ZodObject<{
|
|
51
|
+
toolName: z.ZodString;
|
|
52
|
+
title: z.ZodOptional<z.ZodString>;
|
|
53
|
+
accountLabel: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export type ToolDisplayMetadata = z.infer<typeof ToolDisplayMetadata>;
|
|
42
56
|
export declare const AttemptToolCatalogEntry: z.ZodObject<{
|
|
43
57
|
identity: z.ZodObject<{
|
|
44
58
|
serverId: z.ZodString;
|
|
@@ -81,6 +95,118 @@ export declare const AttemptToolCatalogEntry: z.ZodObject<{
|
|
|
81
95
|
}>;
|
|
82
96
|
}, z.core.$strict>;
|
|
83
97
|
export type AttemptToolCatalogEntry = z.infer<typeof AttemptToolCatalogEntry>;
|
|
98
|
+
/** One canonical gateway entry. Adapter-specific names are projections, never authority. */
|
|
99
|
+
export declare const ToolGatewayCatalogEntry: z.ZodObject<{
|
|
100
|
+
identity: z.ZodObject<{
|
|
101
|
+
serverId: z.ZodString;
|
|
102
|
+
toolName: z.ZodString;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
modelName: z.ZodString;
|
|
105
|
+
codemodePath: z.ZodArray<z.ZodString>;
|
|
106
|
+
title: z.ZodOptional<z.ZodString>;
|
|
107
|
+
description: z.ZodOptional<z.ZodString>;
|
|
108
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
109
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
110
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
title: z.ZodOptional<z.ZodString>;
|
|
112
|
+
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
}, z.core.$loose>>;
|
|
117
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
+
src: z.ZodString;
|
|
119
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
120
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
dark: "dark";
|
|
123
|
+
light: "light";
|
|
124
|
+
}>>;
|
|
125
|
+
}, z.core.$strict>>>;
|
|
126
|
+
source: z.ZodEnum<{
|
|
127
|
+
codex_apps: "codex_apps";
|
|
128
|
+
docs: "docs";
|
|
129
|
+
files: "files";
|
|
130
|
+
interaction: "interaction";
|
|
131
|
+
mcp: "mcp";
|
|
132
|
+
opengeni: "opengeni";
|
|
133
|
+
}>;
|
|
134
|
+
approval: z.ZodEnum<{
|
|
135
|
+
human: "human";
|
|
136
|
+
none: "none";
|
|
137
|
+
policy: "policy";
|
|
138
|
+
}>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
export type ToolGatewayCatalogEntry = AttemptToolCatalogEntry;
|
|
141
|
+
export declare const ToolGatewayCatalog: z.ZodObject<{
|
|
142
|
+
version: z.ZodLiteral<1>;
|
|
143
|
+
accountId: z.ZodString;
|
|
144
|
+
workspaceId: z.ZodString;
|
|
145
|
+
generation: z.ZodNumber;
|
|
146
|
+
digest: z.ZodString;
|
|
147
|
+
createdAt: z.ZodString;
|
|
148
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
149
|
+
identity: z.ZodObject<{
|
|
150
|
+
serverId: z.ZodString;
|
|
151
|
+
toolName: z.ZodString;
|
|
152
|
+
}, z.core.$strict>;
|
|
153
|
+
modelName: z.ZodString;
|
|
154
|
+
codemodePath: z.ZodArray<z.ZodString>;
|
|
155
|
+
title: z.ZodOptional<z.ZodString>;
|
|
156
|
+
description: z.ZodOptional<z.ZodString>;
|
|
157
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
158
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
159
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
title: z.ZodOptional<z.ZodString>;
|
|
161
|
+
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
}, z.core.$loose>>;
|
|
166
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
167
|
+
src: z.ZodString;
|
|
168
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
169
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
170
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
171
|
+
dark: "dark";
|
|
172
|
+
light: "light";
|
|
173
|
+
}>>;
|
|
174
|
+
}, z.core.$strict>>>;
|
|
175
|
+
source: z.ZodEnum<{
|
|
176
|
+
codex_apps: "codex_apps";
|
|
177
|
+
docs: "docs";
|
|
178
|
+
files: "files";
|
|
179
|
+
interaction: "interaction";
|
|
180
|
+
mcp: "mcp";
|
|
181
|
+
opengeni: "opengeni";
|
|
182
|
+
}>;
|
|
183
|
+
approval: z.ZodEnum<{
|
|
184
|
+
human: "human";
|
|
185
|
+
none: "none";
|
|
186
|
+
policy: "policy";
|
|
187
|
+
}>;
|
|
188
|
+
}, z.core.$strict>>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
export type ToolGatewayCatalog = z.infer<typeof ToolGatewayCatalog>;
|
|
191
|
+
export declare const ToolGatewayCaller: z.ZodObject<{
|
|
192
|
+
kind: z.ZodEnum<{
|
|
193
|
+
browser: "browser";
|
|
194
|
+
codemode: "codemode";
|
|
195
|
+
http: "http";
|
|
196
|
+
mcp: "mcp";
|
|
197
|
+
model: "model";
|
|
198
|
+
}>;
|
|
199
|
+
subjectId: z.ZodString;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
export type ToolGatewayCaller = z.infer<typeof ToolGatewayCaller>;
|
|
202
|
+
/**
|
|
203
|
+
* MCP request `_meta` key naming the attempt surface that issued a call to the
|
|
204
|
+
* first-party server: `model` for a direct model tool call, `codemode` for a
|
|
205
|
+
* Codemode script. Only the worker's own tool gateway sets it, and only for the
|
|
206
|
+
* first-party server. A read reached the model's context only when it says
|
|
207
|
+
* `model`; a Codemode script may keep the output to itself.
|
|
208
|
+
*/
|
|
209
|
+
export declare const FIRST_PARTY_MCP_CALLER_META_KEY = "opengeniCaller";
|
|
84
210
|
export declare const AttemptToolCatalog: z.ZodObject<{
|
|
85
211
|
version: z.ZodLiteral<1>;
|
|
86
212
|
accountId: z.ZodString;
|
|
@@ -328,6 +454,166 @@ export declare const AttemptToolResult: z.ZodObject<{
|
|
|
328
454
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
329
455
|
}, z.core.$loose>;
|
|
330
456
|
export type AttemptToolResult = z.infer<typeof AttemptToolResult>;
|
|
457
|
+
export declare const ToolGatewayResult: z.ZodObject<{
|
|
458
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
459
|
+
type: z.ZodLiteral<"text">;
|
|
460
|
+
text: z.ZodString;
|
|
461
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
462
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
463
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
464
|
+
type: z.ZodLiteral<"image">;
|
|
465
|
+
data: z.ZodString;
|
|
466
|
+
mimeType: z.ZodString;
|
|
467
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
468
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
469
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
470
|
+
type: z.ZodLiteral<"audio">;
|
|
471
|
+
data: z.ZodString;
|
|
472
|
+
mimeType: z.ZodString;
|
|
473
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
474
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
475
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
476
|
+
type: z.ZodLiteral<"resource_link">;
|
|
477
|
+
name: z.ZodString;
|
|
478
|
+
title: z.ZodOptional<z.ZodString>;
|
|
479
|
+
uri: z.ZodString;
|
|
480
|
+
description: z.ZodOptional<z.ZodString>;
|
|
481
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
482
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
484
|
+
src: z.ZodString;
|
|
485
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
486
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
487
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
488
|
+
dark: "dark";
|
|
489
|
+
light: "light";
|
|
490
|
+
}>>;
|
|
491
|
+
}, z.core.$strict>>>;
|
|
492
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
493
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
494
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
495
|
+
type: z.ZodLiteral<"resource">;
|
|
496
|
+
resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
497
|
+
uri: z.ZodString;
|
|
498
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
499
|
+
text: z.ZodString;
|
|
500
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
501
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
502
|
+
uri: z.ZodString;
|
|
503
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
504
|
+
blob: z.ZodString;
|
|
505
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
506
|
+
}, z.core.$loose>]>;
|
|
507
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
508
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
509
|
+
}, z.core.$loose>], "type">>;
|
|
510
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
511
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
513
|
+
}, z.core.$loose>;
|
|
514
|
+
export type ToolGatewayResult = AttemptToolResult;
|
|
515
|
+
export declare const ToolGatewayCallRequest: z.ZodObject<{
|
|
516
|
+
operationId: z.ZodOptional<z.ZodString>;
|
|
517
|
+
catalogDigest: z.ZodString;
|
|
518
|
+
identity: z.ZodObject<{
|
|
519
|
+
serverId: z.ZodString;
|
|
520
|
+
toolName: z.ZodString;
|
|
521
|
+
}, z.core.$strict>;
|
|
522
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
523
|
+
siteArtifactId: z.ZodOptional<z.ZodString>;
|
|
524
|
+
siteVersionId: z.ZodOptional<z.ZodString>;
|
|
525
|
+
approvalToken: z.ZodOptional<z.ZodString>;
|
|
526
|
+
}, z.core.$strict>;
|
|
527
|
+
export type ToolGatewayCallRequest = z.infer<typeof ToolGatewayCallRequest>;
|
|
528
|
+
export declare const ToolGatewayApprovalRequest: z.ZodObject<{
|
|
529
|
+
operationId: z.ZodString;
|
|
530
|
+
catalogDigest: z.ZodString;
|
|
531
|
+
identity: z.ZodObject<{
|
|
532
|
+
serverId: z.ZodString;
|
|
533
|
+
toolName: z.ZodString;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
536
|
+
}, z.core.$strict>;
|
|
537
|
+
export type ToolGatewayApprovalRequest = z.infer<typeof ToolGatewayApprovalRequest>;
|
|
538
|
+
export declare const ToolGatewayApprovalResponse: z.ZodObject<{
|
|
539
|
+
operationId: z.ZodString;
|
|
540
|
+
catalogDigest: z.ZodString;
|
|
541
|
+
identity: z.ZodObject<{
|
|
542
|
+
serverId: z.ZodString;
|
|
543
|
+
toolName: z.ZodString;
|
|
544
|
+
}, z.core.$strict>;
|
|
545
|
+
approvalToken: z.ZodString;
|
|
546
|
+
expiresAt: z.ZodString;
|
|
547
|
+
}, z.core.$strict>;
|
|
548
|
+
export type ToolGatewayApprovalResponse = z.infer<typeof ToolGatewayApprovalResponse>;
|
|
549
|
+
export declare const ToolGatewayCallResponse: z.ZodObject<{
|
|
550
|
+
operationId: z.ZodString;
|
|
551
|
+
catalogDigest: z.ZodString;
|
|
552
|
+
result: z.ZodObject<{
|
|
553
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
554
|
+
type: z.ZodLiteral<"text">;
|
|
555
|
+
text: z.ZodString;
|
|
556
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
557
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
558
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
559
|
+
type: z.ZodLiteral<"image">;
|
|
560
|
+
data: z.ZodString;
|
|
561
|
+
mimeType: z.ZodString;
|
|
562
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
563
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
564
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"audio">;
|
|
566
|
+
data: z.ZodString;
|
|
567
|
+
mimeType: z.ZodString;
|
|
568
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
569
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
570
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
571
|
+
type: z.ZodLiteral<"resource_link">;
|
|
572
|
+
name: z.ZodString;
|
|
573
|
+
title: z.ZodOptional<z.ZodString>;
|
|
574
|
+
uri: z.ZodString;
|
|
575
|
+
description: z.ZodOptional<z.ZodString>;
|
|
576
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
577
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
579
|
+
src: z.ZodString;
|
|
580
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
581
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
582
|
+
theme: z.ZodOptional<z.ZodEnum<{
|
|
583
|
+
dark: "dark";
|
|
584
|
+
light: "light";
|
|
585
|
+
}>>;
|
|
586
|
+
}, z.core.$strict>>>;
|
|
587
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
588
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
589
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
590
|
+
type: z.ZodLiteral<"resource">;
|
|
591
|
+
resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
592
|
+
uri: z.ZodString;
|
|
593
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
594
|
+
text: z.ZodString;
|
|
595
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
596
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
597
|
+
uri: z.ZodString;
|
|
598
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
599
|
+
blob: z.ZodString;
|
|
600
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
601
|
+
}, z.core.$loose>]>;
|
|
602
|
+
annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
603
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
604
|
+
}, z.core.$loose>], "type">>;
|
|
605
|
+
structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
606
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
608
|
+
}, z.core.$loose>;
|
|
609
|
+
}, z.core.$strict>;
|
|
610
|
+
export type ToolGatewayCallResponse = z.infer<typeof ToolGatewayCallResponse>;
|
|
611
|
+
export declare const ToolGatewayDeclarationsResponse: z.ZodObject<{
|
|
612
|
+
catalogDigest: z.ZodString;
|
|
613
|
+
moduleSpecifier: z.ZodString;
|
|
614
|
+
source: z.ZodString;
|
|
615
|
+
}, z.core.$strict>;
|
|
616
|
+
export type ToolGatewayDeclarationsResponse = z.infer<typeof ToolGatewayDeclarationsResponse>;
|
|
331
617
|
export declare const CodemodeOperationState: z.ZodEnum<{
|
|
332
618
|
cancelled: "cancelled";
|
|
333
619
|
completed: "completed";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Model-visible overflow of one tool result. Exact bytes live on a workspace File. */
|
|
3
|
+
export declare const TOOL_RESULT_SPILLED_TYPE: "tool_result_spilled";
|
|
4
|
+
export declare const TOOL_RESULT_SPILL_MEDIA_TYPE: "application/json";
|
|
5
|
+
export declare const TOOL_RESULT_SPILL_MOUNT_PATH: "tool-results";
|
|
6
|
+
export declare const ToolResultSpilledReceipt: z.ZodObject<{
|
|
7
|
+
type: z.ZodLiteral<"tool_result_spilled">;
|
|
8
|
+
sandboxPath: z.ZodNullable<z.ZodString>;
|
|
9
|
+
fileId: z.ZodString;
|
|
10
|
+
byteSize: z.ZodNumber;
|
|
11
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type ToolResultSpilledReceipt = z.infer<typeof ToolResultSpilledReceipt>;
|
|
14
|
+
export declare function isToolResultSpilledReceipt(value: unknown): value is ToolResultSpilledReceipt;
|
|
15
|
+
export declare function toolResultSpillSandboxPath(filename: string): string;
|
|
16
|
+
export declare function toolResultSpillFilename(operationId: string): string;
|