@beeuni/sdk 0.1.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/README.md +1234 -0
- package/dist/beeuni.esm.min.js +96 -0
- package/dist/beeuni.global.js +96 -0
- package/dist/browser/cache/idb-sync-cache.d.ts +12 -0
- package/dist/browser/cache/idb-sync-cache.js +88 -0
- package/dist/browser/session-sync/mirror-paging.d.ts +7 -0
- package/dist/browser/session-sync/mirror-paging.js +10 -0
- package/dist/browser/session-sync/server-transcript-mirror.d.ts +33 -0
- package/dist/browser/session-sync/server-transcript-mirror.js +112 -0
- package/dist/browser/session-sync/session-cache-ownership.d.ts +8 -0
- package/dist/browser/session-sync/session-cache-ownership.js +36 -0
- package/dist/browser/session-sync/session-sync-registry.d.ts +44 -0
- package/dist/browser/session-sync/session-sync-registry.js +253 -0
- package/dist/browser/session-sync/visibility.d.ts +6 -0
- package/dist/browser/session-sync/visibility.js +21 -0
- package/dist/browser/stores/diagnostics-store.d.ts +61 -0
- package/dist/browser/stores/diagnostics-store.js +216 -0
- package/dist/browser/stores/opencode-compaction-store.d.ts +7 -0
- package/dist/browser/stores/opencode-compaction-store.js +21 -0
- package/dist/browser/stores/opencode-pending-store.d.ts +19 -0
- package/dist/browser/stores/opencode-pending-store.js +65 -0
- package/dist/browser/stores/sandbox-connection-store.d.ts +35 -0
- package/dist/browser/stores/sandbox-connection-store.js +230 -0
- package/dist/browser/stores/server-store.d.ts +4 -0
- package/dist/browser/stores/server-store.js +7 -0
- package/dist/browser/stores/session-working-store.d.ts +21 -0
- package/dist/browser/stores/session-working-store.js +106 -0
- package/dist/browser/stores/sync-store/ascending-id.d.ts +1 -0
- package/dist/browser/stores/sync-store/ascending-id.js +17 -0
- package/dist/browser/stores/sync-store/binary.d.ts +6 -0
- package/dist/browser/stores/sync-store/binary.js +17 -0
- package/dist/browser/stores/sync-store/delta-event-window.d.ts +1 -0
- package/dist/browser/stores/sync-store/delta-event-window.js +1 -0
- package/dist/browser/stores/sync-store/reconcile-parts.d.ts +12 -0
- package/dist/browser/stores/sync-store/reconcile-parts.js +53 -0
- package/dist/browser/stores/sync-store/types.d.ts +20 -0
- package/dist/browser/stores/sync-store/types.js +1 -0
- package/dist/browser/stores/sync-store.d.ts +65 -0
- package/dist/browser/stores/sync-store.js +1336 -0
- package/dist/core/agents/composer-agents.d.ts +19 -0
- package/dist/core/agents/composer-agents.js +57 -0
- package/dist/core/attachments/limits.d.ts +3 -0
- package/dist/core/attachments/limits.js +3 -0
- package/dist/core/attachments/prompt-attachments.d.ts +37 -0
- package/dist/core/attachments/prompt-attachments.js +377 -0
- package/dist/core/auth/app-viewer.d.ts +43 -0
- package/dist/core/auth/app-viewer.js +104 -0
- package/dist/core/auth/beeuni-member.d.ts +31 -0
- package/dist/core/auth/beeuni-member.js +168 -0
- package/dist/core/auth/session.d.ts +24 -0
- package/dist/core/auth/session.js +145 -0
- package/dist/core/cache/persisted-query-cache.d.ts +55 -0
- package/dist/core/cache/persisted-query-cache.js +220 -0
- package/dist/core/client/beeuni.d.ts +1216 -0
- package/dist/core/client/beeuni.js +96 -0
- package/dist/core/client/binding-types.d.ts +1 -0
- package/dist/core/client/binding-types.js +1 -0
- package/dist/core/client/facade-accounts.d.ts +51 -0
- package/dist/core/client/facade-accounts.js +53 -0
- package/dist/core/client/facade-catalog.d.ts +54 -0
- package/dist/core/client/facade-catalog.js +53 -0
- package/dist/core/client/facade-commerce.d.ts +39 -0
- package/dist/core/client/facade-commerce.js +40 -0
- package/dist/core/client/facade-iam.d.ts +43 -0
- package/dist/core/client/facade-iam.js +45 -0
- package/dist/core/client/facade-identity.d.ts +103 -0
- package/dist/core/client/facade-identity.js +33 -0
- package/dist/core/client/facade-preview.d.ts +3 -0
- package/dist/core/client/facade-preview.js +30 -0
- package/dist/core/client/project-access-resources.d.ts +65 -0
- package/dist/core/client/project-access-resources.js +54 -0
- package/dist/core/client/project-access-security.d.ts +109 -0
- package/dist/core/client/project-access-security.js +33 -0
- package/dist/core/client/project-connections.d.ts +32 -0
- package/dist/core/client/project-connections.js +18 -0
- package/dist/core/client/project-connectors.d.ts +15 -0
- package/dist/core/client/project-connectors.js +34 -0
- package/dist/core/client/project-core.d.ts +74 -0
- package/dist/core/client/project-core.js +25 -0
- package/dist/core/client/project-membership.d.ts +62 -0
- package/dist/core/client/project-membership.js +24 -0
- package/dist/core/client/project-operations-admin.d.ts +125 -0
- package/dist/core/client/project-operations-admin.js +26 -0
- package/dist/core/client/project-operations-review.d.ts +35 -0
- package/dist/core/client/project-operations-review.js +24 -0
- package/dist/core/client/project-operations-workspace.d.ts +94 -0
- package/dist/core/client/project-operations-workspace.js +36 -0
- package/dist/core/client/project-operations.d.ts +237 -0
- package/dist/core/client/project-operations.js +41 -0
- package/dist/core/client/project-platform-resources.d.ts +34 -0
- package/dist/core/client/project-platform-resources.js +27 -0
- package/dist/core/client/project-platform-security.d.ts +76 -0
- package/dist/core/client/project-platform-security.js +31 -0
- package/dist/core/client/project-platform-settings.d.ts +53 -0
- package/dist/core/client/project-platform-settings.js +23 -0
- package/dist/core/client/session-actions-resources.d.ts +7 -0
- package/dist/core/client/session-actions-resources.js +13 -0
- package/dist/core/client/session-actions-security.d.ts +22 -0
- package/dist/core/client/session-actions-security.js +38 -0
- package/dist/core/client/session-actions-services.d.ts +39 -0
- package/dist/core/client/session-actions-services.js +34 -0
- package/dist/core/client/session-context.d.ts +21 -0
- package/dist/core/client/session-context.js +1 -0
- package/dist/core/client/session-defaults.d.ts +8 -0
- package/dist/core/client/session-defaults.js +35 -0
- package/dist/core/client/session-files.d.ts +20 -0
- package/dist/core/client/session-files.js +18 -0
- package/dist/core/client/session-handle.d.ts +207 -0
- package/dist/core/client/session-handle.js +53 -0
- package/dist/core/client/session-lifecycle-resources.d.ts +76 -0
- package/dist/core/client/session-lifecycle-resources.js +44 -0
- package/dist/core/client/session-lifecycle-security.d.ts +42 -0
- package/dist/core/client/session-lifecycle-security.js +31 -0
- package/dist/core/client/session-preview.d.ts +7 -0
- package/dist/core/client/session-preview.js +11 -0
- package/dist/core/client/session-readiness.d.ts +10 -0
- package/dist/core/client/session-readiness.js +54 -0
- package/dist/core/client/session-runtime.d.ts +21 -0
- package/dist/core/client/session-runtime.js +15 -0
- package/dist/core/client/session-shared.d.ts +20 -0
- package/dist/core/client/session-shared.js +22 -0
- package/dist/core/client/session-start.d.ts +2 -0
- package/dist/core/client/session-start.js +39 -0
- package/dist/core/files/client.d.ts +68 -0
- package/dist/core/files/client.js +491 -0
- package/dist/core/files/types.d.ts +75 -0
- package/dist/core/files/types.js +1 -0
- package/dist/core/http/abort-error.d.ts +5 -0
- package/dist/core/http/abort-error.js +74 -0
- package/dist/core/http/abort.d.ts +3 -0
- package/dist/core/http/abort.js +34 -0
- package/dist/core/http/api/errors.d.ts +68 -0
- package/dist/core/http/api/errors.js +132 -0
- package/dist/core/http/api-client.d.ts +44 -0
- package/dist/core/http/api-client.js +121 -0
- package/dist/core/http/auth.d.ts +12 -0
- package/dist/core/http/auth.js +37 -0
- package/dist/core/http/authenticated-request.d.ts +5 -0
- package/dist/core/http/authenticated-request.js +11 -0
- package/dist/core/http/config.d.ts +35 -0
- package/dist/core/http/config.js +23 -0
- package/dist/core/http/env.d.ts +1 -0
- package/dist/core/http/env.js +8 -0
- package/dist/core/http/feature-flags.d.ts +8 -0
- package/dist/core/http/feature-flags.js +41 -0
- package/dist/core/http/fresh-sessions.d.ts +3 -0
- package/dist/core/http/fresh-sessions.js +17 -0
- package/dist/core/http/impersonation.d.ts +14 -0
- package/dist/core/http/impersonation.js +110 -0
- package/dist/core/http/instance-routes.d.ts +16 -0
- package/dist/core/http/instance-routes.js +99 -0
- package/dist/core/http/logger.d.ts +10 -0
- package/dist/core/http/logger.js +29 -0
- package/dist/core/http/request.d.ts +2 -0
- package/dist/core/http/request.js +194 -0
- package/dist/core/http/response-error.d.ts +2 -0
- package/dist/core/http/response-error.js +92 -0
- package/dist/core/http/runtime-errors.d.ts +32 -0
- package/dist/core/http/runtime-errors.js +116 -0
- package/dist/core/http/session-stopped.d.ts +2 -0
- package/dist/core/http/session-stopped.js +16 -0
- package/dist/core/http/transport.d.ts +20 -0
- package/dist/core/http/transport.js +133 -0
- package/dist/core/models/bedrock-invokable.d.ts +3 -0
- package/dist/core/models/bedrock-invokable.js +22 -0
- package/dist/core/models/composer-model.d.ts +20 -0
- package/dist/core/models/composer-model.js +57 -0
- package/dist/core/models/model-flatten.d.ts +43 -0
- package/dist/core/models/model-flatten.js +73 -0
- package/dist/core/models/model-key.d.ts +8 -0
- package/dist/core/models/model-key.js +18 -0
- package/dist/core/models/model-lookup.d.ts +2 -0
- package/dist/core/models/model-lookup.js +3 -0
- package/dist/core/models/model-visibility.d.ts +28 -0
- package/dist/core/models/model-visibility.js +110 -0
- package/dist/core/models/provider-selection.d.ts +72 -0
- package/dist/core/models/provider-selection.js +307 -0
- package/dist/core/rest/platform-client/auth.d.ts +139 -0
- package/dist/core/rest/platform-client/auth.js +92 -0
- package/dist/core/rest/platform-client/backups.d.ts +18 -0
- package/dist/core/rest/platform-client/backups.js +12 -0
- package/dist/core/rest/platform-client/connector-setup.d.ts +35 -0
- package/dist/core/rest/platform-client/connector-setup.js +105 -0
- package/dist/core/rest/platform-client/github-app.d.ts +45 -0
- package/dist/core/rest/platform-client/github-app.js +54 -0
- package/dist/core/rest/platform-client/host-boundary.d.ts +140 -0
- package/dist/core/rest/platform-client/host-boundary.js +188 -0
- package/dist/core/rest/platform-client/index.d.ts +12 -0
- package/dist/core/rest/platform-client/index.js +12 -0
- package/dist/core/rest/platform-client/instance-admin.d.ts +53 -0
- package/dist/core/rest/platform-client/instance-admin.js +20 -0
- package/dist/core/rest/platform-client/invites.d.ts +31 -0
- package/dist/core/rest/platform-client/invites.js +11 -0
- package/dist/core/rest/platform-client/lifecycle.d.ts +27 -0
- package/dist/core/rest/platform-client/lifecycle.js +80 -0
- package/dist/core/rest/platform-client/members.d.ts +14 -0
- package/dist/core/rest/platform-client/members.js +28 -0
- package/dist/core/rest/platform-client/shared.d.ts +18 -0
- package/dist/core/rest/platform-client/shared.js +99 -0
- package/dist/core/rest/platform-client/ssh.d.ts +21 -0
- package/dist/core/rest/platform-client/ssh.js +6 -0
- package/dist/core/rest/platform-client/types.d.ts +47 -0
- package/dist/core/rest/platform-client/types.js +10 -0
- package/dist/core/rest/platform-client/updates.d.ts +77 -0
- package/dist/core/rest/platform-client/updates.js +54 -0
- package/dist/core/rest/platform-client/urls.d.ts +3 -0
- package/dist/core/rest/platform-client/urls.js +16 -0
- package/dist/core/rest/projects-client/access.d.ts +226 -0
- package/dist/core/rest/projects-client/access.js +82 -0
- package/dist/core/rest/projects-client/account-lifecycle.d.ts +21 -0
- package/dist/core/rest/projects-client/account-lifecycle.js +25 -0
- package/dist/core/rest/projects-client/account-secret-resources.d.ts +60 -0
- package/dist/core/rest/projects-client/account-secret-resources.js +40 -0
- package/dist/core/rest/projects-client/accounts.d.ts +240 -0
- package/dist/core/rest/projects-client/accounts.js +82 -0
- package/dist/core/rest/projects-client/admin-providers.d.ts +131 -0
- package/dist/core/rest/projects-client/admin-providers.js +39 -0
- package/dist/core/rest/projects-client/agent-config.d.ts +72 -0
- package/dist/core/rest/projects-client/agent-config.js +39 -0
- package/dist/core/rest/projects-client/agent-connectors.d.ts +6 -0
- package/dist/core/rest/projects-client/agent-connectors.js +32 -0
- package/dist/core/rest/projects-client/agent-scope.d.ts +13 -0
- package/dist/core/rest/projects-client/agent-scope.js +7 -0
- package/dist/core/rest/projects-client/apps-fleet.d.ts +82 -0
- package/dist/core/rest/projects-client/apps-fleet.js +45 -0
- package/dist/core/rest/projects-client/apps.d.ts +356 -0
- package/dist/core/rest/projects-client/apps.js +126 -0
- package/dist/core/rest/projects-client/assignments.d.ts +73 -0
- package/dist/core/rest/projects-client/assignments.js +45 -0
- package/dist/core/rest/projects-client/audit-filter.d.ts +4 -0
- package/dist/core/rest/projects-client/audit-filter.js +9 -0
- package/dist/core/rest/projects-client/audit.d.ts +125 -0
- package/dist/core/rest/projects-client/audit.js +49 -0
- package/dist/core/rest/projects-client/billing.d.ts +390 -0
- package/dist/core/rest/projects-client/billing.js +257 -0
- package/dist/core/rest/projects-client/change-requests.d.ts +116 -0
- package/dist/core/rest/projects-client/change-requests.js +50 -0
- package/dist/core/rest/projects-client/channels.d.ts +131 -0
- package/dist/core/rest/projects-client/channels.js +112 -0
- package/dist/core/rest/projects-client/connector-run.d.ts +62 -0
- package/dist/core/rest/projects-client/connector-run.js +155 -0
- package/dist/core/rest/projects-client/connectors.d.ts +721 -0
- package/dist/core/rest/projects-client/connectors.js +421 -0
- package/dist/core/rest/projects-client/drives.d.ts +149 -0
- package/dist/core/rest/projects-client/drives.js +88 -0
- package/dist/core/rest/projects-client/files.d.ts +45 -0
- package/dist/core/rest/projects-client/files.js +69 -0
- package/dist/core/rest/projects-client/gateway.d.ts +257 -0
- package/dist/core/rest/projects-client/gateway.js +72 -0
- package/dist/core/rest/projects-client/git-backend.d.ts +15 -0
- package/dist/core/rest/projects-client/git-backend.js +15 -0
- package/dist/core/rest/projects-client/git-history.d.ts +78 -0
- package/dist/core/rest/projects-client/git-history.js +47 -0
- package/dist/core/rest/projects-client/github.d.ts +128 -0
- package/dist/core/rest/projects-client/github.js +54 -0
- package/dist/core/rest/projects-client/iam-audit.d.ts +81 -0
- package/dist/core/rest/projects-client/iam-audit.js +21 -0
- package/dist/core/rest/projects-client/iam-enterprise.d.ts +2 -0
- package/dist/core/rest/projects-client/iam-enterprise.js +11 -0
- package/dist/core/rest/projects-client/iam-grants.d.ts +21 -0
- package/dist/core/rest/projects-client/iam-grants.js +6 -0
- package/dist/core/rest/projects-client/iam-groups.d.ts +65 -0
- package/dist/core/rest/projects-client/iam-groups.js +42 -0
- package/dist/core/rest/projects-client/iam-policies.d.ts +53 -0
- package/dist/core/rest/projects-client/iam-policies.js +26 -0
- package/dist/core/rest/projects-client/iam-probe.d.ts +27 -0
- package/dist/core/rest/projects-client/iam-probe.js +16 -0
- package/dist/core/rest/projects-client/iam-query.d.ts +1 -0
- package/dist/core/rest/projects-client/iam-query.js +9 -0
- package/dist/core/rest/projects-client/iam-roles.d.ts +47 -0
- package/dist/core/rest/projects-client/iam-roles.js +43 -0
- package/dist/core/rest/projects-client/iam-scim.d.ts +22 -0
- package/dist/core/rest/projects-client/iam-scim.js +14 -0
- package/dist/core/rest/projects-client/iam-security.d.ts +28 -0
- package/dist/core/rest/projects-client/iam-security.js +17 -0
- package/dist/core/rest/projects-client/iam-service-accounts.d.ts +26 -0
- package/dist/core/rest/projects-client/iam-service-accounts.js +14 -0
- package/dist/core/rest/projects-client/iam-sessions.d.ts +27 -0
- package/dist/core/rest/projects-client/iam-sessions.js +25 -0
- package/dist/core/rest/projects-client/iam-shared.d.ts +6 -0
- package/dist/core/rest/projects-client/iam-shared.js +8 -0
- package/dist/core/rest/projects-client/iam-sso.d.ts +60 -0
- package/dist/core/rest/projects-client/iam-sso.js +28 -0
- package/dist/core/rest/projects-client/iam-types.d.ts +52 -0
- package/dist/core/rest/projects-client/iam-types.js +1 -0
- package/dist/core/rest/projects-client/iam.d.ts +13 -0
- package/dist/core/rest/projects-client/iam.js +13 -0
- package/dist/core/rest/projects-client/index.d.ts +55 -0
- package/dist/core/rest/projects-client/index.js +54 -0
- package/dist/core/rest/projects-client/marketplace-catalog.d.ts +74 -0
- package/dist/core/rest/projects-client/marketplace-catalog.js +41 -0
- package/dist/core/rest/projects-client/model-access.d.ts +13 -0
- package/dist/core/rest/projects-client/model-access.js +8 -0
- package/dist/core/rest/projects-client/model-defaults.d.ts +28 -0
- package/dist/core/rest/projects-client/model-defaults.js +15 -0
- package/dist/core/rest/projects-client/model-enablement.d.ts +4 -0
- package/dist/core/rest/projects-client/model-enablement.js +5 -0
- package/dist/core/rest/projects-client/notifications.d.ts +95 -0
- package/dist/core/rest/projects-client/notifications.js +61 -0
- package/dist/core/rest/projects-client/oauth-clients.d.ts +41 -0
- package/dist/core/rest/projects-client/oauth-clients.js +24 -0
- package/dist/core/rest/projects-client/policies.d.ts +26 -0
- package/dist/core/rest/projects-client/policies.js +8 -0
- package/dist/core/rest/projects-client/presentations.d.ts +11 -0
- package/dist/core/rest/projects-client/presentations.js +8 -0
- package/dist/core/rest/projects-client/project-agents.d.ts +10 -0
- package/dist/core/rest/projects-client/project-agents.js +22 -0
- package/dist/core/rest/projects-client/projects.d.ts +376 -0
- package/dist/core/rest/projects-client/projects.js +237 -0
- package/dist/core/rest/projects-client/prompt-attachments.d.ts +31 -0
- package/dist/core/rest/projects-client/prompt-attachments.js +294 -0
- package/dist/core/rest/projects-client/provider-connections.d.ts +54 -0
- package/dist/core/rest/projects-client/provider-connections.js +28 -0
- package/dist/core/rest/projects-client/public-session-shares.d.ts +49 -0
- package/dist/core/rest/projects-client/public-session-shares.js +35 -0
- package/dist/core/rest/projects-client/referrals.d.ts +52 -0
- package/dist/core/rest/projects-client/referrals.js +19 -0
- package/dist/core/rest/projects-client/review-items.d.ts +139 -0
- package/dist/core/rest/projects-client/review-items.js +217 -0
- package/dist/core/rest/projects-client/review.d.ts +56 -0
- package/dist/core/rest/projects-client/review.js +23 -0
- package/dist/core/rest/projects-client/sandbox-shares.d.ts +21 -0
- package/dist/core/rest/projects-client/sandbox-shares.js +19 -0
- package/dist/core/rest/projects-client/sandbox.d.ts +144 -0
- package/dist/core/rest/projects-client/sandbox.js +35 -0
- package/dist/core/rest/projects-client/secrets.d.ts +187 -0
- package/dist/core/rest/projects-client/secrets.js +79 -0
- package/dist/core/rest/projects-client/session-attachments.d.ts +22 -0
- package/dist/core/rest/projects-client/session-attachments.js +166 -0
- package/dist/core/rest/projects-client/session-costs.d.ts +193 -0
- package/dist/core/rest/projects-client/session-costs.js +87 -0
- package/dist/core/rest/projects-client/session-prompt-actions.d.ts +10 -0
- package/dist/core/rest/projects-client/session-prompt-actions.js +4 -0
- package/dist/core/rest/projects-client/session-reminders.d.ts +58 -0
- package/dist/core/rest/projects-client/session-reminders.js +50 -0
- package/dist/core/rest/projects-client/session-sandbox.d.ts +85 -0
- package/dist/core/rest/projects-client/session-sandbox.js +113 -0
- package/dist/core/rest/projects-client/sessions.d.ts +670 -0
- package/dist/core/rest/projects-client/sessions.js +321 -0
- package/dist/core/rest/projects-client/setup-links.d.ts +54 -0
- package/dist/core/rest/projects-client/setup-links.js +22 -0
- package/dist/core/rest/projects-client/shared.d.ts +51 -0
- package/dist/core/rest/projects-client/shared.js +29 -0
- package/dist/core/rest/projects-client/skills.d.ts +11 -0
- package/dist/core/rest/projects-client/skills.js +8 -0
- package/dist/core/rest/projects-client/starter-suggestions.d.ts +17 -0
- package/dist/core/rest/projects-client/starter-suggestions.js +5 -0
- package/dist/core/rest/projects-client/templates.d.ts +47 -0
- package/dist/core/rest/projects-client/templates.js +7 -0
- package/dist/core/rest/projects-client/tokens.d.ts +94 -0
- package/dist/core/rest/projects-client/tokens.js +46 -0
- package/dist/core/rest/projects-client/triggers.d.ts +175 -0
- package/dist/core/rest/projects-client/triggers.js +29 -0
- package/dist/core/runtime/attachment-part.d.ts +3 -0
- package/dist/core/runtime/attachment-part.js +18 -0
- package/dist/core/runtime/beeuni-master.d.ts +477 -0
- package/dist/core/runtime/beeuni-master.js +264 -0
- package/dist/core/runtime/client.d.ts +30 -0
- package/dist/core/runtime/client.js +124 -0
- package/dist/core/runtime/env.d.ts +8 -0
- package/dist/core/runtime/env.js +42 -0
- package/dist/core/runtime/pty.d.ts +43 -0
- package/dist/core/runtime/pty.js +117 -0
- package/dist/core/runtime/runtime-rest-client.d.ts +414 -0
- package/dist/core/runtime/runtime-rest-client.js +296 -0
- package/dist/core/runtime/runtime-types.d.ts +1094 -0
- package/dist/core/runtime/runtime-types.js +1 -0
- package/dist/core/runtime/transcript-types.d.ts +507 -0
- package/dist/core/runtime/transcript-types.js +31 -0
- package/dist/core/runtime/triggers.d.ts +1 -0
- package/dist/core/runtime/triggers.js +18 -0
- package/dist/core/session/compaction.d.ts +10 -0
- package/dist/core/session/compaction.js +22 -0
- package/dist/core/session/connection.d.ts +20 -0
- package/dist/core/session/connection.js +52 -0
- package/dist/core/session/control-stream.d.ts +62 -0
- package/dist/core/session/control-stream.js +329 -0
- package/dist/core/session/current-runtime.d.ts +14 -0
- package/dist/core/session/current-runtime.js +34 -0
- package/dist/core/session/health.d.ts +41 -0
- package/dist/core/session/health.js +53 -0
- package/dist/core/session/host-signals.d.ts +3 -0
- package/dist/core/session/host-signals.js +16 -0
- package/dist/core/session/index.d.ts +15 -0
- package/dist/core/session/index.js +14 -0
- package/dist/core/session/message-queue.d.ts +43 -0
- package/dist/core/session/message-queue.js +101 -0
- package/dist/core/session/open-bundle.d.ts +24 -0
- package/dist/core/session/open-bundle.js +135 -0
- package/dist/core/session/poll-owner.d.ts +5 -0
- package/dist/core/session/poll-owner.js +58 -0
- package/dist/core/session/presentation.d.ts +11 -0
- package/dist/core/session/presentation.js +70 -0
- package/dist/core/session/preview-auth.d.ts +6 -0
- package/dist/core/session/preview-auth.js +36 -0
- package/dist/core/session/preview-config.d.ts +5 -0
- package/dist/core/session/preview-config.js +54 -0
- package/dist/core/session/preview-options.d.ts +9 -0
- package/dist/core/session/preview-options.js +12 -0
- package/dist/core/session/preview-origin-trust.d.ts +7 -0
- package/dist/core/session/preview-origin-trust.js +64 -0
- package/dist/core/session/preview-probe.d.ts +7 -0
- package/dist/core/session/preview-probe.js +36 -0
- package/dist/core/session/preview.d.ts +3 -0
- package/dist/core/session/preview.js +66 -0
- package/dist/core/session/project-session-read.d.ts +5 -0
- package/dist/core/session/project-session-read.js +12 -0
- package/dist/core/session/rewind.d.ts +29 -0
- package/dist/core/session/rewind.js +53 -0
- package/dist/core/session/runtime-gone.d.ts +5 -0
- package/dist/core/session/runtime-gone.js +14 -0
- package/dist/core/session/runtime-sessions.d.ts +7 -0
- package/dist/core/session/runtime-sessions.js +26 -0
- package/dist/core/session/runtime-verbs.d.ts +34 -0
- package/dist/core/session/runtime-verbs.js +94 -0
- package/dist/core/session/server-store/active.d.ts +7 -0
- package/dist/core/session/server-store/active.js +35 -0
- package/dist/core/session/server-store/types.d.ts +4 -0
- package/dist/core/session/server-store/types.js +1 -0
- package/dist/core/session/server-store/url-helpers.d.ts +5 -0
- package/dist/core/session/server-store/url-helpers.js +25 -0
- package/dist/core/session/session-runtime-registry.d.ts +9 -0
- package/dist/core/session/session-runtime-registry.js +28 -0
- package/dist/core/session/single-flight.d.ts +3 -0
- package/dist/core/session/single-flight.js +22 -0
- package/dist/core/session/static-file-preview.d.ts +10 -0
- package/dist/core/session/static-file-preview.js +34 -0
- package/dist/core/session/status-vocabulary.d.ts +23 -0
- package/dist/core/session/status-vocabulary.js +59 -0
- package/dist/core/session/turn-end-cause.d.ts +22 -0
- package/dist/core/session/turn-end-cause.js +41 -0
- package/dist/core/session/turn-end-settle.d.ts +1 -0
- package/dist/core/session/turn-end-settle.js +1 -0
- package/dist/core/session/url.d.ts +49 -0
- package/dist/core/session/url.js +415 -0
- package/dist/core/session/wake-escalation.d.ts +37 -0
- package/dist/core/session/wake-escalation.js +104 -0
- package/dist/core/session/wire-id-unwrap.d.ts +2 -0
- package/dist/core/session/wire-id-unwrap.js +15 -0
- package/dist/core/session/wire-message-id.d.ts +27 -0
- package/dist/core/session/wire-message-id.js +88 -0
- package/dist/core/session/working-evidence.d.ts +13 -0
- package/dist/core/session/working-evidence.js +25 -0
- package/dist/core/session/working-project.d.ts +2 -0
- package/dist/core/session/working-project.js +145 -0
- package/dist/core/session/working-runtime.d.ts +3 -0
- package/dist/core/session/working-runtime.js +16 -0
- package/dist/core/session/working-server.d.ts +20 -0
- package/dist/core/session/working-server.js +57 -0
- package/dist/core/session/working-time.d.ts +1 -0
- package/dist/core/session/working-time.js +6 -0
- package/dist/core/session/working.d.ts +58 -0
- package/dist/core/session/working.js +48 -0
- package/dist/core/session-sync/fragment.d.ts +4 -0
- package/dist/core/session-sync/fragment.js +3 -0
- package/dist/core/session-sync/saved-copy-store.d.ts +23 -0
- package/dist/core/session-sync/saved-copy-store.js +232 -0
- package/dist/core/session-sync/saved-transcript.d.ts +20 -0
- package/dist/core/session-sync/saved-transcript.js +35 -0
- package/dist/core/session-sync/session-sync-controller.d.ts +111 -0
- package/dist/core/session-sync/session-sync-controller.js +440 -0
- package/dist/core/stream/chat-events.d.ts +96 -0
- package/dist/core/stream/chat-events.js +95 -0
- package/dist/core/stream/event-stream.d.ts +52 -0
- package/dist/core/stream/event-stream.js +372 -0
- package/dist/core/stream/fetch-sse.d.ts +20 -0
- package/dist/core/stream/fetch-sse.js +136 -0
- package/dist/core/stream/keepalive.d.ts +4 -0
- package/dist/core/stream/keepalive.js +6 -0
- package/dist/core/stream/platform-event-transport.d.ts +2 -0
- package/dist/core/stream/platform-event-transport.js +20 -0
- package/dist/core/turns/classify.d.ts +131 -0
- package/dist/core/turns/classify.js +306 -0
- package/dist/core/turns/errors.d.ts +24 -0
- package/dist/core/turns/errors.js +355 -0
- package/dist/core/turns/grouping.d.ts +47 -0
- package/dist/core/turns/grouping.js +247 -0
- package/dist/core/turns/index.d.ts +13 -0
- package/dist/core/turns/index.js +12 -0
- package/dist/core/turns/open-turn.d.ts +13 -0
- package/dist/core/turns/open-turn.js +17 -0
- package/dist/core/turns/parts.d.ts +60 -0
- package/dist/core/turns/parts.js +414 -0
- package/dist/core/turns/segments/burst-summary.d.ts +9 -0
- package/dist/core/turns/segments/burst-summary.js +45 -0
- package/dist/core/turns/segments/compaction-state.d.ts +19 -0
- package/dist/core/turns/segments/compaction-state.js +42 -0
- package/dist/core/turns/segments/group-steps.d.ts +11 -0
- package/dist/core/turns/segments/group-steps.js +65 -0
- package/dist/core/turns/segments/index.d.ts +12 -0
- package/dist/core/turns/segments/index.js +12 -0
- package/dist/core/turns/segments/merge-steps.d.ts +21 -0
- package/dist/core/turns/segments/merge-steps.js +100 -0
- package/dist/core/turns/segments/message-time.d.ts +12 -0
- package/dist/core/turns/segments/message-time.js +82 -0
- package/dist/core/turns/segments/narration.d.ts +9 -0
- package/dist/core/turns/segments/narration.js +573 -0
- package/dist/core/turns/segments/segment-turn.d.ts +15 -0
- package/dist/core/turns/segments/segment-turn.js +32 -0
- package/dist/core/turns/segments/session-activity-groups.d.ts +20 -0
- package/dist/core/turns/segments/session-activity-groups.js +56 -0
- package/dist/core/turns/segments/show-group.d.ts +23 -0
- package/dist/core/turns/segments/show-group.js +101 -0
- package/dist/core/turns/segments/step-label.d.ts +10 -0
- package/dist/core/turns/segments/step-label.js +85 -0
- package/dist/core/turns/segments/turn-busy-visibility.d.ts +6 -0
- package/dist/core/turns/segments/turn-busy-visibility.js +9 -0
- package/dist/core/turns/segments/working-turn.d.ts +70 -0
- package/dist/core/turns/segments/working-turn.js +98 -0
- package/dist/core/turns/shell.d.ts +5 -0
- package/dist/core/turns/shell.js +21 -0
- package/dist/core/turns/state.d.ts +24 -0
- package/dist/core/turns/state.js +364 -0
- package/dist/core/turns/text-scan.d.ts +21 -0
- package/dist/core/turns/text-scan.js +347 -0
- package/dist/core/turns/tool-kind.d.ts +3 -0
- package/dist/core/turns/tool-kind.js +99 -0
- package/dist/core/turns/tool-registry.d.ts +8 -0
- package/dist/core/turns/tool-registry.js +87 -0
- package/dist/core/turns/tools/agent-helpers.d.ts +9 -0
- package/dist/core/turns/tools/agent-helpers.js +53 -0
- package/dist/core/turns/tools/file-verb.d.ts +10 -0
- package/dist/core/turns/tools/file-verb.js +22 -0
- package/dist/core/turns/tools/index.d.ts +14 -0
- package/dist/core/turns/tools/index.js +14 -0
- package/dist/core/turns/tools/memory-helpers.d.ts +15 -0
- package/dist/core/turns/tools/memory-helpers.js +50 -0
- package/dist/core/turns/tools/patch-summary.d.ts +6 -0
- package/dist/core/turns/tools/patch-summary.js +21 -0
- package/dist/core/turns/tools/presentation-helpers.d.ts +15 -0
- package/dist/core/turns/tools/presentation-helpers.js +17 -0
- package/dist/core/turns/tools/question-helpers.d.ts +9 -0
- package/dist/core/turns/tools/question-helpers.js +12 -0
- package/dist/core/turns/tools/read-helpers.d.ts +7 -0
- package/dist/core/turns/tools/read-helpers.js +24 -0
- package/dist/core/turns/tools/search-query.d.ts +1 -0
- package/dist/core/turns/tools/search-query.js +73 -0
- package/dist/core/turns/tools/show-availability.d.ts +11 -0
- package/dist/core/turns/tools/show-availability.js +38 -0
- package/dist/core/turns/tools/skill-helpers.d.ts +5 -0
- package/dist/core/turns/tools/skill-helpers.js +61 -0
- package/dist/core/turns/tools/tool-meta.d.ts +30 -0
- package/dist/core/turns/tools/tool-meta.js +146 -0
- package/dist/core/turns/tools/tool-outcome.d.ts +15 -0
- package/dist/core/turns/tools/tool-outcome.js +147 -0
- package/dist/core/turns/tools/tool-output-format.d.ts +17 -0
- package/dist/core/turns/tools/tool-output-format.js +124 -0
- package/dist/core/turns/tools/web-helpers.d.ts +34 -0
- package/dist/core/turns/tools/web-helpers.js +229 -0
- package/dist/core/turns/types.d.ts +110 -0
- package/dist/core/turns/types.js +1 -0
- package/dist/core/turns/view-model.d.ts +76 -0
- package/dist/core/turns/view-model.js +300 -0
- package/dist/deprecated/api-client.d.ts +1 -0
- package/dist/deprecated/api-client.js +1 -0
- package/dist/deprecated/auth.d.ts +1 -0
- package/dist/deprecated/auth.js +1 -0
- package/dist/deprecated/config.d.ts +1 -0
- package/dist/deprecated/config.js +1 -0
- package/dist/deprecated/event-stream.d.ts +1 -0
- package/dist/deprecated/event-stream.js +1 -0
- package/dist/deprecated/feature-flags.d.ts +1 -0
- package/dist/deprecated/feature-flags.js +1 -0
- package/dist/deprecated/files.d.ts +1 -0
- package/dist/deprecated/files.js +1 -0
- package/dist/deprecated/fresh-sessions.d.ts +1 -0
- package/dist/deprecated/fresh-sessions.js +1 -0
- package/dist/deprecated/idb-sync-cache.d.ts +1 -0
- package/dist/deprecated/idb-sync-cache.js +1 -0
- package/dist/deprecated/instance-routes.d.ts +1 -0
- package/dist/deprecated/instance-routes.js +1 -0
- package/dist/deprecated/opencode-client.d.ts +1 -0
- package/dist/deprecated/opencode-client.js +1 -0
- package/dist/deprecated/opencode-errors.d.ts +1 -0
- package/dist/deprecated/opencode-errors.js +1 -0
- package/dist/deprecated/opencode-pending-store.d.ts +1 -0
- package/dist/deprecated/opencode-pending-store.js +1 -0
- package/dist/deprecated/platform-client.d.ts +1 -0
- package/dist/deprecated/platform-client.js +1 -0
- package/dist/deprecated/projects-client.d.ts +1 -0
- package/dist/deprecated/projects-client.js +1 -0
- package/dist/deprecated/sandbox-connection-store.d.ts +1 -0
- package/dist/deprecated/sandbox-connection-store.js +1 -0
- package/dist/deprecated/server-store.d.ts +1 -0
- package/dist/deprecated/server-store.js +1 -0
- package/dist/deprecated/session-url.d.ts +1 -0
- package/dist/deprecated/session-url.js +1 -0
- package/dist/deprecated/session.d.ts +1 -0
- package/dist/deprecated/session.js +1 -0
- package/dist/deprecated/sync-store.d.ts +1 -0
- package/dist/deprecated/sync-store.js +1 -0
- package/dist/deprecated/turns.d.ts +1 -0
- package/dist/deprecated/turns.js +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +53 -0
- package/dist/internal/diagnostics-store.d.ts +1 -0
- package/dist/internal/diagnostics-store.js +1 -0
- package/dist/internal/idb-sync-cache.d.ts +1 -0
- package/dist/internal/idb-sync-cache.js +1 -0
- package/dist/internal/managed-storage.d.ts +1 -0
- package/dist/internal/managed-storage.js +1 -0
- package/dist/internal/opencode-pending-store.d.ts +1 -0
- package/dist/internal/opencode-pending-store.js +1 -0
- package/dist/internal/sandbox-connection-store.d.ts +1 -0
- package/dist/internal/sandbox-connection-store.js +1 -0
- package/dist/internal/server-store.d.ts +1 -0
- package/dist/internal/server-store.js +1 -0
- package/dist/internal/sync-store.d.ts +1 -0
- package/dist/internal/sync-store.js +1 -0
- package/dist/node/app-guard.d.ts +36 -0
- package/dist/node/app-guard.js +118 -0
- package/dist/node/app-viewer.d.ts +30 -0
- package/dist/node/app-viewer.js +113 -0
- package/dist/node/auth.d.ts +52 -0
- package/dist/node/auth.js +387 -0
- package/dist/node/scoped-client.d.ts +9 -0
- package/dist/node/scoped-client.js +106 -0
- package/dist/node/server.d.ts +8 -0
- package/dist/node/server.js +5 -0
- package/dist/platform/auth-core.d.ts +10 -0
- package/dist/platform/auth-core.js +44 -0
- package/dist/platform/config-node.d.ts +4 -0
- package/dist/platform/config-node.js +13 -0
- package/dist/platform/session-id.d.ts +1 -0
- package/dist/platform/session-id.js +15 -0
- package/dist/platform/storage/managed-storage.d.ts +25 -0
- package/dist/platform/storage/managed-storage.js +215 -0
- package/dist/platform/strings.d.ts +1 -0
- package/dist/platform/strings.js +6 -0
- package/dist/platform/ui.d.ts +5 -0
- package/dist/platform/ui.js +16 -0
- package/dist/react/agent-selection-scope.d.ts +7 -0
- package/dist/react/agent-selection-scope.js +3 -0
- package/dist/react/bedrock-invokable.d.ts +1 -0
- package/dist/react/bedrock-invokable.js +1 -0
- package/dist/react/chat/index.d.ts +2 -0
- package/dist/react/chat/index.js +3 -0
- package/dist/react/chat/render-parts.d.ts +11 -0
- package/dist/react/chat/render-parts.js +10 -0
- package/dist/react/chat/use-chat-turns.d.ts +9 -0
- package/dist/react/chat/use-chat-turns.js +9 -0
- package/dist/react/connector-setup.d.ts +21 -0
- package/dist/react/connector-setup.js +130 -0
- package/dist/react/file-keys.d.ts +16 -0
- package/dist/react/file-keys.js +16 -0
- package/dist/react/hold-live-start.d.ts +3 -0
- package/dist/react/hold-live-start.js +27 -0
- package/dist/react/human-presence.d.ts +15 -0
- package/dist/react/human-presence.js +62 -0
- package/dist/react/identity-reset-registry.d.ts +2 -0
- package/dist/react/identity-reset-registry.js +14 -0
- package/dist/react/index.d.ts +62 -0
- package/dist/react/index.js +63 -0
- package/dist/react/initial-session-pin.d.ts +14 -0
- package/dist/react/initial-session-pin.js +28 -0
- package/dist/react/invalidate-project.d.ts +22 -0
- package/dist/react/invalidate-project.js +26 -0
- package/dist/react/model-flatten.d.ts +1 -0
- package/dist/react/model-flatten.js +1 -0
- package/dist/react/opencode.d.ts +43 -0
- package/dist/react/opencode.js +43 -0
- package/dist/react/prefetch-session-open.d.ts +5 -0
- package/dist/react/prefetch-session-open.js +48 -0
- package/dist/react/prefetch-session-start.d.ts +2 -0
- package/dist/react/prefetch-session-start.js +9 -0
- package/dist/react/provider-refresh.d.ts +9 -0
- package/dist/react/provider-refresh.js +72 -0
- package/dist/react/provider-selection.d.ts +1 -0
- package/dist/react/provider-selection.js +1 -0
- package/dist/react/pty-query-state.d.ts +2 -0
- package/dist/react/pty-query-state.js +6 -0
- package/dist/react/query-contracts.d.ts +49 -0
- package/dist/react/query-contracts.js +63 -0
- package/dist/react/query-keys.d.ts +105 -0
- package/dist/react/query-keys.js +115 -0
- package/dist/react/reset-identity-state.d.ts +2 -0
- package/dist/react/reset-identity-state.js +19 -0
- package/dist/react/retired-endpoint.d.ts +3 -0
- package/dist/react/retired-endpoint.js +15 -0
- package/dist/react/route-project.d.ts +6 -0
- package/dist/react/route-project.js +9 -0
- package/dist/react/run-pty-command.d.ts +4 -0
- package/dist/react/run-pty-command.js +41 -0
- package/dist/react/runtime-actions.d.ts +31 -0
- package/dist/react/runtime-actions.js +87 -0
- package/dist/react/self-heal-poll-gate.d.ts +8 -0
- package/dist/react/self-heal-poll-gate.js +5 -0
- package/dist/react/session-agent-name-guard.d.ts +1 -0
- package/dist/react/session-agent-name-guard.js +5 -0
- package/dist/react/session-cache-write.d.ts +8 -0
- package/dist/react/session-cache-write.js +116 -0
- package/dist/react/session-start-giveup.d.ts +4 -0
- package/dist/react/session-start-giveup.js +5 -0
- package/dist/react/session-start-stash.d.ts +17 -0
- package/dist/react/session-start-stash.js +146 -0
- package/dist/react/session-stop.d.ts +20 -0
- package/dist/react/session-stop.js +63 -0
- package/dist/react/session-title-sync.d.ts +12 -0
- package/dist/react/session-title-sync.js +88 -0
- package/dist/react/session-transcript-subscription.d.ts +7 -0
- package/dist/react/session-transcript-subscription.js +71 -0
- package/dist/react/sign-in-with-beeuni.d.ts +330 -0
- package/dist/react/sign-in-with-beeuni.js +51 -0
- package/dist/react/teams-install-polling.d.ts +3 -0
- package/dist/react/teams-install-polling.js +4 -0
- package/dist/react/use-accounts.d.ts +47 -0
- package/dist/react/use-accounts.js +31 -0
- package/dist/react/use-admin-accounts.d.ts +236 -0
- package/dist/react/use-admin-accounts.js +287 -0
- package/dist/react/use-admin-activity-analytics.d.ts +48 -0
- package/dist/react/use-admin-activity-analytics.js +47 -0
- package/dist/react/use-admin-analytics.d.ts +331 -0
- package/dist/react/use-admin-analytics.js +85 -0
- package/dist/react/use-admin-billing.d.ts +26 -0
- package/dist/react/use-admin-billing.js +13 -0
- package/dist/react/use-admin-feedback.d.ts +118 -0
- package/dist/react/use-admin-feedback.js +46 -0
- package/dist/react/use-admin-projects.d.ts +31 -0
- package/dist/react/use-admin-projects.js +27 -0
- package/dist/react/use-admin-providers.d.ts +20 -0
- package/dist/react/use-admin-providers.js +45 -0
- package/dist/react/use-admin-role.d.ts +4 -0
- package/dist/react/use-admin-role.js +15 -0
- package/dist/react/use-admin-sandboxes.d.ts +156 -0
- package/dist/react/use-admin-sandboxes.js +52 -0
- package/dist/react/use-authenticated-preview-url.d.ts +3 -0
- package/dist/react/use-authenticated-preview-url.js +96 -0
- package/dist/react/use-beeuni-app-viewer.d.ts +12 -0
- package/dist/react/use-beeuni-app-viewer.js +19 -0
- package/dist/react/use-beeuni-master.d.ts +333 -0
- package/dist/react/use-beeuni-master.js +845 -0
- package/dist/react/use-can.d.ts +35 -0
- package/dist/react/use-can.js +129 -0
- package/dist/react/use-canonical-opencode-session.d.ts +21 -0
- package/dist/react/use-canonical-opencode-session.js +44 -0
- package/dist/react/use-change-requests.d.ts +291 -0
- package/dist/react/use-change-requests.js +31 -0
- package/dist/react/use-connector-query.d.ts +7 -0
- package/dist/react/use-connector-query.js +23 -0
- package/dist/react/use-current-runtime.d.ts +2 -0
- package/dist/react/use-current-runtime.js +6 -0
- package/dist/react/use-feature-flag.d.ts +6 -0
- package/dist/react/use-feature-flag.js +25 -0
- package/dist/react/use-gateway-catalog-sync.d.ts +1 -0
- package/dist/react/use-gateway-catalog-sync.js +40 -0
- package/dist/react/use-gateway-routing-policy.d.ts +8 -0
- package/dist/react/use-gateway-routing-policy.js +36 -0
- package/dist/react/use-impersonation.d.ts +20 -0
- package/dist/react/use-impersonation.js +55 -0
- package/dist/react/use-model-access.d.ts +9 -0
- package/dist/react/use-model-access.js +46 -0
- package/dist/react/use-model-defaults.d.ts +23 -0
- package/dist/react/use-model-defaults.js +115 -0
- package/dist/react/use-model-enablement.d.ts +8 -0
- package/dist/react/use-model-enablement.js +69 -0
- package/dist/react/use-model-store.d.ts +47 -0
- package/dist/react/use-model-store.js +234 -0
- package/dist/react/use-notifications.d.ts +618 -0
- package/dist/react/use-notifications.js +104 -0
- package/dist/react/use-opencode-config.d.ts +12 -0
- package/dist/react/use-opencode-config.js +69 -0
- package/dist/react/use-opencode-events/diagnostics.d.ts +4 -0
- package/dist/react/use-opencode-events/diagnostics.js +42 -0
- package/dist/react/use-opencode-events/handle-event.d.ts +23 -0
- package/dist/react/use-opencode-events/handle-event.js +57 -0
- package/dist/react/use-opencode-events/handle-interaction-event.d.ts +3 -0
- package/dist/react/use-opencode-events/handle-interaction-event.js +41 -0
- package/dist/react/use-opencode-events/handle-message-event.d.ts +3 -0
- package/dist/react/use-opencode-events/handle-message-event.js +32 -0
- package/dist/react/use-opencode-events/handle-session-event.d.ts +4 -0
- package/dist/react/use-opencode-events/handle-session-event.js +240 -0
- package/dist/react/use-opencode-events/handle-workspace-event.d.ts +3 -0
- package/dist/react/use-opencode-events/handle-workspace-event.js +112 -0
- package/dist/react/use-opencode-events/handler-context.d.ts +28 -0
- package/dist/react/use-opencode-events/handler-context.js +1 -0
- package/dist/react/use-opencode-events/helpers.d.ts +27 -0
- package/dist/react/use-opencode-events/helpers.js +126 -0
- package/dist/react/use-opencode-events/hydrate-core.d.ts +22 -0
- package/dist/react/use-opencode-events/hydrate-core.js +78 -0
- package/dist/react/use-opencode-events/index.d.ts +9 -0
- package/dist/react/use-opencode-events/index.js +181 -0
- package/dist/react/use-opencode-events/rehydrate-targets.d.ts +1 -0
- package/dist/react/use-opencode-events/rehydrate-targets.js +3 -0
- package/dist/react/use-opencode-events/runtime-stream-signals.d.ts +19 -0
- package/dist/react/use-opencode-events/runtime-stream-signals.js +22 -0
- package/dist/react/use-opencode-events/stream-revival.d.ts +11 -0
- package/dist/react/use-opencode-events/stream-revival.js +60 -0
- package/dist/react/use-opencode-events/types.d.ts +2 -0
- package/dist/react/use-opencode-events/types.js +1 -0
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts +16 -0
- package/dist/react/use-opencode-events/use-event-stream-refs.js +129 -0
- package/dist/react/use-opencode-local.d.ts +72 -0
- package/dist/react/use-opencode-local.js +306 -0
- package/dist/react/use-opencode-mcp.d.ts +29 -0
- package/dist/react/use-opencode-mcp.js +149 -0
- package/dist/react/use-opencode-pty.d.ts +39 -0
- package/dist/react/use-opencode-pty.js +61 -0
- package/dist/react/use-opencode-sessions/agents.d.ts +11 -0
- package/dist/react/use-opencode-sessions/agents.js +57 -0
- package/dist/react/use-opencode-sessions/commands.d.ts +16 -0
- package/dist/react/use-opencode-sessions/commands.js +42 -0
- package/dist/react/use-opencode-sessions/files.d.ts +2 -0
- package/dist/react/use-opencode-sessions/files.js +144 -0
- package/dist/react/use-opencode-sessions/index.d.ts +15 -0
- package/dist/react/use-opencode-sessions/index.js +15 -0
- package/dist/react/use-opencode-sessions/keys.d.ts +102 -0
- package/dist/react/use-opencode-sessions/keys.js +38 -0
- package/dist/react/use-opencode-sessions/mcp.d.ts +2 -0
- package/dist/react/use-opencode-sessions/mcp.js +19 -0
- package/dist/react/use-opencode-sessions/messages.d.ts +57 -0
- package/dist/react/use-opencode-sessions/messages.js +342 -0
- package/dist/react/use-opencode-sessions/no-compaction-model-error.d.ts +3 -0
- package/dist/react/use-opencode-sessions/no-compaction-model-error.js +6 -0
- package/dist/react/use-opencode-sessions/parts.d.ts +12 -0
- package/dist/react/use-opencode-sessions/parts.js +31 -0
- package/dist/react/use-opencode-sessions/permissions.d.ts +5 -0
- package/dist/react/use-opencode-sessions/permissions.js +44 -0
- package/dist/react/use-opencode-sessions/projects.d.ts +6 -0
- package/dist/react/use-opencode-sessions/projects.js +49 -0
- package/dist/react/use-opencode-sessions/provider-load-plan.d.ts +5 -0
- package/dist/react/use-opencode-sessions/provider-load-plan.js +3 -0
- package/dist/react/use-opencode-sessions/providers.d.ts +10 -0
- package/dist/react/use-opencode-sessions/providers.js +98 -0
- package/dist/react/use-opencode-sessions/sessions.d.ts +34 -0
- package/dist/react/use-opencode-sessions/sessions.js +330 -0
- package/dist/react/use-opencode-sessions/shared.d.ts +10 -0
- package/dist/react/use-opencode-sessions/shared.js +36 -0
- package/dist/react/use-opencode-sessions/sharing.d.ts +3 -0
- package/dist/react/use-opencode-sessions/sharing.js +51 -0
- package/dist/react/use-opencode-sessions/tools.d.ts +5 -0
- package/dist/react/use-opencode-sessions/tools.js +48 -0
- package/dist/react/use-opencode-sessions/vcs.d.ts +7 -0
- package/dist/react/use-opencode-sessions/vcs.js +24 -0
- package/dist/react/use-ops-overview.d.ts +63 -0
- package/dist/react/use-ops-overview.js +15 -0
- package/dist/react/use-permission-self-heal.d.ts +10 -0
- package/dist/react/use-permission-self-heal.js +114 -0
- package/dist/react/use-poll-owner.d.ts +1 -0
- package/dist/react/use-poll-owner.js +14 -0
- package/dist/react/use-project-apps.d.ts +879 -0
- package/dist/react/use-project-apps.js +185 -0
- package/dist/react/use-project-config.d.ts +2 -0
- package/dist/react/use-project-config.js +16 -0
- package/dist/react/use-project-files.d.ts +87 -0
- package/dist/react/use-project-files.js +109 -0
- package/dist/react/use-project-gateway.d.ts +26 -0
- package/dist/react/use-project-gateway.js +111 -0
- package/dist/react/use-project-llm-gateway.d.ts +6 -0
- package/dist/react/use-project-llm-gateway.js +20 -0
- package/dist/react/use-project-models.d.ts +4 -0
- package/dist/react/use-project-models.js +31 -0
- package/dist/react/use-project-name.d.ts +4 -0
- package/dist/react/use-project-name.js +35 -0
- package/dist/react/use-project-secrets.d.ts +279 -0
- package/dist/react/use-project-secrets.js +34 -0
- package/dist/react/use-project-session.d.ts +4 -0
- package/dist/react/use-project-session.js +18 -0
- package/dist/react/use-project-sessions.d.ts +447 -0
- package/dist/react/use-project-sessions.js +86 -0
- package/dist/react/use-project-starter-suggestions.d.ts +2 -0
- package/dist/react/use-project-starter-suggestions.js +13 -0
- package/dist/react/use-project-triggers.d.ts +221 -0
- package/dist/react/use-project-triggers.js +53 -0
- package/dist/react/use-prompt-attachments.d.ts +3 -0
- package/dist/react/use-prompt-attachments.js +34 -0
- package/dist/react/use-provider-secrets.d.ts +229 -0
- package/dist/react/use-provider-secrets.js +38 -0
- package/dist/react/use-question-self-heal.d.ts +7 -0
- package/dist/react/use-question-self-heal.js +81 -0
- package/dist/react/use-reminders.d.ts +501 -0
- package/dist/react/use-reminders.js +51 -0
- package/dist/react/use-runtime-boot-stalled.d.ts +2 -0
- package/dist/react/use-runtime-boot-stalled.js +18 -0
- package/dist/react/use-runtime-phase.d.ts +2 -0
- package/dist/react/use-runtime-phase.js +13 -0
- package/dist/react/use-runtime-reconnect.d.ts +52 -0
- package/dist/react/use-runtime-reconnect.js +248 -0
- package/dist/react/use-runtime-supports.d.ts +2 -0
- package/dist/react/use-runtime-supports.js +5 -0
- package/dist/react/use-sandbox-image.d.ts +33 -0
- package/dist/react/use-sandbox-image.js +119 -0
- package/dist/react/use-session-audit.d.ts +4 -0
- package/dist/react/use-session-audit.js +25 -0
- package/dist/react/use-session-message-authors.d.ts +1 -0
- package/dist/react/use-session-message-authors.js +14 -0
- package/dist/react/use-session-messages.d.ts +11 -0
- package/dist/react/use-session-messages.js +62 -0
- package/dist/react/use-session-model-selection.d.ts +8 -0
- package/dist/react/use-session-model-selection.js +20 -0
- package/dist/react/use-session-model-usage.d.ts +1 -0
- package/dist/react/use-session-model-usage.js +13 -0
- package/dist/react/use-session-participants.d.ts +4 -0
- package/dist/react/use-session-participants.js +13 -0
- package/dist/react/use-session-phase.d.ts +8 -0
- package/dist/react/use-session-phase.js +9 -0
- package/dist/react/use-session-picks.d.ts +13 -0
- package/dist/react/use-session-picks.js +65 -0
- package/dist/react/use-session-prefetch.d.ts +6 -0
- package/dist/react/use-session-prefetch.js +22 -0
- package/dist/react/use-session-prompts.d.ts +53 -0
- package/dist/react/use-session-prompts.js +378 -0
- package/dist/react/use-session-send.d.ts +97 -0
- package/dist/react/use-session-send.js +233 -0
- package/dist/react/use-session-start-give-up.d.ts +19 -0
- package/dist/react/use-session-start-give-up.js +59 -0
- package/dist/react/use-session-stream.d.ts +17 -0
- package/dist/react/use-session-stream.js +181 -0
- package/dist/react/use-session-sync.d.ts +43 -0
- package/dist/react/use-session-sync.js +252 -0
- package/dist/react/use-session-transcript-history.d.ts +6 -0
- package/dist/react/use-session-transcript-history.js +38 -0
- package/dist/react/use-session-working.d.ts +37 -0
- package/dist/react/use-session-working.js +217 -0
- package/dist/react/use-session.d.ts +201 -0
- package/dist/react/use-session.js +893 -0
- package/dist/react/use-sessions-needing-input.d.ts +5 -0
- package/dist/react/use-sessions-needing-input.js +23 -0
- package/dist/react/use-static-file-preview.d.ts +9 -0
- package/dist/react/use-static-file-preview.js +72 -0
- package/dist/react/use-system-status.d.ts +38 -0
- package/dist/react/use-system-status.js +5 -0
- package/dist/react/use-teams-installations.d.ts +41 -0
- package/dist/react/use-teams-installations.js +95 -0
- package/dist/react/use-tunnel.d.ts +165 -0
- package/dist/react/use-tunnel.js +186 -0
- package/dist/react/use-visible-agents.d.ts +9 -0
- package/dist/react/use-visible-agents.js +12 -0
- package/dist/react/use-wake-escalation.d.ts +31 -0
- package/dist/react/use-wake-escalation.js +82 -0
- package/dist/transcript.d.ts +50 -0
- package/dist/transcript.js +93 -0
- package/dist/workspace-search/client.d.ts +19 -0
- package/dist/workspace-search/client.js +229 -0
- package/dist/workspace-search/core.d.ts +21 -0
- package/dist/workspace-search/core.js +259 -0
- package/dist/workspace-search/index.d.ts +2 -0
- package/dist/workspace-search/index.js +2 -0
- package/package.json +178 -0
|
@@ -0,0 +1,1216 @@
|
|
|
1
|
+
export { SessionNotReadyError } from './session-shared.js';
|
|
2
|
+
export type { SessionModel } from './session-shared.js';
|
|
3
|
+
import type { RuntimeClient } from '../runtime/client.js';
|
|
4
|
+
import { type BeeuniPlatformConfig } from '../http/config.js';
|
|
5
|
+
import * as P from '../rest/projects-client/index.js';
|
|
6
|
+
declare function runtime(): RuntimeClient;
|
|
7
|
+
export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
8
|
+
global?: boolean;
|
|
9
|
+
}): {
|
|
10
|
+
config: BeeuniPlatformConfig;
|
|
11
|
+
auth: import("../../index.js").HeadlessAuthApi;
|
|
12
|
+
accounts: {
|
|
13
|
+
list: typeof P.listAccounts;
|
|
14
|
+
get: typeof P.getAccount;
|
|
15
|
+
create: typeof P.createAccount;
|
|
16
|
+
secretResources: {
|
|
17
|
+
list: typeof P.listAccountSecretResources;
|
|
18
|
+
create: typeof P.createAccountSecretResource;
|
|
19
|
+
rotate: typeof P.rotateAccountSecretResource;
|
|
20
|
+
retry: typeof P.retryAccountSecretResource;
|
|
21
|
+
remove: typeof P.deleteAccountSecretResource;
|
|
22
|
+
grant: typeof P.grantAccountSecretResource;
|
|
23
|
+
revoke: typeof P.revokeAccountSecretResourceGrant;
|
|
24
|
+
setAccess: typeof P.setAccountSecretResourceAccess;
|
|
25
|
+
};
|
|
26
|
+
updateName: typeof P.updateAccountName;
|
|
27
|
+
branding: {
|
|
28
|
+
get: typeof P.getAccountBranding;
|
|
29
|
+
update: typeof P.updateAccountBranding;
|
|
30
|
+
uploadAsset: typeof P.uploadAccountBrandingAsset;
|
|
31
|
+
removeAsset: typeof P.removeAccountBrandingAsset;
|
|
32
|
+
reset: typeof P.resetAccountBranding;
|
|
33
|
+
};
|
|
34
|
+
leave: typeof P.leaveAccount;
|
|
35
|
+
members: typeof P.listAccountMembers;
|
|
36
|
+
invite: typeof P.inviteAccountMember;
|
|
37
|
+
removeMember: typeof P.removeAccountMember;
|
|
38
|
+
updateMemberRole: typeof P.updateAccountMemberRole;
|
|
39
|
+
invites: typeof P.listAccountInvites;
|
|
40
|
+
cancelInvite: typeof P.cancelAccountInvite;
|
|
41
|
+
resendInvite: typeof P.resendAccountInvite;
|
|
42
|
+
tokens: {
|
|
43
|
+
list: typeof P.listAccountTokens;
|
|
44
|
+
create: typeof P.createAccountToken;
|
|
45
|
+
revoke: typeof P.revokeAccountToken;
|
|
46
|
+
};
|
|
47
|
+
connectedApps: {
|
|
48
|
+
list: typeof P.listOAuthGrants;
|
|
49
|
+
revoke: typeof P.revokeOAuthGrant;
|
|
50
|
+
};
|
|
51
|
+
audit: {
|
|
52
|
+
log: typeof P.listAccountAudit;
|
|
53
|
+
export: typeof P.exportAccountAudit;
|
|
54
|
+
webhooks: {
|
|
55
|
+
list: typeof P.listAccountAuditWebhooks;
|
|
56
|
+
create: typeof P.createAccountAuditWebhook;
|
|
57
|
+
update: typeof P.updateAccountAuditWebhook;
|
|
58
|
+
remove: typeof P.removeAccountAuditWebhook;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
providerConnections: {
|
|
63
|
+
list: typeof P.listUserProviderConnections;
|
|
64
|
+
saveApiKey: typeof P.saveUserProviderApiKey;
|
|
65
|
+
remove: typeof P.deleteUserProviderConnection;
|
|
66
|
+
startOAuth: typeof P.startUserProviderOAuth;
|
|
67
|
+
pollOAuth: typeof P.pollUserProviderOAuth;
|
|
68
|
+
listProject: typeof P.listProjectPersonalProviders;
|
|
69
|
+
setProject: typeof P.setProjectPersonalProvider;
|
|
70
|
+
};
|
|
71
|
+
iam: {
|
|
72
|
+
assignments: {
|
|
73
|
+
list: typeof P.listAssignments;
|
|
74
|
+
create: typeof P.createAssignment;
|
|
75
|
+
revoke: typeof P.revokeAssignment;
|
|
76
|
+
};
|
|
77
|
+
permissions: {
|
|
78
|
+
list: typeof P.listPermissions;
|
|
79
|
+
forRole: typeof P.getRolePermissions;
|
|
80
|
+
};
|
|
81
|
+
roles: {
|
|
82
|
+
list: typeof P.listRoles;
|
|
83
|
+
create: typeof P.createRole;
|
|
84
|
+
update: typeof P.updateRole;
|
|
85
|
+
setPermissions: typeof P.updateRolePermissions;
|
|
86
|
+
remove: typeof P.deleteRole;
|
|
87
|
+
usage: typeof P.getRoleUsage;
|
|
88
|
+
};
|
|
89
|
+
groups: {
|
|
90
|
+
list: typeof P.listGroups;
|
|
91
|
+
get: typeof P.getGroup;
|
|
92
|
+
create: typeof P.createGroup;
|
|
93
|
+
update: typeof P.updateGroup;
|
|
94
|
+
remove: typeof P.deleteGroup;
|
|
95
|
+
members: {
|
|
96
|
+
list: typeof P.listGroupMembers;
|
|
97
|
+
add: typeof P.addGroupMembers;
|
|
98
|
+
remove: typeof P.removeGroupMember;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
agentIdentities: typeof P.listAgentIdentities;
|
|
102
|
+
oauthClients: {
|
|
103
|
+
list: typeof P.listOAuthClients;
|
|
104
|
+
get: typeof P.getOAuthClient;
|
|
105
|
+
create: typeof P.createOAuthClient;
|
|
106
|
+
update: typeof P.updateOAuthClient;
|
|
107
|
+
rotateSecret: typeof P.rotateOAuthClientSecret;
|
|
108
|
+
remove: typeof P.deleteOAuthClient;
|
|
109
|
+
};
|
|
110
|
+
can: typeof P.probeEffectivePermission;
|
|
111
|
+
canBatch: typeof P.probeEffectivePermissions;
|
|
112
|
+
};
|
|
113
|
+
accountInvites: {
|
|
114
|
+
listMine: typeof P.listMyAccountInvites;
|
|
115
|
+
describe: typeof P.describeAccountInvite;
|
|
116
|
+
accept: typeof P.acceptAccountInvite;
|
|
117
|
+
decline: typeof P.declineAccountInvite;
|
|
118
|
+
};
|
|
119
|
+
projects: {
|
|
120
|
+
list: typeof P.listProjects;
|
|
121
|
+
listForAccount: typeof P.listProjectsForAccount;
|
|
122
|
+
get: typeof P.getProject;
|
|
123
|
+
detail: typeof P.getProjectDetail;
|
|
124
|
+
create: typeof P.createProject;
|
|
125
|
+
createRepo: typeof P.createProjectRepo;
|
|
126
|
+
provision: typeof P.provisionProject;
|
|
127
|
+
update: typeof P.updateProject;
|
|
128
|
+
archive: typeof P.archiveProject;
|
|
129
|
+
llmCatalog: typeof P.getProjectLlmCatalog;
|
|
130
|
+
modelPicker: typeof P.getProjectModelPicker;
|
|
131
|
+
modelAccess: typeof P.getProjectModelAccess;
|
|
132
|
+
setModelAccess: typeof P.setProjectModelAccess;
|
|
133
|
+
sandboxHealth: typeof P.getProjectSandboxHealth;
|
|
134
|
+
sandboxTemplates: typeof P.listProjectSandboxTemplates;
|
|
135
|
+
sessions: typeof P.listProjectSessions;
|
|
136
|
+
createSession: typeof P.createProjectSession;
|
|
137
|
+
};
|
|
138
|
+
connectors: {
|
|
139
|
+
catalog: (options?: Parameters<typeof P.getConnectorCatalog>[1]) => Promise<P.ConnectorCatalogEntry[]>;
|
|
140
|
+
tools: () => Promise<P.ConnectorTool[]>;
|
|
141
|
+
search: (query?: string | undefined, options?: {
|
|
142
|
+
limit?: number;
|
|
143
|
+
} | undefined) => Promise<P.ConnectorTool[]>;
|
|
144
|
+
describe: (tool: string) => Promise<P.ConnectorTool | null>;
|
|
145
|
+
call: <T = unknown>(tool: string, args?: Record<string, unknown> | undefined, options?: P.ConnectorCallOptions | undefined) => Promise<P.ConnectorCallResult<T, unknown>>;
|
|
146
|
+
callAction: <S extends string, A extends string>(slug: S, action: A, args: P.ConnectorArgs<S, A>, options?: P.ConnectorCallOptions) => Promise<P.ConnectorCallResult<unknown, P.ConnectorResult<S, A>>>;
|
|
147
|
+
accounts: (slug: string) => Promise<P.ConnectorAccount[]>;
|
|
148
|
+
uploadAttachment: (content: Blob | ArrayBuffer | Uint8Array<ArrayBufferLike>, input: P.ConnectorAttachmentUploadInput) => Promise<P.ConnectorAttachmentUploadResult>;
|
|
149
|
+
};
|
|
150
|
+
connector: <S extends string>(slug: S) => P.ConnectorHandle<S>;
|
|
151
|
+
project: (projectId: string) => {
|
|
152
|
+
connector: <S extends string>(slug: S) => P.ConnectorHandle<S>;
|
|
153
|
+
session: (sessionId: string) => {
|
|
154
|
+
runtime: RuntimeClient;
|
|
155
|
+
messages: (options?: {
|
|
156
|
+
conversationId?: string;
|
|
157
|
+
limit?: number;
|
|
158
|
+
before?: string;
|
|
159
|
+
signal?: AbortSignal;
|
|
160
|
+
}) => Promise<import("../session/index.js").TranscriptPage>;
|
|
161
|
+
pending: () => Promise<import("../session/index.js").PendingInteractions>;
|
|
162
|
+
answerPermission: (requestId: string, reply: import("../../index.js").RuntimePermissionReply, message?: string) => Promise<void>;
|
|
163
|
+
answerQuestion: (requestId: string, answers: import("../../index.js").RuntimeQuestionAnswer[] | null) => Promise<void>;
|
|
164
|
+
compact: (model?: {
|
|
165
|
+
providerID: string;
|
|
166
|
+
modelID: string;
|
|
167
|
+
}) => Promise<{
|
|
168
|
+
providerID: string;
|
|
169
|
+
modelID: string;
|
|
170
|
+
}>;
|
|
171
|
+
files: {
|
|
172
|
+
list: (dirPath: string) => Promise<import("../../index.js").FileNode[]>;
|
|
173
|
+
read: (filePath: string) => Promise<import("../../index.js").FileContent>;
|
|
174
|
+
readBlob: (filePath: string) => Promise<Blob>;
|
|
175
|
+
status: () => Promise<import("../../index.js").GitFileStatus[]>;
|
|
176
|
+
findFiles: (query: string, options?: {
|
|
177
|
+
type?: "file" | "directory";
|
|
178
|
+
limit?: number;
|
|
179
|
+
}) => Promise<string[]>;
|
|
180
|
+
findText: (pattern: string) => Promise<import("../../index.js").FindMatch[]>;
|
|
181
|
+
upload: (file: File | Blob, targetPath?: string, filename?: string, options?: import("../../index.js").UploadFileOptions) => Promise<import("../../index.js").UploadResult[]>;
|
|
182
|
+
write: (filePath: string, content: Blob | File) => Promise<import("../../index.js").WriteFileResult>;
|
|
183
|
+
create: (filePath: string) => Promise<import("../../index.js").UploadResult[]>;
|
|
184
|
+
copy: (sourcePath: string, destPath: string) => Promise<import("../../index.js").UploadResult[]>;
|
|
185
|
+
remove: (filePath: string) => Promise<boolean>;
|
|
186
|
+
mkdir: (dirPath: string) => Promise<boolean>;
|
|
187
|
+
rename: (from: string, to: string) => Promise<boolean>;
|
|
188
|
+
};
|
|
189
|
+
abort: () => Promise<({
|
|
190
|
+
data: undefined;
|
|
191
|
+
error: unknown;
|
|
192
|
+
} | {
|
|
193
|
+
data: boolean;
|
|
194
|
+
error: undefined;
|
|
195
|
+
}) & {
|
|
196
|
+
request: Request;
|
|
197
|
+
response: Response;
|
|
198
|
+
}>;
|
|
199
|
+
rewind: (messageId: string) => Promise<({
|
|
200
|
+
data: undefined;
|
|
201
|
+
error: unknown;
|
|
202
|
+
} | {
|
|
203
|
+
data: import("../../index.js").Session;
|
|
204
|
+
error: undefined;
|
|
205
|
+
}) & {
|
|
206
|
+
request: Request;
|
|
207
|
+
response: Response;
|
|
208
|
+
}>;
|
|
209
|
+
restoreRewind: () => Promise<({
|
|
210
|
+
data: undefined;
|
|
211
|
+
error: unknown;
|
|
212
|
+
} | {
|
|
213
|
+
data: import("../../index.js").Session;
|
|
214
|
+
error: undefined;
|
|
215
|
+
}) & {
|
|
216
|
+
request: Request;
|
|
217
|
+
response: Response;
|
|
218
|
+
}>;
|
|
219
|
+
stream: (opts: {
|
|
220
|
+
onEvent: (event: import("../../index.js").RuntimeEvent) => void;
|
|
221
|
+
onGapRehydrate?: (gapMs: number) => void;
|
|
222
|
+
signal?: AbortSignal;
|
|
223
|
+
}) => Promise<import("../../index.js").EventStreamHandle>;
|
|
224
|
+
scope: () => Promise<P.SessionScope>;
|
|
225
|
+
providerSecretPool: {
|
|
226
|
+
list: () => Promise<{
|
|
227
|
+
pools: P.SessionProviderSecretPool[];
|
|
228
|
+
can_edit: boolean;
|
|
229
|
+
personal_user_id?: string | null;
|
|
230
|
+
personal_keys_reason?: "shared" | "prompted_by_another_member" | "no_person" | null;
|
|
231
|
+
}>;
|
|
232
|
+
get: (providerId: string) => Promise<P.SessionProviderSecretPool>;
|
|
233
|
+
set: (providerId: string, secretIds: string[] | null) => Promise<P.SessionProviderSecretPool>;
|
|
234
|
+
};
|
|
235
|
+
rescope: (scope: P.SessionScopeInput) => Promise<P.SessionScope>;
|
|
236
|
+
setAgent: (agent: string | undefined) => void;
|
|
237
|
+
send: (text: string, opts?: {
|
|
238
|
+
model?: import("./session-shared.js").SessionModel;
|
|
239
|
+
agent?: string;
|
|
240
|
+
}) => Promise<P.CreateSessionPromptResult>;
|
|
241
|
+
setModel: (model: import("./session-shared.js").SessionModel | undefined) => void;
|
|
242
|
+
changeModel: (model: string) => Promise<P.SessionModelChangeResult>;
|
|
243
|
+
health: (init?: RequestInit) => Promise<import("../session/index.js").SessionHealthResult>;
|
|
244
|
+
previewUrl: (port: number, path?: string) => string;
|
|
245
|
+
proxyUrl: (url?: string) => string | undefined;
|
|
246
|
+
sandboxPortUrl: (port: number) => string;
|
|
247
|
+
reminders: {
|
|
248
|
+
list: () => Promise<{
|
|
249
|
+
reminders: P.SessionReminder[];
|
|
250
|
+
}>;
|
|
251
|
+
create: (input: Parameters<typeof P.createSessionReminder>[2]) => Promise<P.SessionReminder>;
|
|
252
|
+
update: (reminderId: string, input: Parameters<typeof P.updateSessionReminder>[3]) => Promise<P.SessionReminder>;
|
|
253
|
+
remove: (reminderId: string) => Promise<{
|
|
254
|
+
ok: boolean;
|
|
255
|
+
}>;
|
|
256
|
+
};
|
|
257
|
+
audit: (limit?: number, options?: Parameters<typeof P.getSessionAudit>[3]) => Promise<P.SessionAudit>;
|
|
258
|
+
attachments: {
|
|
259
|
+
upload: (file: File, options?: Parameters<typeof P.uploadSessionAttachment>[3]) => Promise<P.SessionAttachment>;
|
|
260
|
+
read: (attachmentId: string, signal?: AbortSignal) => Promise<Blob>;
|
|
261
|
+
};
|
|
262
|
+
transcript: (options?: Parameters<typeof P.getSessionTranscript>[2]) => Promise<P.SessionTranscript>;
|
|
263
|
+
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
264
|
+
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
265
|
+
transcriptSync: (options?: Parameters<typeof P.getSessionTranscriptSync>[2]) => Promise<P.SessionTranscriptSyncEnvelope>;
|
|
266
|
+
turn: () => Promise<P.SessionTurnStatus>;
|
|
267
|
+
prompts: {
|
|
268
|
+
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
269
|
+
list: () => Promise<{
|
|
270
|
+
prompts: P.SessionPrompt[];
|
|
271
|
+
observed_at?: string;
|
|
272
|
+
}>;
|
|
273
|
+
remove: (promptId: string) => Promise<P.RemovedSessionPrompt>;
|
|
274
|
+
retry: (promptId: string) => Promise<P.SessionPrompt>;
|
|
275
|
+
edit: (promptId: string, text: string) => Promise<P.SessionPrompt>;
|
|
276
|
+
interrupt: (promptId: string) => Promise<P.SessionPrompt>;
|
|
277
|
+
hold: (held: boolean) => Promise<{
|
|
278
|
+
prompts: P.SessionPrompt[];
|
|
279
|
+
observed_at?: string;
|
|
280
|
+
}>;
|
|
281
|
+
};
|
|
282
|
+
ensureReady: (opts?: {
|
|
283
|
+
readyTimeoutMs?: number;
|
|
284
|
+
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
285
|
+
get: (opts?: {
|
|
286
|
+
showErrors?: boolean;
|
|
287
|
+
}) => Promise<P.ProjectSession>;
|
|
288
|
+
presence: (input: {
|
|
289
|
+
tab_id: string;
|
|
290
|
+
active: boolean;
|
|
291
|
+
alerts?: boolean;
|
|
292
|
+
}, options?: {
|
|
293
|
+
keepalive?: boolean;
|
|
294
|
+
}) => Promise<import("../../index.js").ApiResponse<{
|
|
295
|
+
ok: boolean;
|
|
296
|
+
}>>;
|
|
297
|
+
cost: () => Promise<P.SessionCostDetail>;
|
|
298
|
+
update: (input: Parameters<typeof P.updateProjectSession>[2]) => Promise<P.ProjectSession>;
|
|
299
|
+
delete: () => Promise<{
|
|
300
|
+
ok: boolean;
|
|
301
|
+
}>;
|
|
302
|
+
start: (options?: (number | {
|
|
303
|
+
waitMs?: number;
|
|
304
|
+
repositoryMode?: "previous";
|
|
305
|
+
keepStopped?: boolean;
|
|
306
|
+
intentAgeMs?: number;
|
|
307
|
+
}) | undefined) => Promise<P.SessionStartResult | null>;
|
|
308
|
+
startOrThrow: (options?: (number | {
|
|
309
|
+
waitMs?: number;
|
|
310
|
+
repositoryMode?: "previous";
|
|
311
|
+
keepStopped?: boolean;
|
|
312
|
+
intentAgeMs?: number;
|
|
313
|
+
}) | undefined) => Promise<P.SessionStartResult>;
|
|
314
|
+
restart: () => Promise<{
|
|
315
|
+
ok: boolean;
|
|
316
|
+
session_id: string;
|
|
317
|
+
status: string;
|
|
318
|
+
state_carried?: boolean | null;
|
|
319
|
+
warning?: string;
|
|
320
|
+
}>;
|
|
321
|
+
stop: () => Promise<{
|
|
322
|
+
ok: boolean;
|
|
323
|
+
session_id: string;
|
|
324
|
+
status: string;
|
|
325
|
+
}>;
|
|
326
|
+
configState: () => Promise<P.SessionConfigState>;
|
|
327
|
+
reloadConfig: (input?: Parameters<typeof P.reloadProjectSessionConfig>[2]) => Promise<P.SessionReloadResult>;
|
|
328
|
+
reloadConfigStream: (input: {
|
|
329
|
+
refresh_repo?: boolean;
|
|
330
|
+
force?: boolean;
|
|
331
|
+
}, onEvent: (event: P.SessionReloadStreamEvent) => void, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.SessionReloadResult>;
|
|
332
|
+
setSharing: (intent: Parameters<typeof P.setProjectSessionSharing>[2]) => Promise<P.ProjectSession>;
|
|
333
|
+
previews: () => Promise<{
|
|
334
|
+
candidates: P.SessionPreviewCandidate[];
|
|
335
|
+
}>;
|
|
336
|
+
participants: () => Promise<P.SessionParticipants>;
|
|
337
|
+
watch: () => Promise<{
|
|
338
|
+
watching: boolean;
|
|
339
|
+
}>;
|
|
340
|
+
setWatch: (watching: boolean) => Promise<{
|
|
341
|
+
watching: boolean;
|
|
342
|
+
}>;
|
|
343
|
+
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
344
|
+
publicShares: {
|
|
345
|
+
list: () => Promise<{
|
|
346
|
+
shares: P.SessionPublicShare[];
|
|
347
|
+
}>;
|
|
348
|
+
create: (input: P.CreateSessionPublicShareInput) => Promise<{
|
|
349
|
+
share: P.SessionPublicShare;
|
|
350
|
+
}>;
|
|
351
|
+
revoke: (shareId: string) => Promise<{
|
|
352
|
+
share: P.SessionPublicShare;
|
|
353
|
+
}>;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
modelDefaults: {
|
|
357
|
+
get: () => Promise<P.ModelDefaultsResponse>;
|
|
358
|
+
set: (input: Parameters<typeof P.setModelDefault>[1]) => Promise<{
|
|
359
|
+
ok: boolean;
|
|
360
|
+
scope: string;
|
|
361
|
+
agentName?: string;
|
|
362
|
+
model: string;
|
|
363
|
+
}>;
|
|
364
|
+
clear: (params: Parameters<typeof P.clearModelDefault>[1]) => Promise<{
|
|
365
|
+
ok: boolean;
|
|
366
|
+
}>;
|
|
367
|
+
};
|
|
368
|
+
setDefaultAgent: (agentName: string) => Promise<P.UpdateProjectDefaultAgentResponse>;
|
|
369
|
+
sandbox: {
|
|
370
|
+
list: () => Promise<P.SandboxTemplatesResponse>;
|
|
371
|
+
snapshots: () => Promise<P.ProjectSnapshotsResponse>;
|
|
372
|
+
rebuildSnapshot: (slug?: string) => Promise<P.RebuildSnapshotResponse>;
|
|
373
|
+
fixWithAgent: () => Promise<{
|
|
374
|
+
session_id: string;
|
|
375
|
+
}>;
|
|
376
|
+
createTemplate: (input: Parameters<typeof P.createSandboxTemplate>[1]) => Promise<{
|
|
377
|
+
template_id: string;
|
|
378
|
+
slug: string;
|
|
379
|
+
}>;
|
|
380
|
+
updateTemplate: (templateId: string, input: P.UpdateSandboxTemplateInput) => Promise<{
|
|
381
|
+
template_id: string;
|
|
382
|
+
slug: string;
|
|
383
|
+
}>;
|
|
384
|
+
removeTemplate: (templateId: string) => Promise<null>;
|
|
385
|
+
buildTemplate: (templateId: string) => Promise<{
|
|
386
|
+
status: "started";
|
|
387
|
+
template_id: string;
|
|
388
|
+
slug: string;
|
|
389
|
+
providers?: Array<"daytona" | "platinum" | "e2b">;
|
|
390
|
+
}>;
|
|
391
|
+
setProvider: (provider: Parameters<typeof P.updateProjectSandboxProvider>[1]) => Promise<P.UpdateProjectSandboxProviderResult>;
|
|
392
|
+
};
|
|
393
|
+
setAgentScope: (agentName: string, scope: {
|
|
394
|
+
env?: P.AgentGrantSet;
|
|
395
|
+
connectors?: P.AgentGrantSet;
|
|
396
|
+
connectors_required?: string[];
|
|
397
|
+
connectors_personal?: string[];
|
|
398
|
+
}) => Promise<{
|
|
399
|
+
ok: boolean;
|
|
400
|
+
agent: string;
|
|
401
|
+
env: P.AgentGrantSet;
|
|
402
|
+
connectors: P.AgentGrantSet;
|
|
403
|
+
connectors_required: string[];
|
|
404
|
+
}>;
|
|
405
|
+
channels: {
|
|
406
|
+
slack: {
|
|
407
|
+
installation: () => Promise<P.SlackInstallation | null>;
|
|
408
|
+
connect: (input: Parameters<typeof P.connectSlack>[1]) => Promise<P.SlackInstallation>;
|
|
409
|
+
mode: () => Promise<P.SlackMode>;
|
|
410
|
+
completeInstall: (input: Parameters<typeof P.completeSlackInstall>[1]) => Promise<P.ChannelInstallCompletion>;
|
|
411
|
+
manifest: () => Promise<Record<string, unknown>>;
|
|
412
|
+
disconnect: () => Promise<void>;
|
|
413
|
+
getFile: (url: string) => Promise<Blob>;
|
|
414
|
+
uploadFile: (input: Parameters<typeof P.uploadSlackChannelFile>[1]) => Promise<P.UploadSlackChannelFileResult>;
|
|
415
|
+
};
|
|
416
|
+
teams: {
|
|
417
|
+
completeInstall: (input: Parameters<typeof P.completeTeamsInstall>[1]) => Promise<P.ChannelInstallCompletion>;
|
|
418
|
+
};
|
|
419
|
+
email: {
|
|
420
|
+
installation: (connectorSlug?: string | null) => Promise<P.EmailInstallation | null>;
|
|
421
|
+
mode: () => Promise<P.EmailMode>;
|
|
422
|
+
connect: (input: Parameters<typeof P.connectEmail>[1]) => Promise<P.EmailInstallation>;
|
|
423
|
+
disconnect: (connectorSlug?: string | null) => Promise<void>;
|
|
424
|
+
updatePolicy: (connectorSlug: string | null | undefined, senderPolicy: P.EmailSenderPolicy) => Promise<P.EmailInstallation>;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
updateFeatureFlag: (feature: P.FeatureFlagKey, enabled: boolean | null) => Promise<P.BeeuniProject>;
|
|
428
|
+
updateExperimentalFeature: (feature: P.FeatureFlagKey, enabled: boolean | null) => Promise<P.BeeuniProject>;
|
|
429
|
+
gateway: {
|
|
430
|
+
logs: (opts?: Parameters<typeof P.listGatewayLogs>[1]) => Promise<P.GatewayLogsResponse>;
|
|
431
|
+
log: (logId: string) => Promise<P.GatewayLogDetail>;
|
|
432
|
+
overview: (days?: number) => Promise<P.GatewayOverview>;
|
|
433
|
+
series: (days?: number) => Promise<P.GatewaySeries>;
|
|
434
|
+
breakdown: (days?: number) => Promise<P.GatewayBreakdown>;
|
|
435
|
+
sessions: (days?: number) => Promise<P.GatewaySessions>;
|
|
436
|
+
errors: (days?: number) => Promise<P.GatewayErrorsResponse>;
|
|
437
|
+
budgets: () => Promise<P.GatewayBudgetsResponse>;
|
|
438
|
+
setBudget: (input: Parameters<typeof P.setGatewayBudget>[1]) => Promise<{
|
|
439
|
+
ok: boolean;
|
|
440
|
+
}>;
|
|
441
|
+
deleteBudget: (budgetId: string) => Promise<{
|
|
442
|
+
ok: boolean;
|
|
443
|
+
}>;
|
|
444
|
+
keys: () => Promise<{
|
|
445
|
+
keys: P.GatewayKeyRow[];
|
|
446
|
+
gateway_url?: string | null;
|
|
447
|
+
}>;
|
|
448
|
+
createKey: (name: string) => Promise<P.CreatedGatewayKey>;
|
|
449
|
+
revokeKey: (keyId: string) => Promise<{
|
|
450
|
+
ok: boolean;
|
|
451
|
+
}>;
|
|
452
|
+
routing: {
|
|
453
|
+
get: () => Promise<P.GatewayRoutingPolicyDocument>;
|
|
454
|
+
set: (policy: Parameters<typeof P.setGatewayRoutingPolicy>[1]) => Promise<P.GatewayRoutingPolicyDocument>;
|
|
455
|
+
reset: () => Promise<P.GatewayRoutingPolicyDocument>;
|
|
456
|
+
preview: (input: Parameters<typeof P.previewGatewayRoute>[1]) => Promise<P.GatewayRoutePreview>;
|
|
457
|
+
};
|
|
458
|
+
playground: (prompt: string, models: string[], system?: string) => Promise<P.GatewayPlaygroundResponse>;
|
|
459
|
+
};
|
|
460
|
+
sessions: {
|
|
461
|
+
list: (options?: Parameters<typeof P.listProjectSessions>[1]) => Promise<P.ProjectSession[]>;
|
|
462
|
+
listPage: (options?: Parameters<typeof P.listProjectSessionsPage>[1]) => Promise<P.ProjectSessionPage>;
|
|
463
|
+
create: (input?: Parameters<typeof P.createProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
464
|
+
ensureWarm: () => Promise<P.WarmProjectSessionResult>;
|
|
465
|
+
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
466
|
+
};
|
|
467
|
+
review: {
|
|
468
|
+
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<{
|
|
469
|
+
review_items: P.ApiReviewItem[];
|
|
470
|
+
}>;
|
|
471
|
+
get: (reviewItemId: string) => Promise<{
|
|
472
|
+
review_item: P.ApiReviewItem;
|
|
473
|
+
}>;
|
|
474
|
+
submit: (input: Parameters<typeof P.submitReviewItem>[1]) => Promise<P.ApiReviewItem>;
|
|
475
|
+
act: (reviewItemId: string, input: {
|
|
476
|
+
verdict: P.ReviewVerdict;
|
|
477
|
+
feedback?: string;
|
|
478
|
+
}) => Promise<P.ApiReviewItem>;
|
|
479
|
+
bulkAct: (input: Parameters<typeof P.bulkActReviewItems>[1]) => Promise<{
|
|
480
|
+
updated: number;
|
|
481
|
+
review_items: P.ApiReviewItem[];
|
|
482
|
+
}>;
|
|
483
|
+
};
|
|
484
|
+
approvals: {
|
|
485
|
+
list: (options?: Parameters<typeof P.listPendingApprovals>[1]) => Promise<P.PendingApprovalsResponse>;
|
|
486
|
+
resolve: (executionId: string, decision: "deny" | "approve", options?: P.ResolveApprovalOptions | undefined) => Promise<{
|
|
487
|
+
ok: boolean;
|
|
488
|
+
}>;
|
|
489
|
+
sessionsNeedingInput: (options?: Parameters<typeof P.listSessionsNeedingInput>[1]) => Promise<P.SessionsNeedingInputResponse>;
|
|
490
|
+
};
|
|
491
|
+
files: {
|
|
492
|
+
list: (options?: Parameters<typeof P.listProjectFiles>[1]) => Promise<P.ProjectFileEntry[]>;
|
|
493
|
+
listDirectory: (options?: Parameters<typeof P.listProjectDirectory>[1]) => Promise<P.ProjectDirectoryListing>;
|
|
494
|
+
read: (path: string, ref?: string) => Promise<{
|
|
495
|
+
path: string;
|
|
496
|
+
ref: string;
|
|
497
|
+
content: string;
|
|
498
|
+
}>;
|
|
499
|
+
search: (query: string, options?: {
|
|
500
|
+
content?: boolean;
|
|
501
|
+
ref?: string;
|
|
502
|
+
limit?: number;
|
|
503
|
+
} | undefined) => Promise<P.ProjectFileSearchResponse>;
|
|
504
|
+
archive: (ref: string, path?: string | undefined) => Promise<Blob>;
|
|
505
|
+
archiveRequest: (ref: string, path?: string | undefined) => Promise<import("../../index.js").AuthenticatedRequest>;
|
|
506
|
+
history: (path: string, options?: {
|
|
507
|
+
ref?: string;
|
|
508
|
+
limit?: number;
|
|
509
|
+
skip?: number;
|
|
510
|
+
} | undefined) => Promise<P.ProjectFileHistoryResponse>;
|
|
511
|
+
};
|
|
512
|
+
git: {
|
|
513
|
+
commits: () => Promise<P.ProjectCommitsResponse>;
|
|
514
|
+
commit: (sha: string) => Promise<P.ProjectCommitDetail>;
|
|
515
|
+
commitDiff: (sha: string) => Promise<P.ProjectCommitDiffResponse>;
|
|
516
|
+
branches: () => Promise<P.ProjectBranchesResponse>;
|
|
517
|
+
versionDiff: (input: {
|
|
518
|
+
from: string;
|
|
519
|
+
into: string;
|
|
520
|
+
}) => Promise<P.VersionDiffPreview>;
|
|
521
|
+
inviteCollaborator: (githubUsername: string, permission?: "read" | "write" | undefined) => Promise<P.RepoCollaboratorInvite>;
|
|
522
|
+
};
|
|
523
|
+
changeRequests: {
|
|
524
|
+
list: () => Promise<{
|
|
525
|
+
change_requests: P.ChangeRequest[];
|
|
526
|
+
}>;
|
|
527
|
+
get: (crId: string) => Promise<P.ChangeRequestDetailResponse>;
|
|
528
|
+
update: (crId: string, input: {
|
|
529
|
+
title?: string;
|
|
530
|
+
description?: string;
|
|
531
|
+
}) => Promise<P.ChangeRequest>;
|
|
532
|
+
diff: (crId: string) => Promise<P.ChangeRequestDiffResponse>;
|
|
533
|
+
mergePreview: (crId: string) => Promise<P.ChangeRequestMergePreview>;
|
|
534
|
+
open: (input: {
|
|
535
|
+
title: string;
|
|
536
|
+
description?: string;
|
|
537
|
+
head_ref: string;
|
|
538
|
+
base_ref?: string;
|
|
539
|
+
session_id?: string;
|
|
540
|
+
}) => Promise<P.ChangeRequest>;
|
|
541
|
+
merge: (crId: string, input?: {
|
|
542
|
+
message?: string;
|
|
543
|
+
} | undefined) => Promise<P.ChangeRequestMergeResponse>;
|
|
544
|
+
close: (crId: string) => Promise<P.ChangeRequest>;
|
|
545
|
+
reopen: (crId: string) => Promise<P.ChangeRequest>;
|
|
546
|
+
requestChanges: (crId: string, feedback: string) => Promise<{
|
|
547
|
+
change_request: P.ChangeRequest;
|
|
548
|
+
delivering: boolean;
|
|
549
|
+
}>;
|
|
550
|
+
};
|
|
551
|
+
policies: {
|
|
552
|
+
list: () => Promise<P.ProjectPoliciesResponse>;
|
|
553
|
+
set: (policies: P.ProjectPolicy[], defaultMode: P.PolicyDefaultMode) => Promise<{
|
|
554
|
+
ok: boolean;
|
|
555
|
+
sync?: P.ConnectorSyncResult;
|
|
556
|
+
}>;
|
|
557
|
+
};
|
|
558
|
+
reminders: {
|
|
559
|
+
list: () => Promise<{
|
|
560
|
+
reminders: P.ProjectReminder[];
|
|
561
|
+
}>;
|
|
562
|
+
updateMany: (reminders: readonly P.SessionReminderRef[], input: P.UpdateSessionReminderInput) => Promise<P.SessionReminderBatchResult>;
|
|
563
|
+
removeMany: (reminders: readonly P.SessionReminderRef[]) => Promise<P.SessionReminderBatchResult>;
|
|
564
|
+
};
|
|
565
|
+
triggers: {
|
|
566
|
+
list: () => Promise<P.ProjectTriggerListing>;
|
|
567
|
+
eventApps: () => Promise<P.ProjectTriggerEventApps>;
|
|
568
|
+
eventTypes: (params: {
|
|
569
|
+
connector: string;
|
|
570
|
+
} | {
|
|
571
|
+
app: string;
|
|
572
|
+
source?: string;
|
|
573
|
+
}) => Promise<P.ProjectTriggerEventTypes>;
|
|
574
|
+
create: (input: P.CreateProjectTriggerInput) => Promise<P.ProjectTriggerListing>;
|
|
575
|
+
update: (slug: string, input: P.UpdateProjectTriggerInput) => Promise<P.ProjectTriggerListing>;
|
|
576
|
+
remove: (slug: string) => Promise<{
|
|
577
|
+
ok: boolean;
|
|
578
|
+
}>;
|
|
579
|
+
fire: (slug: string) => Promise<P.FireProjectTriggerResponse>;
|
|
580
|
+
setActivation: (paused: boolean) => Promise<P.ProjectTriggerListing>;
|
|
581
|
+
};
|
|
582
|
+
connectors: {
|
|
583
|
+
list: () => Promise<P.ConnectorsResponse>;
|
|
584
|
+
config: (slug: string) => Promise<P.ConnectorConfig>;
|
|
585
|
+
create: (draft: P.ConnectorDraftInput) => Promise<{
|
|
586
|
+
ok: boolean;
|
|
587
|
+
sync?: P.ConnectorSyncResult;
|
|
588
|
+
authDiscovery?: P.ConnectorAuthDiscovery;
|
|
589
|
+
}>;
|
|
590
|
+
remove: (slug: string) => Promise<{
|
|
591
|
+
ok: boolean;
|
|
592
|
+
}>;
|
|
593
|
+
sync: () => Promise<P.ConnectorSyncResult>;
|
|
594
|
+
auth: {
|
|
595
|
+
discover: (draft: P.ConnectorDraftInput) => Promise<P.ConnectorAuthDiscovery>;
|
|
596
|
+
};
|
|
597
|
+
setName: (slug: string, name: string) => Promise<{
|
|
598
|
+
ok: boolean;
|
|
599
|
+
sync?: P.ConnectorSyncResult;
|
|
600
|
+
}>;
|
|
601
|
+
setCredentialMode: (slug: string, mode: "shared") => Promise<{
|
|
602
|
+
ok: boolean;
|
|
603
|
+
sync?: P.ConnectorSyncResult;
|
|
604
|
+
}>;
|
|
605
|
+
setAuthorizationStrategy: (slug: string, authorizationStrategy: P.ConnectorAuthorizationStrategy) => Promise<{
|
|
606
|
+
ok: boolean;
|
|
607
|
+
sync?: P.ConnectorSyncResult;
|
|
608
|
+
}>;
|
|
609
|
+
setCredential: (slug: string, credential: string | P.ConnectionCredentialInput) => Promise<{
|
|
610
|
+
ok: boolean;
|
|
611
|
+
}>;
|
|
612
|
+
deleteCredential: (slug: string) => Promise<{
|
|
613
|
+
ok: boolean;
|
|
614
|
+
}>;
|
|
615
|
+
setSensitive: (slug: string, sensitive: boolean) => Promise<{
|
|
616
|
+
ok: boolean;
|
|
617
|
+
sync?: P.ConnectorSyncResult;
|
|
618
|
+
}>;
|
|
619
|
+
connections: {
|
|
620
|
+
list: () => Promise<{
|
|
621
|
+
connections: P.Connection[];
|
|
622
|
+
}>;
|
|
623
|
+
listAll: () => Promise<{
|
|
624
|
+
connections: P.ConnectionRoster[];
|
|
625
|
+
}>;
|
|
626
|
+
reconcile: (input: P.ReconcileConnectionInput) => Promise<P.Connection>;
|
|
627
|
+
reconcileMember: (input: P.ReconcileMemberConnectionInput) => Promise<P.Connection>;
|
|
628
|
+
updateCredential: (connectionId: string, input: P.ConnectionCredentialInput) => Promise<{
|
|
629
|
+
ok: true;
|
|
630
|
+
}>;
|
|
631
|
+
revoke: (connectionId: string) => Promise<{
|
|
632
|
+
ok: true;
|
|
633
|
+
}>;
|
|
634
|
+
activate: (connectionId: string) => Promise<{
|
|
635
|
+
ok: true;
|
|
636
|
+
}>;
|
|
637
|
+
setDefault: (connectionId: string) => Promise<{
|
|
638
|
+
ok: true;
|
|
639
|
+
}>;
|
|
640
|
+
rename: (connectionId: string, label: string) => Promise<P.Connection>;
|
|
641
|
+
share: (connectionId: string, principals?: P.ConnectionSharePrincipal[] | undefined) => Promise<P.Connection>;
|
|
642
|
+
addComputer: (input: {
|
|
643
|
+
tunnelId: string;
|
|
644
|
+
share?: P.ConnectorConnectOwner;
|
|
645
|
+
}) => Promise<P.Connection>;
|
|
646
|
+
pipedreamConnect: (connectionId: string, input?: P.ConnectionConnectInput | undefined) => Promise<P.ConnectorConnectResult>;
|
|
647
|
+
pipedreamFinalize: (connectionId: string) => Promise<P.ConnectorFinalizeResult>;
|
|
648
|
+
};
|
|
649
|
+
policies: {
|
|
650
|
+
get: (slug: string) => Promise<{
|
|
651
|
+
policies: P.ConnectorPolicyRule[];
|
|
652
|
+
effective?: P.ConnectorEffectivePolicy[];
|
|
653
|
+
project_policies?: P.ConnectorPolicyRule[];
|
|
654
|
+
default_mode?: "risk" | "allow_all";
|
|
655
|
+
}>;
|
|
656
|
+
set: (slug: string, policies: P.ConnectorPolicyRule[]) => Promise<{
|
|
657
|
+
ok: boolean;
|
|
658
|
+
sync?: P.ConnectorSyncResult;
|
|
659
|
+
}>;
|
|
660
|
+
};
|
|
661
|
+
pipedream: {
|
|
662
|
+
listApps: (qOrQuery?: string | P.PipedreamCatalogQuery | undefined, cursor?: string | undefined) => Promise<P.PipedreamCatalogPage>;
|
|
663
|
+
listSections: (opts?: {
|
|
664
|
+
perCategory?: number;
|
|
665
|
+
maxCategories?: number;
|
|
666
|
+
} | undefined) => Promise<{
|
|
667
|
+
sections: P.PipedreamSection[];
|
|
668
|
+
categories: P.PipedreamCategory[];
|
|
669
|
+
indexReady?: boolean;
|
|
670
|
+
}>;
|
|
671
|
+
connect: (slug: string, options?: P.ConnectorConnectOptions | undefined) => Promise<P.ConnectorConnectResult>;
|
|
672
|
+
finalize: (slug: string, options?: P.ConnectorFinalizeOptions | undefined) => Promise<P.ConnectorFinalizeResult>;
|
|
673
|
+
};
|
|
674
|
+
discover: {
|
|
675
|
+
list: (qOrQuery?: string | P.DiscoverConnectorsQuery | undefined, cursor?: string | undefined) => Promise<P.DiscoverConnectorsPage>;
|
|
676
|
+
sections: (opts?: {
|
|
677
|
+
perCategory?: number;
|
|
678
|
+
maxCategories?: number;
|
|
679
|
+
} | undefined) => Promise<P.DiscoverSectionsPage>;
|
|
680
|
+
detail: (id: string) => Promise<P.DiscoverConnectorDetail>;
|
|
681
|
+
};
|
|
682
|
+
catalog: (options?: Parameters<typeof P.getConnectorCatalog>[1]) => Promise<P.ConnectorCatalogEntry[]>;
|
|
683
|
+
tools: () => Promise<P.ConnectorTool[]>;
|
|
684
|
+
search: (query?: string | undefined, options?: {
|
|
685
|
+
limit?: number;
|
|
686
|
+
} | undefined) => Promise<P.ConnectorTool[]>;
|
|
687
|
+
describe: (tool: string) => Promise<P.ConnectorTool | null>;
|
|
688
|
+
call: <T = unknown>(tool: string, args?: Record<string, unknown> | undefined, options?: P.ConnectorCallOptions | undefined) => Promise<P.ConnectorCallResult<T, unknown>>;
|
|
689
|
+
callAction: <S extends string, A extends string>(slug: S, action: A, args: P.ConnectorArgs<S, A>, options?: P.ConnectorCallOptions) => Promise<P.ConnectorCallResult<unknown, P.ConnectorResult<S, A>>>;
|
|
690
|
+
accounts: (slug: string) => Promise<P.ConnectorAccount[]>;
|
|
691
|
+
uploadAttachment: (content: Blob | ArrayBuffer | Uint8Array<ArrayBufferLike>, input: P.ConnectorAttachmentUploadInput) => Promise<P.ConnectorAttachmentUploadResult>;
|
|
692
|
+
};
|
|
693
|
+
tokens: {
|
|
694
|
+
list: () => Promise<P.ProjectCliTokenListResponse>;
|
|
695
|
+
create: (input?: Parameters<typeof P.createProjectCliToken>[1]) => Promise<P.CreatedProjectCliToken>;
|
|
696
|
+
revoke: (tokenId: string) => Promise<{
|
|
697
|
+
ok: boolean;
|
|
698
|
+
}>;
|
|
699
|
+
};
|
|
700
|
+
setupLinks: {
|
|
701
|
+
requestSecret: (input: Parameters<typeof P.requestProjectSecret>[1]) => Promise<P.SecretRequestLink>;
|
|
702
|
+
requestConnector: (input: Parameters<typeof P.requestProjectConnector>[1]) => Promise<P.ConnectorRequestLink>;
|
|
703
|
+
};
|
|
704
|
+
validateManifest: (raw: string) => Promise<P.ManifestValidationResult>;
|
|
705
|
+
gitToken: () => Promise<P.ProjectGitToken>;
|
|
706
|
+
agentIdentities: () => Promise<P.AgentIdentity[]>;
|
|
707
|
+
secrets: {
|
|
708
|
+
list: () => Promise<P.ProjectSecretsResponse>;
|
|
709
|
+
upsert: (input: Parameters<typeof P.upsertProjectSecret>[1]) => Promise<P.ProjectSecret>;
|
|
710
|
+
setStrategy: (identifier: string, strategy: P.SecretDeliveryStrategy, options?: P.UpdateSecretStrategyOptions | undefined) => Promise<P.ProjectSecret>;
|
|
711
|
+
broker: (identifier: string, input: P.SecretBrokerRequest) => Promise<P.SecretBrokerResponse>;
|
|
712
|
+
remove: (name: string) => Promise<{
|
|
713
|
+
ok: boolean;
|
|
714
|
+
}>;
|
|
715
|
+
setPersonal: (name: string, input: {
|
|
716
|
+
value?: string;
|
|
717
|
+
active?: boolean;
|
|
718
|
+
}) => Promise<P.ProjectSecret>;
|
|
719
|
+
removePersonal: (name: string) => Promise<{
|
|
720
|
+
ok: boolean;
|
|
721
|
+
}>;
|
|
722
|
+
setGitCredential: (input: Parameters<typeof P.upsertProjectGitCredential>[1]) => Promise<{
|
|
723
|
+
configured: boolean;
|
|
724
|
+
provider: string;
|
|
725
|
+
git_connection: P.ProjectGitConnection;
|
|
726
|
+
}>;
|
|
727
|
+
listProviderOAuth: () => Promise<P.ProviderOAuthCredential[]>;
|
|
728
|
+
startProviderOAuth: (provider: string, input?: {
|
|
729
|
+
sharing?: P.ConnectorSharing;
|
|
730
|
+
resourceLabel?: string;
|
|
731
|
+
resourceId?: string;
|
|
732
|
+
} | undefined) => Promise<P.ProviderOAuthStart>;
|
|
733
|
+
pollProviderOAuth: (provider: string, flowId: string) => Promise<P.ProviderOAuthPoll>;
|
|
734
|
+
removeProviderOAuth: (provider: string) => Promise<{
|
|
735
|
+
ok: boolean;
|
|
736
|
+
}>;
|
|
737
|
+
};
|
|
738
|
+
access: {
|
|
739
|
+
list: () => Promise<P.ProjectAccessResponse>;
|
|
740
|
+
invite: (email: string, role: P.ProjectRole, expiresAt?: string | null | undefined) => Promise<P.ProjectAccessMember | {
|
|
741
|
+
status: "invited";
|
|
742
|
+
email: string;
|
|
743
|
+
invite_id: string;
|
|
744
|
+
project_role: P.ProjectRole;
|
|
745
|
+
message: string;
|
|
746
|
+
invite_url: string;
|
|
747
|
+
email_sent: boolean;
|
|
748
|
+
email_skip_reason: string | null;
|
|
749
|
+
}>;
|
|
750
|
+
update: (userId: string, role: P.ProjectRole) => Promise<P.ProjectAccessMember>;
|
|
751
|
+
revoke: (userId: string) => Promise<{
|
|
752
|
+
ok: boolean;
|
|
753
|
+
}>;
|
|
754
|
+
pendingInvites: () => Promise<{
|
|
755
|
+
pending: P.PendingProjectInvite[];
|
|
756
|
+
}>;
|
|
757
|
+
resendInvite: (inviteId: string) => Promise<P.ResendProjectInviteResult>;
|
|
758
|
+
revokeInvite: (inviteId: string) => Promise<{
|
|
759
|
+
ok: boolean;
|
|
760
|
+
invitation_cancelled: boolean;
|
|
761
|
+
}>;
|
|
762
|
+
requests: () => Promise<{
|
|
763
|
+
requests: P.ProjectAccessRequest[];
|
|
764
|
+
}>;
|
|
765
|
+
approveRequest: (requestId: string, role?: P.ProjectRole | undefined) => Promise<{
|
|
766
|
+
request: P.ProjectAccessRequest;
|
|
767
|
+
member: P.ProjectAccessMember;
|
|
768
|
+
}>;
|
|
769
|
+
rejectRequest: (requestId: string) => Promise<{
|
|
770
|
+
request: P.ProjectAccessRequest;
|
|
771
|
+
}>;
|
|
772
|
+
groupGrants: () => Promise<{
|
|
773
|
+
grants: P.ProjectGroupGrant[];
|
|
774
|
+
}>;
|
|
775
|
+
attachGroupGrant: (groupId: string, role: P.ProjectRole, expiresAt?: string | null | undefined) => Promise<{
|
|
776
|
+
project_id: string;
|
|
777
|
+
group_id: string;
|
|
778
|
+
role: P.ProjectRole;
|
|
779
|
+
}>;
|
|
780
|
+
updateGroupGrant: (groupId: string, role: P.ProjectRole, expiresAt?: string | null | undefined) => Promise<{
|
|
781
|
+
project_id: string;
|
|
782
|
+
group_id: string;
|
|
783
|
+
role: P.ProjectRole;
|
|
784
|
+
}>;
|
|
785
|
+
detachGroupGrant: (groupId: string) => Promise<{
|
|
786
|
+
ok: boolean;
|
|
787
|
+
}>;
|
|
788
|
+
resourceGrants: {
|
|
789
|
+
list: () => Promise<P.ProjectResourceGrantsResponse>;
|
|
790
|
+
create: (input: Parameters<typeof P.createProjectResourceGrant>[1]) => Promise<{
|
|
791
|
+
grant_id: string;
|
|
792
|
+
}>;
|
|
793
|
+
remove: (grantId: string) => Promise<{
|
|
794
|
+
ok: boolean;
|
|
795
|
+
}>;
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
apps: {
|
|
799
|
+
list: () => Promise<P.App[]>;
|
|
800
|
+
create: (input: Parameters<typeof P.createApp>[1]) => Promise<P.App>;
|
|
801
|
+
get: (appId: string) => Promise<P.App>;
|
|
802
|
+
update: (appId: string, input: P.UpdateAppInput) => Promise<P.App>;
|
|
803
|
+
access: {
|
|
804
|
+
get: (appId: string) => Promise<P.AppAccessConfig>;
|
|
805
|
+
update: (appId: string, input: P.UpdateAppAccessInput) => Promise<P.AppAccessConfig>;
|
|
806
|
+
session: (appId: string) => Promise<P.AppAccessSession>;
|
|
807
|
+
agents: (appId: string) => Promise<P.AppAgentAccess[]>;
|
|
808
|
+
};
|
|
809
|
+
remove: (appId: string) => Promise<{
|
|
810
|
+
ok: boolean;
|
|
811
|
+
images?: P.AppImageRelease;
|
|
812
|
+
}>;
|
|
813
|
+
token: (appId: string) => Promise<P.AppToken>;
|
|
814
|
+
authEnv: (appId: string) => Promise<P.AppAuthEnv>;
|
|
815
|
+
artifacts: {
|
|
816
|
+
register: (input: Parameters<typeof P.registerAppArtifact>[1]) => Promise<P.RegisterAppArtifactResponse>;
|
|
817
|
+
uploadArchive: (input: Blob | Uint8Array<ArrayBufferLike>, options?: P.UploadAppArtifactOptions | undefined) => Promise<P.AppArtifact>;
|
|
818
|
+
finalize: (artifactId: string, input: P.FinalizeAppArtifactInput) => Promise<P.AppArtifact>;
|
|
819
|
+
};
|
|
820
|
+
deployments: {
|
|
821
|
+
create: (appId: string, input: P.CreateAppBuildInput) => Promise<P.AppDeployment>;
|
|
822
|
+
list: (appId: string) => Promise<P.AppDeployment[]>;
|
|
823
|
+
get: (appId: string, deploymentId: string) => Promise<P.AppDeploymentDetail>;
|
|
824
|
+
logs: (appId: string, deploymentId: string, options?: P.AppLogsOptions | undefined) => Promise<P.AppLogsResponse>;
|
|
825
|
+
remove: (appId: string, deploymentId: string) => Promise<P.DeleteAppDeploymentResult>;
|
|
826
|
+
};
|
|
827
|
+
start: (appId: string) => Promise<P.App>;
|
|
828
|
+
stop: (appId: string) => Promise<P.App>;
|
|
829
|
+
rollback: (appId: string, deploymentId: string) => Promise<P.AppRollback>;
|
|
830
|
+
machines: {
|
|
831
|
+
list: (appId: string) => Promise<P.AppMachine[]>;
|
|
832
|
+
start: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
833
|
+
stop: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
834
|
+
restart: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
835
|
+
destroy: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
836
|
+
};
|
|
837
|
+
scale: (appId: string, count: Record<string, number>) => Promise<{
|
|
838
|
+
scale: Record<string, number>;
|
|
839
|
+
machines: P.AppMachine[];
|
|
840
|
+
}>;
|
|
841
|
+
exec: (appId: string, input: P.AppExecInput) => Promise<P.AppExecResult>;
|
|
842
|
+
volumes: {
|
|
843
|
+
list: (appId: string) => Promise<P.AppVolume[]>;
|
|
844
|
+
create: (appId: string, input: P.CreateAppVolumeInput) => Promise<P.AppVolume>;
|
|
845
|
+
update: (appId: string, volumeId: string, input: {
|
|
846
|
+
size_gb?: number;
|
|
847
|
+
snapshot_retention_days?: number;
|
|
848
|
+
}) => Promise<P.AppVolume>;
|
|
849
|
+
destroy: (appId: string, volumeId: string, confirmName: string) => Promise<void>;
|
|
850
|
+
snapshots: (appId: string, volumeId: string) => Promise<P.AppVolumeSnapshot[]>;
|
|
851
|
+
snapshot: (appId: string, volumeId: string) => Promise<P.AppVolumeSnapshot>;
|
|
852
|
+
restore: (appId: string, volumeId: string, snapshotId: string) => Promise<P.AppVolume>;
|
|
853
|
+
fork: (appId: string, volumeId: string, input: {
|
|
854
|
+
name: string;
|
|
855
|
+
snapshot_id?: string;
|
|
856
|
+
}) => Promise<P.AppVolume>;
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
attachments: {
|
|
860
|
+
upload: (file: File, options?: P.PromptAttachmentUploadOptions | undefined) => Promise<P.PromptAttachment>;
|
|
861
|
+
delete: (attachmentId: string, options?: {
|
|
862
|
+
signal?: AbortSignal;
|
|
863
|
+
} | undefined) => Promise<void>;
|
|
864
|
+
createController: (options?: Parameters<typeof import("../../index.js").createPromptAttachmentController>[1]) => import("../../index.js").PromptAttachmentController;
|
|
865
|
+
};
|
|
866
|
+
get: (opts?: Parameters<typeof P.getProject>[1]) => Promise<P.BeeuniProject>;
|
|
867
|
+
detail: () => Promise<{
|
|
868
|
+
config: {
|
|
869
|
+
default_agent: string | null;
|
|
870
|
+
is_beeuni_repo: boolean;
|
|
871
|
+
signals: Record<string, boolean>;
|
|
872
|
+
manifest_raw: string | null;
|
|
873
|
+
open_code_raw: string | null;
|
|
874
|
+
open_code_default_agent: string | null;
|
|
875
|
+
agent_discovery: "opencode" | "declarative";
|
|
876
|
+
agents: Array<{
|
|
877
|
+
name: string;
|
|
878
|
+
path: string;
|
|
879
|
+
description: string | null;
|
|
880
|
+
mode: string | null;
|
|
881
|
+
model?: string | null;
|
|
882
|
+
source?: "opencode" | "beeuni.toml";
|
|
883
|
+
enabled?: boolean;
|
|
884
|
+
platform?: boolean;
|
|
885
|
+
sandbox?: string | null;
|
|
886
|
+
scope?: {
|
|
887
|
+
env: string[] | "all";
|
|
888
|
+
connectors: string[] | "all";
|
|
889
|
+
beeuni_permissions?: string[] | "all";
|
|
890
|
+
beeuni_cli: string[] | "all";
|
|
891
|
+
apps?: string[] | "all";
|
|
892
|
+
};
|
|
893
|
+
}>;
|
|
894
|
+
skills: Array<{
|
|
895
|
+
name: string;
|
|
896
|
+
path: string;
|
|
897
|
+
description: string | null;
|
|
898
|
+
}>;
|
|
899
|
+
commands: Array<{
|
|
900
|
+
name: string;
|
|
901
|
+
path: string;
|
|
902
|
+
description: string | null;
|
|
903
|
+
}>;
|
|
904
|
+
env: {
|
|
905
|
+
required: string[];
|
|
906
|
+
optional: string[];
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
project: P.BeeuniProject;
|
|
910
|
+
git_connection?: P.ProjectGitConnection | null;
|
|
911
|
+
file_count: number;
|
|
912
|
+
files: P.ProjectFileEntry[];
|
|
913
|
+
}>;
|
|
914
|
+
skills: {
|
|
915
|
+
create: (input: P.CreateProjectSkillInput, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.CreatedProjectSkill>;
|
|
916
|
+
};
|
|
917
|
+
audit: (options?: Parameters<typeof P.listProjectAudit>[1]) => Promise<P.AuditEventList>;
|
|
918
|
+
update: (input: Parameters<typeof P.updateProject>[1]) => Promise<P.BeeuniProject>;
|
|
919
|
+
archive: () => Promise<{
|
|
920
|
+
ok: boolean;
|
|
921
|
+
}>;
|
|
922
|
+
llmCatalog: () => Promise<P.ProjectLlmCatalogResponse>;
|
|
923
|
+
modelPicker: () => Promise<P.ProjectLlmCatalogResponse>;
|
|
924
|
+
modelAccess: () => Promise<P.ProjectModelAccess>;
|
|
925
|
+
setModelAccess: (change: P.ProjectModelAccessChange) => Promise<P.ProjectModelAccess>;
|
|
926
|
+
sandboxHealth: () => Promise<P.ProjectSandboxHealth>;
|
|
927
|
+
onboardingComplete: (completed: boolean) => Promise<P.BeeuniProject>;
|
|
928
|
+
};
|
|
929
|
+
session: (projectId: string, sessionId: string) => {
|
|
930
|
+
runtime: RuntimeClient;
|
|
931
|
+
messages: (options?: {
|
|
932
|
+
conversationId?: string;
|
|
933
|
+
limit?: number;
|
|
934
|
+
before?: string;
|
|
935
|
+
signal?: AbortSignal;
|
|
936
|
+
}) => Promise<import("../session/index.js").TranscriptPage>;
|
|
937
|
+
pending: () => Promise<import("../session/index.js").PendingInteractions>;
|
|
938
|
+
answerPermission: (requestId: string, reply: import("../../index.js").RuntimePermissionReply, message?: string) => Promise<void>;
|
|
939
|
+
answerQuestion: (requestId: string, answers: import("../../index.js").RuntimeQuestionAnswer[] | null) => Promise<void>;
|
|
940
|
+
compact: (model?: {
|
|
941
|
+
providerID: string;
|
|
942
|
+
modelID: string;
|
|
943
|
+
}) => Promise<{
|
|
944
|
+
providerID: string;
|
|
945
|
+
modelID: string;
|
|
946
|
+
}>;
|
|
947
|
+
files: {
|
|
948
|
+
list: (dirPath: string) => Promise<import("../../index.js").FileNode[]>;
|
|
949
|
+
read: (filePath: string) => Promise<import("../../index.js").FileContent>;
|
|
950
|
+
readBlob: (filePath: string) => Promise<Blob>;
|
|
951
|
+
status: () => Promise<import("../../index.js").GitFileStatus[]>;
|
|
952
|
+
findFiles: (query: string, options?: {
|
|
953
|
+
type?: "file" | "directory";
|
|
954
|
+
limit?: number;
|
|
955
|
+
}) => Promise<string[]>;
|
|
956
|
+
findText: (pattern: string) => Promise<import("../../index.js").FindMatch[]>;
|
|
957
|
+
upload: (file: File | Blob, targetPath?: string, filename?: string, options?: import("../../index.js").UploadFileOptions) => Promise<import("../../index.js").UploadResult[]>;
|
|
958
|
+
write: (filePath: string, content: Blob | File) => Promise<import("../../index.js").WriteFileResult>;
|
|
959
|
+
create: (filePath: string) => Promise<import("../../index.js").UploadResult[]>;
|
|
960
|
+
copy: (sourcePath: string, destPath: string) => Promise<import("../../index.js").UploadResult[]>;
|
|
961
|
+
remove: (filePath: string) => Promise<boolean>;
|
|
962
|
+
mkdir: (dirPath: string) => Promise<boolean>;
|
|
963
|
+
rename: (from: string, to: string) => Promise<boolean>;
|
|
964
|
+
};
|
|
965
|
+
abort: () => Promise<({
|
|
966
|
+
data: undefined;
|
|
967
|
+
error: unknown;
|
|
968
|
+
} | {
|
|
969
|
+
data: boolean;
|
|
970
|
+
error: undefined;
|
|
971
|
+
}) & {
|
|
972
|
+
request: Request;
|
|
973
|
+
response: Response;
|
|
974
|
+
}>;
|
|
975
|
+
rewind: (messageId: string) => Promise<({
|
|
976
|
+
data: undefined;
|
|
977
|
+
error: unknown;
|
|
978
|
+
} | {
|
|
979
|
+
data: import("../../index.js").Session;
|
|
980
|
+
error: undefined;
|
|
981
|
+
}) & {
|
|
982
|
+
request: Request;
|
|
983
|
+
response: Response;
|
|
984
|
+
}>;
|
|
985
|
+
restoreRewind: () => Promise<({
|
|
986
|
+
data: undefined;
|
|
987
|
+
error: unknown;
|
|
988
|
+
} | {
|
|
989
|
+
data: import("../../index.js").Session;
|
|
990
|
+
error: undefined;
|
|
991
|
+
}) & {
|
|
992
|
+
request: Request;
|
|
993
|
+
response: Response;
|
|
994
|
+
}>;
|
|
995
|
+
stream: (opts: {
|
|
996
|
+
onEvent: (event: import("../../index.js").RuntimeEvent) => void;
|
|
997
|
+
onGapRehydrate?: (gapMs: number) => void;
|
|
998
|
+
signal?: AbortSignal;
|
|
999
|
+
}) => Promise<import("../../index.js").EventStreamHandle>;
|
|
1000
|
+
scope: () => Promise<P.SessionScope>;
|
|
1001
|
+
providerSecretPool: {
|
|
1002
|
+
list: () => Promise<{
|
|
1003
|
+
pools: P.SessionProviderSecretPool[];
|
|
1004
|
+
can_edit: boolean;
|
|
1005
|
+
personal_user_id?: string | null;
|
|
1006
|
+
personal_keys_reason?: "shared" | "prompted_by_another_member" | "no_person" | null;
|
|
1007
|
+
}>;
|
|
1008
|
+
get: (providerId: string) => Promise<P.SessionProviderSecretPool>;
|
|
1009
|
+
set: (providerId: string, secretIds: string[] | null) => Promise<P.SessionProviderSecretPool>;
|
|
1010
|
+
};
|
|
1011
|
+
rescope: (scope: P.SessionScopeInput) => Promise<P.SessionScope>;
|
|
1012
|
+
setAgent: (agent: string | undefined) => void;
|
|
1013
|
+
send: (text: string, opts?: {
|
|
1014
|
+
model?: import("./session-shared.js").SessionModel;
|
|
1015
|
+
agent?: string;
|
|
1016
|
+
}) => Promise<P.CreateSessionPromptResult>;
|
|
1017
|
+
setModel: (model: import("./session-shared.js").SessionModel | undefined) => void;
|
|
1018
|
+
changeModel: (model: string) => Promise<P.SessionModelChangeResult>;
|
|
1019
|
+
health: (init?: RequestInit) => Promise<import("../session/index.js").SessionHealthResult>;
|
|
1020
|
+
previewUrl: (port: number, path?: string) => string;
|
|
1021
|
+
proxyUrl: (url?: string) => string | undefined;
|
|
1022
|
+
sandboxPortUrl: (port: number) => string;
|
|
1023
|
+
reminders: {
|
|
1024
|
+
list: () => Promise<{
|
|
1025
|
+
reminders: P.SessionReminder[];
|
|
1026
|
+
}>;
|
|
1027
|
+
create: (input: Parameters<typeof P.createSessionReminder>[2]) => Promise<P.SessionReminder>;
|
|
1028
|
+
update: (reminderId: string, input: Parameters<typeof P.updateSessionReminder>[3]) => Promise<P.SessionReminder>;
|
|
1029
|
+
remove: (reminderId: string) => Promise<{
|
|
1030
|
+
ok: boolean;
|
|
1031
|
+
}>;
|
|
1032
|
+
};
|
|
1033
|
+
audit: (limit?: number, options?: Parameters<typeof P.getSessionAudit>[3]) => Promise<P.SessionAudit>;
|
|
1034
|
+
attachments: {
|
|
1035
|
+
upload: (file: File, options?: Parameters<typeof P.uploadSessionAttachment>[3]) => Promise<P.SessionAttachment>;
|
|
1036
|
+
read: (attachmentId: string, signal?: AbortSignal) => Promise<Blob>;
|
|
1037
|
+
};
|
|
1038
|
+
transcript: (options?: Parameters<typeof P.getSessionTranscript>[2]) => Promise<P.SessionTranscript>;
|
|
1039
|
+
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
1040
|
+
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
1041
|
+
transcriptSync: (options?: Parameters<typeof P.getSessionTranscriptSync>[2]) => Promise<P.SessionTranscriptSyncEnvelope>;
|
|
1042
|
+
turn: () => Promise<P.SessionTurnStatus>;
|
|
1043
|
+
prompts: {
|
|
1044
|
+
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
1045
|
+
list: () => Promise<{
|
|
1046
|
+
prompts: P.SessionPrompt[];
|
|
1047
|
+
observed_at?: string;
|
|
1048
|
+
}>;
|
|
1049
|
+
remove: (promptId: string) => Promise<P.RemovedSessionPrompt>;
|
|
1050
|
+
retry: (promptId: string) => Promise<P.SessionPrompt>;
|
|
1051
|
+
edit: (promptId: string, text: string) => Promise<P.SessionPrompt>;
|
|
1052
|
+
interrupt: (promptId: string) => Promise<P.SessionPrompt>;
|
|
1053
|
+
hold: (held: boolean) => Promise<{
|
|
1054
|
+
prompts: P.SessionPrompt[];
|
|
1055
|
+
observed_at?: string;
|
|
1056
|
+
}>;
|
|
1057
|
+
};
|
|
1058
|
+
ensureReady: (opts?: {
|
|
1059
|
+
readyTimeoutMs?: number;
|
|
1060
|
+
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
1061
|
+
get: (opts?: {
|
|
1062
|
+
showErrors?: boolean;
|
|
1063
|
+
}) => Promise<P.ProjectSession>;
|
|
1064
|
+
presence: (input: {
|
|
1065
|
+
tab_id: string;
|
|
1066
|
+
active: boolean;
|
|
1067
|
+
alerts?: boolean;
|
|
1068
|
+
}, options?: {
|
|
1069
|
+
keepalive?: boolean;
|
|
1070
|
+
}) => Promise<import("../../index.js").ApiResponse<{
|
|
1071
|
+
ok: boolean;
|
|
1072
|
+
}>>;
|
|
1073
|
+
cost: () => Promise<P.SessionCostDetail>;
|
|
1074
|
+
update: (input: Parameters<typeof P.updateProjectSession>[2]) => Promise<P.ProjectSession>;
|
|
1075
|
+
delete: () => Promise<{
|
|
1076
|
+
ok: boolean;
|
|
1077
|
+
}>;
|
|
1078
|
+
start: (options?: (number | {
|
|
1079
|
+
waitMs?: number;
|
|
1080
|
+
repositoryMode?: "previous";
|
|
1081
|
+
keepStopped?: boolean;
|
|
1082
|
+
intentAgeMs?: number;
|
|
1083
|
+
}) | undefined) => Promise<P.SessionStartResult | null>;
|
|
1084
|
+
startOrThrow: (options?: (number | {
|
|
1085
|
+
waitMs?: number;
|
|
1086
|
+
repositoryMode?: "previous";
|
|
1087
|
+
keepStopped?: boolean;
|
|
1088
|
+
intentAgeMs?: number;
|
|
1089
|
+
}) | undefined) => Promise<P.SessionStartResult>;
|
|
1090
|
+
restart: () => Promise<{
|
|
1091
|
+
ok: boolean;
|
|
1092
|
+
session_id: string;
|
|
1093
|
+
status: string;
|
|
1094
|
+
state_carried?: boolean | null;
|
|
1095
|
+
warning?: string;
|
|
1096
|
+
}>;
|
|
1097
|
+
stop: () => Promise<{
|
|
1098
|
+
ok: boolean;
|
|
1099
|
+
session_id: string;
|
|
1100
|
+
status: string;
|
|
1101
|
+
}>;
|
|
1102
|
+
configState: () => Promise<P.SessionConfigState>;
|
|
1103
|
+
reloadConfig: (input?: Parameters<typeof P.reloadProjectSessionConfig>[2]) => Promise<P.SessionReloadResult>;
|
|
1104
|
+
reloadConfigStream: (input: {
|
|
1105
|
+
refresh_repo?: boolean;
|
|
1106
|
+
force?: boolean;
|
|
1107
|
+
}, onEvent: (event: P.SessionReloadStreamEvent) => void, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.SessionReloadResult>;
|
|
1108
|
+
setSharing: (intent: Parameters<typeof P.setProjectSessionSharing>[2]) => Promise<P.ProjectSession>;
|
|
1109
|
+
previews: () => Promise<{
|
|
1110
|
+
candidates: P.SessionPreviewCandidate[];
|
|
1111
|
+
}>;
|
|
1112
|
+
participants: () => Promise<P.SessionParticipants>;
|
|
1113
|
+
watch: () => Promise<{
|
|
1114
|
+
watching: boolean;
|
|
1115
|
+
}>;
|
|
1116
|
+
setWatch: (watching: boolean) => Promise<{
|
|
1117
|
+
watching: boolean;
|
|
1118
|
+
}>;
|
|
1119
|
+
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
1120
|
+
publicShares: {
|
|
1121
|
+
list: () => Promise<{
|
|
1122
|
+
shares: P.SessionPublicShare[];
|
|
1123
|
+
}>;
|
|
1124
|
+
create: (input: P.CreateSessionPublicShareInput) => Promise<{
|
|
1125
|
+
share: P.SessionPublicShare;
|
|
1126
|
+
}>;
|
|
1127
|
+
revoke: (shareId: string) => Promise<{
|
|
1128
|
+
share: P.SessionPublicShare;
|
|
1129
|
+
}>;
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
github: {
|
|
1133
|
+
linkRepository: typeof P.linkRepository;
|
|
1134
|
+
replaceProjectRepository: typeof P.replaceProjectRepository;
|
|
1135
|
+
getInstallation: typeof P.getGitHubInstallation;
|
|
1136
|
+
listInstallations: typeof P.listGitHubInstallations;
|
|
1137
|
+
listLinkableInstallations: typeof P.listLinkableGitHubInstallations;
|
|
1138
|
+
listRepositories: typeof P.listGitHubRepositories;
|
|
1139
|
+
listRepositoryBranches: typeof P.listGitHubRepositoryBranches;
|
|
1140
|
+
linkInstallation: typeof P.linkGitHubInstallation;
|
|
1141
|
+
saveInstallation: typeof P.saveGitHubInstallation;
|
|
1142
|
+
deleteInstallation: typeof P.deleteGitHubInstallation;
|
|
1143
|
+
storeUserToken: typeof P.storeGitHubUserToken;
|
|
1144
|
+
};
|
|
1145
|
+
gitBackend: {
|
|
1146
|
+
get: typeof P.getManagedGitBackend;
|
|
1147
|
+
repositories: typeof P.listManagedGitRepositories;
|
|
1148
|
+
};
|
|
1149
|
+
billing: {
|
|
1150
|
+
accountState: typeof P.getAccountState;
|
|
1151
|
+
accountStateMinimal: typeof P.getAccountStateMinimal;
|
|
1152
|
+
transactions: typeof P.listBillingTransactions;
|
|
1153
|
+
transactionsSummary: typeof P.getBillingTransactionsSummary;
|
|
1154
|
+
creditBreakdown: typeof P.getBillingCreditBreakdown;
|
|
1155
|
+
usageHistory: typeof P.getBillingUsageHistory;
|
|
1156
|
+
usageRollup: typeof P.getUsageRollup;
|
|
1157
|
+
sessionCosts: {
|
|
1158
|
+
list: typeof P.listSessionCosts;
|
|
1159
|
+
get: typeof P.getSessionCostRecord;
|
|
1160
|
+
};
|
|
1161
|
+
tierConfigurations: typeof P.getBillingTierConfigurations;
|
|
1162
|
+
checkout: {
|
|
1163
|
+
createSession: (input: Parameters<typeof P.createCheckoutSession>[0]) => Promise<P.CheckoutSessionResult>;
|
|
1164
|
+
confirmSession: (sessionId: string, accountId?: string) => Promise<P.ConfirmCheckoutSessionResult>;
|
|
1165
|
+
};
|
|
1166
|
+
subscription: {
|
|
1167
|
+
createPortalSession: (returnUrl: string, accountId?: string) => Promise<P.PortalSessionResult>;
|
|
1168
|
+
cancel: (feedback?: string, accountId?: string) => Promise<P.SubscriptionMutationResult>;
|
|
1169
|
+
reactivate: (accountId?: string) => Promise<P.SubscriptionMutationResult>;
|
|
1170
|
+
scheduleDowngrade: (targetTierKey: string, commitmentType?: string, accountId?: string) => Promise<P.SubscriptionMutationResult>;
|
|
1171
|
+
cancelScheduledChange: (accountId?: string) => Promise<P.SubscriptionMutationResult>;
|
|
1172
|
+
prorationPreview: (newPriceId: string, accountId?: string) => Promise<P.ProrationPreviewResult>;
|
|
1173
|
+
};
|
|
1174
|
+
credits: {
|
|
1175
|
+
purchase: (input: Parameters<typeof P.purchaseCredits>[0]) => Promise<P.PurchaseCreditsResult>;
|
|
1176
|
+
autoTopupSettings: (accountId?: string) => Promise<P.AutoTopupSettings>;
|
|
1177
|
+
configureAutoTopup: (input: Parameters<typeof P.configureAutoTopup>[0]) => Promise<P.AutoTopupSettings>;
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
sandboxShares: {
|
|
1181
|
+
list: typeof P.listSandboxShares;
|
|
1182
|
+
create: typeof P.createSandboxShare;
|
|
1183
|
+
revoke: typeof P.revokeSandboxShare;
|
|
1184
|
+
};
|
|
1185
|
+
connectStatus: typeof P.getConnectStatus;
|
|
1186
|
+
marketplace: {
|
|
1187
|
+
items: (options?: Parameters<typeof P.listMarketplaceCatalogItems>[0]) => Promise<P.MarketplaceItemsResponse>;
|
|
1188
|
+
item: (id: string) => Promise<Record<string, unknown>>;
|
|
1189
|
+
itemFile: (id: string, path: string) => Promise<P.MarketplaceItemFile>;
|
|
1190
|
+
marketplaces: () => Promise<P.MarketplacesResponse>;
|
|
1191
|
+
featured: () => Promise<P.FeaturedMarketplacesResponse>;
|
|
1192
|
+
sources: {
|
|
1193
|
+
list: () => Promise<P.MarketplaceSourcesResponse>;
|
|
1194
|
+
add: (input: Parameters<typeof P.addMarketplaceSource>[0]) => Promise<P.AddMarketplaceSourceResponse>;
|
|
1195
|
+
remove: (id: string) => Promise<{
|
|
1196
|
+
ok: boolean;
|
|
1197
|
+
}>;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
notifications: {
|
|
1201
|
+
registerDeviceToken: typeof P.registerDeviceToken;
|
|
1202
|
+
unregisterDeviceToken: typeof P.unregisterDeviceToken;
|
|
1203
|
+
list: typeof P.listNotifications;
|
|
1204
|
+
markRead: typeof P.markNotificationsRead;
|
|
1205
|
+
preferences: typeof P.getNotificationPreferences;
|
|
1206
|
+
updatePreferences: typeof P.updateNotificationPreferences;
|
|
1207
|
+
webPushPublicKey: typeof P.getWebPushPublicKey;
|
|
1208
|
+
registerWebPushSubscription: typeof P.registerWebPushSubscription;
|
|
1209
|
+
unregisterWebPushSubscription: typeof P.unregisterWebPushSubscription;
|
|
1210
|
+
};
|
|
1211
|
+
validateToken: typeof P.validateToken;
|
|
1212
|
+
runtime: typeof runtime;
|
|
1213
|
+
};
|
|
1214
|
+
export type Beeuni = ReturnType<typeof createBeeuni>;
|
|
1215
|
+
export type ProjectHandle = ReturnType<Beeuni['project']>;
|
|
1216
|
+
export type SessionHandle = ReturnType<Beeuni['session']>;
|