@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,325 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ConnectOwnership: z.ZodEnum<{
|
|
3
|
+
personal: "personal";
|
|
4
|
+
workspace: "workspace";
|
|
5
|
+
}>;
|
|
6
|
+
export type ConnectOwnership = z.infer<typeof ConnectOwnership>;
|
|
7
|
+
export declare const ConnectProvider: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
label: z.ZodString;
|
|
10
|
+
family: z.ZodString;
|
|
11
|
+
readiness: z.ZodEnum<{
|
|
12
|
+
available: "available";
|
|
13
|
+
needs_configuration: "needs_configuration";
|
|
14
|
+
operator_only: "operator_only";
|
|
15
|
+
unsupported: "unsupported";
|
|
16
|
+
}>;
|
|
17
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
18
|
+
ownership: z.ZodArray<z.ZodEnum<{
|
|
19
|
+
personal: "personal";
|
|
20
|
+
workspace: "workspace";
|
|
21
|
+
}>>;
|
|
22
|
+
setup: z.ZodArray<z.ZodEnum<{
|
|
23
|
+
credentials: "credentials";
|
|
24
|
+
device: "device";
|
|
25
|
+
graphql: "graphql";
|
|
26
|
+
installation: "installation";
|
|
27
|
+
none: "none";
|
|
28
|
+
oauth: "oauth";
|
|
29
|
+
openapi: "openapi";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type ConnectProvider = z.infer<typeof ConnectProvider>;
|
|
33
|
+
export declare const ConnectAccount: z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
providerId: z.ZodString;
|
|
36
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
label: z.ZodString;
|
|
38
|
+
ownership: z.ZodEnum<{
|
|
39
|
+
personal: "personal";
|
|
40
|
+
workspace: "workspace";
|
|
41
|
+
}>;
|
|
42
|
+
status: z.ZodEnum<{
|
|
43
|
+
auth_needed: "auth_needed";
|
|
44
|
+
connected: "connected";
|
|
45
|
+
disabled: "disabled";
|
|
46
|
+
}>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export type ConnectAccount = z.infer<typeof ConnectAccount>;
|
|
49
|
+
export declare const ConnectResource: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
label: z.ZodString;
|
|
52
|
+
kind: z.ZodString;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export type ConnectResource = z.infer<typeof ConnectResource>;
|
|
55
|
+
export declare const ConnectNextAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"authorize">;
|
|
57
|
+
url: z.ZodString;
|
|
58
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"credentials">;
|
|
60
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
label: z.ZodString;
|
|
63
|
+
required: z.ZodBoolean;
|
|
64
|
+
secret: z.ZodBoolean;
|
|
65
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
value: z.ZodString;
|
|
67
|
+
label: z.ZodString;
|
|
68
|
+
}, z.core.$strict>>>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"wait">;
|
|
72
|
+
pollAfterMs: z.ZodNumber;
|
|
73
|
+
userCode: z.ZodOptional<z.ZodString>;
|
|
74
|
+
verificationUrl: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"select_account">;
|
|
77
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
providerId: z.ZodString;
|
|
80
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
label: z.ZodString;
|
|
82
|
+
ownership: z.ZodEnum<{
|
|
83
|
+
personal: "personal";
|
|
84
|
+
workspace: "workspace";
|
|
85
|
+
}>;
|
|
86
|
+
status: z.ZodEnum<{
|
|
87
|
+
auth_needed: "auth_needed";
|
|
88
|
+
connected: "connected";
|
|
89
|
+
disabled: "disabled";
|
|
90
|
+
}>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"select_resources">;
|
|
94
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
label: z.ZodString;
|
|
97
|
+
kind: z.ZodString;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"preview">;
|
|
102
|
+
previewId: z.ZodString;
|
|
103
|
+
contentHash: z.ZodString;
|
|
104
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
label: z.ZodString;
|
|
107
|
+
kind: z.ZodString;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"none">;
|
|
111
|
+
}, z.core.$strict>], "type">;
|
|
112
|
+
export type ConnectNextAction = z.infer<typeof ConnectNextAction>;
|
|
113
|
+
export declare const ConnectInstallationTarget: z.ZodObject<{
|
|
114
|
+
instanceKey: z.ZodString;
|
|
115
|
+
displayName: z.ZodString;
|
|
116
|
+
expectedInstanceVersion: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
export type ConnectInstallationTarget = z.infer<typeof ConnectInstallationTarget>;
|
|
119
|
+
export declare const ConnectAttemptState: z.ZodEnum<{
|
|
120
|
+
account_selection: "account_selection";
|
|
121
|
+
cancelled: "cancelled";
|
|
122
|
+
complete: "complete";
|
|
123
|
+
connected_but_incomplete: "connected_but_incomplete";
|
|
124
|
+
credential_input: "credential_input";
|
|
125
|
+
expired: "expired";
|
|
126
|
+
failed: "failed";
|
|
127
|
+
installing: "installing";
|
|
128
|
+
preview: "preview";
|
|
129
|
+
provider_wait: "provider_wait";
|
|
130
|
+
ready: "ready";
|
|
131
|
+
requires_user_action: "requires_user_action";
|
|
132
|
+
resource_selection: "resource_selection";
|
|
133
|
+
uncertain: "uncertain";
|
|
134
|
+
}>;
|
|
135
|
+
export declare const ConnectAttempt: z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
workspaceId: z.ZodString;
|
|
138
|
+
providerId: z.ZodString;
|
|
139
|
+
ownership: z.ZodEnum<{
|
|
140
|
+
personal: "personal";
|
|
141
|
+
workspace: "workspace";
|
|
142
|
+
}>;
|
|
143
|
+
revision: z.ZodNumber;
|
|
144
|
+
state: z.ZodEnum<{
|
|
145
|
+
account_selection: "account_selection";
|
|
146
|
+
cancelled: "cancelled";
|
|
147
|
+
complete: "complete";
|
|
148
|
+
connected_but_incomplete: "connected_but_incomplete";
|
|
149
|
+
credential_input: "credential_input";
|
|
150
|
+
expired: "expired";
|
|
151
|
+
failed: "failed";
|
|
152
|
+
installing: "installing";
|
|
153
|
+
preview: "preview";
|
|
154
|
+
provider_wait: "provider_wait";
|
|
155
|
+
ready: "ready";
|
|
156
|
+
requires_user_action: "requires_user_action";
|
|
157
|
+
resource_selection: "resource_selection";
|
|
158
|
+
uncertain: "uncertain";
|
|
159
|
+
}>;
|
|
160
|
+
credentialsCommitted: z.ZodBoolean;
|
|
161
|
+
integrationInstalled: z.ZodBoolean;
|
|
162
|
+
completionRequirement: z.ZodEnum<{
|
|
163
|
+
connection: "connection";
|
|
164
|
+
integration: "integration";
|
|
165
|
+
provider_setup: "provider_setup";
|
|
166
|
+
}>;
|
|
167
|
+
nextAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
168
|
+
type: z.ZodLiteral<"authorize">;
|
|
169
|
+
url: z.ZodString;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<"credentials">;
|
|
172
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
label: z.ZodString;
|
|
175
|
+
required: z.ZodBoolean;
|
|
176
|
+
secret: z.ZodBoolean;
|
|
177
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
|
+
value: z.ZodString;
|
|
179
|
+
label: z.ZodString;
|
|
180
|
+
}, z.core.$strict>>>;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
type: z.ZodLiteral<"wait">;
|
|
184
|
+
pollAfterMs: z.ZodNumber;
|
|
185
|
+
userCode: z.ZodOptional<z.ZodString>;
|
|
186
|
+
verificationUrl: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
188
|
+
type: z.ZodLiteral<"select_account">;
|
|
189
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
providerId: z.ZodString;
|
|
192
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
label: z.ZodString;
|
|
194
|
+
ownership: z.ZodEnum<{
|
|
195
|
+
personal: "personal";
|
|
196
|
+
workspace: "workspace";
|
|
197
|
+
}>;
|
|
198
|
+
status: z.ZodEnum<{
|
|
199
|
+
auth_needed: "auth_needed";
|
|
200
|
+
connected: "connected";
|
|
201
|
+
disabled: "disabled";
|
|
202
|
+
}>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
205
|
+
type: z.ZodLiteral<"select_resources">;
|
|
206
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
label: z.ZodString;
|
|
209
|
+
kind: z.ZodString;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
213
|
+
type: z.ZodLiteral<"preview">;
|
|
214
|
+
previewId: z.ZodString;
|
|
215
|
+
contentHash: z.ZodString;
|
|
216
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
label: z.ZodString;
|
|
219
|
+
kind: z.ZodString;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
222
|
+
type: z.ZodLiteral<"none">;
|
|
223
|
+
}, z.core.$strict>], "type">;
|
|
224
|
+
expiresAt: z.ZodString;
|
|
225
|
+
account: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
providerId: z.ZodString;
|
|
228
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
label: z.ZodString;
|
|
230
|
+
ownership: z.ZodEnum<{
|
|
231
|
+
personal: "personal";
|
|
232
|
+
workspace: "workspace";
|
|
233
|
+
}>;
|
|
234
|
+
status: z.ZodEnum<{
|
|
235
|
+
auth_needed: "auth_needed";
|
|
236
|
+
connected: "connected";
|
|
237
|
+
disabled: "disabled";
|
|
238
|
+
}>;
|
|
239
|
+
}, z.core.$strict>>;
|
|
240
|
+
installationTarget: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
instanceKey: z.ZodString;
|
|
242
|
+
displayName: z.ZodString;
|
|
243
|
+
expectedInstanceVersion: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
246
|
+
kind: z.ZodLiteral<"definition">;
|
|
247
|
+
definitionId: z.ZodString;
|
|
248
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
249
|
+
kind: z.ZodLiteral<"openapi">;
|
|
250
|
+
url: z.ZodString;
|
|
251
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
kind: z.ZodLiteral<"graphql">;
|
|
254
|
+
endpoint: z.ZodString;
|
|
255
|
+
name: z.ZodOptional<z.ZodString>;
|
|
256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
257
|
+
kind: z.ZodLiteral<"auto">;
|
|
258
|
+
url: z.ZodString;
|
|
259
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
260
|
+
}, z.core.$strict>], "kind">>;
|
|
261
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
code: z.ZodString;
|
|
263
|
+
message: z.ZodString;
|
|
264
|
+
retryable: z.ZodBoolean;
|
|
265
|
+
}, z.core.$strict>>;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
export type ConnectAttempt = z.infer<typeof ConnectAttempt>;
|
|
268
|
+
export declare const ConnectAdvance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
269
|
+
type: z.ZodLiteral<"credentials">;
|
|
270
|
+
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
|
+
type: z.ZodLiteral<"account">;
|
|
273
|
+
accountId: z.ZodString;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
type: z.ZodLiteral<"resources">;
|
|
276
|
+
resourceIds: z.ZodArray<z.ZodString>;
|
|
277
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
278
|
+
type: z.ZodLiteral<"install">;
|
|
279
|
+
previewId: z.ZodString;
|
|
280
|
+
contentHash: z.ZodString;
|
|
281
|
+
operationIds: z.ZodArray<z.ZodString>;
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
type: z.ZodLiteral<"retry">;
|
|
284
|
+
}, z.core.$strict>], "type">;
|
|
285
|
+
export type ConnectAdvance = z.infer<typeof ConnectAdvance>;
|
|
286
|
+
export declare const ConnectOperationRequest: z.ZodObject<{
|
|
287
|
+
expectedRevision: z.ZodNumber;
|
|
288
|
+
idempotencyKey: z.ZodString;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
export declare const AdvanceConnectRequest: z.ZodObject<{
|
|
291
|
+
expectedRevision: z.ZodNumber;
|
|
292
|
+
idempotencyKey: z.ZodString;
|
|
293
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
294
|
+
type: z.ZodLiteral<"credentials">;
|
|
295
|
+
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
296
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
297
|
+
type: z.ZodLiteral<"account">;
|
|
298
|
+
accountId: z.ZodString;
|
|
299
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
300
|
+
type: z.ZodLiteral<"resources">;
|
|
301
|
+
resourceIds: z.ZodArray<z.ZodString>;
|
|
302
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
303
|
+
type: z.ZodLiteral<"install">;
|
|
304
|
+
previewId: z.ZodString;
|
|
305
|
+
contentHash: z.ZodString;
|
|
306
|
+
operationIds: z.ZodArray<z.ZodString>;
|
|
307
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
308
|
+
type: z.ZodLiteral<"retry">;
|
|
309
|
+
}, z.core.$strict>], "type">;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
export declare const BeginConnectRequest: z.ZodObject<{
|
|
312
|
+
providerId: z.ZodString;
|
|
313
|
+
ownership: z.ZodEnum<{
|
|
314
|
+
personal: "personal";
|
|
315
|
+
workspace: "workspace";
|
|
316
|
+
}>;
|
|
317
|
+
returnUrl: z.ZodString;
|
|
318
|
+
idempotencyKey: z.ZodString;
|
|
319
|
+
reconnectAccountId: z.ZodOptional<z.ZodString>;
|
|
320
|
+
installationTarget: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
instanceKey: z.ZodString;
|
|
322
|
+
displayName: z.ZodString;
|
|
323
|
+
expectedInstanceVersion: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
}, z.core.$strict>>;
|
|
325
|
+
}, z.core.$strict>;
|
package/dist/connect.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IntegrationInstanceKey,
|
|
3
|
+
IntegrationSource
|
|
4
|
+
} from "./chunk-X7ETVO4P.js";
|
|
5
|
+
import "./chunk-5IXYF6XN.js";
|
|
6
|
+
import "./chunk-NRMCVHAU.js";
|
|
7
|
+
import "./chunk-WYBDERIY.js";
|
|
8
|
+
import "./chunk-4JGHSSB7.js";
|
|
9
|
+
import "./chunk-EK7NDGFR.js";
|
|
10
|
+
import "./chunk-O77VSFYZ.js";
|
|
11
|
+
import "./chunk-NVJMJWLL.js";
|
|
12
|
+
import "./chunk-SIOU2K4U.js";
|
|
13
|
+
import "./chunk-YRKRZ6OF.js";
|
|
14
|
+
import "./chunk-2VORLN2R.js";
|
|
15
|
+
import "./chunk-FZ6BXQHL.js";
|
|
16
|
+
import "./chunk-GRG7PHWQ.js";
|
|
17
|
+
import "./chunk-YRXAWWCU.js";
|
|
18
|
+
import "./chunk-2ACYHZFB.js";
|
|
19
|
+
import "./chunk-KHHZTBP7.js";
|
|
20
|
+
import "./chunk-YBW5JSA3.js";
|
|
21
|
+
import "./chunk-RJ76DRPO.js";
|
|
22
|
+
import "./chunk-QR5D2IQC.js";
|
|
23
|
+
import "./chunk-3SIZGL3O.js";
|
|
24
|
+
import "./chunk-RIY7GYQS.js";
|
|
25
|
+
import "./chunk-JUFK3T4Q.js";
|
|
26
|
+
import "./chunk-TSCDAGET.js";
|
|
27
|
+
import "./chunk-BCS7WHCK.js";
|
|
28
|
+
import "./chunk-D2HKF2EF.js";
|
|
29
|
+
import "./chunk-MYBZRDTY.js";
|
|
30
|
+
import "./chunk-MZLBPKFE.js";
|
|
31
|
+
import "./chunk-RKX3NQYS.js";
|
|
32
|
+
import "./chunk-Y3KNXVTD.js";
|
|
33
|
+
import "./chunk-TXTQIYCV.js";
|
|
34
|
+
import "./chunk-PX3VCKAU.js";
|
|
35
|
+
|
|
36
|
+
// src/connect.ts
|
|
37
|
+
import { z } from "zod";
|
|
38
|
+
var opaqueId = z.string().min(1).max(512);
|
|
39
|
+
var ConnectOwnership = z.enum(["personal", "workspace"]);
|
|
40
|
+
var ConnectProvider = z.object({
|
|
41
|
+
id: opaqueId,
|
|
42
|
+
label: z.string().min(1).max(256),
|
|
43
|
+
family: opaqueId,
|
|
44
|
+
readiness: z.enum(["available", "needs_configuration", "operator_only", "unsupported"]),
|
|
45
|
+
reason: z.string().max(1024).optional(),
|
|
46
|
+
ownership: z.array(ConnectOwnership).max(2),
|
|
47
|
+
setup: z.array(
|
|
48
|
+
z.enum(["none", "oauth", "credentials", "device", "installation", "openapi", "graphql"])
|
|
49
|
+
).max(7)
|
|
50
|
+
}).strict();
|
|
51
|
+
var ConnectAccount = z.object({
|
|
52
|
+
id: opaqueId,
|
|
53
|
+
providerId: opaqueId,
|
|
54
|
+
version: z.number().int().positive().optional(),
|
|
55
|
+
label: z.string().max(256),
|
|
56
|
+
ownership: ConnectOwnership,
|
|
57
|
+
status: z.enum(["connected", "auth_needed", "disabled"])
|
|
58
|
+
}).strict();
|
|
59
|
+
var ConnectResource = z.object({ id: opaqueId, label: z.string().max(512), kind: opaqueId }).strict();
|
|
60
|
+
var ConnectNextAction = z.discriminatedUnion("type", [
|
|
61
|
+
z.object({ type: z.literal("authorize"), url: z.string().url().max(16384) }).strict(),
|
|
62
|
+
z.object({
|
|
63
|
+
type: z.literal("credentials"),
|
|
64
|
+
fields: z.array(
|
|
65
|
+
z.object({
|
|
66
|
+
name: opaqueId,
|
|
67
|
+
label: z.string().max(256),
|
|
68
|
+
required: z.boolean(),
|
|
69
|
+
secret: z.boolean(),
|
|
70
|
+
options: z.array(z.object({ value: opaqueId, label: z.string().max(512) }).strict()).max(1e3).optional()
|
|
71
|
+
}).strict()
|
|
72
|
+
).max(32)
|
|
73
|
+
}).strict(),
|
|
74
|
+
z.object({
|
|
75
|
+
type: z.literal("wait"),
|
|
76
|
+
pollAfterMs: z.number().int().min(250).max(6e4),
|
|
77
|
+
userCode: z.string().max(128).optional(),
|
|
78
|
+
verificationUrl: z.string().url().max(2048).optional()
|
|
79
|
+
}).strict(),
|
|
80
|
+
z.object({ type: z.literal("select_account"), accounts: z.array(ConnectAccount).max(100) }).strict(),
|
|
81
|
+
z.object({
|
|
82
|
+
type: z.literal("select_resources"),
|
|
83
|
+
resources: z.array(ConnectResource).max(100),
|
|
84
|
+
cursor: z.string().max(2048).optional()
|
|
85
|
+
}).strict(),
|
|
86
|
+
z.object({
|
|
87
|
+
type: z.literal("preview"),
|
|
88
|
+
previewId: opaqueId,
|
|
89
|
+
contentHash: opaqueId,
|
|
90
|
+
operations: z.array(ConnectResource).max(2e3)
|
|
91
|
+
}).strict(),
|
|
92
|
+
z.object({ type: z.literal("none") }).strict()
|
|
93
|
+
]);
|
|
94
|
+
var ConnectInstallationTarget = z.object({
|
|
95
|
+
instanceKey: IntegrationInstanceKey,
|
|
96
|
+
displayName: z.string().min(1).max(200),
|
|
97
|
+
expectedInstanceVersion: z.number().int().positive().optional()
|
|
98
|
+
}).strict();
|
|
99
|
+
var ConnectAttemptState = z.enum([
|
|
100
|
+
"ready",
|
|
101
|
+
"requires_user_action",
|
|
102
|
+
"credential_input",
|
|
103
|
+
"provider_wait",
|
|
104
|
+
"account_selection",
|
|
105
|
+
"resource_selection",
|
|
106
|
+
"preview",
|
|
107
|
+
"installing",
|
|
108
|
+
"connected_but_incomplete",
|
|
109
|
+
"complete",
|
|
110
|
+
"cancelled",
|
|
111
|
+
"expired",
|
|
112
|
+
"failed",
|
|
113
|
+
"uncertain"
|
|
114
|
+
]);
|
|
115
|
+
var ConnectAttempt = z.object({
|
|
116
|
+
id: opaqueId,
|
|
117
|
+
workspaceId: opaqueId,
|
|
118
|
+
providerId: opaqueId,
|
|
119
|
+
ownership: ConnectOwnership,
|
|
120
|
+
revision: z.number().int().positive(),
|
|
121
|
+
state: ConnectAttemptState,
|
|
122
|
+
credentialsCommitted: z.boolean(),
|
|
123
|
+
integrationInstalled: z.boolean(),
|
|
124
|
+
completionRequirement: z.enum(["connection", "integration", "provider_setup"]),
|
|
125
|
+
nextAction: ConnectNextAction,
|
|
126
|
+
expiresAt: z.string().datetime({ offset: true }),
|
|
127
|
+
account: ConnectAccount.optional(),
|
|
128
|
+
installationTarget: ConnectInstallationTarget.optional(),
|
|
129
|
+
source: IntegrationSource.optional(),
|
|
130
|
+
error: z.object({ code: opaqueId, message: z.string().max(2048), retryable: z.boolean() }).strict().optional()
|
|
131
|
+
}).strict().superRefine((value, context) => {
|
|
132
|
+
if (value.state === "complete" && value.completionRequirement === "integration" && !value.integrationInstalled) {
|
|
133
|
+
context.addIssue({
|
|
134
|
+
code: "custom",
|
|
135
|
+
message: "Complete setup requires an installed integration"
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
if (value.state === "complete" && value.completionRequirement === "connection" && !value.credentialsCommitted) {
|
|
139
|
+
context.addIssue({
|
|
140
|
+
code: "custom",
|
|
141
|
+
message: "Connection setup requires committed credentials"
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
if (["complete", "cancelled", "expired"].includes(value.state) && value.nextAction.type !== "none") {
|
|
145
|
+
context.addIssue({ code: "custom", message: "A terminal setup has no next action" });
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
var ConnectAdvance = z.discriminatedUnion("type", [
|
|
149
|
+
z.object({
|
|
150
|
+
type: z.literal("credentials"),
|
|
151
|
+
values: z.record(z.string().max(256), z.string().max(16384))
|
|
152
|
+
}).strict(),
|
|
153
|
+
z.object({ type: z.literal("account"), accountId: opaqueId }).strict(),
|
|
154
|
+
z.object({ type: z.literal("resources"), resourceIds: z.array(opaqueId).max(1e3) }).strict(),
|
|
155
|
+
z.object({
|
|
156
|
+
type: z.literal("install"),
|
|
157
|
+
previewId: opaqueId,
|
|
158
|
+
contentHash: opaqueId,
|
|
159
|
+
operationIds: z.array(opaqueId).max(2e3)
|
|
160
|
+
}).strict(),
|
|
161
|
+
z.object({ type: z.literal("retry") }).strict()
|
|
162
|
+
]);
|
|
163
|
+
var ConnectOperationRequest = z.object({
|
|
164
|
+
expectedRevision: z.number().int().positive().safe(),
|
|
165
|
+
idempotencyKey: opaqueId
|
|
166
|
+
}).strict();
|
|
167
|
+
var AdvanceConnectRequest = ConnectOperationRequest.extend({ action: ConnectAdvance });
|
|
168
|
+
var BeginConnectRequest = z.object({
|
|
169
|
+
providerId: opaqueId,
|
|
170
|
+
ownership: ConnectOwnership,
|
|
171
|
+
// URL parsing validates separately; never transform this original string.
|
|
172
|
+
returnUrl: z.string().min(1).max(4096),
|
|
173
|
+
idempotencyKey: opaqueId,
|
|
174
|
+
reconnectAccountId: opaqueId.optional(),
|
|
175
|
+
installationTarget: ConnectInstallationTarget.optional()
|
|
176
|
+
}).strict();
|
|
177
|
+
export {
|
|
178
|
+
AdvanceConnectRequest,
|
|
179
|
+
BeginConnectRequest,
|
|
180
|
+
ConnectAccount,
|
|
181
|
+
ConnectAdvance,
|
|
182
|
+
ConnectAttempt,
|
|
183
|
+
ConnectAttemptState,
|
|
184
|
+
ConnectInstallationTarget,
|
|
185
|
+
ConnectNextAction,
|
|
186
|
+
ConnectOperationRequest,
|
|
187
|
+
ConnectOwnership,
|
|
188
|
+
ConnectProvider,
|
|
189
|
+
ConnectResource
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/connect.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { IntegrationInstanceKey, IntegrationSource } from \"./index\";\n\nconst opaqueId = z.string().min(1).max(512);\nexport const ConnectOwnership = z.enum([\"personal\", \"workspace\"]);\nexport type ConnectOwnership = z.infer<typeof ConnectOwnership>;\nexport const ConnectProvider = z\n .object({\n id: opaqueId,\n label: z.string().min(1).max(256),\n family: opaqueId,\n readiness: z.enum([\"available\", \"needs_configuration\", \"operator_only\", \"unsupported\"]),\n reason: z.string().max(1024).optional(),\n ownership: z.array(ConnectOwnership).max(2),\n setup: z\n .array(\n z.enum([\"none\", \"oauth\", \"credentials\", \"device\", \"installation\", \"openapi\", \"graphql\"]),\n )\n .max(7),\n })\n .strict();\nexport type ConnectProvider = z.infer<typeof ConnectProvider>;\nexport const ConnectAccount = z\n .object({\n id: opaqueId,\n providerId: opaqueId,\n version: z.number().int().positive().optional(),\n label: z.string().max(256),\n ownership: ConnectOwnership,\n status: z.enum([\"connected\", \"auth_needed\", \"disabled\"]),\n })\n .strict();\nexport type ConnectAccount = z.infer<typeof ConnectAccount>;\nexport const ConnectResource = z\n .object({ id: opaqueId, label: z.string().max(512), kind: opaqueId })\n .strict();\nexport type ConnectResource = z.infer<typeof ConnectResource>;\nexport const ConnectNextAction = z.discriminatedUnion(\"type\", [\n z.object({ type: z.literal(\"authorize\"), url: z.string().url().max(16_384) }).strict(),\n z\n .object({\n type: z.literal(\"credentials\"),\n fields: z\n .array(\n z\n .object({\n name: opaqueId,\n label: z.string().max(256),\n required: z.boolean(),\n secret: z.boolean(),\n options: z\n .array(z.object({ value: opaqueId, label: z.string().max(512) }).strict())\n .max(1000)\n .optional(),\n })\n .strict(),\n )\n .max(32),\n })\n .strict(),\n z\n .object({\n type: z.literal(\"wait\"),\n pollAfterMs: z.number().int().min(250).max(60_000),\n userCode: z.string().max(128).optional(),\n verificationUrl: z.string().url().max(2048).optional(),\n })\n .strict(),\n z\n .object({ type: z.literal(\"select_account\"), accounts: z.array(ConnectAccount).max(100) })\n .strict(),\n z\n .object({\n type: z.literal(\"select_resources\"),\n resources: z.array(ConnectResource).max(100),\n cursor: z.string().max(2048).optional(),\n })\n .strict(),\n z\n .object({\n type: z.literal(\"preview\"),\n previewId: opaqueId,\n contentHash: opaqueId,\n operations: z.array(ConnectResource).max(2000),\n })\n .strict(),\n z.object({ type: z.literal(\"none\") }).strict(),\n]);\nexport type ConnectNextAction = z.infer<typeof ConnectNextAction>;\nexport const ConnectInstallationTarget = z\n .object({\n instanceKey: IntegrationInstanceKey,\n displayName: z.string().min(1).max(200),\n expectedInstanceVersion: z.number().int().positive().optional(),\n })\n .strict();\nexport type ConnectInstallationTarget = z.infer<typeof ConnectInstallationTarget>;\nexport const ConnectAttemptState = z.enum([\n \"ready\",\n \"requires_user_action\",\n \"credential_input\",\n \"provider_wait\",\n \"account_selection\",\n \"resource_selection\",\n \"preview\",\n \"installing\",\n \"connected_but_incomplete\",\n \"complete\",\n \"cancelled\",\n \"expired\",\n \"failed\",\n \"uncertain\",\n]);\nexport const ConnectAttempt = z\n .object({\n id: opaqueId,\n workspaceId: opaqueId,\n providerId: opaqueId,\n ownership: ConnectOwnership,\n revision: z.number().int().positive(),\n state: ConnectAttemptState,\n credentialsCommitted: z.boolean(),\n integrationInstalled: z.boolean(),\n completionRequirement: z.enum([\"connection\", \"integration\", \"provider_setup\"]),\n nextAction: ConnectNextAction,\n expiresAt: z.string().datetime({ offset: true }),\n account: ConnectAccount.optional(),\n installationTarget: ConnectInstallationTarget.optional(),\n source: IntegrationSource.optional(),\n error: z\n .object({ code: opaqueId, message: z.string().max(2048), retryable: z.boolean() })\n .strict()\n .optional(),\n })\n .strict()\n .superRefine((value, context) => {\n if (\n value.state === \"complete\" &&\n value.completionRequirement === \"integration\" &&\n !value.integrationInstalled\n ) {\n context.addIssue({\n code: \"custom\",\n message: \"Complete setup requires an installed integration\",\n });\n }\n if (\n value.state === \"complete\" &&\n value.completionRequirement === \"connection\" &&\n !value.credentialsCommitted\n ) {\n context.addIssue({\n code: \"custom\",\n message: \"Connection setup requires committed credentials\",\n });\n }\n if (\n [\"complete\", \"cancelled\", \"expired\"].includes(value.state) &&\n value.nextAction.type !== \"none\"\n ) {\n context.addIssue({ code: \"custom\", message: \"A terminal setup has no next action\" });\n }\n });\nexport type ConnectAttempt = z.infer<typeof ConnectAttempt>;\nexport const ConnectAdvance = z.discriminatedUnion(\"type\", [\n z\n .object({\n type: z.literal(\"credentials\"),\n values: z.record(z.string().max(256), z.string().max(16_384)),\n })\n .strict(),\n z.object({ type: z.literal(\"account\"), accountId: opaqueId }).strict(),\n z.object({ type: z.literal(\"resources\"), resourceIds: z.array(opaqueId).max(1000) }).strict(),\n z\n .object({\n type: z.literal(\"install\"),\n previewId: opaqueId,\n contentHash: opaqueId,\n operationIds: z.array(opaqueId).max(2000),\n })\n .strict(),\n z.object({ type: z.literal(\"retry\") }).strict(),\n]);\nexport type ConnectAdvance = z.infer<typeof ConnectAdvance>;\nexport const ConnectOperationRequest = z\n .object({\n expectedRevision: z.number().int().positive().safe(),\n idempotencyKey: opaqueId,\n })\n .strict();\nexport const AdvanceConnectRequest = ConnectOperationRequest.extend({ action: ConnectAdvance });\nexport const BeginConnectRequest = z\n .object({\n providerId: opaqueId,\n ownership: ConnectOwnership,\n // URL parsing validates separately; never transform this original string.\n returnUrl: z.string().min(1).max(4096),\n idempotencyKey: opaqueId,\n reconnectAccountId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EAAE,CAAC,EAAE,OAAO;AAChD,CAAC;AAEM,IAAM,0BAA0B,EACpC,OAAO;AAAA,EACN,kBAAkB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK;AAAA,EACnD,gBAAgB;AAClB,CAAC,EACA,OAAO;AACH,IAAM,wBAAwB,wBAAwB,OAAO,EAAE,QAAQ,eAAe,CAAC;AACvF,IAAM,sBAAsB,EAChC,OAAO;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA;AAAA,EAEX,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EACrC,gBAAgB;AAAA,EAChB,oBAAoB,SAAS,SAAS;AAAA,EACtC,oBAAoB,0BAA0B,SAAS;AACzD,CAAC,EACA,OAAO;","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/connection-account-label.ts
|
|
2
|
+
function connectionAccountIdentityLabel(metadata, fallback) {
|
|
3
|
+
const text = (value) => typeof value === "string" && value.trim() ? value.replace(/[\u0000-\u001f\u007f]/gu, " ").trim().slice(0, 180) : void 0;
|
|
4
|
+
const nestedName = (value) => value && typeof value === "object" ? value.name : value;
|
|
5
|
+
const name = [
|
|
6
|
+
metadata.email,
|
|
7
|
+
metadata.providerEmail,
|
|
8
|
+
metadata.googleEmail,
|
|
9
|
+
metadata.gmailEmail,
|
|
10
|
+
metadata.accountLabel,
|
|
11
|
+
metadata.displayName,
|
|
12
|
+
metadata.providerDisplayName,
|
|
13
|
+
metadata.googleDisplayName,
|
|
14
|
+
metadata.accountName,
|
|
15
|
+
metadata.name,
|
|
16
|
+
metadata.slackUserName,
|
|
17
|
+
metadata.username,
|
|
18
|
+
metadata.slackUserId
|
|
19
|
+
].map(text).find(Boolean) ?? fallback;
|
|
20
|
+
const workspace = [
|
|
21
|
+
metadata.slackTeamName,
|
|
22
|
+
metadata.teamName,
|
|
23
|
+
metadata.workspaceName,
|
|
24
|
+
metadata.team_name,
|
|
25
|
+
metadata.workspace_name,
|
|
26
|
+
nestedName(metadata.team),
|
|
27
|
+
nestedName(metadata.workspace),
|
|
28
|
+
metadata.slackTeamId
|
|
29
|
+
].map(text).find(Boolean);
|
|
30
|
+
return [...new Set([name, workspace].filter(Boolean))].join(" \xB7 ");
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
connectionAccountIdentityLabel
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=connection-account-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/connection-account-label.ts"],"sourcesContent":["/** Display identity from an already authorized connection. Never used to select credentials. */\nexport function connectionAccountIdentityLabel(\n metadata: Record<string, unknown>,\n fallback: string,\n): string {\n const text = (value: unknown): string | undefined =>\n typeof value === \"string\" && value.trim()\n ? value\n .replace(/[\\u0000-\\u001f\\u007f]/gu, \" \")\n .trim()\n .slice(0, 180)\n : undefined;\n const nestedName = (value: unknown): unknown =>\n value && typeof value === \"object\" ? (value as Record<string, unknown>).name : value;\n const name =\n [\n metadata.email,\n metadata.providerEmail,\n metadata.googleEmail,\n metadata.gmailEmail,\n metadata.accountLabel,\n metadata.displayName,\n metadata.providerDisplayName,\n metadata.googleDisplayName,\n metadata.accountName,\n metadata.name,\n metadata.slackUserName,\n metadata.username,\n metadata.slackUserId,\n ]\n .map(text)\n .find(Boolean) ?? fallback;\n const workspace = [\n metadata.slackTeamName,\n metadata.teamName,\n metadata.workspaceName,\n metadata.team_name,\n metadata.workspace_name,\n nestedName(metadata.team),\n nestedName(metadata.workspace),\n metadata.slackTeamId,\n ]\n .map(text)\n .find(Boolean);\n return [...new Set([name, workspace].filter(Boolean))].join(\" · \");\n}\n"],"mappings":";AACO,SAAS,+BACd,UACA,UACQ;AACR,QAAM,OAAO,CAAC,UACZ,OAAO,UAAU,YAAY,MAAM,KAAK,IACpC,MACG,QAAQ,2BAA2B,GAAG,EACtC,KAAK,EACL,MAAM,GAAG,GAAG,IACf;AACN,QAAM,aAAa,CAAC,UAClB,SAAS,OAAO,UAAU,WAAY,MAAkC,OAAO;AACjF,QAAM,OACJ;AAAA,IACE,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,EACX,EACG,IAAI,IAAI,EACR,KAAK,OAAO,KAAK;AACtB,QAAM,YAAY;AAAA,IAChB,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,WAAW,SAAS,IAAI;AAAA,IACxB,WAAW,SAAS,SAAS;AAAA,IAC7B,SAAS;AAAA,EACX,EACG,IAAI,IAAI,EACR,KAAK,OAAO;AACf,SAAO,CAAC,GAAG,IAAI,IAAI,CAAC,MAAM,SAAS,EAAE,OAAO,OAAO,CAAC,CAAC,EAAE,KAAK,QAAK;AACnE;","names":[]}
|