@beeuni/sdk 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -92
- package/dist/beeuni.esm.min.js +36 -34
- package/dist/beeuni.global.js +36 -34
- package/dist/browser/cache/idb-sync-cache.js +15 -5
- package/dist/browser/session-sync/server-transcript-mirror.d.ts +7 -1
- package/dist/browser/session-sync/server-transcript-mirror.js +30 -24
- package/dist/browser/session-sync/session-sync-registry.d.ts +3 -1
- package/dist/browser/session-sync/session-sync-registry.js +48 -3
- package/dist/browser/stores/sync-store/keep-unchanged.d.ts +4 -0
- package/dist/browser/stores/sync-store/keep-unchanged.js +34 -0
- package/dist/browser/stores/sync-store.d.ts +7 -0
- package/dist/browser/stores/sync-store.js +122 -35
- package/dist/core/attachments/prompt-attachments.d.ts +4 -0
- package/dist/core/attachments/prompt-attachments.js +34 -0
- package/dist/core/capture/rules.d.ts +17 -0
- package/dist/core/capture/rules.js +27 -0
- package/dist/core/client/beeuni.d.ts +99 -34
- package/dist/core/client/beeuni.js +5 -11
- package/dist/core/client/capture.d.ts +105 -0
- package/dist/core/client/capture.js +48 -0
- package/dist/core/client/facade-catalog.d.ts +0 -4
- package/dist/core/client/facade-catalog.js +1 -5
- package/dist/core/client/facade-identity.d.ts +1 -0
- package/dist/core/client/facade-identity.js +1 -0
- package/dist/core/client/project-access-resources.d.ts +3 -1
- package/dist/core/client/project-access-resources.js +1 -1
- package/dist/core/client/project-connections.d.ts +2 -2
- package/dist/core/client/project-connections.js +2 -2
- package/dist/core/client/project-operations-admin.d.ts +4 -4
- package/dist/core/client/project-operations-review.d.ts +2 -3
- package/dist/core/client/project-operations-review.js +1 -0
- package/dist/core/client/project-operations-workspace.d.ts +4 -4
- package/dist/core/client/project-operations-workspace.js +1 -1
- package/dist/core/client/project-operations.d.ts +9 -19
- package/dist/core/client/project-operations.js +2 -6
- 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/session-context.d.ts +2 -0
- package/dist/core/client/session-handle.d.ts +13 -0
- package/dist/core/client/session-lifecycle-resources.d.ts +11 -0
- package/dist/core/client/session-lifecycle-resources.js +4 -0
- package/dist/core/client/session-lifecycle-security.d.ts +2 -0
- package/dist/core/client/session-lifecycle-security.js +1 -0
- package/dist/core/client/session-readiness.d.ts +2 -0
- package/dist/core/client/session-readiness.js +20 -1
- package/dist/core/http/api-client.d.ts +1 -7
- package/dist/core/http/api-client.js +2 -37
- package/dist/core/http/auth.d.ts +2 -4
- package/dist/core/http/auth.js +2 -8
- package/dist/core/http/config.d.ts +2 -0
- package/dist/core/http/response-error.js +26 -11
- package/dist/core/http/transport.js +6 -1
- package/dist/core/models/composer-model.d.ts +14 -0
- package/dist/core/models/composer-model.js +21 -1
- package/dist/core/rest/platform-client/capture.d.ts +363 -0
- package/dist/core/rest/platform-client/capture.js +116 -0
- package/dist/core/rest/platform-client/client-policy.d.ts +8 -0
- package/dist/core/rest/platform-client/client-policy.js +30 -0
- package/dist/core/rest/platform-client/index.d.ts +4 -4
- package/dist/core/rest/platform-client/index.js +4 -4
- package/dist/core/rest/platform-client/lifecycle.js +18 -12
- package/dist/core/rest/platform-client/shared.d.ts +5 -0
- package/dist/core/rest/platform-client/shared.js +18 -0
- package/dist/core/rest/platform-client/types.d.ts +1 -1
- package/dist/core/rest/projects-client/account-secret-resources.d.ts +2 -1
- package/dist/core/rest/projects-client/accounts.d.ts +34 -0
- package/dist/core/rest/projects-client/accounts.js +10 -0
- package/dist/core/rest/projects-client/admin-providers.d.ts +0 -61
- package/dist/core/rest/projects-client/admin-providers.js +0 -6
- package/dist/core/rest/projects-client/agent-config.d.ts +3 -0
- package/dist/core/rest/projects-client/apps-fleet.d.ts +5 -1
- package/dist/core/rest/projects-client/apps-fleet.js +2 -2
- package/dist/core/rest/projects-client/apps.d.ts +11 -1
- package/dist/core/rest/projects-client/change-requests.d.ts +2 -0
- package/dist/core/rest/projects-client/change-requests.js +2 -0
- package/dist/core/rest/projects-client/connectors.d.ts +13 -55
- package/dist/core/rest/projects-client/connectors.js +5 -29
- package/dist/core/rest/projects-client/files.d.ts +3 -0
- package/dist/core/rest/projects-client/files.js +4 -0
- package/dist/core/rest/projects-client/gateway.d.ts +5 -0
- package/dist/core/rest/projects-client/git-backend.d.ts +1 -10
- package/dist/core/rest/projects-client/git-backend.js +0 -10
- package/dist/core/rest/projects-client/iam-actions.d.ts +76 -0
- package/dist/core/rest/projects-client/iam-actions.js +101 -0
- package/dist/core/rest/projects-client/iam-sso.d.ts +0 -10
- package/dist/core/rest/projects-client/iam-sso.js +0 -3
- package/dist/core/rest/projects-client/iam.d.ts +1 -0
- package/dist/core/rest/projects-client/iam.js +1 -0
- package/dist/core/rest/projects-client/index.d.ts +1 -4
- package/dist/core/rest/projects-client/index.js +1 -4
- package/dist/core/rest/projects-client/notifications.d.ts +1 -1
- package/dist/core/rest/projects-client/notifications.js +4 -0
- package/dist/core/rest/projects-client/projects.d.ts +4 -2
- package/dist/core/rest/projects-client/projects.js +4 -2
- package/dist/core/rest/projects-client/review-items.d.ts +2 -0
- package/dist/core/rest/projects-client/review-items.js +4 -0
- package/dist/core/rest/projects-client/review.d.ts +17 -3
- package/dist/core/rest/projects-client/review.js +11 -0
- package/dist/core/rest/projects-client/sandbox.d.ts +8 -9
- package/dist/core/rest/projects-client/secrets.d.ts +3 -0
- package/dist/core/rest/projects-client/session-attachments.js +14 -1
- package/dist/core/rest/projects-client/session-sandbox.d.ts +1 -1
- package/dist/core/rest/projects-client/sessions.d.ts +31 -4
- package/dist/core/rest/projects-client/sessions.js +34 -4
- package/dist/core/runtime/runtime-rest-client.js +1 -1
- package/dist/core/runtime/runtime-types.d.ts +1 -0
- package/dist/core/session/control-stream.d.ts +1 -0
- package/dist/core/session/control-stream.js +18 -1
- package/dist/core/session/open-bundle.d.ts +4 -4
- package/dist/core/session/open-bundle.js +29 -46
- package/dist/core/session/turn-end-watch.d.ts +47 -0
- package/dist/core/session/turn-end-watch.js +141 -0
- package/dist/core/session-log/guard.d.ts +6 -0
- package/dist/core/session-log/guard.js +109 -0
- package/dist/core/session-log/index.d.ts +7 -0
- package/dist/core/session-log/index.js +5 -0
- package/dist/core/session-log/saved-log.d.ts +10 -0
- package/dist/core/session-log/saved-log.js +25 -0
- package/dist/core/session-log/source.d.ts +25 -0
- package/dist/core/session-log/source.js +30 -0
- package/dist/core/session-log/store.d.ts +21 -0
- package/dist/core/session-log/store.js +126 -0
- package/dist/core/session-log/tool-call.d.ts +11 -0
- package/dist/core/session-log/tool-call.js +65 -0
- package/dist/core/session-log/turns/blocks.d.ts +60 -0
- package/dist/core/session-log/turns/blocks.js +124 -0
- package/dist/core/session-log/turns/history.d.ts +32 -0
- package/dist/core/session-log/turns/history.js +99 -0
- package/dist/core/session-log/turns/index.d.ts +4 -0
- package/dist/core/session-log/turns/index.js +4 -0
- package/dist/core/session-log/turns/metrics.d.ts +21 -0
- package/dist/core/session-log/turns/metrics.js +29 -0
- package/dist/core/session-log/turns/turn.d.ts +55 -0
- package/dist/core/session-log/turns/turn.js +279 -0
- package/dist/core/session-log/turns/v1-parts.d.ts +8 -0
- package/dist/core/session-log/turns/v1-parts.js +43 -0
- package/dist/core/session-log/types.d.ts +264 -0
- package/dist/core/session-log/types.js +6 -0
- package/dist/core/session-log/v1-view.d.ts +13 -0
- package/dist/core/session-log/v1-view.js +215 -0
- package/dist/core/session-log/v1.d.ts +31 -0
- package/dist/core/session-log/v1.js +473 -0
- package/dist/core/session-sync/copy-store-types.d.ts +19 -0
- package/dist/core/session-sync/copy-store-types.js +1 -0
- package/dist/core/session-sync/saved-copy-store.js +25 -4
- package/dist/core/session-sync/saved-transcript.d.ts +15 -1
- package/dist/core/session-sync/saved-transcript.js +55 -0
- package/dist/core/session-sync/session-sync-controller.js +3 -0
- package/dist/core/stream/event-stream.js +2 -2
- package/dist/core/turns/classify.d.ts +2 -1
- package/dist/core/turns/classify.js +7 -3
- package/dist/core/turns/edit-blocks.d.ts +1 -0
- package/dist/core/turns/edit-blocks.js +15 -0
- package/dist/core/turns/parts.d.ts +3 -2
- package/dist/core/turns/parts.js +4 -2
- package/dist/core/turns/segments/burst-summary.d.ts +1 -0
- package/dist/core/turns/segments/burst-summary.js +24 -0
- package/dist/core/turns/segments/group-steps.d.ts +4 -3
- package/dist/core/turns/segments/group-steps.js +9 -6
- package/dist/core/turns/segments/index.d.ts +1 -0
- package/dist/core/turns/segments/index.js +1 -0
- package/dist/core/turns/segments/narration.d.ts +5 -4
- package/dist/core/turns/segments/narration.js +12 -3
- package/dist/core/turns/segments/session-activity-groups.d.ts +2 -1
- package/dist/core/turns/segments/session-activity-groups.js +3 -1
- package/dist/core/turns/segments/step-label.d.ts +2 -1
- package/dist/core/turns/segments/step-label.js +3 -1
- package/dist/core/turns/segments/work-split.d.ts +10 -0
- package/dist/core/turns/segments/work-split.js +40 -0
- package/dist/core/turns/segments/working-turn.d.ts +4 -2
- package/dist/core/turns/segments/working-turn.js +9 -8
- package/dist/core/turns/state.d.ts +2 -7
- package/dist/core/turns/state.js +28 -134
- package/dist/core/turns/tool-kind.d.ts +1 -1
- package/dist/core/turns/tool-kind.js +3 -2
- package/dist/core/turns/tool-registry.js +1 -0
- package/dist/core/turns/tools/tool-meta.d.ts +3 -2
- package/dist/core/turns/tools/tool-meta.js +5 -2
- package/dist/core/turns/tools/tool-outcome.d.ts +2 -1
- package/dist/core/turns/tools/tool-outcome.js +3 -1
- package/dist/core/turns/types.d.ts +1 -1
- package/dist/core/turns/view-model.js +1 -13
- package/dist/core/warm-session-pool.d.ts +29 -0
- package/dist/core/warm-session-pool.js +127 -0
- package/dist/genui/catalog.d.ts +28 -0
- package/dist/genui/catalog.js +396 -0
- package/dist/genui/expansion.d.ts +3 -0
- package/dist/genui/expansion.js +295 -0
- package/dist/genui/fence-entry.d.ts +2 -0
- package/dist/genui/fence-entry.js +1 -0
- package/dist/genui/fence.d.ts +21 -0
- package/dist/genui/fence.js +138 -0
- package/dist/genui/index.d.ts +6 -0
- package/dist/genui/index.js +6 -0
- package/dist/genui/markdown.d.ts +12 -0
- package/dist/genui/markdown.js +104 -0
- package/dist/genui/parse.d.ts +6 -0
- package/dist/genui/parse.js +75 -0
- package/dist/genui/prompt.d.ts +2 -0
- package/dist/genui/prompt.js +206 -0
- package/dist/genui/react/default-components.d.ts +2 -0
- package/dist/genui/react/default-components.js +72 -0
- package/dist/genui/react/default-components.test.d.ts +1 -0
- package/dist/genui/react/default-components.test.js +94 -0
- package/dist/genui/react/genui-block-disabled.test.d.ts +1 -0
- package/dist/genui/react/genui-block-disabled.test.js +50 -0
- package/dist/genui/react/genui-block.d.ts +28 -0
- package/dist/genui/react/genui-block.js +91 -0
- package/dist/genui/react/genui-block.test.d.ts +1 -0
- package/dist/genui/react/genui-block.test.js +205 -0
- package/dist/genui/react/index.d.ts +2 -0
- package/dist/genui/react/index.js +2 -0
- package/dist/genui/share.d.ts +5 -0
- package/dist/genui/share.js +30 -0
- package/dist/genui/test-fixtures.d.ts +2 -0
- package/dist/genui/test-fixtures.js +16 -0
- package/dist/genui/types.d.ts +29 -0
- package/dist/genui/types.js +1 -0
- package/dist/genui/urls.d.ts +1 -0
- package/dist/genui/urls.js +18 -0
- package/dist/genui/validate.d.ts +9 -0
- package/dist/genui/validate.js +116 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/internal/connector-catalog.d.ts +48 -0
- package/dist/internal/connector-catalog.js +27 -0
- package/dist/internal/host-configuration.d.ts +22 -0
- package/dist/internal/host-configuration.js +28 -0
- package/dist/internal/platform-admin-react.d.ts +12 -0
- package/dist/internal/platform-admin-react.js +13 -0
- package/dist/internal/platform-admin.d.ts +9 -0
- package/dist/internal/platform-admin.js +9 -0
- package/dist/platform/ui.d.ts +8 -2
- package/dist/platform/ui.js +19 -4
- package/dist/react/chat/use-chat-turns.d.ts +1 -1
- package/dist/react/human-presence.d.ts +9 -0
- package/dist/react/human-presence.js +12 -0
- package/dist/react/index.d.ts +4 -13
- package/dist/react/index.js +4 -13
- package/dist/react/opencode.d.ts +1 -0
- package/dist/react/opencode.js +1 -0
- package/dist/react/query-contracts.d.ts +6 -0
- package/dist/react/query-contracts.js +6 -0
- package/dist/react/query-keys.d.ts +17 -2
- package/dist/react/query-keys.js +24 -2
- package/dist/react/reset-identity-state.js +2 -0
- package/dist/react/session-cache-write.d.ts +1 -0
- package/dist/react/session-cache-write.js +20 -0
- package/dist/react/session-transcript-subscription.js +3 -1
- package/dist/react/sign-in-with-beeuni.d.ts +6 -6
- package/dist/react/turn-end-handoff.d.ts +13 -0
- package/dist/react/turn-end-handoff.js +101 -0
- package/dist/react/use-admin-providers.d.ts +3 -6
- package/dist/react/use-admin-providers.js +1 -11
- package/dist/react/use-capture.d.ts +47 -0
- package/dist/react/use-capture.js +173 -0
- package/dist/react/use-feature-flag.js +1 -0
- package/dist/react/use-opencode-events/handle-event.d.ts +1 -0
- package/dist/react/use-opencode-events/handle-event.js +5 -0
- package/dist/react/use-opencode-events/handle-interaction-event.js +8 -3
- package/dist/react/use-opencode-events/handle-session-event.js +13 -8
- package/dist/react/use-opencode-events/handler-context.d.ts +1 -0
- package/dist/react/use-opencode-events/helpers.d.ts +1 -0
- package/dist/react/use-opencode-events/helpers.js +11 -1
- package/dist/react/use-opencode-events/index.js +1 -0
- package/dist/react/use-opencode-local.d.ts +5 -1
- package/dist/react/use-opencode-local.js +15 -2
- package/dist/react/use-opencode-sessions/commands.d.ts +11 -1
- package/dist/react/use-opencode-sessions/commands.js +21 -1
- package/dist/react/use-opencode-sessions/permissions.js +28 -1
- package/dist/react/use-project-sessions.d.ts +1 -1
- package/dist/react/use-project-sessions.js +6 -5
- package/dist/react/use-prompt-attachments.js +1 -0
- package/dist/react/use-review-summary.d.ts +13 -0
- package/dist/react/use-review-summary.js +32 -0
- package/dist/react/use-runtime-reconnect.js +1 -1
- package/dist/react/use-session-list-state.d.ts +6 -0
- package/dist/react/use-session-list-state.js +33 -0
- package/dist/react/use-session-log.d.ts +16 -0
- package/dist/react/use-session-log.js +143 -0
- package/dist/react/use-session-messages.d.ts +2 -1
- package/dist/react/use-session-messages.js +15 -14
- package/dist/react/use-session-stream.js +12 -1
- package/dist/react/use-session-sync.d.ts +2 -2
- package/dist/react/use-session-sync.js +10 -8
- package/dist/react/use-session-transcript-history.js +2 -12
- package/dist/react/use-session-working.d.ts +2 -0
- package/dist/react/use-session-working.js +10 -0
- package/dist/react/use-session.d.ts +6 -0
- package/dist/react/use-session.js +88 -6
- package/package.json +62 -8
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const CAPTURE_LAYERS: readonly ["screen", "actions", "audio"];
|
|
2
|
+
export type CaptureLayer = (typeof CAPTURE_LAYERS)[number];
|
|
3
|
+
export declare const CAPTURE_EXCLUSION_GROUPS: readonly ["password_managers", "messaging", "banking"];
|
|
4
|
+
export type CaptureExclusionGroup = (typeof CAPTURE_EXCLUSION_GROUPS)[number];
|
|
5
|
+
export declare const CAPTURE_RETENTION_LIMITS: {
|
|
6
|
+
readonly localHours: number;
|
|
7
|
+
readonly remoteDays: 3650;
|
|
8
|
+
};
|
|
9
|
+
export declare const CAPTURE_FRAME_INTERVALS_MS: readonly [500, 1000, 2000, 5000, 10000];
|
|
10
|
+
export declare const CAPTURE_MAX_HEIGHTS: readonly [720, 1080, 1440, 2160];
|
|
11
|
+
export type CaptureMaxHeight = (typeof CAPTURE_MAX_HEIGHTS)[number];
|
|
12
|
+
export declare const CAPTURE_DEVICE_DEFAULTS: {
|
|
13
|
+
readonly intervalMs: 2000;
|
|
14
|
+
readonly maxHeight: 1440;
|
|
15
|
+
};
|
|
16
|
+
export declare function normalizeCaptureDomain(input: string): string | null;
|
|
17
|
+
export declare function normalizeCaptureAppId(input: string): string | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const CAPTURE_LAYERS = ['screen', 'actions', 'audio'];
|
|
2
|
+
export const CAPTURE_EXCLUSION_GROUPS = ['password_managers', 'messaging', 'banking'];
|
|
3
|
+
export const CAPTURE_RETENTION_LIMITS = { localHours: 24 * 365, remoteDays: 3650 };
|
|
4
|
+
export const CAPTURE_FRAME_INTERVALS_MS = [500, 1000, 2000, 5000, 10000];
|
|
5
|
+
export const CAPTURE_MAX_HEIGHTS = [720, 1080, 1440, 2160];
|
|
6
|
+
export const CAPTURE_DEVICE_DEFAULTS = { intervalMs: 2000, maxHeight: 1440 };
|
|
7
|
+
const HOST = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;
|
|
8
|
+
export function normalizeCaptureDomain(input) {
|
|
9
|
+
const raw = input.trim().toLowerCase();
|
|
10
|
+
if (!raw)
|
|
11
|
+
return null;
|
|
12
|
+
let host;
|
|
13
|
+
try {
|
|
14
|
+
host = new URL(raw.includes('://') ? raw : `https://${raw}`).hostname;
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
host = host.replace(/^www\./, '').replace(/\.$/, '');
|
|
20
|
+
return HOST.test(host) ? host : null;
|
|
21
|
+
}
|
|
22
|
+
export function normalizeCaptureAppId(input) {
|
|
23
|
+
const id = input.trim();
|
|
24
|
+
if (!id || id.length > 255 || id.startsWith('-') || /[\u0000-\u001f\u007f]/.test(id))
|
|
25
|
+
return null;
|
|
26
|
+
return /\s/.test(id) && !id.toLowerCase().endsWith('.exe') ? null : id;
|
|
27
|
+
}
|
|
@@ -3,6 +3,7 @@ export type { SessionModel } from './session-shared.js';
|
|
|
3
3
|
import type { RuntimeClient } from '../runtime/client.js';
|
|
4
4
|
import { type BeeuniPlatformConfig } from '../http/config.js';
|
|
5
5
|
import * as P from '../rest/projects-client/index.js';
|
|
6
|
+
import { getMobileClientPolicy } from '../rest/platform-client/client-policy.js';
|
|
6
7
|
declare function runtime(): RuntimeClient;
|
|
7
8
|
export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
8
9
|
global?: boolean;
|
|
@@ -59,15 +60,6 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
59
60
|
};
|
|
60
61
|
};
|
|
61
62
|
};
|
|
62
|
-
providerConnections: {
|
|
63
|
-
list: typeof P.listUserProviderConnections;
|
|
64
|
-
saveApiKey: typeof P.saveUserProviderApiKey;
|
|
65
|
-
remove: typeof P.deleteUserProviderConnection;
|
|
66
|
-
startOAuth: typeof P.startUserProviderOAuth;
|
|
67
|
-
pollOAuth: typeof P.pollUserProviderOAuth;
|
|
68
|
-
listProject: typeof P.listProjectPersonalProviders;
|
|
69
|
-
setProject: typeof P.setProjectPersonalProvider;
|
|
70
|
-
};
|
|
71
63
|
iam: {
|
|
72
64
|
assignments: {
|
|
73
65
|
list: typeof P.listAssignments;
|
|
@@ -114,8 +106,66 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
114
106
|
listMine: typeof P.listMyAccountInvites;
|
|
115
107
|
describe: typeof P.describeAccountInvite;
|
|
116
108
|
accept: typeof P.acceptAccountInvite;
|
|
109
|
+
acceptAndLand: typeof P.acceptAccountInviteAndLand;
|
|
117
110
|
decline: typeof P.declineAccountInvite;
|
|
118
111
|
};
|
|
112
|
+
capture: {
|
|
113
|
+
account: (accountId: string) => {
|
|
114
|
+
workspace: {
|
|
115
|
+
get: () => Promise<import("../../index.js").CaptureWorkspace>;
|
|
116
|
+
setEnabled: (enabled: boolean) => Promise<import("../../index.js").CaptureWorkspace>;
|
|
117
|
+
};
|
|
118
|
+
devices: {
|
|
119
|
+
list: (opts?: Parameters<typeof import("../../index.js").listCaptureDevices>[1]) => Promise<{
|
|
120
|
+
devices: import("../../index.js").CaptureDevice[];
|
|
121
|
+
health: import("../../index.js").CaptureHealthSummary;
|
|
122
|
+
}>;
|
|
123
|
+
revoke: (deviceId: string) => Promise<import("../../index.js").CaptureDevice>;
|
|
124
|
+
link: (deviceId: string, userId: string | null) => Promise<import("../../index.js").CaptureDevice>;
|
|
125
|
+
assetUrl: (deviceId: string, name: string) => Promise<import("../../index.js").CaptureSignedUrl>;
|
|
126
|
+
};
|
|
127
|
+
enrollment: {
|
|
128
|
+
tokens: {
|
|
129
|
+
list: () => Promise<{
|
|
130
|
+
tokens: import("../../index.js").CaptureEnrollmentToken[];
|
|
131
|
+
}>;
|
|
132
|
+
create: (input: import("../../index.js").CaptureEnrollmentTokenInput) => Promise<import("../../index.js").CaptureEnrollmentTokenSecret>;
|
|
133
|
+
revoke: (tokenId: string) => Promise<import("../../index.js").CaptureEnrollmentToken>;
|
|
134
|
+
};
|
|
135
|
+
list: (opts?: {
|
|
136
|
+
status?: import("../../index.js").CaptureEnrollmentStatus;
|
|
137
|
+
}) => Promise<{
|
|
138
|
+
enrollments: import("../../index.js").CaptureEnrollment[];
|
|
139
|
+
}>;
|
|
140
|
+
approve: (enrollmentId: string, userId?: string | null) => Promise<import("../../index.js").CaptureEnrollment>;
|
|
141
|
+
deny: (enrollmentId: string) => Promise<import("../../index.js").CaptureEnrollment>;
|
|
142
|
+
};
|
|
143
|
+
policy: {
|
|
144
|
+
get: () => Promise<import("../../index.js").CapturePolicyRecord>;
|
|
145
|
+
set: (policy: import("../../index.js").CapturePolicy) => Promise<import("../../index.js").CapturePolicyRecord>;
|
|
146
|
+
};
|
|
147
|
+
timeline: {
|
|
148
|
+
get: (query?: import("../../index.js").CaptureWindowQuery) => Promise<import("../../index.js").CaptureTimeline>;
|
|
149
|
+
items: (query?: import("../../index.js").CaptureWindowQuery) => Promise<import("../../index.js").CaptureTimelineItems>;
|
|
150
|
+
days: (query?: import("../../index.js").CaptureDaysQuery) => Promise<import("../../index.js").CaptureDays>;
|
|
151
|
+
};
|
|
152
|
+
search: (query: import("../../index.js").CaptureSearchQuery) => Promise<import("../../index.js").CaptureSearchResult>;
|
|
153
|
+
frame: (frameId: string, opts?: {
|
|
154
|
+
userId?: string;
|
|
155
|
+
}) => Promise<import("../../index.js").CaptureFrameDetail>;
|
|
156
|
+
media: (chunkId: string, opts?: {
|
|
157
|
+
userId?: string;
|
|
158
|
+
}) => Promise<import("../../index.js").CaptureChunkMedia>;
|
|
159
|
+
};
|
|
160
|
+
deviceGrant: typeof import("../../index.js").getCaptureDeviceGrant;
|
|
161
|
+
approveDevice: typeof import("../../index.js").approveCaptureDeviceGrant;
|
|
162
|
+
denyDevice: typeof import("../../index.js").denyCaptureDeviceGrant;
|
|
163
|
+
me: {
|
|
164
|
+
search: typeof import("../../index.js").searchMyCapture;
|
|
165
|
+
timeline: typeof import("../../index.js").getMyCaptureTimeline;
|
|
166
|
+
frame: typeof import("../../index.js").getMyCaptureFrame;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
119
169
|
projects: {
|
|
120
170
|
list: typeof P.listProjects;
|
|
121
171
|
listForAccount: typeof P.listProjectsForAccount;
|
|
@@ -263,6 +313,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
263
313
|
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
264
314
|
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
265
315
|
transcriptSync: (options?: Parameters<typeof P.getSessionTranscriptSync>[2]) => Promise<P.SessionTranscriptSyncEnvelope>;
|
|
316
|
+
log: (query?: Parameters<typeof P.getSessionLogPage>[2]) => Promise<import("../session-log/index.js").SessionLogPage | null>;
|
|
266
317
|
turn: () => Promise<P.SessionTurnStatus>;
|
|
267
318
|
prompts: {
|
|
268
319
|
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
@@ -281,6 +332,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
281
332
|
};
|
|
282
333
|
ensureReady: (opts?: {
|
|
283
334
|
readyTimeoutMs?: number;
|
|
335
|
+
session?: P.ProjectSession;
|
|
284
336
|
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
285
337
|
get: (opts?: {
|
|
286
338
|
showErrors?: boolean;
|
|
@@ -293,11 +345,20 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
293
345
|
keepalive?: boolean;
|
|
294
346
|
}) => Promise<import("../../index.js").ApiResponse<{
|
|
295
347
|
ok: boolean;
|
|
348
|
+
awake_until?: string | null;
|
|
349
|
+
awake_cap_at?: string | null;
|
|
296
350
|
}>>;
|
|
297
351
|
cost: () => Promise<P.SessionCostDetail>;
|
|
298
352
|
update: (input: Parameters<typeof P.updateProjectSession>[2]) => Promise<P.ProjectSession>;
|
|
299
353
|
delete: () => Promise<{
|
|
300
354
|
ok: boolean;
|
|
355
|
+
restore_until?: string;
|
|
356
|
+
}>;
|
|
357
|
+
restore: () => Promise<{
|
|
358
|
+
ok: boolean;
|
|
359
|
+
}>;
|
|
360
|
+
recover: () => Promise<{
|
|
361
|
+
ok: true;
|
|
301
362
|
}>;
|
|
302
363
|
start: (options?: (number | {
|
|
303
364
|
waitMs?: number;
|
|
@@ -340,6 +401,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
340
401
|
setWatch: (watching: boolean) => Promise<{
|
|
341
402
|
watching: boolean;
|
|
342
403
|
}>;
|
|
404
|
+
setPinned: (pinned: boolean) => Promise<P.SessionListState>;
|
|
405
|
+
setArchived: (archived: boolean) => Promise<P.SessionListState>;
|
|
343
406
|
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
344
407
|
publicShares: {
|
|
345
408
|
list: () => Promise<{
|
|
@@ -386,7 +449,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
386
449
|
status: "started";
|
|
387
450
|
template_id: string;
|
|
388
451
|
slug: string;
|
|
389
|
-
providers?: Array<
|
|
452
|
+
providers?: Array<string>;
|
|
390
453
|
}>;
|
|
391
454
|
setProvider: (provider: Parameters<typeof P.updateProjectSandboxProvider>[1]) => Promise<P.UpdateProjectSandboxProviderResult>;
|
|
392
455
|
};
|
|
@@ -465,9 +528,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
465
528
|
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
466
529
|
};
|
|
467
530
|
review: {
|
|
468
|
-
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<
|
|
469
|
-
|
|
470
|
-
}>;
|
|
531
|
+
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<P.ReviewItemsPage>;
|
|
532
|
+
summary: () => Promise<P.ReviewSummary>;
|
|
471
533
|
get: (reviewItemId: string) => Promise<{
|
|
472
534
|
review_item: P.ApiReviewItem;
|
|
473
535
|
}>;
|
|
@@ -521,8 +583,9 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
521
583
|
inviteCollaborator: (githubUsername: string, permission?: "read" | "write" | undefined) => Promise<P.RepoCollaboratorInvite>;
|
|
522
584
|
};
|
|
523
585
|
changeRequests: {
|
|
524
|
-
list: () => Promise<{
|
|
586
|
+
list: (status?: "all" | P.ChangeRequestStatus | undefined, options?: P.ListChangeRequestsOptions | undefined) => Promise<{
|
|
525
587
|
change_requests: P.ChangeRequest[];
|
|
588
|
+
next_cursor?: string | null;
|
|
526
589
|
}>;
|
|
527
590
|
get: (crId: string) => Promise<P.ChangeRequestDetailResponse>;
|
|
528
591
|
update: (crId: string, input: {
|
|
@@ -608,6 +671,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
608
671
|
}>;
|
|
609
672
|
setCredential: (slug: string, credential: string | P.ConnectionCredentialInput) => Promise<{
|
|
610
673
|
ok: boolean;
|
|
674
|
+
sync?: P.ConnectorSyncResult;
|
|
611
675
|
}>;
|
|
612
676
|
deleteCredential: (slug: string) => Promise<{
|
|
613
677
|
ok: boolean;
|
|
@@ -643,8 +707,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
643
707
|
tunnelId: string;
|
|
644
708
|
share?: P.ConnectorConnectOwner;
|
|
645
709
|
}) => Promise<P.Connection>;
|
|
646
|
-
|
|
647
|
-
|
|
710
|
+
connect: (connectionId: string, input?: P.ConnectionConnectInput | undefined) => Promise<P.ConnectorConnectResult>;
|
|
711
|
+
finalize: (connectionId: string) => Promise<P.ConnectorFinalizeResult>;
|
|
648
712
|
};
|
|
649
713
|
policies: {
|
|
650
714
|
get: (slug: string) => Promise<{
|
|
@@ -658,19 +722,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
658
722
|
sync?: P.ConnectorSyncResult;
|
|
659
723
|
}>;
|
|
660
724
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
listSections: (opts?: {
|
|
664
|
-
perCategory?: number;
|
|
665
|
-
maxCategories?: number;
|
|
666
|
-
} | undefined) => Promise<{
|
|
667
|
-
sections: P.PipedreamSection[];
|
|
668
|
-
categories: P.PipedreamCategory[];
|
|
669
|
-
indexReady?: boolean;
|
|
670
|
-
}>;
|
|
671
|
-
connect: (slug: string, options?: P.ConnectorConnectOptions | undefined) => Promise<P.ConnectorConnectResult>;
|
|
672
|
-
finalize: (slug: string, options?: P.ConnectorFinalizeOptions | undefined) => Promise<P.ConnectorFinalizeResult>;
|
|
673
|
-
};
|
|
725
|
+
connect: (slug: string, options?: P.ConnectorConnectOptions | undefined) => Promise<P.ConnectorConnectResult>;
|
|
726
|
+
finalize: (slug: string, options?: P.ConnectorFinalizeOptions | undefined) => Promise<P.ConnectorFinalizeResult>;
|
|
674
727
|
discover: {
|
|
675
728
|
list: (qOrQuery?: string | P.DiscoverConnectorsQuery | undefined, cursor?: string | undefined) => Promise<P.DiscoverConnectorsPage>;
|
|
676
729
|
sections: (opts?: {
|
|
@@ -834,7 +887,9 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
834
887
|
restart: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
835
888
|
destroy: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
836
889
|
};
|
|
837
|
-
scale: (appId: string, count: Record<string, number
|
|
890
|
+
scale: (appId: string, count: Record<string, number>, options?: {
|
|
891
|
+
newVolumes?: boolean;
|
|
892
|
+
} | undefined) => Promise<{
|
|
838
893
|
scale: Record<string, number>;
|
|
839
894
|
machines: P.AppMachine[];
|
|
840
895
|
}>;
|
|
@@ -1039,6 +1094,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1039
1094
|
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
1040
1095
|
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
1041
1096
|
transcriptSync: (options?: Parameters<typeof P.getSessionTranscriptSync>[2]) => Promise<P.SessionTranscriptSyncEnvelope>;
|
|
1097
|
+
log: (query?: Parameters<typeof P.getSessionLogPage>[2]) => Promise<import("../session-log/index.js").SessionLogPage | null>;
|
|
1042
1098
|
turn: () => Promise<P.SessionTurnStatus>;
|
|
1043
1099
|
prompts: {
|
|
1044
1100
|
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
@@ -1057,6 +1113,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1057
1113
|
};
|
|
1058
1114
|
ensureReady: (opts?: {
|
|
1059
1115
|
readyTimeoutMs?: number;
|
|
1116
|
+
session?: P.ProjectSession;
|
|
1060
1117
|
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
1061
1118
|
get: (opts?: {
|
|
1062
1119
|
showErrors?: boolean;
|
|
@@ -1069,11 +1126,20 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1069
1126
|
keepalive?: boolean;
|
|
1070
1127
|
}) => Promise<import("../../index.js").ApiResponse<{
|
|
1071
1128
|
ok: boolean;
|
|
1129
|
+
awake_until?: string | null;
|
|
1130
|
+
awake_cap_at?: string | null;
|
|
1072
1131
|
}>>;
|
|
1073
1132
|
cost: () => Promise<P.SessionCostDetail>;
|
|
1074
1133
|
update: (input: Parameters<typeof P.updateProjectSession>[2]) => Promise<P.ProjectSession>;
|
|
1075
1134
|
delete: () => Promise<{
|
|
1076
1135
|
ok: boolean;
|
|
1136
|
+
restore_until?: string;
|
|
1137
|
+
}>;
|
|
1138
|
+
restore: () => Promise<{
|
|
1139
|
+
ok: boolean;
|
|
1140
|
+
}>;
|
|
1141
|
+
recover: () => Promise<{
|
|
1142
|
+
ok: true;
|
|
1077
1143
|
}>;
|
|
1078
1144
|
start: (options?: (number | {
|
|
1079
1145
|
waitMs?: number;
|
|
@@ -1116,6 +1182,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1116
1182
|
setWatch: (watching: boolean) => Promise<{
|
|
1117
1183
|
watching: boolean;
|
|
1118
1184
|
}>;
|
|
1185
|
+
setPinned: (pinned: boolean) => Promise<P.SessionListState>;
|
|
1186
|
+
setArchived: (archived: boolean) => Promise<P.SessionListState>;
|
|
1119
1187
|
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
1120
1188
|
publicShares: {
|
|
1121
1189
|
list: () => Promise<{
|
|
@@ -1142,10 +1210,6 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1142
1210
|
deleteInstallation: typeof P.deleteGitHubInstallation;
|
|
1143
1211
|
storeUserToken: typeof P.storeGitHubUserToken;
|
|
1144
1212
|
};
|
|
1145
|
-
gitBackend: {
|
|
1146
|
-
get: typeof P.getManagedGitBackend;
|
|
1147
|
-
repositories: typeof P.listManagedGitRepositories;
|
|
1148
|
-
};
|
|
1149
1213
|
billing: {
|
|
1150
1214
|
accountState: typeof P.getAccountState;
|
|
1151
1215
|
accountStateMinimal: typeof P.getAccountStateMinimal;
|
|
@@ -1208,6 +1272,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1208
1272
|
registerWebPushSubscription: typeof P.registerWebPushSubscription;
|
|
1209
1273
|
unregisterWebPushSubscription: typeof P.unregisterWebPushSubscription;
|
|
1210
1274
|
};
|
|
1275
|
+
mobileClientPolicy: typeof getMobileClientPolicy;
|
|
1211
1276
|
validateToken: typeof P.validateToken;
|
|
1212
1277
|
runtime: typeof runtime;
|
|
1213
1278
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { bindCatalog } from './facade-catalog.js';
|
|
2
|
+
import { captureClient } from './capture.js';
|
|
2
3
|
import { bindCommerce } from './facade-commerce.js';
|
|
3
4
|
import { bindIdentity } from './facade-identity.js';
|
|
4
5
|
import { bindPreviewOptions } from './facade-preview.js';
|
|
@@ -15,6 +16,7 @@ import { bindProjectPlatformSecurity } from './project-platform-security.js';
|
|
|
15
16
|
import { getClient } from '../runtime/client.js';
|
|
16
17
|
import { configureBeeuni } from '../http/config.js';
|
|
17
18
|
import * as P from '../rest/projects-client/index.js';
|
|
19
|
+
import { getMobileClientPolicy } from '../rest/platform-client/client-policy.js';
|
|
18
20
|
function runtime() {
|
|
19
21
|
return getClient();
|
|
20
22
|
}
|
|
@@ -39,7 +41,7 @@ export function createBeeuni(config, opts) {
|
|
|
39
41
|
const resolvePreviewOptsForSandbox = bindPreviewOptions(config);
|
|
40
42
|
const { auth, accounts, iam, accountInvites } = bindIdentity();
|
|
41
43
|
const { billing, sandboxShares } = bindCommerce();
|
|
42
|
-
const { projects, github,
|
|
44
|
+
const { projects, github, connectStatus, marketplace } = bindCatalog();
|
|
43
45
|
function project(projectId) {
|
|
44
46
|
const connections = projectConnections(projectId);
|
|
45
47
|
return {
|
|
@@ -57,24 +59,15 @@ export function createBeeuni(config, opts) {
|
|
|
57
59
|
config,
|
|
58
60
|
auth,
|
|
59
61
|
accounts,
|
|
60
|
-
providerConnections: {
|
|
61
|
-
list: P.listUserProviderConnections,
|
|
62
|
-
saveApiKey: P.saveUserProviderApiKey,
|
|
63
|
-
remove: P.deleteUserProviderConnection,
|
|
64
|
-
startOAuth: P.startUserProviderOAuth,
|
|
65
|
-
pollOAuth: P.pollUserProviderOAuth,
|
|
66
|
-
listProject: P.listProjectPersonalProviders,
|
|
67
|
-
setProject: P.setProjectPersonalProvider,
|
|
68
|
-
},
|
|
69
62
|
iam,
|
|
70
63
|
accountInvites,
|
|
64
|
+
capture: captureClient,
|
|
71
65
|
projects,
|
|
72
66
|
connectors: connectorDataPlane(),
|
|
73
67
|
connector: (slug) => connectorHandle(undefined, slug),
|
|
74
68
|
project,
|
|
75
69
|
session: (projectId, sessionId) => session(projectId, sessionId, config, resolvePreviewOptsForSandbox),
|
|
76
70
|
github,
|
|
77
|
-
gitBackend,
|
|
78
71
|
billing,
|
|
79
72
|
sandboxShares,
|
|
80
73
|
connectStatus,
|
|
@@ -90,6 +83,7 @@ export function createBeeuni(config, opts) {
|
|
|
90
83
|
registerWebPushSubscription: P.registerWebPushSubscription,
|
|
91
84
|
unregisterWebPushSubscription: P.unregisterWebPushSubscription,
|
|
92
85
|
},
|
|
86
|
+
mobileClientPolicy: getMobileClientPolicy,
|
|
93
87
|
validateToken: P.validateToken,
|
|
94
88
|
runtime,
|
|
95
89
|
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as C from '../rest/platform-client/capture.js';
|
|
2
|
+
export declare function bindAccountCapture(accountId: string): {
|
|
3
|
+
workspace: {
|
|
4
|
+
get: () => Promise<C.CaptureWorkspace>;
|
|
5
|
+
setEnabled: (enabled: boolean) => Promise<C.CaptureWorkspace>;
|
|
6
|
+
};
|
|
7
|
+
devices: {
|
|
8
|
+
list: (opts?: Parameters<typeof C.listCaptureDevices>[1]) => Promise<{
|
|
9
|
+
devices: C.CaptureDevice[];
|
|
10
|
+
health: C.CaptureHealthSummary;
|
|
11
|
+
}>;
|
|
12
|
+
revoke: (deviceId: string) => Promise<C.CaptureDevice>;
|
|
13
|
+
link: (deviceId: string, userId: string | null) => Promise<C.CaptureDevice>;
|
|
14
|
+
assetUrl: (deviceId: string, name: string) => Promise<C.CaptureSignedUrl>;
|
|
15
|
+
};
|
|
16
|
+
enrollment: {
|
|
17
|
+
tokens: {
|
|
18
|
+
list: () => Promise<{
|
|
19
|
+
tokens: C.CaptureEnrollmentToken[];
|
|
20
|
+
}>;
|
|
21
|
+
create: (input: C.CaptureEnrollmentTokenInput) => Promise<C.CaptureEnrollmentTokenSecret>;
|
|
22
|
+
revoke: (tokenId: string) => Promise<C.CaptureEnrollmentToken>;
|
|
23
|
+
};
|
|
24
|
+
list: (opts?: {
|
|
25
|
+
status?: C.CaptureEnrollmentStatus;
|
|
26
|
+
}) => Promise<{
|
|
27
|
+
enrollments: C.CaptureEnrollment[];
|
|
28
|
+
}>;
|
|
29
|
+
approve: (enrollmentId: string, userId?: string | null) => Promise<C.CaptureEnrollment>;
|
|
30
|
+
deny: (enrollmentId: string) => Promise<C.CaptureEnrollment>;
|
|
31
|
+
};
|
|
32
|
+
policy: {
|
|
33
|
+
get: () => Promise<C.CapturePolicyRecord>;
|
|
34
|
+
set: (policy: C.CapturePolicy) => Promise<C.CapturePolicyRecord>;
|
|
35
|
+
};
|
|
36
|
+
timeline: {
|
|
37
|
+
get: (query?: C.CaptureWindowQuery) => Promise<C.CaptureTimeline>;
|
|
38
|
+
items: (query?: C.CaptureWindowQuery) => Promise<C.CaptureTimelineItems>;
|
|
39
|
+
days: (query?: C.CaptureDaysQuery) => Promise<C.CaptureDays>;
|
|
40
|
+
};
|
|
41
|
+
search: (query: C.CaptureSearchQuery) => Promise<C.CaptureSearchResult>;
|
|
42
|
+
frame: (frameId: string, opts?: {
|
|
43
|
+
userId?: string;
|
|
44
|
+
}) => Promise<C.CaptureFrameDetail>;
|
|
45
|
+
media: (chunkId: string, opts?: {
|
|
46
|
+
userId?: string;
|
|
47
|
+
}) => Promise<C.CaptureChunkMedia>;
|
|
48
|
+
};
|
|
49
|
+
export declare const captureClient: {
|
|
50
|
+
account: (accountId: string) => {
|
|
51
|
+
workspace: {
|
|
52
|
+
get: () => Promise<C.CaptureWorkspace>;
|
|
53
|
+
setEnabled: (enabled: boolean) => Promise<C.CaptureWorkspace>;
|
|
54
|
+
};
|
|
55
|
+
devices: {
|
|
56
|
+
list: (opts?: Parameters<typeof C.listCaptureDevices>[1]) => Promise<{
|
|
57
|
+
devices: C.CaptureDevice[];
|
|
58
|
+
health: C.CaptureHealthSummary;
|
|
59
|
+
}>;
|
|
60
|
+
revoke: (deviceId: string) => Promise<C.CaptureDevice>;
|
|
61
|
+
link: (deviceId: string, userId: string | null) => Promise<C.CaptureDevice>;
|
|
62
|
+
assetUrl: (deviceId: string, name: string) => Promise<C.CaptureSignedUrl>;
|
|
63
|
+
};
|
|
64
|
+
enrollment: {
|
|
65
|
+
tokens: {
|
|
66
|
+
list: () => Promise<{
|
|
67
|
+
tokens: C.CaptureEnrollmentToken[];
|
|
68
|
+
}>;
|
|
69
|
+
create: (input: C.CaptureEnrollmentTokenInput) => Promise<C.CaptureEnrollmentTokenSecret>;
|
|
70
|
+
revoke: (tokenId: string) => Promise<C.CaptureEnrollmentToken>;
|
|
71
|
+
};
|
|
72
|
+
list: (opts?: {
|
|
73
|
+
status?: C.CaptureEnrollmentStatus;
|
|
74
|
+
}) => Promise<{
|
|
75
|
+
enrollments: C.CaptureEnrollment[];
|
|
76
|
+
}>;
|
|
77
|
+
approve: (enrollmentId: string, userId?: string | null) => Promise<C.CaptureEnrollment>;
|
|
78
|
+
deny: (enrollmentId: string) => Promise<C.CaptureEnrollment>;
|
|
79
|
+
};
|
|
80
|
+
policy: {
|
|
81
|
+
get: () => Promise<C.CapturePolicyRecord>;
|
|
82
|
+
set: (policy: C.CapturePolicy) => Promise<C.CapturePolicyRecord>;
|
|
83
|
+
};
|
|
84
|
+
timeline: {
|
|
85
|
+
get: (query?: C.CaptureWindowQuery) => Promise<C.CaptureTimeline>;
|
|
86
|
+
items: (query?: C.CaptureWindowQuery) => Promise<C.CaptureTimelineItems>;
|
|
87
|
+
days: (query?: C.CaptureDaysQuery) => Promise<C.CaptureDays>;
|
|
88
|
+
};
|
|
89
|
+
search: (query: C.CaptureSearchQuery) => Promise<C.CaptureSearchResult>;
|
|
90
|
+
frame: (frameId: string, opts?: {
|
|
91
|
+
userId?: string;
|
|
92
|
+
}) => Promise<C.CaptureFrameDetail>;
|
|
93
|
+
media: (chunkId: string, opts?: {
|
|
94
|
+
userId?: string;
|
|
95
|
+
}) => Promise<C.CaptureChunkMedia>;
|
|
96
|
+
};
|
|
97
|
+
deviceGrant: typeof C.getCaptureDeviceGrant;
|
|
98
|
+
approveDevice: typeof C.approveCaptureDeviceGrant;
|
|
99
|
+
denyDevice: typeof C.denyCaptureDeviceGrant;
|
|
100
|
+
me: {
|
|
101
|
+
search: typeof C.searchMyCapture;
|
|
102
|
+
timeline: typeof C.getMyCaptureTimeline;
|
|
103
|
+
frame: typeof C.getMyCaptureFrame;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as C from '../rest/platform-client/capture.js';
|
|
2
|
+
export function bindAccountCapture(accountId) {
|
|
3
|
+
return {
|
|
4
|
+
workspace: {
|
|
5
|
+
get: () => C.getCaptureWorkspace(accountId),
|
|
6
|
+
setEnabled: (enabled) => C.setCaptureEnabled(accountId, enabled),
|
|
7
|
+
},
|
|
8
|
+
devices: {
|
|
9
|
+
list: (opts) => C.listCaptureDevices(accountId, opts),
|
|
10
|
+
revoke: (deviceId) => C.revokeCaptureDevice(accountId, deviceId),
|
|
11
|
+
link: (deviceId, userId) => C.linkCaptureDevice(accountId, deviceId, userId),
|
|
12
|
+
assetUrl: (deviceId, name) => C.getCaptureAssetUrl(accountId, deviceId, name),
|
|
13
|
+
},
|
|
14
|
+
enrollment: {
|
|
15
|
+
tokens: {
|
|
16
|
+
list: () => C.listCaptureEnrollmentTokens(accountId),
|
|
17
|
+
create: (input) => C.createCaptureEnrollmentToken(accountId, input),
|
|
18
|
+
revoke: (tokenId) => C.revokeCaptureEnrollmentToken(accountId, tokenId),
|
|
19
|
+
},
|
|
20
|
+
list: (opts) => C.listCaptureEnrollments(accountId, opts),
|
|
21
|
+
approve: (enrollmentId, userId) => C.approveCaptureEnrollment(accountId, enrollmentId, userId),
|
|
22
|
+
deny: (enrollmentId) => C.denyCaptureEnrollment(accountId, enrollmentId),
|
|
23
|
+
},
|
|
24
|
+
policy: {
|
|
25
|
+
get: () => C.getCapturePolicy(accountId),
|
|
26
|
+
set: (policy) => C.setCapturePolicy(accountId, policy),
|
|
27
|
+
},
|
|
28
|
+
timeline: {
|
|
29
|
+
get: (query) => C.getCaptureTimeline(accountId, query),
|
|
30
|
+
items: (query) => C.getCaptureTimelineItems(accountId, query),
|
|
31
|
+
days: (query) => C.getCaptureDays(accountId, query),
|
|
32
|
+
},
|
|
33
|
+
search: (query) => C.searchCapture(accountId, query),
|
|
34
|
+
frame: (frameId, opts) => C.getCaptureFrame(accountId, frameId, opts),
|
|
35
|
+
media: (chunkId, opts) => C.getCaptureChunkMedia(accountId, chunkId, opts),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export const captureClient = {
|
|
39
|
+
account: (accountId) => bindAccountCapture(accountId),
|
|
40
|
+
deviceGrant: C.getCaptureDeviceGrant,
|
|
41
|
+
approveDevice: C.approveCaptureDeviceGrant,
|
|
42
|
+
denyDevice: C.denyCaptureDeviceGrant,
|
|
43
|
+
me: {
|
|
44
|
+
search: C.searchMyCapture,
|
|
45
|
+
timeline: C.getMyCaptureTimeline,
|
|
46
|
+
frame: C.getMyCaptureFrame,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
@@ -32,10 +32,6 @@ export declare function bindCatalog(): {
|
|
|
32
32
|
deleteInstallation: typeof P.deleteGitHubInstallation;
|
|
33
33
|
storeUserToken: typeof P.storeGitHubUserToken;
|
|
34
34
|
};
|
|
35
|
-
gitBackend: {
|
|
36
|
-
get: typeof P.getManagedGitBackend;
|
|
37
|
-
repositories: typeof P.listManagedGitRepositories;
|
|
38
|
-
};
|
|
39
35
|
connectStatus: typeof P.getConnectStatus;
|
|
40
36
|
marketplace: {
|
|
41
37
|
items: (options?: Parameters<typeof P.listMarketplaceCatalogItems>[0]) => Promise<P.MarketplaceItemsResponse>;
|
|
@@ -32,10 +32,6 @@ export function bindCatalog() {
|
|
|
32
32
|
deleteInstallation: P.deleteGitHubInstallation,
|
|
33
33
|
storeUserToken: P.storeGitHubUserToken,
|
|
34
34
|
};
|
|
35
|
-
const gitBackend = {
|
|
36
|
-
get: P.getManagedGitBackend,
|
|
37
|
-
repositories: P.listManagedGitRepositories,
|
|
38
|
-
};
|
|
39
35
|
const connectStatus = P.getConnectStatus;
|
|
40
36
|
const marketplace = {
|
|
41
37
|
items: (options) => P.listMarketplaceCatalogItems(options),
|
|
@@ -49,5 +45,5 @@ export function bindCatalog() {
|
|
|
49
45
|
remove: (id) => P.removeMarketplaceSource(id),
|
|
50
46
|
},
|
|
51
47
|
};
|
|
52
|
-
return { projects, github,
|
|
48
|
+
return { projects, github, connectStatus, marketplace };
|
|
53
49
|
}
|
|
@@ -98,6 +98,7 @@ export declare function bindIdentity(): {
|
|
|
98
98
|
listMine: typeof P.listMyAccountInvites;
|
|
99
99
|
describe: typeof P.describeAccountInvite;
|
|
100
100
|
accept: typeof P.acceptAccountInvite;
|
|
101
|
+
acceptAndLand: typeof P.acceptAccountInviteAndLand;
|
|
101
102
|
decline: typeof P.declineAccountInvite;
|
|
102
103
|
};
|
|
103
104
|
};
|
|
@@ -27,6 +27,7 @@ export function bindIdentity() {
|
|
|
27
27
|
listMine: P.listMyAccountInvites,
|
|
28
28
|
describe: P.describeAccountInvite,
|
|
29
29
|
accept: P.acceptAccountInvite,
|
|
30
|
+
acceptAndLand: P.acceptAccountInviteAndLand,
|
|
30
31
|
decline: P.declineAccountInvite,
|
|
31
32
|
};
|
|
32
33
|
return { auth, accounts, iam, accountInvites };
|
|
@@ -40,7 +40,9 @@ export declare function bindProjectAccessResources(projectId: string): {
|
|
|
40
40
|
restart: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
41
41
|
destroy: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
42
42
|
};
|
|
43
|
-
scale: (appId: string, count: Record<string, number
|
|
43
|
+
scale: (appId: string, count: Record<string, number>, options?: {
|
|
44
|
+
newVolumes?: boolean;
|
|
45
|
+
} | undefined) => Promise<{
|
|
44
46
|
scale: Record<string, number>;
|
|
45
47
|
machines: P.AppMachine[];
|
|
46
48
|
}>;
|
|
@@ -37,7 +37,7 @@ export function bindProjectAccessResources(projectId) {
|
|
|
37
37
|
restart: (appId, machineId) => P.restartAppMachine(projectId, appId, machineId),
|
|
38
38
|
destroy: (appId, machineId) => P.destroyAppMachine(projectId, appId, machineId),
|
|
39
39
|
},
|
|
40
|
-
scale: (
|
|
40
|
+
scale: (...a) => P.scaleApp(projectId, ...a),
|
|
41
41
|
exec: (...a) => P.execInApp(projectId, ...a),
|
|
42
42
|
volumes: {
|
|
43
43
|
list: (appId) => P.listAppVolumes(projectId, appId),
|
|
@@ -27,6 +27,6 @@ export declare function projectConnections(projectId: string): {
|
|
|
27
27
|
tunnelId: string;
|
|
28
28
|
share?: P.ConnectorConnectOwner;
|
|
29
29
|
}) => Promise<P.Connection>;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
connect: (connectionId: string, input?: P.ConnectionConnectInput | undefined) => Promise<P.ConnectorConnectResult>;
|
|
31
|
+
finalize: (connectionId: string) => Promise<P.ConnectorFinalizeResult>;
|
|
32
32
|
};
|
|
@@ -12,7 +12,7 @@ export function projectConnections(projectId) {
|
|
|
12
12
|
rename: (...a) => P.renameConnection(projectId, ...a),
|
|
13
13
|
share: (...a) => P.shareConnection(projectId, ...a),
|
|
14
14
|
addComputer: (...a) => P.addComputerToProject(projectId, ...a),
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
connect: (...a) => P.connectorConnectConnection(projectId, ...a),
|
|
16
|
+
finalize: (...a) => P.connectorFinalizeConnection(projectId, ...a),
|
|
17
17
|
};
|
|
18
18
|
}
|
|
@@ -8,9 +8,8 @@ export declare function bindProjectOperationsAdmin(projectId: string): {
|
|
|
8
8
|
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
9
9
|
};
|
|
10
10
|
review: {
|
|
11
|
-
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<
|
|
12
|
-
|
|
13
|
-
}>;
|
|
11
|
+
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<P.ReviewItemsPage>;
|
|
12
|
+
summary: () => Promise<P.ReviewSummary>;
|
|
14
13
|
get: (reviewItemId: string) => Promise<{
|
|
15
14
|
review_item: P.ApiReviewItem;
|
|
16
15
|
}>;
|
|
@@ -64,8 +63,9 @@ export declare function bindProjectOperationsAdmin(projectId: string): {
|
|
|
64
63
|
inviteCollaborator: (githubUsername: string, permission?: "read" | "write" | undefined) => Promise<P.RepoCollaboratorInvite>;
|
|
65
64
|
};
|
|
66
65
|
changeRequests: {
|
|
67
|
-
list: () => Promise<{
|
|
66
|
+
list: (status?: "all" | P.ChangeRequestStatus | undefined, options?: P.ListChangeRequestsOptions | undefined) => Promise<{
|
|
68
67
|
change_requests: P.ChangeRequest[];
|
|
68
|
+
next_cursor?: string | null;
|
|
69
69
|
}>;
|
|
70
70
|
get: (crId: string) => Promise<P.ChangeRequestDetailResponse>;
|
|
71
71
|
update: (crId: string, input: {
|