@kortix/sdk 0.15.2 → 0.15.3
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 +211 -23
- package/dist/browser/session-sync/session-sync-registry.d.ts +1 -2
- package/dist/browser/session-sync/session-sync-registry.d.ts.map +1 -1
- package/dist/browser/session-sync/session-sync-registry.js +1 -4
- package/dist/browser/session-sync/session-sync-registry.js.map +1 -1
- package/dist/browser/stores/sync-store.d.ts +0 -6
- package/dist/browser/stores/sync-store.d.ts.map +1 -1
- package/dist/browser/stores/sync-store.js +105 -310
- package/dist/browser/stores/sync-store.js.map +1 -1
- package/dist/core/client/facade-catalog.d.ts +16 -14
- package/dist/core/client/facade-catalog.d.ts.map +1 -1
- package/dist/core/client/facade-catalog.js +16 -14
- package/dist/core/client/facade-catalog.js.map +1 -1
- package/dist/core/client/facade-workspaces.d.ts +104 -0
- package/dist/core/client/facade-workspaces.d.ts.map +1 -0
- package/dist/core/client/facade-workspaces.js +89 -0
- package/dist/core/client/facade-workspaces.js.map +1 -0
- package/dist/core/client/kortix.d.ts +1199 -38
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/kortix.js +27 -0
- package/dist/core/client/kortix.js.map +1 -1
- package/dist/core/client/project-access-security.d.ts +6 -6
- package/dist/core/client/project-access-security.d.ts.map +1 -1
- package/dist/core/client/project-access-security.js +20 -20
- package/dist/core/client/project-access-security.js.map +1 -1
- package/dist/core/client/project-connections.js +1 -1
- package/dist/core/client/project-connections.js.map +1 -1
- package/dist/core/client/project-core.d.ts +1 -1
- package/dist/core/client/project-core.d.ts.map +1 -1
- package/dist/core/client/project-core.js +12 -12
- package/dist/core/client/project-core.js.map +1 -1
- package/dist/core/client/project-membership.d.ts +1 -1
- package/dist/core/client/project-membership.d.ts.map +1 -1
- package/dist/core/client/project-membership.js +16 -16
- package/dist/core/client/project-membership.js.map +1 -1
- package/dist/core/client/project-operations-admin.d.ts +9 -9
- package/dist/core/client/project-operations-admin.d.ts.map +1 -1
- package/dist/core/client/project-operations-admin.js +12 -12
- package/dist/core/client/project-operations-admin.js.map +1 -1
- package/dist/core/client/project-operations-review.d.ts +5 -5
- package/dist/core/client/project-operations-review.d.ts.map +1 -1
- package/dist/core/client/project-operations-review.js +36 -36
- package/dist/core/client/project-operations-review.js.map +1 -1
- package/dist/core/client/project-operations-workspace.d.ts +9 -9
- package/dist/core/client/project-operations-workspace.d.ts.map +1 -1
- package/dist/core/client/project-operations-workspace.js +12 -12
- package/dist/core/client/project-operations-workspace.js.map +1 -1
- package/dist/core/client/project-operations.d.ts +9 -9
- package/dist/core/client/project-operations.d.ts.map +1 -1
- package/dist/core/client/project-platform-security.d.ts +1 -1
- package/dist/core/client/project-platform-settings.d.ts +1 -1
- package/dist/core/client/project-platform-settings.d.ts.map +1 -1
- package/dist/core/client/project-platform-settings.js +5 -5
- package/dist/core/client/project-platform-settings.js.map +1 -1
- package/dist/core/client/session-actions-resources.js +3 -3
- package/dist/core/client/session-actions-resources.js.map +1 -1
- package/dist/core/client/session-actions-security.js +2 -2
- package/dist/core/client/session-actions-security.js.map +1 -1
- package/dist/core/client/session-defaults.js +1 -1
- package/dist/core/client/session-defaults.js.map +1 -1
- package/dist/core/client/session-handle.d.ts +3 -3
- package/dist/core/client/session-handle.d.ts.map +1 -1
- package/dist/core/client/session-lifecycle-resources.d.ts +3 -3
- package/dist/core/client/session-lifecycle-resources.d.ts.map +1 -1
- package/dist/core/client/session-lifecycle-resources.js +14 -14
- package/dist/core/client/session-lifecycle-resources.js.map +1 -1
- package/dist/core/client/session-start.js +2 -2
- package/dist/core/client/session-start.js.map +1 -1
- package/dist/core/connectors/connect-link.d.ts +23 -3
- package/dist/core/connectors/connect-link.d.ts.map +1 -1
- package/dist/core/connectors/connect-link.js +13 -2
- package/dist/core/connectors/connect-link.js.map +1 -1
- package/dist/core/connectors/connector-accounts.d.ts +3 -1
- package/dist/core/connectors/connector-accounts.d.ts.map +1 -1
- package/dist/core/connectors/connector-accounts.js +4 -2
- package/dist/core/connectors/connector-accounts.js.map +1 -1
- package/dist/core/files/client.d.ts +4 -2
- package/dist/core/files/client.d.ts.map +1 -1
- package/dist/core/files/client.js +40 -10
- package/dist/core/files/client.js.map +1 -1
- package/dist/core/http/api/errors.d.ts +12 -0
- package/dist/core/http/api/errors.d.ts.map +1 -1
- package/dist/core/http/api/errors.js +14 -0
- package/dist/core/http/api/errors.js.map +1 -1
- package/dist/core/http/instance-routes.js +1 -1
- package/dist/core/http/instance-routes.js.map +1 -1
- package/dist/core/http/response-error.d.ts.map +1 -1
- package/dist/core/http/response-error.js +4 -2
- package/dist/core/http/response-error.js.map +1 -1
- package/dist/core/http/runtime-errors.d.ts.map +1 -1
- package/dist/core/http/runtime-errors.js +3 -2
- package/dist/core/http/runtime-errors.js.map +1 -1
- package/dist/core/http/transport.d.ts +3 -1
- package/dist/core/http/transport.d.ts.map +1 -1
- package/dist/core/http/transport.js +6 -2
- package/dist/core/http/transport.js.map +1 -1
- package/dist/core/http/url.d.ts +17 -0
- package/dist/core/http/url.d.ts.map +1 -0
- package/dist/core/http/url.js +42 -0
- package/dist/core/http/url.js.map +1 -0
- package/dist/core/http/workspace-routes.d.ts +48 -0
- package/dist/core/http/workspace-routes.d.ts.map +1 -0
- package/dist/core/http/workspace-routes.js +221 -0
- package/dist/core/http/workspace-routes.js.map +1 -0
- package/dist/core/models/provider-selection.d.ts +3 -1
- package/dist/core/models/provider-selection.d.ts.map +1 -1
- package/dist/core/models/provider-selection.js +3 -1
- package/dist/core/models/provider-selection.js.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.d.ts +8 -0
- package/dist/core/rest/platform-client/host-boundary.d.ts.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.js +14 -4
- package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
- package/dist/core/rest/platform-client/lifecycle.js +5 -5
- package/dist/core/rest/platform-client/lifecycle.js.map +1 -1
- package/dist/core/rest/platform-client/members.d.ts +15 -3
- package/dist/core/rest/platform-client/members.d.ts.map +1 -1
- package/dist/core/rest/platform-client/members.js +9 -3
- package/dist/core/rest/platform-client/members.js.map +1 -1
- package/dist/core/rest/platform-client/shared.d.ts +1 -8
- package/dist/core/rest/platform-client/shared.d.ts.map +1 -1
- package/dist/core/rest/platform-client/shared.js +7 -27
- package/dist/core/rest/platform-client/shared.js.map +1 -1
- package/dist/core/rest/projects-client/access.d.ts +106 -21
- package/dist/core/rest/projects-client/access.d.ts.map +1 -1
- package/dist/core/rest/projects-client/access.js +90 -53
- package/dist/core/rest/projects-client/access.js.map +1 -1
- package/dist/core/rest/projects-client/account-secret-resources.d.ts.map +1 -1
- package/dist/core/rest/projects-client/account-secret-resources.js +7 -6
- package/dist/core/rest/projects-client/account-secret-resources.js.map +1 -1
- package/dist/core/rest/projects-client/accounts.d.ts +29 -0
- package/dist/core/rest/projects-client/accounts.d.ts.map +1 -1
- package/dist/core/rest/projects-client/accounts.js +14 -5
- package/dist/core/rest/projects-client/accounts.js.map +1 -1
- package/dist/core/rest/projects-client/agent-capabilities.d.ts +10 -2
- package/dist/core/rest/projects-client/agent-capabilities.d.ts.map +1 -1
- package/dist/core/rest/projects-client/agent-capabilities.js +5 -3
- package/dist/core/rest/projects-client/agent-capabilities.js.map +1 -1
- package/dist/core/rest/projects-client/agent-config.d.ts +6 -1
- package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
- package/dist/core/rest/projects-client/agent-config.js +7 -5
- package/dist/core/rest/projects-client/agent-config.js.map +1 -1
- package/dist/core/rest/projects-client/agent-scope.js +1 -1
- package/dist/core/rest/projects-client/agent-scope.js.map +1 -1
- package/dist/core/rest/projects-client/apps-fleet.d.ts.map +1 -1
- package/dist/core/rest/projects-client/apps-fleet.js +14 -14
- package/dist/core/rest/projects-client/apps-fleet.js.map +1 -1
- package/dist/core/rest/projects-client/apps-paths.d.ts +3 -0
- package/dist/core/rest/projects-client/apps-paths.d.ts.map +1 -0
- package/dist/core/rest/projects-client/apps-paths.js +8 -0
- package/dist/core/rest/projects-client/apps-paths.js.map +1 -0
- package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
- package/dist/core/rest/projects-client/apps.js +39 -42
- package/dist/core/rest/projects-client/apps.js.map +1 -1
- package/dist/core/rest/projects-client/artifacts.d.ts +3 -2
- package/dist/core/rest/projects-client/artifacts.d.ts.map +1 -1
- package/dist/core/rest/projects-client/artifacts.js +16 -17
- package/dist/core/rest/projects-client/artifacts.js.map +1 -1
- package/dist/core/rest/projects-client/asks.d.ts +20 -5
- package/dist/core/rest/projects-client/asks.d.ts.map +1 -1
- package/dist/core/rest/projects-client/asks.js +3 -3
- package/dist/core/rest/projects-client/asks.js.map +1 -1
- package/dist/core/rest/projects-client/assignments-at.d.ts +6 -0
- package/dist/core/rest/projects-client/assignments-at.d.ts.map +1 -0
- package/dist/core/rest/projects-client/assignments-at.js +42 -0
- package/dist/core/rest/projects-client/assignments-at.js.map +1 -0
- package/dist/core/rest/projects-client/assignments.d.ts.map +1 -1
- package/dist/core/rest/projects-client/assignments.js +5 -34
- package/dist/core/rest/projects-client/assignments.js.map +1 -1
- package/dist/core/rest/projects-client/audit.d.ts +3 -1
- package/dist/core/rest/projects-client/audit.d.ts.map +1 -1
- package/dist/core/rest/projects-client/audit.js +8 -2
- package/dist/core/rest/projects-client/audit.js.map +1 -1
- package/dist/core/rest/projects-client/billing.d.ts +24 -1
- package/dist/core/rest/projects-client/billing.d.ts.map +1 -1
- package/dist/core/rest/projects-client/billing.js.map +1 -1
- package/dist/core/rest/projects-client/change-request-recovery.js +3 -3
- package/dist/core/rest/projects-client/change-request-recovery.js.map +1 -1
- package/dist/core/rest/projects-client/change-requests.js +12 -12
- package/dist/core/rest/projects-client/change-requests.js.map +1 -1
- package/dist/core/rest/projects-client/channels.js +24 -24
- package/dist/core/rest/projects-client/channels.js.map +1 -1
- package/dist/core/rest/projects-client/claude-subscription.js +1 -1
- package/dist/core/rest/projects-client/claude-subscription.js.map +1 -1
- package/dist/core/rest/projects-client/connectors.d.ts +6 -2
- package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
- package/dist/core/rest/projects-client/connectors.js +55 -51
- package/dist/core/rest/projects-client/connectors.js.map +1 -1
- package/dist/core/rest/projects-client/custom-llm-providers.js +5 -5
- package/dist/core/rest/projects-client/custom-llm-providers.js.map +1 -1
- package/dist/core/rest/projects-client/drives.d.ts +10 -2
- package/dist/core/rest/projects-client/drives.d.ts.map +1 -1
- package/dist/core/rest/projects-client/drives.js +4 -2
- package/dist/core/rest/projects-client/drives.js.map +1 -1
- package/dist/core/rest/projects-client/files.d.ts +41 -10
- package/dist/core/rest/projects-client/files.d.ts.map +1 -1
- package/dist/core/rest/projects-client/files.js +33 -17
- package/dist/core/rest/projects-client/files.js.map +1 -1
- package/dist/core/rest/projects-client/gateway.d.ts +3 -0
- package/dist/core/rest/projects-client/gateway.d.ts.map +1 -1
- package/dist/core/rest/projects-client/gateway.js +20 -20
- package/dist/core/rest/projects-client/gateway.js.map +1 -1
- package/dist/core/rest/projects-client/git-backend.js +2 -2
- package/dist/core/rest/projects-client/git-backend.js.map +1 -1
- package/dist/core/rest/projects-client/git-history.d.ts +49 -6
- package/dist/core/rest/projects-client/git-history.d.ts.map +1 -1
- package/dist/core/rest/projects-client/git-history.js +20 -10
- package/dist/core/rest/projects-client/git-history.js.map +1 -1
- package/dist/core/rest/projects-client/github.d.ts +16 -2
- package/dist/core/rest/projects-client/github.d.ts.map +1 -1
- package/dist/core/rest/projects-client/github.js +18 -14
- package/dist/core/rest/projects-client/github.js.map +1 -1
- package/dist/core/rest/projects-client/goals.d.ts +149 -20
- package/dist/core/rest/projects-client/goals.d.ts.map +1 -1
- package/dist/core/rest/projects-client/goals.js +69 -21
- package/dist/core/rest/projects-client/goals.js.map +1 -1
- package/dist/core/rest/projects-client/iam-actions.d.ts +112 -0
- package/dist/core/rest/projects-client/iam-actions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-actions.js +117 -0
- package/dist/core/rest/projects-client/iam-actions.js.map +1 -1
- package/dist/core/rest/projects-client/iam-audit.js +1 -1
- package/dist/core/rest/projects-client/iam-audit.js.map +1 -1
- package/dist/core/rest/projects-client/iam-grants.js +1 -1
- package/dist/core/rest/projects-client/iam-grants.js.map +1 -1
- package/dist/core/rest/projects-client/iam-groups.d.ts +12 -2
- package/dist/core/rest/projects-client/iam-groups.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-groups.js +6 -2
- package/dist/core/rest/projects-client/iam-groups.js.map +1 -1
- package/dist/core/rest/projects-client/iam-policies.js +1 -1
- package/dist/core/rest/projects-client/iam-policies.js.map +1 -1
- package/dist/core/rest/projects-client/iam-probe.d.ts +2 -0
- package/dist/core/rest/projects-client/iam-probe.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-probe.js.map +1 -1
- package/dist/core/rest/projects-client/iam-roles.d.ts +3 -1
- package/dist/core/rest/projects-client/iam-roles.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-roles.js +4 -2
- package/dist/core/rest/projects-client/iam-roles.js.map +1 -1
- package/dist/core/rest/projects-client/iam-sessions.d.ts +6 -0
- package/dist/core/rest/projects-client/iam-sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-sessions.js.map +1 -1
- package/dist/core/rest/projects-client/iam-types.d.ts +2 -0
- package/dist/core/rest/projects-client/iam-types.d.ts.map +1 -1
- package/dist/core/rest/projects-client/index.d.ts +2 -1
- package/dist/core/rest/projects-client/index.d.ts.map +1 -1
- package/dist/core/rest/projects-client/index.js +1 -0
- package/dist/core/rest/projects-client/index.js.map +1 -1
- package/dist/core/rest/projects-client/manifest-spaces.d.ts +6 -1
- package/dist/core/rest/projects-client/manifest-spaces.d.ts.map +1 -1
- package/dist/core/rest/projects-client/manifest-spaces.js +6 -1
- package/dist/core/rest/projects-client/manifest-spaces.js.map +1 -1
- package/dist/core/rest/projects-client/marketplace-catalog.js +1 -1
- package/dist/core/rest/projects-client/marketplace-catalog.js.map +1 -1
- package/dist/core/rest/projects-client/memory.d.ts +146 -22
- package/dist/core/rest/projects-client/memory.d.ts.map +1 -1
- package/dist/core/rest/projects-client/memory.js +31 -12
- package/dist/core/rest/projects-client/memory.js.map +1 -1
- package/dist/core/rest/projects-client/model-access.d.ts +16 -3
- package/dist/core/rest/projects-client/model-access.d.ts.map +1 -1
- package/dist/core/rest/projects-client/model-access.js +8 -4
- package/dist/core/rest/projects-client/model-access.js.map +1 -1
- package/dist/core/rest/projects-client/model-defaults.js +3 -3
- package/dist/core/rest/projects-client/model-defaults.js.map +1 -1
- package/dist/core/rest/projects-client/model-enablement.d.ts +3 -1
- package/dist/core/rest/projects-client/model-enablement.d.ts.map +1 -1
- package/dist/core/rest/projects-client/model-enablement.js +4 -2
- package/dist/core/rest/projects-client/model-enablement.js.map +1 -1
- package/dist/core/rest/projects-client/multi-agent.d.ts.map +1 -1
- package/dist/core/rest/projects-client/multi-agent.js +4 -3
- package/dist/core/rest/projects-client/multi-agent.js.map +1 -1
- package/dist/core/rest/projects-client/notifications.js +1 -1
- package/dist/core/rest/projects-client/notifications.js.map +1 -1
- package/dist/core/rest/projects-client/policies.d.ts +12 -2
- package/dist/core/rest/projects-client/policies.d.ts.map +1 -1
- package/dist/core/rest/projects-client/policies.js +8 -4
- package/dist/core/rest/projects-client/policies.js.map +1 -1
- package/dist/core/rest/projects-client/project-agents.d.ts +3 -1
- package/dist/core/rest/projects-client/project-agents.d.ts.map +1 -1
- package/dist/core/rest/projects-client/project-agents.js +3 -1
- package/dist/core/rest/projects-client/project-agents.js.map +1 -1
- package/dist/core/rest/projects-client/project-search.d.ts +24 -4
- package/dist/core/rest/projects-client/project-search.d.ts.map +1 -1
- package/dist/core/rest/projects-client/project-search.js +4 -2
- package/dist/core/rest/projects-client/project-search.js.map +1 -1
- package/dist/core/rest/projects-client/projects.d.ts +162 -46
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +116 -155
- package/dist/core/rest/projects-client/projects.js.map +1 -1
- package/dist/core/rest/projects-client/prompt-attachments.js +1 -1
- package/dist/core/rest/projects-client/prompt-attachments.js.map +1 -1
- package/dist/core/rest/projects-client/provision-stream.d.ts +15 -0
- package/dist/core/rest/projects-client/provision-stream.d.ts.map +1 -0
- package/dist/core/rest/projects-client/provision-stream.js +105 -0
- package/dist/core/rest/projects-client/provision-stream.js.map +1 -0
- package/dist/core/rest/projects-client/review.js +6 -6
- package/dist/core/rest/projects-client/review.js.map +1 -1
- package/dist/core/rest/projects-client/runtime-triggers.js +3 -3
- package/dist/core/rest/projects-client/runtime-triggers.js.map +1 -1
- package/dist/core/rest/projects-client/sandbox.d.ts +31 -6
- package/dist/core/rest/projects-client/sandbox.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sandbox.js +27 -17
- package/dist/core/rest/projects-client/sandbox.js.map +1 -1
- package/dist/core/rest/projects-client/secrets.d.ts +60 -15
- package/dist/core/rest/projects-client/secrets.d.ts.map +1 -1
- package/dist/core/rest/projects-client/secrets.js +53 -27
- package/dist/core/rest/projects-client/secrets.js.map +1 -1
- package/dist/core/rest/projects-client/session-attachments.js +2 -2
- package/dist/core/rest/projects-client/session-attachments.js.map +1 -1
- package/dist/core/rest/projects-client/session-costs.d.ts +33 -2
- package/dist/core/rest/projects-client/session-costs.d.ts.map +1 -1
- package/dist/core/rest/projects-client/session-costs.js +3 -1
- package/dist/core/rest/projects-client/session-costs.js.map +1 -1
- package/dist/core/rest/projects-client/session-groups.d.ts +35 -8
- package/dist/core/rest/projects-client/session-groups.d.ts.map +1 -1
- package/dist/core/rest/projects-client/session-groups.js +24 -12
- package/dist/core/rest/projects-client/session-groups.js.map +1 -1
- package/dist/core/rest/projects-client/session-reminders.d.ts +10 -2
- package/dist/core/rest/projects-client/session-reminders.d.ts.map +1 -1
- package/dist/core/rest/projects-client/session-reminders.js +9 -7
- package/dist/core/rest/projects-client/session-reminders.js.map +1 -1
- package/dist/core/rest/projects-client/session-sandbox.d.ts +13 -3
- package/dist/core/rest/projects-client/session-sandbox.d.ts.map +1 -1
- package/dist/core/rest/projects-client/session-sandbox.js +8 -4
- package/dist/core/rest/projects-client/session-sandbox.js.map +1 -1
- package/dist/core/rest/projects-client/sessions.d.ts +127 -27
- package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sessions.js +124 -68
- package/dist/core/rest/projects-client/sessions.js.map +1 -1
- package/dist/core/rest/projects-client/setup-links.d.ts +12 -2
- package/dist/core/rest/projects-client/setup-links.d.ts.map +1 -1
- package/dist/core/rest/projects-client/setup-links.js +8 -4
- package/dist/core/rest/projects-client/setup-links.js.map +1 -1
- package/dist/core/rest/projects-client/shared.d.ts +8 -0
- package/dist/core/rest/projects-client/shared.d.ts.map +1 -1
- package/dist/core/rest/projects-client/shared.js +2 -1
- package/dist/core/rest/projects-client/shared.js.map +1 -1
- package/dist/core/rest/projects-client/skills.d.ts +20 -4
- package/dist/core/rest/projects-client/skills.d.ts.map +1 -1
- package/dist/core/rest/projects-client/skills.js +8 -4
- package/dist/core/rest/projects-client/skills.js.map +1 -1
- package/dist/core/rest/projects-client/spaces.d.ts +117 -24
- package/dist/core/rest/projects-client/spaces.d.ts.map +1 -1
- package/dist/core/rest/projects-client/spaces.js +76 -40
- package/dist/core/rest/projects-client/spaces.js.map +1 -1
- package/dist/core/rest/projects-client/tokens.d.ts +87 -11
- package/dist/core/rest/projects-client/tokens.d.ts.map +1 -1
- package/dist/core/rest/projects-client/tokens.js +48 -16
- package/dist/core/rest/projects-client/tokens.js.map +1 -1
- package/dist/core/rest/projects-client/triggers.d.ts +153 -25
- package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
- package/dist/core/rest/projects-client/triggers.js +38 -20
- package/dist/core/rest/projects-client/triggers.js.map +1 -1
- package/dist/core/rest/projects-client/workspaces.d.ts +425 -0
- package/dist/core/rest/projects-client/workspaces.d.ts.map +1 -0
- package/dist/core/rest/projects-client/workspaces.js +437 -0
- package/dist/core/rest/projects-client/workspaces.js.map +1 -0
- package/dist/core/runtime/env.d.ts.map +1 -1
- package/dist/core/runtime/env.js +7 -29
- package/dist/core/runtime/env.js.map +1 -1
- package/dist/core/runtime/kortix-master.d.ts.map +1 -1
- package/dist/core/runtime/kortix-master.js +53 -87
- package/dist/core/runtime/kortix-master.js.map +1 -1
- package/dist/core/runtime/pty.d.ts.map +1 -1
- package/dist/core/runtime/pty.js +13 -43
- package/dist/core/runtime/pty.js.map +1 -1
- package/dist/core/runtime/sandbox-request.d.ts +22 -0
- package/dist/core/runtime/sandbox-request.d.ts.map +1 -0
- package/dist/core/runtime/sandbox-request.js +69 -0
- package/dist/core/runtime/sandbox-request.js.map +1 -0
- package/dist/core/runtime/triggers.d.ts.map +1 -1
- package/dist/core/runtime/triggers.js +2 -16
- package/dist/core/runtime/triggers.js.map +1 -1
- package/dist/core/session/control-stream.js +1 -1
- package/dist/core/session/control-stream.js.map +1 -1
- package/dist/core/session/presentation.d.ts.map +1 -1
- package/dist/core/session/presentation.js +2 -7
- package/dist/core/session/presentation.js.map +1 -1
- package/dist/core/session/project-session-read.d.ts +2 -2
- package/dist/core/session/project-session-read.d.ts.map +1 -1
- package/dist/core/session/project-session-read.js +2 -2
- package/dist/core/session/project-session-read.js.map +1 -1
- package/dist/core/session/runtime-sessions.d.ts +3 -1
- package/dist/core/session/runtime-sessions.d.ts.map +1 -1
- package/dist/core/session/runtime-sessions.js +3 -1
- package/dist/core/session/runtime-sessions.js.map +1 -1
- package/dist/core/session/runtime-workflows.js +2 -2
- package/dist/core/session/runtime-workflows.js.map +1 -1
- package/dist/core/session-log/source.d.ts +2 -4
- package/dist/core/session-log/source.d.ts.map +1 -1
- package/dist/core/session-log/source.js +2 -7
- package/dist/core/session-log/source.js.map +1 -1
- package/dist/core/session-sync/saved-transcript.js +1 -1
- package/dist/core/session-sync/saved-transcript.js.map +1 -1
- package/dist/core/turns/errors.d.ts.map +1 -1
- package/dist/core/turns/errors.js +1 -10
- package/dist/core/turns/errors.js.map +1 -1
- package/dist/core/turns/text-scan.d.ts +8 -0
- package/dist/core/turns/text-scan.d.ts.map +1 -1
- package/dist/core/turns/text-scan.js +28 -2
- package/dist/core/turns/text-scan.js.map +1 -1
- package/dist/core/turns/tools/kortix-tool-card.d.ts +0 -8
- package/dist/core/turns/tools/kortix-tool-card.d.ts.map +1 -1
- package/dist/core/turns/tools/kortix-tool-card.js +40 -5
- package/dist/core/turns/tools/kortix-tool-card.js.map +1 -1
- package/dist/core/turns/tools/tool-outcome.d.ts.map +1 -1
- package/dist/core/turns/tools/tool-outcome.js +1 -14
- package/dist/core/turns/tools/tool-outcome.js.map +1 -1
- package/dist/core/turns/tools/tool-output-format.d.ts.map +1 -1
- package/dist/core/turns/tools/tool-output-format.js +1 -9
- package/dist/core/turns/tools/tool-output-format.js.map +1 -1
- package/dist/core/turns/tools/workflow-run.d.ts.map +1 -1
- package/dist/core/turns/tools/workflow-run.js +10 -19
- package/dist/core/turns/tools/workflow-run.js.map +1 -1
- package/dist/core/turns/view-model.d.ts.map +1 -1
- package/dist/core/turns/view-model.js +2 -3
- package/dist/core/turns/view-model.js.map +1 -1
- package/dist/core/wire-values.d.ts +8 -5
- package/dist/core/wire-values.d.ts.map +1 -1
- package/dist/core/wire-values.js +8 -5
- package/dist/core/wire-values.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/kortix.esm.min.js +53 -52
- package/dist/kortix.global.js +53 -52
- package/dist/node/app-guard.d.ts.map +1 -1
- package/dist/node/app-guard.js +2 -1
- package/dist/node/app-guard.js.map +1 -1
- package/dist/node/auth.d.ts.map +1 -1
- package/dist/node/auth.js +4 -2
- package/dist/node/auth.js.map +1 -1
- package/dist/react/index.d.ts +9 -7
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +12 -7
- package/dist/react/index.js.map +1 -1
- package/dist/react/invalidate-project.d.ts +16 -4
- package/dist/react/invalidate-project.d.ts.map +1 -1
- package/dist/react/invalidate-project.js +14 -4
- package/dist/react/invalidate-project.js.map +1 -1
- package/dist/react/prefetch-session-start.js +2 -2
- package/dist/react/prefetch-session-start.js.map +1 -1
- package/dist/react/provider-refresh.d.ts +6 -2
- package/dist/react/provider-refresh.d.ts.map +1 -1
- package/dist/react/provider-refresh.js +8 -4
- package/dist/react/provider-refresh.js.map +1 -1
- package/dist/react/query-keys.d.ts +18 -0
- package/dist/react/query-keys.d.ts.map +1 -1
- package/dist/react/query-keys.js +12 -0
- package/dist/react/query-keys.js.map +1 -1
- package/dist/react/route-project.d.ts +6 -2
- package/dist/react/route-project.d.ts.map +1 -1
- package/dist/react/route-project.js +6 -2
- package/dist/react/route-project.js.map +1 -1
- package/dist/react/runtime-actions.d.ts +6 -2
- package/dist/react/runtime-actions.d.ts.map +1 -1
- package/dist/react/runtime-actions.js +7 -3
- package/dist/react/runtime-actions.js.map +1 -1
- package/dist/react/runtime-hooks.d.ts +5 -5
- package/dist/react/runtime-hooks.d.ts.map +1 -1
- package/dist/react/runtime-hooks.js +4 -4
- package/dist/react/runtime-hooks.js.map +1 -1
- package/dist/react/session-cache-write.d.ts +18 -5
- package/dist/react/session-cache-write.d.ts.map +1 -1
- package/dist/react/session-cache-write.js +16 -6
- package/dist/react/session-cache-write.js.map +1 -1
- package/dist/react/use-accounts.d.ts +13 -1
- package/dist/react/use-accounts.d.ts.map +1 -1
- package/dist/react/use-accounts.js +9 -3
- package/dist/react/use-accounts.js.map +1 -1
- package/dist/react/use-admin-accounts.d.ts +6 -1
- package/dist/react/use-admin-accounts.d.ts.map +1 -1
- package/dist/react/use-admin-accounts.js +3 -1
- package/dist/react/use-admin-accounts.js.map +1 -1
- package/dist/react/use-admin-projects.d.ts +26 -3
- package/dist/react/use-admin-projects.d.ts.map +1 -1
- package/dist/react/use-admin-projects.js +3 -1
- package/dist/react/use-admin-projects.js.map +1 -1
- package/dist/react/use-canonical-runtime-session.js +2 -2
- package/dist/react/use-canonical-runtime-session.js.map +1 -1
- package/dist/react/use-feature-flag.d.ts +24 -0
- package/dist/react/use-feature-flag.d.ts.map +1 -1
- package/dist/react/use-feature-flag.js +45 -1
- package/dist/react/use-feature-flag.js.map +1 -1
- package/dist/react/use-gateway-catalog-sync.js +4 -4
- package/dist/react/use-gateway-catalog-sync.js.map +1 -1
- package/dist/react/use-goals.d.ts +25 -7
- package/dist/react/use-goals.d.ts.map +1 -1
- package/dist/react/use-goals.js +31 -19
- package/dist/react/use-goals.js.map +1 -1
- package/dist/react/use-model-access.js +3 -3
- package/dist/react/use-model-access.js.map +1 -1
- package/dist/react/use-model-enablement.js +4 -4
- package/dist/react/use-model-enablement.js.map +1 -1
- package/dist/react/use-model-store.d.ts +7 -0
- package/dist/react/use-model-store.d.ts.map +1 -1
- package/dist/react/use-model-store.js +48 -46
- package/dist/react/use-model-store.js.map +1 -1
- package/dist/react/use-multi-agent.js +2 -2
- package/dist/react/use-multi-agent.js.map +1 -1
- package/dist/react/use-now.d.ts +7 -0
- package/dist/react/use-now.d.ts.map +1 -0
- package/dist/react/use-now.js +18 -0
- package/dist/react/use-now.js.map +1 -0
- package/dist/react/use-project-apps.d.ts +5 -1
- package/dist/react/use-project-apps.d.ts.map +1 -1
- package/dist/react/use-project-apps.js +38 -55
- package/dist/react/use-project-apps.js.map +1 -1
- package/dist/react/use-project-config.d.ts +3 -1
- package/dist/react/use-project-config.d.ts.map +1 -1
- package/dist/react/use-project-config.js +5 -3
- package/dist/react/use-project-config.js.map +1 -1
- package/dist/react/use-project-files.d.ts +9 -3
- package/dist/react/use-project-files.d.ts.map +1 -1
- package/dist/react/use-project-files.js +12 -6
- package/dist/react/use-project-files.js.map +1 -1
- package/dist/react/use-project-memory.d.ts +24 -8
- package/dist/react/use-project-memory.d.ts.map +1 -1
- package/dist/react/use-project-memory.js +33 -17
- package/dist/react/use-project-memory.js.map +1 -1
- package/dist/react/use-project-models.d.ts +6 -2
- package/dist/react/use-project-models.d.ts.map +1 -1
- package/dist/react/use-project-models.js +9 -5
- package/dist/react/use-project-models.js.map +1 -1
- package/dist/react/use-project-name.d.ts +9 -3
- package/dist/react/use-project-name.d.ts.map +1 -1
- package/dist/react/use-project-name.js +9 -3
- package/dist/react/use-project-name.js.map +1 -1
- package/dist/react/use-project-search.d.ts +3 -1
- package/dist/react/use-project-search.d.ts.map +1 -1
- package/dist/react/use-project-search.js +5 -3
- package/dist/react/use-project-search.js.map +1 -1
- package/dist/react/use-project-secrets.d.ts +12 -8
- package/dist/react/use-project-secrets.d.ts.map +1 -1
- package/dist/react/use-project-secrets.js +13 -9
- package/dist/react/use-project-secrets.js.map +1 -1
- package/dist/react/use-project-session.d.ts +3 -1
- package/dist/react/use-project-session.d.ts.map +1 -1
- package/dist/react/use-project-session.js +5 -3
- package/dist/react/use-project-session.js.map +1 -1
- package/dist/react/use-project-sessions.d.ts +12 -3
- package/dist/react/use-project-sessions.d.ts.map +1 -1
- package/dist/react/use-project-sessions.js +17 -11
- package/dist/react/use-project-sessions.js.map +1 -1
- package/dist/react/use-project-spaces.d.ts +54 -18
- package/dist/react/use-project-spaces.d.ts.map +1 -1
- package/dist/react/use-project-spaces.js +73 -37
- package/dist/react/use-project-spaces.js.map +1 -1
- package/dist/react/use-project-triggers.d.ts +27 -11
- package/dist/react/use-project-triggers.d.ts.map +1 -1
- package/dist/react/use-project-triggers.js +40 -24
- package/dist/react/use-project-triggers.js.map +1 -1
- package/dist/react/use-reminders.d.ts +3 -1
- package/dist/react/use-reminders.d.ts.map +1 -1
- package/dist/react/use-reminders.js +5 -3
- package/dist/react/use-reminders.js.map +1 -1
- package/dist/react/use-runtime-events/connect-stream.d.ts +63 -0
- package/dist/react/use-runtime-events/connect-stream.d.ts.map +1 -0
- package/dist/react/use-runtime-events/connect-stream.js +178 -0
- package/dist/react/use-runtime-events/connect-stream.js.map +1 -0
- package/dist/react/use-runtime-events/helpers.js +4 -4
- package/dist/react/use-runtime-events/helpers.js.map +1 -1
- package/dist/react/use-runtime-events/index.d.ts +3 -16
- package/dist/react/use-runtime-events/index.d.ts.map +1 -1
- package/dist/react/use-runtime-events/index.js +84 -201
- package/dist/react/use-runtime-events/index.js.map +1 -1
- package/dist/react/use-runtime-events/lsp-diagnostics.d.ts +15 -0
- package/dist/react/use-runtime-events/lsp-diagnostics.d.ts.map +1 -0
- package/dist/react/use-runtime-events/lsp-diagnostics.js +98 -0
- package/dist/react/use-runtime-events/lsp-diagnostics.js.map +1 -0
- package/dist/react/use-runtime-events/use-event-stream-refs.d.ts +2 -3
- package/dist/react/use-runtime-events/use-event-stream-refs.d.ts.map +1 -1
- package/dist/react/use-runtime-events/use-event-stream-refs.js +8 -89
- package/dist/react/use-runtime-events/use-event-stream-refs.js.map +1 -1
- package/dist/react/use-runtime-local.js +2 -2
- package/dist/react/use-runtime-local.js.map +1 -1
- package/dist/react/use-runtime-sessions/agents.js +2 -2
- package/dist/react/use-runtime-sessions/agents.js.map +1 -1
- package/dist/react/use-runtime-sessions/messages.js +1 -1
- package/dist/react/use-runtime-sessions/messages.js.map +1 -1
- package/dist/react/use-runtime-sessions/projects.d.ts +3 -1
- package/dist/react/use-runtime-sessions/projects.d.ts.map +1 -1
- package/dist/react/use-runtime-sessions/projects.js +5 -3
- package/dist/react/use-runtime-sessions/projects.js.map +1 -1
- package/dist/react/use-runtime-sessions/providers.js +4 -4
- package/dist/react/use-runtime-sessions/providers.js.map +1 -1
- package/dist/react/use-session-groups.d.ts +18 -6
- package/dist/react/use-session-groups.d.ts.map +1 -1
- package/dist/react/use-session-groups.js +30 -18
- package/dist/react/use-session-groups.js.map +1 -1
- package/dist/react/use-session-list-state.js +2 -2
- package/dist/react/use-session-list-state.js.map +1 -1
- package/dist/react/use-session-model-selection.js +2 -2
- package/dist/react/use-session-model-selection.js.map +1 -1
- package/dist/react/use-session-stream.d.ts +9 -3
- package/dist/react/use-session-stream.d.ts.map +1 -1
- package/dist/react/use-session-stream.js +29 -39
- package/dist/react/use-session-stream.js.map +1 -1
- package/dist/react/use-session.js +6 -6
- package/dist/react/use-session.js.map +1 -1
- package/dist/react/use-teams-installations.js +5 -5
- package/dist/react/use-teams-installations.js.map +1 -1
- package/dist/react/use-tunnel.d.ts +3 -1
- package/dist/react/use-tunnel.d.ts.map +1 -1
- package/dist/react/use-tunnel.js +5 -3
- package/dist/react/use-tunnel.js.map +1 -1
- package/dist/react/use-workspaces.d.ts +84 -0
- package/dist/react/use-workspaces.d.ts.map +1 -0
- package/dist/react/use-workspaces.js +88 -0
- package/dist/react/use-workspaces.js.map +1 -0
- package/package.json +6 -2
- package/dist/core/rest/projects-client/iam-query.d.ts +0 -3
- package/dist/core/rest/projects-client/iam-query.d.ts.map +0 -1
- package/dist/core/rest/projects-client/iam-query.js +0 -11
- package/dist/core/rest/projects-client/iam-query.js.map +0 -1
- package/dist/react/use-runtime-events/rehydrate-targets.d.ts +0 -18
- package/dist/react/use-runtime-events/rehydrate-targets.d.ts.map +0 -1
- package/dist/react/use-runtime-events/rehydrate-targets.js +0 -20
- package/dist/react/use-runtime-events/rehydrate-targets.js.map +0 -1
|
@@ -119,27 +119,1182 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
119
119
|
acceptAndLand: typeof P.acceptAccountInviteAndLand;
|
|
120
120
|
decline: typeof P.declineAccountInvite;
|
|
121
121
|
};
|
|
122
|
+
/** The caller's workspaces: `list`, `get`, `update`, `create`. */
|
|
123
|
+
workspaces: {
|
|
124
|
+
list: typeof P.listWorkspaces;
|
|
125
|
+
get: typeof P.getWorkspace;
|
|
126
|
+
update: typeof P.updateWorkspace;
|
|
127
|
+
create: typeof P.createWorkspace;
|
|
128
|
+
delete: typeof P.deleteWorkspace;
|
|
129
|
+
restore: typeof P.restoreWorkspace;
|
|
130
|
+
};
|
|
131
|
+
/** One workspace by id. See `workspace()` above. */
|
|
132
|
+
workspace: (workspaceId: string) => {
|
|
133
|
+
id: string;
|
|
134
|
+
get: () => Promise<P.Workspace>;
|
|
135
|
+
update: (input: P.WorkspaceUpdateInput) => Promise<P.Workspace>;
|
|
136
|
+
delete: () => Promise<P.DeleteWorkspaceResult>;
|
|
137
|
+
restore: () => Promise<P.Workspace>;
|
|
138
|
+
setup: (input?: P.SetupWorkspaceInput) => Promise<P.Workspace>;
|
|
139
|
+
accountId: () => Promise<string>;
|
|
140
|
+
members: {
|
|
141
|
+
list: () => Promise<P.AccountMember[]>;
|
|
142
|
+
invite: (input: P.InviteWorkspaceMemberInput) => Promise<P.InviteMemberResult>;
|
|
143
|
+
updateRole: (userId: string, role: P.WorkspaceRole) => Promise<P.AccountMember>;
|
|
144
|
+
remove: (userId: string) => Promise<{
|
|
145
|
+
ok: boolean;
|
|
146
|
+
}>;
|
|
147
|
+
invites: () => Promise<P.AccountInvitation[]>;
|
|
148
|
+
cancelInvite: (inviteId: string) => Promise<{
|
|
149
|
+
ok: boolean;
|
|
150
|
+
}>;
|
|
151
|
+
resendInvite: (inviteId: string) => Promise<P.ResendInviteResult>;
|
|
152
|
+
};
|
|
153
|
+
leave: () => Promise<{
|
|
154
|
+
ok: boolean;
|
|
155
|
+
}>;
|
|
156
|
+
billing: {
|
|
157
|
+
state: (options?: import("./binding-types.js").DropFirst<Parameters<typeof P.getWorkspaceBillingState>>[0]) => Promise<P.AccountState>;
|
|
158
|
+
};
|
|
159
|
+
tokens: {
|
|
160
|
+
list: (options?: import("./binding-types.js").DropFirst<Parameters<typeof P.listWorkspaceTokens>>[0]) => Promise<P.AccountToken[]>;
|
|
161
|
+
create: (input: P.CreateWorkspaceTokenInput) => Promise<P.CreatedAccountToken>;
|
|
162
|
+
revoke: (tokenId: string, options?: {
|
|
163
|
+
deleteRevoked?: boolean;
|
|
164
|
+
} | undefined) => Promise<{
|
|
165
|
+
ok: boolean;
|
|
166
|
+
deleted?: boolean;
|
|
167
|
+
}>;
|
|
168
|
+
};
|
|
169
|
+
keys: {
|
|
170
|
+
list: () => Promise<P.WorkspaceKeyList>;
|
|
171
|
+
create: (input: P.CreateWorkspaceKeyInput) => Promise<P.CreatedWorkspaceKey>;
|
|
172
|
+
revoke: (keyId: string, options?: {
|
|
173
|
+
deleteRevoked?: boolean;
|
|
174
|
+
} | undefined) => Promise<{
|
|
175
|
+
ok: boolean;
|
|
176
|
+
deleted?: boolean;
|
|
177
|
+
}>;
|
|
178
|
+
};
|
|
179
|
+
iam: {
|
|
180
|
+
assignments: {
|
|
181
|
+
list: (filter?: P.ListAssignmentsFilter) => Promise<P.RoleAssignment[]>;
|
|
182
|
+
create: (input: P.AssignmentInput) => Promise<P.RoleAssignment>;
|
|
183
|
+
revoke: (assignmentId: string) => Promise<P.RoleAssignment>;
|
|
184
|
+
};
|
|
185
|
+
roles: () => Promise<P.IamRole[]>;
|
|
186
|
+
groups: () => Promise<P.AccountGroup[]>;
|
|
187
|
+
can: (userId: string, args: P.PermissionProbeInput) => Promise<P.PermissionProbeResult>;
|
|
188
|
+
canBatch: (userId: string, probes: P.PermissionProbeInput[], options?: {
|
|
189
|
+
showErrors?: boolean;
|
|
190
|
+
} | undefined) => Promise<P.PermissionProbeResult[]>;
|
|
191
|
+
};
|
|
192
|
+
/** The project CLI tokens (`/workspaces/:id/cli-token`): `project(id).tokens`. */
|
|
193
|
+
cliTokens: {
|
|
194
|
+
list: () => Promise<P.ProjectCliTokenListResponse>;
|
|
195
|
+
create: (input?: Parameters<typeof P.createWorkspaceCliToken>[1]) => Promise<P.CreatedProjectCliToken>;
|
|
196
|
+
revoke: (tokenId: string) => Promise<{
|
|
197
|
+
ok: boolean;
|
|
198
|
+
}>;
|
|
199
|
+
};
|
|
200
|
+
/** One connector of this project: `run`, `call`, `describe`, `accounts`, `paginate`. */
|
|
201
|
+
connector: <S extends string>(slug: S) => P.ConnectorHandle<S>;
|
|
202
|
+
session: (sessionId: string) => {
|
|
203
|
+
runtime: RuntimeClient;
|
|
204
|
+
messages: (options?: {
|
|
205
|
+
conversationId?: string;
|
|
206
|
+
limit?: number;
|
|
207
|
+
before?: string;
|
|
208
|
+
signal?: AbortSignal;
|
|
209
|
+
}) => Promise<import("../session/index.js").TranscriptPage>;
|
|
210
|
+
pending: () => Promise<import("../session/index.js").PendingInteractions>;
|
|
211
|
+
pendingRequests: () => Promise<import("../session/index.js").RuntimePending>;
|
|
212
|
+
liveLog: (query?: {
|
|
213
|
+
thread?: string;
|
|
214
|
+
before_seq?: number;
|
|
215
|
+
limit?: number;
|
|
216
|
+
}) => Promise<import("../session/index.js").RuntimeLogPage | null>;
|
|
217
|
+
answerPermission: (requestId: string, reply: import("../../index.js").RuntimePermissionReply, message?: string) => Promise<void>;
|
|
218
|
+
answerQuestion: (requestId: string, answers: import("../../index.js").RuntimeQuestionAnswer[] | null) => Promise<void>;
|
|
219
|
+
compact: (model?: {
|
|
220
|
+
providerID: string;
|
|
221
|
+
modelID: string;
|
|
222
|
+
}) => Promise<{
|
|
223
|
+
providerID: string;
|
|
224
|
+
modelID: string;
|
|
225
|
+
}>;
|
|
226
|
+
reachable: (options?: {
|
|
227
|
+
scope?: P.ReachableScope;
|
|
228
|
+
}) => Promise<P.ReachableAgents>;
|
|
229
|
+
setInbound: (inbound: P.SessionInbound) => Promise<{
|
|
230
|
+
inbound: P.SessionInbound;
|
|
231
|
+
}>;
|
|
232
|
+
peerMessages: {
|
|
233
|
+
send: (body: P.PeerMessageSendBody) => Promise<P.PeerMessageSendResult>;
|
|
234
|
+
list: (options?: {
|
|
235
|
+
direction?: "in" | "out";
|
|
236
|
+
}) => Promise<{
|
|
237
|
+
messages: P.PeerMessage[];
|
|
238
|
+
}>;
|
|
239
|
+
approve: (messageId: string) => Promise<P.PeerMessage>;
|
|
240
|
+
deny: (messageId: string) => Promise<P.PeerMessage>;
|
|
241
|
+
};
|
|
242
|
+
tasks: {
|
|
243
|
+
list: () => Promise<{
|
|
244
|
+
tasks: P.SessionTask[];
|
|
245
|
+
}>;
|
|
246
|
+
create: (body: P.SessionTaskCreateBody) => Promise<P.SessionTask>;
|
|
247
|
+
update: (seq: number, body: P.SessionTaskUpdateBody) => Promise<P.SessionTask>;
|
|
248
|
+
remove: (seq: number) => Promise<{
|
|
249
|
+
deleted: true;
|
|
250
|
+
}>;
|
|
251
|
+
};
|
|
252
|
+
workflows: {
|
|
253
|
+
list: () => Promise<{
|
|
254
|
+
runs: P.WorkflowRunMetadata[];
|
|
255
|
+
}>;
|
|
256
|
+
control: (runId: string, body: P.WorkflowControlBody) => Promise<P.WorkflowControlResult>;
|
|
257
|
+
};
|
|
258
|
+
files: {
|
|
259
|
+
list: (dirPath: string) => Promise<import("../../index.js").FileNode[]>;
|
|
260
|
+
read: (filePath: string) => Promise<import("../../index.js").FileContent>;
|
|
261
|
+
readBlob: (filePath: string) => Promise<Blob>;
|
|
262
|
+
status: () => Promise<import("../../index.js").GitFileStatus[]>;
|
|
263
|
+
findFiles: (query: string, options?: {
|
|
264
|
+
type?: "file" | "directory";
|
|
265
|
+
limit?: number;
|
|
266
|
+
}) => Promise<string[]>;
|
|
267
|
+
findText: (pattern: string) => Promise<import("../../index.js").FindMatch[]>;
|
|
268
|
+
upload: (file: File | Blob, targetPath?: string, filename?: string, options?: import("../../index.js").UploadFileOptions) => Promise<import("../../index.js").UploadResult[]>;
|
|
269
|
+
write: (filePath: string, content: Blob | File) => Promise<import("../../index.js").WriteFileResult>;
|
|
270
|
+
create: (filePath: string) => Promise<import("../../index.js").UploadResult[]>;
|
|
271
|
+
copy: (sourcePath: string, destPath: string) => Promise<import("../../index.js").UploadResult[]>;
|
|
272
|
+
remove: (filePath: string) => Promise<boolean>;
|
|
273
|
+
mkdir: (dirPath: string) => Promise<boolean>;
|
|
274
|
+
rename: (from: string, to: string) => Promise<boolean>;
|
|
275
|
+
};
|
|
276
|
+
abort: () => Promise<({
|
|
277
|
+
data: undefined;
|
|
278
|
+
error: unknown;
|
|
279
|
+
} | {
|
|
280
|
+
data: boolean;
|
|
281
|
+
error: undefined;
|
|
282
|
+
}) & {
|
|
283
|
+
request: Request;
|
|
284
|
+
response: Response;
|
|
285
|
+
}>;
|
|
286
|
+
rewind: (messageId: string) => Promise<({
|
|
287
|
+
data: undefined;
|
|
288
|
+
error: unknown;
|
|
289
|
+
} | {
|
|
290
|
+
data: import("../../index.js").Session;
|
|
291
|
+
error: undefined;
|
|
292
|
+
}) & {
|
|
293
|
+
request: Request;
|
|
294
|
+
response: Response;
|
|
295
|
+
}>;
|
|
296
|
+
restoreRewind: () => Promise<({
|
|
297
|
+
data: undefined;
|
|
298
|
+
error: unknown;
|
|
299
|
+
} | {
|
|
300
|
+
data: import("../../index.js").Session;
|
|
301
|
+
error: undefined;
|
|
302
|
+
}) & {
|
|
303
|
+
request: Request;
|
|
304
|
+
response: Response;
|
|
305
|
+
}>;
|
|
306
|
+
stream: (opts: {
|
|
307
|
+
onEvent: (event: import("../../index.js").RuntimeEvent) => void;
|
|
308
|
+
onGapRehydrate?: (gapMs: number) => void;
|
|
309
|
+
signal?: AbortSignal;
|
|
310
|
+
}) => Promise<import("../../index.js").EventStreamHandle>;
|
|
311
|
+
scope: () => Promise<P.SessionScope>;
|
|
312
|
+
providerSecretPool: {
|
|
313
|
+
list: () => Promise<{
|
|
314
|
+
pools: P.SessionProviderSecretPool[];
|
|
315
|
+
can_edit: boolean;
|
|
316
|
+
personal_user_id?: string | null;
|
|
317
|
+
personal_keys_reason?: "shared" | "prompted_by_another_member" | "no_person" | null;
|
|
318
|
+
}>;
|
|
319
|
+
get: (providerId: string) => Promise<P.SessionProviderSecretPool>;
|
|
320
|
+
set: (providerId: string, secretIds: string[] | null) => Promise<P.SessionProviderSecretPool>;
|
|
321
|
+
};
|
|
322
|
+
rescope: (scope: P.SessionScopeInput) => Promise<P.SessionScope>;
|
|
323
|
+
setAgent: (agent: string | undefined) => void;
|
|
324
|
+
send: (text: string, opts?: {
|
|
325
|
+
model?: import("./session-shared.js").SessionModel;
|
|
326
|
+
agent?: string;
|
|
327
|
+
}) => Promise<P.CreateSessionPromptResult>;
|
|
328
|
+
setModel: (model: import("./session-shared.js").SessionModel | undefined) => void;
|
|
329
|
+
getModel: () => Promise<{
|
|
330
|
+
model: string | null;
|
|
331
|
+
}>;
|
|
332
|
+
switchModel: (input: P.SessionModelSwitchInput) => Promise<P.SessionModelSwitchResult>;
|
|
333
|
+
changeModel: (model: string) => Promise<P.SessionModelChangeResult>;
|
|
334
|
+
health: (init?: RequestInit) => Promise<import("../session/index.js").SessionHealthResult>;
|
|
335
|
+
previewUrl: (port: number, path?: string) => string;
|
|
336
|
+
proxyUrl: (url?: string) => string | undefined;
|
|
337
|
+
sandboxPortUrl: (port: number) => string;
|
|
338
|
+
reminders: {
|
|
339
|
+
list: () => Promise<{
|
|
340
|
+
reminders: P.SessionReminder[];
|
|
341
|
+
}>;
|
|
342
|
+
create: (input: Parameters<typeof P.createSessionReminder>[2]) => Promise<P.SessionReminder>;
|
|
343
|
+
update: (reminderId: string, input: Parameters<typeof P.updateSessionReminder>[3]) => Promise<P.SessionReminder>;
|
|
344
|
+
remove: (reminderId: string) => Promise<{
|
|
345
|
+
ok: boolean;
|
|
346
|
+
}>;
|
|
347
|
+
run: (reminderId: string) => Promise<P.SessionReminder>;
|
|
348
|
+
};
|
|
349
|
+
audit: (limit?: number, options?: Parameters<typeof P.getSessionAudit>[3]) => Promise<P.SessionAudit>;
|
|
350
|
+
attachments: {
|
|
351
|
+
upload: (file: File, options?: Parameters<typeof P.uploadSessionAttachment>[3]) => Promise<P.SessionAttachment>;
|
|
352
|
+
read: (attachmentId: string, signal?: AbortSignal) => Promise<Blob>;
|
|
353
|
+
};
|
|
354
|
+
transcript: (options?: Parameters<typeof P.getSessionTranscript>[2]) => Promise<P.SessionTranscript>;
|
|
355
|
+
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
356
|
+
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
357
|
+
usage: () => Promise<P.SessionUsage>;
|
|
358
|
+
transcriptSync: (options?: Parameters<typeof P.getSessionTranscriptSync>[2]) => Promise<P.SessionTranscriptSyncEnvelope>;
|
|
359
|
+
log: (query?: Parameters<typeof P.getSessionLogPage>[2]) => Promise<import("../session-log/index.js").SessionLogPage | null>;
|
|
360
|
+
turn: () => Promise<P.SessionTurnStatus>;
|
|
361
|
+
prompts: {
|
|
362
|
+
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
363
|
+
list: () => Promise<{
|
|
364
|
+
prompts: P.SessionPrompt[];
|
|
365
|
+
sent?: P.SessionSentPrompt[];
|
|
366
|
+
observed_at?: string;
|
|
367
|
+
}>;
|
|
368
|
+
remove: (promptId: string) => Promise<P.RemovedSessionPrompt>;
|
|
369
|
+
retry: (promptId: string) => Promise<P.SessionPrompt>;
|
|
370
|
+
edit: (promptId: string, text: string) => Promise<P.SessionPrompt>;
|
|
371
|
+
interrupt: (promptId: string) => Promise<P.SessionPrompt>;
|
|
372
|
+
hold: (held: boolean) => Promise<{
|
|
373
|
+
prompts: P.SessionPrompt[];
|
|
374
|
+
observed_at?: string;
|
|
375
|
+
}>;
|
|
376
|
+
};
|
|
377
|
+
ensureReady: (opts?: {
|
|
378
|
+
readyTimeoutMs?: number;
|
|
379
|
+
session?: P.ProjectSession;
|
|
380
|
+
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
381
|
+
get: (opts?: {
|
|
382
|
+
showErrors?: boolean;
|
|
383
|
+
}) => Promise<P.ProjectSession>;
|
|
384
|
+
presence: (input: {
|
|
385
|
+
tab_id: string;
|
|
386
|
+
active: boolean;
|
|
387
|
+
alerts?: boolean;
|
|
388
|
+
}, options?: {
|
|
389
|
+
keepalive?: boolean;
|
|
390
|
+
}) => Promise<import("../../index.js").ApiResponse<{
|
|
391
|
+
ok: boolean;
|
|
392
|
+
awake_until?: string | null;
|
|
393
|
+
awake_cap_at?: string | null;
|
|
394
|
+
}>>;
|
|
395
|
+
cost: () => Promise<P.SessionCostDetail>;
|
|
396
|
+
update: (input: Parameters<typeof P.updateWorkspaceSession>[2]) => Promise<P.ProjectSession>;
|
|
397
|
+
delete: () => Promise<{
|
|
398
|
+
ok: boolean;
|
|
399
|
+
restore_until?: string;
|
|
400
|
+
}>;
|
|
401
|
+
restore: () => Promise<{
|
|
402
|
+
ok: boolean;
|
|
403
|
+
}>;
|
|
404
|
+
recover: () => Promise<{
|
|
405
|
+
ok: true;
|
|
406
|
+
}>;
|
|
407
|
+
start: (options?: (number | {
|
|
408
|
+
waitMs?: number;
|
|
409
|
+
repositoryMode?: "previous";
|
|
410
|
+
keepStopped?: boolean;
|
|
411
|
+
intentAgeMs?: number;
|
|
412
|
+
}) | undefined) => Promise<P.SessionStartResult | null>;
|
|
413
|
+
startOrThrow: (options?: (number | {
|
|
414
|
+
waitMs?: number;
|
|
415
|
+
repositoryMode?: "previous";
|
|
416
|
+
keepStopped?: boolean;
|
|
417
|
+
intentAgeMs?: number;
|
|
418
|
+
}) | undefined) => Promise<P.SessionStartResult>;
|
|
419
|
+
restart: () => Promise<{
|
|
420
|
+
ok: boolean;
|
|
421
|
+
session_id: string;
|
|
422
|
+
status: string;
|
|
423
|
+
state_carried?: boolean | null;
|
|
424
|
+
warning?: string;
|
|
425
|
+
}>;
|
|
426
|
+
stop: () => Promise<{
|
|
427
|
+
ok: boolean;
|
|
428
|
+
session_id: string;
|
|
429
|
+
status: string;
|
|
430
|
+
}>;
|
|
431
|
+
configState: () => Promise<P.SessionConfigState>;
|
|
432
|
+
reloadConfig: (input?: Parameters<typeof P.reloadWorkspaceSessionConfig>[2]) => Promise<P.SessionReloadResult>;
|
|
433
|
+
reloadConfigStream: (input: {
|
|
434
|
+
refresh_repo?: boolean;
|
|
435
|
+
force?: boolean;
|
|
436
|
+
}, onEvent: (event: P.SessionReloadStreamEvent) => void, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.SessionReloadResult>;
|
|
437
|
+
setSharing: (intent: Parameters<typeof P.setWorkspaceSessionSharing>[2]) => Promise<P.ProjectSession>;
|
|
438
|
+
previews: () => Promise<{
|
|
439
|
+
candidates: P.SessionPreviewCandidate[];
|
|
440
|
+
}>;
|
|
441
|
+
participants: () => Promise<P.SessionParticipants>;
|
|
442
|
+
watch: () => Promise<{
|
|
443
|
+
watching: boolean;
|
|
444
|
+
}>;
|
|
445
|
+
setWatch: (watching: boolean) => Promise<{
|
|
446
|
+
watching: boolean;
|
|
447
|
+
}>;
|
|
448
|
+
setPinned: (pinned: boolean) => Promise<P.SessionListState>;
|
|
449
|
+
setArchived: (archived: boolean) => Promise<P.SessionListState>;
|
|
450
|
+
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
451
|
+
publicShares: {
|
|
452
|
+
list: () => Promise<{
|
|
453
|
+
shares: P.SessionPublicShare[];
|
|
454
|
+
}>;
|
|
455
|
+
create: (input: P.CreateSessionPublicShareInput) => Promise<{
|
|
456
|
+
share: P.SessionPublicShare;
|
|
457
|
+
}>;
|
|
458
|
+
revoke: (shareId: string) => Promise<{
|
|
459
|
+
share: P.SessionPublicShare;
|
|
460
|
+
}>;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
modelDefaults: {
|
|
464
|
+
get: () => Promise<P.ModelDefaultsResponse>;
|
|
465
|
+
set: (input: Parameters<typeof P.setModelDefault>[1]) => Promise<{
|
|
466
|
+
ok: boolean;
|
|
467
|
+
scope: string;
|
|
468
|
+
agentName?: string;
|
|
469
|
+
model: string;
|
|
470
|
+
}>;
|
|
471
|
+
clear: (params: Parameters<typeof P.clearModelDefault>[1]) => Promise<{
|
|
472
|
+
ok: boolean;
|
|
473
|
+
}>;
|
|
474
|
+
};
|
|
475
|
+
setDefaultAgent: (agentName: string) => Promise<P.UpdateProjectDefaultAgentResponse>;
|
|
476
|
+
sandbox: {
|
|
477
|
+
list: () => Promise<P.SandboxTemplatesResponse>;
|
|
478
|
+
snapshots: () => Promise<P.ProjectSnapshotsResponse>;
|
|
479
|
+
rebuildSnapshot: (slug?: string) => Promise<P.RebuildSnapshotResponse>;
|
|
480
|
+
fixWithAgent: () => Promise<{
|
|
481
|
+
session_id: string;
|
|
482
|
+
}>;
|
|
483
|
+
createTemplate: (input: Parameters<typeof P.createSandboxTemplate>[1]) => Promise<{
|
|
484
|
+
template_id: string;
|
|
485
|
+
slug: string;
|
|
486
|
+
}>;
|
|
487
|
+
updateTemplate: (templateId: string, input: P.UpdateSandboxTemplateInput) => Promise<{
|
|
488
|
+
template_id: string;
|
|
489
|
+
slug: string;
|
|
490
|
+
}>;
|
|
491
|
+
removeTemplate: (templateId: string) => Promise<null>;
|
|
492
|
+
buildTemplate: (templateId: string) => Promise<{
|
|
493
|
+
status: "started";
|
|
494
|
+
template_id: string;
|
|
495
|
+
slug: string;
|
|
496
|
+
providers?: Array<"platinum" | "daytona">;
|
|
497
|
+
}>;
|
|
498
|
+
setProvider: (provider: Parameters<typeof P.updateWorkspaceSandboxProvider>[1]) => Promise<P.UpdateProjectSandboxProviderResult>;
|
|
499
|
+
};
|
|
500
|
+
setAgentScope: (agentName: string, scope: {
|
|
501
|
+
env?: P.AgentGrantSet;
|
|
502
|
+
connectors?: P.AgentGrantSet;
|
|
503
|
+
connectors_required?: string[];
|
|
504
|
+
connectors_personal?: string[];
|
|
505
|
+
policy_sets?: Record<string, string | null>;
|
|
506
|
+
}) => Promise<{
|
|
507
|
+
ok: boolean;
|
|
508
|
+
agent: string;
|
|
509
|
+
env: P.AgentGrantSet;
|
|
510
|
+
connectors: P.AgentGrantSet;
|
|
511
|
+
connectors_required: string[];
|
|
512
|
+
policy_sets?: Record<string, string>;
|
|
513
|
+
}>;
|
|
514
|
+
channels: {
|
|
515
|
+
slack: {
|
|
516
|
+
installation: () => Promise<P.SlackInstallation | null>;
|
|
517
|
+
connect: (input: Parameters<typeof P.connectSlack>[1]) => Promise<P.SlackInstallation>;
|
|
518
|
+
mode: () => Promise<P.SlackMode>;
|
|
519
|
+
completeInstall: (input: Parameters<typeof P.completeSlackInstall>[1]) => Promise<P.ChannelInstallCompletion>;
|
|
520
|
+
manifest: () => Promise<Record<string, unknown>>;
|
|
521
|
+
disconnect: () => Promise<void>;
|
|
522
|
+
getFile: (url: string) => Promise<Blob>;
|
|
523
|
+
uploadFile: (input: Parameters<typeof P.uploadSlackChannelFile>[1]) => Promise<P.UploadSlackChannelFileResult>;
|
|
524
|
+
};
|
|
525
|
+
teams: {
|
|
526
|
+
completeInstall: (input: Parameters<typeof P.completeTeamsInstall>[1]) => Promise<P.ChannelInstallCompletion>;
|
|
527
|
+
};
|
|
528
|
+
telegram: {
|
|
529
|
+
installation: () => Promise<P.TelegramInstallation | null>;
|
|
530
|
+
connect: (input: Parameters<typeof P.connectTelegram>[1]) => Promise<P.TelegramInstallation>;
|
|
531
|
+
setAllowedUsers: (userIds: string[]) => Promise<P.TelegramInstallation>;
|
|
532
|
+
disconnect: () => Promise<void>;
|
|
533
|
+
users: () => Promise<P.TelegramUsers>;
|
|
534
|
+
allowUser: (userId: string) => Promise<P.TelegramInstallation>;
|
|
535
|
+
removeUser: (userId: string) => Promise<P.TelegramInstallation>;
|
|
536
|
+
dismissAccessRequest: (userId: string) => Promise<P.TelegramInstallation>;
|
|
537
|
+
userPhoto: (userId: string, version?: string | null | undefined, signal?: AbortSignal | undefined) => Promise<Blob | null>;
|
|
538
|
+
};
|
|
539
|
+
discord: {
|
|
540
|
+
mode: () => Promise<P.DiscordMode>;
|
|
541
|
+
installation: () => Promise<P.DiscordInstallation | null>;
|
|
542
|
+
completeInstall: (input: Parameters<typeof P.completeDiscordInstall>[1]) => Promise<P.ChannelInstallCompletion>;
|
|
543
|
+
setAllowedUsers: (userIds: string[]) => Promise<P.DiscordInstallation>;
|
|
544
|
+
disconnect: () => Promise<void>;
|
|
545
|
+
users: () => Promise<P.ChannelUsers>;
|
|
546
|
+
allowUser: (userId: string) => Promise<P.ChannelAccessList>;
|
|
547
|
+
removeUser: (userId: string) => Promise<P.ChannelAccessList>;
|
|
548
|
+
dismissAccessRequest: (userId: string) => Promise<P.ChannelAccessList>;
|
|
549
|
+
};
|
|
550
|
+
email: {
|
|
551
|
+
installation: (connectorSlug?: string | null) => Promise<P.EmailInstallation | null>;
|
|
552
|
+
mode: () => Promise<P.EmailMode>;
|
|
553
|
+
connect: (input: Parameters<typeof P.connectEmail>[1]) => Promise<P.EmailInstallation>;
|
|
554
|
+
disconnect: (connectorSlug?: string | null) => Promise<void>;
|
|
555
|
+
updatePolicy: (connectorSlug: string | null | undefined, senderPolicy: P.EmailSenderPolicy) => Promise<P.EmailInstallation>;
|
|
556
|
+
domains: (input?: Parameters<typeof P.listEmailDomains>[1]) => Promise<P.EmailDomainList>;
|
|
557
|
+
addDomain: (input: Parameters<typeof P.addEmailDomain>[1]) => Promise<P.EmailDomainResult>;
|
|
558
|
+
verifyDomain: (input: Parameters<typeof P.verifyEmailDomain>[1]) => Promise<P.EmailDomainResult>;
|
|
559
|
+
inboxes: {
|
|
560
|
+
list: () => Promise<P.EmailInbox[]>;
|
|
561
|
+
add: (input: Parameters<typeof P.addEmailInbox>[1]) => Promise<P.EmailInbox>;
|
|
562
|
+
update: (connectionId: string, input: P.UpdateEmailInboxInput) => Promise<P.EmailInbox>;
|
|
563
|
+
remove: (connectionId: string) => Promise<P.RemoveEmailInboxResult>;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
updateFeatureFlag: (feature: P.FeatureFlagKey, enabled: boolean | null) => Promise<P.KortixProject>;
|
|
568
|
+
updateExperimentalFeature: (feature: P.FeatureFlagKey, enabled: boolean | null) => Promise<P.KortixProject>;
|
|
569
|
+
gateway: {
|
|
570
|
+
logs: (opts?: Parameters<typeof P.listGatewayLogs>[1]) => Promise<P.GatewayLogsResponse>;
|
|
571
|
+
log: (logId: string) => Promise<P.GatewayLogDetail>;
|
|
572
|
+
logFacets: (opts?: Parameters<typeof P.getGatewayLogFacets>[1]) => Promise<P.GatewayLogFacets>;
|
|
573
|
+
overview: (days?: number) => Promise<P.GatewayOverview>;
|
|
574
|
+
series: (days?: number) => Promise<P.GatewaySeries>;
|
|
575
|
+
breakdown: (days?: number) => Promise<P.GatewayBreakdown>;
|
|
576
|
+
sessions: (days?: number) => Promise<P.GatewaySessions>;
|
|
577
|
+
errors: (days?: number) => Promise<P.GatewayErrorsResponse>;
|
|
578
|
+
budgets: () => Promise<P.GatewayBudgetsResponse>;
|
|
579
|
+
setBudget: (input: Parameters<typeof P.setGatewayBudget>[1]) => Promise<{
|
|
580
|
+
ok: boolean;
|
|
581
|
+
}>;
|
|
582
|
+
deleteBudget: (budgetId: string) => Promise<{
|
|
583
|
+
ok: boolean;
|
|
584
|
+
}>;
|
|
585
|
+
keys: () => Promise<{
|
|
586
|
+
keys: P.GatewayKeyRow[];
|
|
587
|
+
gateway_url?: string | null;
|
|
588
|
+
}>;
|
|
589
|
+
createKey: (name: string) => Promise<P.CreatedGatewayKey>;
|
|
590
|
+
revokeKey: (keyId: string) => Promise<{
|
|
591
|
+
ok: boolean;
|
|
592
|
+
}>;
|
|
593
|
+
routing: {
|
|
594
|
+
get: () => Promise<P.GatewayRoutingPolicyDocument>;
|
|
595
|
+
set: (policy: Parameters<typeof P.setGatewayRoutingPolicy>[1]) => Promise<P.GatewayRoutingPolicyDocument>;
|
|
596
|
+
reset: () => Promise<P.GatewayRoutingPolicyDocument>;
|
|
597
|
+
preview: (input: Parameters<typeof P.previewGatewayRoute>[1]) => Promise<P.GatewayRoutePreview>;
|
|
598
|
+
};
|
|
599
|
+
playground: (prompt: string, models: string[], system?: string) => Promise<P.GatewayPlaygroundResponse>;
|
|
600
|
+
};
|
|
601
|
+
sessions: {
|
|
602
|
+
list: (options?: Parameters<typeof P.listWorkspaceSessions>[1]) => Promise<P.ProjectSession[]>;
|
|
603
|
+
listPage: (options?: Parameters<typeof P.listWorkspaceSessionsPage>[1]) => Promise<P.ProjectSessionPage>;
|
|
604
|
+
create: (input?: Parameters<typeof P.createWorkspaceSession>[1]) => Promise<P.ProjectSession>;
|
|
605
|
+
ensureWarm: () => Promise<P.WarmProjectSessionResult>;
|
|
606
|
+
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
607
|
+
};
|
|
608
|
+
spaces: {
|
|
609
|
+
list: () => Promise<P.ProjectSpace[]>;
|
|
610
|
+
create: (input: Parameters<typeof P.createWorkspaceSpace>[1]) => Promise<P.ProjectSpace>;
|
|
611
|
+
update: (spaceId: string, input: P.UpdateProjectSpaceInput) => Promise<P.ProjectSpace>;
|
|
612
|
+
setTabs: (spaceId: string, tabs: P.ProjectSpaceTab[]) => Promise<P.ProjectSpace>;
|
|
613
|
+
dm: (agentName: string) => Promise<P.ProjectSpace>;
|
|
614
|
+
proactive: {
|
|
615
|
+
get: (spaceId: string) => Promise<P.ProjectSpaceProactive>;
|
|
616
|
+
set: (spaceId: string, input: P.ProjectSpaceProactiveInput) => Promise<P.ProjectSpaceProactive>;
|
|
617
|
+
};
|
|
618
|
+
apps: (spaceId: string) => Promise<P.App[]>;
|
|
619
|
+
links: {
|
|
620
|
+
list: (spaceId: string) => Promise<P.ProjectSpaceLink[]>;
|
|
621
|
+
add: (spaceId: string, input: P.AddProjectSpaceLinkInput) => Promise<P.ProjectSpaceLink>;
|
|
622
|
+
pin: (spaceId: string, linkId: string, pinned: boolean) => Promise<P.ProjectSpaceLink | null>;
|
|
623
|
+
remove: (spaceId: string, linkId: string) => Promise<void>;
|
|
624
|
+
};
|
|
625
|
+
members: {
|
|
626
|
+
list: (spaceId: string) => Promise<P.ProjectSpaceMemberList>;
|
|
627
|
+
add: (spaceId: string, userIds: string[]) => Promise<P.ProjectSpaceMemberList>;
|
|
628
|
+
remove: (spaceId: string, userId: string) => Promise<P.ProjectSpaceMemberList>;
|
|
629
|
+
join: (spaceId: string) => Promise<P.ProjectSpaceMemberList>;
|
|
630
|
+
leave: (spaceId: string) => Promise<P.ProjectSpaceMemberList>;
|
|
631
|
+
};
|
|
632
|
+
generalNotice: () => Promise<P.ProjectSpaceGeneralNotice | null>;
|
|
633
|
+
privateChannelsAvailable: () => Promise<boolean>;
|
|
634
|
+
privateChannelsNotIn: () => Promise<P.PrivateChannelSummary[]>;
|
|
635
|
+
onboarding: {
|
|
636
|
+
get: () => Promise<P.ChannelsOnboarding>;
|
|
637
|
+
mark: (mark: P.ChannelsOnboardingMark) => Promise<void>;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
sessionGroups: {
|
|
641
|
+
list: () => Promise<P.ProjectSessionGroup[]>;
|
|
642
|
+
create: (input: Parameters<typeof P.createWorkspaceSessionGroup>[1]) => Promise<P.ProjectSessionGroup>;
|
|
643
|
+
rename: (groupId: string, name: string) => Promise<P.ProjectSessionGroup>;
|
|
644
|
+
reorder: (groupIds: readonly string[]) => Promise<P.ProjectSessionGroup[]>;
|
|
645
|
+
delete: (groupId: string) => Promise<void>;
|
|
646
|
+
file: (sessionId: string, groupId: string | null) => Promise<P.ProjectSessionGroupAssignment>;
|
|
647
|
+
};
|
|
648
|
+
memory: {
|
|
649
|
+
layer: (layerKey: string) => Promise<P.ProjectMemoryLayer>;
|
|
650
|
+
pages: {
|
|
651
|
+
list: (layerKey: string, options?: P.ProjectMemoryPageListOptions | undefined) => Promise<P.ProjectMemoryPageSummary[]>;
|
|
652
|
+
create: (layerKey: string, input: P.CreateProjectMemoryPageInput) => Promise<P.ProjectMemoryPage>;
|
|
653
|
+
get: (pageId: string) => Promise<P.ProjectMemoryPage>;
|
|
654
|
+
update: (pageId: string, input: P.UpdateProjectMemoryPageInput) => Promise<P.ProjectMemoryPage>;
|
|
655
|
+
delete: (pageId: string) => Promise<P.ProjectMemoryDeleteResult>;
|
|
656
|
+
history: (pageId: string) => Promise<P.ProjectMemoryVersionList>;
|
|
657
|
+
};
|
|
658
|
+
notes: {
|
|
659
|
+
add: (layerKey: string, input: P.AddProjectMemoryNoteInput) => Promise<P.ProjectMemoryPage>;
|
|
660
|
+
};
|
|
661
|
+
search: (input: P.ProjectMemorySearchInput) => Promise<P.ProjectMemorySearchResult>;
|
|
662
|
+
usage: (sessionId: string) => Promise<P.SessionMemoryUsage>;
|
|
663
|
+
};
|
|
664
|
+
review: {
|
|
665
|
+
recoverChangeRequest: (target: P.ChangeRequestRecoveryTarget, blocker: P.ChangeRequestRecoveryBlocker) => Promise<string>;
|
|
666
|
+
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<P.ReviewItemsPage>;
|
|
667
|
+
summary: () => Promise<P.ReviewSummary>;
|
|
668
|
+
get: (reviewItemId: string) => Promise<{
|
|
669
|
+
review_item: P.ApiReviewItem;
|
|
670
|
+
}>;
|
|
671
|
+
submit: (input: Parameters<typeof P.submitReviewItem>[1]) => Promise<P.ApiReviewItem>;
|
|
672
|
+
act: (reviewItemId: string, input: {
|
|
673
|
+
verdict: P.ReviewVerdict;
|
|
674
|
+
feedback?: string;
|
|
675
|
+
}) => Promise<P.ApiReviewItem>;
|
|
676
|
+
bulkAct: (input: Parameters<typeof P.bulkActReviewItems>[1]) => Promise<{
|
|
677
|
+
updated: number;
|
|
678
|
+
review_items: P.ApiReviewItem[];
|
|
679
|
+
results?: Array<{
|
|
680
|
+
id: string;
|
|
681
|
+
ok: boolean;
|
|
682
|
+
code?: "expired" | "already_resolved" | "preview_unavailable" | "forbidden" | "not_found" | "not_bulk_actionable";
|
|
683
|
+
}>;
|
|
684
|
+
}>;
|
|
685
|
+
};
|
|
686
|
+
approvals: {
|
|
687
|
+
list: (options?: Parameters<typeof P.listPendingApprovals>[1]) => Promise<P.PendingApprovalsResponse>;
|
|
688
|
+
resolve: (executionId: string, decision: "deny" | "approve", options?: P.ResolveApprovalOptions | undefined) => Promise<{
|
|
689
|
+
ok: boolean;
|
|
690
|
+
}>;
|
|
691
|
+
sessionsNeedingInput: (options?: Parameters<typeof P.listSessionsNeedingInput>[1]) => Promise<P.SessionsNeedingInputResponse>;
|
|
692
|
+
};
|
|
693
|
+
files: {
|
|
694
|
+
write: (input: Parameters<typeof P.writeWorkspaceFile>[1]) => Promise<{
|
|
695
|
+
commit_sha: string;
|
|
696
|
+
}>;
|
|
697
|
+
list: (options?: Parameters<typeof P.listWorkspaceFiles>[1]) => Promise<P.ProjectFileEntry[]>;
|
|
698
|
+
listDirectory: (options?: Parameters<typeof P.listWorkspaceDirectory>[1]) => Promise<P.ProjectDirectoryListing>;
|
|
699
|
+
read: (path: string, ref?: string) => Promise<{
|
|
700
|
+
path: string;
|
|
701
|
+
ref: string;
|
|
702
|
+
content: string;
|
|
703
|
+
revision?: string;
|
|
704
|
+
}>;
|
|
705
|
+
search: (query: string, options?: {
|
|
706
|
+
content?: boolean;
|
|
707
|
+
ref?: string;
|
|
708
|
+
limit?: number;
|
|
709
|
+
} | undefined) => Promise<P.ProjectFileSearchResponse>;
|
|
710
|
+
archive: (ref: string, path?: string | undefined) => Promise<Blob>;
|
|
711
|
+
archiveRequest: (ref: string, path?: string | undefined) => Promise<import("../../index.js").AuthenticatedRequest>;
|
|
712
|
+
history: (path: string, options?: {
|
|
713
|
+
ref?: string;
|
|
714
|
+
limit?: number;
|
|
715
|
+
skip?: number;
|
|
716
|
+
} | undefined) => Promise<P.ProjectFileHistoryResponse>;
|
|
717
|
+
};
|
|
718
|
+
git: {
|
|
719
|
+
commits: (options?: Parameters<typeof P.listWorkspaceCommits>[1]) => Promise<P.ProjectCommitsResponse>;
|
|
720
|
+
commit: (sha: string) => Promise<P.ProjectCommitDetail>;
|
|
721
|
+
commitDiff: (sha: string) => Promise<P.ProjectCommitDiffResponse>;
|
|
722
|
+
branches: () => Promise<P.ProjectBranchesResponse>;
|
|
723
|
+
versionDiff: (input: {
|
|
724
|
+
from: string;
|
|
725
|
+
into: string;
|
|
726
|
+
}) => Promise<P.VersionDiffPreview>;
|
|
727
|
+
inviteCollaborator: (githubUsername: string, permission?: "read" | "write" | undefined) => Promise<P.RepoCollaboratorInvite>;
|
|
728
|
+
};
|
|
729
|
+
changeRequests: {
|
|
730
|
+
list: (status?: "all" | P.ChangeRequestStatus | undefined, options?: P.ListChangeRequestsOptions | undefined) => Promise<{
|
|
731
|
+
change_requests: P.ChangeRequest[];
|
|
732
|
+
next_cursor?: string | null;
|
|
733
|
+
}>;
|
|
734
|
+
get: (crId: string) => Promise<P.ChangeRequestDetailResponse>;
|
|
735
|
+
update: (crId: string, input: {
|
|
736
|
+
title?: string;
|
|
737
|
+
description?: string;
|
|
738
|
+
}) => Promise<P.ChangeRequest>;
|
|
739
|
+
diff: (crId: string) => Promise<P.ChangeRequestDiffResponse>;
|
|
740
|
+
mergePreview: (crId: string) => Promise<P.ChangeRequestMergePreview>;
|
|
741
|
+
open: (input: {
|
|
742
|
+
title: string;
|
|
743
|
+
description?: string;
|
|
744
|
+
head_ref: string;
|
|
745
|
+
base_ref?: string;
|
|
746
|
+
session_id?: string;
|
|
747
|
+
}) => Promise<P.ChangeRequest>;
|
|
748
|
+
merge: (crId: string, input?: {
|
|
749
|
+
message?: string;
|
|
750
|
+
} | undefined) => Promise<P.ChangeRequestMergeResponse>;
|
|
751
|
+
close: (crId: string) => Promise<P.ChangeRequest>;
|
|
752
|
+
reopen: (crId: string) => Promise<P.ChangeRequest>;
|
|
753
|
+
requestChanges: (crId: string, feedback: string) => Promise<{
|
|
754
|
+
change_request: P.ChangeRequest;
|
|
755
|
+
delivering: boolean;
|
|
756
|
+
}>;
|
|
757
|
+
};
|
|
758
|
+
policies: {
|
|
759
|
+
list: () => Promise<P.ProjectPoliciesResponse>;
|
|
760
|
+
set: (policies: P.ProjectPolicy[], defaultMode: P.PolicyDefaultMode) => Promise<{
|
|
761
|
+
ok: boolean;
|
|
762
|
+
sync?: P.ConnectorSyncResult;
|
|
763
|
+
}>;
|
|
764
|
+
};
|
|
765
|
+
reminders: {
|
|
766
|
+
list: () => Promise<{
|
|
767
|
+
reminders: P.ProjectReminder[];
|
|
768
|
+
}>;
|
|
769
|
+
updateMany: (reminders: readonly P.SessionReminderRef[], input: P.UpdateSessionReminderInput) => Promise<P.SessionReminderBatchResult>;
|
|
770
|
+
removeMany: (reminders: readonly P.SessionReminderRef[]) => Promise<P.SessionReminderBatchResult>;
|
|
771
|
+
};
|
|
772
|
+
rooms: {
|
|
773
|
+
list: (_options?: P.ListRoomsOptions | undefined) => Promise<{
|
|
774
|
+
rooms: Array<P.Room | P.RoomConversation>;
|
|
775
|
+
}>;
|
|
776
|
+
create: (_input: {
|
|
777
|
+
name: string;
|
|
778
|
+
topic?: string | null;
|
|
779
|
+
}) => Promise<P.Room>;
|
|
780
|
+
get: (_roomId: string) => Promise<P.Room & {
|
|
781
|
+
members: P.RoomMember[];
|
|
782
|
+
}>;
|
|
783
|
+
update: (_roomId: string, _input: {
|
|
784
|
+
topic?: string | null;
|
|
785
|
+
archived?: boolean;
|
|
786
|
+
}) => Promise<P.Room>;
|
|
787
|
+
messages: (_roomId: string, _page?: P.RoomMessagePageQuery | undefined) => Promise<P.RoomMessagePage>;
|
|
788
|
+
post: (_roomId: string, _input: {
|
|
789
|
+
text: string;
|
|
790
|
+
reply_to?: number | null;
|
|
791
|
+
}) => Promise<P.PostRoomMessageResult>;
|
|
792
|
+
markRead: (_roomId: string, _seq?: number | undefined) => Promise<{
|
|
793
|
+
last_read_seq: number;
|
|
794
|
+
}>;
|
|
795
|
+
addSession: (_roomId: string, _sessionId: string, _input?: {
|
|
796
|
+
notify?: P.RoomNotify;
|
|
797
|
+
} | undefined) => Promise<P.RoomMember>;
|
|
798
|
+
removeSession: (_roomId: string, _sessionId: string) => Promise<{
|
|
799
|
+
removed: boolean;
|
|
800
|
+
}>;
|
|
801
|
+
addPerson: (_roomId: string, _userId: string, _input?: {
|
|
802
|
+
notify?: P.RoomNotify;
|
|
803
|
+
} | undefined) => Promise<P.RoomMember>;
|
|
804
|
+
removePerson: (_roomId: string, _userId: string) => Promise<{
|
|
805
|
+
removed: boolean;
|
|
806
|
+
}>;
|
|
807
|
+
people: (_q?: string | undefined) => Promise<{
|
|
808
|
+
people: P.RoomPerson[];
|
|
809
|
+
}>;
|
|
810
|
+
};
|
|
811
|
+
triggers: {
|
|
812
|
+
list: () => Promise<P.ProjectTriggerListing>;
|
|
813
|
+
all: () => Promise<P.UnifiedTriggerList>;
|
|
814
|
+
createRuntime: (input: P.CreateRuntimeTriggerInput) => Promise<P.UnifiedTrigger>;
|
|
815
|
+
updateRuntime: (triggerId: string, input: {
|
|
816
|
+
enabled: boolean;
|
|
817
|
+
}) => Promise<P.UnifiedTrigger>;
|
|
818
|
+
runRuntime: (triggerId: string) => Promise<P.UnifiedTrigger>;
|
|
819
|
+
removeRuntime: (triggerId: string) => Promise<{
|
|
820
|
+
ok: boolean;
|
|
821
|
+
}>;
|
|
822
|
+
eventApps: () => Promise<P.ProjectTriggerEventApps>;
|
|
823
|
+
eventTypes: (params: {
|
|
824
|
+
connector: string;
|
|
825
|
+
} | {
|
|
826
|
+
app: string;
|
|
827
|
+
source?: string;
|
|
828
|
+
}) => Promise<P.ProjectTriggerEventTypes>;
|
|
829
|
+
create: (input: P.CreateProjectTriggerInput) => Promise<P.ProjectTriggerListing>;
|
|
830
|
+
update: (slug: string, input: P.UpdateProjectTriggerInput) => Promise<P.ProjectTriggerListing>;
|
|
831
|
+
remove: (slug: string) => Promise<{
|
|
832
|
+
ok: boolean;
|
|
833
|
+
}>;
|
|
834
|
+
fire: {
|
|
835
|
+
(slug: string, options: P.FireProjectTriggerOptions & {
|
|
836
|
+
dryRun: true;
|
|
837
|
+
}): Promise<P.ProjectTriggerDryRunResult>;
|
|
838
|
+
(slug: string, options?: P.FireProjectTriggerOptions & {
|
|
839
|
+
dryRun?: false;
|
|
840
|
+
}): Promise<P.FireProjectTriggerResponse>;
|
|
841
|
+
(slug: string, options?: P.FireProjectTriggerOptions): Promise<P.FireProjectTriggerResponse | P.ProjectTriggerDryRunResult>;
|
|
842
|
+
};
|
|
843
|
+
runs: (slug: string, options?: P.ListTriggerRunsOptions | undefined) => Promise<P.ProjectTriggerRunList>;
|
|
844
|
+
projectRuns: (options?: P.ListProjectTriggerRunsOptions | undefined) => Promise<P.ProjectTriggerRunList>;
|
|
845
|
+
replay: (slug: string, runId: string, options?: P.ReplayTriggerRunOptions | undefined) => Promise<P.FireProjectTriggerResponse>;
|
|
846
|
+
setActivation: (paused: boolean) => Promise<P.ProjectTriggerListing>;
|
|
847
|
+
};
|
|
848
|
+
connectors: {
|
|
849
|
+
list: () => Promise<P.ConnectorsResponse>;
|
|
850
|
+
config: (slug: string) => Promise<P.ConnectorConfig>;
|
|
851
|
+
create: (draft: P.ConnectorDraftInput) => Promise<{
|
|
852
|
+
ok: boolean;
|
|
853
|
+
sync?: P.ConnectorSyncResult;
|
|
854
|
+
authDiscovery?: P.ConnectorAuthDiscovery;
|
|
855
|
+
}>;
|
|
856
|
+
remove: (slug: string) => Promise<{
|
|
857
|
+
ok: boolean;
|
|
858
|
+
}>;
|
|
859
|
+
sync: () => Promise<P.ConnectorSyncResult>;
|
|
860
|
+
auth: {
|
|
861
|
+
discover: (draft: P.ConnectorDraftInput) => Promise<P.ConnectorAuthDiscovery>;
|
|
862
|
+
};
|
|
863
|
+
setName: (slug: string, name: string) => Promise<{
|
|
864
|
+
ok: boolean;
|
|
865
|
+
sync?: P.ConnectorSyncResult;
|
|
866
|
+
}>;
|
|
867
|
+
setCredentialMode: (slug: string, mode: "shared") => Promise<{
|
|
868
|
+
ok: boolean;
|
|
869
|
+
sync?: P.ConnectorSyncResult;
|
|
870
|
+
}>;
|
|
871
|
+
setAuthorizationStrategy: (slug: string, authorizationStrategy: P.ConnectorAuthorizationStrategy) => Promise<{
|
|
872
|
+
ok: boolean;
|
|
873
|
+
sync?: P.ConnectorSyncResult;
|
|
874
|
+
}>;
|
|
875
|
+
setCredential: (slug: string, credential: string | P.ConnectionCredentialInput) => Promise<{
|
|
876
|
+
ok: boolean;
|
|
877
|
+
sync?: P.ConnectorSyncResult;
|
|
878
|
+
}>;
|
|
879
|
+
deleteCredential: (slug: string) => Promise<{
|
|
880
|
+
ok: boolean;
|
|
881
|
+
}>;
|
|
882
|
+
setSensitive: (slug: string, sensitive: boolean) => Promise<{
|
|
883
|
+
ok: boolean;
|
|
884
|
+
sync?: P.ConnectorSyncResult;
|
|
885
|
+
}>;
|
|
886
|
+
connections: {
|
|
887
|
+
list: () => Promise<{
|
|
888
|
+
connections: P.Connection[];
|
|
889
|
+
}>;
|
|
890
|
+
listAll: () => Promise<{
|
|
891
|
+
connections: P.ConnectionRoster[];
|
|
892
|
+
}>;
|
|
893
|
+
reconcile: (input: P.ReconcileConnectionInput) => Promise<P.Connection>;
|
|
894
|
+
reconcileMember: (input: P.ReconcileMemberConnectionInput) => Promise<P.Connection>;
|
|
895
|
+
updateCredential: (connectionId: string, input: P.ConnectionCredentialInput) => Promise<{
|
|
896
|
+
ok: true;
|
|
897
|
+
}>;
|
|
898
|
+
revoke: (connectionId: string) => Promise<{
|
|
899
|
+
ok: true;
|
|
900
|
+
}>;
|
|
901
|
+
activate: (connectionId: string) => Promise<{
|
|
902
|
+
ok: true;
|
|
903
|
+
}>;
|
|
904
|
+
setDefault: (connectionId: string) => Promise<{
|
|
905
|
+
ok: true;
|
|
906
|
+
}>;
|
|
907
|
+
rename: (connectionId: string, label: string) => Promise<P.Connection>;
|
|
908
|
+
share: (connectionId: string, principals?: P.ConnectionSharePrincipal[] | undefined) => Promise<P.Connection>;
|
|
909
|
+
addComputer: (input: {
|
|
910
|
+
tunnelId: string;
|
|
911
|
+
share?: P.ConnectorConnectOwner;
|
|
912
|
+
}) => Promise<P.Connection>;
|
|
913
|
+
pipedreamConnect: (connectionId: string, input?: P.ConnectionConnectInput | undefined) => Promise<P.ConnectorConnectResult>;
|
|
914
|
+
pipedreamFinalize: (connectionId: string) => Promise<P.ConnectorFinalizeResult>;
|
|
915
|
+
};
|
|
916
|
+
policies: {
|
|
917
|
+
get: (slug: string, options?: P.ConnectorPolicySetOptions | undefined) => Promise<{
|
|
918
|
+
policies: P.ConnectorPolicyRule[];
|
|
919
|
+
policy_set?: string;
|
|
920
|
+
effective?: P.ConnectorEffectivePolicy[];
|
|
921
|
+
project_policies?: P.ConnectorPolicyRule[];
|
|
922
|
+
default_mode?: "risk" | "allow_all";
|
|
923
|
+
sensitive?: boolean;
|
|
924
|
+
}>;
|
|
925
|
+
set: (slug: string, policies: P.ConnectorPolicyRule[], options?: P.ConnectorPolicySetOptions | undefined) => Promise<{
|
|
926
|
+
ok: boolean;
|
|
927
|
+
sync?: P.ConnectorSyncResult;
|
|
928
|
+
}>;
|
|
929
|
+
};
|
|
930
|
+
policySets: {
|
|
931
|
+
list: (slug: string) => Promise<{
|
|
932
|
+
sets: P.ConnectorPolicySet[];
|
|
933
|
+
}>;
|
|
934
|
+
upsert: (slug: string, name: string, input?: {
|
|
935
|
+
description?: string | null;
|
|
936
|
+
template?: P.ConnectorPolicySetTemplate;
|
|
937
|
+
} | undefined) => Promise<{
|
|
938
|
+
ok: boolean;
|
|
939
|
+
sync?: P.ConnectorSyncResult;
|
|
940
|
+
created: boolean;
|
|
941
|
+
template?: P.ConnectorPolicySetTemplate;
|
|
942
|
+
rules?: number;
|
|
943
|
+
}>;
|
|
944
|
+
rename: (slug: string, name: string, newName: string) => Promise<{
|
|
945
|
+
ok: boolean;
|
|
946
|
+
sync?: P.ConnectorSyncResult;
|
|
947
|
+
}>;
|
|
948
|
+
remove: (slug: string, name: string) => Promise<{
|
|
949
|
+
ok: boolean;
|
|
950
|
+
sync?: P.ConnectorSyncResult;
|
|
951
|
+
}>;
|
|
952
|
+
};
|
|
953
|
+
agents: (slug: string) => Promise<{
|
|
954
|
+
slug: string;
|
|
955
|
+
policy_sets: string[];
|
|
956
|
+
agents: P.ConnectorAgentRow[];
|
|
957
|
+
}>;
|
|
958
|
+
rulesMatrix: () => Promise<P.ConnectorRulesMatrix>;
|
|
959
|
+
setOAuth2ClientCredentials: (slug: string, input: P.ConnectorOAuth2ClientCredentialsInput) => Promise<{
|
|
960
|
+
ok: boolean;
|
|
961
|
+
slug: string;
|
|
962
|
+
account: string | null;
|
|
963
|
+
expires_at: string | null;
|
|
964
|
+
}>;
|
|
965
|
+
listMoves: () => Promise<P.ConnectorMove[]>;
|
|
966
|
+
move: (slug: string, options?: {
|
|
967
|
+
connectionId?: string;
|
|
968
|
+
} | undefined) => Promise<P.ConnectorMoveResult>;
|
|
969
|
+
pipedream: {
|
|
970
|
+
listApps: (qOrQuery?: string | P.PipedreamCatalogQuery | undefined, cursor?: string | undefined) => Promise<P.PipedreamCatalogPage>;
|
|
971
|
+
listSections: (opts?: {
|
|
972
|
+
perCategory?: number;
|
|
973
|
+
maxCategories?: number;
|
|
974
|
+
} | undefined) => Promise<{
|
|
975
|
+
sections: P.PipedreamSection[];
|
|
976
|
+
categories: P.PipedreamCategory[];
|
|
977
|
+
indexReady?: boolean;
|
|
978
|
+
}>;
|
|
979
|
+
connect: (slug: string, options?: P.ConnectorConnectOptions | undefined) => Promise<P.ConnectorConnectResult>;
|
|
980
|
+
finalize: (slug: string, options?: P.ConnectorFinalizeOptions | undefined) => Promise<P.ConnectorFinalizeResult>;
|
|
981
|
+
};
|
|
982
|
+
discover: {
|
|
983
|
+
list: (qOrQuery?: string | P.DiscoverConnectorsQuery | undefined, cursor?: string | undefined) => Promise<P.DiscoverConnectorsPage>;
|
|
984
|
+
sections: (opts?: {
|
|
985
|
+
perCategory?: number;
|
|
986
|
+
maxCategories?: number;
|
|
987
|
+
oneClick?: boolean;
|
|
988
|
+
kinds?: P.DiscoverConnectorKind[];
|
|
989
|
+
} | undefined) => Promise<P.DiscoverSectionsPage>;
|
|
990
|
+
detail: (id: string) => Promise<P.DiscoverConnectorDetail>;
|
|
991
|
+
tools: (id: string, way?: string | undefined) => Promise<P.DiscoverConnectorTools>;
|
|
992
|
+
install: (input: {
|
|
993
|
+
id: string;
|
|
994
|
+
way?: string;
|
|
995
|
+
name?: string;
|
|
996
|
+
slug?: string;
|
|
997
|
+
as_new_profile?: boolean;
|
|
998
|
+
}) => Promise<P.DiscoverInstallResult>;
|
|
999
|
+
};
|
|
1000
|
+
catalog: (options?: Parameters<typeof P.getConnectorCatalog>[1]) => Promise<P.ConnectorCatalogEntry[]>;
|
|
1001
|
+
tools: () => Promise<P.ConnectorTool[]>;
|
|
1002
|
+
search: (query?: string | undefined, options?: {
|
|
1003
|
+
limit?: number;
|
|
1004
|
+
} | undefined) => Promise<P.ConnectorTool[]>;
|
|
1005
|
+
describe: (tool: string) => Promise<P.ConnectorTool | null>;
|
|
1006
|
+
call: <T = unknown>(tool: string, args?: Record<string, unknown> | undefined, options?: P.ConnectorCallOptions | undefined) => Promise<P.ConnectorCallResult<T, unknown>>;
|
|
1007
|
+
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>>>;
|
|
1008
|
+
accounts: (slug: string) => Promise<P.ConnectorAccount[]>;
|
|
1009
|
+
uploadAttachment: (content: Blob | ArrayBuffer | Uint8Array<ArrayBufferLike>, input: P.ConnectorAttachmentUploadInput) => Promise<P.ConnectorAttachmentUploadResult>;
|
|
1010
|
+
};
|
|
1011
|
+
setupLinks: {
|
|
1012
|
+
requestSecret: (input: Parameters<typeof P.requestWorkspaceSecret>[1]) => Promise<P.SecretRequestLink>;
|
|
1013
|
+
requestConnector: (input: Parameters<typeof P.requestWorkspaceConnector>[1]) => Promise<P.ConnectorRequestLink>;
|
|
1014
|
+
};
|
|
1015
|
+
validateManifest: (raw: string) => Promise<P.ManifestValidationResult>;
|
|
1016
|
+
gitToken: () => Promise<P.ProjectGitToken>;
|
|
1017
|
+
agentIdentities: () => Promise<P.AgentIdentity[]>;
|
|
1018
|
+
secrets: {
|
|
1019
|
+
list: () => Promise<P.ProjectSecretsResponse>;
|
|
1020
|
+
upsert: (input: Parameters<typeof P.upsertWorkspaceSecret>[1]) => Promise<P.ProjectSecret>;
|
|
1021
|
+
setStrategy: (identifier: string, strategy: P.SecretDeliveryStrategy, options?: P.UpdateSecretStrategyOptions | undefined) => Promise<P.ProjectSecret>;
|
|
1022
|
+
broker: (identifier: string, input: P.SecretBrokerRequest) => Promise<P.SecretBrokerResponse>;
|
|
1023
|
+
remove: (name: string) => Promise<{
|
|
1024
|
+
ok: boolean;
|
|
1025
|
+
}>;
|
|
1026
|
+
setPersonal: (name: string, input: {
|
|
1027
|
+
value?: string;
|
|
1028
|
+
active?: boolean;
|
|
1029
|
+
}) => Promise<P.ProjectSecret>;
|
|
1030
|
+
removePersonal: (name: string) => Promise<{
|
|
1031
|
+
ok: boolean;
|
|
1032
|
+
}>;
|
|
1033
|
+
setGitCredential: (input: Parameters<typeof P.upsertWorkspaceGitCredential>[1]) => Promise<{
|
|
1034
|
+
configured: boolean;
|
|
1035
|
+
provider: string;
|
|
1036
|
+
git_connection: P.ProjectGitConnection;
|
|
1037
|
+
}>;
|
|
1038
|
+
listProviderOAuth: () => Promise<P.ProviderOAuthCredential[]>;
|
|
1039
|
+
startProviderOAuth: (provider: string, input?: {
|
|
1040
|
+
sharing?: P.ConnectorSharing;
|
|
1041
|
+
resourceLabel?: string;
|
|
1042
|
+
resourceId?: string;
|
|
1043
|
+
} | undefined) => Promise<P.ProviderOAuthStart>;
|
|
1044
|
+
pollProviderOAuth: (provider: string, flowId: string) => Promise<P.ProviderOAuthPoll>;
|
|
1045
|
+
removeProviderOAuth: (provider: string) => Promise<{
|
|
1046
|
+
ok: boolean;
|
|
1047
|
+
}>;
|
|
1048
|
+
};
|
|
1049
|
+
claudeSubscription: {
|
|
1050
|
+
get: () => Promise<P.ClaudeSubscriptionStatus>;
|
|
1051
|
+
startLogin: (target?: Parameters<typeof P.startClaudeSubscriptionLogin>[1]) => Promise<P.ClaudeSubscriptionLoginStart>;
|
|
1052
|
+
completeLogin: (input: Parameters<typeof P.completeClaudeSubscriptionLogin>[1]) => Promise<P.ClaudeSubscriptionConnected>;
|
|
1053
|
+
setToken: (token: string, target?: Parameters<typeof P.setClaudeSubscriptionToken>[2]) => Promise<P.ClaudeSubscriptionConnected>;
|
|
1054
|
+
};
|
|
1055
|
+
access: {
|
|
1056
|
+
list: () => Promise<P.ProjectAccessResponse>;
|
|
1057
|
+
invite: (email: string, role: P.ProjectRole, expiresAt?: string | null | undefined) => Promise<P.ProjectAccessMember | {
|
|
1058
|
+
status: "invited";
|
|
1059
|
+
email: string;
|
|
1060
|
+
invite_id: string;
|
|
1061
|
+
project_role: P.ProjectRole;
|
|
1062
|
+
message: string;
|
|
1063
|
+
invite_url: string;
|
|
1064
|
+
email_sent: boolean;
|
|
1065
|
+
email_skip_reason: string | null;
|
|
1066
|
+
}>;
|
|
1067
|
+
update: (userId: string, role: P.ProjectRole) => Promise<P.ProjectAccessMember>;
|
|
1068
|
+
revoke: (userId: string) => Promise<{
|
|
1069
|
+
ok: boolean;
|
|
1070
|
+
}>;
|
|
1071
|
+
pendingInvites: () => Promise<{
|
|
1072
|
+
pending: P.PendingProjectInvite[];
|
|
1073
|
+
}>;
|
|
1074
|
+
resendInvite: (inviteId: string) => Promise<P.ResendProjectInviteResult>;
|
|
1075
|
+
revokeInvite: (inviteId: string) => Promise<{
|
|
1076
|
+
ok: boolean;
|
|
1077
|
+
invitation_cancelled: boolean;
|
|
1078
|
+
}>;
|
|
1079
|
+
requests: () => Promise<{
|
|
1080
|
+
requests: P.ProjectAccessRequest[];
|
|
1081
|
+
}>;
|
|
1082
|
+
approveRequest: (requestId: string, role?: P.ProjectRole | undefined) => Promise<{
|
|
1083
|
+
request: P.ProjectAccessRequest;
|
|
1084
|
+
member: P.ProjectAccessMember;
|
|
1085
|
+
}>;
|
|
1086
|
+
rejectRequest: (requestId: string) => Promise<{
|
|
1087
|
+
request: P.ProjectAccessRequest;
|
|
1088
|
+
}>;
|
|
1089
|
+
groupGrants: () => Promise<{
|
|
1090
|
+
grants: P.ProjectGroupGrant[];
|
|
1091
|
+
}>;
|
|
1092
|
+
attachGroupGrant: (groupId: string, role: P.ProjectRole, expiresAt?: string | null | undefined) => Promise<{
|
|
1093
|
+
project_id: string;
|
|
1094
|
+
group_id: string;
|
|
1095
|
+
role: P.ProjectRole;
|
|
1096
|
+
}>;
|
|
1097
|
+
updateGroupGrant: (groupId: string, role: P.ProjectRole, expiresAt?: string | null | undefined) => Promise<{
|
|
1098
|
+
project_id: string;
|
|
1099
|
+
group_id: string;
|
|
1100
|
+
role: P.ProjectRole;
|
|
1101
|
+
}>;
|
|
1102
|
+
detachGroupGrant: (groupId: string) => Promise<{
|
|
1103
|
+
ok: boolean;
|
|
1104
|
+
}>;
|
|
1105
|
+
resourceGrants: {
|
|
1106
|
+
list: () => Promise<P.ProjectResourceGrantsResponse>;
|
|
1107
|
+
create: (input: Parameters<typeof P.createWorkspaceResourceGrant>[1]) => Promise<{
|
|
1108
|
+
grant_id: string;
|
|
1109
|
+
}>;
|
|
1110
|
+
remove: (grantId: string) => Promise<{
|
|
1111
|
+
ok: boolean;
|
|
1112
|
+
}>;
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
apps: {
|
|
1116
|
+
list: () => Promise<P.App[]>;
|
|
1117
|
+
create: (input: Parameters<typeof P.createApp>[1]) => Promise<P.App>;
|
|
1118
|
+
get: (appId: string) => Promise<P.App>;
|
|
1119
|
+
update: (appId: string, input: P.UpdateAppInput) => Promise<P.App>;
|
|
1120
|
+
access: {
|
|
1121
|
+
get: (appId: string) => Promise<P.AppAccessConfig>;
|
|
1122
|
+
update: (appId: string, input: P.UpdateAppAccessInput) => Promise<P.AppAccessConfig>;
|
|
1123
|
+
session: (appId: string) => Promise<P.AppAccessSession>;
|
|
1124
|
+
agents: (appId: string) => Promise<P.AppAgentAccess[]>;
|
|
1125
|
+
};
|
|
1126
|
+
remove: (appId: string) => Promise<{
|
|
1127
|
+
ok: boolean;
|
|
1128
|
+
images?: P.AppImageRelease;
|
|
1129
|
+
triggers_removed?: string[];
|
|
1130
|
+
}>;
|
|
1131
|
+
token: (appId: string) => Promise<P.AppToken>;
|
|
1132
|
+
authEnv: (appId: string) => Promise<P.AppAuthEnv>;
|
|
1133
|
+
artifacts: {
|
|
1134
|
+
register: (input: Parameters<typeof P.registerAppArtifact>[1]) => Promise<P.RegisterAppArtifactResponse>;
|
|
1135
|
+
uploadArchive: (input: Blob | Uint8Array<ArrayBufferLike>, options?: P.UploadAppArtifactOptions | undefined) => Promise<P.AppArtifact>;
|
|
1136
|
+
finalize: (artifactId: string, input: P.FinalizeAppArtifactInput) => Promise<P.AppArtifact>;
|
|
1137
|
+
};
|
|
1138
|
+
deployments: {
|
|
1139
|
+
create: (appId: string, input: P.CreateAppBuildInput) => Promise<P.AppDeployment>;
|
|
1140
|
+
list: (appId: string) => Promise<P.AppDeployment[]>;
|
|
1141
|
+
get: (appId: string, deploymentId: string) => Promise<P.AppDeploymentDetail>;
|
|
1142
|
+
logs: (appId: string, deploymentId: string, options?: P.AppLogsOptions | undefined) => Promise<P.AppLogsResponse>;
|
|
1143
|
+
remove: (appId: string, deploymentId: string) => Promise<P.DeleteAppDeploymentResult>;
|
|
1144
|
+
};
|
|
1145
|
+
events: {
|
|
1146
|
+
list: (appId: string, options?: P.ListAppEventsOptions | undefined) => Promise<P.AppEventList>;
|
|
1147
|
+
test: (appId: string, input: (P.AppEventInput | {
|
|
1148
|
+
events: P.AppEventInput[];
|
|
1149
|
+
}) & {
|
|
1150
|
+
trigger?: string;
|
|
1151
|
+
}) => Promise<P.AppTestEventResult>;
|
|
1152
|
+
credentials: (appId: string) => Promise<P.AppEventCredentials>;
|
|
1153
|
+
};
|
|
1154
|
+
start: (appId: string) => Promise<P.App>;
|
|
1155
|
+
stop: (appId: string) => Promise<P.App>;
|
|
1156
|
+
rollback: (appId: string, deploymentId: string) => Promise<P.AppRollback>;
|
|
1157
|
+
machines: {
|
|
1158
|
+
list: (appId: string) => Promise<P.AppMachine[]>;
|
|
1159
|
+
start: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
1160
|
+
stop: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
1161
|
+
restart: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
1162
|
+
destroy: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
1163
|
+
};
|
|
1164
|
+
scale: (appId: string, count: Record<string, number>, options?: {
|
|
1165
|
+
newVolumes?: boolean;
|
|
1166
|
+
} | undefined) => Promise<{
|
|
1167
|
+
scale: Record<string, number>;
|
|
1168
|
+
machines: P.AppMachine[];
|
|
1169
|
+
}>;
|
|
1170
|
+
exec: (appId: string, input: P.AppExecInput) => Promise<P.AppExecResult>;
|
|
1171
|
+
volumes: {
|
|
1172
|
+
list: (appId: string) => Promise<P.AppVolume[]>;
|
|
1173
|
+
create: (appId: string, input: P.CreateAppVolumeInput) => Promise<P.AppVolume>;
|
|
1174
|
+
update: (appId: string, volumeId: string, input: {
|
|
1175
|
+
size_gb?: number;
|
|
1176
|
+
snapshot_retention_days?: number;
|
|
1177
|
+
}) => Promise<P.AppVolume>;
|
|
1178
|
+
destroy: (appId: string, volumeId: string, confirmName: string) => Promise<void>;
|
|
1179
|
+
snapshots: (appId: string, volumeId: string) => Promise<P.AppVolumeSnapshot[]>;
|
|
1180
|
+
snapshot: (appId: string, volumeId: string) => Promise<P.AppVolumeSnapshot>;
|
|
1181
|
+
restore: (appId: string, volumeId: string, snapshotId: string) => Promise<P.AppVolume>;
|
|
1182
|
+
fork: (appId: string, volumeId: string, input: {
|
|
1183
|
+
name: string;
|
|
1184
|
+
snapshot_id?: string;
|
|
1185
|
+
}) => Promise<P.AppVolume>;
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
attachments: {
|
|
1189
|
+
upload: (file: File, options?: P.PromptAttachmentUploadOptions | undefined) => Promise<P.PromptAttachment>;
|
|
1190
|
+
delete: (attachmentId: string, options?: {
|
|
1191
|
+
signal?: AbortSignal;
|
|
1192
|
+
} | undefined) => Promise<void>;
|
|
1193
|
+
createController: (options?: Parameters<typeof import("../../index.js").createPromptAttachmentController>[1]) => import("../../index.js").PromptAttachmentController;
|
|
1194
|
+
};
|
|
1195
|
+
detail: () => Promise<{
|
|
1196
|
+
config: {
|
|
1197
|
+
default_agent: string | null;
|
|
1198
|
+
is_kortix_repo: boolean;
|
|
1199
|
+
signals: Record<string, boolean>;
|
|
1200
|
+
manifest_raw: string | null;
|
|
1201
|
+
manifest_health?: P.ProjectManifestHealth;
|
|
1202
|
+
open_code_raw?: string | null;
|
|
1203
|
+
open_code_default_agent?: string | null;
|
|
1204
|
+
builtin_agents?: {
|
|
1205
|
+
my_kortix: boolean;
|
|
1206
|
+
};
|
|
1207
|
+
agent_discovery: "declarative" | "opencode";
|
|
1208
|
+
agents: Array<{
|
|
1209
|
+
name: string;
|
|
1210
|
+
path: string;
|
|
1211
|
+
description: string | null;
|
|
1212
|
+
mode: string | null;
|
|
1213
|
+
hidden?: boolean;
|
|
1214
|
+
model?: string | null;
|
|
1215
|
+
source?: "opencode" | "kortix.yaml" | "kortix.toml";
|
|
1216
|
+
enabled?: boolean;
|
|
1217
|
+
platform?: boolean;
|
|
1218
|
+
sandbox?: string | null;
|
|
1219
|
+
space?: string | null;
|
|
1220
|
+
scope?: {
|
|
1221
|
+
env: string[] | "all";
|
|
1222
|
+
connectors: string[] | "all";
|
|
1223
|
+
kortix_permissions?: string[] | "all";
|
|
1224
|
+
kortix_cli: string[] | "all";
|
|
1225
|
+
apps?: string[] | "all";
|
|
1226
|
+
};
|
|
1227
|
+
}>;
|
|
1228
|
+
skills: Array<{
|
|
1229
|
+
name: string;
|
|
1230
|
+
path: string;
|
|
1231
|
+
description: string | null;
|
|
1232
|
+
}>;
|
|
1233
|
+
commands: Array<{
|
|
1234
|
+
name: string;
|
|
1235
|
+
path: string;
|
|
1236
|
+
description: string | null;
|
|
1237
|
+
}>;
|
|
1238
|
+
env: {
|
|
1239
|
+
required: string[];
|
|
1240
|
+
optional: string[];
|
|
1241
|
+
};
|
|
1242
|
+
spaces?: P.ManifestSpace[];
|
|
1243
|
+
};
|
|
1244
|
+
project: P.KortixProject;
|
|
1245
|
+
git_connection?: P.ProjectGitConnection | null;
|
|
1246
|
+
file_count: number;
|
|
1247
|
+
files: P.ProjectFileEntry[];
|
|
1248
|
+
}>;
|
|
1249
|
+
skills: {
|
|
1250
|
+
remove: (input: {
|
|
1251
|
+
folder: string;
|
|
1252
|
+
confirm: true;
|
|
1253
|
+
}, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<{
|
|
1254
|
+
ok: true;
|
|
1255
|
+
commitSha: string;
|
|
1256
|
+
removed: string[];
|
|
1257
|
+
}>;
|
|
1258
|
+
create: (input: P.CreateProjectSkillInput, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.CreatedProjectSkill>;
|
|
1259
|
+
};
|
|
1260
|
+
audit: (options?: Parameters<typeof P.listWorkspaceAudit>[1]) => Promise<P.AuditEventList>;
|
|
1261
|
+
archive: () => Promise<{
|
|
1262
|
+
ok: boolean;
|
|
1263
|
+
}>;
|
|
1264
|
+
llmCatalog: () => Promise<P.ProjectLlmCatalogResponse>;
|
|
1265
|
+
llmCatalogProviders: () => Promise<P.ProjectLlmCatalogProvidersResponse>;
|
|
1266
|
+
modelPicker: () => Promise<P.ProjectLlmCatalogResponse>;
|
|
1267
|
+
modelAccess: () => Promise<P.ProjectModelAccess>;
|
|
1268
|
+
setModelAccess: (change: P.ProjectModelAccessChange) => Promise<P.ProjectModelAccess>;
|
|
1269
|
+
customLlmProviders: () => Promise<P.CustomLlmProvider[]>;
|
|
1270
|
+
setCustomLlmProvider: (providerId: string, input: P.CustomLlmProviderInput) => Promise<P.CustomLlmProvider>;
|
|
1271
|
+
deleteCustomLlmProvider: (providerId: string) => Promise<void>;
|
|
1272
|
+
sandboxHealth: () => Promise<P.ProjectSandboxHealth>;
|
|
1273
|
+
onboardingComplete: (completed: boolean) => Promise<P.KortixProject>;
|
|
1274
|
+
};
|
|
1275
|
+
/** Project-named calls. Kept permanently; new code uses `workspaces` and `workspace(id)`. */
|
|
122
1276
|
projects: {
|
|
123
1277
|
list: typeof P.listProjects;
|
|
124
|
-
listForAccount: typeof P.
|
|
1278
|
+
listForAccount: typeof P.listWorkspacesForAccount;
|
|
125
1279
|
get: typeof P.getProject;
|
|
126
|
-
detail: typeof P.
|
|
1280
|
+
detail: typeof P.getWorkspaceDetail;
|
|
127
1281
|
create: typeof P.createProject;
|
|
128
|
-
createRepo: typeof P.
|
|
129
|
-
provision: typeof P.
|
|
1282
|
+
createRepo: typeof P.createWorkspaceRepo;
|
|
1283
|
+
provision: typeof P.provisionWorkspace;
|
|
1284
|
+
createWorkspace: typeof P.createWorkspace;
|
|
130
1285
|
update: typeof P.updateProject;
|
|
131
|
-
archive: typeof P.
|
|
132
|
-
llmCatalog: typeof P.
|
|
133
|
-
modelPicker: typeof P.
|
|
134
|
-
modelAccess: typeof P.
|
|
135
|
-
setModelAccess: typeof P.
|
|
1286
|
+
archive: typeof P.archiveWorkspace;
|
|
1287
|
+
llmCatalog: typeof P.getWorkspaceLlmCatalog;
|
|
1288
|
+
modelPicker: typeof P.getWorkspaceModelPicker;
|
|
1289
|
+
modelAccess: typeof P.getWorkspaceModelAccess;
|
|
1290
|
+
setModelAccess: typeof P.setWorkspaceModelAccess;
|
|
136
1291
|
customLlmProviders: typeof P.listCustomLlmProviders;
|
|
137
1292
|
setCustomLlmProvider: typeof P.putCustomLlmProvider;
|
|
138
1293
|
deleteCustomLlmProvider: typeof P.deleteCustomLlmProvider;
|
|
139
|
-
sandboxHealth: typeof P.
|
|
140
|
-
sandboxTemplates: typeof P.
|
|
141
|
-
sessions: typeof P.
|
|
142
|
-
createSession: typeof P.
|
|
1294
|
+
sandboxHealth: typeof P.getWorkspaceSandboxHealth;
|
|
1295
|
+
sandboxTemplates: typeof P.listWorkspaceSandboxTemplates;
|
|
1296
|
+
sessions: typeof P.listWorkspaceSessions;
|
|
1297
|
+
createSession: typeof P.createWorkspaceSession;
|
|
143
1298
|
};
|
|
144
1299
|
/** Connector calls scoped by an agent/session token when no project id is available. */
|
|
145
1300
|
connectors: {
|
|
@@ -353,7 +1508,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
353
1508
|
awake_cap_at?: string | null;
|
|
354
1509
|
}>>;
|
|
355
1510
|
cost: () => Promise<P.SessionCostDetail>;
|
|
356
|
-
update: (input: Parameters<typeof P.
|
|
1511
|
+
update: (input: Parameters<typeof P.updateWorkspaceSession>[2]) => Promise<P.ProjectSession>;
|
|
357
1512
|
delete: () => Promise<{
|
|
358
1513
|
ok: boolean;
|
|
359
1514
|
restore_until?: string;
|
|
@@ -389,12 +1544,12 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
389
1544
|
status: string;
|
|
390
1545
|
}>;
|
|
391
1546
|
configState: () => Promise<P.SessionConfigState>;
|
|
392
|
-
reloadConfig: (input?: Parameters<typeof P.
|
|
1547
|
+
reloadConfig: (input?: Parameters<typeof P.reloadWorkspaceSessionConfig>[2]) => Promise<P.SessionReloadResult>;
|
|
393
1548
|
reloadConfigStream: (input: {
|
|
394
1549
|
refresh_repo?: boolean;
|
|
395
1550
|
force?: boolean;
|
|
396
1551
|
}, onEvent: (event: P.SessionReloadStreamEvent) => void, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.SessionReloadResult>;
|
|
397
|
-
setSharing: (intent: Parameters<typeof P.
|
|
1552
|
+
setSharing: (intent: Parameters<typeof P.setWorkspaceSessionSharing>[2]) => Promise<P.ProjectSession>;
|
|
398
1553
|
previews: () => Promise<{
|
|
399
1554
|
candidates: P.SessionPreviewCandidate[];
|
|
400
1555
|
}>;
|
|
@@ -455,7 +1610,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
455
1610
|
slug: string;
|
|
456
1611
|
providers?: Array<"platinum" | "daytona">;
|
|
457
1612
|
}>;
|
|
458
|
-
setProvider: (provider: Parameters<typeof P.
|
|
1613
|
+
setProvider: (provider: Parameters<typeof P.updateWorkspaceSandboxProvider>[1]) => Promise<P.UpdateProjectSandboxProviderResult>;
|
|
459
1614
|
};
|
|
460
1615
|
setAgentScope: (agentName: string, scope: {
|
|
461
1616
|
env?: P.AgentGrantSet;
|
|
@@ -559,15 +1714,15 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
559
1714
|
playground: (prompt: string, models: string[], system?: string) => Promise<P.GatewayPlaygroundResponse>;
|
|
560
1715
|
};
|
|
561
1716
|
sessions: {
|
|
562
|
-
list: (options?: Parameters<typeof P.
|
|
563
|
-
listPage: (options?: Parameters<typeof P.
|
|
564
|
-
create: (input?: Parameters<typeof P.
|
|
1717
|
+
list: (options?: Parameters<typeof P.listWorkspaceSessions>[1]) => Promise<P.ProjectSession[]>;
|
|
1718
|
+
listPage: (options?: Parameters<typeof P.listWorkspaceSessionsPage>[1]) => Promise<P.ProjectSessionPage>;
|
|
1719
|
+
create: (input?: Parameters<typeof P.createWorkspaceSession>[1]) => Promise<P.ProjectSession>;
|
|
565
1720
|
ensureWarm: () => Promise<P.WarmProjectSessionResult>;
|
|
566
1721
|
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
567
1722
|
};
|
|
568
1723
|
spaces: {
|
|
569
1724
|
list: () => Promise<P.ProjectSpace[]>;
|
|
570
|
-
create: (input: Parameters<typeof P.
|
|
1725
|
+
create: (input: Parameters<typeof P.createWorkspaceSpace>[1]) => Promise<P.ProjectSpace>;
|
|
571
1726
|
update: (spaceId: string, input: P.UpdateProjectSpaceInput) => Promise<P.ProjectSpace>;
|
|
572
1727
|
setTabs: (spaceId: string, tabs: P.ProjectSpaceTab[]) => Promise<P.ProjectSpace>;
|
|
573
1728
|
dm: (agentName: string) => Promise<P.ProjectSpace>;
|
|
@@ -599,7 +1754,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
599
1754
|
};
|
|
600
1755
|
sessionGroups: {
|
|
601
1756
|
list: () => Promise<P.ProjectSessionGroup[]>;
|
|
602
|
-
create: (input: Parameters<typeof P.
|
|
1757
|
+
create: (input: Parameters<typeof P.createWorkspaceSessionGroup>[1]) => Promise<P.ProjectSessionGroup>;
|
|
603
1758
|
rename: (groupId: string, name: string) => Promise<P.ProjectSessionGroup>;
|
|
604
1759
|
reorder: (groupIds: readonly string[]) => Promise<P.ProjectSessionGroup[]>;
|
|
605
1760
|
delete: (groupId: string) => Promise<void>;
|
|
@@ -651,11 +1806,11 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
651
1806
|
sessionsNeedingInput: (options?: Parameters<typeof P.listSessionsNeedingInput>[1]) => Promise<P.SessionsNeedingInputResponse>;
|
|
652
1807
|
};
|
|
653
1808
|
files: {
|
|
654
|
-
write: (input: Parameters<typeof P.
|
|
1809
|
+
write: (input: Parameters<typeof P.writeWorkspaceFile>[1]) => Promise<{
|
|
655
1810
|
commit_sha: string;
|
|
656
1811
|
}>;
|
|
657
|
-
list: (options?: Parameters<typeof P.
|
|
658
|
-
listDirectory: (options?: Parameters<typeof P.
|
|
1812
|
+
list: (options?: Parameters<typeof P.listWorkspaceFiles>[1]) => Promise<P.ProjectFileEntry[]>;
|
|
1813
|
+
listDirectory: (options?: Parameters<typeof P.listWorkspaceDirectory>[1]) => Promise<P.ProjectDirectoryListing>;
|
|
659
1814
|
read: (path: string, ref?: string) => Promise<{
|
|
660
1815
|
path: string;
|
|
661
1816
|
ref: string;
|
|
@@ -676,7 +1831,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
676
1831
|
} | undefined) => Promise<P.ProjectFileHistoryResponse>;
|
|
677
1832
|
};
|
|
678
1833
|
git: {
|
|
679
|
-
commits: (options?: Parameters<typeof P.
|
|
1834
|
+
commits: (options?: Parameters<typeof P.listWorkspaceCommits>[1]) => Promise<P.ProjectCommitsResponse>;
|
|
680
1835
|
commit: (sha: string) => Promise<P.ProjectCommitDetail>;
|
|
681
1836
|
commitDiff: (sha: string) => Promise<P.ProjectCommitDiffResponse>;
|
|
682
1837
|
branches: () => Promise<P.ProjectBranchesResponse>;
|
|
@@ -970,21 +2125,21 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
970
2125
|
};
|
|
971
2126
|
tokens: {
|
|
972
2127
|
list: () => Promise<P.ProjectCliTokenListResponse>;
|
|
973
|
-
create: (input?: Parameters<typeof P.
|
|
2128
|
+
create: (input?: Parameters<typeof P.createWorkspaceCliToken>[1]) => Promise<P.CreatedProjectCliToken>;
|
|
974
2129
|
revoke: (tokenId: string) => Promise<{
|
|
975
2130
|
ok: boolean;
|
|
976
2131
|
}>;
|
|
977
2132
|
};
|
|
978
2133
|
setupLinks: {
|
|
979
|
-
requestSecret: (input: Parameters<typeof P.
|
|
980
|
-
requestConnector: (input: Parameters<typeof P.
|
|
2134
|
+
requestSecret: (input: Parameters<typeof P.requestWorkspaceSecret>[1]) => Promise<P.SecretRequestLink>;
|
|
2135
|
+
requestConnector: (input: Parameters<typeof P.requestWorkspaceConnector>[1]) => Promise<P.ConnectorRequestLink>;
|
|
981
2136
|
};
|
|
982
2137
|
validateManifest: (raw: string) => Promise<P.ManifestValidationResult>;
|
|
983
2138
|
gitToken: () => Promise<P.ProjectGitToken>;
|
|
984
2139
|
agentIdentities: () => Promise<P.AgentIdentity[]>;
|
|
985
2140
|
secrets: {
|
|
986
2141
|
list: () => Promise<P.ProjectSecretsResponse>;
|
|
987
|
-
upsert: (input: Parameters<typeof P.
|
|
2142
|
+
upsert: (input: Parameters<typeof P.upsertWorkspaceSecret>[1]) => Promise<P.ProjectSecret>;
|
|
988
2143
|
setStrategy: (identifier: string, strategy: P.SecretDeliveryStrategy, options?: P.UpdateSecretStrategyOptions | undefined) => Promise<P.ProjectSecret>;
|
|
989
2144
|
broker: (identifier: string, input: P.SecretBrokerRequest) => Promise<P.SecretBrokerResponse>;
|
|
990
2145
|
remove: (name: string) => Promise<{
|
|
@@ -997,7 +2152,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
997
2152
|
removePersonal: (name: string) => Promise<{
|
|
998
2153
|
ok: boolean;
|
|
999
2154
|
}>;
|
|
1000
|
-
setGitCredential: (input: Parameters<typeof P.
|
|
2155
|
+
setGitCredential: (input: Parameters<typeof P.upsertWorkspaceGitCredential>[1]) => Promise<{
|
|
1001
2156
|
configured: boolean;
|
|
1002
2157
|
provider: string;
|
|
1003
2158
|
git_connection: P.ProjectGitConnection;
|
|
@@ -1071,7 +2226,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
1071
2226
|
}>;
|
|
1072
2227
|
resourceGrants: {
|
|
1073
2228
|
list: () => Promise<P.ProjectResourceGrantsResponse>;
|
|
1074
|
-
create: (input: Parameters<typeof P.
|
|
2229
|
+
create: (input: Parameters<typeof P.createWorkspaceResourceGrant>[1]) => Promise<{
|
|
1075
2230
|
grant_id: string;
|
|
1076
2231
|
}>;
|
|
1077
2232
|
remove: (grantId: string) => Promise<{
|
|
@@ -1225,7 +2380,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
1225
2380
|
}>;
|
|
1226
2381
|
create: (input: P.CreateProjectSkillInput, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.CreatedProjectSkill>;
|
|
1227
2382
|
};
|
|
1228
|
-
audit: (options?: Parameters<typeof P.
|
|
2383
|
+
audit: (options?: Parameters<typeof P.listWorkspaceAudit>[1]) => Promise<P.AuditEventList>;
|
|
1229
2384
|
update: (input: Parameters<typeof P.updateProject>[1]) => Promise<P.KortixProject>;
|
|
1230
2385
|
archive: () => Promise<{
|
|
1231
2386
|
ok: boolean;
|
|
@@ -1435,7 +2590,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
1435
2590
|
awake_cap_at?: string | null;
|
|
1436
2591
|
}>>;
|
|
1437
2592
|
cost: () => Promise<P.SessionCostDetail>;
|
|
1438
|
-
update: (input: Parameters<typeof P.
|
|
2593
|
+
update: (input: Parameters<typeof P.updateWorkspaceSession>[2]) => Promise<P.ProjectSession>;
|
|
1439
2594
|
delete: () => Promise<{
|
|
1440
2595
|
ok: boolean;
|
|
1441
2596
|
restore_until?: string;
|
|
@@ -1471,12 +2626,12 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
1471
2626
|
status: string;
|
|
1472
2627
|
}>;
|
|
1473
2628
|
configState: () => Promise<P.SessionConfigState>;
|
|
1474
|
-
reloadConfig: (input?: Parameters<typeof P.
|
|
2629
|
+
reloadConfig: (input?: Parameters<typeof P.reloadWorkspaceSessionConfig>[2]) => Promise<P.SessionReloadResult>;
|
|
1475
2630
|
reloadConfigStream: (input: {
|
|
1476
2631
|
refresh_repo?: boolean;
|
|
1477
2632
|
force?: boolean;
|
|
1478
2633
|
}, onEvent: (event: P.SessionReloadStreamEvent) => void, options?: import("../../index.js").ApiClientOptions | undefined) => Promise<P.SessionReloadResult>;
|
|
1479
|
-
setSharing: (intent: Parameters<typeof P.
|
|
2634
|
+
setSharing: (intent: Parameters<typeof P.setWorkspaceSessionSharing>[2]) => Promise<P.ProjectSession>;
|
|
1480
2635
|
previews: () => Promise<{
|
|
1481
2636
|
candidates: P.SessionPreviewCandidate[];
|
|
1482
2637
|
}>;
|
|
@@ -1505,7 +2660,7 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
1505
2660
|
/** GitHub App installation + repository linking (account-scoped). */
|
|
1506
2661
|
github: {
|
|
1507
2662
|
linkRepository: typeof P.linkRepository;
|
|
1508
|
-
replaceProjectRepository: typeof P.
|
|
2663
|
+
replaceProjectRepository: typeof P.replaceWorkspaceRepository;
|
|
1509
2664
|
getInstallation: typeof P.getGitHubInstallation;
|
|
1510
2665
|
listInstallations: typeof P.listGitHubInstallations;
|
|
1511
2666
|
listLinkableInstallations: typeof P.listLinkableGitHubInstallations;
|
|
@@ -1690,8 +2845,14 @@ export declare function createKortix(config: KortixPlatformConfig, opts?: {
|
|
|
1690
2845
|
runtime: typeof runtime;
|
|
1691
2846
|
};
|
|
1692
2847
|
export type Kortix = ReturnType<typeof createKortix>;
|
|
1693
|
-
/**
|
|
2848
|
+
/**
|
|
2849
|
+
* The id-bound project handle returned by `kortix.project(id)`.
|
|
2850
|
+
*
|
|
2851
|
+
* @deprecated Use `WorkspaceHandle` (`kortix.workspace(id)`): every member of this handle plus the workspace itself. Kept permanently.
|
|
2852
|
+
*/
|
|
1694
2853
|
export type ProjectHandle = ReturnType<Kortix['project']>;
|
|
2854
|
+
/** The id-bound workspace handle returned by `kortix.workspace(id)`. */
|
|
2855
|
+
export type WorkspaceHandle = ReturnType<Kortix['workspace']>;
|
|
1695
2856
|
/** The id-bound session handle returned by `kortix.session(pid, sid)`. */
|
|
1696
2857
|
export type SessionHandle = ReturnType<Kortix['session']>;
|
|
1697
2858
|
//# sourceMappingURL=kortix.d.ts.map
|