@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,411 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WORK_CLAIM_NAMESPACE_MAX_BYTES = 64;
|
|
3
|
+
export declare const WORK_CLAIM_CANONICAL_KEY_MAX_BYTES = 512;
|
|
4
|
+
export declare const WORK_CLAIM_DISPLAY_LABEL_MAX_BYTES = 256;
|
|
5
|
+
export declare const WORK_CLAIM_VERSION_VALUE_MAX_BYTES = 256;
|
|
6
|
+
export declare const WORK_CLAIM_ACTIVE_SESSION_CAP = 64;
|
|
7
|
+
export declare const WORK_CLAIM_DISCOVERY_LIMIT = 8;
|
|
8
|
+
export declare const WORK_CLAIM_DISCOVERY_DEFAULT_LIMIT = 4;
|
|
9
|
+
export declare const WORK_DISCOVERY_QUERY_MAX_CHARS = 200;
|
|
10
|
+
export declare const WORK_DISCOVERY_RECENT_HOURS_MAX: number;
|
|
11
|
+
export declare function normalizeWorkClaimNamespace(value: string): string;
|
|
12
|
+
export declare function normalizeWorkClaimCanonicalKey(value: string): string;
|
|
13
|
+
export declare function normalizeWorkClaimDisplayLabel(value: string): string | null;
|
|
14
|
+
export declare const WorkClaimNamespace: z.ZodString;
|
|
15
|
+
export type WorkClaimNamespace = z.infer<typeof WorkClaimNamespace>;
|
|
16
|
+
export declare const WorkClaimCanonicalKey: z.ZodString;
|
|
17
|
+
export type WorkClaimCanonicalKey = z.infer<typeof WorkClaimCanonicalKey>;
|
|
18
|
+
export declare const WorkClaimDisplayLabel: z.ZodString;
|
|
19
|
+
export type WorkClaimDisplayLabel = z.infer<typeof WorkClaimDisplayLabel>;
|
|
20
|
+
export declare const WorkClaimSubjectType: z.ZodEnum<{
|
|
21
|
+
artifact: "artifact";
|
|
22
|
+
branch: "branch";
|
|
23
|
+
ci_run: "ci_run";
|
|
24
|
+
issue: "issue";
|
|
25
|
+
other: "other";
|
|
26
|
+
pull_request: "pull_request";
|
|
27
|
+
release: "release";
|
|
28
|
+
repository: "repository";
|
|
29
|
+
}>;
|
|
30
|
+
export type WorkClaimSubjectType = z.infer<typeof WorkClaimSubjectType>;
|
|
31
|
+
export declare const WorkClaimRole: z.ZodEnum<{
|
|
32
|
+
delivering: "delivering";
|
|
33
|
+
monitoring: "monitoring";
|
|
34
|
+
reviewing: "reviewing";
|
|
35
|
+
working: "working";
|
|
36
|
+
}>;
|
|
37
|
+
export type WorkClaimRole = z.infer<typeof WorkClaimRole>;
|
|
38
|
+
export declare const WorkClaimState: z.ZodEnum<{
|
|
39
|
+
active: "active";
|
|
40
|
+
released: "released";
|
|
41
|
+
stale: "stale";
|
|
42
|
+
superseded: "superseded";
|
|
43
|
+
}>;
|
|
44
|
+
export type WorkClaimState = z.infer<typeof WorkClaimState>;
|
|
45
|
+
export declare const WorkClaimProvenance: z.ZodEnum<{
|
|
46
|
+
explicit_agent: "explicit_agent";
|
|
47
|
+
session_resource: "session_resource";
|
|
48
|
+
system_lifecycle: "system_lifecycle";
|
|
49
|
+
trusted_integration: "trusted_integration";
|
|
50
|
+
user_api: "user_api";
|
|
51
|
+
}>;
|
|
52
|
+
export type WorkClaimProvenance = z.infer<typeof WorkClaimProvenance>;
|
|
53
|
+
export declare const WorkClaimVersionKind: z.ZodEnum<{
|
|
54
|
+
artifact_version: "artifact_version";
|
|
55
|
+
branch_head: "branch_head";
|
|
56
|
+
ci_run: "ci_run";
|
|
57
|
+
git_commit: "git_commit";
|
|
58
|
+
other: "other";
|
|
59
|
+
pull_request_head: "pull_request_head";
|
|
60
|
+
release_version: "release_version";
|
|
61
|
+
}>;
|
|
62
|
+
export type WorkClaimVersionKind = z.infer<typeof WorkClaimVersionKind>;
|
|
63
|
+
export declare const WorkClaimVersionValue: z.ZodString;
|
|
64
|
+
export type WorkClaimVersionValue = z.infer<typeof WorkClaimVersionValue>;
|
|
65
|
+
export declare const WorkClaimReleaseReason: z.ZodEnum<{
|
|
66
|
+
cancelled: "cancelled";
|
|
67
|
+
completed: "completed";
|
|
68
|
+
corrected: "corrected";
|
|
69
|
+
external_state_changed: "external_state_changed";
|
|
70
|
+
failed: "failed";
|
|
71
|
+
no_longer_active: "no_longer_active";
|
|
72
|
+
other: "other";
|
|
73
|
+
superseded: "superseded";
|
|
74
|
+
}>;
|
|
75
|
+
export type WorkClaimReleaseReason = z.infer<typeof WorkClaimReleaseReason>;
|
|
76
|
+
export declare const WorkClaimMutationKind: z.ZodEnum<{
|
|
77
|
+
created: "created";
|
|
78
|
+
released: "released";
|
|
79
|
+
stale: "stale";
|
|
80
|
+
superseded: "superseded";
|
|
81
|
+
updated: "updated";
|
|
82
|
+
}>;
|
|
83
|
+
export type WorkClaimMutationKind = z.infer<typeof WorkClaimMutationKind>;
|
|
84
|
+
export declare const WorkClaim: z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
sessionId: z.ZodString;
|
|
87
|
+
rootSessionId: z.ZodString;
|
|
88
|
+
subject: z.ZodObject<{
|
|
89
|
+
namespace: z.ZodString;
|
|
90
|
+
type: z.ZodEnum<{
|
|
91
|
+
artifact: "artifact";
|
|
92
|
+
branch: "branch";
|
|
93
|
+
ci_run: "ci_run";
|
|
94
|
+
issue: "issue";
|
|
95
|
+
other: "other";
|
|
96
|
+
pull_request: "pull_request";
|
|
97
|
+
release: "release";
|
|
98
|
+
repository: "repository";
|
|
99
|
+
}>;
|
|
100
|
+
canonicalKey: z.ZodString;
|
|
101
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
role: z.ZodEnum<{
|
|
104
|
+
delivering: "delivering";
|
|
105
|
+
monitoring: "monitoring";
|
|
106
|
+
reviewing: "reviewing";
|
|
107
|
+
working: "working";
|
|
108
|
+
}>;
|
|
109
|
+
state: z.ZodEnum<{
|
|
110
|
+
active: "active";
|
|
111
|
+
released: "released";
|
|
112
|
+
stale: "stale";
|
|
113
|
+
superseded: "superseded";
|
|
114
|
+
}>;
|
|
115
|
+
revision: z.ZodNumber;
|
|
116
|
+
provenance: z.ZodEnum<{
|
|
117
|
+
explicit_agent: "explicit_agent";
|
|
118
|
+
session_resource: "session_resource";
|
|
119
|
+
system_lifecycle: "system_lifecycle";
|
|
120
|
+
trusted_integration: "trusted_integration";
|
|
121
|
+
user_api: "user_api";
|
|
122
|
+
}>;
|
|
123
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
124
|
+
kind: z.ZodEnum<{
|
|
125
|
+
artifact_version: "artifact_version";
|
|
126
|
+
branch_head: "branch_head";
|
|
127
|
+
ci_run: "ci_run";
|
|
128
|
+
git_commit: "git_commit";
|
|
129
|
+
other: "other";
|
|
130
|
+
pull_request_head: "pull_request_head";
|
|
131
|
+
release_version: "release_version";
|
|
132
|
+
}>;
|
|
133
|
+
value: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
observedAt: z.ZodString;
|
|
136
|
+
createdAt: z.ZodString;
|
|
137
|
+
updatedAt: z.ZodString;
|
|
138
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export type WorkClaim = z.infer<typeof WorkClaim>;
|
|
141
|
+
export declare const WorkClaimMutationResult: z.ZodObject<{
|
|
142
|
+
claim: z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
sessionId: z.ZodString;
|
|
145
|
+
rootSessionId: z.ZodString;
|
|
146
|
+
subject: z.ZodObject<{
|
|
147
|
+
namespace: z.ZodString;
|
|
148
|
+
type: z.ZodEnum<{
|
|
149
|
+
artifact: "artifact";
|
|
150
|
+
branch: "branch";
|
|
151
|
+
ci_run: "ci_run";
|
|
152
|
+
issue: "issue";
|
|
153
|
+
other: "other";
|
|
154
|
+
pull_request: "pull_request";
|
|
155
|
+
release: "release";
|
|
156
|
+
repository: "repository";
|
|
157
|
+
}>;
|
|
158
|
+
canonicalKey: z.ZodString;
|
|
159
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
role: z.ZodEnum<{
|
|
162
|
+
delivering: "delivering";
|
|
163
|
+
monitoring: "monitoring";
|
|
164
|
+
reviewing: "reviewing";
|
|
165
|
+
working: "working";
|
|
166
|
+
}>;
|
|
167
|
+
state: z.ZodEnum<{
|
|
168
|
+
active: "active";
|
|
169
|
+
released: "released";
|
|
170
|
+
stale: "stale";
|
|
171
|
+
superseded: "superseded";
|
|
172
|
+
}>;
|
|
173
|
+
revision: z.ZodNumber;
|
|
174
|
+
provenance: z.ZodEnum<{
|
|
175
|
+
explicit_agent: "explicit_agent";
|
|
176
|
+
session_resource: "session_resource";
|
|
177
|
+
system_lifecycle: "system_lifecycle";
|
|
178
|
+
trusted_integration: "trusted_integration";
|
|
179
|
+
user_api: "user_api";
|
|
180
|
+
}>;
|
|
181
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
182
|
+
kind: z.ZodEnum<{
|
|
183
|
+
artifact_version: "artifact_version";
|
|
184
|
+
branch_head: "branch_head";
|
|
185
|
+
ci_run: "ci_run";
|
|
186
|
+
git_commit: "git_commit";
|
|
187
|
+
other: "other";
|
|
188
|
+
pull_request_head: "pull_request_head";
|
|
189
|
+
release_version: "release_version";
|
|
190
|
+
}>;
|
|
191
|
+
value: z.ZodString;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
observedAt: z.ZodString;
|
|
194
|
+
createdAt: z.ZodString;
|
|
195
|
+
updatedAt: z.ZodString;
|
|
196
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
mutation: z.ZodEnum<{
|
|
199
|
+
created: "created";
|
|
200
|
+
released: "released";
|
|
201
|
+
stale: "stale";
|
|
202
|
+
superseded: "superseded";
|
|
203
|
+
updated: "updated";
|
|
204
|
+
}>;
|
|
205
|
+
replayed: z.ZodBoolean;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export type WorkClaimMutationResult = z.infer<typeof WorkClaimMutationResult>;
|
|
208
|
+
export declare const WorkClaimDiscoverySummary: z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
sessionId: z.ZodString;
|
|
211
|
+
subject: z.ZodObject<{
|
|
212
|
+
namespace: z.ZodString;
|
|
213
|
+
type: z.ZodEnum<{
|
|
214
|
+
artifact: "artifact";
|
|
215
|
+
branch: "branch";
|
|
216
|
+
ci_run: "ci_run";
|
|
217
|
+
issue: "issue";
|
|
218
|
+
other: "other";
|
|
219
|
+
pull_request: "pull_request";
|
|
220
|
+
release: "release";
|
|
221
|
+
repository: "repository";
|
|
222
|
+
}>;
|
|
223
|
+
canonicalKey: z.ZodString;
|
|
224
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
role: z.ZodEnum<{
|
|
227
|
+
delivering: "delivering";
|
|
228
|
+
monitoring: "monitoring";
|
|
229
|
+
reviewing: "reviewing";
|
|
230
|
+
working: "working";
|
|
231
|
+
}>;
|
|
232
|
+
state: z.ZodEnum<{
|
|
233
|
+
active: "active";
|
|
234
|
+
released: "released";
|
|
235
|
+
stale: "stale";
|
|
236
|
+
superseded: "superseded";
|
|
237
|
+
}>;
|
|
238
|
+
revision: z.ZodNumber;
|
|
239
|
+
provenance: z.ZodEnum<{
|
|
240
|
+
explicit_agent: "explicit_agent";
|
|
241
|
+
session_resource: "session_resource";
|
|
242
|
+
system_lifecycle: "system_lifecycle";
|
|
243
|
+
trusted_integration: "trusted_integration";
|
|
244
|
+
user_api: "user_api";
|
|
245
|
+
}>;
|
|
246
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
247
|
+
kind: z.ZodEnum<{
|
|
248
|
+
artifact_version: "artifact_version";
|
|
249
|
+
branch_head: "branch_head";
|
|
250
|
+
ci_run: "ci_run";
|
|
251
|
+
git_commit: "git_commit";
|
|
252
|
+
other: "other";
|
|
253
|
+
pull_request_head: "pull_request_head";
|
|
254
|
+
release_version: "release_version";
|
|
255
|
+
}>;
|
|
256
|
+
value: z.ZodString;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
observedAt: z.ZodString;
|
|
259
|
+
updatedAt: z.ZodString;
|
|
260
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
export type WorkClaimDiscoverySummary = z.infer<typeof WorkClaimDiscoverySummary>;
|
|
263
|
+
export declare const WorkClaimSubjectFilter: z.ZodObject<{
|
|
264
|
+
namespace: z.ZodString;
|
|
265
|
+
type: z.ZodEnum<{
|
|
266
|
+
artifact: "artifact";
|
|
267
|
+
branch: "branch";
|
|
268
|
+
ci_run: "ci_run";
|
|
269
|
+
issue: "issue";
|
|
270
|
+
other: "other";
|
|
271
|
+
pull_request: "pull_request";
|
|
272
|
+
release: "release";
|
|
273
|
+
repository: "repository";
|
|
274
|
+
}>;
|
|
275
|
+
canonicalKey: z.ZodString;
|
|
276
|
+
}, z.core.$strict>;
|
|
277
|
+
export type WorkClaimSubjectFilter = z.infer<typeof WorkClaimSubjectFilter>;
|
|
278
|
+
export declare const WorkDiscoveryMatchClass: z.ZodEnum<{
|
|
279
|
+
exact_subject: "exact_subject";
|
|
280
|
+
fuzzy: "fuzzy";
|
|
281
|
+
goal: "goal";
|
|
282
|
+
title: "title";
|
|
283
|
+
}>;
|
|
284
|
+
export type WorkDiscoveryMatchClass = z.infer<typeof WorkDiscoveryMatchClass>;
|
|
285
|
+
export declare const WorkDiscoveryMatchedField: z.ZodEnum<{
|
|
286
|
+
claim_key: "claim_key";
|
|
287
|
+
claim_label: "claim_label";
|
|
288
|
+
goal: "goal";
|
|
289
|
+
subject: "subject";
|
|
290
|
+
title: "title";
|
|
291
|
+
}>;
|
|
292
|
+
export type WorkDiscoveryMatchedField = z.infer<typeof WorkDiscoveryMatchedField>;
|
|
293
|
+
/**
|
|
294
|
+
* Deliberately stable bands rather than a raw ranking score. Raw full-text or
|
|
295
|
+
* trigram values are query-relative and become a misleading cross-query API.
|
|
296
|
+
*/
|
|
297
|
+
export declare const WorkDiscoveryScoreBand: z.ZodEnum<{
|
|
298
|
+
exact: "exact";
|
|
299
|
+
related: "related";
|
|
300
|
+
strong: "strong";
|
|
301
|
+
}>;
|
|
302
|
+
export type WorkDiscoveryScoreBand = z.infer<typeof WorkDiscoveryScoreBand>;
|
|
303
|
+
export declare const WorkDiscoveryMatch: z.ZodObject<{
|
|
304
|
+
class: z.ZodEnum<{
|
|
305
|
+
exact_subject: "exact_subject";
|
|
306
|
+
fuzzy: "fuzzy";
|
|
307
|
+
goal: "goal";
|
|
308
|
+
title: "title";
|
|
309
|
+
}>;
|
|
310
|
+
field: z.ZodEnum<{
|
|
311
|
+
claim_key: "claim_key";
|
|
312
|
+
claim_label: "claim_label";
|
|
313
|
+
goal: "goal";
|
|
314
|
+
subject: "subject";
|
|
315
|
+
title: "title";
|
|
316
|
+
}>;
|
|
317
|
+
scoreBand: z.ZodEnum<{
|
|
318
|
+
exact: "exact";
|
|
319
|
+
related: "related";
|
|
320
|
+
strong: "strong";
|
|
321
|
+
}>;
|
|
322
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
323
|
+
}, z.core.$strict>;
|
|
324
|
+
export type WorkDiscoveryMatch = z.infer<typeof WorkDiscoveryMatch>;
|
|
325
|
+
/**
|
|
326
|
+
* Provider-neutral related-work evidence. The two literal booleans are part of
|
|
327
|
+
* the wire contract so a consumer cannot accidentally present a claim as a
|
|
328
|
+
* lock, authorization grant, ownership transfer, or mandatory instruction.
|
|
329
|
+
*/
|
|
330
|
+
export declare const WorkDiscoveryProjection: z.ZodObject<{
|
|
331
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
sessionId: z.ZodString;
|
|
334
|
+
subject: z.ZodObject<{
|
|
335
|
+
namespace: z.ZodString;
|
|
336
|
+
type: z.ZodEnum<{
|
|
337
|
+
artifact: "artifact";
|
|
338
|
+
branch: "branch";
|
|
339
|
+
ci_run: "ci_run";
|
|
340
|
+
issue: "issue";
|
|
341
|
+
other: "other";
|
|
342
|
+
pull_request: "pull_request";
|
|
343
|
+
release: "release";
|
|
344
|
+
repository: "repository";
|
|
345
|
+
}>;
|
|
346
|
+
canonicalKey: z.ZodString;
|
|
347
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
role: z.ZodEnum<{
|
|
350
|
+
delivering: "delivering";
|
|
351
|
+
monitoring: "monitoring";
|
|
352
|
+
reviewing: "reviewing";
|
|
353
|
+
working: "working";
|
|
354
|
+
}>;
|
|
355
|
+
state: z.ZodEnum<{
|
|
356
|
+
active: "active";
|
|
357
|
+
released: "released";
|
|
358
|
+
stale: "stale";
|
|
359
|
+
superseded: "superseded";
|
|
360
|
+
}>;
|
|
361
|
+
revision: z.ZodNumber;
|
|
362
|
+
provenance: z.ZodEnum<{
|
|
363
|
+
explicit_agent: "explicit_agent";
|
|
364
|
+
session_resource: "session_resource";
|
|
365
|
+
system_lifecycle: "system_lifecycle";
|
|
366
|
+
trusted_integration: "trusted_integration";
|
|
367
|
+
user_api: "user_api";
|
|
368
|
+
}>;
|
|
369
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
370
|
+
kind: z.ZodEnum<{
|
|
371
|
+
artifact_version: "artifact_version";
|
|
372
|
+
branch_head: "branch_head";
|
|
373
|
+
ci_run: "ci_run";
|
|
374
|
+
git_commit: "git_commit";
|
|
375
|
+
other: "other";
|
|
376
|
+
pull_request_head: "pull_request_head";
|
|
377
|
+
release_version: "release_version";
|
|
378
|
+
}>;
|
|
379
|
+
value: z.ZodString;
|
|
380
|
+
}, z.core.$strip>>;
|
|
381
|
+
observedAt: z.ZodString;
|
|
382
|
+
updatedAt: z.ZodString;
|
|
383
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
claimsTruncated: z.ZodBoolean;
|
|
386
|
+
match: z.ZodNullable<z.ZodObject<{
|
|
387
|
+
class: z.ZodEnum<{
|
|
388
|
+
exact_subject: "exact_subject";
|
|
389
|
+
fuzzy: "fuzzy";
|
|
390
|
+
goal: "goal";
|
|
391
|
+
title: "title";
|
|
392
|
+
}>;
|
|
393
|
+
field: z.ZodEnum<{
|
|
394
|
+
claim_key: "claim_key";
|
|
395
|
+
claim_label: "claim_label";
|
|
396
|
+
goal: "goal";
|
|
397
|
+
subject: "subject";
|
|
398
|
+
title: "title";
|
|
399
|
+
}>;
|
|
400
|
+
scoreBand: z.ZodEnum<{
|
|
401
|
+
exact: "exact";
|
|
402
|
+
related: "related";
|
|
403
|
+
strong: "strong";
|
|
404
|
+
}>;
|
|
405
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
406
|
+
}, z.core.$strict>>;
|
|
407
|
+
possibleOverlap: z.ZodBoolean;
|
|
408
|
+
advisoryOnly: z.ZodLiteral<true>;
|
|
409
|
+
noAdditionalAccess: z.ZodLiteral<true>;
|
|
410
|
+
}, z.core.$strict>;
|
|
411
|
+
export type WorkDiscoveryProjection = z.infer<typeof WorkDiscoveryProjection>;
|
|
@@ -16,6 +16,7 @@ export declare const WorkspaceInstructionPolicyScope: z.ZodEnum<{
|
|
|
16
16
|
}>;
|
|
17
17
|
export type WorkspaceInstructionPolicyScope = z.infer<typeof WorkspaceInstructionPolicyScope>;
|
|
18
18
|
export declare const WorkspaceInstructionPolicyProvenanceSource: z.ZodEnum<{
|
|
19
|
+
agent_learning: "agent_learning";
|
|
19
20
|
human: "human";
|
|
20
21
|
knowledge_proposal: "knowledge_proposal";
|
|
21
22
|
legacy_import: "legacy_import";
|
|
@@ -63,6 +64,7 @@ export declare const WorkspaceInstructionPolicyTarget: z.ZodObject<{
|
|
|
63
64
|
export type WorkspaceInstructionPolicyTarget = z.infer<typeof WorkspaceInstructionPolicyTarget>;
|
|
64
65
|
export declare const WorkspaceInstructionPolicyProvenance: z.ZodObject<{
|
|
65
66
|
source: z.ZodEnum<{
|
|
67
|
+
agent_learning: "agent_learning";
|
|
66
68
|
human: "human";
|
|
67
69
|
knowledge_proposal: "knowledge_proposal";
|
|
68
70
|
legacy_import: "legacy_import";
|
|
@@ -96,6 +98,7 @@ export declare const WorkspaceInstructionPolicyRevision: z.ZodObject<{
|
|
|
96
98
|
content: z.ZodString;
|
|
97
99
|
provenance: z.ZodObject<{
|
|
98
100
|
source: z.ZodEnum<{
|
|
101
|
+
agent_learning: "agent_learning";
|
|
99
102
|
human: "human";
|
|
100
103
|
knowledge_proposal: "knowledge_proposal";
|
|
101
104
|
legacy_import: "legacy_import";
|
|
@@ -126,8 +129,24 @@ export declare const WorkspaceInstructionPolicyHead: z.ZodObject<{
|
|
|
126
129
|
activatedAt: z.ZodString;
|
|
127
130
|
}, z.core.$strip>;
|
|
128
131
|
export type WorkspaceInstructionPolicyHead = z.infer<typeof WorkspaceInstructionPolicyHead>;
|
|
132
|
+
export declare const WorkspaceInstructionPolicyInactiveHead: z.ZodObject<{
|
|
133
|
+
kind: z.ZodEnum<{
|
|
134
|
+
charter: "charter";
|
|
135
|
+
policy: "policy";
|
|
136
|
+
}>;
|
|
137
|
+
scope: z.ZodEnum<{
|
|
138
|
+
global: "global";
|
|
139
|
+
role: "role";
|
|
140
|
+
}>;
|
|
141
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
142
|
+
workspaceId: z.ZodString;
|
|
143
|
+
activationVersion: z.ZodNumber;
|
|
144
|
+
deactivatedAt: z.ZodString;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export type WorkspaceInstructionPolicyInactiveHead = z.infer<typeof WorkspaceInstructionPolicyInactiveHead>;
|
|
129
147
|
export declare const WorkspaceInstructionPolicySnapshotProvenance: z.ZodObject<{
|
|
130
148
|
source: z.ZodEnum<{
|
|
149
|
+
agent_learning: "agent_learning";
|
|
131
150
|
human: "human";
|
|
132
151
|
knowledge_proposal: "knowledge_proposal";
|
|
133
152
|
legacy_import: "legacy_import";
|
|
@@ -153,6 +172,7 @@ export declare const WorkspaceInstructionPolicySnapshotEntry: z.ZodObject<{
|
|
|
153
172
|
activatedAt: z.ZodString;
|
|
154
173
|
provenance: z.ZodObject<{
|
|
155
174
|
source: z.ZodEnum<{
|
|
175
|
+
agent_learning: "agent_learning";
|
|
156
176
|
human: "human";
|
|
157
177
|
knowledge_proposal: "knowledge_proposal";
|
|
158
178
|
legacy_import: "legacy_import";
|
|
@@ -194,6 +214,7 @@ export declare const WorkspaceInstructionPolicySnapshot: z.ZodObject<{
|
|
|
194
214
|
activatedAt: z.ZodString;
|
|
195
215
|
provenance: z.ZodObject<{
|
|
196
216
|
source: z.ZodEnum<{
|
|
217
|
+
agent_learning: "agent_learning";
|
|
197
218
|
human: "human";
|
|
198
219
|
knowledge_proposal: "knowledge_proposal";
|
|
199
220
|
legacy_import: "legacy_import";
|
|
@@ -222,6 +243,7 @@ export declare const ResolvedWorkspaceInstructionPolicySnapshotEntry: z.ZodObjec
|
|
|
222
243
|
activatedAt: z.ZodString;
|
|
223
244
|
provenance: z.ZodObject<{
|
|
224
245
|
source: z.ZodEnum<{
|
|
246
|
+
agent_learning: "agent_learning";
|
|
225
247
|
human: "human";
|
|
226
248
|
knowledge_proposal: "knowledge_proposal";
|
|
227
249
|
legacy_import: "legacy_import";
|
|
@@ -265,6 +287,7 @@ export declare const ResolvedWorkspaceInstructionPolicySnapshot: z.ZodObject<{
|
|
|
265
287
|
activatedAt: z.ZodString;
|
|
266
288
|
provenance: z.ZodObject<{
|
|
267
289
|
source: z.ZodEnum<{
|
|
290
|
+
agent_learning: "agent_learning";
|
|
268
291
|
human: "human";
|
|
269
292
|
knowledge_proposal: "knowledge_proposal";
|
|
270
293
|
legacy_import: "legacy_import";
|
|
@@ -310,6 +333,32 @@ export declare const WorkspaceInstructionPolicyActivationEvent: z.ZodObject<{
|
|
|
310
333
|
createdAt: z.ZodString;
|
|
311
334
|
}, z.core.$strip>;
|
|
312
335
|
export type WorkspaceInstructionPolicyActivationEvent = z.infer<typeof WorkspaceInstructionPolicyActivationEvent>;
|
|
336
|
+
export declare const WorkspaceInstructionPolicyDeactivationEvent: z.ZodObject<{
|
|
337
|
+
kind: z.ZodEnum<{
|
|
338
|
+
charter: "charter";
|
|
339
|
+
policy: "policy";
|
|
340
|
+
}>;
|
|
341
|
+
scope: z.ZodEnum<{
|
|
342
|
+
global: "global";
|
|
343
|
+
role: "role";
|
|
344
|
+
}>;
|
|
345
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
346
|
+
id: z.ZodString;
|
|
347
|
+
operationId: z.ZodString;
|
|
348
|
+
accountId: z.ZodString;
|
|
349
|
+
workspaceId: z.ZodString;
|
|
350
|
+
type: z.ZodLiteral<"automatic_deactivate">;
|
|
351
|
+
activationVersion: z.ZodNumber;
|
|
352
|
+
oldRevision: z.ZodObject<{
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
revision: z.ZodNumber;
|
|
355
|
+
contentHash: z.ZodString;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
actorSubjectId: z.ZodString;
|
|
358
|
+
reason: z.ZodString;
|
|
359
|
+
createdAt: z.ZodString;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
export type WorkspaceInstructionPolicyDeactivationEvent = z.infer<typeof WorkspaceInstructionPolicyDeactivationEvent>;
|
|
313
362
|
export declare const CreateWorkspaceInstructionPolicyDraftRequest: z.ZodObject<{
|
|
314
363
|
operationId: z.ZodOptional<z.ZodString>;
|
|
315
364
|
kind: z.ZodEnum<{
|
|
@@ -370,6 +419,7 @@ export declare const WorkspaceInstructionPolicyListResponse: z.ZodObject<{
|
|
|
370
419
|
content: z.ZodString;
|
|
371
420
|
provenance: z.ZodObject<{
|
|
372
421
|
source: z.ZodEnum<{
|
|
422
|
+
agent_learning: "agent_learning";
|
|
373
423
|
human: "human";
|
|
374
424
|
knowledge_proposal: "knowledge_proposal";
|
|
375
425
|
legacy_import: "legacy_import";
|
|
@@ -398,6 +448,21 @@ export declare const WorkspaceInstructionPolicyListResponse: z.ZodObject<{
|
|
|
398
448
|
activationVersion: z.ZodNumber;
|
|
399
449
|
activatedAt: z.ZodString;
|
|
400
450
|
}, z.core.$strip>>;
|
|
451
|
+
inactiveHeads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
452
|
+
kind: z.ZodEnum<{
|
|
453
|
+
charter: "charter";
|
|
454
|
+
policy: "policy";
|
|
455
|
+
}>;
|
|
456
|
+
scope: z.ZodEnum<{
|
|
457
|
+
global: "global";
|
|
458
|
+
role: "role";
|
|
459
|
+
}>;
|
|
460
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
461
|
+
workspaceId: z.ZodString;
|
|
462
|
+
activationVersion: z.ZodNumber;
|
|
463
|
+
deactivatedAt: z.ZodString;
|
|
464
|
+
}, z.core.$strip>>>;
|
|
465
|
+
inactiveHeadsTruncated: z.ZodDefault<z.ZodBoolean>;
|
|
401
466
|
activationEvents: z.ZodArray<z.ZodObject<{
|
|
402
467
|
kind: z.ZodEnum<{
|
|
403
468
|
charter: "charter";
|
|
@@ -431,6 +496,31 @@ export declare const WorkspaceInstructionPolicyListResponse: z.ZodObject<{
|
|
|
431
496
|
reason: z.ZodString;
|
|
432
497
|
createdAt: z.ZodString;
|
|
433
498
|
}, z.core.$strip>>;
|
|
499
|
+
deactivationEvents: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
500
|
+
kind: z.ZodEnum<{
|
|
501
|
+
charter: "charter";
|
|
502
|
+
policy: "policy";
|
|
503
|
+
}>;
|
|
504
|
+
scope: z.ZodEnum<{
|
|
505
|
+
global: "global";
|
|
506
|
+
role: "role";
|
|
507
|
+
}>;
|
|
508
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
509
|
+
id: z.ZodString;
|
|
510
|
+
operationId: z.ZodString;
|
|
511
|
+
accountId: z.ZodString;
|
|
512
|
+
workspaceId: z.ZodString;
|
|
513
|
+
type: z.ZodLiteral<"automatic_deactivate">;
|
|
514
|
+
activationVersion: z.ZodNumber;
|
|
515
|
+
oldRevision: z.ZodObject<{
|
|
516
|
+
id: z.ZodString;
|
|
517
|
+
revision: z.ZodNumber;
|
|
518
|
+
contentHash: z.ZodString;
|
|
519
|
+
}, z.core.$strip>;
|
|
520
|
+
actorSubjectId: z.ZodString;
|
|
521
|
+
reason: z.ZodString;
|
|
522
|
+
createdAt: z.ZodString;
|
|
523
|
+
}, z.core.$strip>>>;
|
|
434
524
|
nextAfterRevision: z.ZodNullable<z.ZodNumber>;
|
|
435
525
|
}, z.core.$strip>;
|
|
436
526
|
export type WorkspaceInstructionPolicyListResponse = z.infer<typeof WorkspaceInstructionPolicyListResponse>;
|
|
@@ -459,6 +549,7 @@ export declare const WorkspaceInstructionPolicyDiffResponse: z.ZodObject<{
|
|
|
459
549
|
content: z.ZodString;
|
|
460
550
|
provenance: z.ZodObject<{
|
|
461
551
|
source: z.ZodEnum<{
|
|
552
|
+
agent_learning: "agent_learning";
|
|
462
553
|
human: "human";
|
|
463
554
|
knowledge_proposal: "knowledge_proposal";
|
|
464
555
|
legacy_import: "legacy_import";
|
|
@@ -489,6 +580,7 @@ export declare const WorkspaceInstructionPolicyDiffResponse: z.ZodObject<{
|
|
|
489
580
|
content: z.ZodString;
|
|
490
581
|
provenance: z.ZodObject<{
|
|
491
582
|
source: z.ZodEnum<{
|
|
583
|
+
agent_learning: "agent_learning";
|
|
492
584
|
human: "human";
|
|
493
585
|
knowledge_proposal: "knowledge_proposal";
|
|
494
586
|
legacy_import: "legacy_import";
|
|
@@ -679,6 +771,7 @@ export declare const WorkspaceInstructionPolicyOnboardingProposal: z.ZodObject<{
|
|
|
679
771
|
content: z.ZodString;
|
|
680
772
|
provenance: z.ZodObject<{
|
|
681
773
|
source: z.ZodEnum<{
|
|
774
|
+
agent_learning: "agent_learning";
|
|
682
775
|
human: "human";
|
|
683
776
|
knowledge_proposal: "knowledge_proposal";
|
|
684
777
|
legacy_import: "legacy_import";
|
|
@@ -755,6 +848,7 @@ export declare const WorkspaceInstructionPolicyOnboardingProposalListResponse: z
|
|
|
755
848
|
content: z.ZodString;
|
|
756
849
|
provenance: z.ZodObject<{
|
|
757
850
|
source: z.ZodEnum<{
|
|
851
|
+
agent_learning: "agent_learning";
|
|
758
852
|
human: "human";
|
|
759
853
|
knowledge_proposal: "knowledge_proposal";
|
|
760
854
|
legacy_import: "legacy_import";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dependency-free wire constants and the OpenGeni-Signature scheme shared by
|
|
3
|
+
* workspace webhooks and credential providers. Kept free of zod so browser and
|
|
4
|
+
* React Native bundles can verify signatures without the schema runtime.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WORKSPACE_WEBHOOK_EVENT_TYPES: readonly ["turn.completed", "turn.failed", "turn.cancelled", "session.status.changed", "session.requiresAction", "session.humanInput.requested", "usage.threshold_reached", "usage.exhausted", "usage.period_reset"];
|
|
7
|
+
/**
|
|
8
|
+
* Sent only when an administrator presses "Send test event". It is never a
|
|
9
|
+
* subscribable type: every endpoint can receive it, and a receiver that does
|
|
10
|
+
* not care acknowledges it with any 2xx.
|
|
11
|
+
*/
|
|
12
|
+
export declare const OPENGENI_WEBHOOK_TEST_EVENT_TYPE = "webhook.test";
|
|
13
|
+
/**
|
|
14
|
+
* The session, turn and attempt ids of a credential-provider test request
|
|
15
|
+
* (`purpose: "test"`). A test is not a run, so no real ids exist.
|
|
16
|
+
*/
|
|
17
|
+
export declare const OPENGENI_TEST_REQUEST_NIL_ID = "00000000-0000-0000-0000-000000000000";
|
|
18
|
+
export declare const OPENGENI_SIGNATURE_HEADER = "OpenGeni-Signature";
|
|
19
|
+
export declare const OPENGENI_EVENT_ID_HEADER = "OpenGeni-Event-Id";
|
|
20
|
+
export declare const OPENGENI_DELIVERY_ID_HEADER = "OpenGeni-Delivery-Id";
|
|
21
|
+
export declare const OPENGENI_SIGNATURE_TOLERANCE_SECONDS = 300;
|
|
22
|
+
/**
|
|
23
|
+
* `OpenGeni-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<body>")>`.
|
|
24
|
+
* The timestamp is signed so a captured request cannot be replayed later.
|
|
25
|
+
*/
|
|
26
|
+
export declare function signOpenGeniPayload(secret: string, body: string, timestampSeconds?: number): Promise<string>;
|
|
27
|
+
export type VerifyOpenGeniSignatureInput = {
|
|
28
|
+
secret: string;
|
|
29
|
+
/** The exact raw request body, before JSON parsing. */
|
|
30
|
+
body: string;
|
|
31
|
+
/** The `OpenGeni-Signature` header value. */
|
|
32
|
+
signature: string | null | undefined;
|
|
33
|
+
toleranceSeconds?: number;
|
|
34
|
+
nowSeconds?: number;
|
|
35
|
+
};
|
|
36
|
+
export declare function verifyOpenGeniSignature(input: VerifyOpenGeniSignatureInput): Promise<boolean>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OPENGENI_DELIVERY_ID_HEADER,
|
|
3
|
+
OPENGENI_EVENT_ID_HEADER,
|
|
4
|
+
OPENGENI_SIGNATURE_HEADER,
|
|
5
|
+
OPENGENI_SIGNATURE_TOLERANCE_SECONDS,
|
|
6
|
+
OPENGENI_TEST_REQUEST_NIL_ID,
|
|
7
|
+
OPENGENI_WEBHOOK_TEST_EVENT_TYPE,
|
|
8
|
+
WORKSPACE_WEBHOOK_EVENT_TYPES,
|
|
9
|
+
signOpenGeniPayload,
|
|
10
|
+
verifyOpenGeniSignature
|
|
11
|
+
} from "./chunk-O77VSFYZ.js";
|
|
12
|
+
export {
|
|
13
|
+
OPENGENI_DELIVERY_ID_HEADER,
|
|
14
|
+
OPENGENI_EVENT_ID_HEADER,
|
|
15
|
+
OPENGENI_SIGNATURE_HEADER,
|
|
16
|
+
OPENGENI_SIGNATURE_TOLERANCE_SECONDS,
|
|
17
|
+
OPENGENI_TEST_REQUEST_NIL_ID,
|
|
18
|
+
OPENGENI_WEBHOOK_TEST_EVENT_TYPE,
|
|
19
|
+
WORKSPACE_WEBHOOK_EVENT_TYPES,
|
|
20
|
+
signOpenGeniPayload,
|
|
21
|
+
verifyOpenGeniSignature
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=workspace-integration-wire.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|