@opengeni/contracts 0.44.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-authored-durable-text.d.ts +70 -0
- package/dist/agent-config.d.ts +869 -0
- package/dist/agent-instruction-changes.d.ts +110 -0
- package/dist/agent-learning.d.ts +243 -0
- package/dist/agent-topology.d.ts +292 -0
- package/dist/allowance-refusal.d.ts +9 -0
- package/dist/allowance-refusal.js +50 -0
- package/dist/allowance-refusal.js.map +1 -0
- package/dist/analytics-consent-report.d.ts +19 -0
- package/dist/analytics-consent-report.js +10 -0
- package/dist/analytics-consent-report.js.map +1 -0
- package/dist/api-key-presets.d.ts +19 -0
- package/dist/artifact-catalog.d.ts +161 -0
- package/dist/artifacts.d.ts +135 -11
- package/dist/atlassian-native-retirement.d.ts +16 -0
- package/dist/atlassian-native-retirement.js +30 -0
- package/dist/atlassian-native-retirement.js.map +1 -0
- package/dist/atlassian.d.ts +2 -0
- package/dist/atlassian.js +27 -11
- package/dist/browser-storage.d.ts +5 -0
- package/dist/browser-storage.js +9 -0
- package/dist/browser-storage.js.map +1 -0
- package/dist/bundled-skills.d.ts +40 -0
- package/dist/canonical-human-identities.d.ts +157 -0
- package/dist/canonical-human-identities.js +23 -0
- package/dist/canonical-human-identities.js.map +1 -0
- package/dist/chunk-2ACYHZFB.js +292 -0
- package/dist/chunk-2ACYHZFB.js.map +1 -0
- package/dist/chunk-2VORLN2R.js +353 -0
- package/dist/chunk-2VORLN2R.js.map +1 -0
- package/dist/{chunk-Y3MLSLB4.js → chunk-3SIZGL3O.js} +42 -30
- package/dist/chunk-3SIZGL3O.js.map +1 -0
- package/dist/chunk-46KLD2UH.js +186 -0
- package/dist/chunk-46KLD2UH.js.map +1 -0
- package/dist/chunk-4JGHSSB7.js +11 -0
- package/dist/chunk-4JGHSSB7.js.map +1 -0
- package/dist/{chunk-52SGB2QO.js → chunk-5IXYF6XN.js} +50 -10
- package/dist/chunk-5IXYF6XN.js.map +1 -0
- package/dist/chunk-BCS7WHCK.js +139 -0
- package/dist/chunk-BCS7WHCK.js.map +1 -0
- package/dist/chunk-EK7NDGFR.js +128 -0
- package/dist/chunk-EK7NDGFR.js.map +1 -0
- package/dist/{chunk-5UDNP7AO.js → chunk-FZ6BXQHL.js} +78 -38
- package/dist/chunk-FZ6BXQHL.js.map +1 -0
- package/dist/chunk-GRG7PHWQ.js +25 -0
- package/dist/chunk-GRG7PHWQ.js.map +1 -0
- package/dist/chunk-JUFK3T4Q.js +80 -0
- package/dist/chunk-JUFK3T4Q.js.map +1 -0
- package/dist/chunk-KHHZTBP7.js +11 -0
- package/dist/chunk-KHHZTBP7.js.map +1 -0
- package/dist/chunk-KR2V42UZ.js +187 -0
- package/dist/chunk-KR2V42UZ.js.map +1 -0
- package/dist/chunk-MZLBPKFE.js +168 -0
- package/dist/chunk-MZLBPKFE.js.map +1 -0
- package/dist/{chunk-H5BVCZKF.js → chunk-NRMCVHAU.js} +6 -5
- package/dist/chunk-NRMCVHAU.js.map +1 -0
- package/dist/{chunk-TZ6YEYN4.js → chunk-NVJMJWLL.js} +3 -1
- package/dist/chunk-NVJMJWLL.js.map +1 -0
- package/dist/chunk-O77VSFYZ.js +70 -0
- package/dist/chunk-O77VSFYZ.js.map +1 -0
- package/dist/chunk-PX3VCKAU.js +29 -0
- package/dist/chunk-PX3VCKAU.js.map +1 -0
- package/dist/chunk-QR5D2IQC.js +61 -0
- package/dist/chunk-QR5D2IQC.js.map +1 -0
- package/dist/chunk-RJ76DRPO.js +117 -0
- package/dist/chunk-RJ76DRPO.js.map +1 -0
- package/dist/chunk-RKX3NQYS.js +28 -0
- package/dist/chunk-RKX3NQYS.js.map +1 -0
- package/dist/{chunk-FJBG5E4O.js → chunk-SIOU2K4U.js} +45 -22
- package/dist/chunk-SIOU2K4U.js.map +1 -0
- package/dist/chunk-TSCDAGET.js +75 -0
- package/dist/chunk-TSCDAGET.js.map +1 -0
- package/dist/{chunk-LSB7GRLG.js → chunk-TXTQIYCV.js} +15 -11
- package/dist/chunk-TXTQIYCV.js.map +1 -0
- package/dist/chunk-X7ETVO4P.js +26544 -0
- package/dist/chunk-X7ETVO4P.js.map +1 -0
- package/dist/{chunk-CADSX6UN.js → chunk-Y3KNXVTD.js} +2 -2
- package/dist/chunk-YBW5JSA3.js +251 -0
- package/dist/chunk-YBW5JSA3.js.map +1 -0
- package/dist/chunk-YRXAWWCU.js +45 -0
- package/dist/chunk-YRXAWWCU.js.map +1 -0
- package/dist/claude-provider-account-authority.d.ts +18 -0
- package/dist/claude-subscription-oauth.d.ts +42 -0
- package/dist/claude-subscription-usage.d.ts +159 -0
- package/dist/client-error-report.d.ts +109 -0
- package/dist/client-error-report.js +87 -0
- package/dist/client-error-report.js.map +1 -0
- package/dist/code-search.d.ts +52 -0
- package/dist/code-search.js +40 -0
- package/dist/code-search.js.map +1 -0
- package/dist/codex-provider-account-authority.d.ts +23 -0
- package/dist/codex-provider-account-authority.js +23 -0
- package/dist/codex-provider-account-authority.js.map +1 -0
- package/dist/company-brain-governed-writes.d.ts +475 -0
- package/dist/company-brain.d.ts +336 -0
- package/dist/company-profile.d.ts +566 -0
- package/dist/connect.d.ts +325 -0
- package/dist/connect.js +191 -0
- package/dist/connect.js.map +1 -0
- package/dist/connection-account-label.d.ts +2 -0
- package/dist/connection-account-label.js +35 -0
- package/dist/connection-account-label.js.map +1 -0
- package/dist/connection-authority.d.ts +193 -0
- package/dist/connection-authority.js +50 -0
- package/dist/connection-authority.js.map +1 -0
- package/dist/connector-attachments.d.ts +95 -0
- package/dist/connector-attachments.js +51 -0
- package/dist/connector-attachments.js.map +1 -0
- package/dist/connector-tool-permissions.d.ts +73 -0
- package/dist/direct-model-provider.d.ts +36 -0
- package/dist/editable-artifact-codec-registry.d.ts +16 -7
- package/dist/editable-artifact-codec-registry.js +19 -9
- package/dist/editable-artifact-committed-transaction.d.ts +2 -2
- package/dist/editable-artifact-committed-transaction.js +2 -2
- package/dist/editable-artifact-live.d.ts +11 -12
- package/dist/editable-artifact-live.js +110 -45
- package/dist/editable-artifact-live.js.map +1 -1
- package/dist/editable-artifact-serialized-commit.d.ts +2 -1
- package/dist/editable-artifact-serialized-commit.js +8 -7
- package/dist/editable-artifact-versions.d.ts +20 -5
- package/dist/editable-artifact-versions.js +23 -5
- package/dist/editable-artifacts.d.ts +2 -0
- package/dist/editable-artifacts.js +48 -36
- package/dist/external-identities.d.ts +784 -0
- package/dist/external-identities.js +44 -0
- package/dist/external-identities.js.map +1 -0
- package/dist/feedback.d.ts +51 -0
- package/dist/github-repository-contracts.d.ts +36 -0
- package/dist/github-repository-contracts.js +59 -0
- package/dist/github-repository-contracts.js.map +1 -0
- package/dist/github-repository.d.ts +14 -0
- package/dist/github-repository.js +36 -0
- package/dist/github-repository.js.map +1 -0
- package/dist/google-drive.d.ts +90 -1
- package/dist/google-drive.js +91 -15
- package/dist/google-drive.js.map +1 -1
- package/dist/governed-learning-activation.d.ts +154 -0
- package/dist/governed-learning-evaluator.d.ts +152 -0
- package/dist/host-mcp-bindings.d.ts +326 -0
- package/dist/host-mcp-bindings.js +252 -0
- package/dist/host-mcp-bindings.js.map +1 -0
- package/dist/image-generation.d.ts +1 -0
- package/dist/index.d.ts +27574 -5374
- package/dist/index.js +2531 -177
- package/dist/insights-usage.d.ts +877 -0
- package/dist/insights-usage.js +509 -0
- package/dist/insights-usage.js.map +1 -0
- package/dist/interaction.d.ts +1752 -13
- package/dist/knowledge-entries.d.ts +982 -0
- package/dist/knowledge-preparation.d.ts +237 -0
- package/dist/knowledge.d.ts +740 -0
- package/dist/managed-auth-session-sets.d.ts +241 -0
- package/dist/managed-auth-session-sets.js +191 -0
- package/dist/managed-auth-session-sets.js.map +1 -0
- package/dist/managed-sign-in-methods.d.ts +56 -0
- package/dist/managed-sign-in-methods.js +46 -0
- package/dist/managed-sign-in-methods.js.map +1 -0
- package/dist/mcp-catalog-limits.d.ts +2 -0
- package/dist/mcp-endpoint.d.ts +7 -0
- package/dist/mcp-endpoint.js +9 -0
- package/dist/mcp-endpoint.js.map +1 -0
- package/dist/mcp-oauth.d.ts +71 -0
- package/dist/modal-native-proof-v2.d.ts +587 -0
- package/dist/modal-native-proof-v2.js +37 -0
- package/dist/modal-native-proof-v2.js.map +1 -0
- package/dist/model-availability.d.ts +15 -0
- package/dist/model-connection-access.d.ts +24 -0
- package/dist/model-context-inspector.d.ts +329 -0
- package/dist/model-display.d.ts +38 -0
- package/dist/model-display.js +134 -0
- package/dist/model-display.js.map +1 -0
- package/dist/model-picker-order.d.ts +25 -0
- package/dist/model-picker-order.js +42 -0
- package/dist/model-picker-order.js.map +1 -0
- package/dist/organization-access.d.ts +231 -0
- package/dist/organization-access.js +34 -0
- package/dist/organization-access.js.map +1 -0
- package/dist/organization-integration-policy.d.ts +27 -0
- package/dist/organization-membership-lifecycle.d.ts +1022 -0
- package/dist/organization-model-usage.d.ts +146 -0
- package/dist/organization-model-usage.js +67 -0
- package/dist/organization-model-usage.js.map +1 -0
- package/dist/organization-recovery.d.ts +337 -0
- package/dist/organization-recovery.js +37 -0
- package/dist/organization-recovery.js.map +1 -0
- package/dist/organization-usage.d.ts +138 -0
- package/dist/permissions.d.ts +54 -0
- package/dist/personal-github.d.ts +320 -0
- package/dist/personal-github.js +222 -0
- package/dist/personal-github.js.map +1 -0
- package/dist/plugin-discovery.d.ts +35 -0
- package/dist/plugin-discovery.js +7 -0
- package/dist/plugin-discovery.js.map +1 -0
- package/dist/preference-registry.d.ts +44 -1
- package/dist/product-analytics.d.ts +113 -0
- package/dist/product-lifecycle-facts.d.ts +73 -0
- package/dist/remember.d.ts +350 -0
- package/dist/retained-output.d.ts +8 -0
- package/dist/sandbox-file-artifacts.d.ts +57 -0
- package/dist/sandbox-provider-command.d.ts +113 -0
- package/dist/sandbox-recovery.d.ts +146 -0
- package/dist/sandbox-snapshots.d.ts +39 -0
- package/dist/session-final-reply.d.ts +6 -0
- package/dist/session-final-reply.js +9 -0
- package/dist/session-final-reply.js.map +1 -0
- package/dist/session-goal-reports.d.ts +21 -0
- package/dist/session-history-import.d.ts +947 -0
- package/dist/session-list-entries.d.ts +4 -0
- package/dist/session-list-entries.js +51 -0
- package/dist/session-list-entries.js.map +1 -0
- package/dist/session-mcp-projections.d.ts +215 -0
- package/dist/session-message-search.d.ts +68 -0
- package/dist/session-titles.d.ts +68 -0
- package/dist/session-titles.js +25 -0
- package/dist/session-titles.js.map +1 -0
- package/dist/session-topology-primitives.d.ts +22 -0
- package/dist/signup-attribution.d.ts +39 -0
- package/dist/site-request-headers.test.d.ts +1 -0
- package/dist/site-session-http.d.ts +11 -0
- package/dist/site-session-http.js +11 -0
- package/dist/site-session-http.js.map +1 -0
- package/dist/skill-catalog-context.d.ts +7 -0
- package/dist/skill-files.d.ts +12 -0
- package/dist/skill-metadata.d.ts +9 -0
- package/dist/skill-use.d.ts +61 -0
- package/dist/skills.d.ts +185 -0
- package/dist/slack-bot-scopes.d.ts +46 -21
- package/dist/slack-bot-scopes.js +14 -3
- package/dist/slack-rest-mcp.d.ts +31 -0
- package/dist/slack-rest-mcp.js +19 -0
- package/dist/slack-rest-mcp.js.map +1 -0
- package/dist/slack-task-policy.d.ts +294 -0
- package/dist/spreadsheet-artifact-commands.d.ts +2 -3
- package/dist/spreadsheet-artifact-commands.js +4 -2
- package/dist/spreadsheet-artifact-query.js +3 -2
- package/dist/subscription-account-pools.d.ts +292 -0
- package/dist/task-notes.d.ts +169 -0
- package/dist/tool-catalog.d.ts +286 -0
- package/dist/tool-result-spill.d.ts +16 -0
- package/dist/usage-allowances.d.ts +285 -0
- package/dist/usage-allowances.js +49 -0
- package/dist/usage-allowances.js.map +1 -0
- package/dist/video-generation.d.ts +51 -0
- package/dist/video-generation.js +9 -1
- package/dist/work-claims.d.ts +411 -0
- package/dist/workspace-instruction-policies.d.ts +94 -0
- package/dist/workspace-integration-wire.d.ts +36 -0
- package/dist/workspace-integration-wire.js +23 -0
- package/dist/workspace-integration-wire.js.map +1 -0
- package/dist/workspace-integrations.d.ts +948 -0
- package/dist/workspace-learning-administration.d.ts +289 -0
- package/dist/workspace-learning-policy.d.ts +1 -1
- package/dist/workspace-state.d.ts +85 -416
- package/dist/xai-provider-account-authority.d.ts +26 -0
- package/dist/xai-provider-account-authority.js +9 -0
- package/dist/xai-provider-account-authority.js.map +1 -0
- package/package.json +146 -1
- package/src/agent-authored-durable-text.ts +116 -0
- package/src/agent-config.ts +1527 -0
- package/src/agent-instruction-changes.ts +98 -0
- package/src/agent-learning.ts +161 -0
- package/src/agent-topology.ts +69 -0
- package/src/allowance-refusal.ts +81 -0
- package/src/analytics-consent-report.ts +20 -0
- package/src/api-key-presets.ts +25 -0
- package/src/artifact-catalog.ts +60 -0
- package/src/artifacts.ts +146 -18
- package/src/atlassian-native-retirement.ts +33 -0
- package/src/browser-storage.ts +10 -0
- package/src/bundled-skills.ts +73 -0
- package/src/canonical-human-identities.ts +93 -0
- package/src/claude-provider-account-authority.ts +12 -0
- package/src/claude-subscription-oauth.ts +62 -0
- package/src/claude-subscription-usage.ts +59 -0
- package/src/client-error-report.ts +184 -0
- package/src/code-search.ts +105 -0
- package/src/codex-provider-account-authority.ts +37 -0
- package/src/company-brain-governed-writes.ts +356 -0
- package/src/company-brain.ts +201 -0
- package/src/company-profile.ts +167 -1
- package/src/connect.ts +202 -0
- package/src/connection-account-label.ts +46 -0
- package/src/connection-authority.ts +213 -0
- package/src/connector-attachments.ts +327 -0
- package/src/connector-tool-permissions.ts +60 -0
- package/src/direct-model-provider.ts +98 -0
- package/src/editable-artifact-codec-registry.ts +55 -17
- package/src/editable-artifact-committed-transaction.ts +44 -31
- package/src/editable-artifact-live.ts +123 -57
- package/src/editable-artifact-serialized-commit.ts +2 -1
- package/src/editable-artifact-versions.ts +26 -5
- package/src/editable-artifacts.ts +2 -0
- package/src/external-identities.ts +285 -0
- package/src/feedback.ts +39 -0
- package/src/github-repository-contracts.ts +85 -0
- package/src/github-repository.ts +59 -0
- package/src/google-drive.ts +76 -4
- package/src/governed-learning-activation.ts +191 -0
- package/src/governed-learning-evaluator.ts +176 -0
- package/src/host-mcp-bindings.ts +298 -0
- package/src/image-generation.ts +8 -2
- package/src/index.ts +8019 -1799
- package/src/insights-usage.ts +679 -0
- package/src/interaction.ts +1102 -6
- package/src/knowledge-entries.ts +375 -0
- package/src/knowledge-preparation.ts +50 -0
- package/src/knowledge.ts +335 -0
- package/src/managed-auth-session-sets.ts +253 -0
- package/src/managed-sign-in-methods.ts +37 -0
- package/src/mcp-catalog-limits.ts +2 -0
- package/src/mcp-endpoint.ts +30 -0
- package/src/mcp-oauth.ts +66 -0
- package/src/modal-native-proof-v2.ts +398 -0
- package/src/model-availability.ts +22 -0
- package/src/model-connection-access.ts +17 -0
- package/src/model-context-inspector.ts +139 -0
- package/src/model-display.ts +195 -0
- package/src/model-picker-order.ts +97 -0
- package/src/organization-access.ts +176 -0
- package/src/organization-integration-policy.ts +54 -0
- package/src/organization-membership-lifecycle.ts +559 -0
- package/src/organization-model-usage.ts +72 -0
- package/src/organization-recovery.ts +186 -0
- package/src/organization-usage.ts +79 -0
- package/src/permissions.ts +58 -0
- package/src/personal-github.ts +267 -0
- package/src/plugin-discovery.ts +33 -0
- package/src/preference-registry.ts +20 -1
- package/src/product-analytics.ts +253 -0
- package/src/product-lifecycle-facts.ts +121 -0
- package/src/remember.ts +243 -0
- package/src/retained-output.ts +20 -3
- package/src/sandbox-file-artifacts.ts +73 -0
- package/src/sandbox-provider-command.ts +82 -0
- package/src/sandbox-recovery.ts +116 -0
- package/src/sandbox-snapshots.ts +142 -0
- package/src/session-final-reply.ts +16 -0
- package/src/session-goal-reports.ts +55 -0
- package/src/session-history-import.ts +159 -0
- package/src/session-list-entries.ts +91 -0
- package/src/session-mcp-projections.ts +273 -0
- package/src/session-message-search.ts +54 -0
- package/src/session-titles.ts +467 -0
- package/src/session-topology-primitives.ts +21 -0
- package/src/signup-attribution.ts +81 -0
- package/src/site-request-headers.test.ts +28 -0
- package/src/site-session-http.ts +63 -0
- package/src/skill-catalog-context.ts +50 -0
- package/src/skill-files.ts +52 -0
- package/src/skill-metadata.ts +40 -0
- package/src/skill-use.ts +77 -0
- package/src/skills.ts +136 -0
- package/src/slack-bot-scopes.ts +106 -42
- package/src/slack-rest-mcp.ts +194 -0
- package/src/slack-task-policy.ts +215 -0
- package/src/spreadsheet-artifact-commands.ts +12 -13
- package/src/subscription-account-pools.ts +44 -0
- package/src/task-notes.ts +105 -0
- package/src/tool-catalog.ts +155 -0
- package/src/tool-result-spill.ts +35 -0
- package/src/usage-allowances.ts +187 -0
- package/src/video-generation.ts +43 -6
- package/src/work-claims.ts +266 -0
- package/src/workspace-instruction-policies.ts +31 -0
- package/src/workspace-integration-wire.ts +99 -0
- package/src/workspace-integrations.ts +640 -0
- package/src/workspace-learning-administration.ts +88 -0
- package/src/workspace-learning-policy.ts +4 -3
- package/src/workspace-state.ts +16 -126
- package/src/xai-provider-account-authority.ts +38 -0
- package/dist/chunk-52SGB2QO.js.map +0 -1
- package/dist/chunk-5UDNP7AO.js.map +0 -1
- package/dist/chunk-BVGIYW7D.js +0 -11
- package/dist/chunk-BVGIYW7D.js.map +0 -1
- package/dist/chunk-FJBG5E4O.js.map +0 -1
- package/dist/chunk-H5BVCZKF.js.map +0 -1
- package/dist/chunk-LSB7GRLG.js.map +0 -1
- package/dist/chunk-TZ6YEYN4.js.map +0 -1
- package/dist/chunk-VA22KRHS.js +0 -15177
- package/dist/chunk-VA22KRHS.js.map +0 -1
- package/dist/chunk-Y3MLSLB4.js.map +0 -1
- /package/dist/{chunk-CADSX6UN.js.map → chunk-Y3KNXVTD.js.map} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// src/model-picker-order.ts
|
|
2
|
+
var MODEL_PICKER_BILLING_CLASS_ORDER = [
|
|
3
|
+
"opengeni_credits",
|
|
4
|
+
"external",
|
|
5
|
+
"codex_subscription",
|
|
6
|
+
"supergrok_subscription",
|
|
7
|
+
"claude_subscription",
|
|
8
|
+
"byok",
|
|
9
|
+
"organization_byok"
|
|
10
|
+
];
|
|
11
|
+
function modelPickerBillingClassFor(model) {
|
|
12
|
+
if (model.provider === "workspace-claude-subscription" || model.providerId === "workspace-claude-subscription" || model.provider === "organization-claude-subscription" || model.providerId === "organization-claude-subscription")
|
|
13
|
+
return "claude_subscription";
|
|
14
|
+
if (model.cost === "credits" || model.cost === "free") return "opengeni_credits";
|
|
15
|
+
if (model.cost === "workspace") return "byok";
|
|
16
|
+
if (model.cost === "organization") return "organization_byok";
|
|
17
|
+
const source = model.source;
|
|
18
|
+
const credential = model.credentialSource;
|
|
19
|
+
const payer = model.billing?.upstreamPayer;
|
|
20
|
+
if (source === "supergrok" || credential?.kind === "connected_subscription" && credential.provider === "xai") {
|
|
21
|
+
return "supergrok_subscription";
|
|
22
|
+
}
|
|
23
|
+
if (source === "codex" || credential?.kind === "connected_subscription" || payer === "connected_subscription") {
|
|
24
|
+
return "codex_subscription";
|
|
25
|
+
}
|
|
26
|
+
if (source === "workspace_gateway" || credential?.kind === "workspace_connection" || payer === "workspace") {
|
|
27
|
+
return "byok";
|
|
28
|
+
}
|
|
29
|
+
if (credential?.kind === "organization_connection" || payer === "organization") {
|
|
30
|
+
return "organization_byok";
|
|
31
|
+
}
|
|
32
|
+
return "opengeni_credits";
|
|
33
|
+
}
|
|
34
|
+
function compareModelPickerOrder(left, right) {
|
|
35
|
+
const classDelta = MODEL_PICKER_BILLING_CLASS_ORDER.indexOf(left.billingClass) - MODEL_PICKER_BILLING_CLASS_ORDER.indexOf(right.billingClass);
|
|
36
|
+
return classDelta || +right.selectable - +left.selectable || (left.label < right.label ? -1 : left.label > right.label ? 1 : 0);
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
compareModelPickerOrder,
|
|
40
|
+
modelPickerBillingClassFor
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=model-picker-order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/model-picker-order.ts"],"sourcesContent":["export type ModelPickerBillingClass =\n // Legacy public identifier for the OpenGeni presentation group, including\n // free deployment models. Never use this UI grouping to decide settlement.\n | \"opengeni_credits\"\n | \"external\"\n | \"codex_subscription\"\n | \"supergrok_subscription\"\n | \"claude_subscription\"\n | \"byok\"\n | \"organization_byok\";\n\n// Every closed billing class has a unique first character. Keeping the order\n// as initials avoids duplicating the full public labels in browser bundles.\nconst MODEL_PICKER_BILLING_CLASS_ORDER: readonly ModelPickerBillingClass[] = [\n \"opengeni_credits\",\n \"external\",\n \"codex_subscription\",\n \"supergrok_subscription\",\n \"claude_subscription\",\n \"byok\",\n \"organization_byok\",\n];\n\nexport type ModelPickerBillingCandidate = {\n provider?: string | undefined;\n providerId?: string | undefined;\n source?: string | undefined;\n cost?: \"free\" | \"credits\" | \"subscription\" | \"workspace\" | \"organization\" | undefined;\n billing?:\n | {\n upstreamPayer?: string | undefined;\n metering?: string | undefined;\n }\n | undefined;\n credentialSource?:\n | {\n kind?: string | undefined;\n provider?: string | undefined;\n }\n | undefined;\n};\n\nexport function modelPickerBillingClassFor(\n model: ModelPickerBillingCandidate,\n): ModelPickerBillingClass {\n if (\n model.provider === \"workspace-claude-subscription\" ||\n model.providerId === \"workspace-claude-subscription\" ||\n model.provider === \"organization-claude-subscription\" ||\n model.providerId === \"organization-claude-subscription\"\n )\n return \"claude_subscription\";\n if (model.cost === \"credits\" || model.cost === \"free\") return \"opengeni_credits\";\n if (model.cost === \"workspace\") return \"byok\";\n if (model.cost === \"organization\") return \"organization_byok\";\n const source = model.source;\n const credential = model.credentialSource;\n const payer = model.billing?.upstreamPayer;\n if (\n source === \"supergrok\" ||\n (credential?.kind === \"connected_subscription\" && credential.provider === \"xai\")\n ) {\n return \"supergrok_subscription\";\n }\n if (\n source === \"codex\" ||\n credential?.kind === \"connected_subscription\" ||\n payer === \"connected_subscription\"\n ) {\n return \"codex_subscription\";\n }\n if (\n source === \"workspace_gateway\" ||\n credential?.kind === \"workspace_connection\" ||\n payer === \"workspace\"\n ) {\n return \"byok\";\n }\n if (credential?.kind === \"organization_connection\" || payer === \"organization\") {\n return \"organization_byok\";\n }\n return \"opengeni_credits\";\n}\n\nexport function compareModelPickerOrder(\n left: { billingClass: ModelPickerBillingClass; selectable: boolean; label: string },\n right: { billingClass: ModelPickerBillingClass; selectable: boolean; label: string },\n): number {\n const classDelta =\n MODEL_PICKER_BILLING_CLASS_ORDER.indexOf(left.billingClass) -\n MODEL_PICKER_BILLING_CLASS_ORDER.indexOf(right.billingClass);\n return (\n classDelta ||\n +right.selectable - +left.selectable ||\n (left.label < right.label ? -1 : left.label > right.label ? 1 : 0)\n );\n}\n"],"mappings":";AAaA,IAAM,mCAAuE;AAAA,EAC3E;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAqBO,SAAS,2BACd,OACyB;AACzB,MACE,MAAM,aAAa,mCACnB,MAAM,eAAe,mCACrB,MAAM,aAAa,sCACnB,MAAM,eAAe;AAErB,WAAO;AACT,MAAI,MAAM,SAAS,aAAa,MAAM,SAAS,OAAQ,QAAO;AAC9D,MAAI,MAAM,SAAS,YAAa,QAAO;AACvC,MAAI,MAAM,SAAS,eAAgB,QAAO;AAC1C,QAAM,SAAS,MAAM;AACrB,QAAM,aAAa,MAAM;AACzB,QAAM,QAAQ,MAAM,SAAS;AAC7B,MACE,WAAW,eACV,YAAY,SAAS,4BAA4B,WAAW,aAAa,OAC1E;AACA,WAAO;AAAA,EACT;AACA,MACE,WAAW,WACX,YAAY,SAAS,4BACrB,UAAU,0BACV;AACA,WAAO;AAAA,EACT;AACA,MACE,WAAW,uBACX,YAAY,SAAS,0BACrB,UAAU,aACV;AACA,WAAO;AAAA,EACT;AACA,MAAI,YAAY,SAAS,6BAA6B,UAAU,gBAAgB;AAC9E,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAEO,SAAS,wBACd,MACA,OACQ;AACR,QAAM,aACJ,iCAAiC,QAAQ,KAAK,YAAY,IAC1D,iCAAiC,QAAQ,MAAM,YAAY;AAC7D,SACE,cACA,CAAC,MAAM,aAAa,CAAC,KAAK,eACzB,KAAK,QAAQ,MAAM,QAAQ,KAAK,KAAK,QAAQ,MAAM,QAAQ,IAAI;AAEpE;","names":[]}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Permission } from "./permissions.js";
|
|
3
|
+
export declare const OrganizationAccessPreset: z.ZodEnum<{
|
|
4
|
+
custom: "custom";
|
|
5
|
+
full: "full";
|
|
6
|
+
read_only: "read_only";
|
|
7
|
+
}>;
|
|
8
|
+
export type OrganizationAccessPreset = z.infer<typeof OrganizationAccessPreset>;
|
|
9
|
+
export declare const OrganizationWorkspaceScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
kind: z.ZodLiteral<"all">;
|
|
11
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12
|
+
kind: z.ZodLiteral<"selected">;
|
|
13
|
+
workspaceIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
14
|
+
}, z.core.$strict>], "kind">;
|
|
15
|
+
export type OrganizationWorkspaceScope = z.infer<typeof OrganizationWorkspaceScope>;
|
|
16
|
+
export declare const OrganizationActor: z.ZodEnum<{
|
|
17
|
+
organization: "organization";
|
|
18
|
+
user: "user";
|
|
19
|
+
}>;
|
|
20
|
+
export type OrganizationActor = z.infer<typeof OrganizationActor>;
|
|
21
|
+
/** Custom has no implicit permissions. Presets are expanded only by this helper. */
|
|
22
|
+
export declare function organizationAccessPresetPermissions(preset: OrganizationAccessPreset): Permission[];
|
|
23
|
+
/** True when nothing can be changed, including an empty set and secret-value reads. */
|
|
24
|
+
export declare function isReadOnlyPermissionSet(permissions: readonly Permission[]): boolean;
|
|
25
|
+
declare const OrganizationAccessPolicyInput: z.ZodObject<{
|
|
26
|
+
preset: z.ZodEnum<{
|
|
27
|
+
custom: "custom";
|
|
28
|
+
full: "full";
|
|
29
|
+
read_only: "read_only";
|
|
30
|
+
}>;
|
|
31
|
+
permissions: z.ZodArray<z.ZodLazy<z.ZodEnum<{
|
|
32
|
+
"account:admin": "account:admin";
|
|
33
|
+
"account:read": "account:read";
|
|
34
|
+
"api_keys:manage": "api_keys:manage";
|
|
35
|
+
"artifacts:publish": "artifacts:publish";
|
|
36
|
+
"artifacts:read": "artifacts:read";
|
|
37
|
+
"billing:manage": "billing:manage";
|
|
38
|
+
"billing:read": "billing:read";
|
|
39
|
+
"capabilities:manage": "capabilities:manage";
|
|
40
|
+
"codemode:call": "codemode:call";
|
|
41
|
+
"connections:read": "connections:read";
|
|
42
|
+
"connections:write": "connections:write";
|
|
43
|
+
"documents:manage": "documents:manage";
|
|
44
|
+
"documents:search": "documents:search";
|
|
45
|
+
"enrollments:manage": "enrollments:manage";
|
|
46
|
+
"enrollments:read": "enrollments:read";
|
|
47
|
+
"environments:manage": "environments:manage";
|
|
48
|
+
"environments:use": "environments:use";
|
|
49
|
+
"files:read": "files:read";
|
|
50
|
+
"files:upload": "files:upload";
|
|
51
|
+
"files:write": "files:write";
|
|
52
|
+
"github:manage": "github:manage";
|
|
53
|
+
"github:use": "github:use";
|
|
54
|
+
"goals:manage": "goals:manage";
|
|
55
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
56
|
+
"members:manage": "members:manage";
|
|
57
|
+
"rigs:manage": "rigs:manage";
|
|
58
|
+
"rigs:use": "rigs:use";
|
|
59
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
60
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
61
|
+
"secrets:list": "secrets:list";
|
|
62
|
+
"secrets:read": "secrets:read";
|
|
63
|
+
"secrets:write": "secrets:write";
|
|
64
|
+
"sessions:control": "sessions:control";
|
|
65
|
+
"sessions:create": "sessions:create";
|
|
66
|
+
"sessions:read": "sessions:read";
|
|
67
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
68
|
+
"stream:control": "stream:control";
|
|
69
|
+
"stream:view": "stream:view";
|
|
70
|
+
"terminal:attach": "terminal:attach";
|
|
71
|
+
"usage_allowances:manage": "usage_allowances:manage";
|
|
72
|
+
"variable-sets:attach": "variable-sets:attach";
|
|
73
|
+
"variable-sets:list": "variable-sets:list";
|
|
74
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
75
|
+
"variable-sets:read": "variable-sets:read";
|
|
76
|
+
"variable-sets:use": "variable-sets:use";
|
|
77
|
+
"variable-sets:write": "variable-sets:write";
|
|
78
|
+
"workspace:admin": "workspace:admin";
|
|
79
|
+
"workspace:create": "workspace:create";
|
|
80
|
+
"workspace:read": "workspace:read";
|
|
81
|
+
}>>>;
|
|
82
|
+
workspaceScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"all">;
|
|
84
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
+
kind: z.ZodLiteral<"selected">;
|
|
86
|
+
workspaceIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
87
|
+
}, z.core.$strict>], "kind">;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
export type OrganizationAccessPolicy = z.infer<typeof OrganizationAccessPolicyInput>;
|
|
90
|
+
/** Canonical ordering, alias mapping and labels; never adds an unrequested grant. */
|
|
91
|
+
export declare function normalizeOrganizationAccessPolicy(policy: OrganizationAccessPolicy): OrganizationAccessPolicy;
|
|
92
|
+
export declare const OrganizationAccessPolicy: z.ZodPipe<z.ZodObject<{
|
|
93
|
+
preset: z.ZodEnum<{
|
|
94
|
+
custom: "custom";
|
|
95
|
+
full: "full";
|
|
96
|
+
read_only: "read_only";
|
|
97
|
+
}>;
|
|
98
|
+
permissions: z.ZodArray<z.ZodLazy<z.ZodEnum<{
|
|
99
|
+
"account:admin": "account:admin";
|
|
100
|
+
"account:read": "account:read";
|
|
101
|
+
"api_keys:manage": "api_keys:manage";
|
|
102
|
+
"artifacts:publish": "artifacts:publish";
|
|
103
|
+
"artifacts:read": "artifacts:read";
|
|
104
|
+
"billing:manage": "billing:manage";
|
|
105
|
+
"billing:read": "billing:read";
|
|
106
|
+
"capabilities:manage": "capabilities:manage";
|
|
107
|
+
"codemode:call": "codemode:call";
|
|
108
|
+
"connections:read": "connections:read";
|
|
109
|
+
"connections:write": "connections:write";
|
|
110
|
+
"documents:manage": "documents:manage";
|
|
111
|
+
"documents:search": "documents:search";
|
|
112
|
+
"enrollments:manage": "enrollments:manage";
|
|
113
|
+
"enrollments:read": "enrollments:read";
|
|
114
|
+
"environments:manage": "environments:manage";
|
|
115
|
+
"environments:use": "environments:use";
|
|
116
|
+
"files:read": "files:read";
|
|
117
|
+
"files:upload": "files:upload";
|
|
118
|
+
"files:write": "files:write";
|
|
119
|
+
"github:manage": "github:manage";
|
|
120
|
+
"github:use": "github:use";
|
|
121
|
+
"goals:manage": "goals:manage";
|
|
122
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
123
|
+
"members:manage": "members:manage";
|
|
124
|
+
"rigs:manage": "rigs:manage";
|
|
125
|
+
"rigs:use": "rigs:use";
|
|
126
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
127
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
128
|
+
"secrets:list": "secrets:list";
|
|
129
|
+
"secrets:read": "secrets:read";
|
|
130
|
+
"secrets:write": "secrets:write";
|
|
131
|
+
"sessions:control": "sessions:control";
|
|
132
|
+
"sessions:create": "sessions:create";
|
|
133
|
+
"sessions:read": "sessions:read";
|
|
134
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
135
|
+
"stream:control": "stream:control";
|
|
136
|
+
"stream:view": "stream:view";
|
|
137
|
+
"terminal:attach": "terminal:attach";
|
|
138
|
+
"usage_allowances:manage": "usage_allowances:manage";
|
|
139
|
+
"variable-sets:attach": "variable-sets:attach";
|
|
140
|
+
"variable-sets:list": "variable-sets:list";
|
|
141
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
142
|
+
"variable-sets:read": "variable-sets:read";
|
|
143
|
+
"variable-sets:use": "variable-sets:use";
|
|
144
|
+
"variable-sets:write": "variable-sets:write";
|
|
145
|
+
"workspace:admin": "workspace:admin";
|
|
146
|
+
"workspace:create": "workspace:create";
|
|
147
|
+
"workspace:read": "workspace:read";
|
|
148
|
+
}>>>;
|
|
149
|
+
workspaceScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
+
kind: z.ZodLiteral<"all">;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"selected">;
|
|
153
|
+
workspaceIds: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
154
|
+
}, z.core.$strict>], "kind">;
|
|
155
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
156
|
+
preset: "custom" | "full" | "read_only";
|
|
157
|
+
permissions: ("account:admin" | "account:read" | "api_keys:manage" | "artifacts:publish" | "artifacts:read" | "billing:manage" | "billing:read" | "capabilities:manage" | "codemode:call" | "connections:read" | "connections:write" | "documents:manage" | "documents:search" | "enrollments:manage" | "enrollments:read" | "environments:manage" | "environments:use" | "files:read" | "files:upload" | "files:write" | "github:manage" | "github:use" | "goals:manage" | "mcp_servers:attach" | "members:manage" | "rigs:manage" | "rigs:use" | "scheduled_tasks:manage" | "scheduled_tasks:run" | "secrets:list" | "secrets:read" | "secrets:write" | "sessions:control" | "sessions:create" | "sessions:read" | "stream:acknowledge" | "stream:control" | "stream:view" | "terminal:attach" | "usage_allowances:manage" | "variable-sets:attach" | "variable-sets:list" | "variable-sets:manage" | "variable-sets:read" | "variable-sets:use" | "variable-sets:write" | "workspace:admin" | "workspace:create" | "workspace:read")[];
|
|
158
|
+
workspaceScope: {
|
|
159
|
+
kind: "all";
|
|
160
|
+
} | {
|
|
161
|
+
kind: "selected";
|
|
162
|
+
workspaceIds: string[];
|
|
163
|
+
};
|
|
164
|
+
}, {
|
|
165
|
+
preset: "custom" | "full" | "read_only";
|
|
166
|
+
permissions: ("account:admin" | "account:read" | "api_keys:manage" | "artifacts:publish" | "artifacts:read" | "billing:manage" | "billing:read" | "capabilities:manage" | "codemode:call" | "connections:read" | "connections:write" | "documents:manage" | "documents:search" | "enrollments:manage" | "enrollments:read" | "environments:manage" | "environments:use" | "files:read" | "files:upload" | "files:write" | "github:manage" | "github:use" | "goals:manage" | "mcp_servers:attach" | "members:manage" | "rigs:manage" | "rigs:use" | "scheduled_tasks:manage" | "scheduled_tasks:run" | "secrets:list" | "secrets:read" | "secrets:write" | "sessions:control" | "sessions:create" | "sessions:read" | "stream:acknowledge" | "stream:control" | "stream:view" | "terminal:attach" | "usage_allowances:manage" | "variable-sets:attach" | "variable-sets:list" | "variable-sets:manage" | "variable-sets:read" | "variable-sets:use" | "variable-sets:write" | "workspace:admin" | "workspace:create" | "workspace:read")[];
|
|
167
|
+
workspaceScope: {
|
|
168
|
+
kind: "all";
|
|
169
|
+
} | {
|
|
170
|
+
kind: "selected";
|
|
171
|
+
workspaceIds: string[];
|
|
172
|
+
};
|
|
173
|
+
}>>;
|
|
174
|
+
export declare const OrganizationServiceAccountRole: z.ZodEnum<{
|
|
175
|
+
admin: "admin";
|
|
176
|
+
member: "member";
|
|
177
|
+
}>;
|
|
178
|
+
export type OrganizationServiceAccountRole = z.infer<typeof OrganizationServiceAccountRole>;
|
|
179
|
+
/** What only an organization administrator can do; a member service account's keys never hold it. */
|
|
180
|
+
export declare const ORGANIZATION_ADMIN_ONLY_PERMISSIONS: readonly Permission[];
|
|
181
|
+
/** The permissions a service account's keys may hold, given its role. */
|
|
182
|
+
export declare function serviceAccountAllowsPermission(role: OrganizationServiceAccountRole, permission: Permission): boolean;
|
|
183
|
+
export declare const OrganizationServiceAccount: z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
organizationId: z.ZodString;
|
|
186
|
+
name: z.ZodString;
|
|
187
|
+
description: z.ZodNullable<z.ZodString>;
|
|
188
|
+
role: z.ZodEnum<{
|
|
189
|
+
admin: "admin";
|
|
190
|
+
member: "member";
|
|
191
|
+
}>;
|
|
192
|
+
activeKeyCount: z.ZodNumber;
|
|
193
|
+
createdAt: z.ZodString;
|
|
194
|
+
updatedAt: z.ZodString;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type OrganizationServiceAccount = z.infer<typeof OrganizationServiceAccount>;
|
|
197
|
+
export declare const ListOrganizationServiceAccountsResponse: z.ZodObject<{
|
|
198
|
+
serviceAccounts: z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
organizationId: z.ZodString;
|
|
201
|
+
name: z.ZodString;
|
|
202
|
+
description: z.ZodNullable<z.ZodString>;
|
|
203
|
+
role: z.ZodEnum<{
|
|
204
|
+
admin: "admin";
|
|
205
|
+
member: "member";
|
|
206
|
+
}>;
|
|
207
|
+
activeKeyCount: z.ZodNumber;
|
|
208
|
+
createdAt: z.ZodString;
|
|
209
|
+
updatedAt: z.ZodString;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type ListOrganizationServiceAccountsResponse = z.infer<typeof ListOrganizationServiceAccountsResponse>;
|
|
213
|
+
export declare const CreateOrganizationServiceAccountRequest: z.ZodObject<{
|
|
214
|
+
name: z.ZodString;
|
|
215
|
+
description: z.ZodOptional<z.ZodString>;
|
|
216
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
217
|
+
admin: "admin";
|
|
218
|
+
member: "member";
|
|
219
|
+
}>>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
export type CreateOrganizationServiceAccountRequest = z.infer<typeof CreateOrganizationServiceAccountRequest>;
|
|
222
|
+
export declare const UpdateOrganizationServiceAccountRequest: z.ZodObject<{
|
|
223
|
+
name: z.ZodOptional<z.ZodString>;
|
|
224
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
admin: "admin";
|
|
227
|
+
member: "member";
|
|
228
|
+
}>>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
export type UpdateOrganizationServiceAccountRequest = z.infer<typeof UpdateOrganizationServiceAccountRequest>;
|
|
231
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CreateOrganizationServiceAccountRequest,
|
|
3
|
+
ListOrganizationServiceAccountsResponse,
|
|
4
|
+
ORGANIZATION_ADMIN_ONLY_PERMISSIONS,
|
|
5
|
+
OrganizationAccessPolicy,
|
|
6
|
+
OrganizationAccessPreset,
|
|
7
|
+
OrganizationActor,
|
|
8
|
+
OrganizationServiceAccount,
|
|
9
|
+
OrganizationServiceAccountRole,
|
|
10
|
+
OrganizationWorkspaceScope,
|
|
11
|
+
UpdateOrganizationServiceAccountRequest,
|
|
12
|
+
isReadOnlyPermissionSet,
|
|
13
|
+
normalizeOrganizationAccessPolicy,
|
|
14
|
+
organizationAccessPresetPermissions,
|
|
15
|
+
serviceAccountAllowsPermission
|
|
16
|
+
} from "./chunk-RJ76DRPO.js";
|
|
17
|
+
import "./chunk-QR5D2IQC.js";
|
|
18
|
+
export {
|
|
19
|
+
CreateOrganizationServiceAccountRequest,
|
|
20
|
+
ListOrganizationServiceAccountsResponse,
|
|
21
|
+
ORGANIZATION_ADMIN_ONLY_PERMISSIONS,
|
|
22
|
+
OrganizationAccessPolicy,
|
|
23
|
+
OrganizationAccessPreset,
|
|
24
|
+
OrganizationActor,
|
|
25
|
+
OrganizationServiceAccount,
|
|
26
|
+
OrganizationServiceAccountRole,
|
|
27
|
+
OrganizationWorkspaceScope,
|
|
28
|
+
UpdateOrganizationServiceAccountRequest,
|
|
29
|
+
isReadOnlyPermissionSet,
|
|
30
|
+
normalizeOrganizationAccessPolicy,
|
|
31
|
+
organizationAccessPresetPermissions,
|
|
32
|
+
serviceAccountAllowsPermission
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=organization-access.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Catalog identities, never endpoint/domain matching. Custom transports are explicit categories. */
|
|
3
|
+
export declare const OrganizationIntegrationKey: z.ZodString;
|
|
4
|
+
export declare const OrganizationIntegrationPolicy: z.ZodObject<{
|
|
5
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
restricted: "restricted";
|
|
7
|
+
unrestricted: "unrestricted";
|
|
8
|
+
}>>;
|
|
9
|
+
allowedIntegrationKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
10
|
+
revision: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export type OrganizationIntegrationPolicy = z.infer<typeof OrganizationIntegrationPolicy>;
|
|
13
|
+
export declare const UpdateOrganizationIntegrationPolicyRequest: z.ZodObject<{
|
|
14
|
+
mode: z.ZodEnum<{
|
|
15
|
+
restricted: "restricted";
|
|
16
|
+
unrestricted: "unrestricted";
|
|
17
|
+
}>;
|
|
18
|
+
allowedIntegrationKeys: z.ZodArray<z.ZodString>;
|
|
19
|
+
expectedRevision: z.ZodNumber;
|
|
20
|
+
operationId: z.ZodString;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type UpdateOrganizationIntegrationPolicyRequest = z.infer<typeof UpdateOrganizationIntegrationPolicyRequest>;
|
|
23
|
+
export declare class OrganizationIntegrationDeniedError extends Error {
|
|
24
|
+
constructor();
|
|
25
|
+
}
|
|
26
|
+
/** integrationKey must come from trusted classification, not client-supplied metadata. */
|
|
27
|
+
export declare function assertOrganizationIntegrationAllowed(policy: OrganizationIntegrationPolicy, integrationKey: string | null): void;
|