@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,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AddExternalWorkspaceMemberRequest,
|
|
3
|
+
BeginExternalIdentityLinkRequest,
|
|
4
|
+
BeginExternalIdentityLinkResponse,
|
|
5
|
+
CancelExternalWorkspaceMemberGrantRequest,
|
|
6
|
+
CancelExternalWorkspaceMemberGrantResponse,
|
|
7
|
+
ConfirmExternalIdentityLinkRequest,
|
|
8
|
+
ExternalActorAttribution,
|
|
9
|
+
ExternalActorContinuation,
|
|
10
|
+
ExternalActorSelection,
|
|
11
|
+
ExternalIdentity,
|
|
12
|
+
ExternalIdentityLink,
|
|
13
|
+
ExternalIdentityLinkPage,
|
|
14
|
+
ExternalIdentityLinkPreview,
|
|
15
|
+
ExternalIdentityLookup,
|
|
16
|
+
ExternalIdentityReference,
|
|
17
|
+
ExternalLinkWorkSnapshot,
|
|
18
|
+
UpdateExternalIdentityMembershipRequest,
|
|
19
|
+
UpdateExternalWorkspaceMemberRequest,
|
|
20
|
+
UpdateExternalWorkspaceMemberResponse
|
|
21
|
+
} from "./chunk-KR2V42UZ.js";
|
|
22
|
+
import "./chunk-QR5D2IQC.js";
|
|
23
|
+
export {
|
|
24
|
+
AddExternalWorkspaceMemberRequest,
|
|
25
|
+
BeginExternalIdentityLinkRequest,
|
|
26
|
+
BeginExternalIdentityLinkResponse,
|
|
27
|
+
CancelExternalWorkspaceMemberGrantRequest,
|
|
28
|
+
CancelExternalWorkspaceMemberGrantResponse,
|
|
29
|
+
ConfirmExternalIdentityLinkRequest,
|
|
30
|
+
ExternalActorAttribution,
|
|
31
|
+
ExternalActorContinuation,
|
|
32
|
+
ExternalActorSelection,
|
|
33
|
+
ExternalIdentity,
|
|
34
|
+
ExternalIdentityLink,
|
|
35
|
+
ExternalIdentityLinkPage,
|
|
36
|
+
ExternalIdentityLinkPreview,
|
|
37
|
+
ExternalIdentityLookup,
|
|
38
|
+
ExternalIdentityReference,
|
|
39
|
+
ExternalLinkWorkSnapshot,
|
|
40
|
+
UpdateExternalIdentityMembershipRequest,
|
|
41
|
+
UpdateExternalWorkspaceMemberRequest,
|
|
42
|
+
UpdateExternalWorkspaceMemberResponse
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=external-identities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FeedbackSentiment: z.ZodEnum<{
|
|
3
|
+
negative: "negative";
|
|
4
|
+
positive: "positive";
|
|
5
|
+
}>;
|
|
6
|
+
export type FeedbackSentiment = z.infer<typeof FeedbackSentiment>;
|
|
7
|
+
/** A new key means a new submission; retry the same payload with the same key. */
|
|
8
|
+
export declare const CreateFeedbackRequest: z.ZodObject<{
|
|
9
|
+
idempotencyKey: z.ZodString;
|
|
10
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
sentiment: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
negative: "negative";
|
|
14
|
+
positive: "positive";
|
|
15
|
+
}>>;
|
|
16
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export type CreateFeedbackRequest = z.infer<typeof CreateFeedbackRequest>;
|
|
19
|
+
export declare const Feedback: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
workspaceId: z.ZodString;
|
|
22
|
+
subjectId: z.ZodString;
|
|
23
|
+
principalKind: z.ZodNullable<z.ZodString>;
|
|
24
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
25
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
sentiment: z.ZodNullable<z.ZodEnum<{
|
|
27
|
+
negative: "negative";
|
|
28
|
+
positive: "positive";
|
|
29
|
+
}>>;
|
|
30
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
31
|
+
createdAt: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type Feedback = z.infer<typeof Feedback>;
|
|
34
|
+
export declare const FeedbackSubmissionResponse: z.ZodObject<{
|
|
35
|
+
feedback: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
workspaceId: z.ZodString;
|
|
38
|
+
subjectId: z.ZodString;
|
|
39
|
+
principalKind: z.ZodNullable<z.ZodString>;
|
|
40
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
41
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
42
|
+
sentiment: z.ZodNullable<z.ZodEnum<{
|
|
43
|
+
negative: "negative";
|
|
44
|
+
positive: "positive";
|
|
45
|
+
}>>;
|
|
46
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
47
|
+
createdAt: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
replayed: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type FeedbackSubmissionResponse = z.infer<typeof FeedbackSubmissionResponse>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const VerifyPublicGitHubRepositoryRefRequest: z.ZodObject<{
|
|
3
|
+
url: z.ZodString;
|
|
4
|
+
ref: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export type VerifyPublicGitHubRepositoryRefRequest = z.infer<typeof VerifyPublicGitHubRepositoryRefRequest>;
|
|
7
|
+
export declare const VerifyPublicGitHubRepositoryRefResponse: z.ZodObject<{
|
|
8
|
+
owner: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
fullName: z.ZodString;
|
|
11
|
+
canonicalUrl: z.ZodString;
|
|
12
|
+
cloneUrl: z.ZodString;
|
|
13
|
+
defaultBranch: z.ZodString;
|
|
14
|
+
ref: z.ZodString;
|
|
15
|
+
commitSha: z.ZodString;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export type VerifyPublicGitHubRepositoryRefResponse = z.infer<typeof VerifyPublicGitHubRepositoryRefResponse>;
|
|
18
|
+
export declare const GITHUB_REPOSITORY_BRANCH_PAGE_MAX: 100;
|
|
19
|
+
export declare const ListGitHubRepositoryBranchesQuery: z.ZodObject<{
|
|
20
|
+
cursor: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
21
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export type ListGitHubRepositoryBranchesQuery = z.infer<typeof ListGitHubRepositoryBranchesQuery>;
|
|
24
|
+
export declare const GitHubRepositoryBranch: z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
isDefault: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export type GitHubRepositoryBranch = z.infer<typeof GitHubRepositoryBranch>;
|
|
29
|
+
export declare const GitHubRepositoryBranchesResponse: z.ZodObject<{
|
|
30
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
isDefault: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
nextCursor: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export type GitHubRepositoryBranchesResponse = z.infer<typeof GitHubRepositoryBranchesResponse>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// src/github-repository-contracts.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var VerifyPublicGitHubRepositoryRefRequest = z.object({
|
|
4
|
+
url: z.string().min(1).max(2048),
|
|
5
|
+
ref: z.string().trim().min(1).max(1024).refine((value) => !/[\u0000-\u001f\u007f]/u.test(value), "ref contains control characters")
|
|
6
|
+
}).strict();
|
|
7
|
+
var VerifyPublicGitHubRepositoryRefResponse = z.object({
|
|
8
|
+
owner: z.string().min(1).max(39),
|
|
9
|
+
name: z.string().min(1).max(100),
|
|
10
|
+
fullName: z.string().min(3).max(140),
|
|
11
|
+
canonicalUrl: z.string().url(),
|
|
12
|
+
cloneUrl: z.string().url(),
|
|
13
|
+
defaultBranch: z.string().min(1).max(1024),
|
|
14
|
+
ref: z.string().min(1).max(1024),
|
|
15
|
+
commitSha: z.string().regex(/^[0-9a-f]{40}$/u)
|
|
16
|
+
}).strict();
|
|
17
|
+
var GITHUB_REPOSITORY_BRANCH_PAGE_MAX = 100;
|
|
18
|
+
var ListGitHubRepositoryBranchesQuery = z.object({
|
|
19
|
+
cursor: z.coerce.number().int().positive().max(1e4).default(1),
|
|
20
|
+
limit: z.coerce.number().int().min(1).max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX).default(GITHUB_REPOSITORY_BRANCH_PAGE_MAX)
|
|
21
|
+
}).strict();
|
|
22
|
+
var GitHubRepositoryBranch = z.object({
|
|
23
|
+
name: z.string().min(1).max(1024),
|
|
24
|
+
isDefault: z.boolean()
|
|
25
|
+
}).strict();
|
|
26
|
+
var GitHubRepositoryBranchesResponse = z.object({
|
|
27
|
+
branches: z.array(GitHubRepositoryBranch).max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX),
|
|
28
|
+
nextCursor: z.number().int().positive().max(1e4).nullable()
|
|
29
|
+
}).strict().superRefine((response, context) => {
|
|
30
|
+
const names = /* @__PURE__ */ new Set();
|
|
31
|
+
let defaultCount = 0;
|
|
32
|
+
response.branches.forEach((branch, index) => {
|
|
33
|
+
if (names.has(branch.name)) {
|
|
34
|
+
context.addIssue({
|
|
35
|
+
code: "custom",
|
|
36
|
+
path: ["branches", index, "name"],
|
|
37
|
+
message: "branch names must be unique"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
names.add(branch.name);
|
|
41
|
+
if (branch.isDefault) defaultCount += 1;
|
|
42
|
+
});
|
|
43
|
+
if (defaultCount > 1) {
|
|
44
|
+
context.addIssue({
|
|
45
|
+
code: "custom",
|
|
46
|
+
path: ["branches"],
|
|
47
|
+
message: "at most one branch may be marked as default"
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
GITHUB_REPOSITORY_BRANCH_PAGE_MAX,
|
|
53
|
+
GitHubRepositoryBranch,
|
|
54
|
+
GitHubRepositoryBranchesResponse,
|
|
55
|
+
ListGitHubRepositoryBranchesQuery,
|
|
56
|
+
VerifyPublicGitHubRepositoryRefRequest,
|
|
57
|
+
VerifyPublicGitHubRepositoryRefResponse
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=github-repository-contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/github-repository-contracts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const VerifyPublicGitHubRepositoryRefRequest = z\n .object({\n url: z.string().min(1).max(2048),\n ref: z\n .string()\n .trim()\n .min(1)\n .max(1024)\n .refine((value) => !/[\\u0000-\\u001f\\u007f]/u.test(value), \"ref contains control characters\"),\n })\n .strict();\nexport type VerifyPublicGitHubRepositoryRefRequest = z.infer<\n typeof VerifyPublicGitHubRepositoryRefRequest\n>;\n\nexport const VerifyPublicGitHubRepositoryRefResponse = z\n .object({\n owner: z.string().min(1).max(39),\n name: z.string().min(1).max(100),\n fullName: z.string().min(3).max(140),\n canonicalUrl: z.string().url(),\n cloneUrl: z.string().url(),\n defaultBranch: z.string().min(1).max(1024),\n ref: z.string().min(1).max(1024),\n commitSha: z.string().regex(/^[0-9a-f]{40}$/u),\n })\n .strict();\nexport type VerifyPublicGitHubRepositoryRefResponse = z.infer<\n typeof VerifyPublicGitHubRepositoryRefResponse\n>;\n\nexport const GITHUB_REPOSITORY_BRANCH_PAGE_MAX = 100 as const;\n\nexport const ListGitHubRepositoryBranchesQuery = z\n .object({\n cursor: z.coerce.number().int().positive().max(10_000).default(1),\n limit: z.coerce\n .number()\n .int()\n .min(1)\n .max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX)\n .default(GITHUB_REPOSITORY_BRANCH_PAGE_MAX),\n })\n .strict();\nexport type ListGitHubRepositoryBranchesQuery = z.infer<typeof ListGitHubRepositoryBranchesQuery>;\n\nexport const GitHubRepositoryBranch = z\n .object({\n name: z.string().min(1).max(1024),\n isDefault: z.boolean(),\n })\n .strict();\nexport type GitHubRepositoryBranch = z.infer<typeof GitHubRepositoryBranch>;\n\nexport const GitHubRepositoryBranchesResponse = z\n .object({\n branches: z.array(GitHubRepositoryBranch).max(GITHUB_REPOSITORY_BRANCH_PAGE_MAX),\n nextCursor: z.number().int().positive().max(10_000).nullable(),\n })\n .strict()\n .superRefine((response, context) => {\n const names = new Set<string>();\n let defaultCount = 0;\n response.branches.forEach((branch, index) => {\n if (names.has(branch.name)) {\n context.addIssue({\n code: \"custom\",\n path: [\"branches\", index, \"name\"],\n message: \"branch names must be unique\",\n });\n }\n names.add(branch.name);\n if (branch.isDefault) defaultCount += 1;\n });\n if (defaultCount > 1) {\n context.addIssue({\n code: \"custom\",\n path: [\"branches\"],\n message: \"at most one branch may be marked as default\",\n });\n }\n });\nexport type GitHubRepositoryBranchesResponse = z.infer<typeof GitHubRepositoryBranchesResponse>;\n"],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,yCAAyC,EACnD,OAAO;AAAA,EACN,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EAC/B,KAAK,EACF,OAAO,EACP,KAAK,EACL,IAAI,CAAC,EACL,IAAI,IAAI,EACR,OAAO,CAAC,UAAU,CAAC,yBAAyB,KAAK,KAAK,GAAG,iCAAiC;AAC/F,CAAC,EACA,OAAO;AAKH,IAAM,0CAA0C,EACpD,OAAO;AAAA,EACN,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AAAA,EAC/B,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,EAC/B,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,EACnC,cAAc,EAAE,OAAO,EAAE,IAAI;AAAA,EAC7B,UAAU,EAAE,OAAO,EAAE,IAAI;AAAA,EACzB,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EACzC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EAC/B,WAAW,EAAE,OAAO,EAAE,MAAM,iBAAiB;AAC/C,CAAC,EACA,OAAO;AAKH,IAAM,oCAAoC;AAE1C,IAAM,oCAAoC,EAC9C,OAAO;AAAA,EACN,QAAQ,EAAE,OAAO,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAM,EAAE,QAAQ,CAAC;AAAA,EAChE,OAAO,EAAE,OACN,OAAO,EACP,IAAI,EACJ,IAAI,CAAC,EACL,IAAI,iCAAiC,EACrC,QAAQ,iCAAiC;AAC9C,CAAC,EACA,OAAO;AAGH,IAAM,yBAAyB,EACnC,OAAO;AAAA,EACN,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;AAAA,EAChC,WAAW,EAAE,QAAQ;AACvB,CAAC,EACA,OAAO;AAGH,IAAM,mCAAmC,EAC7C,OAAO;AAAA,EACN,UAAU,EAAE,MAAM,sBAAsB,EAAE,IAAI,iCAAiC;AAAA,EAC/E,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAM,EAAE,SAAS;AAC/D,CAAC,EACA,OAAO,EACP,YAAY,CAAC,UAAU,YAAY;AAClC,QAAM,QAAQ,oBAAI,IAAY;AAC9B,MAAI,eAAe;AACnB,WAAS,SAAS,QAAQ,CAAC,QAAQ,UAAU;AAC3C,QAAI,MAAM,IAAI,OAAO,IAAI,GAAG;AAC1B,cAAQ,SAAS;AAAA,QACf,MAAM;AAAA,QACN,MAAM,CAAC,YAAY,OAAO,MAAM;AAAA,QAChC,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AACA,UAAM,IAAI,OAAO,IAAI;AACrB,QAAI,OAAO,UAAW,iBAAgB;AAAA,EACxC,CAAC;AACD,MAAI,eAAe,GAAG;AACpB,YAAQ,SAAS;AAAA,MACf,MAAM;AAAA,MACN,MAAM,CAAC,UAAU;AAAA,MACjB,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type CanonicalGitHubRepository = {
|
|
2
|
+
owner: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fullName: string;
|
|
5
|
+
canonicalUrl: string;
|
|
6
|
+
cloneUrl: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Parse only a canonical public github.com repository URL. This deliberately
|
|
10
|
+
* rejects aliases, credentials, ports, query/fragment state, encoded paths,
|
|
11
|
+
* and repository subpaths so callers cannot accidentally verify one target
|
|
12
|
+
* and attach another.
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseCanonicalGitHubRepositoryUrl(value: string): CanonicalGitHubRepository;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/github-repository.ts
|
|
2
|
+
function parseCanonicalGitHubRepositoryUrl(value) {
|
|
3
|
+
if (!value.startsWith("https://github.com/")) {
|
|
4
|
+
throw new Error("GitHub repository URL must use the exact https://github.com host.");
|
|
5
|
+
}
|
|
6
|
+
let url;
|
|
7
|
+
try {
|
|
8
|
+
url = new URL(value);
|
|
9
|
+
} catch {
|
|
10
|
+
throw new TypeError("GitHub repository URL is invalid.");
|
|
11
|
+
}
|
|
12
|
+
if (url.protocol !== "https:" || url.hostname !== "github.com" || url.host !== "github.com" || url.username || url.password || url.search || url.hash || url.pathname.includes("%")) {
|
|
13
|
+
throw new TypeError("Use a canonical https://github.com/owner/repository URL.");
|
|
14
|
+
}
|
|
15
|
+
const match = /^\/([^/]+)\/([^/]+?)\/?$/u.exec(url.pathname);
|
|
16
|
+
if (!match) {
|
|
17
|
+
throw new TypeError("GitHub repository URL must contain exactly owner/repository.");
|
|
18
|
+
}
|
|
19
|
+
const owner = match[1];
|
|
20
|
+
const name = match[2].replace(/\.git$/iu, "");
|
|
21
|
+
if (!/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?$/u.test(owner) || !/^[A-Za-z0-9_.-]{1,100}$/u.test(name) || name === "." || name === "..") {
|
|
22
|
+
throw new TypeError("GitHub repository owner or name is invalid.");
|
|
23
|
+
}
|
|
24
|
+
const fullName = `${owner}/${name}`;
|
|
25
|
+
return {
|
|
26
|
+
owner,
|
|
27
|
+
name,
|
|
28
|
+
fullName,
|
|
29
|
+
canonicalUrl: `https://github.com/${fullName}`,
|
|
30
|
+
cloneUrl: `https://github.com/${fullName}.git`
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
parseCanonicalGitHubRepositoryUrl
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=github-repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/github-repository.ts"],"sourcesContent":["export type CanonicalGitHubRepository = {\n owner: string;\n name: string;\n fullName: string;\n canonicalUrl: string;\n cloneUrl: string;\n};\n\n/**\n * Parse only a canonical public github.com repository URL. This deliberately\n * rejects aliases, credentials, ports, query/fragment state, encoded paths,\n * and repository subpaths so callers cannot accidentally verify one target\n * and attach another.\n */\nexport function parseCanonicalGitHubRepositoryUrl(value: string): CanonicalGitHubRepository {\n if (!value.startsWith(\"https://github.com/\")) {\n throw new Error(\"GitHub repository URL must use the exact https://github.com host.\");\n }\n let url: URL;\n try {\n url = new URL(value);\n } catch {\n throw new TypeError(\"GitHub repository URL is invalid.\");\n }\n if (\n url.protocol !== \"https:\" ||\n url.hostname !== \"github.com\" ||\n url.host !== \"github.com\" ||\n url.username ||\n url.password ||\n url.search ||\n url.hash ||\n url.pathname.includes(\"%\")\n ) {\n throw new TypeError(\"Use a canonical https://github.com/owner/repository URL.\");\n }\n const match = /^\\/([^/]+)\\/([^/]+?)\\/?$/u.exec(url.pathname);\n if (!match) {\n throw new TypeError(\"GitHub repository URL must contain exactly owner/repository.\");\n }\n const owner = match[1]!;\n const name = match[2]!.replace(/\\.git$/iu, \"\");\n if (\n !/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?$/u.test(owner) ||\n !/^[A-Za-z0-9_.-]{1,100}$/u.test(name) ||\n name === \".\" ||\n name === \"..\"\n ) {\n throw new TypeError(\"GitHub repository owner or name is invalid.\");\n }\n const fullName = `${owner}/${name}`;\n return {\n owner,\n name,\n fullName,\n canonicalUrl: `https://github.com/${fullName}`,\n cloneUrl: `https://github.com/${fullName}.git`,\n };\n}\n"],"mappings":";AAcO,SAAS,kCAAkC,OAA0C;AAC1F,MAAI,CAAC,MAAM,WAAW,qBAAqB,GAAG;AAC5C,UAAM,IAAI,MAAM,mEAAmE;AAAA,EACrF;AACA,MAAI;AACJ,MAAI;AACF,UAAM,IAAI,IAAI,KAAK;AAAA,EACrB,QAAQ;AACN,UAAM,IAAI,UAAU,mCAAmC;AAAA,EACzD;AACA,MACE,IAAI,aAAa,YACjB,IAAI,aAAa,gBACjB,IAAI,SAAS,gBACb,IAAI,YACJ,IAAI,YACJ,IAAI,UACJ,IAAI,QACJ,IAAI,SAAS,SAAS,GAAG,GACzB;AACA,UAAM,IAAI,UAAU,0DAA0D;AAAA,EAChF;AACA,QAAM,QAAQ,4BAA4B,KAAK,IAAI,QAAQ;AAC3D,MAAI,CAAC,OAAO;AACV,UAAM,IAAI,UAAU,8DAA8D;AAAA,EACpF;AACA,QAAM,QAAQ,MAAM,CAAC;AACrB,QAAM,OAAO,MAAM,CAAC,EAAG,QAAQ,YAAY,EAAE;AAC7C,MACE,CAAC,mDAAmD,KAAK,KAAK,KAC9D,CAAC,2BAA2B,KAAK,IAAI,KACrC,SAAS,OACT,SAAS,MACT;AACA,UAAM,IAAI,UAAU,6CAA6C;AAAA,EACnE;AACA,QAAM,WAAW,GAAG,KAAK,IAAI,IAAI;AACjC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc,sBAAsB,QAAQ;AAAA,IAC5C,UAAU,sBAAsB,QAAQ;AAAA,EAC1C;AACF;","names":[]}
|
package/dist/google-drive.d.ts
CHANGED
|
@@ -8,15 +8,19 @@ export declare const GOOGLE_DRIVE_READONLY_SCOPE: "https://www.googleapis.com/au
|
|
|
8
8
|
export declare const GOOGLE_DRIVE_CREDENTIAL_ROLE: "google_drive_metadata";
|
|
9
9
|
export declare const GOOGLE_DRIVE_CREDENTIAL_LABEL: "Google Drive read-only source sync";
|
|
10
10
|
export declare const GOOGLE_DRIVE_LEGACY_CREDENTIAL_LABEL: "Google Drive metadata browser";
|
|
11
|
+
export declare const GOOGLE_DRIVE_PUBLICATION_SERVER_ID: "google-drive-publishing";
|
|
12
|
+
export declare const GOOGLE_DRIVE_PUBLICATION_TOOL_NAME: "google_drive_publish_file";
|
|
13
|
+
export declare const GOOGLE_DRIVE_PUBLICATION_CREATE_ACTION: "create";
|
|
11
14
|
export declare const GoogleDriveOAuthCapability: z.ZodEnum<{
|
|
12
15
|
picker_file_read: "picker_file_read";
|
|
16
|
+
publish_file: "publish_file";
|
|
13
17
|
recursive_source_sync: "recursive_source_sync";
|
|
14
18
|
source_content_read: "source_content_read";
|
|
15
19
|
source_metadata_discovery: "source_metadata_discovery";
|
|
16
20
|
}>;
|
|
17
21
|
export type GoogleDriveOAuthCapability = z.infer<typeof GoogleDriveOAuthCapability>;
|
|
18
22
|
export type GoogleDriveOAuthScopeDecision = {
|
|
19
|
-
accessMode: "metadata_readonly" | "readonly" | null;
|
|
23
|
+
accessMode: "file_only" | "metadata_readonly" | "readonly" | null;
|
|
20
24
|
capabilities: GoogleDriveOAuthCapability[];
|
|
21
25
|
};
|
|
22
26
|
/**
|
|
@@ -122,6 +126,17 @@ export declare const GoogleDriveSelectedSource: z.ZodObject<{
|
|
|
122
126
|
selectedAt: z.ZodString;
|
|
123
127
|
}, z.core.$strip>;
|
|
124
128
|
export type GoogleDriveSelectedSource = z.infer<typeof GoogleDriveSelectedSource>;
|
|
129
|
+
export declare const GoogleDriveOutputDestination: z.ZodObject<{
|
|
130
|
+
folderId: z.ZodString;
|
|
131
|
+
folderName: z.ZodString;
|
|
132
|
+
driveId: z.ZodNullable<z.ZodString>;
|
|
133
|
+
location: z.ZodEnum<{
|
|
134
|
+
my_drive: "my_drive";
|
|
135
|
+
shared_drive: "shared_drive";
|
|
136
|
+
}>;
|
|
137
|
+
selectedAt: z.ZodString;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
export type GoogleDriveOutputDestination = z.infer<typeof GoogleDriveOutputDestination>;
|
|
125
140
|
export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
|
|
126
141
|
credentialRole: z.ZodLiteral<"google_drive_metadata">;
|
|
127
142
|
credentialLabel: z.ZodUnion<readonly [z.ZodLiteral<"Google Drive read-only source sync">, z.ZodLiteral<"Google Drive metadata browser">]>;
|
|
@@ -130,6 +145,7 @@ export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
|
|
|
130
145
|
googleDisplayName: z.ZodNullable<z.ZodString>;
|
|
131
146
|
verifiedAt: z.ZodString;
|
|
132
147
|
accessMode: z.ZodEnum<{
|
|
148
|
+
file_only: "file_only";
|
|
133
149
|
metadata_readonly: "metadata_readonly";
|
|
134
150
|
readonly: "readonly";
|
|
135
151
|
}>;
|
|
@@ -162,6 +178,16 @@ export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
|
|
|
162
178
|
recoverable: z.ZodLiteral<true>;
|
|
163
179
|
observedAt: z.ZodString;
|
|
164
180
|
}, z.core.$strip>], "state">>;
|
|
181
|
+
outputDestination: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
folderId: z.ZodString;
|
|
183
|
+
folderName: z.ZodString;
|
|
184
|
+
driveId: z.ZodNullable<z.ZodString>;
|
|
185
|
+
location: z.ZodEnum<{
|
|
186
|
+
my_drive: "my_drive";
|
|
187
|
+
shared_drive: "shared_drive";
|
|
188
|
+
}>;
|
|
189
|
+
selectedAt: z.ZodString;
|
|
190
|
+
}, z.core.$strict>>;
|
|
165
191
|
documentDestination: z.ZodOptional<z.ZodObject<{
|
|
166
192
|
authorityKind: z.ZodEnum<{
|
|
167
193
|
organization: "organization";
|
|
@@ -247,6 +273,10 @@ export declare const GoogleDriveConnectionMetadata: z.ZodObject<{
|
|
|
247
273
|
export type GoogleDriveConnectionMetadata = z.infer<typeof GoogleDriveConnectionMetadata>;
|
|
248
274
|
export declare const GoogleDriveOAuthStartRequest: z.ZodObject<{
|
|
249
275
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
276
|
+
capability: z.ZodDefault<z.ZodEnum<{
|
|
277
|
+
publish: "publish";
|
|
278
|
+
source_read: "source_read";
|
|
279
|
+
}>>;
|
|
250
280
|
}, z.core.$strip>;
|
|
251
281
|
export type GoogleDriveOAuthStartRequest = z.infer<typeof GoogleDriveOAuthStartRequest>;
|
|
252
282
|
export declare const GoogleDriveOAuthStartResponse: z.ZodObject<{
|
|
@@ -267,6 +297,63 @@ export declare const GoogleDriveDisconnectRequest: z.ZodObject<{
|
|
|
267
297
|
idempotencyKey: z.ZodString;
|
|
268
298
|
}, z.core.$strip>;
|
|
269
299
|
export type GoogleDriveDisconnectRequest = z.infer<typeof GoogleDriveDisconnectRequest>;
|
|
300
|
+
export declare const GoogleDrivePublicationExportFile: z.ZodObject<{
|
|
301
|
+
fileId: z.ZodString;
|
|
302
|
+
filename: z.ZodString;
|
|
303
|
+
contentType: z.ZodString;
|
|
304
|
+
sizeBytes: z.ZodNumber;
|
|
305
|
+
sha256: z.ZodString;
|
|
306
|
+
artifactId: z.ZodString;
|
|
307
|
+
versionId: z.ZodString;
|
|
308
|
+
materializationJobId: z.ZodString;
|
|
309
|
+
sourceHeadSequence: z.ZodNumber;
|
|
310
|
+
sourceStateHash: z.ZodString;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
export type GoogleDrivePublicationExportFile = z.infer<typeof GoogleDrivePublicationExportFile>;
|
|
313
|
+
export declare const GoogleDrivePublicationToolInput: z.ZodObject<{
|
|
314
|
+
title: z.ZodString;
|
|
315
|
+
modality: z.ZodEnum<{
|
|
316
|
+
document: "document";
|
|
317
|
+
presentation: "presentation";
|
|
318
|
+
spreadsheet: "spreadsheet";
|
|
319
|
+
}>;
|
|
320
|
+
file: z.ZodObject<{
|
|
321
|
+
fileId: z.ZodString;
|
|
322
|
+
filename: z.ZodString;
|
|
323
|
+
contentType: z.ZodString;
|
|
324
|
+
sizeBytes: z.ZodNumber;
|
|
325
|
+
sha256: z.ZodString;
|
|
326
|
+
artifactId: z.ZodString;
|
|
327
|
+
versionId: z.ZodString;
|
|
328
|
+
materializationJobId: z.ZodString;
|
|
329
|
+
sourceHeadSequence: z.ZodNumber;
|
|
330
|
+
sourceStateHash: z.ZodString;
|
|
331
|
+
}, z.core.$strict>;
|
|
332
|
+
idempotencyKey: z.ZodString;
|
|
333
|
+
}, z.core.$strict>;
|
|
334
|
+
export type GoogleDrivePublicationToolInput = z.infer<typeof GoogleDrivePublicationToolInput>;
|
|
335
|
+
export declare const GoogleDrivePublicationReceipt: z.ZodObject<{
|
|
336
|
+
connectionId: z.ZodString;
|
|
337
|
+
providerFileId: z.ZodString;
|
|
338
|
+
webViewLink: z.ZodString;
|
|
339
|
+
mimeType: z.ZodEnum<{
|
|
340
|
+
"application/vnd.google-apps.document": "application/vnd.google-apps.document";
|
|
341
|
+
"application/vnd.google-apps.presentation": "application/vnd.google-apps.presentation";
|
|
342
|
+
"application/vnd.google-apps.spreadsheet": "application/vnd.google-apps.spreadsheet";
|
|
343
|
+
}>;
|
|
344
|
+
destination: z.ZodObject<{
|
|
345
|
+
folderId: z.ZodString;
|
|
346
|
+
folderName: z.ZodString;
|
|
347
|
+
driveId: z.ZodNullable<z.ZodString>;
|
|
348
|
+
location: z.ZodEnum<{
|
|
349
|
+
my_drive: "my_drive";
|
|
350
|
+
shared_drive: "shared_drive";
|
|
351
|
+
}>;
|
|
352
|
+
selectedAt: z.ZodString;
|
|
353
|
+
}, z.core.$strict>;
|
|
354
|
+
replayed: z.ZodBoolean;
|
|
355
|
+
}, z.core.$strict>;
|
|
356
|
+
export type GoogleDrivePublicationReceipt = z.infer<typeof GoogleDrivePublicationReceipt>;
|
|
270
357
|
export declare const GoogleDriveBrowseItem: z.ZodObject<{
|
|
271
358
|
id: z.ZodString;
|
|
272
359
|
name: z.ZodString;
|
|
@@ -284,6 +371,8 @@ export type GoogleDriveBrowseItem = z.infer<typeof GoogleDriveBrowseItem>;
|
|
|
284
371
|
export declare const GoogleDriveBrowseResponse: z.ZodObject<{
|
|
285
372
|
connection: z.ZodLazy<z.ZodObject<{
|
|
286
373
|
id: z.ZodString;
|
|
374
|
+
authorityId: z.ZodOptional<z.ZodString>;
|
|
375
|
+
connectionAuthorityGeneration: z.ZodOptional<z.ZodNumber>;
|
|
287
376
|
accountId: z.ZodString;
|
|
288
377
|
workspaceId: z.ZodString;
|
|
289
378
|
subjectId: z.ZodNullable<z.ZodString>;
|
package/dist/google-drive.js
CHANGED
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConnectionMetadata
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X7ETVO4P.js";
|
|
4
|
+
import "./chunk-5IXYF6XN.js";
|
|
5
|
+
import "./chunk-NRMCVHAU.js";
|
|
4
6
|
import {
|
|
5
7
|
ConnectorDocumentDestination,
|
|
6
8
|
ConnectorDocumentDestinationSelection
|
|
7
9
|
} from "./chunk-WYBDERIY.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-LW7OH6CS.js";
|
|
14
|
-
import "./chunk-TZ6YEYN4.js";
|
|
10
|
+
import "./chunk-4JGHSSB7.js";
|
|
11
|
+
import "./chunk-EK7NDGFR.js";
|
|
12
|
+
import "./chunk-O77VSFYZ.js";
|
|
13
|
+
import "./chunk-NVJMJWLL.js";
|
|
14
|
+
import "./chunk-SIOU2K4U.js";
|
|
15
15
|
import "./chunk-YRKRZ6OF.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2VORLN2R.js";
|
|
17
|
+
import "./chunk-FZ6BXQHL.js";
|
|
18
|
+
import "./chunk-GRG7PHWQ.js";
|
|
19
|
+
import "./chunk-YRXAWWCU.js";
|
|
20
|
+
import "./chunk-2ACYHZFB.js";
|
|
21
|
+
import "./chunk-KHHZTBP7.js";
|
|
22
|
+
import "./chunk-YBW5JSA3.js";
|
|
23
|
+
import "./chunk-RJ76DRPO.js";
|
|
24
|
+
import "./chunk-QR5D2IQC.js";
|
|
25
|
+
import "./chunk-3SIZGL3O.js";
|
|
17
26
|
import "./chunk-RIY7GYQS.js";
|
|
18
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-JUFK3T4Q.js";
|
|
28
|
+
import "./chunk-TSCDAGET.js";
|
|
29
|
+
import "./chunk-BCS7WHCK.js";
|
|
19
30
|
import "./chunk-D2HKF2EF.js";
|
|
20
31
|
import "./chunk-MYBZRDTY.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-MZLBPKFE.js";
|
|
33
|
+
import "./chunk-RKX3NQYS.js";
|
|
34
|
+
import "./chunk-Y3KNXVTD.js";
|
|
35
|
+
import "./chunk-TXTQIYCV.js";
|
|
36
|
+
import "./chunk-PX3VCKAU.js";
|
|
23
37
|
|
|
24
38
|
// src/google-drive.ts
|
|
25
39
|
import { z } from "zod";
|
|
@@ -31,8 +45,12 @@ var GOOGLE_DRIVE_READONLY_SCOPE = "https://www.googleapis.com/auth/drive.readonl
|
|
|
31
45
|
var GOOGLE_DRIVE_CREDENTIAL_ROLE = "google_drive_metadata";
|
|
32
46
|
var GOOGLE_DRIVE_CREDENTIAL_LABEL = "Google Drive read-only source sync";
|
|
33
47
|
var GOOGLE_DRIVE_LEGACY_CREDENTIAL_LABEL = "Google Drive metadata browser";
|
|
48
|
+
var GOOGLE_DRIVE_PUBLICATION_SERVER_ID = "google-drive-publishing";
|
|
49
|
+
var GOOGLE_DRIVE_PUBLICATION_TOOL_NAME = "google_drive_publish_file";
|
|
50
|
+
var GOOGLE_DRIVE_PUBLICATION_CREATE_ACTION = "create";
|
|
34
51
|
var GoogleDriveOAuthCapability = z.enum([
|
|
35
52
|
"picker_file_read",
|
|
53
|
+
"publish_file",
|
|
36
54
|
"source_metadata_discovery",
|
|
37
55
|
"source_content_read",
|
|
38
56
|
"recursive_source_sync"
|
|
@@ -41,16 +59,18 @@ function googleDriveOAuthScopeDecision(grantedScopes) {
|
|
|
41
59
|
const granted = new Set(grantedScopes);
|
|
42
60
|
const hasFullDrive = granted.has(GOOGLE_DRIVE_FULL_SCOPE);
|
|
43
61
|
const hasSourceContentRead = hasFullDrive || granted.has(GOOGLE_DRIVE_READONLY_SCOPE);
|
|
62
|
+
const hasFileWrite = hasFullDrive || granted.has(GOOGLE_DRIVE_FILE_SCOPE);
|
|
44
63
|
const hasSourceMetadataDiscovery = hasSourceContentRead || granted.has(GOOGLE_DRIVE_METADATA_READONLY_SCOPE);
|
|
45
|
-
const hasPickerFileRead = hasSourceContentRead ||
|
|
64
|
+
const hasPickerFileRead = hasSourceContentRead || hasFileWrite;
|
|
46
65
|
const capabilities = [];
|
|
47
66
|
if (hasPickerFileRead) capabilities.push("picker_file_read");
|
|
67
|
+
if (hasFileWrite) capabilities.push("publish_file");
|
|
48
68
|
if (hasSourceMetadataDiscovery) capabilities.push("source_metadata_discovery");
|
|
49
69
|
if (hasSourceContentRead) {
|
|
50
70
|
capabilities.push("source_content_read", "recursive_source_sync");
|
|
51
71
|
}
|
|
52
72
|
return {
|
|
53
|
-
accessMode: hasSourceContentRead ? "readonly" : hasSourceMetadataDiscovery ? "metadata_readonly" : null,
|
|
73
|
+
accessMode: hasSourceContentRead ? "readonly" : hasSourceMetadataDiscovery ? "metadata_readonly" : hasFileWrite ? "file_only" : null,
|
|
54
74
|
capabilities
|
|
55
75
|
};
|
|
56
76
|
}
|
|
@@ -121,6 +141,21 @@ var GoogleDriveSelectedSource = z.object({
|
|
|
121
141
|
readPolicy: GoogleDriveReadPolicy.default("allow"),
|
|
122
142
|
selectedAt: z.string().datetime({ offset: true })
|
|
123
143
|
});
|
|
144
|
+
var GoogleDriveOutputDestination = z.object({
|
|
145
|
+
folderId: z.string().min(1).max(256),
|
|
146
|
+
folderName: z.string().min(1).max(1024),
|
|
147
|
+
driveId: z.string().min(1).max(256).nullable(),
|
|
148
|
+
location: z.enum(["my_drive", "shared_drive"]),
|
|
149
|
+
selectedAt: z.string().datetime({ offset: true })
|
|
150
|
+
}).strict().superRefine((value, context) => {
|
|
151
|
+
if (value.location === "my_drive" !== (value.driveId === null)) {
|
|
152
|
+
context.addIssue({
|
|
153
|
+
code: "custom",
|
|
154
|
+
path: ["driveId"],
|
|
155
|
+
message: "Google Drive destination location does not match its drive identity"
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
});
|
|
124
159
|
var GoogleDriveConnectionMetadata = z.object({
|
|
125
160
|
credentialRole: z.literal(GOOGLE_DRIVE_CREDENTIAL_ROLE),
|
|
126
161
|
credentialLabel: z.union([
|
|
@@ -131,15 +166,17 @@ var GoogleDriveConnectionMetadata = z.object({
|
|
|
131
166
|
googleEmail: z.string().email().max(320),
|
|
132
167
|
googleDisplayName: z.string().min(1).max(512).nullable(),
|
|
133
168
|
verifiedAt: z.string().datetime({ offset: true }),
|
|
134
|
-
accessMode: z.enum(["metadata_readonly", "readonly"]),
|
|
169
|
+
accessMode: z.enum(["file_only", "metadata_readonly", "readonly"]),
|
|
135
170
|
lifecycle: GoogleDriveConnectionLifecycle.optional(),
|
|
171
|
+
outputDestination: GoogleDriveOutputDestination.optional(),
|
|
136
172
|
documentDestination: ConnectorDocumentDestination.optional(),
|
|
137
173
|
selectedSources: z.array(GoogleDriveSelectedSource).max(100).optional(),
|
|
138
174
|
/** @deprecated Read `selectedSources`; retained while existing connections migrate. */
|
|
139
175
|
selectedSource: GoogleDriveSelectedSource.nullable().optional()
|
|
140
176
|
}).passthrough();
|
|
141
177
|
var GoogleDriveOAuthStartRequest = z.object({
|
|
142
|
-
connectionId: z.string().uuid().optional()
|
|
178
|
+
connectionId: z.string().uuid().optional(),
|
|
179
|
+
capability: z.enum(["source_read", "publish"]).default("source_read")
|
|
143
180
|
});
|
|
144
181
|
var GoogleDriveOAuthStartResponse = z.object({
|
|
145
182
|
authorizationUrl: z.string().url(),
|
|
@@ -153,6 +190,36 @@ var GoogleDriveDisconnectRequest = z.object({
|
|
|
153
190
|
expectedVersion: z.number().int().positive(),
|
|
154
191
|
idempotencyKey: z.string().trim().min(1).max(200)
|
|
155
192
|
});
|
|
193
|
+
var GoogleDrivePublicationExportFile = z.object({
|
|
194
|
+
fileId: z.string().uuid(),
|
|
195
|
+
filename: z.string().trim().min(1).max(512),
|
|
196
|
+
contentType: z.string().trim().min(1).max(256),
|
|
197
|
+
sizeBytes: z.number().int().positive(),
|
|
198
|
+
sha256: z.string().regex(/^[0-9a-f]{64}$/u),
|
|
199
|
+
artifactId: z.string().regex(/^[0-9a-f]{32}$/u),
|
|
200
|
+
versionId: z.string().regex(/^[0-9a-f]{32}$/u),
|
|
201
|
+
materializationJobId: z.string().regex(/^[0-9a-f]{32}$/u),
|
|
202
|
+
sourceHeadSequence: z.number().int().nonnegative(),
|
|
203
|
+
sourceStateHash: z.string().regex(/^sha256:[0-9a-f]{64}$/u)
|
|
204
|
+
}).strict();
|
|
205
|
+
var GoogleDrivePublicationToolInput = z.object({
|
|
206
|
+
title: z.string().trim().min(1).max(512),
|
|
207
|
+
modality: z.enum(["document", "spreadsheet", "presentation"]),
|
|
208
|
+
file: GoogleDrivePublicationExportFile,
|
|
209
|
+
idempotencyKey: z.string().trim().min(1).max(200)
|
|
210
|
+
}).strict();
|
|
211
|
+
var GoogleDrivePublicationReceipt = z.object({
|
|
212
|
+
connectionId: z.string().uuid(),
|
|
213
|
+
providerFileId: z.string().min(1).max(256),
|
|
214
|
+
webViewLink: z.string().url(),
|
|
215
|
+
mimeType: z.enum([
|
|
216
|
+
"application/vnd.google-apps.document",
|
|
217
|
+
"application/vnd.google-apps.spreadsheet",
|
|
218
|
+
"application/vnd.google-apps.presentation"
|
|
219
|
+
]),
|
|
220
|
+
destination: GoogleDriveOutputDestination,
|
|
221
|
+
replayed: z.boolean()
|
|
222
|
+
}).strict();
|
|
156
223
|
var GoogleDriveBrowseItem = z.object({
|
|
157
224
|
id: z.string().min(1).max(256),
|
|
158
225
|
name: z.string().min(1).max(1024),
|
|
@@ -231,6 +298,9 @@ export {
|
|
|
231
298
|
GOOGLE_DRIVE_LEGACY_CREDENTIAL_LABEL,
|
|
232
299
|
GOOGLE_DRIVE_METADATA_READONLY_SCOPE,
|
|
233
300
|
GOOGLE_DRIVE_PROVIDER_DOMAIN,
|
|
301
|
+
GOOGLE_DRIVE_PUBLICATION_CREATE_ACTION,
|
|
302
|
+
GOOGLE_DRIVE_PUBLICATION_SERVER_ID,
|
|
303
|
+
GOOGLE_DRIVE_PUBLICATION_TOOL_NAME,
|
|
234
304
|
GOOGLE_DRIVE_READONLY_SCOPE,
|
|
235
305
|
GoogleDriveBrowseItem,
|
|
236
306
|
GoogleDriveBrowseResponse,
|
|
@@ -245,6 +315,10 @@ export {
|
|
|
245
315
|
GoogleDriveOAuthCapability,
|
|
246
316
|
GoogleDriveOAuthStartRequest,
|
|
247
317
|
GoogleDriveOAuthStartResponse,
|
|
318
|
+
GoogleDriveOutputDestination,
|
|
319
|
+
GoogleDrivePublicationExportFile,
|
|
320
|
+
GoogleDrivePublicationReceipt,
|
|
321
|
+
GoogleDrivePublicationToolInput,
|
|
248
322
|
GoogleDriveReadPolicy,
|
|
249
323
|
GoogleDriveSelectedSource,
|
|
250
324
|
GoogleDriveSyncCadence,
|