@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,47 @@
|
|
|
1
|
+
export declare const SANDBOX_PORTS: {
|
|
2
|
+
readonly DESKTOP: "6080";
|
|
3
|
+
readonly DESKTOP_HTTPS: "6081";
|
|
4
|
+
readonly PRESENTATION_VIEWER: "3210";
|
|
5
|
+
readonly STATIC_FILE_SERVER: "3211";
|
|
6
|
+
readonly BEEUNI_MASTER: "8000";
|
|
7
|
+
readonly BROWSER_STREAM: "9223";
|
|
8
|
+
readonly BROWSER_VIEWER: "9224";
|
|
9
|
+
readonly SSH: "22";
|
|
10
|
+
};
|
|
11
|
+
export type SandboxProviderName = 'daytona' | 'platinum' | 'e2b';
|
|
12
|
+
export type ServerTypeOption = string;
|
|
13
|
+
export interface SandboxCreateProgress {
|
|
14
|
+
status: 'pulling';
|
|
15
|
+
progress: number;
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SandboxInfo {
|
|
19
|
+
sandbox_id: string;
|
|
20
|
+
external_id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
provider: SandboxProviderName;
|
|
23
|
+
base_url: string;
|
|
24
|
+
status: string;
|
|
25
|
+
lifecycle_status?: string;
|
|
26
|
+
init_status?: 'pending' | 'provisioning' | 'retrying' | 'ready' | 'failed';
|
|
27
|
+
health_status?: 'healthy' | 'degraded' | 'offline' | 'unknown';
|
|
28
|
+
init_attempts?: number;
|
|
29
|
+
last_init_error?: string | null;
|
|
30
|
+
version?: string | null;
|
|
31
|
+
metadata?: Record<string, unknown>;
|
|
32
|
+
is_included?: boolean;
|
|
33
|
+
stripe_subscription_id?: string | null;
|
|
34
|
+
stripe_subscription_item_id?: string | null;
|
|
35
|
+
cancel_at_period_end?: boolean;
|
|
36
|
+
cancel_at?: string | null;
|
|
37
|
+
auto_update_enabled?: boolean;
|
|
38
|
+
auto_update_channel?: 'stable' | 'dev';
|
|
39
|
+
auto_update?: Record<string, unknown>;
|
|
40
|
+
created_at: string;
|
|
41
|
+
updated_at: string;
|
|
42
|
+
can_manage?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface ProvidersInfo {
|
|
45
|
+
providers: SandboxProviderName[];
|
|
46
|
+
default: SandboxProviderName;
|
|
47
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { SandboxInfo } from './types.js';
|
|
2
|
+
export interface ChangelogChange {
|
|
3
|
+
type: 'feature' | 'fix' | 'improvement' | 'breaking' | 'upstream' | 'security' | 'deprecation';
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ChangelogArtifact {
|
|
7
|
+
name: string;
|
|
8
|
+
target: 'npm' | 'docker-hub' | 'github-release' | 'daytona';
|
|
9
|
+
}
|
|
10
|
+
export interface ChangelogEntry {
|
|
11
|
+
version: string;
|
|
12
|
+
date: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
changes: ChangelogChange[];
|
|
16
|
+
artifacts?: ChangelogArtifact[];
|
|
17
|
+
channel?: 'stable' | 'dev';
|
|
18
|
+
sha?: string;
|
|
19
|
+
author?: string;
|
|
20
|
+
}
|
|
21
|
+
export type VersionChannel = 'stable' | 'dev';
|
|
22
|
+
export interface VersionEntry {
|
|
23
|
+
version: string;
|
|
24
|
+
channel: VersionChannel;
|
|
25
|
+
date: string;
|
|
26
|
+
title: string;
|
|
27
|
+
body?: string;
|
|
28
|
+
sha?: string;
|
|
29
|
+
current: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface AllVersionsResponse {
|
|
32
|
+
versions: VersionEntry[];
|
|
33
|
+
current: {
|
|
34
|
+
version: string;
|
|
35
|
+
channel: VersionChannel;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface SandboxVersionInfo {
|
|
39
|
+
version: string;
|
|
40
|
+
channel?: string;
|
|
41
|
+
date?: string;
|
|
42
|
+
sha?: string;
|
|
43
|
+
changelog: ChangelogEntry | null;
|
|
44
|
+
}
|
|
45
|
+
export interface SandboxUpdateResult {
|
|
46
|
+
success?: boolean;
|
|
47
|
+
upToDate?: boolean;
|
|
48
|
+
previousVersion?: string;
|
|
49
|
+
currentVersion: string;
|
|
50
|
+
changelog?: ChangelogEntry | null;
|
|
51
|
+
output?: string;
|
|
52
|
+
error?: string;
|
|
53
|
+
}
|
|
54
|
+
export type UpdatePhase = 'idle' | 'backing_up' | 'pulling' | 'patching' | 'stopping' | 'removing' | 'recreating' | 'restarting' | 'verifying' | 'starting' | 'health_check' | 'complete' | 'failed';
|
|
55
|
+
export interface SandboxUpdateStatus {
|
|
56
|
+
phase: UpdatePhase;
|
|
57
|
+
progress: number;
|
|
58
|
+
message: string;
|
|
59
|
+
targetVersion: string | null;
|
|
60
|
+
previousVersion: string | null;
|
|
61
|
+
currentVersion: string | null;
|
|
62
|
+
error: string | null;
|
|
63
|
+
startedAt: string | null;
|
|
64
|
+
updatedAt: string | null;
|
|
65
|
+
backupId?: string | null;
|
|
66
|
+
cancelRequested?: boolean;
|
|
67
|
+
diagnostics?: Record<string, string | number | boolean | null>;
|
|
68
|
+
}
|
|
69
|
+
export declare const DESTRUCTIVE_PHASES: UpdatePhase[];
|
|
70
|
+
export declare function isDestructivePhase(phase: UpdatePhase): boolean;
|
|
71
|
+
export declare function getSandboxUpdateStatus(sandbox?: SandboxInfo): Promise<SandboxUpdateStatus>;
|
|
72
|
+
export declare function getLatestSandboxVersion(channel?: VersionChannel): Promise<SandboxVersionInfo>;
|
|
73
|
+
export declare function getFullChangelog(channel?: 'stable' | 'dev' | 'all'): Promise<ChangelogEntry[]>;
|
|
74
|
+
export declare function getAllVersions(): Promise<AllVersionsResponse>;
|
|
75
|
+
export declare function triggerSandboxUpdate(sandbox: SandboxInfo, version: string): Promise<SandboxUpdateResult>;
|
|
76
|
+
export declare function resetSandboxUpdateStatus(sandbox?: SandboxInfo): Promise<void>;
|
|
77
|
+
export declare function cancelSandboxUpdate(sandbox?: SandboxInfo): Promise<void>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { sendChecked } from '../../http/transport.js';
|
|
2
|
+
import { getPlatformUrl } from './shared.js';
|
|
3
|
+
export const DESTRUCTIVE_PHASES = [
|
|
4
|
+
'pulling', 'patching', 'stopping', 'removing', 'recreating',
|
|
5
|
+
'restarting', 'verifying', 'starting', 'health_check',
|
|
6
|
+
];
|
|
7
|
+
export function isDestructivePhase(phase) {
|
|
8
|
+
return DESTRUCTIVE_PHASES.includes(phase);
|
|
9
|
+
}
|
|
10
|
+
export async function getSandboxUpdateStatus(sandbox) {
|
|
11
|
+
return {
|
|
12
|
+
phase: 'idle',
|
|
13
|
+
progress: 0,
|
|
14
|
+
message: 'Sandbox image updates are managed by project-session provisioning.',
|
|
15
|
+
targetVersion: null,
|
|
16
|
+
previousVersion: null,
|
|
17
|
+
currentVersion: sandbox?.version ?? null,
|
|
18
|
+
error: null,
|
|
19
|
+
startedAt: null,
|
|
20
|
+
updatedAt: null,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export async function getLatestSandboxVersion(channel) {
|
|
24
|
+
const params = channel ? `?channel=${channel}` : '';
|
|
25
|
+
const res = await sendChecked(`${getPlatformUrl()}/platform/sandbox/version/latest${params}`, { headers: { Accept: 'application/json' } }, {}, 'Version check failed');
|
|
26
|
+
const latest = await res.json();
|
|
27
|
+
try {
|
|
28
|
+
const changelogEntries = await getFullChangelog(channel || 'stable');
|
|
29
|
+
latest.changelog = changelogEntries.find((entry) => entry.version === latest.version) ?? changelogEntries[0] ?? null;
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
latest.changelog = null;
|
|
33
|
+
}
|
|
34
|
+
return latest;
|
|
35
|
+
}
|
|
36
|
+
export async function getFullChangelog(channel) {
|
|
37
|
+
const params = channel ? `?channel=${channel}` : '';
|
|
38
|
+
const res = await sendChecked(`${getPlatformUrl()}/platform/sandbox/version/changelog${params}`, { headers: { Accept: 'application/json' } }, {}, 'Changelog fetch failed');
|
|
39
|
+
const data = await res.json();
|
|
40
|
+
return data.changelog;
|
|
41
|
+
}
|
|
42
|
+
export async function getAllVersions() {
|
|
43
|
+
const res = await sendChecked(`${getPlatformUrl()}/platform/sandbox/version/all`, { headers: { Accept: 'application/json' } }, {}, 'All versions fetch failed');
|
|
44
|
+
return res.json();
|
|
45
|
+
}
|
|
46
|
+
export async function triggerSandboxUpdate(sandbox, version) {
|
|
47
|
+
throw new Error('Sandbox image updates are managed by project-session provisioning');
|
|
48
|
+
}
|
|
49
|
+
export async function resetSandboxUpdateStatus(sandbox) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
export async function cancelSandboxUpdate(sandbox) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SANDBOX_PORTS } from './types.js';
|
|
2
|
+
import { getPlatformUrl } from './shared.js';
|
|
3
|
+
export function getSandboxUrl(sandbox) {
|
|
4
|
+
if (!sandbox.external_id) {
|
|
5
|
+
if (sandbox.base_url)
|
|
6
|
+
return sandbox.base_url;
|
|
7
|
+
throw new Error(`Cannot build sandbox URL: missing external_id for ${sandbox.provider} sandbox "${sandbox.sandbox_id}"`);
|
|
8
|
+
}
|
|
9
|
+
return `${getPlatformUrl()}/p/${sandbox.external_id}/${SANDBOX_PORTS.BEEUNI_MASTER}`;
|
|
10
|
+
}
|
|
11
|
+
export function getSandboxPortUrl(sandbox, containerPort) {
|
|
12
|
+
if (sandbox.external_id) {
|
|
13
|
+
return `${getPlatformUrl()}/p/${sandbox.external_id}/${containerPort}`;
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { type ApiClientOptions } from '../../http/api-client.js';
|
|
2
|
+
import { type AccountRole, type ProjectRole } from './shared.js';
|
|
3
|
+
export interface ProjectGroupAccessSource {
|
|
4
|
+
group_id: string;
|
|
5
|
+
group_name: string;
|
|
6
|
+
role: ProjectRole;
|
|
7
|
+
}
|
|
8
|
+
export interface ProjectAccessMember {
|
|
9
|
+
user_id: string;
|
|
10
|
+
email: string | null;
|
|
11
|
+
account_role: AccountRole;
|
|
12
|
+
project_role: ProjectRole | null;
|
|
13
|
+
effective_project_role: ProjectRole | null;
|
|
14
|
+
has_implicit_access: boolean;
|
|
15
|
+
effective_source?: 'implicit' | 'direct' | 'group' | null;
|
|
16
|
+
group_sources?: ProjectGroupAccessSource[];
|
|
17
|
+
joined_at: string;
|
|
18
|
+
granted_by: string | null;
|
|
19
|
+
granted_at: string | null;
|
|
20
|
+
updated_at: string | null;
|
|
21
|
+
expires_at?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface ProjectAccessResponse {
|
|
24
|
+
project_id: string;
|
|
25
|
+
account_id: string;
|
|
26
|
+
can_manage: boolean;
|
|
27
|
+
viewer_user_id: string;
|
|
28
|
+
members: ProjectAccessMember[];
|
|
29
|
+
}
|
|
30
|
+
export interface ProjectAccessRequest {
|
|
31
|
+
request_id: string;
|
|
32
|
+
account_id: string;
|
|
33
|
+
project_id: string;
|
|
34
|
+
requester_user_id: string;
|
|
35
|
+
requester_email: string;
|
|
36
|
+
message: string | null;
|
|
37
|
+
status: 'pending' | 'approved' | 'rejected';
|
|
38
|
+
reviewed_by: string | null;
|
|
39
|
+
reviewed_at: string | null;
|
|
40
|
+
created_at: string;
|
|
41
|
+
updated_at: string;
|
|
42
|
+
}
|
|
43
|
+
export type RequestProjectAccessResult = {
|
|
44
|
+
status: 'created';
|
|
45
|
+
request: ProjectAccessRequest;
|
|
46
|
+
} | {
|
|
47
|
+
status: 'pending';
|
|
48
|
+
request: ProjectAccessRequest;
|
|
49
|
+
} | {
|
|
50
|
+
status: 'already_has_access';
|
|
51
|
+
project_id: string;
|
|
52
|
+
};
|
|
53
|
+
export declare function requestProjectAccess(projectId: string, message?: string): Promise<{
|
|
54
|
+
status: "created";
|
|
55
|
+
request: ProjectAccessRequest;
|
|
56
|
+
} | {
|
|
57
|
+
status: "pending";
|
|
58
|
+
request: ProjectAccessRequest;
|
|
59
|
+
} | {
|
|
60
|
+
status: "already_has_access";
|
|
61
|
+
project_id: string;
|
|
62
|
+
}>;
|
|
63
|
+
export declare function listProjectAccessRequests(projectId: string, options?: ApiClientOptions): Promise<{
|
|
64
|
+
requests: ProjectAccessRequest[];
|
|
65
|
+
}>;
|
|
66
|
+
export declare function approveProjectAccessRequest(projectId: string, requestId: string, role?: ProjectRole): Promise<{
|
|
67
|
+
request: ProjectAccessRequest;
|
|
68
|
+
member: ProjectAccessMember;
|
|
69
|
+
}>;
|
|
70
|
+
export declare function rejectProjectAccessRequest(projectId: string, requestId: string): Promise<{
|
|
71
|
+
request: ProjectAccessRequest;
|
|
72
|
+
}>;
|
|
73
|
+
export declare function listProjectAccess(projectId: string): Promise<ProjectAccessResponse>;
|
|
74
|
+
export declare function updateProjectAccess(projectId: string, userId: string, role: ProjectRole): Promise<ProjectAccessMember>;
|
|
75
|
+
export declare function revokeProjectAccess(projectId: string, userId: string): Promise<{
|
|
76
|
+
ok: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
export type InviteProjectMemberResult = ProjectAccessMember | {
|
|
79
|
+
status: 'invited';
|
|
80
|
+
email: string;
|
|
81
|
+
invite_id: string;
|
|
82
|
+
project_role: ProjectRole;
|
|
83
|
+
message: string;
|
|
84
|
+
invite_url: string;
|
|
85
|
+
email_sent: boolean;
|
|
86
|
+
email_skip_reason: string | null;
|
|
87
|
+
};
|
|
88
|
+
export declare function isInviteSent(r: InviteProjectMemberResult): r is Extract<InviteProjectMemberResult, {
|
|
89
|
+
status: 'invited';
|
|
90
|
+
}>;
|
|
91
|
+
export declare function inviteProjectMember(projectId: string, email: string, role: ProjectRole, expiresAt?: string | null): Promise<ProjectAccessMember | {
|
|
92
|
+
status: "invited";
|
|
93
|
+
email: string;
|
|
94
|
+
invite_id: string;
|
|
95
|
+
project_role: ProjectRole;
|
|
96
|
+
message: string;
|
|
97
|
+
invite_url: string;
|
|
98
|
+
email_sent: boolean;
|
|
99
|
+
email_skip_reason: string | null;
|
|
100
|
+
}>;
|
|
101
|
+
export interface PendingProjectInvite {
|
|
102
|
+
invite_id: string;
|
|
103
|
+
email: string;
|
|
104
|
+
project_role: ProjectRole;
|
|
105
|
+
expires_at: string | null;
|
|
106
|
+
invited_by_email: string | null;
|
|
107
|
+
created_at: string;
|
|
108
|
+
invite_expires_at: string;
|
|
109
|
+
invite_expired: boolean;
|
|
110
|
+
}
|
|
111
|
+
export declare function listPendingProjectInvites(projectId: string): Promise<{
|
|
112
|
+
pending: PendingProjectInvite[];
|
|
113
|
+
}>;
|
|
114
|
+
export declare function revokePendingProjectInvite(projectId: string, inviteId: string): Promise<{
|
|
115
|
+
ok: boolean;
|
|
116
|
+
invitation_cancelled: boolean;
|
|
117
|
+
}>;
|
|
118
|
+
export interface ResendProjectInviteResult {
|
|
119
|
+
ok: boolean;
|
|
120
|
+
expires_at: string;
|
|
121
|
+
invite_url: string;
|
|
122
|
+
email_sent: boolean;
|
|
123
|
+
email_skip_reason: string | null;
|
|
124
|
+
}
|
|
125
|
+
export declare function resendPendingProjectInvite(projectId: string, inviteId: string): Promise<ResendProjectInviteResult>;
|
|
126
|
+
export interface ProjectGroupGrant {
|
|
127
|
+
group_id: string;
|
|
128
|
+
group_name: string;
|
|
129
|
+
role: ProjectRole;
|
|
130
|
+
granted_by: string | null;
|
|
131
|
+
created_at: string;
|
|
132
|
+
expires_at?: string | null;
|
|
133
|
+
member_count?: number;
|
|
134
|
+
override_count?: number;
|
|
135
|
+
}
|
|
136
|
+
export declare function listProjectGroupGrants(projectId: string): Promise<{
|
|
137
|
+
grants: ProjectGroupGrant[];
|
|
138
|
+
}>;
|
|
139
|
+
export declare function attachGroupToProject(projectId: string, groupId: string, role: ProjectRole, expiresAt?: string | null): Promise<{
|
|
140
|
+
project_id: string;
|
|
141
|
+
group_id: string;
|
|
142
|
+
role: ProjectRole;
|
|
143
|
+
}>;
|
|
144
|
+
export declare function updateProjectGroupGrant(projectId: string, groupId: string, role: ProjectRole, expiresAt?: string | null): Promise<{
|
|
145
|
+
project_id: string;
|
|
146
|
+
group_id: string;
|
|
147
|
+
role: ProjectRole;
|
|
148
|
+
}>;
|
|
149
|
+
export declare function detachGroupFromProject(projectId: string, groupId: string): Promise<{
|
|
150
|
+
ok: boolean;
|
|
151
|
+
}>;
|
|
152
|
+
export type ResourceGrantType = 'agent' | 'skill' | 'secret';
|
|
153
|
+
export interface ProjectResourceItem {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
description: string | null;
|
|
157
|
+
}
|
|
158
|
+
export interface ProjectAgentResourceItem extends ProjectResourceItem {
|
|
159
|
+
declares?: {
|
|
160
|
+
secrets: string[] | 'all';
|
|
161
|
+
connectors: string[] | 'all';
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export interface ProjectResourceGrant {
|
|
165
|
+
grant_id: string;
|
|
166
|
+
resource_type: ResourceGrantType;
|
|
167
|
+
resource_id: string;
|
|
168
|
+
principal_type: 'member' | 'group' | 'project';
|
|
169
|
+
principal_id: string;
|
|
170
|
+
principal_label: string;
|
|
171
|
+
granted_by: string | null;
|
|
172
|
+
created_at: string;
|
|
173
|
+
expires_at: string | null;
|
|
174
|
+
orphaned?: boolean;
|
|
175
|
+
}
|
|
176
|
+
export interface ProjectResourceGrantsResponse {
|
|
177
|
+
resources: {
|
|
178
|
+
agents: ProjectAgentResourceItem[];
|
|
179
|
+
skills: ProjectResourceItem[];
|
|
180
|
+
secrets?: ProjectResourceItem[];
|
|
181
|
+
};
|
|
182
|
+
grants: ProjectResourceGrant[];
|
|
183
|
+
}
|
|
184
|
+
export declare function listProjectResourceGrants(projectId: string): Promise<ProjectResourceGrantsResponse>;
|
|
185
|
+
export declare function createProjectResourceGrant(projectId: string, input: {
|
|
186
|
+
resourceType: ResourceGrantType;
|
|
187
|
+
resourceId: string;
|
|
188
|
+
principalType: 'member' | 'group';
|
|
189
|
+
principalId: string;
|
|
190
|
+
expiresAt?: string | null;
|
|
191
|
+
}): Promise<{
|
|
192
|
+
grant_id: string;
|
|
193
|
+
}>;
|
|
194
|
+
export declare function deleteProjectResourceGrant(projectId: string, grantId: string): Promise<{
|
|
195
|
+
ok: boolean;
|
|
196
|
+
}>;
|
|
197
|
+
export interface PendingApproval {
|
|
198
|
+
execution_id: string;
|
|
199
|
+
action: string;
|
|
200
|
+
risk: string | null;
|
|
201
|
+
session_id: string | null;
|
|
202
|
+
requested_by: string | null;
|
|
203
|
+
requested_by_email: string | null;
|
|
204
|
+
requested_at: string;
|
|
205
|
+
detail: Record<string, unknown> | null;
|
|
206
|
+
}
|
|
207
|
+
export interface PendingApprovalsResponse {
|
|
208
|
+
count: number;
|
|
209
|
+
approvals: PendingApproval[];
|
|
210
|
+
}
|
|
211
|
+
export declare function listPendingApprovals(projectId: string, options?: {
|
|
212
|
+
showErrors?: boolean;
|
|
213
|
+
}): Promise<PendingApprovalsResponse>;
|
|
214
|
+
export interface SessionsNeedingInputResponse {
|
|
215
|
+
total: number;
|
|
216
|
+
sessions: Record<string, number>;
|
|
217
|
+
}
|
|
218
|
+
export declare function listSessionsNeedingInput(projectId: string, options?: {
|
|
219
|
+
showErrors?: boolean;
|
|
220
|
+
}): Promise<SessionsNeedingInputResponse>;
|
|
221
|
+
export interface ResolveApprovalOptions {
|
|
222
|
+
note?: string | null;
|
|
223
|
+
}
|
|
224
|
+
export declare function resolveApproval(projectId: string, executionId: string, decision: 'approve' | 'deny', options?: ResolveApprovalOptions): Promise<{
|
|
225
|
+
ok: boolean;
|
|
226
|
+
}>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { backendApi } from '../../http/api-client.js';
|
|
2
|
+
import { unwrap } from './shared.js';
|
|
3
|
+
export async function requestProjectAccess(projectId, message) {
|
|
4
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/access-requests`, { message: message?.trim() || undefined }, { showErrors: false }));
|
|
5
|
+
}
|
|
6
|
+
export async function listProjectAccessRequests(projectId, options) {
|
|
7
|
+
return unwrap(await backendApi.get(`/projects/${projectId}/access-requests`, options));
|
|
8
|
+
}
|
|
9
|
+
export async function approveProjectAccessRequest(projectId, requestId, role = 'member') {
|
|
10
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/access-requests/${requestId}/approve`, { role }));
|
|
11
|
+
}
|
|
12
|
+
export async function rejectProjectAccessRequest(projectId, requestId) {
|
|
13
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/access-requests/${requestId}/reject`, {}));
|
|
14
|
+
}
|
|
15
|
+
export async function listProjectAccess(projectId) {
|
|
16
|
+
return unwrap(await backendApi.get(`/projects/${projectId}/access`));
|
|
17
|
+
}
|
|
18
|
+
export async function updateProjectAccess(projectId, userId, role) {
|
|
19
|
+
return unwrap(await backendApi.put(`/projects/${projectId}/access/${userId}`, { role }));
|
|
20
|
+
}
|
|
21
|
+
export async function revokeProjectAccess(projectId, userId) {
|
|
22
|
+
return unwrap(await backendApi.delete(`/projects/${projectId}/access/${userId}`));
|
|
23
|
+
}
|
|
24
|
+
export function isInviteSent(r) {
|
|
25
|
+
return 'status' in r && r.status === 'invited';
|
|
26
|
+
}
|
|
27
|
+
export async function inviteProjectMember(projectId, email, role, expiresAt) {
|
|
28
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/access/invite`, { email, role, ...(expiresAt !== undefined ? { expires_at: expiresAt } : {}) }));
|
|
29
|
+
}
|
|
30
|
+
export async function listPendingProjectInvites(projectId) {
|
|
31
|
+
return unwrap(await backendApi.get(`/projects/${projectId}/access/pending-invites`));
|
|
32
|
+
}
|
|
33
|
+
export async function revokePendingProjectInvite(projectId, inviteId) {
|
|
34
|
+
return unwrap(await backendApi.delete(`/projects/${projectId}/access/pending-invites/${inviteId}`));
|
|
35
|
+
}
|
|
36
|
+
export async function resendPendingProjectInvite(projectId, inviteId) {
|
|
37
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/access/pending-invites/${inviteId}/resend`));
|
|
38
|
+
}
|
|
39
|
+
export async function listProjectGroupGrants(projectId) {
|
|
40
|
+
return unwrap(await backendApi.get(`/projects/${projectId}/group-grants`));
|
|
41
|
+
}
|
|
42
|
+
export async function attachGroupToProject(projectId, groupId, role, expiresAt) {
|
|
43
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/group-grants`, expiresAt === undefined
|
|
44
|
+
? { group_id: groupId, role }
|
|
45
|
+
: { group_id: groupId, role, expires_at: expiresAt }));
|
|
46
|
+
}
|
|
47
|
+
export async function updateProjectGroupGrant(projectId, groupId, role, expiresAt) {
|
|
48
|
+
return unwrap(await backendApi.patch(`/projects/${projectId}/group-grants/${groupId}`, expiresAt === undefined ? { role } : { role, expires_at: expiresAt }));
|
|
49
|
+
}
|
|
50
|
+
export async function detachGroupFromProject(projectId, groupId) {
|
|
51
|
+
return unwrap(await backendApi.delete(`/projects/${projectId}/group-grants/${groupId}`));
|
|
52
|
+
}
|
|
53
|
+
export async function listProjectResourceGrants(projectId) {
|
|
54
|
+
return unwrap(await backendApi.get(`/projects/${projectId}/resource-grants`));
|
|
55
|
+
}
|
|
56
|
+
export async function createProjectResourceGrant(projectId, input) {
|
|
57
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/resource-grants`, {
|
|
58
|
+
resource_type: input.resourceType,
|
|
59
|
+
resource_id: input.resourceId,
|
|
60
|
+
principal_type: input.principalType,
|
|
61
|
+
principal_id: input.principalId,
|
|
62
|
+
...(input.expiresAt !== undefined ? { expires_at: input.expiresAt } : {}),
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
export async function deleteProjectResourceGrant(projectId, grantId) {
|
|
66
|
+
return unwrap(await backendApi.delete(`/projects/${projectId}/resource-grants/${grantId}`));
|
|
67
|
+
}
|
|
68
|
+
export async function listPendingApprovals(projectId, options) {
|
|
69
|
+
return unwrap(await backendApi.get(`/projects/${projectId}/approvals`, {
|
|
70
|
+
showErrors: options?.showErrors,
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
export async function listSessionsNeedingInput(projectId, options) {
|
|
74
|
+
return unwrap(await backendApi.get(`/projects/${projectId}/approvals/needs-input`, { showErrors: options?.showErrors }));
|
|
75
|
+
}
|
|
76
|
+
export async function resolveApproval(projectId, executionId, decision, options = {}) {
|
|
77
|
+
const note = options.note?.trim();
|
|
78
|
+
return unwrap(await backendApi.post(`/projects/${projectId}/approvals/${executionId}`, {
|
|
79
|
+
decision,
|
|
80
|
+
...(note ? { note } : {}),
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface AccountDeletionStatus {
|
|
2
|
+
has_pending_deletion: boolean;
|
|
3
|
+
deletion_scheduled_for: string | null;
|
|
4
|
+
requested_at: string | null;
|
|
5
|
+
can_cancel: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface AccountDeletionMutationResult {
|
|
8
|
+
success: boolean;
|
|
9
|
+
message: string;
|
|
10
|
+
deletion_scheduled_for?: string;
|
|
11
|
+
can_cancel?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function getAccountDeletionStatus(): Promise<AccountDeletionStatus | null>;
|
|
14
|
+
export declare function requestAccountDeletion(reason?: string): Promise<AccountDeletionMutationResult>;
|
|
15
|
+
export declare function cancelAccountDeletion(): Promise<AccountDeletionMutationResult>;
|
|
16
|
+
export declare function deleteAccountImmediately(): Promise<AccountDeletionMutationResult>;
|
|
17
|
+
export interface AdminRole {
|
|
18
|
+
isAdmin: boolean;
|
|
19
|
+
role?: 'admin' | 'super_admin' | null;
|
|
20
|
+
}
|
|
21
|
+
export declare function getAdminRole(): Promise<AdminRole>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { backendApi } from '../../http/api-client.js';
|
|
2
|
+
import { unwrap } from './shared.js';
|
|
3
|
+
export async function getAccountDeletionStatus() {
|
|
4
|
+
const response = await backendApi.get('/account/deletion-status', {
|
|
5
|
+
showErrors: false,
|
|
6
|
+
});
|
|
7
|
+
if (response.error?.status === 404)
|
|
8
|
+
return null;
|
|
9
|
+
return unwrap(response, 'Failed to load account deletion status');
|
|
10
|
+
}
|
|
11
|
+
export async function requestAccountDeletion(reason = 'User requested deletion') {
|
|
12
|
+
return unwrap(await backendApi.post('/account/request-deletion', { reason }, { showErrors: false }), 'Failed to request account deletion');
|
|
13
|
+
}
|
|
14
|
+
export async function cancelAccountDeletion() {
|
|
15
|
+
return unwrap(await backendApi.post('/account/cancel-deletion', undefined, { showErrors: false }), 'Failed to cancel account deletion');
|
|
16
|
+
}
|
|
17
|
+
export async function deleteAccountImmediately() {
|
|
18
|
+
return unwrap(await backendApi.delete('/account/delete-immediately', {
|
|
19
|
+
showErrors: false,
|
|
20
|
+
}), 'Failed to delete account immediately');
|
|
21
|
+
}
|
|
22
|
+
export async function getAdminRole() {
|
|
23
|
+
const response = await backendApi.get('/user-roles', { showErrors: false });
|
|
24
|
+
return response.data ?? { isAdmin: false, role: null };
|
|
25
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { SecretConsumer, SecretDeliveryStrategy } from './secrets.js';
|
|
2
|
+
export interface AccountSecretResource {
|
|
3
|
+
secret_id: string;
|
|
4
|
+
account_id: string;
|
|
5
|
+
project_id: string | null;
|
|
6
|
+
access_mode: 'project' | 'members';
|
|
7
|
+
label: string;
|
|
8
|
+
provider_id: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
consumer: SecretConsumer;
|
|
11
|
+
strategy: SecretDeliveryStrategy;
|
|
12
|
+
active: boolean;
|
|
13
|
+
cooldown_until: string | null;
|
|
14
|
+
needs_reauth_at?: string | null;
|
|
15
|
+
created_by: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
granted_user_ids: string[];
|
|
19
|
+
can_use: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface CreateAccountSecretResourceInput {
|
|
22
|
+
project_id?: string;
|
|
23
|
+
access_mode?: 'project' | 'members';
|
|
24
|
+
user_ids?: string[];
|
|
25
|
+
label: string;
|
|
26
|
+
provider_id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
value: string;
|
|
29
|
+
consumer: 'llm_gateway';
|
|
30
|
+
strategy: 'broker';
|
|
31
|
+
}
|
|
32
|
+
export interface SessionProviderSecretPool {
|
|
33
|
+
provider_id: string;
|
|
34
|
+
configured: boolean;
|
|
35
|
+
secret_ids: string[];
|
|
36
|
+
}
|
|
37
|
+
export declare function listAccountSecretResources(accountId: string, projectId?: string): Promise<{
|
|
38
|
+
secrets: AccountSecretResource[];
|
|
39
|
+
}>;
|
|
40
|
+
export declare function createAccountSecretResource(accountId: string, input: CreateAccountSecretResourceInput): Promise<AccountSecretResource>;
|
|
41
|
+
export declare function rotateAccountSecretResource(accountId: string, secretId: string, value: string): Promise<AccountSecretResource>;
|
|
42
|
+
export declare function retryAccountSecretResource(accountId: string, secretId: string): Promise<AccountSecretResource>;
|
|
43
|
+
export declare function deleteAccountSecretResource(accountId: string, secretId: string): Promise<{
|
|
44
|
+
ok: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
export declare function grantAccountSecretResource(accountId: string, secretId: string, userId: string, options?: {
|
|
47
|
+
showErrors?: boolean;
|
|
48
|
+
}): Promise<AccountSecretResource>;
|
|
49
|
+
export declare function revokeAccountSecretResourceGrant(accountId: string, secretId: string, userId: string, options?: {
|
|
50
|
+
showErrors?: boolean;
|
|
51
|
+
}): Promise<AccountSecretResource>;
|
|
52
|
+
export declare function setAccountSecretResourceAccess(accountId: string, secretId: string, mode: 'project' | 'members', userIds: string[]): Promise<AccountSecretResource>;
|
|
53
|
+
export declare function getSessionProviderSecretPool(projectId: string, sessionId: string, providerId: string): Promise<SessionProviderSecretPool>;
|
|
54
|
+
export declare function listSessionProviderSecretPools(projectId: string, sessionId: string): Promise<{
|
|
55
|
+
pools: SessionProviderSecretPool[];
|
|
56
|
+
can_edit: boolean;
|
|
57
|
+
personal_user_id?: string | null;
|
|
58
|
+
personal_keys_reason?: "shared" | "prompted_by_another_member" | "no_person" | null;
|
|
59
|
+
}>;
|
|
60
|
+
export declare function setSessionProviderSecretPool(projectId: string, sessionId: string, providerId: string, secretIds: string[] | null): Promise<SessionProviderSecretPool>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { backendApi } from '../../http/api-client.js';
|
|
2
|
+
import { unwrap } from './shared.js';
|
|
3
|
+
const accountPath = (accountId) => `/accounts/${encodeURIComponent(accountId)}/secret-resources`;
|
|
4
|
+
const secretPath = (accountId, secretId) => `${accountPath(accountId)}/${encodeURIComponent(secretId)}`;
|
|
5
|
+
const poolPath = (projectId, sessionId, providerId) => `/projects/${encodeURIComponent(projectId)}/sessions/${encodeURIComponent(sessionId)}/provider-secret-pools/${encodeURIComponent(providerId)}`;
|
|
6
|
+
export async function listAccountSecretResources(accountId, projectId) {
|
|
7
|
+
const query = projectId ? `?project_id=${encodeURIComponent(projectId)}` : '';
|
|
8
|
+
return unwrap(await backendApi.get(`${accountPath(accountId)}${query}`));
|
|
9
|
+
}
|
|
10
|
+
export async function createAccountSecretResource(accountId, input) {
|
|
11
|
+
return unwrap(await backendApi.post(accountPath(accountId), input));
|
|
12
|
+
}
|
|
13
|
+
export async function rotateAccountSecretResource(accountId, secretId, value) {
|
|
14
|
+
return unwrap(await backendApi.put(`${secretPath(accountId, secretId)}/value`, { value }));
|
|
15
|
+
}
|
|
16
|
+
export async function retryAccountSecretResource(accountId, secretId) {
|
|
17
|
+
return unwrap(await backendApi.post(`${secretPath(accountId, secretId)}/retry`));
|
|
18
|
+
}
|
|
19
|
+
export async function deleteAccountSecretResource(accountId, secretId) {
|
|
20
|
+
return unwrap(await backendApi.delete(secretPath(accountId, secretId)));
|
|
21
|
+
}
|
|
22
|
+
export async function grantAccountSecretResource(accountId, secretId, userId, options) {
|
|
23
|
+
return unwrap(await backendApi.put(`${secretPath(accountId, secretId)}/grants/${encodeURIComponent(userId)}`, {}, options));
|
|
24
|
+
}
|
|
25
|
+
export async function revokeAccountSecretResourceGrant(accountId, secretId, userId, options) {
|
|
26
|
+
return unwrap(await backendApi.delete(`${secretPath(accountId, secretId)}/grants/${encodeURIComponent(userId)}`, options));
|
|
27
|
+
}
|
|
28
|
+
export async function setAccountSecretResourceAccess(accountId, secretId, mode, userIds) {
|
|
29
|
+
return unwrap(await backendApi.put(`${secretPath(accountId, secretId)}/access`, { mode, user_ids: userIds }));
|
|
30
|
+
}
|
|
31
|
+
export async function getSessionProviderSecretPool(projectId, sessionId, providerId) {
|
|
32
|
+
return unwrap(await backendApi.get(poolPath(projectId, sessionId, providerId)));
|
|
33
|
+
}
|
|
34
|
+
export async function listSessionProviderSecretPools(projectId, sessionId) {
|
|
35
|
+
const path = `/projects/${encodeURIComponent(projectId)}/sessions/${encodeURIComponent(sessionId)}/provider-secret-pools`;
|
|
36
|
+
return unwrap(await backendApi.get(path));
|
|
37
|
+
}
|
|
38
|
+
export async function setSessionProviderSecretPool(projectId, sessionId, providerId, secretIds) {
|
|
39
|
+
return unwrap(await backendApi.put(poolPath(projectId, sessionId, providerId), { secret_ids: secretIds }));
|
|
40
|
+
}
|