@beeuni/sdk 0.2.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 +19 -10
- package/dist/beeuni.esm.min.js +37 -35
- package/dist/beeuni.global.js +37 -35
- 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 +1 -0
- package/dist/browser/stores/sync-store.js +72 -16
- 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 +92 -5
- package/dist/core/client/beeuni.js +2 -0
- package/dist/core/client/capture.d.ts +105 -0
- package/dist/core/client/capture.js +48 -0
- 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-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 +5 -4
- 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 -0
- package/dist/core/http/api-client.js +1 -0
- 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/index.d.ts +1 -0
- package/dist/core/rest/platform-client/index.js +1 -0
- 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/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 +3 -0
- 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 +7 -0
- package/dist/core/rest/projects-client/connectors.js +3 -0
- 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/iam-actions.d.ts +76 -0
- package/dist/core/rest/projects-client/iam-actions.js +101 -0
- 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/notifications.d.ts +1 -1
- package/dist/core/rest/projects-client/notifications.js +4 -0
- package/dist/core/rest/projects-client/projects.d.ts +3 -2
- package/dist/core/rest/projects-client/projects.js +2 -3
- 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/secrets.d.ts +3 -0
- package/dist/core/rest/projects-client/session-attachments.js +14 -1
- package/dist/core/rest/projects-client/sessions.d.ts +29 -2
- 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/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/index.d.ts +4 -0
- package/dist/core/session-log/index.js +3 -0
- package/dist/core/session-log/tool-call.d.ts +7 -2
- package/dist/core/session-log/tool-call.js +25 -6
- 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/v1-view.d.ts +5 -2
- package/dist/core/session-log/v1-view.js +86 -22
- package/dist/core/session-log/v1.js +10 -3
- 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 +3 -3
- package/dist/core/turns/classify.js +4 -2
- package/dist/core/turns/edit-blocks.d.ts +1 -0
- package/dist/core/turns/edit-blocks.js +15 -0
- 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/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/working-turn.d.ts +4 -2
- package/dist/core/turns/segments/working-turn.js +9 -8
- 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 +1 -1
- package/dist/core/turns/tools/tool-meta.js +3 -2
- package/dist/core/turns/view-model.js +1 -13
- 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 +2 -2
- package/dist/index.js +2 -2
- package/dist/internal/connector-catalog.d.ts +1 -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 -0
- package/dist/react/index.js +4 -0
- package/dist/react/opencode.d.ts +1 -1
- package/dist/react/opencode.js +1 -1
- 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 -1
- package/dist/react/query-keys.js +24 -1
- 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 +1 -1
- package/dist/react/sign-in-with-beeuni.d.ts +5 -5
- 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 +0 -3
- 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-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-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 +2 -2
- 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 +3 -2
- package/dist/react/use-session-log.js +26 -17
- 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 +87 -7
- package/package.json +49 -3
|
@@ -106,8 +106,66 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
106
106
|
listMine: typeof P.listMyAccountInvites;
|
|
107
107
|
describe: typeof P.describeAccountInvite;
|
|
108
108
|
accept: typeof P.acceptAccountInvite;
|
|
109
|
+
acceptAndLand: typeof P.acceptAccountInviteAndLand;
|
|
109
110
|
decline: typeof P.declineAccountInvite;
|
|
110
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
|
+
};
|
|
111
169
|
projects: {
|
|
112
170
|
list: typeof P.listProjects;
|
|
113
171
|
listForAccount: typeof P.listProjectsForAccount;
|
|
@@ -255,6 +313,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
255
313
|
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
256
314
|
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
257
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>;
|
|
258
317
|
turn: () => Promise<P.SessionTurnStatus>;
|
|
259
318
|
prompts: {
|
|
260
319
|
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
@@ -273,6 +332,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
273
332
|
};
|
|
274
333
|
ensureReady: (opts?: {
|
|
275
334
|
readyTimeoutMs?: number;
|
|
335
|
+
session?: P.ProjectSession;
|
|
276
336
|
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
277
337
|
get: (opts?: {
|
|
278
338
|
showErrors?: boolean;
|
|
@@ -285,11 +345,20 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
285
345
|
keepalive?: boolean;
|
|
286
346
|
}) => Promise<import("../../index.js").ApiResponse<{
|
|
287
347
|
ok: boolean;
|
|
348
|
+
awake_until?: string | null;
|
|
349
|
+
awake_cap_at?: string | null;
|
|
288
350
|
}>>;
|
|
289
351
|
cost: () => Promise<P.SessionCostDetail>;
|
|
290
352
|
update: (input: Parameters<typeof P.updateProjectSession>[2]) => Promise<P.ProjectSession>;
|
|
291
353
|
delete: () => Promise<{
|
|
292
354
|
ok: boolean;
|
|
355
|
+
restore_until?: string;
|
|
356
|
+
}>;
|
|
357
|
+
restore: () => Promise<{
|
|
358
|
+
ok: boolean;
|
|
359
|
+
}>;
|
|
360
|
+
recover: () => Promise<{
|
|
361
|
+
ok: true;
|
|
293
362
|
}>;
|
|
294
363
|
start: (options?: (number | {
|
|
295
364
|
waitMs?: number;
|
|
@@ -332,6 +401,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
332
401
|
setWatch: (watching: boolean) => Promise<{
|
|
333
402
|
watching: boolean;
|
|
334
403
|
}>;
|
|
404
|
+
setPinned: (pinned: boolean) => Promise<P.SessionListState>;
|
|
405
|
+
setArchived: (archived: boolean) => Promise<P.SessionListState>;
|
|
335
406
|
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
336
407
|
publicShares: {
|
|
337
408
|
list: () => Promise<{
|
|
@@ -457,9 +528,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
457
528
|
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
458
529
|
};
|
|
459
530
|
review: {
|
|
460
|
-
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<
|
|
461
|
-
|
|
462
|
-
}>;
|
|
531
|
+
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<P.ReviewItemsPage>;
|
|
532
|
+
summary: () => Promise<P.ReviewSummary>;
|
|
463
533
|
get: (reviewItemId: string) => Promise<{
|
|
464
534
|
review_item: P.ApiReviewItem;
|
|
465
535
|
}>;
|
|
@@ -513,8 +583,9 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
513
583
|
inviteCollaborator: (githubUsername: string, permission?: "read" | "write" | undefined) => Promise<P.RepoCollaboratorInvite>;
|
|
514
584
|
};
|
|
515
585
|
changeRequests: {
|
|
516
|
-
list: () => Promise<{
|
|
586
|
+
list: (status?: "all" | P.ChangeRequestStatus | undefined, options?: P.ListChangeRequestsOptions | undefined) => Promise<{
|
|
517
587
|
change_requests: P.ChangeRequest[];
|
|
588
|
+
next_cursor?: string | null;
|
|
518
589
|
}>;
|
|
519
590
|
get: (crId: string) => Promise<P.ChangeRequestDetailResponse>;
|
|
520
591
|
update: (crId: string, input: {
|
|
@@ -600,6 +671,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
600
671
|
}>;
|
|
601
672
|
setCredential: (slug: string, credential: string | P.ConnectionCredentialInput) => Promise<{
|
|
602
673
|
ok: boolean;
|
|
674
|
+
sync?: P.ConnectorSyncResult;
|
|
603
675
|
}>;
|
|
604
676
|
deleteCredential: (slug: string) => Promise<{
|
|
605
677
|
ok: boolean;
|
|
@@ -815,7 +887,9 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
815
887
|
restart: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
816
888
|
destroy: (appId: string, machineId: string) => Promise<P.AppMachine[]>;
|
|
817
889
|
};
|
|
818
|
-
scale: (appId: string, count: Record<string, number
|
|
890
|
+
scale: (appId: string, count: Record<string, number>, options?: {
|
|
891
|
+
newVolumes?: boolean;
|
|
892
|
+
} | undefined) => Promise<{
|
|
819
893
|
scale: Record<string, number>;
|
|
820
894
|
machines: P.AppMachine[];
|
|
821
895
|
}>;
|
|
@@ -1020,6 +1094,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1020
1094
|
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
1021
1095
|
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
1022
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>;
|
|
1023
1098
|
turn: () => Promise<P.SessionTurnStatus>;
|
|
1024
1099
|
prompts: {
|
|
1025
1100
|
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
@@ -1038,6 +1113,7 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1038
1113
|
};
|
|
1039
1114
|
ensureReady: (opts?: {
|
|
1040
1115
|
readyTimeoutMs?: number;
|
|
1116
|
+
session?: P.ProjectSession;
|
|
1041
1117
|
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
1042
1118
|
get: (opts?: {
|
|
1043
1119
|
showErrors?: boolean;
|
|
@@ -1050,11 +1126,20 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1050
1126
|
keepalive?: boolean;
|
|
1051
1127
|
}) => Promise<import("../../index.js").ApiResponse<{
|
|
1052
1128
|
ok: boolean;
|
|
1129
|
+
awake_until?: string | null;
|
|
1130
|
+
awake_cap_at?: string | null;
|
|
1053
1131
|
}>>;
|
|
1054
1132
|
cost: () => Promise<P.SessionCostDetail>;
|
|
1055
1133
|
update: (input: Parameters<typeof P.updateProjectSession>[2]) => Promise<P.ProjectSession>;
|
|
1056
1134
|
delete: () => Promise<{
|
|
1057
1135
|
ok: boolean;
|
|
1136
|
+
restore_until?: string;
|
|
1137
|
+
}>;
|
|
1138
|
+
restore: () => Promise<{
|
|
1139
|
+
ok: boolean;
|
|
1140
|
+
}>;
|
|
1141
|
+
recover: () => Promise<{
|
|
1142
|
+
ok: true;
|
|
1058
1143
|
}>;
|
|
1059
1144
|
start: (options?: (number | {
|
|
1060
1145
|
waitMs?: number;
|
|
@@ -1097,6 +1182,8 @@ export declare function createBeeuni(config: BeeuniPlatformConfig, opts?: {
|
|
|
1097
1182
|
setWatch: (watching: boolean) => Promise<{
|
|
1098
1183
|
watching: boolean;
|
|
1099
1184
|
}>;
|
|
1185
|
+
setPinned: (pinned: boolean) => Promise<P.SessionListState>;
|
|
1186
|
+
setArchived: (archived: boolean) => Promise<P.SessionListState>;
|
|
1100
1187
|
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
1101
1188
|
publicShares: {
|
|
1102
1189
|
list: () => Promise<{
|
|
@@ -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';
|
|
@@ -60,6 +61,7 @@ export function createBeeuni(config, opts) {
|
|
|
60
61
|
accounts,
|
|
61
62
|
iam,
|
|
62
63
|
accountInvites,
|
|
64
|
+
capture: captureClient,
|
|
63
65
|
projects,
|
|
64
66
|
connectors: connectorDataPlane(),
|
|
65
67
|
connector: (slug) => connectorHandle(undefined, slug),
|
|
@@ -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
|
+
};
|
|
@@ -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),
|
|
@@ -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: {
|
|
@@ -9,9 +9,8 @@ export declare function bindProjectOperationsReview(projectId: string): {
|
|
|
9
9
|
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
10
10
|
};
|
|
11
11
|
review: {
|
|
12
|
-
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<
|
|
13
|
-
|
|
14
|
-
}>;
|
|
12
|
+
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<P.ReviewItemsPage>;
|
|
13
|
+
summary: () => Promise<P.ReviewSummary>;
|
|
15
14
|
get: (reviewItemId: string) => Promise<{
|
|
16
15
|
review_item: P.ApiReviewItem;
|
|
17
16
|
}>;
|
|
@@ -10,6 +10,7 @@ export function bindProjectOperationsReview(projectId) {
|
|
|
10
10
|
},
|
|
11
11
|
review: {
|
|
12
12
|
list: (params) => P.listReviewItems(projectId, params),
|
|
13
|
+
summary: () => P.getReviewSummary(projectId),
|
|
13
14
|
get: (reviewItemId) => P.getReviewItem(projectId, reviewItemId),
|
|
14
15
|
submit: (input) => P.submitReviewItem(projectId, input),
|
|
15
16
|
act: (...a) => P.actReviewItem(projectId, ...a),
|
|
@@ -8,9 +8,8 @@ export declare function bindProjectOperationsWorkspace(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 bindProjectOperationsWorkspace(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: {
|
|
@@ -20,7 +20,7 @@ export function bindProjectOperationsWorkspace(projectId) {
|
|
|
20
20
|
inviteCollaborator: (...a) => P.inviteRepoCollaborator(projectId, ...a),
|
|
21
21
|
},
|
|
22
22
|
changeRequests: {
|
|
23
|
-
list: () => P.listChangeRequests(projectId),
|
|
23
|
+
list: (...a) => P.listChangeRequests(projectId, ...a),
|
|
24
24
|
get: (crId) => P.getChangeRequest(projectId, crId),
|
|
25
25
|
update: (...a) => P.updateChangeRequest(projectId, ...a),
|
|
26
26
|
diff: (crId) => P.getChangeRequestDiff(projectId, crId),
|
|
@@ -9,9 +9,8 @@ export declare function bindProjectOperations(projectId: string, connections: Re
|
|
|
9
9
|
claimWarm: (input: Parameters<typeof P.claimWarmProjectSession>[1]) => Promise<P.ProjectSession>;
|
|
10
10
|
};
|
|
11
11
|
review: {
|
|
12
|
-
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<
|
|
13
|
-
|
|
14
|
-
}>;
|
|
12
|
+
list: (params?: Parameters<typeof P.listReviewItems>[1]) => Promise<P.ReviewItemsPage>;
|
|
13
|
+
summary: () => Promise<P.ReviewSummary>;
|
|
15
14
|
get: (reviewItemId: string) => Promise<{
|
|
16
15
|
review_item: P.ApiReviewItem;
|
|
17
16
|
}>;
|
|
@@ -65,8 +64,9 @@ export declare function bindProjectOperations(projectId: string, connections: Re
|
|
|
65
64
|
inviteCollaborator: (githubUsername: string, permission?: "read" | "write" | undefined) => Promise<P.RepoCollaboratorInvite>;
|
|
66
65
|
};
|
|
67
66
|
changeRequests: {
|
|
68
|
-
list: () => Promise<{
|
|
67
|
+
list: (status?: "all" | P.ChangeRequestStatus | undefined, options?: P.ListChangeRequestsOptions | undefined) => Promise<{
|
|
69
68
|
change_requests: P.ChangeRequest[];
|
|
69
|
+
next_cursor?: string | null;
|
|
70
70
|
}>;
|
|
71
71
|
get: (crId: string) => Promise<P.ChangeRequestDetailResponse>;
|
|
72
72
|
update: (crId: string, input: {
|
|
@@ -152,6 +152,7 @@ export declare function bindProjectOperations(projectId: string, connections: Re
|
|
|
152
152
|
}>;
|
|
153
153
|
setCredential: (slug: string, credential: string | P.ConnectionCredentialInput) => Promise<{
|
|
154
154
|
ok: boolean;
|
|
155
|
+
sync?: P.ConnectorSyncResult;
|
|
155
156
|
}>;
|
|
156
157
|
deleteCredential: (slug: string) => Promise<{
|
|
157
158
|
ok: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ProjectSession } from '../rest/projects-client/sessions.js';
|
|
1
2
|
import type { ResolvedPreviewOptions } from '../session/preview-options.js';
|
|
2
3
|
import type { SessionRuntimeEntry } from '../session/session-runtime-registry.js';
|
|
3
4
|
import type { SessionModel } from './session-shared.js';
|
|
@@ -6,6 +7,7 @@ export type SessionBindingContext = {
|
|
|
6
7
|
sessionId: string;
|
|
7
8
|
ensureReady: (opts?: {
|
|
8
9
|
readyTimeoutMs?: number;
|
|
10
|
+
session?: ProjectSession;
|
|
9
11
|
}) => Promise<SessionRuntimeEntry>;
|
|
10
12
|
tryResolveReady: () => SessionRuntimeEntry | null;
|
|
11
13
|
requireReady: (action: string) => SessionRuntimeEntry;
|
|
@@ -115,6 +115,7 @@ export declare function session(projectId: string, sessionId: string, config: Be
|
|
|
115
115
|
messageAuthors: () => Promise<import("../../index.js").SessionMessageAuthors>;
|
|
116
116
|
modelUsage: () => Promise<import("../../index.js").SessionModelUsage>;
|
|
117
117
|
transcriptSync: (options?: Parameters<typeof import("../../index.js").getSessionTranscriptSync>[2]) => Promise<import("../../index.js").SessionTranscriptSyncEnvelope>;
|
|
118
|
+
log: (query?: Parameters<typeof import("../../index.js").getSessionLogPage>[2]) => Promise<import("../session-log/index.js").SessionLogPage | null>;
|
|
118
119
|
turn: () => Promise<import("../../index.js").SessionTurnStatus>;
|
|
119
120
|
prompts: {
|
|
120
121
|
create: (input: import("../../index.js").CreateSessionPromptInput) => Promise<import("../../index.js").CreateSessionPromptResult>;
|
|
@@ -133,6 +134,7 @@ export declare function session(projectId: string, sessionId: string, config: Be
|
|
|
133
134
|
};
|
|
134
135
|
ensureReady: (opts?: {
|
|
135
136
|
readyTimeoutMs?: number;
|
|
137
|
+
session?: import("../../index.js").ProjectSession;
|
|
136
138
|
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
137
139
|
get: (opts?: {
|
|
138
140
|
showErrors?: boolean;
|
|
@@ -145,11 +147,20 @@ export declare function session(projectId: string, sessionId: string, config: Be
|
|
|
145
147
|
keepalive?: boolean;
|
|
146
148
|
}) => Promise<import("../../index.js").ApiResponse<{
|
|
147
149
|
ok: boolean;
|
|
150
|
+
awake_until?: string | null;
|
|
151
|
+
awake_cap_at?: string | null;
|
|
148
152
|
}>>;
|
|
149
153
|
cost: () => Promise<import("../../index.js").SessionCostDetail>;
|
|
150
154
|
update: (input: Parameters<typeof import("../../index.js").updateProjectSession>[2]) => Promise<import("../../index.js").ProjectSession>;
|
|
151
155
|
delete: () => Promise<{
|
|
152
156
|
ok: boolean;
|
|
157
|
+
restore_until?: string;
|
|
158
|
+
}>;
|
|
159
|
+
restore: () => Promise<{
|
|
160
|
+
ok: boolean;
|
|
161
|
+
}>;
|
|
162
|
+
recover: () => Promise<{
|
|
163
|
+
ok: true;
|
|
153
164
|
}>;
|
|
154
165
|
start: (options?: (number | {
|
|
155
166
|
waitMs?: number;
|
|
@@ -192,6 +203,8 @@ export declare function session(projectId: string, sessionId: string, config: Be
|
|
|
192
203
|
setWatch: (watching: boolean) => Promise<{
|
|
193
204
|
watching: boolean;
|
|
194
205
|
}>;
|
|
206
|
+
setPinned: (pinned: boolean) => Promise<import("../../index.js").SessionListState>;
|
|
207
|
+
setArchived: (archived: boolean) => Promise<import("../../index.js").SessionListState>;
|
|
195
208
|
commit: (input?: Parameters<typeof import("../../index.js").commitSessionChanges>[2]) => Promise<import("../../index.js").CommitSessionResult>;
|
|
196
209
|
publicShares: {
|
|
197
210
|
list: () => Promise<{
|
|
@@ -13,11 +13,20 @@ export declare function bindSessionLifecycleResources(ctx: SessionBindingContext
|
|
|
13
13
|
keepalive?: boolean;
|
|
14
14
|
}) => Promise<import("../../index.js").ApiResponse<{
|
|
15
15
|
ok: boolean;
|
|
16
|
+
awake_until?: string | null;
|
|
17
|
+
awake_cap_at?: string | null;
|
|
16
18
|
}>>;
|
|
17
19
|
cost: () => Promise<P.SessionCostDetail>;
|
|
18
20
|
update: (input: Parameters<typeof P.updateProjectSession>[2]) => Promise<P.ProjectSession>;
|
|
19
21
|
delete: () => Promise<{
|
|
20
22
|
ok: boolean;
|
|
23
|
+
restore_until?: string;
|
|
24
|
+
}>;
|
|
25
|
+
restore: () => Promise<{
|
|
26
|
+
ok: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
recover: () => Promise<{
|
|
29
|
+
ok: true;
|
|
21
30
|
}>;
|
|
22
31
|
start: (options?: (number | {
|
|
23
32
|
waitMs?: number;
|
|
@@ -60,6 +69,8 @@ export declare function bindSessionLifecycleResources(ctx: SessionBindingContext
|
|
|
60
69
|
setWatch: (watching: boolean) => Promise<{
|
|
61
70
|
watching: boolean;
|
|
62
71
|
}>;
|
|
72
|
+
setPinned: (pinned: boolean) => Promise<P.SessionListState>;
|
|
73
|
+
setArchived: (archived: boolean) => Promise<P.SessionListState>;
|
|
63
74
|
commit: (input?: Parameters<typeof P.commitSessionChanges>[2]) => Promise<P.CommitSessionResult>;
|
|
64
75
|
publicShares: {
|
|
65
76
|
list: () => Promise<{
|
|
@@ -10,6 +10,8 @@ export function bindSessionLifecycleResources(ctx) {
|
|
|
10
10
|
ctx.forgetReady();
|
|
11
11
|
return P.deleteProjectSession(ctx.projectId, ctx.sessionId);
|
|
12
12
|
},
|
|
13
|
+
restore: () => P.restoreProjectSession(ctx.projectId, ctx.sessionId),
|
|
14
|
+
recover: () => P.recoverProjectSession(ctx.projectId, ctx.sessionId),
|
|
13
15
|
start: (...a) => P.startProjectSession(ctx.projectId, ctx.sessionId, ...a),
|
|
14
16
|
startOrThrow: (...a) => P.startProjectSessionOrThrow(ctx.projectId, ctx.sessionId, ...a),
|
|
15
17
|
restart: () => {
|
|
@@ -34,6 +36,8 @@ export function bindSessionLifecycleResources(ctx) {
|
|
|
34
36
|
participants: () => P.getSessionParticipants(ctx.projectId, ctx.sessionId),
|
|
35
37
|
watch: () => P.getSessionWatch(ctx.projectId, ctx.sessionId),
|
|
36
38
|
setWatch: (watching) => P.setSessionWatch(ctx.projectId, ctx.sessionId, watching),
|
|
39
|
+
setPinned: (pinned) => P.setSessionPinned(ctx.projectId, ctx.sessionId, pinned),
|
|
40
|
+
setArchived: (archived) => P.setSessionArchived(ctx.projectId, ctx.sessionId, archived),
|
|
37
41
|
commit: (input) => P.commitSessionChanges(ctx.projectId, ctx.sessionId, input),
|
|
38
42
|
publicShares: {
|
|
39
43
|
list: () => P.listSessionPublicShares(ctx.projectId, ctx.sessionId),
|
|
@@ -20,6 +20,7 @@ export declare function bindSessionLifecycleSecurity(ctx: SessionBindingContext)
|
|
|
20
20
|
messageAuthors: () => Promise<P.SessionMessageAuthors>;
|
|
21
21
|
modelUsage: () => Promise<P.SessionModelUsage>;
|
|
22
22
|
transcriptSync: (options?: Parameters<typeof P.getSessionTranscriptSync>[2]) => Promise<P.SessionTranscriptSyncEnvelope>;
|
|
23
|
+
log: (query?: Parameters<typeof P.getSessionLogPage>[2]) => Promise<import("../session-log/index.js").SessionLogPage | null>;
|
|
23
24
|
turn: () => Promise<P.SessionTurnStatus>;
|
|
24
25
|
prompts: {
|
|
25
26
|
create: (input: P.CreateSessionPromptInput) => Promise<P.CreateSessionPromptResult>;
|
|
@@ -38,5 +39,6 @@ export declare function bindSessionLifecycleSecurity(ctx: SessionBindingContext)
|
|
|
38
39
|
};
|
|
39
40
|
ensureReady: (opts?: {
|
|
40
41
|
readyTimeoutMs?: number;
|
|
42
|
+
session?: P.ProjectSession;
|
|
41
43
|
}) => Promise<import("../../index.js").SessionRuntimeEntry>;
|
|
42
44
|
};
|
|
@@ -16,6 +16,7 @@ export function bindSessionLifecycleSecurity(ctx) {
|
|
|
16
16
|
messageAuthors: () => P.getSessionMessageAuthors(ctx.projectId, ctx.sessionId),
|
|
17
17
|
modelUsage: () => P.getSessionModelUsage(ctx.projectId, ctx.sessionId),
|
|
18
18
|
transcriptSync: (options) => P.getSessionTranscriptSync(ctx.projectId, ctx.sessionId, options),
|
|
19
|
+
log: (query) => P.getSessionLogPage(ctx.projectId, ctx.sessionId, query),
|
|
19
20
|
turn: () => P.getSessionTurn(ctx.projectId, ctx.sessionId),
|
|
20
21
|
prompts: {
|
|
21
22
|
create: (input) => P.createSessionPrompt(ctx.projectId, ctx.sessionId, input),
|