@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,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content-free per-person product lifecycle facts.
|
|
3
|
+
*
|
|
4
|
+
* Migration `0532_product_lifecycle_fact_export.sql` captures one fact per
|
|
5
|
+
* product change with row triggers and writes it to the durable host export as
|
|
6
|
+
* the `lifecycle_fact` kind; `0565_usage_analytics_presence_and_facts.sql` adds
|
|
7
|
+
* `user.active`, `credits.granted` and `connection.revoked`. Every value is drawn from a fixed list; the
|
|
8
|
+
* database function `opengeni_private.product_lifecycle_fact_valid` enforces
|
|
9
|
+
* the same lists and a test keeps the two copies identical.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Closed class of a positive credit grant (`grant` or `manual_credit_grant`
|
|
13
|
+
* ledger row). `opengeni_private.credit_grant_class` mirrors this mapping:
|
|
14
|
+
* - `signup_trial`: the one-time verified-signup trial (source `verified_signup_trial`).
|
|
15
|
+
* - `coupon`: a fully discounted Stripe checkout (source `stripe_checkout_coupon`).
|
|
16
|
+
* - `manual`: an operator grant (`manual_credit_grant` or source `operator_adjustment`).
|
|
17
|
+
* - `other`: any other grant source.
|
|
18
|
+
*/
|
|
19
|
+
export declare const CREDIT_GRANT_CLASSES: readonly ["signup_trial", "coupon", "manual", "other"];
|
|
20
|
+
export type CreditGrantClass = (typeof CREDIT_GRANT_CLASSES)[number];
|
|
21
|
+
/** Each fact type and the fixed values its `attribute` may carry. */
|
|
22
|
+
export declare const PRODUCT_LIFECYCLE_FACT_ATTRIBUTES: {
|
|
23
|
+
/** A managed account was created. Attribute: first sign-in method. */
|
|
24
|
+
readonly "auth.sign_up": readonly ["email", "google", "github", "other"];
|
|
25
|
+
/**
|
|
26
|
+
* The account email became verified: by the verification link, or at
|
|
27
|
+
* creation when a social provider already verified it.
|
|
28
|
+
*/
|
|
29
|
+
readonly "auth.email_verified": readonly [];
|
|
30
|
+
/** A live sign-in session was created. Attribute: method of that session. */
|
|
31
|
+
readonly "auth.sign_in": readonly ["email", "google", "github", "other"];
|
|
32
|
+
/** An organization was created by self-service setup or as an additional one. */
|
|
33
|
+
readonly "organization.setup": readonly ["created", "additional"];
|
|
34
|
+
/** A model subscription or organization model provider was connected. */
|
|
35
|
+
readonly "model.connected": readonly ["codex", "supergrok", "vercel_gateway", "openrouter", "anthropic", "claude_subscription"];
|
|
36
|
+
/** A credit top-up payment was granted. */
|
|
37
|
+
readonly "credits.purchased": readonly [];
|
|
38
|
+
/** Credits were granted without a purchase. Attribute: grant class. */
|
|
39
|
+
readonly "credits.granted": readonly ["signup_trial", "coupon", "manual", "other"];
|
|
40
|
+
/** An integration connection was created. Attribute: provider class. */
|
|
41
|
+
readonly "connection.created": readonly ["slack", "github", "gitlab", "azure_devops", "bitbucket", "google", "microsoft", "linear", "atlassian", "notion", "supabase", "datadog", "posthog", "openai", "x", "other"];
|
|
42
|
+
/**
|
|
43
|
+
* An integration connection was revoked, or deleted while still live.
|
|
44
|
+
* Attribute: provider class, the same list as `connection.created`.
|
|
45
|
+
*/
|
|
46
|
+
readonly "connection.revoked": readonly ["slack", "github", "gitlab", "azure_devops", "bitbucket", "google", "microsoft", "linear", "atlassian", "notion", "supabase", "datadog", "posthog", "openai", "x", "other"];
|
|
47
|
+
readonly "scheduled_task.created": readonly [];
|
|
48
|
+
/** A catalog Skill was installed into a workspace. */
|
|
49
|
+
readonly "skill.installed": readonly [];
|
|
50
|
+
/** A Slack user was linked to an OpenGeni user. */
|
|
51
|
+
readonly "slack.user_linked": readonly [];
|
|
52
|
+
/** A new Connected Machine was enrolled. */
|
|
53
|
+
readonly "machine.enrolled": readonly [];
|
|
54
|
+
/** A person became an active member of an organization that already had one. */
|
|
55
|
+
readonly "member.joined": readonly [];
|
|
56
|
+
/**
|
|
57
|
+
* A managed person was active in an authenticated browser session on a new
|
|
58
|
+
* UTC day: at most one fact per person per UTC day, with no organization.
|
|
59
|
+
*/
|
|
60
|
+
readonly "user.active": readonly [];
|
|
61
|
+
};
|
|
62
|
+
export type ProductLifecycleFactType = keyof typeof PRODUCT_LIFECYCLE_FACT_ATTRIBUTES;
|
|
63
|
+
export declare const PRODUCT_LIFECYCLE_FACT_TYPES: ProductLifecycleFactType[];
|
|
64
|
+
/**
|
|
65
|
+
* What kind of subject caused the fact. Only `user` and `api_key` facts carry
|
|
66
|
+
* their opaque subject id; every other subject string is reduced to its kind
|
|
67
|
+
* because embedded hosts may put their own identifiers in it.
|
|
68
|
+
*/
|
|
69
|
+
export declare const PRODUCT_LIFECYCLE_SUBJECT_KINDS: readonly ["user", "api_key", "service", "other", "none"];
|
|
70
|
+
export type ProductLifecycleSubjectKind = (typeof PRODUCT_LIFECYCLE_SUBJECT_KINDS)[number];
|
|
71
|
+
/** Pseudonymous subject ids that may leave the database. */
|
|
72
|
+
export declare const PRODUCT_LIFECYCLE_SUBJECT_ID_PATTERN: RegExp;
|
|
73
|
+
export declare function isProductLifecycleFact(type: string, attribute: string | null): boolean;
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Explicit user-directed durable write ("remember X for this workspace").
|
|
4
|
+
*
|
|
5
|
+
* The lane is the Agent Knowledge area the content belongs to:
|
|
6
|
+
* - `preference`: a Ways-of-working preference (how agents should act);
|
|
7
|
+
* - `instruction_policy`: a mandatory workspace rule ("always"/"never");
|
|
8
|
+
* - `knowledge`: a company/product/people fact.
|
|
9
|
+
*
|
|
10
|
+
* v1 supports the workspace scope only. Personal and organization scopes are
|
|
11
|
+
* separate authorities that are not yet active for governed writes.
|
|
12
|
+
*/
|
|
13
|
+
export declare const RememberLane: z.ZodEnum<{
|
|
14
|
+
instruction_policy: "instruction_policy";
|
|
15
|
+
knowledge: "knowledge";
|
|
16
|
+
preference: "preference";
|
|
17
|
+
}>;
|
|
18
|
+
export type RememberLane = z.infer<typeof RememberLane>;
|
|
19
|
+
export declare const RememberScope: z.ZodEnum<{
|
|
20
|
+
workspace: "workspace";
|
|
21
|
+
}>;
|
|
22
|
+
export type RememberScope = z.infer<typeof RememberScope>;
|
|
23
|
+
/**
|
|
24
|
+
* Ceiling for the Knowledge lane, which is retrieval evidence rather than
|
|
25
|
+
* always-composed prompt text. Other lanes have their own destination bounds:
|
|
26
|
+
* see `AGENT_AUTHORED_INSTRUCTION_POLICY_CONTENT_MAX_CHARS` and
|
|
27
|
+
* `AGENT_AUTHORED_PREFERENCE_CONTENT_MAX_CHARS`.
|
|
28
|
+
*/
|
|
29
|
+
export declare const REMEMBER_CONTENT_MAX_CHARS = 4000;
|
|
30
|
+
export declare const RememberRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
operationId: z.ZodString;
|
|
32
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
33
|
+
workspace: "workspace";
|
|
34
|
+
}>>;
|
|
35
|
+
reason: z.ZodString;
|
|
36
|
+
lane: z.ZodLiteral<"preference">;
|
|
37
|
+
content: z.ZodString;
|
|
38
|
+
stableKey: z.ZodString;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
description: z.ZodString;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
operationId: z.ZodString;
|
|
43
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
44
|
+
workspace: "workspace";
|
|
45
|
+
}>>;
|
|
46
|
+
reason: z.ZodString;
|
|
47
|
+
lane: z.ZodLiteral<"instruction_policy">;
|
|
48
|
+
content: z.ZodString;
|
|
49
|
+
target: z.ZodDefault<z.ZodObject<{
|
|
50
|
+
kind: z.ZodEnum<{
|
|
51
|
+
charter: "charter";
|
|
52
|
+
policy: "policy";
|
|
53
|
+
}>;
|
|
54
|
+
scope: z.ZodEnum<{
|
|
55
|
+
global: "global";
|
|
56
|
+
role: "role";
|
|
57
|
+
}>;
|
|
58
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
61
|
+
operationId: z.ZodString;
|
|
62
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
63
|
+
workspace: "workspace";
|
|
64
|
+
}>>;
|
|
65
|
+
content: z.ZodString;
|
|
66
|
+
reason: z.ZodString;
|
|
67
|
+
lane: z.ZodLiteral<"knowledge">;
|
|
68
|
+
subject: z.ZodString;
|
|
69
|
+
}, z.core.$strict>], "lane">;
|
|
70
|
+
export type RememberRequest = z.infer<typeof RememberRequest>;
|
|
71
|
+
/**
|
|
72
|
+
* Bound structured human-input question that authorizes a confirmed remember.
|
|
73
|
+
* The question id binds the exact confirmation target: the
|
|
74
|
+
* `knowledge_change_proposals` id for Ways-of-working lanes, or the
|
|
75
|
+
* `knowledge_claims` id for the Knowledge lane.
|
|
76
|
+
*/
|
|
77
|
+
export declare const REMEMBER_HUMAN_INPUT_SAVE_OPTION: "save";
|
|
78
|
+
export declare const REMEMBER_HUMAN_INPUT_SKIP_OPTION: "skip";
|
|
79
|
+
export declare function rememberHumanInputQuestionId(targetId: string): string;
|
|
80
|
+
export declare const RememberHumanInputPrompt: z.ZodObject<{
|
|
81
|
+
questions: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
kind: z.ZodEnum<{
|
|
84
|
+
multi_select: "multi_select";
|
|
85
|
+
single_select: "single_select";
|
|
86
|
+
text: "text";
|
|
87
|
+
}>;
|
|
88
|
+
prompt: z.ZodString;
|
|
89
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
skillReview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
92
|
+
removalOperationId: z.ZodOptional<z.ZodUUID>;
|
|
93
|
+
sourceOperationId: z.ZodUUID;
|
|
94
|
+
skillId: z.ZodUUID;
|
|
95
|
+
revisionId: z.ZodUUID;
|
|
96
|
+
expectedRevisionId: z.ZodNullable<z.ZodUUID>;
|
|
97
|
+
expectedScopeVersion: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>>>;
|
|
99
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
label: z.ZodString;
|
|
102
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
106
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
107
|
+
minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
108
|
+
maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
allowSkip: z.ZodLiteral<false>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type RememberHumanInputPrompt = z.infer<typeof RememberHumanInputPrompt>;
|
|
114
|
+
export declare const RememberActivationSummary: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
|
+
destination: z.ZodEnum<{
|
|
116
|
+
instruction_policy: "instruction_policy";
|
|
117
|
+
preference: "preference";
|
|
118
|
+
}>;
|
|
119
|
+
receiptId: z.ZodString;
|
|
120
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
121
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
122
|
+
authorityKind: z.ZodEnum<{
|
|
123
|
+
automatic: "automatic";
|
|
124
|
+
human_confirmed: "human_confirmed";
|
|
125
|
+
}>;
|
|
126
|
+
undo: z.ZodLiteral<"learning_history">;
|
|
127
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
+
destination: z.ZodLiteral<"knowledge">;
|
|
129
|
+
receiptId: z.ZodString;
|
|
130
|
+
claimId: z.ZodString;
|
|
131
|
+
memoryId: z.ZodString;
|
|
132
|
+
approvalReviewId: z.ZodString;
|
|
133
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
134
|
+
authorityKind: z.ZodLiteral<"human_confirmed">;
|
|
135
|
+
undo: z.ZodLiteral<"memory_management">;
|
|
136
|
+
}, z.core.$strip>], "destination">;
|
|
137
|
+
export type RememberActivationSummary = z.infer<typeof RememberActivationSummary>;
|
|
138
|
+
export declare const RememberReceipt: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
139
|
+
status: z.ZodLiteral<"blocked">;
|
|
140
|
+
operationId: z.ZodString;
|
|
141
|
+
lane: z.ZodEnum<{
|
|
142
|
+
instruction_policy: "instruction_policy";
|
|
143
|
+
knowledge: "knowledge";
|
|
144
|
+
preference: "preference";
|
|
145
|
+
}>;
|
|
146
|
+
scope: z.ZodEnum<{
|
|
147
|
+
workspace: "workspace";
|
|
148
|
+
}>;
|
|
149
|
+
reason: z.ZodLiteral<"learning_policy_off">;
|
|
150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
151
|
+
status: z.ZodLiteral<"proposed_for_review">;
|
|
152
|
+
operationId: z.ZodString;
|
|
153
|
+
lane: z.ZodEnum<{
|
|
154
|
+
instruction_policy: "instruction_policy";
|
|
155
|
+
knowledge: "knowledge";
|
|
156
|
+
preference: "preference";
|
|
157
|
+
}>;
|
|
158
|
+
scope: z.ZodEnum<{
|
|
159
|
+
workspace: "workspace";
|
|
160
|
+
}>;
|
|
161
|
+
noteId: z.ZodString;
|
|
162
|
+
claimId: z.ZodString;
|
|
163
|
+
evidenceId: z.ZodString;
|
|
164
|
+
reviewId: z.ZodNullable<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
status: z.ZodLiteral<"activated">;
|
|
167
|
+
operationId: z.ZodString;
|
|
168
|
+
lane: z.ZodEnum<{
|
|
169
|
+
instruction_policy: "instruction_policy";
|
|
170
|
+
knowledge: "knowledge";
|
|
171
|
+
preference: "preference";
|
|
172
|
+
}>;
|
|
173
|
+
scope: z.ZodEnum<{
|
|
174
|
+
workspace: "workspace";
|
|
175
|
+
}>;
|
|
176
|
+
noteId: z.ZodString;
|
|
177
|
+
proposalId: z.ZodString;
|
|
178
|
+
learning: z.ZodNullable<z.ZodObject<{
|
|
179
|
+
receiptId: z.ZodString;
|
|
180
|
+
outcome: z.ZodEnum<{
|
|
181
|
+
automatic: "automatic";
|
|
182
|
+
confidence: "confidence";
|
|
183
|
+
conflict: "conflict";
|
|
184
|
+
off: "off";
|
|
185
|
+
revoked: "revoked";
|
|
186
|
+
stale: "stale";
|
|
187
|
+
suggest: "suggest";
|
|
188
|
+
}>;
|
|
189
|
+
automaticEligible: z.ZodBoolean;
|
|
190
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
191
|
+
confidence_below_floor: "confidence_below_floor";
|
|
192
|
+
evidence_conflict: "evidence_conflict";
|
|
193
|
+
evidence_revoked: "evidence_revoked";
|
|
194
|
+
policy_automatic: "policy_automatic";
|
|
195
|
+
policy_off: "policy_off";
|
|
196
|
+
policy_suggest: "policy_suggest";
|
|
197
|
+
proposal_stale: "proposal_stale";
|
|
198
|
+
}>>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
activation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
201
|
+
destination: z.ZodEnum<{
|
|
202
|
+
instruction_policy: "instruction_policy";
|
|
203
|
+
preference: "preference";
|
|
204
|
+
}>;
|
|
205
|
+
receiptId: z.ZodString;
|
|
206
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
207
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
208
|
+
authorityKind: z.ZodEnum<{
|
|
209
|
+
automatic: "automatic";
|
|
210
|
+
human_confirmed: "human_confirmed";
|
|
211
|
+
}>;
|
|
212
|
+
undo: z.ZodLiteral<"learning_history">;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
destination: z.ZodLiteral<"knowledge">;
|
|
215
|
+
receiptId: z.ZodString;
|
|
216
|
+
claimId: z.ZodString;
|
|
217
|
+
memoryId: z.ZodString;
|
|
218
|
+
approvalReviewId: z.ZodString;
|
|
219
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
220
|
+
authorityKind: z.ZodLiteral<"human_confirmed">;
|
|
221
|
+
undo: z.ZodLiteral<"memory_management">;
|
|
222
|
+
}, z.core.$strip>], "destination">;
|
|
223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
224
|
+
status: z.ZodLiteral<"confirmation_required">;
|
|
225
|
+
operationId: z.ZodString;
|
|
226
|
+
lane: z.ZodEnum<{
|
|
227
|
+
instruction_policy: "instruction_policy";
|
|
228
|
+
knowledge: "knowledge";
|
|
229
|
+
preference: "preference";
|
|
230
|
+
}>;
|
|
231
|
+
scope: z.ZodEnum<{
|
|
232
|
+
workspace: "workspace";
|
|
233
|
+
}>;
|
|
234
|
+
noteId: z.ZodString;
|
|
235
|
+
proposalId: z.ZodNullable<z.ZodString>;
|
|
236
|
+
claimId: z.ZodString;
|
|
237
|
+
learning: z.ZodNullable<z.ZodObject<{
|
|
238
|
+
receiptId: z.ZodString;
|
|
239
|
+
outcome: z.ZodEnum<{
|
|
240
|
+
automatic: "automatic";
|
|
241
|
+
confidence: "confidence";
|
|
242
|
+
conflict: "conflict";
|
|
243
|
+
off: "off";
|
|
244
|
+
revoked: "revoked";
|
|
245
|
+
stale: "stale";
|
|
246
|
+
suggest: "suggest";
|
|
247
|
+
}>;
|
|
248
|
+
automaticEligible: z.ZodBoolean;
|
|
249
|
+
reasons: z.ZodArray<z.ZodEnum<{
|
|
250
|
+
confidence_below_floor: "confidence_below_floor";
|
|
251
|
+
evidence_conflict: "evidence_conflict";
|
|
252
|
+
evidence_revoked: "evidence_revoked";
|
|
253
|
+
policy_automatic: "policy_automatic";
|
|
254
|
+
policy_off: "policy_off";
|
|
255
|
+
policy_suggest: "policy_suggest";
|
|
256
|
+
proposal_stale: "proposal_stale";
|
|
257
|
+
}>>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
learningFailure: z.ZodNullable<z.ZodObject<{
|
|
260
|
+
stage: z.ZodEnum<{
|
|
261
|
+
activation: "activation";
|
|
262
|
+
evaluation: "evaluation";
|
|
263
|
+
}>;
|
|
264
|
+
code: z.ZodEnum<{
|
|
265
|
+
authority: "authority";
|
|
266
|
+
conflict: "conflict";
|
|
267
|
+
invalid_operation: "invalid_operation";
|
|
268
|
+
unavailable: "unavailable";
|
|
269
|
+
}>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
humanInput: z.ZodObject<{
|
|
272
|
+
questions: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
273
|
+
id: z.ZodString;
|
|
274
|
+
kind: z.ZodEnum<{
|
|
275
|
+
multi_select: "multi_select";
|
|
276
|
+
single_select: "single_select";
|
|
277
|
+
text: "text";
|
|
278
|
+
}>;
|
|
279
|
+
prompt: z.ZodString;
|
|
280
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
skillReview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
283
|
+
removalOperationId: z.ZodOptional<z.ZodUUID>;
|
|
284
|
+
sourceOperationId: z.ZodUUID;
|
|
285
|
+
skillId: z.ZodUUID;
|
|
286
|
+
revisionId: z.ZodUUID;
|
|
287
|
+
expectedRevisionId: z.ZodNullable<z.ZodUUID>;
|
|
288
|
+
expectedScopeVersion: z.ZodNumber;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
290
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
291
|
+
id: z.ZodString;
|
|
292
|
+
label: z.ZodString;
|
|
293
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
296
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
297
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
298
|
+
minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
299
|
+
maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
300
|
+
}, z.core.$strip>>>;
|
|
301
|
+
}, z.core.$strip>>>;
|
|
302
|
+
allowSkip: z.ZodLiteral<false>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
confirmWith: z.ZodLiteral<"remember_confirm">;
|
|
305
|
+
}, z.core.$strip>], "status">;
|
|
306
|
+
export type RememberReceipt = z.infer<typeof RememberReceipt>;
|
|
307
|
+
export declare const RememberConfirmRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
308
|
+
target: z.ZodLiteral<"proposal">;
|
|
309
|
+
operationId: z.ZodString;
|
|
310
|
+
proposalId: z.ZodString;
|
|
311
|
+
decisionReceiptId: z.ZodString;
|
|
312
|
+
humanInputRequestId: z.ZodString;
|
|
313
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
314
|
+
target: z.ZodLiteral<"knowledge_claim">;
|
|
315
|
+
operationId: z.ZodString;
|
|
316
|
+
claimId: z.ZodString;
|
|
317
|
+
humanInputRequestId: z.ZodString;
|
|
318
|
+
}, z.core.$strict>], "target">;
|
|
319
|
+
export type RememberConfirmRequest = z.infer<typeof RememberConfirmRequest>;
|
|
320
|
+
export declare const RememberConfirmReceipt: z.ZodObject<{
|
|
321
|
+
status: z.ZodLiteral<"activated">;
|
|
322
|
+
operationId: z.ZodString;
|
|
323
|
+
proposalId: z.ZodNullable<z.ZodString>;
|
|
324
|
+
claimId: z.ZodString;
|
|
325
|
+
decisionReceiptId: z.ZodNullable<z.ZodString>;
|
|
326
|
+
activation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
327
|
+
destination: z.ZodEnum<{
|
|
328
|
+
instruction_policy: "instruction_policy";
|
|
329
|
+
preference: "preference";
|
|
330
|
+
}>;
|
|
331
|
+
receiptId: z.ZodString;
|
|
332
|
+
destinationRevisionId: z.ZodNullable<z.ZodString>;
|
|
333
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
334
|
+
authorityKind: z.ZodEnum<{
|
|
335
|
+
automatic: "automatic";
|
|
336
|
+
human_confirmed: "human_confirmed";
|
|
337
|
+
}>;
|
|
338
|
+
undo: z.ZodLiteral<"learning_history">;
|
|
339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
+
destination: z.ZodLiteral<"knowledge">;
|
|
341
|
+
receiptId: z.ZodString;
|
|
342
|
+
claimId: z.ZodString;
|
|
343
|
+
memoryId: z.ZodString;
|
|
344
|
+
approvalReviewId: z.ZodString;
|
|
345
|
+
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
346
|
+
authorityKind: z.ZodLiteral<"human_confirmed">;
|
|
347
|
+
undo: z.ZodLiteral<"memory_management">;
|
|
348
|
+
}, z.core.$strip>], "destination">;
|
|
349
|
+
}, z.core.$strip>;
|
|
350
|
+
export type RememberConfirmReceipt = z.infer<typeof RememberConfirmReceipt>;
|
|
@@ -19,6 +19,7 @@ export declare const GENERATED_IMAGE_MAX_BYTES: number;
|
|
|
19
19
|
export declare const GENERATED_VIDEO_MAX_BYTES: number;
|
|
20
20
|
export declare const RetainedOutputKind: z.ZodEnum<{
|
|
21
21
|
assistant_completion: "assistant_completion";
|
|
22
|
+
browser_screenshot: "browser_screenshot";
|
|
22
23
|
computer_screenshot: "computer_screenshot";
|
|
23
24
|
event_media: "event_media";
|
|
24
25
|
file: "file";
|
|
@@ -47,6 +48,7 @@ export declare const RetainedArtifactReferenceSchema: z.ZodObject<{
|
|
|
47
48
|
artifactId: z.ZodString;
|
|
48
49
|
kind: z.ZodEnum<{
|
|
49
50
|
assistant_completion: "assistant_completion";
|
|
51
|
+
browser_screenshot: "browser_screenshot";
|
|
50
52
|
computer_screenshot: "computer_screenshot";
|
|
51
53
|
event_media: "event_media";
|
|
52
54
|
file: "file";
|
|
@@ -104,6 +106,7 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
104
106
|
artifactId: z.ZodString;
|
|
105
107
|
kind: z.ZodEnum<{
|
|
106
108
|
assistant_completion: "assistant_completion";
|
|
109
|
+
browser_screenshot: "browser_screenshot";
|
|
107
110
|
computer_screenshot: "computer_screenshot";
|
|
108
111
|
event_media: "event_media";
|
|
109
112
|
file: "file";
|
|
@@ -162,6 +165,7 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
162
165
|
artifactId: z.ZodString;
|
|
163
166
|
kind: z.ZodEnum<{
|
|
164
167
|
assistant_completion: "assistant_completion";
|
|
168
|
+
browser_screenshot: "browser_screenshot";
|
|
165
169
|
computer_screenshot: "computer_screenshot";
|
|
166
170
|
event_media: "event_media";
|
|
167
171
|
file: "file";
|
|
@@ -223,7 +227,11 @@ export type RetainedScreenshotArtifactInput = RetainedArtifactFileInput & {
|
|
|
223
227
|
width: number;
|
|
224
228
|
height: number;
|
|
225
229
|
expiresAt: string;
|
|
230
|
+
kind?: "computer_screenshot" | "browser_screenshot";
|
|
226
231
|
};
|
|
232
|
+
export type RetainedSessionScreenshotKind = "computer_screenshot" | "browser_screenshot";
|
|
233
|
+
/** The persisted, server-authored storage key distinguishes browser captures from legacy computer captures. */
|
|
234
|
+
export declare function retainedSessionScreenshotKindFromObjectKey(objectKey: string): RetainedSessionScreenshotKind | null;
|
|
227
235
|
export type RetainedGeneratedImageArtifactInput = RetainedArtifactFileInput & {
|
|
228
236
|
width: number;
|
|
229
237
|
height: number;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Channel-A currently returns one bounded binary-safe read. Keep publication
|
|
4
|
+
* below that ceiling so an extra sentinel byte can distinguish an exact file
|
|
5
|
+
* from a truncated prefix.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SANDBOX_FILE_ARTIFACT_MAX_BYTES: number;
|
|
8
|
+
export declare const PublishSandboxFileArtifactRequest: z.ZodObject<{
|
|
9
|
+
path: z.ZodString;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export type PublishSandboxFileArtifactRequest = z.infer<typeof PublishSandboxFileArtifactRequest>;
|
|
12
|
+
/**
|
|
13
|
+
* Closed model/UI receipt for one exact sandbox-file publication. Storage
|
|
14
|
+
* locators and signed URLs never cross this boundary.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SandboxFileArtifactReceipt: z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"sandbox_file">;
|
|
18
|
+
sandboxPath: z.ZodString;
|
|
19
|
+
filename: z.ZodString;
|
|
20
|
+
artifact: z.ZodObject<{
|
|
21
|
+
available: z.ZodLiteral<true>;
|
|
22
|
+
artifactId: z.ZodString;
|
|
23
|
+
kind: z.ZodEnum<{
|
|
24
|
+
assistant_completion: "assistant_completion";
|
|
25
|
+
browser_screenshot: "browser_screenshot";
|
|
26
|
+
computer_screenshot: "computer_screenshot";
|
|
27
|
+
event_media: "event_media";
|
|
28
|
+
file: "file";
|
|
29
|
+
generated_image: "generated_image";
|
|
30
|
+
generated_video: "generated_video";
|
|
31
|
+
internal_update: "internal_update";
|
|
32
|
+
tool_result: "tool_result";
|
|
33
|
+
}>;
|
|
34
|
+
contentType: z.ZodString;
|
|
35
|
+
originalBytes: z.ZodNumber;
|
|
36
|
+
sha256: z.ZodString;
|
|
37
|
+
retainedAt: z.ZodString;
|
|
38
|
+
dimensions: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
width: z.ZodNumber;
|
|
40
|
+
height: z.ZodNumber;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
retention: z.ZodUnion<readonly [z.ZodObject<{
|
|
43
|
+
policy: z.ZodLiteral<"workspace_file">;
|
|
44
|
+
expiresAt: z.ZodNull;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
+
policy: z.ZodLiteral<"session_screenshot">;
|
|
47
|
+
expiresAt: z.ZodString;
|
|
48
|
+
}, z.core.$strict>]>;
|
|
49
|
+
retrieval: z.ZodObject<{
|
|
50
|
+
method: z.ZodLiteral<"GET">;
|
|
51
|
+
path: z.ZodString;
|
|
52
|
+
acceptRanges: z.ZodLiteral<"bytes">;
|
|
53
|
+
maxRangeBytes: z.ZodNumber;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
export type SandboxFileArtifactReceipt = z.infer<typeof SandboxFileArtifactReceipt>;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Provider-owned execution identity and acknowledged output cursors. These
|
|
3
|
+
* values are retained by the control plane, never recovered from sandbox files. */
|
|
4
|
+
export declare const ModalLegacyProviderCommand: z.ZodObject<{
|
|
5
|
+
kind: z.ZodLiteral<"modal-control-v1">;
|
|
6
|
+
sandboxId: z.ZodString;
|
|
7
|
+
taskId: z.ZodString;
|
|
8
|
+
execId: z.ZodString;
|
|
9
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
streams: z.ZodObject<{
|
|
11
|
+
stdout: z.ZodObject<{
|
|
12
|
+
batchIndex: z.ZodNumber;
|
|
13
|
+
utf8Remainder: z.ZodString;
|
|
14
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
stderr: z.ZodObject<{
|
|
17
|
+
batchIndex: z.ZodNumber;
|
|
18
|
+
utf8Remainder: z.ZodString;
|
|
19
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export type ModalLegacyProviderCommand = z.infer<typeof ModalLegacyProviderCommand>;
|
|
24
|
+
export declare const CommandSupervisionDescriptor: z.ZodObject<{
|
|
25
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
26
|
+
invocationId: z.ZodString;
|
|
27
|
+
nonce: z.ZodString;
|
|
28
|
+
controlPath: z.ZodString;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export type CommandSupervisionDescriptor = z.infer<typeof CommandSupervisionDescriptor>;
|
|
31
|
+
export declare const CommandSupervisionReceipt: z.ZodObject<{
|
|
32
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
33
|
+
invocationId: z.ZodString;
|
|
34
|
+
receiptId: z.ZodString;
|
|
35
|
+
leaderExitCode: z.ZodNumber;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type CommandSupervisionReceipt = z.infer<typeof CommandSupervisionReceipt>;
|
|
38
|
+
export declare const ModalRouterProviderCommand: z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"modal-router-v1">;
|
|
40
|
+
sandboxId: z.ZodString;
|
|
41
|
+
taskId: z.ZodString;
|
|
42
|
+
execId: z.ZodString;
|
|
43
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
supervision: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
46
|
+
invocationId: z.ZodString;
|
|
47
|
+
nonce: z.ZodString;
|
|
48
|
+
controlPath: z.ZodString;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
streams: z.ZodObject<{
|
|
51
|
+
stdout: z.ZodObject<{
|
|
52
|
+
byteOffset: z.ZodNumber;
|
|
53
|
+
utf8Remainder: z.ZodString;
|
|
54
|
+
eof: z.ZodBoolean;
|
|
55
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
stderr: z.ZodObject<{
|
|
58
|
+
byteOffset: z.ZodNumber;
|
|
59
|
+
utf8Remainder: z.ZodString;
|
|
60
|
+
eof: z.ZodBoolean;
|
|
61
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export type ModalRouterProviderCommand = z.infer<typeof ModalRouterProviderCommand>;
|
|
66
|
+
/** Legacy locators are read-only compatibility for already launched commands;
|
|
67
|
+
* new starts use authenticated task-router byte offsets, never batch indices. */
|
|
68
|
+
export declare const SandboxProviderCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"modal-control-v1">;
|
|
70
|
+
sandboxId: z.ZodString;
|
|
71
|
+
taskId: z.ZodString;
|
|
72
|
+
execId: z.ZodString;
|
|
73
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
streams: z.ZodObject<{
|
|
75
|
+
stdout: z.ZodObject<{
|
|
76
|
+
batchIndex: z.ZodNumber;
|
|
77
|
+
utf8Remainder: z.ZodString;
|
|
78
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
stderr: z.ZodObject<{
|
|
81
|
+
batchIndex: z.ZodNumber;
|
|
82
|
+
utf8Remainder: z.ZodString;
|
|
83
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"modal-router-v1">;
|
|
88
|
+
sandboxId: z.ZodString;
|
|
89
|
+
taskId: z.ZodString;
|
|
90
|
+
execId: z.ZodString;
|
|
91
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
supervision: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
94
|
+
invocationId: z.ZodString;
|
|
95
|
+
nonce: z.ZodString;
|
|
96
|
+
controlPath: z.ZodString;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
streams: z.ZodObject<{
|
|
99
|
+
stdout: z.ZodObject<{
|
|
100
|
+
byteOffset: z.ZodNumber;
|
|
101
|
+
utf8Remainder: z.ZodString;
|
|
102
|
+
eof: z.ZodBoolean;
|
|
103
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
stderr: z.ZodObject<{
|
|
106
|
+
byteOffset: z.ZodNumber;
|
|
107
|
+
utf8Remainder: z.ZodString;
|
|
108
|
+
eof: z.ZodBoolean;
|
|
109
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
}, z.core.$strict>], "kind">;
|
|
113
|
+
export type SandboxProviderCommand = z.infer<typeof SandboxProviderCommand>;
|