@sentry/junior 0.286.0 → 0.288.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/dist/{adapter-JQZaJ-B_.js → adapter-Cikcqdty.js} +1 -1
- package/dist/{admin-Dm2bimJ-.js → admin-BcSxHuTB.js} +2 -1
- package/dist/{agent-runner-DGCwOEyL.js → agent-runner-9MXyWUL8.js} +784 -368
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +9 -8
- package/dist/api.d.ts +1 -1
- package/dist/api.js +411 -65
- package/dist/{app-BKq0JzWx.d.ts → app-BUklJVBe.d.ts} +4 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +555 -71
- package/dist/{assistant-reply-CAPafcUY.js → assistant-reply-mj47jMRV.js} +1 -1
- package/dist/{automation-B-jJN_gM.js → automation-DDXwHQs5.js} +4 -7
- package/dist/{background-compaction-queue-Btu2oab_.js → background-compaction-queue-CjllSPir.js} +161 -90
- package/dist/{briefs-UMeYehUe.js → briefs-DW9iuolG.js} +7 -5
- package/dist/{catalog-runtime-Bym8GVdh.js → catalog-runtime-B3gfH58M.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/config-CLJcyYEF.js +1762 -0
- package/dist/{connections-CQ7p0aNJ.js → connections-BtdJftow.js} +9 -9
- package/dist/{conversation-BusI2uzj.js → conversation-DhoqHtQ7.js} +30 -6
- package/dist/{conversation-pending-messages-DwehU0Fd.js → conversation-pending-messages-DHV0S4uF.js} +2 -5
- package/dist/{conversation-privacy-Cd_nZZBM.js → conversation-privacy-BPirIVlX.js} +1 -1
- package/dist/core-model-BTt5E5b0.js +182 -0
- package/dist/{credential-sync-DmiJi_At.js → credential-sync-Co8Q2xRW.js} +28 -20
- package/dist/{viewer-CH-ASQzh.js → db-Co7DTYYh.js} +62 -358
- package/dist/{db-C5zi4ecs.d.ts → db-zIs8-Ba3.d.ts} +6 -2
- package/dist/{executor-Dipi2Ixl.js → executor-m0kIN71Q.js} +102 -14
- package/dist/{media-B-BpXo41.js → history-IjdmO_r6.js} +8 -88
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CMFhLLj4.js → logging-DbD-dErY.js} +3 -2
- package/dist/media-BAHvgkok.js +85 -0
- package/dist/{message-D1xLljUF.js → message-DKTdTYm-.js} +10 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +19 -41
- package/dist/{oauth-callback-server-DCAFIUQr.js → oauth-callback-server-CpbepSbp.js} +2 -2
- package/dist/{projection-CoeMNxJ4.js → projection-BViECfYu.js} +361 -746
- package/dist/{prompt-C9OQEfan.js → prompt-KT6MaDHN.js} +1 -1
- package/dist/{registry-u-sFYtx_.js → registry-D-Acyjhh.js} +1 -1
- package/dist/{reporting-window-B4TwyuJo.js → reporting-window-B3Ze-Qnt.js} +4 -1
- package/dist/{resolve-DYqgL3Eo.js → resolve-gkT2R66z.js} +3 -3
- package/dist/{result-CescSwAw.js → result-DHmCFEt8.js} +8 -8
- package/dist/{runner-Cr67a8TB.js → runner-DBKjGjH-.js} +8 -8
- package/dist/{sandbox-egress-signals-DLOazy5W.js → sandbox-egress-signals-9n8hqx29.js} +1 -1
- package/dist/{schedule-BTp__wrw.js → schedule-cP0AACm1.js} +11 -2
- package/dist/{schema-Ih60j59-.d.ts → schema-B_6aOcx5.d.ts} +159 -3
- package/dist/{schema-BUSi3sgv.js → schema-DxicIQbc.js} +79 -14
- package/dist/{service-account-CsKxktLk.js → service-account-Bi0HsY6w.js} +3 -3
- package/dist/{service-account-CGEqz9wG.js → service-account-CDlC9ssy.js} +3 -3
- package/dist/{session-stop-CGz5DByb.js → session-stop-BWOsuo8p.js} +62 -20
- package/dist/{skills-COCqf61f.js → skills-DO5K68Rq.js} +2 -2
- package/dist/spawn-BBqZDcPa.js +79 -0
- package/dist/{stop-GyFZkHuQ.js → stop-WC97cmHz.js} +832 -552
- package/dist/{store-D0-8plWp.js → store-ByR1Lr7e.js} +4 -16
- package/dist/{task-runner-xPuQmEot.js → task-runner-B-Ewf8TX.js} +30 -21
- package/dist/{turn-failure-response-BOviBdT-.js → turn-failure-response-CpdPoZSl.js} +25 -11
- package/dist/{validation-DZDKorGz.js → validation-B4sbIoES.js} +1 -1
- package/dist/{version-BTIz7fGi.js → version-D6lpuAgL.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/viewer-CeP27tC3.js +337 -0
- package/dist/warmup-P_GJCL1c.js +767 -0
- package/dist/{work-C75_IM5e.js → work-DI7x1Slm.js} +32 -20
- package/dist/{worker-Dl47I729.js → worker-CYPTOT4j.js} +6 -7
- package/migrations/0088_conversation_unsubscribe.sql +1 -0
- package/migrations/0089_conversation_paused_status.sql +3 -0
- package/migrations/0090_guardian_review_time_index.sql +20 -0
- package/migrations/meta/0088_snapshot.json +4372 -0
- package/migrations/meta/0089_snapshot.json +4372 -0
- package/migrations/meta/0090_snapshot.json +4388 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +5 -4
- package/dist/client-B0aAs7wC.js +0 -793
- package/dist/config-B9f9Lqo5.js +0 -579
- package/dist/spawn-C8F_iXWO.js +0 -42
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as briefOutcomeStatusSchema, X as conversationBriefSchema, Z as parseBriefInput } from "./conversation-DhoqHtQ7.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/chat/briefs/generate.ts
|
|
4
4
|
const MAX_INPUT_CHARS = 6e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-
|
|
1
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DbD-dErY.js";
|
|
2
2
|
import { o as isUserActor, s as parseActorUserId } from "./actor-6jsm_v96.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJhGdS4c.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -160,6 +160,9 @@ function formatUserInputAnswer(request, answer) {
|
|
|
160
160
|
if (normalized.other) lines.push(answerLine(`Other: ${normalized.other}`));
|
|
161
161
|
return lines.join("\n");
|
|
162
162
|
}
|
|
163
|
+
// src/api/schema/common.ts
|
|
164
|
+
/** Stable error body returned by Junior-owned REST endpoints. */
|
|
165
|
+
const apiErrorSchema = z.object({ error: z.string().min(1) }).strict();
|
|
163
166
|
// src/chat/conversations/web-message-id.ts
|
|
164
167
|
/**
|
|
165
168
|
* Build the retry-stable Message id shared by web ingress and browser sends.
|
|
@@ -292,4 +295,4 @@ function sumUtcHoursIntoSixHours(args) {
|
|
|
292
295
|
rows: bySix
|
|
293
296
|
});
|
|
294
297
|
}
|
|
295
|
-
export {
|
|
298
|
+
export { AGENT_INVOCATION_PARENT_MAILBOX_STATUSES as C, userCustomizationTextSchema as D, userCustomizationSchema as E, AGENT_INVOCATION_MAILBOX_STATUSES as S, USER_CUSTOMIZATION_MAX_CHARS as T, buttonUserInputField as _, fillUtcSixHours as a, normalizeUserInputAnswer as b, trailingUtcDayWindow as c, utcDayKey as d, utcHourKey as f, USER_INPUT_NOTE as g, USER_INPUT_LIMITS as h, fillUtcHours as i, trailingUtcHourWindow as l, apiErrorSchema as m, HOUR_MS as n, startOfUtcHour as o, webMessageId as p, fillUtcDays as r, sumUtcHoursIntoSixHours as s, DAY_MS as t, trailingUtcSixHourWindow as u, formatUserInputAnswer as v, AGENT_INVOCATION_STATUSES as w, userInputRequestSchema as x, isEmptyUserInputAnswer as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
3
|
-
import { r as getStateAdapter } from "./adapter-
|
|
1
|
+
import { Ci as isStale, Oa as sleep, Pa as SANDBOX_COMMAND_PATH, Ra as SANDBOX_WORKSPACE_ROOT, Ti as getSandboxProvider, Wa as runNonInteractiveCommand, xi as create } from "./projection-BViECfYu.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-DbD-dErY.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-Cikcqdty.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { C as isTerminalAgentInvocation, G as
|
|
7
|
-
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs } from "./session-stop-
|
|
8
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
9
|
-
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-
|
|
2
|
+
import { wn as renderUntrustedTag } from "./projection-BViECfYu.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID } from "./db-Co7DTYYh.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-D-Acyjhh.js";
|
|
5
|
+
import { Yt as listUnreportedSiblingAgents } from "./agent-runner-9MXyWUL8.js";
|
|
6
|
+
import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-CpdPoZSl.js";
|
|
7
|
+
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs } from "./session-stop-BWOsuo8p.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-ByR1Lr7e.js";
|
|
9
|
+
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-DI7x1Slm.js";
|
|
10
10
|
import { n as isAgentInvocationResultEventType, t as agentInvocationResultEventType } from "./result-event-type-DD6BAgT7.js";
|
|
11
11
|
// src/chat/agent-invocations/result.ts
|
|
12
12
|
var result_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { dt as
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { _t as getPersistedThreadState, bt as coerceThreadConversationState, gt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, t as processPluginTask, yt as persistThreadStateById } from "./task-runner-
|
|
1
|
+
import { $t as persistWithRetry, G as authorizationId, L as upsertConversationMessage, M as markConversationMessage, N as normalizeConversationText, P as recordDeliveredAssistantMessage, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as latestConversationMessageSeq, rt as saveTurnCheckpoint, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-BViECfYu.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-DbD-dErY.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-Co7DTYYh.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-D-Acyjhh.js";
|
|
5
|
+
import { L as messageCardText } from "./conversation-DhoqHtQ7.js";
|
|
6
|
+
import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-CpdPoZSl.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-mj47jMRV.js";
|
|
8
|
+
import { _t as getPersistedThreadState, bt as coerceThreadConversationState, gt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, t as processPluginTask, yt as persistThreadStateById } from "./task-runner-B-Ewf8TX.js";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
11
11
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ca as sandboxEgressSignalsResponseSchema } from "./projection-BViECfYu.js";
|
|
2
2
|
// src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -263,7 +263,12 @@ function getNextRunAtMs(task, scheduledForMs, afterMs = scheduledForMs) {
|
|
|
263
263
|
const clockTimePattern = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
264
264
|
/** Saved notification hours. Weekdays use 0 for Sunday, like `Date#getDay`. */
|
|
265
265
|
const notificationScheduleSchema = z.object({
|
|
266
|
-
/**
|
|
266
|
+
/**
|
|
267
|
+
* Follow the linked Slack user's notification schedule. The fields below
|
|
268
|
+
* apply only when Junior cannot read it. Absent means on.
|
|
269
|
+
*/
|
|
270
|
+
followSlack: z.boolean().optional(),
|
|
271
|
+
/** When false, Junior sends push notifications at any time. */
|
|
267
272
|
workingHoursOnly: z.boolean(),
|
|
268
273
|
days: z.array(z.number().int().min(0).max(6)).max(7).refine((days) => new Set(days).size === days.length, { message: "Days must be unique." }),
|
|
269
274
|
/** Local start time, `HH:MM`. */
|
|
@@ -276,8 +281,12 @@ const notificationScheduleSchema = z.object({
|
|
|
276
281
|
message: "Start and end must differ.",
|
|
277
282
|
path: ["end"]
|
|
278
283
|
});
|
|
279
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Default when a user has not saved a schedule: follow Slack, else
|
|
286
|
+
* 09:00–18:00, Mon–Fri.
|
|
287
|
+
*/
|
|
280
288
|
const DEFAULT_NOTIFICATION_SCHEDULE = {
|
|
289
|
+
followSlack: true,
|
|
281
290
|
workingHoursOnly: true,
|
|
282
291
|
days: [
|
|
283
292
|
1,
|
|
@@ -152,6 +152,82 @@ declare const messageCardRefSchema: z.ZodObject<{
|
|
|
152
152
|
type MessageCardRef = z.output<typeof messageCardRefSchema>;
|
|
153
153
|
/** Resolve current saved facts without fetching providers or changing history. */
|
|
154
154
|
declare function resolveMessageCards(refs: readonly MessageCardRef[], annotations: readonly ConversationAnnotation[]): OwnedObjectAnnotation[];
|
|
155
|
+
declare const boardColumnSchema: z.ZodEnum<{
|
|
156
|
+
done: "done";
|
|
157
|
+
in_progress: "in_progress";
|
|
158
|
+
planned: "planned";
|
|
159
|
+
ready: "ready";
|
|
160
|
+
}>;
|
|
161
|
+
declare const boardCardSchema: z.ZodObject<{
|
|
162
|
+
key: z.ZodString;
|
|
163
|
+
column: z.ZodEnum<{
|
|
164
|
+
done: "done";
|
|
165
|
+
in_progress: "in_progress";
|
|
166
|
+
planned: "planned";
|
|
167
|
+
ready: "ready";
|
|
168
|
+
}>;
|
|
169
|
+
objectType: z.ZodEnum<{
|
|
170
|
+
code_change: "code_change";
|
|
171
|
+
task: "task";
|
|
172
|
+
}>;
|
|
173
|
+
title: z.ZodString;
|
|
174
|
+
label: z.ZodString;
|
|
175
|
+
url: z.ZodOptional<z.ZodString>;
|
|
176
|
+
status: z.ZodString;
|
|
177
|
+
updatedAt: z.ZodString;
|
|
178
|
+
conversation: z.ZodObject<{
|
|
179
|
+
conversationId: z.ZodString;
|
|
180
|
+
title: z.ZodOptional<z.ZodString>;
|
|
181
|
+
rootTitle: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strict>;
|
|
183
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
184
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
185
|
+
email: z.ZodOptional<z.ZodString>;
|
|
186
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
187
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
188
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strict>>;
|
|
190
|
+
working: z.ZodBoolean;
|
|
191
|
+
needsViewer: z.ZodBoolean;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
declare const boardReportSchema: z.ZodObject<{
|
|
194
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
195
|
+
key: z.ZodString;
|
|
196
|
+
column: z.ZodEnum<{
|
|
197
|
+
done: "done";
|
|
198
|
+
in_progress: "in_progress";
|
|
199
|
+
planned: "planned";
|
|
200
|
+
ready: "ready";
|
|
201
|
+
}>;
|
|
202
|
+
objectType: z.ZodEnum<{
|
|
203
|
+
code_change: "code_change";
|
|
204
|
+
task: "task";
|
|
205
|
+
}>;
|
|
206
|
+
title: z.ZodString;
|
|
207
|
+
label: z.ZodString;
|
|
208
|
+
url: z.ZodOptional<z.ZodString>;
|
|
209
|
+
status: z.ZodString;
|
|
210
|
+
updatedAt: z.ZodString;
|
|
211
|
+
conversation: z.ZodObject<{
|
|
212
|
+
conversationId: z.ZodString;
|
|
213
|
+
title: z.ZodOptional<z.ZodString>;
|
|
214
|
+
rootTitle: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
217
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
218
|
+
email: z.ZodOptional<z.ZodString>;
|
|
219
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
220
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
221
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strict>>;
|
|
223
|
+
working: z.ZodBoolean;
|
|
224
|
+
needsViewer: z.ZodBoolean;
|
|
225
|
+
}, z.core.$strict>>;
|
|
226
|
+
doneWindowHours: z.ZodNumber;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
type BoardColumn = z.output<typeof boardColumnSchema>;
|
|
229
|
+
type BoardCard = z.output<typeof boardCardSchema>;
|
|
230
|
+
type BoardReport = z.output<typeof boardReportSchema>;
|
|
155
231
|
declare const dailyConversationActivitySchema: z.ZodObject<{
|
|
156
232
|
active: z.ZodNumber;
|
|
157
233
|
conversations: z.ZodNumber;
|
|
@@ -539,6 +615,7 @@ declare const createConversationBodySchema: z.ZodObject<{
|
|
|
539
615
|
}>;
|
|
540
616
|
data: z.ZodString;
|
|
541
617
|
}, z.core.$strict>>>;
|
|
618
|
+
title: z.ZodOptional<z.ZodString>;
|
|
542
619
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
543
620
|
private: "private";
|
|
544
621
|
public: "public";
|
|
@@ -1074,6 +1151,10 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
1074
1151
|
startedSeq: z.ZodNumber;
|
|
1075
1152
|
startedAt: z.ZodString;
|
|
1076
1153
|
childConversationId: z.ZodString;
|
|
1154
|
+
childKind: z.ZodEnum<{
|
|
1155
|
+
task: "task";
|
|
1156
|
+
thread: "thread";
|
|
1157
|
+
}>;
|
|
1077
1158
|
subagentKind: z.ZodString;
|
|
1078
1159
|
agentName: z.ZodOptional<z.ZodString>;
|
|
1079
1160
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -1325,6 +1406,10 @@ declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
1325
1406
|
startedSeq: z.ZodNumber;
|
|
1326
1407
|
startedAt: z.ZodString;
|
|
1327
1408
|
childConversationId: z.ZodString;
|
|
1409
|
+
childKind: z.ZodEnum<{
|
|
1410
|
+
task: "task";
|
|
1411
|
+
thread: "thread";
|
|
1412
|
+
}>;
|
|
1328
1413
|
subagentKind: z.ZodString;
|
|
1329
1414
|
agentName: z.ZodOptional<z.ZodString>;
|
|
1330
1415
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -1656,6 +1741,10 @@ declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
1656
1741
|
startedSeq: z.ZodNumber;
|
|
1657
1742
|
startedAt: z.ZodString;
|
|
1658
1743
|
childConversationId: z.ZodString;
|
|
1744
|
+
childKind: z.ZodEnum<{
|
|
1745
|
+
task: "task";
|
|
1746
|
+
thread: "thread";
|
|
1747
|
+
}>;
|
|
1659
1748
|
subagentKind: z.ZodString;
|
|
1660
1749
|
agentName: z.ZodOptional<z.ZodString>;
|
|
1661
1750
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -1961,6 +2050,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1961
2050
|
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
1962
2051
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
1963
2052
|
canContinueInSlack: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2053
|
+
subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
1964
2054
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
1965
2055
|
lastReadSeq: z.ZodNumber;
|
|
1966
2056
|
}, z.core.$strict>>;
|
|
@@ -2203,6 +2293,10 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2203
2293
|
startedSeq: z.ZodNumber;
|
|
2204
2294
|
startedAt: z.ZodString;
|
|
2205
2295
|
childConversationId: z.ZodString;
|
|
2296
|
+
childKind: z.ZodEnum<{
|
|
2297
|
+
task: "task";
|
|
2298
|
+
thread: "thread";
|
|
2299
|
+
}>;
|
|
2206
2300
|
subagentKind: z.ZodString;
|
|
2207
2301
|
agentName: z.ZodOptional<z.ZodString>;
|
|
2208
2302
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -2605,6 +2699,10 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2605
2699
|
startedSeq: z.ZodNumber;
|
|
2606
2700
|
startedAt: z.ZodString;
|
|
2607
2701
|
childConversationId: z.ZodString;
|
|
2702
|
+
childKind: z.ZodEnum<{
|
|
2703
|
+
task: "task";
|
|
2704
|
+
thread: "thread";
|
|
2705
|
+
}>;
|
|
2608
2706
|
subagentKind: z.ZodString;
|
|
2609
2707
|
agentName: z.ZodOptional<z.ZodString>;
|
|
2610
2708
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -3063,6 +3161,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3063
3161
|
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
3064
3162
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
3065
3163
|
canContinueInSlack: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3164
|
+
subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
3066
3165
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
3067
3166
|
lastReadSeq: z.ZodNumber;
|
|
3068
3167
|
}, z.core.$strict>>;
|
|
@@ -3305,6 +3404,10 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3305
3404
|
startedSeq: z.ZodNumber;
|
|
3306
3405
|
startedAt: z.ZodString;
|
|
3307
3406
|
childConversationId: z.ZodString;
|
|
3407
|
+
childKind: z.ZodEnum<{
|
|
3408
|
+
task: "task";
|
|
3409
|
+
thread: "thread";
|
|
3410
|
+
}>;
|
|
3308
3411
|
subagentKind: z.ZodString;
|
|
3309
3412
|
agentName: z.ZodOptional<z.ZodString>;
|
|
3310
3413
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -3707,6 +3810,10 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3707
3810
|
startedSeq: z.ZodNumber;
|
|
3708
3811
|
startedAt: z.ZodString;
|
|
3709
3812
|
childConversationId: z.ZodString;
|
|
3813
|
+
childKind: z.ZodEnum<{
|
|
3814
|
+
task: "task";
|
|
3815
|
+
thread: "thread";
|
|
3816
|
+
}>;
|
|
3710
3817
|
subagentKind: z.ZodString;
|
|
3711
3818
|
agentName: z.ZodOptional<z.ZodString>;
|
|
3712
3819
|
task: z.ZodOptional<z.ZodString>;
|
|
@@ -4201,6 +4308,21 @@ declare const reorderPinnedConversationsResponseSchema: z.ZodObject<{
|
|
|
4201
4308
|
}, z.core.$strict>;
|
|
4202
4309
|
type ReorderPinnedConversationsBody = z.infer<typeof reorderPinnedConversationsBodySchema>;
|
|
4203
4310
|
type ReorderPinnedConversationsResponse = z.infer<typeof reorderPinnedConversationsResponseSchema>;
|
|
4311
|
+
/** Subscribe to or unsubscribe from one Conversation for the viewer. */
|
|
4312
|
+
declare const conversationSubscriptionBodySchema: z.ZodObject<{
|
|
4313
|
+
subscribed: z.ZodBoolean;
|
|
4314
|
+
}, z.core.$strict>;
|
|
4315
|
+
/**
|
|
4316
|
+
* The viewer's subscription after the change. `archivedAt` is set when the
|
|
4317
|
+
* viewer was the last subscriber, so the unsubscribe archived the
|
|
4318
|
+
* Conversation for everyone.
|
|
4319
|
+
*/
|
|
4320
|
+
declare const conversationSubscriptionResponseSchema: z.ZodObject<{
|
|
4321
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
4322
|
+
subscribed: z.ZodBoolean;
|
|
4323
|
+
}, z.core.$strict>;
|
|
4324
|
+
type ConversationSubscriptionBody = z.infer<typeof conversationSubscriptionBodySchema>;
|
|
4325
|
+
type ConversationSubscriptionResponse = z.infer<typeof conversationSubscriptionResponseSchema>;
|
|
4204
4326
|
/** Mark one Conversation read or unread for the signed-in viewer. */
|
|
4205
4327
|
declare const markConversationUnreadBodySchema: z.ZodObject<{
|
|
4206
4328
|
unread: z.ZodBoolean;
|
|
@@ -4214,6 +4336,30 @@ declare const conversationUnreadSchema: z.ZodObject<{
|
|
|
4214
4336
|
unreadReply: z.ZodBoolean;
|
|
4215
4337
|
}, z.core.$strict>;
|
|
4216
4338
|
type ConversationUnread = z.infer<typeof conversationUnreadSchema>;
|
|
4339
|
+
/**
|
|
4340
|
+
* Longest outline item text. The outline previews each message, so the
|
|
4341
|
+
* server cuts the text and does not send whole messages.
|
|
4342
|
+
*/
|
|
4343
|
+
declare const CONVERSATION_OUTLINE_TEXT_LENGTH = 200;
|
|
4344
|
+
/**
|
|
4345
|
+
* The person messages of a whole Conversation, in seq order. The dashboard
|
|
4346
|
+
* outline uses it to show messages that the transcript did not load. It has
|
|
4347
|
+
* no items when the viewer cannot see the transcript.
|
|
4348
|
+
*/
|
|
4349
|
+
declare const conversationOutlineSchema: z.ZodObject<{
|
|
4350
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4351
|
+
seq: z.ZodNumber;
|
|
4352
|
+
text: z.ZodString;
|
|
4353
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4354
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
4355
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4356
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
4357
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
4358
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
4359
|
+
}, z.core.$strict>>>;
|
|
4360
|
+
}, z.core.$strict>>;
|
|
4361
|
+
}, z.core.$strict>;
|
|
4362
|
+
type ConversationOutline = z.infer<typeof conversationOutlineSchema>;
|
|
4217
4363
|
/** Longest Conversation title that a rename can save. */
|
|
4218
4364
|
declare const CONVERSATION_TITLE_MAX_LENGTH = 200;
|
|
4219
4365
|
/** A participant's new title for one Conversation. Every viewer sees it. */
|
|
@@ -5334,6 +5480,7 @@ declare const disconnectConnectionResponseSchema: z.ZodObject<{
|
|
|
5334
5480
|
}, z.core.$strict>;
|
|
5335
5481
|
/** Saved notification hours. Weekdays use 0 for Sunday, like `Date#getDay`. */
|
|
5336
5482
|
declare const notificationScheduleSchema: z.ZodObject<{
|
|
5483
|
+
followSlack: z.ZodOptional<z.ZodBoolean>;
|
|
5337
5484
|
workingHoursOnly: z.ZodBoolean;
|
|
5338
5485
|
days: z.ZodArray<z.ZodNumber>;
|
|
5339
5486
|
start: z.ZodString;
|
|
@@ -5341,17 +5488,21 @@ declare const notificationScheduleSchema: z.ZodObject<{
|
|
|
5341
5488
|
timezone: z.ZodOptional<z.ZodString>;
|
|
5342
5489
|
}, z.core.$strict>;
|
|
5343
5490
|
type NotificationSchedule = z.output<typeof notificationScheduleSchema>;
|
|
5344
|
-
/**
|
|
5491
|
+
/**
|
|
5492
|
+
* Default when a user has not saved a schedule: follow Slack, else
|
|
5493
|
+
* 09:00–18:00, Mon–Fri.
|
|
5494
|
+
*/
|
|
5345
5495
|
declare const DEFAULT_NOTIFICATION_SCHEDULE: NotificationSchedule;
|
|
5346
5496
|
/**
|
|
5347
5497
|
* Return whether a notification may be sent now. A window that crosses
|
|
5348
5498
|
* midnight belongs to the day on which it starts.
|
|
5349
5499
|
*/
|
|
5350
5500
|
declare function isWithinNotificationSchedule(schedule: NotificationSchedule, timezone: string, nowMs: number): boolean;
|
|
5351
|
-
/** The viewer's
|
|
5501
|
+
/** The viewer's push notification settings. */
|
|
5352
5502
|
declare const notificationSettingsSchema: z.ZodObject<{
|
|
5353
5503
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
5354
5504
|
schedule: z.ZodObject<{
|
|
5505
|
+
followSlack: z.ZodOptional<z.ZodBoolean>;
|
|
5355
5506
|
workingHoursOnly: z.ZodBoolean;
|
|
5356
5507
|
days: z.ZodArray<z.ZodNumber>;
|
|
5357
5508
|
start: z.ZodString;
|
|
@@ -5365,6 +5516,7 @@ declare const notificationSettingsSchema: z.ZodObject<{
|
|
|
5365
5516
|
saved: "saved";
|
|
5366
5517
|
slack: "slack";
|
|
5367
5518
|
}>;
|
|
5519
|
+
slackPausedNow: z.ZodOptional<z.ZodBoolean>;
|
|
5368
5520
|
deviceCount: z.ZodNumber;
|
|
5369
5521
|
}, z.core.$strict>;
|
|
5370
5522
|
type NotificationSettings = z.output<typeof notificationSettingsSchema>;
|
|
@@ -5437,6 +5589,10 @@ declare const revokePersonalTokenResponseSchema: z.ZodObject<{
|
|
|
5437
5589
|
revoked: z.ZodLiteral<true>;
|
|
5438
5590
|
}, z.core.$strict>;
|
|
5439
5591
|
type PersonalTokenMetadata = z.infer<typeof personalTokenMetadataSchema>;
|
|
5592
|
+
/** Text transcribed from one dictation recording. */
|
|
5593
|
+
declare const transcriptionSchema: z.ZodObject<{
|
|
5594
|
+
text: z.ZodString;
|
|
5595
|
+
}, z.core.$strict>;
|
|
5440
5596
|
/** Longest customization text one user can save. */
|
|
5441
5597
|
declare const USER_CUSTOMIZATION_MAX_CHARS = 1000;
|
|
5442
5598
|
/** Request and response body for the viewer's customization. */
|
|
@@ -7408,4 +7564,4 @@ declare const versionsSchema: z.ZodObject<{
|
|
|
7408
7564
|
spend: z.ZodString;
|
|
7409
7565
|
}, z.core.$strict>;
|
|
7410
7566
|
type Versions = z.output<typeof versionsSchema>;
|
|
7411
|
-
export { automationEventCatalogSchema as $,
|
|
7567
|
+
export { automationEventCatalogSchema as $, codeOverviewReportSchema as $i, PinConversationBody as $n, CONVERSATION_DETAIL_VERSION_HEADER as $r, connectionParamsSchema as $t, skillReportSchema as A, INPUT_IMAGE_TYPES as Aa, conversationEventPageSchema as Ai, ConversationWatchesReport as An, archiveConversationBodySchema as Ar, USER_CUSTOMIZATION_MAX_CHARS as At, AutomationExecutionStatusDay as B, forkConversationBodySchema as Bi, renameConversationBodySchema as Bn, SteerConversationPendingMessagesResponse as Br, disconnectServiceAccountResponseSchema as Bt, pluginOperationalReportFeedSchema as C, webMessageId as Ca, CreateConversationMessageBody as Ci, PersonParams as Cn, ConversationStatsReport as Cr, baselineSnapshotSchema as Ct, pluginSchema as D, MAX_INPUT_IMAGE_BYTES as Da, conversationDetailQuerySchema as Di, personParamsSchema as Dn, ArchiveConversationBody as Dr, workspaceParamsSchema as Dt, pluginPackageContentReportSchema as E, MAX_INPUT_IMAGES as Ea, conversationAuxiliaryCostsSchema as Ei, actorProfileReportSchema as En, conversationStatsReportSchema as Er, workspaceListSchema as Et, statsReportSchema as F, conversationReportEventDataSchema as Fi, conversationChildAgentSchema as Fn, CancelConversationPendingMessagesResponse as Fr, createdPersonalTokenSchema as Ft, AutomationRunWindows as G, CodeChangeSummaryReport as Gi, ConversationUnread as Gn, conversationPendingMessageDeliverySchema as Gr, NotificationSettings as Gt, AutomationListQuery as H, conversationTurnFailureCodeSchema as Hi, CONVERSATION_OUTLINE_TEXT_LENGTH as Hn, cancelConversationPendingMessagesResponseSchema as Hr, serviceAccountParamsSchema as Ht, AutomationEdit as I, conversationReportEventSchema as Ii, conversationChildAgentsReportSchema as In, ConversationPendingMessage as Ir, personalTokenListSchema as It, AutomationUpdate as J, CodeRepositoryReport as Ji, markConversationUnreadBodySchema as Jn, conversationUnchangedDetailWithMailboxSchema as Jr, DEFAULT_NOTIFICATION_SCHEDULE as Jt, AutomationScheduleIntent as K, CodeOverviewReport as Ki, MarkConversationUnreadBody as Kn, conversationPendingMessageSchema as Kr, notificationSettingsSchema as Kt, AutomationExecution as L, conversationSummaryReportSchema as Li, CONVERSATION_TITLE_MAX_LENGTH as Ln, ConversationPendingMessageDelivery as Lr, personalTokenMetadataSchema as Lt, StatReport as M, conversationFeedQuerySchema as Mi, conversationWatchesReportSchema as Mn, archiveDoneConversationsResponseSchema as Mr, transcriptionSchema as Mt, StatsReport as N, conversationFeedSchema as Ni, ConversationChildAgent as Nn, conversationAutoArchiveSchema as Nr, PersonalTokenMetadata as Nt, pluginsSchema as O, MessageAttachment as Oa, conversationDetailReportSchema as Oi, personalSpendReportSchema as On, ArchiveConversationResponse as Or, workspaceRepoSchema as Ot, statSchema as P, conversationParamsSchema as Pi, ConversationChildAgentsReport as Pn, CancelConversationPendingMessagesBody as Pr, createPersonalTokenBodySchema as Pt, automationEditSchema as Q, codeChangeSummarySchema as Qi, conversationSubscriptionResponseSchema as Qn, ActorIdentity as Qr, connectionListSchema as Qt, AutomationExecutionDay as R, createConversationBodySchema as Ri, RenameConversationBody as Rn, ConversationPendingMessagesReport as Rr, personalTokenParamsSchema as Rt, healthReportSchema as S, normalizeUserInputAnswer as Sa, CreateConversationBody as Si, PeopleActivityDayReport as Sn, ConversationStatsItem as Sr, WorkspaceReport as St, pluginPackageContentItemReportSchema as T, InputImage as Ta, conversationActivityPreviewSchema as Ti, actorDirectoryReportSchema as Tn, GuardianStats as Tr, workspaceBodySchema as Tt, AutomationRun as U, conversationTurnFailureReasonSchema as Ui, ConversationOutline as Un, conversationDetailWithMailboxReportSchema as Ur, serviceAccountSchema as Ut, AutomationList as V, forkConversationResponseSchema as Vi, renameConversationResponseSchema as Vn, cancelConversationPendingMessagesBodySchema as Vr, serviceAccountListSchema as Vt, AutomationRunList as W, CodeActivityDay as Wi, conversationOutlineSchema as Wn, conversationPendingAuthorizationSchema as Wr, startServiceAccountSignInResponseSchema as Wt, ListedAutomationVersion as X, codeActivityDaySchema as Xi, ConversationSubscriptionResponse as Xn, steerConversationPendingMessagesResponseSchema as Xr, isWithinNotificationSchedule as Xt, AutomationVersionList as Y, CodeRepositorySummary as Yi, ConversationSubscriptionBody as Yn, steerConversationPendingMessagesBodySchema as Yr, NotificationSchedule as Yt, automationEditErrorSchema as Z, codeChangeSummaryReportSchema as Zi, conversationSubscriptionBodySchema as Zn, AcceptedConversationMessage as Zr, notificationScheduleSchema as Zt, PluginPackageContentReport as _, UserInputAnswer as _a, ConversationSummaryReport as _i, ActorDirectoryWindows as _n, continueConversationInSlackBodySchema as _r, automationVersionSchema as _t, ReviewItemPayload as a, conversationChildAgentTotalsSchema as aa, ConversationDetailReport as ai, LocationActivityDayReport as an, reorderPinnedConversationsBodySchema as ar, automationListSchema as at, SkillReport as b, buttonUserInputField as ba, ConversationTurnFailureReason as bi, ActorTotalsReport as bn, stopConversationTurnResponseSchema as br, BaselineSnapshotReport as bt, reviewItemListSchema as c, BoardCard as ca, ConversationFeed as ci, LocationDirectoryReport as cn, ConversationCatchUpBody as cr, automationRunSchema as ct, ReviewItemChangeRecord as d, boardReportSchema as da, ConversationParams as di, locationActivityDayReportSchema as dn, ConversationReadPosition as dr, automationSchedulePreviewSchema as dt, codePersonReportSchema as ea, CONVERSATION_VERSION_HEADER as ei, connectionSchema as en, PinConversationResponse as er, automationExecutionListSchema as et, HealthReport as f, MessageCard as fa, ConversationReportEvent as fi, locationDetailReportSchema as fn, ConversationReadReport as fr, automationSummarySchema as ft, PluginPackageContentItemReport as g, USER_INPUT_NOTE as ga, ConversationSourceTask as gi, ActorDirectoryReport as gn, ContinueConversationInSlackResponse as gr, automationVersionParamsSchema as gt, PluginOperationalReportFeed as h, AutomationCard as ha, ConversationReportStatus as hi, ActorActivityDayReport as hn, ContinueConversationInSlackBody as hr, automationVersionListSchema as ht, ReviewItemActionBody as i, ConversationChildAgentTotals as ia, ConversationCost as ii, apiErrorSchema as in, pinConversationResponseSchema as ir, automationListQuerySchema as it, skillReportsSchema as j, conversationEventsQuerySchema as ji, conversationWatchSchema as jn, archiveConversationResponseSchema as jr, userCustomizationSchema as jt, runtimeInfoReportSchema as k, INLINE_VIDEO_TYPES as ka, conversationEventHistorySchema as ki, ConversationWatch as kn, ConversationAutoArchive as kr, workspaceSchema as kt, reviewItemSchema as l, BoardColumn as la, ConversationFeedItem as li, LocationParams as ln, conversationCatchUpBodySchema as lr, automationRunWindowsSchema as lt, PluginOperationalReport as m, resolveMessageCards as ma, ConversationReportMessageEvent as mi, locationParamsSchema as mn, conversationReadReportSchema as mr, automationVersionActivateSchema as mt, Versions as n, codeRepositoryReportSchema as na, ConversationAgentTreeNode as ni, startConnectionResponseSchema as nn, ReorderPinnedConversationsResponse as nr, automationExecutionStatusDaySchema as nt, reviewItemActionSchema as o, DailyConversationActivity as oa, ConversationEventHistory as oi, LocationActorSummaryReport as on, reorderPinnedConversationsResponseSchema as or, automationParamsSchema as ot, Plugin as p, messageCardText as pa, ConversationReportEventData as pi, locationDirectoryReportSchema as pn, conversationReadPositionSchema as pr, automationUpdateSchema as pt, AutomationSummary as q, CodePersonReport as qi, conversationUnreadSchema as qn, conversationPendingMessagesReportSchema as qr, testNotificationResponseSchema as qt, versionsSchema as r, codeRepositorySummarySchema as ra, ConversationAuxiliaryCosts as ri, ApiError as rn, pinConversationBodySchema as rr, automationExecutionStatusSchema as rt, reviewItemCountSchema as s, dailyConversationActivitySchema as sa, ConversationEventPage as si, LocationDetailReport as sn, ConversationCatchUp as sr, automationRunListSchema as st, OwnedObjectAnnotation$1 as t, codeRepositoryParamsSchema as ta, ConversationActivityPreview as ti, disconnectConnectionResponseSchema as tn, ReorderPinnedConversationsBody as tr, automationExecutionSchema as tt, reviewItemWaitingConversationsSchema as u, BoardReport as ua, ConversationModelUsage as ui, LocationSummaryReport as un, conversationCatchUpSchema as ur, automationScheduleIntentSchema as ut, Plugins as v, UserInputField as va, ConversationSurface as vi, ActorProfileReport as vn, continueConversationInSlackResponseSchema as vr, eventAutomationSummarySchema as vt, pluginOperationalReportSchema as w, isAgentInvocationResultEventType as wa, acceptedConversationMessageSchema as wi, PersonalSpendReport as wn, GuardianMetricDay as wr, deleteWorkspaceResponseSchema as wt, SkillReports as x, isEmptyUserInputAnswer as xa, ConversationUsage as xi, ActorWindowMetrics as xn, ConversationMetricDay as xr, WorkspaceListReport as xt, RuntimeInfoReport as y, UserInputRequest as ya, ConversationTurnFailureCode as yi, ActorSummaryReport as yn, StopConversationTurnResponse as yr, scheduledAutomationSummarySchema as yt, AutomationExecutionList as z, createConversationMessageBodySchema as zi, RenameConversationResponse as zn, SteerConversationPendingMessagesBody as zr, revokePersonalTokenResponseSchema as zt };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as notificationScheduleSchema } from "./schedule-
|
|
2
|
-
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-
|
|
3
|
-
import {
|
|
4
|
-
import "./automation-
|
|
5
|
-
import "./conversation-pending-messages-
|
|
1
|
+
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
2
|
+
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, U as base64DataSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-DhoqHtQ7.js";
|
|
3
|
+
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, w as AGENT_INVOCATION_STATUSES, x as userInputRequestSchema } from "./reporting-window-B3Ze-Qnt.js";
|
|
4
|
+
import "./automation-DDXwHQs5.js";
|
|
5
|
+
import "./conversation-pending-messages-DHV0S4uF.js";
|
|
6
6
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
@@ -33,6 +33,18 @@ const pinConversationResponseSchema = z.object({ pinnedAt: z.string().datetime()
|
|
|
33
33
|
const reorderPinnedConversationsBodySchema = z.object({ conversationIds: z.array(z.string().min(1)).min(1).max(500).refine((ids) => new Set(ids).size === ids.length, { message: "Each Conversation can appear once." }) }).strict();
|
|
34
34
|
/** The pinned Conversations that got a new place, in order. */
|
|
35
35
|
const reorderPinnedConversationsResponseSchema = z.object({ conversationIds: z.array(z.string()) }).strict();
|
|
36
|
+
// src/api/schema/conversation-subscription.ts
|
|
37
|
+
/** Subscribe to or unsubscribe from one Conversation for the viewer. */
|
|
38
|
+
const conversationSubscriptionBodySchema = z.object({ subscribed: z.boolean() }).strict();
|
|
39
|
+
/**
|
|
40
|
+
* The viewer's subscription after the change. `archivedAt` is set when the
|
|
41
|
+
* viewer was the last subscriber, so the unsubscribe archived the
|
|
42
|
+
* Conversation for everyone.
|
|
43
|
+
*/
|
|
44
|
+
const conversationSubscriptionResponseSchema = z.object({
|
|
45
|
+
archivedAt: z.string().datetime().nullable(),
|
|
46
|
+
subscribed: z.boolean()
|
|
47
|
+
}).strict();
|
|
36
48
|
// src/api/schema/conversation-unread.ts
|
|
37
49
|
/** Mark one Conversation read or unread for the signed-in viewer. */
|
|
38
50
|
const markConversationUnreadBodySchema = z.object({ unread: z.boolean() }).strict();
|
|
@@ -58,13 +70,22 @@ const archiveConversationResponseSchema = z.object({ archivedAt: z.string().date
|
|
|
58
70
|
const conversationAutoArchiveSchema = z.object({ autoArchive: z.boolean() }).strict();
|
|
59
71
|
/** Result of archiving all of the viewer's done conversations once. */
|
|
60
72
|
const archiveDoneConversationsResponseSchema = z.object({ archived: z.number().int().nonnegative() }).strict();
|
|
61
|
-
// src/api/schema/conversation-
|
|
62
|
-
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
73
|
+
// src/api/schema/conversation-outline.ts
|
|
74
|
+
/**
|
|
75
|
+
* Longest outline item text. The outline previews each message, so the
|
|
76
|
+
* server cuts the text and does not send whole messages.
|
|
77
|
+
*/
|
|
78
|
+
const CONVERSATION_OUTLINE_TEXT_LENGTH = 200;
|
|
79
|
+
/**
|
|
80
|
+
* The person messages of a whole Conversation, in seq order. The dashboard
|
|
81
|
+
* outline uses it to show messages that the transcript did not load. It has
|
|
82
|
+
* no items when the viewer cannot see the transcript.
|
|
83
|
+
*/
|
|
84
|
+
const conversationOutlineSchema = z.object({ items: z.array(z.object({
|
|
85
|
+
seq: z.number().int().nonnegative(),
|
|
86
|
+
text: z.string().min(1),
|
|
87
|
+
mentions: z.array(actorIdentitySchema).optional()
|
|
88
|
+
}).strict()) }).strict();
|
|
68
89
|
// src/api/schema/conversation-stats.ts
|
|
69
90
|
const conversationStatsItemSchema = z.object({
|
|
70
91
|
active: z.number(),
|
|
@@ -237,6 +258,41 @@ const conversationWatchesReportSchema = z.object({
|
|
|
237
258
|
conversationId: z.string().min(1),
|
|
238
259
|
watches: z.array(conversationWatchSchema)
|
|
239
260
|
}).strict();
|
|
261
|
+
// src/api/schema/board.ts
|
|
262
|
+
const boardColumnSchema = z.enum([
|
|
263
|
+
"planned",
|
|
264
|
+
"in_progress",
|
|
265
|
+
"ready",
|
|
266
|
+
"done"
|
|
267
|
+
]);
|
|
268
|
+
const boardCardSchema = z.object({
|
|
269
|
+
/** Stable card id. One object gives one card. */
|
|
270
|
+
key: z.string().min(1),
|
|
271
|
+
column: boardColumnSchema,
|
|
272
|
+
objectType: z.enum(["task", "code_change"]),
|
|
273
|
+
title: z.string().min(1),
|
|
274
|
+
/** Short object reference, such as `getsentry/junior#42`. */
|
|
275
|
+
label: z.string().min(1),
|
|
276
|
+
url: z.string().url().optional(),
|
|
277
|
+
status: z.string().min(1),
|
|
278
|
+
/** When the card last changed. A Done card uses its finish time. */
|
|
279
|
+
updatedAt: z.string(),
|
|
280
|
+
conversation: z.object({
|
|
281
|
+
conversationId: z.string().min(1),
|
|
282
|
+
title: z.string().optional(),
|
|
283
|
+
/** Root title when the card comes from a Thread. */
|
|
284
|
+
rootTitle: z.string().optional()
|
|
285
|
+
}).strict(),
|
|
286
|
+
participants: z.array(actorIdentitySchema),
|
|
287
|
+
/** A Turn runs in the Conversation of the card or in one of its Tasks. */
|
|
288
|
+
working: z.boolean(),
|
|
289
|
+
/** The Conversation has an open review item that needs the viewer. */
|
|
290
|
+
needsViewer: z.boolean()
|
|
291
|
+
}).strict();
|
|
292
|
+
const boardReportSchema = z.object({
|
|
293
|
+
cards: z.array(boardCardSchema),
|
|
294
|
+
doneWindowHours: z.number().int().positive()
|
|
295
|
+
}).strict();
|
|
240
296
|
// src/api/schema/code.ts
|
|
241
297
|
const codeChangeSummarySchema = z.object({
|
|
242
298
|
closed: z.number().int().nonnegative(),
|
|
@@ -346,7 +402,7 @@ const notificationTimezoneSourceSchema = z.enum([
|
|
|
346
402
|
"saved",
|
|
347
403
|
"default"
|
|
348
404
|
]);
|
|
349
|
-
/** The viewer's
|
|
405
|
+
/** The viewer's push notification settings. */
|
|
350
406
|
const notificationSettingsSchema = z.object({
|
|
351
407
|
/** Server VAPID public key. Absent when Web Push is not configured. */
|
|
352
408
|
publicKey: z.string().min(1).optional(),
|
|
@@ -354,6 +410,11 @@ const notificationSettingsSchema = z.object({
|
|
|
354
410
|
/** Timezone that Junior uses for the schedule now. */
|
|
355
411
|
timezone: z.string().min(1),
|
|
356
412
|
timezoneSource: notificationTimezoneSourceSchema,
|
|
413
|
+
/**
|
|
414
|
+
* Whether the viewer's Slack notification schedule pauses notifications
|
|
415
|
+
* now. Absent when Junior cannot read it.
|
|
416
|
+
*/
|
|
417
|
+
slackPausedNow: z.boolean().optional(),
|
|
357
418
|
/** Number of browsers that receive the viewer's notifications. */
|
|
358
419
|
deviceCount: z.number().int().nonnegative()
|
|
359
420
|
}).strict();
|
|
@@ -580,6 +641,10 @@ const serviceAccountListSchema = z.object({ serviceAccounts: z.array(serviceAcco
|
|
|
580
641
|
const serviceAccountParamsSchema = z.object({ provider: z.string().regex(/^[a-z][a-z0-9-]*$/).max(64) }).strict();
|
|
581
642
|
const startServiceAccountSignInResponseSchema = z.object({ authorizationUrl: z.string().url() }).strict();
|
|
582
643
|
const disconnectServiceAccountResponseSchema = z.object({ disconnected: z.literal(true) }).strict();
|
|
644
|
+
/** One dictation recording. The model reads the audio format from the bytes. */
|
|
645
|
+
const transcriptionRequestSchema = z.object({ audio: base64DataSchema(3145728) }).strict();
|
|
646
|
+
/** Text transcribed from one dictation recording. */
|
|
647
|
+
const transcriptionSchema = z.object({ text: z.string() }).strict();
|
|
583
648
|
// src/api/schema/review-item.ts
|
|
584
649
|
const answerSchema = z.object({
|
|
585
650
|
other: z.string().max(4e3).optional(),
|
|
@@ -768,4 +833,4 @@ const versionsSchema = z.object({
|
|
|
768
833
|
/** The viewer's rolling model spend. */
|
|
769
834
|
spend: z.string().min(1)
|
|
770
835
|
}).strict();
|
|
771
|
-
export {
|
|
836
|
+
export { startConnectionResponseSchema as $, personalTokenParamsSchema as A, reorderPinnedConversationsResponseSchema as At, locationParamsSchema as B, serviceAccountParamsSchema as C, conversationUnreadSchema as Ct, createdPersonalTokenSchema as D, pinConversationBodySchema as Dt, createPersonalTokenBodySchema as E, conversationSubscriptionResponseSchema as Et, personParamsSchema as F, notificationSettingsSchema as G, activityHours as H, personalSpendReportSchema as I, testNotificationResponseSchema as J, pushSubscriptionBodySchema as K, locationActivityDayReportSchema as L, actorDirectoryReportSchema as M, conversationCatchUpSchema as Mt, actorProfileReportSchema as N, personalTokenListSchema as O, pinConversationResponseSchema as Ot, avatarParamsSchema as P, disconnectConnectionResponseSchema as Q, locationDetailReportSchema as R, serviceAccountListSchema as S, conversationAutoArchiveSchema as St, startServiceAccountSignInResponseSchema as T, conversationSubscriptionBodySchema as Tt, activitySixHours as U, activityDays as V, dailyConversationActivitySchema as W, connectionParamsSchema as X, connectionListSchema as Y, connectionSchema as Z, reviewItemSchema as _, CONVERSATION_OUTLINE_TEXT_LENGTH as _t, baselineSnapshotSchema as a, codeRepositoryParamsSchema as at, transcriptionSchema as b, archiveConversationResponseSchema as bt, workspaceListSchema as c, boardReportSchema as ct, workspaceSchema as d, conversationChildAgentSchema as dt, codeActivityDaySchema as et, reviewItemActionSchema as f, conversationChildAgentsReportSchema as ft, reviewItemParamsSchema as g, conversationStatsReportSchema as gt, reviewItemListSchema as h, stopConversationTurnResponseSchema as ht, statsReportSchema as i, codePersonReportSchema as it, revokePersonalTokenResponseSchema as j, conversationCatchUpBodySchema as jt, personalTokenMetadataSchema as k, reorderPinnedConversationsBodySchema as kt, workspaceParamsSchema as l, conversationWatchSchema as lt, reviewItemListQuerySchema as m, continueConversationInSlackResponseSchema as mt, versionsSchema as n, codeChangeSummarySchema as nt, deleteWorkspaceResponseSchema as o, codeRepositoryReportSchema as ot, reviewItemCountSchema as p, continueConversationInSlackBodySchema as pt, pushSubscriptionDeleteBodySchema as q, statSchema as r, codeOverviewReportSchema as rt, workspaceBodySchema as s, codeRepositorySummarySchema as st, versionsQuerySchema as t, codeChangeSummaryReportSchema as tt, workspaceRepoSchema as u, conversationWatchesReportSchema as ut, reviewItemWaitingConversationsSchema as v, conversationOutlineSchema as vt, serviceAccountSchema as w, markConversationUnreadBodySchema as wt, disconnectServiceAccountResponseSchema as x, archiveDoneConversationsResponseSchema as xt, transcriptionRequestSchema as y, archiveConversationBodySchema as yt, locationDirectoryReportSchema as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
-
import { t as disconnectStateAdapter } from "./adapter-
|
|
3
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
1
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-B3gfH58M.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-Cikcqdty.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CDlC9ssy.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|