openmeld 0.3.210 → 0.3.212
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/{add-me-membership-BgDujS4W.js → add-me-membership-BwPpVKtA.js} +2 -2
- package/dist/{add-me-membership-BgDujS4W.js.map → add-me-membership-BwPpVKtA.js.map} +1 -1
- package/dist/agents-Y-UJ74By.js +4153 -0
- package/dist/agents-Y-UJ74By.js.map +1 -0
- package/dist/{api-client-foundation--H_ib5Vh.js → api-client-foundation-CrQN8_-N.js} +1 -1
- package/dist/{api-client-foundation-CQsXMqnr.js → api-client-foundation-DjbtuE52.js} +3 -3
- package/dist/{api-client-foundation-CQsXMqnr.js.map → api-client-foundation-DjbtuE52.js.map} +1 -1
- package/dist/{auth-session-CVxflepT.js → auth-session-Dqz9X4F0.js} +42 -21
- package/dist/auth-session-Dqz9X4F0.js.map +1 -0
- package/dist/auth-session-bRzDGlXy.js +4 -0
- package/dist/{command-DNIZzJuu.js → command-jgHbP21v.js} +10 -9
- package/dist/{command-DNIZzJuu.js.map → command-jgHbP21v.js.map} +1 -1
- package/dist/{computer-connection-TgsnU0K9.js → computer-connection-DvqsgYls.js} +30 -3
- package/dist/computer-connection-DvqsgYls.js.map +1 -0
- package/dist/{computer-connection-review-DqJTijzX.js → computer-connection-review-CzSpaHE0.js} +6 -6
- package/dist/{computer-connection-review-DqJTijzX.js.map → computer-connection-review-CzSpaHE0.js.map} +1 -1
- package/dist/computer-disconnect-DNM7jvda.js +47 -0
- package/dist/computer-disconnect-DNM7jvda.js.map +1 -0
- package/dist/{computer-setup-continuation-DFUxl9kf.js → computer-setup-continuation-BqdhIAjT.js} +4 -4
- package/dist/{computer-setup-continuation-DFUxl9kf.js.map → computer-setup-continuation-BqdhIAjT.js.map} +1 -1
- package/dist/{control-plane-D9jDcbMZ.js → control-plane-PxntAyDq.js} +3 -547
- package/dist/control-plane-PxntAyDq.js.map +1 -0
- package/dist/{daemon-service-runtime-D7cb3-Ov.js → daemon-service-runtime-CWTlAhZY.js} +291 -45
- package/dist/daemon-service-runtime-CWTlAhZY.js.map +1 -0
- package/dist/{openmeld-tools-update-coordinator-i1zATb9g.js → daemon-service-update-coordinator-DcjOzGu1.js} +23099 -22988
- package/dist/daemon-service-update-coordinator-DcjOzGu1.js.map +1 -0
- package/dist/dist--pb6JxqG.js +4 -0
- package/dist/{dist-Ccbpt6rT.js → dist-jsWwS864.js} +1435 -1206
- package/dist/dist-jsWwS864.js.map +1 -0
- package/dist/{elapsed-time-B2UGqUlR.js → elapsed-time-iFOSSUJo.js} +45 -78
- package/dist/elapsed-time-iFOSSUJo.js.map +1 -0
- package/dist/{installation-inventory-DJiJh9nP.js → installation-inventory-B0cbVLun.js} +3 -3
- package/dist/{installation-inventory-DJiJh9nP.js.map → installation-inventory-B0cbVLun.js.map} +1 -1
- package/dist/local-components-H3SkJMC1.js +567 -0
- package/dist/local-components-H3SkJMC1.js.map +1 -0
- package/dist/{openmeld-BqTI30JS.js → openmeld-B4gQCCex.js} +244 -154
- package/dist/openmeld-B4gQCCex.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-DeOu5U2Q.js → openmeld-maintenance-worker-DtY_H7Bv.js} +5 -5
- package/dist/{openmeld-maintenance-worker-DeOu5U2Q.js.map → openmeld-maintenance-worker-DtY_H7Bv.js.map} +1 -1
- package/dist/openmeld-tools-update-join-DS_EIL5q.js +54 -0
- package/dist/openmeld-tools-update-join-DS_EIL5q.js.map +1 -0
- package/dist/openmeld-tools-update-process-frame-CbZPpc7D.js +93 -0
- package/dist/openmeld-tools-update-process-frame-CbZPpc7D.js.map +1 -0
- package/dist/openmeld-tools-update-process-frame-CcPLrSsw.js +4 -0
- package/dist/openmeld.js +7 -3
- package/dist/openmeld.js.map +1 -1
- package/dist/{prepare-session-executor-BSTToACx.js → prepare-session-executor-CWKqfuse.js} +11 -9
- package/dist/{prepare-session-executor-BSTToACx.js.map → prepare-session-executor-CWKqfuse.js.map} +1 -1
- package/dist/{runtime-transport-BrzIQru0.js → runtime-transport-BQAmcHwF.js} +16 -2
- package/dist/runtime-transport-BQAmcHwF.js.map +1 -0
- package/dist/{agents-DdYL--Rj.js → service-CTG3_X0o.js} +476 -4582
- package/dist/service-CTG3_X0o.js.map +1 -0
- package/dist/{service-account-authorization-BM7a5V4I.js → service-account-authorization-Dq4LcAVa.js} +3 -3
- package/dist/{service-account-authorization-BM7a5V4I.js.map → service-account-authorization-Dq4LcAVa.js.map} +1 -1
- package/dist/service-account-control-BTR_X7QM.js +145 -0
- package/dist/service-account-control-BTR_X7QM.js.map +1 -0
- package/dist/{service-control-capabilities-BL8hTCE6.js → service-control-capabilities-C5SxnBg2.js} +2 -2
- package/dist/{service-control-capabilities-BL8hTCE6.js.map → service-control-capabilities-C5SxnBg2.js.map} +1 -1
- package/dist/{service-control-capabilities--ktpSDhp.js → service-control-capabilities-ChRe8hkw.js} +1 -1
- package/dist/{upgrade-JMsVlRjL.js → upgrade-DAVEeo8B.js} +36 -17
- package/dist/upgrade-DAVEeo8B.js.map +1 -0
- package/dist/upgrade-DKXu-1wO.js +4 -0
- package/package.json +1 -1
- package/dist/agents-DdYL--Rj.js.map +0 -1
- package/dist/auth-session-CVxflepT.js.map +0 -1
- package/dist/auth-session-LTSqq_Tb.js +0 -4
- package/dist/computer-connection-TgsnU0K9.js.map +0 -1
- package/dist/control-plane-D9jDcbMZ.js.map +0 -1
- package/dist/daemon-service-runtime-D7cb3-Ov.js.map +0 -1
- package/dist/dist-Ccbpt6rT.js.map +0 -1
- package/dist/dist-Cs3dH2Of.js +0 -4
- package/dist/elapsed-time-B2UGqUlR.js.map +0 -1
- package/dist/openmeld-BqTI30JS.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-i1zATb9g.js.map +0 -1
- package/dist/runtime-transport-BrzIQru0.js.map +0 -1
- package/dist/upgrade-C5r5IT_8.js +0 -4
- package/dist/upgrade-JMsVlRjL.js.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { C as resolveBuiltinAgentControllerConversationCapability, S as agentControllerConversationCapabilitySchema, b as normalizeKnownBuiltinAgentControllerId, h as agentControllerRefSchema, s as runtimeTransportModeSchema } from "./controller-contract-pe3_Re-c.js";
|
|
4
|
-
import { $t as spaceFileActorSchema, Ar as localFolderPathSchema, At as spaceAttachmentMimeTypeSchema, Bn as spaceAgentStreamDeltaFrameSchema, Bt as createSpaceFolderResponseSchema, Ct as signalSystemNoticeDataSchema, Dt as spaceAttachmentDescriptorSchema, Et as wakeDeviceWaitTargetSchema, Gt as listSpaceFilesResponseSchema, H as openMeldDaemonProviderAccessEvidenceProviderSchema, Hn as spaceAgentStreamPresenceSchema, Hr as authProfileManagedRoleSchema, Ht as getSpaceFileResponseSchema, Ir as localAgentCatalogLaunchStatusSchema, It as centerAgentInteractionSourceSchema, Jr as updateProfileResponseSchema, Kn as agentInteractionPendingSummarySchema, Kr as updateAgentProfileDefaultProjectBodySchema, Kt as publishSpaceComposerUploadResponseSchema, L as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Lt as SPACE_FILE_ERROR_CODES, Mn as computerSetupModeSchema, Mt as spaceMessageAttachmentSchema, Nn as openMeldNavigationTargetSchema, Nt as spaceMessageAttachmentsSchema, Or as localFolderPickerRequestSchema, Ot as spaceAttachmentDimensionSchema, Pn as openMeldWebUrlSchema, Pt as conversationCompactionMarkerSchema, Qn as clientMessageIdSchema$1, Qt as spaceComposerUploadIdSchema, Rn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Rr as localAgentCatalogWithLifecycleSchema, Rt as SPACE_FILE_MAX_SIZE_BYTES, Sn as workingLanguageTagSchema, Sr as agentProfileWorkRecoveryActionKindSchema, St as signalStatusDataSchema, Tt as signalTextSchema, Un as spaceAgentStreamSnapshotSchema, Ur as authProfileViewSchema, V as openMeldDaemonOriginalErrorSchema, Vn as spaceAgentStreamPartFrameSchema, Vt as discardSpaceComposerUploadResponseSchema, Wn as spaceAgentStreamTerminalFrameSchema, Wt as listSpaceFileRevisionsResponseSchema, Xn as postSpaceWakeStopBodySchema, Xr as openMeldRequestContextSchema, Xt as restoreSpaceFileRevisionResponseSchema, Yn as agentInteractionResponseSchema, Yt as restoreSpaceFileEntryResponseSchema, Zn as postSpaceWakeStopResponseSchema, Zr as MAX_TEXT_LENGTH$1, Zt as spaceComposerUploadDescriptorSchema, _n as resultArchivePolicySchema, ar as spaceTraceExecutionIdentityProjectionSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceDispatchPolicySchema, br as executeExecutionRecoveryResponseSchema, cn as trashSpaceFileEntryResponseSchema, cr as spacePasswordSchema, ct as controllerAgentTaskHandleSchema, dn as spaceThreadContextSchema, dr as spaceMentionLabelSchema, en as spaceFileClientMutationIdSchema, er as runtimeCoordinatorExecutionCreationDiagnosticSchema, et as spaceCallerContextSchema, fn as spaceThreadEventSchema, fr as spaceMentionLabelSourceSchema, hr as updateOrganizationInformationProtectionPolicyBodySchema, in as spaceFileNameSchema, it as agentTaskHandleSchema, jr as START_BOUNDED_ID_SCHEMA, jt as spaceAttachmentSizeBytesSchema, kn as messageEnvelopeSchema, kr as localFolderPickerResultSchema, kt as spaceAttachmentFileNameSchema, ln as updateSpaceFileEntryResponseSchema, lt as spaceWakeAgentTaskHandleSchema, mn as spaceThreadSignalPlacementSchema, mr as organizationProtectedInformationSchema, n as daemonExecutionCompatibilitySchema, nn as spaceFileEntryIdSchema, nr as runtimeCoordinatorExecutionRecordSchema, nt as agentTaskCompletionConditionSchema, on as spaceMessageFileReferencesSchema, or as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, ot as areAgentTaskTerminalOutcomesEqual, pn as spaceThreadSchema, pr as organizationInformationProtectionPolicyResponseSchema, q as openMeldDaemonTaskResultProjectFailureContextSchema, qr as updateAgentProfileDefaultProjectResponseSchema, rn as spaceFileMimeTypeSchema, rt as agentTaskCompletionObservationSchema, sn as stageSpaceComposerUploadResponseSchema, sr as normalizeSpacePasswordText, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceFileDescriptorSchema, tr as runtimeCoordinatorExecutionEventSchema, tt as agentDelegationSnapshotSchema, un as uploadSpaceFileResponseSchema, vn as spaceAllowedActionsSchema, vr as localAgentReasoningPreferencesSchema, wn as targetWakeLifecycleIdentitySchema, wt as signalTextDataSchema, xn as workingLanguageGuidanceSchema, xr as inspectExecutionRecoveryResponseSchema, yn as spacePublicationModeSchema, yr as executeExecutionRecoveryBodySchema, zn as agentStreamToolPartSchema } from "./runtime-transport-
|
|
4
|
+
import { $t as spaceFileActorSchema, Ar as localFolderPathSchema, At as spaceAttachmentMimeTypeSchema, Bn as spaceAgentStreamDeltaFrameSchema, Bt as createSpaceFolderResponseSchema, Ct as signalSystemNoticeDataSchema, Dt as spaceAttachmentDescriptorSchema, Et as wakeDeviceWaitTargetSchema, Gt as listSpaceFilesResponseSchema, H as openMeldDaemonProviderAccessEvidenceProviderSchema, Hn as spaceAgentStreamPresenceSchema, Hr as authProfileManagedRoleSchema, Ht as getSpaceFileResponseSchema, Ir as localAgentCatalogLaunchStatusSchema, It as centerAgentInteractionSourceSchema, Jr as updateProfileResponseSchema, Kn as agentInteractionPendingSummarySchema, Kr as updateAgentProfileDefaultProjectBodySchema, Kt as publishSpaceComposerUploadResponseSchema, L as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Lt as SPACE_FILE_ERROR_CODES, Mn as computerSetupModeSchema, Mt as spaceMessageAttachmentSchema, Nn as openMeldNavigationTargetSchema, Nt as spaceMessageAttachmentsSchema, Or as localFolderPickerRequestSchema, Ot as spaceAttachmentDimensionSchema, Pn as openMeldWebUrlSchema, Pt as conversationCompactionMarkerSchema, Qn as clientMessageIdSchema$1, Qt as spaceComposerUploadIdSchema, Rn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Rr as localAgentCatalogWithLifecycleSchema, Rt as SPACE_FILE_MAX_SIZE_BYTES, Sn as workingLanguageTagSchema, Sr as agentProfileWorkRecoveryActionKindSchema, St as signalStatusDataSchema, Tt as signalTextSchema, Un as spaceAgentStreamSnapshotSchema, Ur as authProfileViewSchema, V as openMeldDaemonOriginalErrorSchema, Vn as spaceAgentStreamPartFrameSchema, Vt as discardSpaceComposerUploadResponseSchema, Wn as spaceAgentStreamTerminalFrameSchema, Wt as listSpaceFileRevisionsResponseSchema, Xn as postSpaceWakeStopBodySchema, Xr as openMeldRequestContextSchema, Xt as restoreSpaceFileRevisionResponseSchema, Yn as agentInteractionResponseSchema, Yt as restoreSpaceFileEntryResponseSchema, Zn as postSpaceWakeStopResponseSchema, Zr as MAX_TEXT_LENGTH$1, Zt as spaceComposerUploadDescriptorSchema, _n as resultArchivePolicySchema, ar as spaceTraceExecutionIdentityProjectionSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceDispatchPolicySchema, br as executeExecutionRecoveryResponseSchema, cn as trashSpaceFileEntryResponseSchema, cr as spacePasswordSchema, ct as controllerAgentTaskHandleSchema, dn as spaceThreadContextSchema, dr as spaceMentionLabelSchema, en as spaceFileClientMutationIdSchema, er as runtimeCoordinatorExecutionCreationDiagnosticSchema, et as spaceCallerContextSchema, fn as spaceThreadEventSchema, fr as spaceMentionLabelSourceSchema, hr as updateOrganizationInformationProtectionPolicyBodySchema, in as spaceFileNameSchema, it as agentTaskHandleSchema, jr as START_BOUNDED_ID_SCHEMA, jt as spaceAttachmentSizeBytesSchema, kn as messageEnvelopeSchema, kr as localFolderPickerResultSchema, kt as spaceAttachmentFileNameSchema, ln as updateSpaceFileEntryResponseSchema, lt as spaceWakeAgentTaskHandleSchema, mn as spaceThreadSignalPlacementSchema, mr as organizationProtectedInformationSchema, n as daemonExecutionCompatibilitySchema, nn as spaceFileEntryIdSchema, nr as runtimeCoordinatorExecutionRecordSchema, nt as agentTaskCompletionConditionSchema, on as spaceMessageFileReferencesSchema, or as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, ot as areAgentTaskTerminalOutcomesEqual, pn as spaceThreadSchema, pr as organizationInformationProtectionPolicyResponseSchema, q as openMeldDaemonTaskResultProjectFailureContextSchema, qr as updateAgentProfileDefaultProjectResponseSchema, rn as spaceFileMimeTypeSchema, rt as agentTaskCompletionObservationSchema, sn as stageSpaceComposerUploadResponseSchema, sr as normalizeSpacePasswordText, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceFileDescriptorSchema, tr as runtimeCoordinatorExecutionEventSchema, tt as agentDelegationSnapshotSchema, un as uploadSpaceFileResponseSchema, vn as spaceAllowedActionsSchema, vr as localAgentReasoningPreferencesSchema, wn as targetWakeLifecycleIdentitySchema, wt as signalTextDataSchema, xn as workingLanguageGuidanceSchema, xr as inspectExecutionRecoveryResponseSchema, yn as spacePublicationModeSchema, yr as executeExecutionRecoveryBodySchema, zn as agentStreamToolPartSchema } from "./runtime-transport-BQAmcHwF.js";
|
|
5
5
|
import { n as cliBinaryManifestSchema } from "./cli-binary-manifest-DiUulkp0.js";
|
|
6
|
-
import {
|
|
6
|
+
import { A as profileWorkspaceModeSchema, E as profileKindSchema, F as trimmedStringFromUnknown, M as finiteIntegerNumber, N as nonEmptyTrimmedStringFromUnknown, O as profileSchema, P as optionalBooleanQuerySchema, S as agentProfileIdSchema, b as dispatchExecutionSchema, j as uuidProfileIdSchema, k as profileWorkingDirectorySchema, m as openMeldDaemonSyncRouteCatalogPayloadSchema, t as localAgentInstallationOptionSchema, w as openMeldRuntimeProfileIdSchema } from "./control-plane-PxntAyDq.js";
|
|
7
|
+
import { A as discriminatedUnion, B as object, C as openMeldToolsUpdateRequestResultSchema, D as array, F as lazySchema, G as tuple, H as record, I as literal, J as unknown, K as undefinedFactory, L as neverFactory, M as enumFactory, N as int, O as boolean, P as iso, R as nullFactory, T as NEVER, U as strictObject, V as preprocess, W as string, Y as url, _ as openMeldToolsMaintenanceProjectionSchema, c as localComponentUpdatePolicySchema, g as openMeldToolsMaintenanceMutationResultSchema, j as email, k as coerce, l as localComponentUpdateProjectionSchema, q as union, u as localComponentUpdateStatusSchema, x as openMeldToolsUpdateOperationSchema, z as number } from "./local-components-H3SkJMC1.js";
|
|
7
8
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
8
9
|
import { n as toErrorMessage$3 } from "./dist-o3UL1EGQ.js";
|
|
9
10
|
import * as z$1 from "zod/v4";
|
|
@@ -1318,6 +1319,530 @@ const peopleComputersResponseSchema = strictObject({
|
|
|
1318
1319
|
});
|
|
1319
1320
|
peopleComputersResponseSchema.extend({ computers: array(peopleComputerSchema.extend({ isThisComputer: boolean() })) });
|
|
1320
1321
|
//#endregion
|
|
1322
|
+
//#region ../../packages/schemas/dist/schemas/runtime/message-channel.js
|
|
1323
|
+
const MESSAGE_CHANNEL_PROVIDERS = [
|
|
1324
|
+
"slack",
|
|
1325
|
+
"lark",
|
|
1326
|
+
"feishu"
|
|
1327
|
+
];
|
|
1328
|
+
const MESSAGE_CHANNEL_TRANSPORTS = ["webhook", "websocket"];
|
|
1329
|
+
const MESSAGE_CHANNEL_EVENT_KINDS = [
|
|
1330
|
+
"message",
|
|
1331
|
+
"card_action",
|
|
1332
|
+
"bot_added",
|
|
1333
|
+
"reaction",
|
|
1334
|
+
"document_comment"
|
|
1335
|
+
];
|
|
1336
|
+
const MESSAGE_CHANNEL_RESOURCE_TYPES = [
|
|
1337
|
+
"image",
|
|
1338
|
+
"file",
|
|
1339
|
+
"audio",
|
|
1340
|
+
"video",
|
|
1341
|
+
"sticker"
|
|
1342
|
+
];
|
|
1343
|
+
const MESSAGE_CHANNEL_MENTION_TYPES = [
|
|
1344
|
+
"direct_message",
|
|
1345
|
+
"group_mention",
|
|
1346
|
+
"group_message",
|
|
1347
|
+
"none"
|
|
1348
|
+
];
|
|
1349
|
+
const MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;
|
|
1350
|
+
const nonEmptyStringSchema$5 = string().trim().min(1);
|
|
1351
|
+
const providerIdSchema = nonEmptyStringSchema$5.max(512);
|
|
1352
|
+
const SLACK_MESSAGE_TIMESTAMP_PATTERN = /^\d+\.\d+$/u;
|
|
1353
|
+
const SLACK_THREAD_PERMALINK_PATH_PATTERN = /^\/archives\/([A-Za-z0-9_-]+)\/p(\d{10})(\d{1,6})\/?$/u;
|
|
1354
|
+
const timestampMsSchema$6 = number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
1355
|
+
const slackMessagePermalinkSchema = url().max(2048).refine(isSlackMessagePermalink, { message: "Slack permalinks must use an HTTPS slack.com host." });
|
|
1356
|
+
const slackThreadPublicationPermalinkSchema = slackMessagePermalinkSchema.refine((value) => parseSlackThreadPublicationPermalink(value) !== null, { message: "Slack thread permalinks must identify an exact Slack channel message." });
|
|
1357
|
+
function parseSlackThreadPublicationPermalink(value) {
|
|
1358
|
+
if (!slackMessagePermalinkSchema.safeParse(value).success) return null;
|
|
1359
|
+
const url = new URL(value);
|
|
1360
|
+
const pathMatch = SLACK_THREAD_PERMALINK_PATH_PATTERN.exec(url.pathname);
|
|
1361
|
+
if (!pathMatch) return null;
|
|
1362
|
+
const channelId = pathMatch[1];
|
|
1363
|
+
const seconds = pathMatch[2];
|
|
1364
|
+
const fractional = pathMatch[3];
|
|
1365
|
+
if (!(channelId && seconds && fractional)) return null;
|
|
1366
|
+
const queryChannelId = url.searchParams.get("cid");
|
|
1367
|
+
if (queryChannelId && queryChannelId !== channelId) return null;
|
|
1368
|
+
const queryThreadTs = url.searchParams.get("thread_ts");
|
|
1369
|
+
if (queryThreadTs && !SLACK_MESSAGE_TIMESTAMP_PATTERN.test(queryThreadTs)) return null;
|
|
1370
|
+
return {
|
|
1371
|
+
channelId,
|
|
1372
|
+
threadTs: queryThreadTs ?? `${seconds}.${fractional}`
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
function isSlackMessagePermalink(value) {
|
|
1376
|
+
let url;
|
|
1377
|
+
try {
|
|
1378
|
+
url = new URL(value);
|
|
1379
|
+
} catch {
|
|
1380
|
+
return false;
|
|
1381
|
+
}
|
|
1382
|
+
const hostname = url.hostname.toLowerCase();
|
|
1383
|
+
return url.protocol === "https:" && !url.username && !url.password && (hostname === "slack.com" || hostname.endsWith(".slack.com"));
|
|
1384
|
+
}
|
|
1385
|
+
const messageChannelProviderSchema = enumFactory(MESSAGE_CHANNEL_PROVIDERS);
|
|
1386
|
+
const messageChannelParticipantIdentitySchema = strictObject({
|
|
1387
|
+
connectionId: providerIdSchema,
|
|
1388
|
+
provider: messageChannelProviderSchema,
|
|
1389
|
+
providerUserEmail: email().max(320).optional(),
|
|
1390
|
+
providerUserId: providerIdSchema
|
|
1391
|
+
});
|
|
1392
|
+
const messageChannelTransportSchema = enumFactory(MESSAGE_CHANNEL_TRANSPORTS);
|
|
1393
|
+
enumFactory(MESSAGE_CHANNEL_EVENT_KINDS);
|
|
1394
|
+
const messageChannelResourceTypeSchema = enumFactory(MESSAGE_CHANNEL_RESOURCE_TYPES);
|
|
1395
|
+
const messageChannelMentionTypeSchema = enumFactory(MESSAGE_CHANNEL_MENTION_TYPES);
|
|
1396
|
+
const slackMessageChannelConversationLocatorSchema = strictObject({
|
|
1397
|
+
provider: literal("slack"),
|
|
1398
|
+
connectionId: providerIdSchema,
|
|
1399
|
+
teamId: providerIdSchema,
|
|
1400
|
+
channelId: providerIdSchema,
|
|
1401
|
+
rootMessageId: providerIdSchema
|
|
1402
|
+
});
|
|
1403
|
+
const createLarkPlatformConversationLocatorSchema = (provider) => strictObject({
|
|
1404
|
+
provider: literal(provider),
|
|
1405
|
+
connectionId: providerIdSchema,
|
|
1406
|
+
appId: providerIdSchema,
|
|
1407
|
+
tenantKey: providerIdSchema.nullable(),
|
|
1408
|
+
chatId: providerIdSchema,
|
|
1409
|
+
rootMessageId: providerIdSchema,
|
|
1410
|
+
threadId: providerIdSchema.nullable()
|
|
1411
|
+
});
|
|
1412
|
+
const messageChannelConversationLocatorSchema = discriminatedUnion("provider", [
|
|
1413
|
+
slackMessageChannelConversationLocatorSchema,
|
|
1414
|
+
createLarkPlatformConversationLocatorSchema("lark"),
|
|
1415
|
+
createLarkPlatformConversationLocatorSchema("feishu")
|
|
1416
|
+
]);
|
|
1417
|
+
const messageChannelResourceDescriptorSchema = strictObject({
|
|
1418
|
+
type: messageChannelResourceTypeSchema,
|
|
1419
|
+
fileKey: providerIdSchema,
|
|
1420
|
+
fileName: nonEmptyStringSchema$5.max(512).nullable(),
|
|
1421
|
+
mimeType: nonEmptyStringSchema$5.max(256).nullable(),
|
|
1422
|
+
sizeBytes: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).nullable()
|
|
1423
|
+
});
|
|
1424
|
+
const messageChannelConversationEventShape = { locator: messageChannelConversationLocatorSchema };
|
|
1425
|
+
const normalizedMessageChannelMessageEventSchema = strictObject({
|
|
1426
|
+
kind: literal("message"),
|
|
1427
|
+
messageId: providerIdSchema,
|
|
1428
|
+
sentAtMs: timestampMsSchema$6,
|
|
1429
|
+
senderId: providerIdSchema,
|
|
1430
|
+
senderDisplayName: nonEmptyStringSchema$5.max(256).optional(),
|
|
1431
|
+
senderTenantKey: providerIdSchema.optional(),
|
|
1432
|
+
...messageChannelConversationEventShape,
|
|
1433
|
+
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS),
|
|
1434
|
+
mention: messageChannelMentionTypeSchema,
|
|
1435
|
+
resources: array(messageChannelResourceDescriptorSchema).max(10)
|
|
1436
|
+
});
|
|
1437
|
+
const normalizedMessageChannelCardActionEventSchema = strictObject({
|
|
1438
|
+
kind: literal("card_action"),
|
|
1439
|
+
actionId: providerIdSchema,
|
|
1440
|
+
occurredAtMs: timestampMsSchema$6,
|
|
1441
|
+
senderId: providerIdSchema,
|
|
1442
|
+
...messageChannelConversationEventShape,
|
|
1443
|
+
actionName: nonEmptyStringSchema$5.max(128),
|
|
1444
|
+
actionValue: nonEmptyStringSchema$5.max(8192).nullable()
|
|
1445
|
+
});
|
|
1446
|
+
discriminatedUnion("action", [strictObject({
|
|
1447
|
+
v: literal(1),
|
|
1448
|
+
action: literal("stop"),
|
|
1449
|
+
deliveryId: providerIdSchema
|
|
1450
|
+
}), strictObject({
|
|
1451
|
+
v: literal(1),
|
|
1452
|
+
action: literal("reply"),
|
|
1453
|
+
deliveryId: providerIdSchema,
|
|
1454
|
+
text: string().trim().min(1).max(1e3)
|
|
1455
|
+
})]);
|
|
1456
|
+
const normalizedMessageChannelEventSchema = discriminatedUnion("kind", [
|
|
1457
|
+
normalizedMessageChannelMessageEventSchema,
|
|
1458
|
+
normalizedMessageChannelCardActionEventSchema,
|
|
1459
|
+
strictObject({
|
|
1460
|
+
kind: literal("bot_added"),
|
|
1461
|
+
chatId: providerIdSchema,
|
|
1462
|
+
occurredAtMs: timestampMsSchema$6,
|
|
1463
|
+
addedById: providerIdSchema.nullable()
|
|
1464
|
+
}),
|
|
1465
|
+
strictObject({
|
|
1466
|
+
kind: literal("reaction"),
|
|
1467
|
+
messageId: providerIdSchema,
|
|
1468
|
+
occurredAtMs: timestampMsSchema$6,
|
|
1469
|
+
senderId: providerIdSchema,
|
|
1470
|
+
...messageChannelConversationEventShape,
|
|
1471
|
+
reaction: nonEmptyStringSchema$5.max(128),
|
|
1472
|
+
operation: enumFactory(["add", "remove"])
|
|
1473
|
+
}),
|
|
1474
|
+
strictObject({
|
|
1475
|
+
kind: literal("document_comment"),
|
|
1476
|
+
commentId: providerIdSchema,
|
|
1477
|
+
documentToken: providerIdSchema,
|
|
1478
|
+
occurredAtMs: timestampMsSchema$6,
|
|
1479
|
+
senderId: providerIdSchema,
|
|
1480
|
+
...messageChannelConversationEventShape,
|
|
1481
|
+
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS)
|
|
1482
|
+
})
|
|
1483
|
+
]);
|
|
1484
|
+
const messageChannelIngressEnvelopeSchema = strictObject({
|
|
1485
|
+
v: literal(1),
|
|
1486
|
+
kind: literal("remote_agent_message_channel_event"),
|
|
1487
|
+
provider: messageChannelProviderSchema,
|
|
1488
|
+
connectionId: providerIdSchema,
|
|
1489
|
+
providerEventId: providerIdSchema,
|
|
1490
|
+
connectionGeneration: number().int().positive().optional(),
|
|
1491
|
+
receivedAtMs: timestampMsSchema$6,
|
|
1492
|
+
gatewayRequestId: providerIdSchema,
|
|
1493
|
+
event: normalizedMessageChannelEventSchema
|
|
1494
|
+
}).superRefine((envelope, context) => {
|
|
1495
|
+
if (!("locator" in envelope.event)) return;
|
|
1496
|
+
if (envelope.event.locator.provider !== envelope.provider) context.addIssue({
|
|
1497
|
+
code: "custom",
|
|
1498
|
+
message: "Ingress provider must match the conversation locator.",
|
|
1499
|
+
path: [
|
|
1500
|
+
"event",
|
|
1501
|
+
"locator",
|
|
1502
|
+
"provider"
|
|
1503
|
+
]
|
|
1504
|
+
});
|
|
1505
|
+
if (envelope.event.locator.connectionId !== envelope.connectionId) context.addIssue({
|
|
1506
|
+
code: "custom",
|
|
1507
|
+
message: "Ingress connection must match the conversation locator.",
|
|
1508
|
+
path: [
|
|
1509
|
+
"event",
|
|
1510
|
+
"locator",
|
|
1511
|
+
"connectionId"
|
|
1512
|
+
]
|
|
1513
|
+
});
|
|
1514
|
+
});
|
|
1515
|
+
function buildMessageChannelConversationId(locator) {
|
|
1516
|
+
if (locator.provider === "slack") return [
|
|
1517
|
+
locator.provider,
|
|
1518
|
+
locator.connectionId,
|
|
1519
|
+
locator.channelId,
|
|
1520
|
+
locator.rootMessageId
|
|
1521
|
+
].map(encodeConversationIdPart).join(":");
|
|
1522
|
+
return [
|
|
1523
|
+
locator.provider,
|
|
1524
|
+
locator.connectionId,
|
|
1525
|
+
locator.chatId,
|
|
1526
|
+
locator.rootMessageId
|
|
1527
|
+
].map(encodeConversationIdPart).join(":");
|
|
1528
|
+
}
|
|
1529
|
+
function encodeConversationIdPart(value) {
|
|
1530
|
+
return encodeURIComponent(value);
|
|
1531
|
+
}
|
|
1532
|
+
//#endregion
|
|
1533
|
+
//#region ../../packages/schemas/dist/schemas/http/inbox.js
|
|
1534
|
+
const identifierSchema$3 = string().trim().min(1).max(256);
|
|
1535
|
+
const timestampMsSchema$5 = number().int().nonnegative();
|
|
1536
|
+
const isoDateTimeSchema$7 = iso.datetime({ offset: true });
|
|
1537
|
+
const titleSchema$1 = string().trim().min(1).max(160);
|
|
1538
|
+
const previewSchema = string().trim().min(1).max(500);
|
|
1539
|
+
const contextLabelSchema = string().trim().min(1).max(160);
|
|
1540
|
+
const inboxViewSchema = enumFactory([
|
|
1541
|
+
"all",
|
|
1542
|
+
"unread",
|
|
1543
|
+
"needs_action",
|
|
1544
|
+
"needs_review",
|
|
1545
|
+
"updates",
|
|
1546
|
+
"urgent_updates",
|
|
1547
|
+
"recent_updates"
|
|
1548
|
+
]);
|
|
1549
|
+
const inboxAttentionSchema = enumFactory(["update", "action_required"]);
|
|
1550
|
+
const inboxImportanceSchema = enumFactory(["normal", "urgent"]);
|
|
1551
|
+
const inboxResolutionStatusSchema = enumFactory([
|
|
1552
|
+
"not_applicable",
|
|
1553
|
+
"open",
|
|
1554
|
+
"resolved"
|
|
1555
|
+
]);
|
|
1556
|
+
const inboxItemWireKindSchema = union([enumFactory([
|
|
1557
|
+
"space_message",
|
|
1558
|
+
"space_mention",
|
|
1559
|
+
"agent_reply",
|
|
1560
|
+
"agent_interaction",
|
|
1561
|
+
"wake_outcome",
|
|
1562
|
+
"center_agent_update",
|
|
1563
|
+
"document_review",
|
|
1564
|
+
"organization_request",
|
|
1565
|
+
"system_issue"
|
|
1566
|
+
]), literal("space_reference")]);
|
|
1567
|
+
const inboxSourceKindSchema = enumFactory([
|
|
1568
|
+
"space_signal",
|
|
1569
|
+
"runtime_coordinator_interaction",
|
|
1570
|
+
"remote_agent_native_delivery",
|
|
1571
|
+
"remote_agent_native_interaction",
|
|
1572
|
+
"organization_document_draft",
|
|
1573
|
+
"organization_opportunity",
|
|
1574
|
+
"organization_member_request",
|
|
1575
|
+
"agent_profile_work_recovery",
|
|
1576
|
+
"system_attention_event"
|
|
1577
|
+
]);
|
|
1578
|
+
const centerAgentRequestMemberAttentionBodySchema = strictObject({
|
|
1579
|
+
impact: enumFactory([
|
|
1580
|
+
"response_needed",
|
|
1581
|
+
"work_blocked",
|
|
1582
|
+
"material_failure_risk"
|
|
1583
|
+
]),
|
|
1584
|
+
prompt: previewSchema,
|
|
1585
|
+
submissionId: identifierSchema$3,
|
|
1586
|
+
title: titleSchema$1
|
|
1587
|
+
});
|
|
1588
|
+
strictObject({
|
|
1589
|
+
importance: inboxImportanceSchema,
|
|
1590
|
+
instruction: string().trim().min(1).max(500),
|
|
1591
|
+
organizationId: identifierSchema$3,
|
|
1592
|
+
requestId: identifierSchema$3
|
|
1593
|
+
});
|
|
1594
|
+
const centerAgentInboxSourceTargetSchema = strictObject({
|
|
1595
|
+
kind: literal("center_agent"),
|
|
1596
|
+
signalId: identifierSchema$3.optional(),
|
|
1597
|
+
spaceId: identifierSchema$3.optional()
|
|
1598
|
+
}).superRefine((target, context) => {
|
|
1599
|
+
if (target.signalId === void 0 !== (target.spaceId === void 0)) context.addIssue({
|
|
1600
|
+
code: "custom",
|
|
1601
|
+
message: "Center Agent Inbox targets must include both spaceId and signalId."
|
|
1602
|
+
});
|
|
1603
|
+
});
|
|
1604
|
+
const slackInboxSourceTargetSchema = strictObject({
|
|
1605
|
+
channelId: identifierSchema$3,
|
|
1606
|
+
kind: literal("message_channel"),
|
|
1607
|
+
messageId: identifierSchema$3,
|
|
1608
|
+
permalink: slackMessagePermalinkSchema,
|
|
1609
|
+
provider: literal("slack"),
|
|
1610
|
+
teamId: identifierSchema$3,
|
|
1611
|
+
threadRootMessageId: identifierSchema$3
|
|
1612
|
+
});
|
|
1613
|
+
const inboxSourceTargetSchema = discriminatedUnion("kind", [
|
|
1614
|
+
strictObject({
|
|
1615
|
+
kind: literal("organization_join_request"),
|
|
1616
|
+
requestId: identifierSchema$3
|
|
1617
|
+
}),
|
|
1618
|
+
strictObject({
|
|
1619
|
+
kind: literal("agent_profile"),
|
|
1620
|
+
profileId: identifierSchema$3
|
|
1621
|
+
}),
|
|
1622
|
+
strictObject({
|
|
1623
|
+
kind: literal("agent_profile_creation_request"),
|
|
1624
|
+
requestId: identifierSchema$3
|
|
1625
|
+
}),
|
|
1626
|
+
strictObject({
|
|
1627
|
+
kind: literal("space"),
|
|
1628
|
+
directMessage: boolean().optional(),
|
|
1629
|
+
agentOwnerActivity: boolean().optional(),
|
|
1630
|
+
replyToRecipient: boolean().optional(),
|
|
1631
|
+
signalId: identifierSchema$3.optional(),
|
|
1632
|
+
spaceId: identifierSchema$3,
|
|
1633
|
+
threadRootSignalId: identifierSchema$3.optional()
|
|
1634
|
+
}),
|
|
1635
|
+
strictObject({
|
|
1636
|
+
interactionId: identifierSchema$3,
|
|
1637
|
+
kind: literal("agent_interaction"),
|
|
1638
|
+
runtimeCoordinatorExecutionId: identifierSchema$3,
|
|
1639
|
+
sourceSignalId: identifierSchema$3.optional(),
|
|
1640
|
+
spaceId: identifierSchema$3,
|
|
1641
|
+
threadRootSignalId: identifierSchema$3.nullable().optional()
|
|
1642
|
+
}),
|
|
1643
|
+
strictObject({
|
|
1644
|
+
documentId: identifierSchema$3,
|
|
1645
|
+
kind: literal("organization_document")
|
|
1646
|
+
}),
|
|
1647
|
+
slackInboxSourceTargetSchema,
|
|
1648
|
+
centerAgentInboxSourceTargetSchema,
|
|
1649
|
+
strictObject({
|
|
1650
|
+
kind: literal("settings"),
|
|
1651
|
+
section: enumFactory([
|
|
1652
|
+
"channels",
|
|
1653
|
+
"computers",
|
|
1654
|
+
"notifications"
|
|
1655
|
+
])
|
|
1656
|
+
})
|
|
1657
|
+
]);
|
|
1658
|
+
const inboxItemWireSchema = strictObject({
|
|
1659
|
+
attention: inboxAttentionSchema,
|
|
1660
|
+
contextLabel: contextLabelSchema.nullable(),
|
|
1661
|
+
createdAt: isoDateTimeSchema$7,
|
|
1662
|
+
id: identifierSchema$3,
|
|
1663
|
+
importance: inboxImportanceSchema,
|
|
1664
|
+
kind: inboxItemWireKindSchema,
|
|
1665
|
+
occurredAt: isoDateTimeSchema$7,
|
|
1666
|
+
organizationId: identifierSchema$3,
|
|
1667
|
+
preview: previewSchema,
|
|
1668
|
+
readAt: isoDateTimeSchema$7.nullable(),
|
|
1669
|
+
recipientUserId: identifierSchema$3,
|
|
1670
|
+
resolutionStatus: inboxResolutionStatusSchema,
|
|
1671
|
+
sourceTarget: inboxSourceTargetSchema,
|
|
1672
|
+
title: titleSchema$1,
|
|
1673
|
+
updatedAt: isoDateTimeSchema$7
|
|
1674
|
+
}).superRefine((item, context) => {
|
|
1675
|
+
if (!(item.attention === "update" ? item.resolutionStatus === "not_applicable" : item.resolutionStatus === "open" || item.resolutionStatus === "resolved")) context.addIssue({
|
|
1676
|
+
code: "custom",
|
|
1677
|
+
message: "Inbox resolution status must match its attention class.",
|
|
1678
|
+
path: ["resolutionStatus"]
|
|
1679
|
+
});
|
|
1680
|
+
});
|
|
1681
|
+
const inboxItemSchema = inboxItemWireSchema.transform((item) => ({
|
|
1682
|
+
...item,
|
|
1683
|
+
kind: normalizeInboxItemWireKind(item.kind)
|
|
1684
|
+
}));
|
|
1685
|
+
const listInboxItemsQuerySchema = strictObject({
|
|
1686
|
+
cursor: string().trim().min(1).max(1024).optional(),
|
|
1687
|
+
limit: coerce.number().int().min(1).max(100).optional(),
|
|
1688
|
+
view: inboxViewSchema.optional()
|
|
1689
|
+
});
|
|
1690
|
+
const listInboxItemsResponseSchema = strictObject({
|
|
1691
|
+
items: array(inboxItemSchema),
|
|
1692
|
+
nextCursor: string().min(1).max(1024).nullable(),
|
|
1693
|
+
organizationId: identifierSchema$3
|
|
1694
|
+
});
|
|
1695
|
+
strictObject({
|
|
1696
|
+
items: array(inboxItemWireSchema),
|
|
1697
|
+
nextCursor: string().min(1).max(1024).nullable(),
|
|
1698
|
+
organizationId: identifierSchema$3
|
|
1699
|
+
});
|
|
1700
|
+
const inboxSummaryResponseSchema = strictObject({
|
|
1701
|
+
organizationId: identifierSchema$3,
|
|
1702
|
+
totalUnreadCount: number().int().nonnegative(),
|
|
1703
|
+
unresolvedActionCount: number().int().nonnegative(),
|
|
1704
|
+
unreadUrgentUpdateCount: number().int().nonnegative().optional()
|
|
1705
|
+
});
|
|
1706
|
+
const centerAgentInboxSummaryResponseSchema = strictObject({
|
|
1707
|
+
organizationId: identifierSchema$3,
|
|
1708
|
+
unreadCount: number().int().nonnegative()
|
|
1709
|
+
});
|
|
1710
|
+
const spaceInboxSummaryItemSchema = strictObject({
|
|
1711
|
+
latestUnreadOccurredAtMs: timestampMsSchema$5,
|
|
1712
|
+
spaceId: identifierSchema$3,
|
|
1713
|
+
unreadCount: number().int().positive()
|
|
1714
|
+
});
|
|
1715
|
+
const spaceInboxSummaryResponseSchema = strictObject({
|
|
1716
|
+
chatUnreadCount: number().int().nonnegative().optional(),
|
|
1717
|
+
chatUnresolvedActionCount: number().int().nonnegative().optional(),
|
|
1718
|
+
chatUnreadUrgentUpdateCount: number().int().nonnegative().optional(),
|
|
1719
|
+
attention: array(strictObject({
|
|
1720
|
+
spaceId: identifierSchema$3,
|
|
1721
|
+
unresolvedActionCount: number().int().nonnegative(),
|
|
1722
|
+
unreadUrgentUpdateCount: number().int().nonnegative()
|
|
1723
|
+
})).optional(),
|
|
1724
|
+
ordinarySpaceUnreadCount: number().int().nonnegative().optional(),
|
|
1725
|
+
organizationId: identifierSchema$3,
|
|
1726
|
+
spaces: array(spaceInboxSummaryItemSchema).max(500)
|
|
1727
|
+
});
|
|
1728
|
+
const spaceInboxUnreadTargetSchema = strictObject({
|
|
1729
|
+
occurredAtMs: timestampMsSchema$5,
|
|
1730
|
+
signalId: identifierSchema$3,
|
|
1731
|
+
threadRootSignalId: identifierSchema$3.nullable()
|
|
1732
|
+
});
|
|
1733
|
+
const spaceInboxUnreadTargetsResponseSchema = strictObject({
|
|
1734
|
+
hasMoreTargets: boolean(),
|
|
1735
|
+
organizationId: identifierSchema$3,
|
|
1736
|
+
spaceId: identifierSchema$3,
|
|
1737
|
+
targets: array(spaceInboxUnreadTargetSchema).max(500),
|
|
1738
|
+
totalUnreadCount: number().int().nonnegative()
|
|
1739
|
+
});
|
|
1740
|
+
const spaceInboxUnreadTargetsRouteParamsSchema = strictObject({ spaceId: identifierSchema$3 });
|
|
1741
|
+
const markCenterAgentInboxReadThroughBodySchema = strictObject({
|
|
1742
|
+
spaceId: identifierSchema$3,
|
|
1743
|
+
throughOccurredAtMs: timestampMsSchema$5
|
|
1744
|
+
});
|
|
1745
|
+
const markCenterAgentInboxReadThroughResponseSchema = strictObject({
|
|
1746
|
+
markedReadCount: number().int().nonnegative(),
|
|
1747
|
+
readThroughAt: isoDateTimeSchema$7
|
|
1748
|
+
});
|
|
1749
|
+
const markSpaceInboxReadThroughBodySchema = strictObject({
|
|
1750
|
+
spaceId: identifierSchema$3,
|
|
1751
|
+
threadRootSignalId: identifierSchema$3.optional(),
|
|
1752
|
+
throughOccurredAtMs: timestampMsSchema$5
|
|
1753
|
+
});
|
|
1754
|
+
const markSpaceInboxReadThroughResponseSchema = strictObject({
|
|
1755
|
+
markedReadCount: number().int().nonnegative(),
|
|
1756
|
+
readThroughAt: isoDateTimeSchema$7
|
|
1757
|
+
});
|
|
1758
|
+
const inboxNotificationPreferencesResponseSchema = strictObject({
|
|
1759
|
+
updatedAt: isoDateTimeSchema$7.nullable(),
|
|
1760
|
+
urgentEmailEnabled: boolean()
|
|
1761
|
+
});
|
|
1762
|
+
const updateInboxNotificationPreferencesBodySchema = strictObject({ urgentEmailEnabled: boolean() });
|
|
1763
|
+
const inboxMessageNotificationModeSchema = enumFactory(["all_messages", "mentions_and_replies"]);
|
|
1764
|
+
const inboxConversationNotificationModeSchema = enumFactory([
|
|
1765
|
+
"all_messages",
|
|
1766
|
+
"mentions_and_replies",
|
|
1767
|
+
"muted"
|
|
1768
|
+
]);
|
|
1769
|
+
const inboxMessageNotificationPreferencesQuerySchema = strictObject({ spaceId: identifierSchema$3.optional() });
|
|
1770
|
+
const inboxMessageNotificationPreferencesResponseSchema = strictObject({
|
|
1771
|
+
organizationId: identifierSchema$3,
|
|
1772
|
+
spaceId: identifierSchema$3.nullable(),
|
|
1773
|
+
defaultMode: inboxMessageNotificationModeSchema,
|
|
1774
|
+
overrideMode: inboxConversationNotificationModeSchema.nullable(),
|
|
1775
|
+
effectiveMode: inboxConversationNotificationModeSchema
|
|
1776
|
+
});
|
|
1777
|
+
const updateInboxMessageNotificationPreferencesBodySchema = discriminatedUnion("scope", [strictObject({
|
|
1778
|
+
scope: literal("account"),
|
|
1779
|
+
mode: inboxMessageNotificationModeSchema
|
|
1780
|
+
}), strictObject({
|
|
1781
|
+
scope: literal("conversation"),
|
|
1782
|
+
spaceId: identifierSchema$3,
|
|
1783
|
+
mode: inboxConversationNotificationModeSchema.nullable()
|
|
1784
|
+
})]);
|
|
1785
|
+
inboxMessageNotificationPreferencesQuerySchema.extend({ context: openMeldRequestContextSchema });
|
|
1786
|
+
strictObject({
|
|
1787
|
+
context: openMeldRequestContextSchema,
|
|
1788
|
+
preference: updateInboxMessageNotificationPreferencesBodySchema
|
|
1789
|
+
});
|
|
1790
|
+
const inboxItemRouteParamsSchema = strictObject({ itemId: identifierSchema$3 });
|
|
1791
|
+
const getInboxItemResponseSchema = strictObject({ item: inboxItemSchema });
|
|
1792
|
+
strictObject({ item: inboxItemWireSchema });
|
|
1793
|
+
const dismissInboxItemResponseSchema = strictObject({ dismissedItemId: identifierSchema$3 });
|
|
1794
|
+
const markInboxItemReadBodySchema = strictObject({ read: boolean() });
|
|
1795
|
+
const markInboxItemReadResponseSchema = strictObject({ item: inboxItemSchema });
|
|
1796
|
+
strictObject({ item: inboxItemWireSchema });
|
|
1797
|
+
const markAllInboxItemsReadResponseSchema = strictObject({ markedReadCount: number().int().nonnegative() });
|
|
1798
|
+
strictObject({
|
|
1799
|
+
attention: inboxAttentionSchema,
|
|
1800
|
+
contextLabel: contextLabelSchema.nullable(),
|
|
1801
|
+
importance: inboxImportanceSchema,
|
|
1802
|
+
kind: inboxItemWireKindSchema,
|
|
1803
|
+
occurredAtMs: timestampMsSchema$5,
|
|
1804
|
+
organizationId: identifierSchema$3,
|
|
1805
|
+
preview: previewSchema,
|
|
1806
|
+
recipientUserId: identifierSchema$3,
|
|
1807
|
+
sourceKey: identifierSchema$3,
|
|
1808
|
+
sourceKind: inboxSourceKindSchema,
|
|
1809
|
+
sourceTarget: inboxSourceTargetSchema,
|
|
1810
|
+
title: titleSchema$1
|
|
1811
|
+
}).transform((candidate) => ({
|
|
1812
|
+
...candidate,
|
|
1813
|
+
kind: normalizeInboxItemWireKind(candidate.kind)
|
|
1814
|
+
}));
|
|
1815
|
+
function normalizeInboxItemWireKind(kind) {
|
|
1816
|
+
return kind === "space_reference" ? "space_mention" : kind;
|
|
1817
|
+
}
|
|
1818
|
+
listInboxItemsQuerySchema.extend({
|
|
1819
|
+
context: openMeldRequestContextSchema,
|
|
1820
|
+
includeReplyToRecipient: boolean().optional()
|
|
1821
|
+
});
|
|
1822
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1823
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1824
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1825
|
+
strictObject({
|
|
1826
|
+
context: openMeldRequestContextSchema,
|
|
1827
|
+
spaceId: identifierSchema$3
|
|
1828
|
+
});
|
|
1829
|
+
markCenterAgentInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1830
|
+
markSpaceInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1831
|
+
inboxItemRouteParamsSchema.extend({
|
|
1832
|
+
context: openMeldRequestContextSchema,
|
|
1833
|
+
includeReplyToRecipient: boolean().optional()
|
|
1834
|
+
});
|
|
1835
|
+
inboxItemRouteParamsSchema.extend({ context: openMeldRequestContextSchema });
|
|
1836
|
+
markInboxItemReadBodySchema.extend({
|
|
1837
|
+
context: openMeldRequestContextSchema,
|
|
1838
|
+
includeReplyToRecipient: boolean().optional(),
|
|
1839
|
+
itemId: identifierSchema$3
|
|
1840
|
+
});
|
|
1841
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1842
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1843
|
+
updateInboxNotificationPreferencesBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1844
|
+
centerAgentRequestMemberAttentionBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1845
|
+
//#endregion
|
|
1321
1846
|
//#region ../../packages/schemas/dist/schemas/http/space-link-previews.js
|
|
1322
1847
|
const previewUrlSchema = z$1.url().max(4096).refine((value) => {
|
|
1323
1848
|
const url = new URL(value);
|
|
@@ -1456,6 +1981,7 @@ const spaceLiveInvalidationFrameSchema = z$1.strictObject({
|
|
|
1456
1981
|
"space.members.changed",
|
|
1457
1982
|
"space.meta.changed",
|
|
1458
1983
|
"space.files.changed",
|
|
1984
|
+
"space.tasks.changed",
|
|
1459
1985
|
"space.reactions.changed",
|
|
1460
1986
|
"agent.readiness.invalidated",
|
|
1461
1987
|
"wake.progress.changed"
|
|
@@ -1771,217 +2297,6 @@ const openCodePermissionConfigSchema = plainJsonObjectSchema.pipe(z$1.record(ope
|
|
|
1771
2297
|
});
|
|
1772
2298
|
});
|
|
1773
2299
|
//#endregion
|
|
1774
|
-
//#region ../../packages/schemas/dist/schemas/runtime/message-channel.js
|
|
1775
|
-
const MESSAGE_CHANNEL_PROVIDERS = [
|
|
1776
|
-
"slack",
|
|
1777
|
-
"lark",
|
|
1778
|
-
"feishu"
|
|
1779
|
-
];
|
|
1780
|
-
const MESSAGE_CHANNEL_TRANSPORTS = ["webhook", "websocket"];
|
|
1781
|
-
const MESSAGE_CHANNEL_EVENT_KINDS = [
|
|
1782
|
-
"message",
|
|
1783
|
-
"card_action",
|
|
1784
|
-
"bot_added",
|
|
1785
|
-
"reaction",
|
|
1786
|
-
"document_comment"
|
|
1787
|
-
];
|
|
1788
|
-
const MESSAGE_CHANNEL_RESOURCE_TYPES = [
|
|
1789
|
-
"image",
|
|
1790
|
-
"file",
|
|
1791
|
-
"audio",
|
|
1792
|
-
"video",
|
|
1793
|
-
"sticker"
|
|
1794
|
-
];
|
|
1795
|
-
const MESSAGE_CHANNEL_MENTION_TYPES = [
|
|
1796
|
-
"direct_message",
|
|
1797
|
-
"group_mention",
|
|
1798
|
-
"group_message",
|
|
1799
|
-
"none"
|
|
1800
|
-
];
|
|
1801
|
-
const MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;
|
|
1802
|
-
const nonEmptyStringSchema$5 = string().trim().min(1);
|
|
1803
|
-
const providerIdSchema = nonEmptyStringSchema$5.max(512);
|
|
1804
|
-
const SLACK_MESSAGE_TIMESTAMP_PATTERN = /^\d+\.\d+$/u;
|
|
1805
|
-
const SLACK_THREAD_PERMALINK_PATH_PATTERN = /^\/archives\/([A-Za-z0-9_-]+)\/p(\d{10})(\d{1,6})\/?$/u;
|
|
1806
|
-
const timestampMsSchema$6 = number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
1807
|
-
const slackMessagePermalinkSchema = url().max(2048).refine(isSlackMessagePermalink, { message: "Slack permalinks must use an HTTPS slack.com host." });
|
|
1808
|
-
const slackThreadPublicationPermalinkSchema = slackMessagePermalinkSchema.refine((value) => parseSlackThreadPublicationPermalink(value) !== null, { message: "Slack thread permalinks must identify an exact Slack channel message." });
|
|
1809
|
-
function parseSlackThreadPublicationPermalink(value) {
|
|
1810
|
-
if (!slackMessagePermalinkSchema.safeParse(value).success) return null;
|
|
1811
|
-
const url = new URL(value);
|
|
1812
|
-
const pathMatch = SLACK_THREAD_PERMALINK_PATH_PATTERN.exec(url.pathname);
|
|
1813
|
-
if (!pathMatch) return null;
|
|
1814
|
-
const channelId = pathMatch[1];
|
|
1815
|
-
const seconds = pathMatch[2];
|
|
1816
|
-
const fractional = pathMatch[3];
|
|
1817
|
-
if (!(channelId && seconds && fractional)) return null;
|
|
1818
|
-
const queryChannelId = url.searchParams.get("cid");
|
|
1819
|
-
if (queryChannelId && queryChannelId !== channelId) return null;
|
|
1820
|
-
const queryThreadTs = url.searchParams.get("thread_ts");
|
|
1821
|
-
if (queryThreadTs && !SLACK_MESSAGE_TIMESTAMP_PATTERN.test(queryThreadTs)) return null;
|
|
1822
|
-
return {
|
|
1823
|
-
channelId,
|
|
1824
|
-
threadTs: queryThreadTs ?? `${seconds}.${fractional}`
|
|
1825
|
-
};
|
|
1826
|
-
}
|
|
1827
|
-
function isSlackMessagePermalink(value) {
|
|
1828
|
-
let url;
|
|
1829
|
-
try {
|
|
1830
|
-
url = new URL(value);
|
|
1831
|
-
} catch {
|
|
1832
|
-
return false;
|
|
1833
|
-
}
|
|
1834
|
-
const hostname = url.hostname.toLowerCase();
|
|
1835
|
-
return url.protocol === "https:" && !url.username && !url.password && (hostname === "slack.com" || hostname.endsWith(".slack.com"));
|
|
1836
|
-
}
|
|
1837
|
-
const messageChannelProviderSchema = enumFactory(MESSAGE_CHANNEL_PROVIDERS);
|
|
1838
|
-
const messageChannelParticipantIdentitySchema = strictObject({
|
|
1839
|
-
connectionId: providerIdSchema,
|
|
1840
|
-
provider: messageChannelProviderSchema,
|
|
1841
|
-
providerUserEmail: email().max(320).optional(),
|
|
1842
|
-
providerUserId: providerIdSchema
|
|
1843
|
-
});
|
|
1844
|
-
const messageChannelTransportSchema = enumFactory(MESSAGE_CHANNEL_TRANSPORTS);
|
|
1845
|
-
enumFactory(MESSAGE_CHANNEL_EVENT_KINDS);
|
|
1846
|
-
const messageChannelResourceTypeSchema = enumFactory(MESSAGE_CHANNEL_RESOURCE_TYPES);
|
|
1847
|
-
const messageChannelMentionTypeSchema = enumFactory(MESSAGE_CHANNEL_MENTION_TYPES);
|
|
1848
|
-
const slackMessageChannelConversationLocatorSchema = strictObject({
|
|
1849
|
-
provider: literal("slack"),
|
|
1850
|
-
connectionId: providerIdSchema,
|
|
1851
|
-
teamId: providerIdSchema,
|
|
1852
|
-
channelId: providerIdSchema,
|
|
1853
|
-
rootMessageId: providerIdSchema
|
|
1854
|
-
});
|
|
1855
|
-
const createLarkPlatformConversationLocatorSchema = (provider) => strictObject({
|
|
1856
|
-
provider: literal(provider),
|
|
1857
|
-
connectionId: providerIdSchema,
|
|
1858
|
-
appId: providerIdSchema,
|
|
1859
|
-
tenantKey: providerIdSchema.nullable(),
|
|
1860
|
-
chatId: providerIdSchema,
|
|
1861
|
-
rootMessageId: providerIdSchema,
|
|
1862
|
-
threadId: providerIdSchema.nullable()
|
|
1863
|
-
});
|
|
1864
|
-
const messageChannelConversationLocatorSchema = discriminatedUnion("provider", [
|
|
1865
|
-
slackMessageChannelConversationLocatorSchema,
|
|
1866
|
-
createLarkPlatformConversationLocatorSchema("lark"),
|
|
1867
|
-
createLarkPlatformConversationLocatorSchema("feishu")
|
|
1868
|
-
]);
|
|
1869
|
-
const messageChannelResourceDescriptorSchema = strictObject({
|
|
1870
|
-
type: messageChannelResourceTypeSchema,
|
|
1871
|
-
fileKey: providerIdSchema,
|
|
1872
|
-
fileName: nonEmptyStringSchema$5.max(512).nullable(),
|
|
1873
|
-
mimeType: nonEmptyStringSchema$5.max(256).nullable(),
|
|
1874
|
-
sizeBytes: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).nullable()
|
|
1875
|
-
});
|
|
1876
|
-
const messageChannelConversationEventShape = { locator: messageChannelConversationLocatorSchema };
|
|
1877
|
-
const normalizedMessageChannelMessageEventSchema = strictObject({
|
|
1878
|
-
kind: literal("message"),
|
|
1879
|
-
messageId: providerIdSchema,
|
|
1880
|
-
sentAtMs: timestampMsSchema$6,
|
|
1881
|
-
senderId: providerIdSchema,
|
|
1882
|
-
senderDisplayName: nonEmptyStringSchema$5.max(256).optional(),
|
|
1883
|
-
senderTenantKey: providerIdSchema.optional(),
|
|
1884
|
-
...messageChannelConversationEventShape,
|
|
1885
|
-
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS),
|
|
1886
|
-
mention: messageChannelMentionTypeSchema,
|
|
1887
|
-
resources: array(messageChannelResourceDescriptorSchema).max(10)
|
|
1888
|
-
});
|
|
1889
|
-
const normalizedMessageChannelCardActionEventSchema = strictObject({
|
|
1890
|
-
kind: literal("card_action"),
|
|
1891
|
-
actionId: providerIdSchema,
|
|
1892
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1893
|
-
senderId: providerIdSchema,
|
|
1894
|
-
...messageChannelConversationEventShape,
|
|
1895
|
-
actionName: nonEmptyStringSchema$5.max(128),
|
|
1896
|
-
actionValue: nonEmptyStringSchema$5.max(8192).nullable()
|
|
1897
|
-
});
|
|
1898
|
-
discriminatedUnion("action", [strictObject({
|
|
1899
|
-
v: literal(1),
|
|
1900
|
-
action: literal("stop"),
|
|
1901
|
-
deliveryId: providerIdSchema
|
|
1902
|
-
}), strictObject({
|
|
1903
|
-
v: literal(1),
|
|
1904
|
-
action: literal("reply"),
|
|
1905
|
-
deliveryId: providerIdSchema,
|
|
1906
|
-
text: string().trim().min(1).max(1e3)
|
|
1907
|
-
})]);
|
|
1908
|
-
const normalizedMessageChannelEventSchema = discriminatedUnion("kind", [
|
|
1909
|
-
normalizedMessageChannelMessageEventSchema,
|
|
1910
|
-
normalizedMessageChannelCardActionEventSchema,
|
|
1911
|
-
strictObject({
|
|
1912
|
-
kind: literal("bot_added"),
|
|
1913
|
-
chatId: providerIdSchema,
|
|
1914
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1915
|
-
addedById: providerIdSchema.nullable()
|
|
1916
|
-
}),
|
|
1917
|
-
strictObject({
|
|
1918
|
-
kind: literal("reaction"),
|
|
1919
|
-
messageId: providerIdSchema,
|
|
1920
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1921
|
-
senderId: providerIdSchema,
|
|
1922
|
-
...messageChannelConversationEventShape,
|
|
1923
|
-
reaction: nonEmptyStringSchema$5.max(128),
|
|
1924
|
-
operation: enumFactory(["add", "remove"])
|
|
1925
|
-
}),
|
|
1926
|
-
strictObject({
|
|
1927
|
-
kind: literal("document_comment"),
|
|
1928
|
-
commentId: providerIdSchema,
|
|
1929
|
-
documentToken: providerIdSchema,
|
|
1930
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1931
|
-
senderId: providerIdSchema,
|
|
1932
|
-
...messageChannelConversationEventShape,
|
|
1933
|
-
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS)
|
|
1934
|
-
})
|
|
1935
|
-
]);
|
|
1936
|
-
const messageChannelIngressEnvelopeSchema = strictObject({
|
|
1937
|
-
v: literal(1),
|
|
1938
|
-
kind: literal("remote_agent_message_channel_event"),
|
|
1939
|
-
provider: messageChannelProviderSchema,
|
|
1940
|
-
connectionId: providerIdSchema,
|
|
1941
|
-
providerEventId: providerIdSchema,
|
|
1942
|
-
connectionGeneration: number().int().positive().optional(),
|
|
1943
|
-
receivedAtMs: timestampMsSchema$6,
|
|
1944
|
-
gatewayRequestId: providerIdSchema,
|
|
1945
|
-
event: normalizedMessageChannelEventSchema
|
|
1946
|
-
}).superRefine((envelope, context) => {
|
|
1947
|
-
if (!("locator" in envelope.event)) return;
|
|
1948
|
-
if (envelope.event.locator.provider !== envelope.provider) context.addIssue({
|
|
1949
|
-
code: "custom",
|
|
1950
|
-
message: "Ingress provider must match the conversation locator.",
|
|
1951
|
-
path: [
|
|
1952
|
-
"event",
|
|
1953
|
-
"locator",
|
|
1954
|
-
"provider"
|
|
1955
|
-
]
|
|
1956
|
-
});
|
|
1957
|
-
if (envelope.event.locator.connectionId !== envelope.connectionId) context.addIssue({
|
|
1958
|
-
code: "custom",
|
|
1959
|
-
message: "Ingress connection must match the conversation locator.",
|
|
1960
|
-
path: [
|
|
1961
|
-
"event",
|
|
1962
|
-
"locator",
|
|
1963
|
-
"connectionId"
|
|
1964
|
-
]
|
|
1965
|
-
});
|
|
1966
|
-
});
|
|
1967
|
-
function buildMessageChannelConversationId(locator) {
|
|
1968
|
-
if (locator.provider === "slack") return [
|
|
1969
|
-
locator.provider,
|
|
1970
|
-
locator.connectionId,
|
|
1971
|
-
locator.channelId,
|
|
1972
|
-
locator.rootMessageId
|
|
1973
|
-
].map(encodeConversationIdPart).join(":");
|
|
1974
|
-
return [
|
|
1975
|
-
locator.provider,
|
|
1976
|
-
locator.connectionId,
|
|
1977
|
-
locator.chatId,
|
|
1978
|
-
locator.rootMessageId
|
|
1979
|
-
].map(encodeConversationIdPart).join(":");
|
|
1980
|
-
}
|
|
1981
|
-
function encodeConversationIdPart(value) {
|
|
1982
|
-
return encodeURIComponent(value);
|
|
1983
|
-
}
|
|
1984
|
-
//#endregion
|
|
1985
2300
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-speaker.js
|
|
1986
2301
|
const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
1987
2302
|
"web_search",
|
|
@@ -2040,6 +2355,7 @@ const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
|
2040
2355
|
"github_list_workflow_runs",
|
|
2041
2356
|
"github_get_workflow_run",
|
|
2042
2357
|
"github_list_workflow_run_jobs",
|
|
2358
|
+
"github_get_release_by_tag",
|
|
2043
2359
|
"github_create_issue_batch",
|
|
2044
2360
|
"github_create_issue",
|
|
2045
2361
|
"github_create_issue_comment",
|
|
@@ -2058,6 +2374,7 @@ const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
|
2058
2374
|
"github_update_issue",
|
|
2059
2375
|
"github_update_pull_request",
|
|
2060
2376
|
"github_update_pull_request_branch",
|
|
2377
|
+
"github_dispatch_workflow",
|
|
2061
2378
|
"github_rerun_workflow"
|
|
2062
2379
|
];
|
|
2063
2380
|
const trimmedIdentifierSchema$1 = z$1.string().trim().min(1);
|
|
@@ -2104,7 +2421,7 @@ const LOCAL_AGENT_CONTROLLER_REF_BY_PROVIDER = {
|
|
|
2104
2421
|
};
|
|
2105
2422
|
const boundedIdentifierSchema$8 = z$1.string().trim().min(1).max(512);
|
|
2106
2423
|
const displayNameSchema = z$1.string().trim().min(1).max(256);
|
|
2107
|
-
const timestampMsSchema$
|
|
2424
|
+
const timestampMsSchema$4 = z$1.number().int().nonnegative();
|
|
2108
2425
|
const agentActivityNativeSessionIdSchema = boundedIdentifierSchema$8;
|
|
2109
2426
|
const localAgentSessionProviderSchema = z$1.enum(LOCAL_AGENT_SESSION_PROVIDERS);
|
|
2110
2427
|
const agentActivityInventorySessionStatusSchema = z$1.enum([
|
|
@@ -2154,7 +2471,7 @@ const agentActivityInventoryProjectSchema = z$1.strictObject({
|
|
|
2154
2471
|
});
|
|
2155
2472
|
const agentActivityInventoryComputerSchema = z$1.strictObject({
|
|
2156
2473
|
id: boundedIdentifierSchema$8,
|
|
2157
|
-
lastSeenAtMs: timestampMsSchema$
|
|
2474
|
+
lastSeenAtMs: timestampMsSchema$4.nullable(),
|
|
2158
2475
|
name: displayNameSchema,
|
|
2159
2476
|
state: agentActivityInventoryComputerStateSchema
|
|
2160
2477
|
});
|
|
@@ -2170,8 +2487,8 @@ const agentActivityInventorySessionSchema = z$1.strictObject({
|
|
|
2170
2487
|
canResume: z$1.boolean(),
|
|
2171
2488
|
computer: agentActivityInventoryComputerSchema,
|
|
2172
2489
|
dataState: agentActivityInventoryDataStateSchema,
|
|
2173
|
-
inventoryUpdatedAtMs: timestampMsSchema$
|
|
2174
|
-
lastActiveAtMs: timestampMsSchema$
|
|
2490
|
+
inventoryUpdatedAtMs: timestampMsSchema$4,
|
|
2491
|
+
lastActiveAtMs: timestampMsSchema$4,
|
|
2175
2492
|
localAgent: agentActivityInventoryLocalAgentSchema,
|
|
2176
2493
|
nativeSessionId: agentActivityNativeSessionIdSchema,
|
|
2177
2494
|
nativeSessionTitle: z$1.string().trim().min(1).max(240).nullable(),
|
|
@@ -2179,7 +2496,7 @@ const agentActivityInventorySessionSchema = z$1.strictObject({
|
|
|
2179
2496
|
origin: agentActivityInventorySessionOriginSchema,
|
|
2180
2497
|
owner: agentActivityInventoryOwnerSchema,
|
|
2181
2498
|
project: agentActivityInventoryProjectSchema,
|
|
2182
|
-
startedAtMs: timestampMsSchema$
|
|
2499
|
+
startedAtMs: timestampMsSchema$4.nullable(),
|
|
2183
2500
|
status: agentActivityInventorySessionStatusSchema
|
|
2184
2501
|
}).superRefine((value, context) => {
|
|
2185
2502
|
if (value.bindingState === "bound" !== (value.boundAgentProfileId !== null)) context.addIssue({
|
|
@@ -2196,8 +2513,8 @@ const agentActivityInventorySessionSchema = z$1.strictObject({
|
|
|
2196
2513
|
const agentActivityInventoryCoverageSchema = z$1.strictObject({
|
|
2197
2514
|
agentControllerRef: agentControllerRefSchema,
|
|
2198
2515
|
computerId: boundedIdentifierSchema$8,
|
|
2199
|
-
lastAttemptAtMs: timestampMsSchema$
|
|
2200
|
-
lastCompleteAtMs: timestampMsSchema$
|
|
2516
|
+
lastAttemptAtMs: timestampMsSchema$4.nullable(),
|
|
2517
|
+
lastCompleteAtMs: timestampMsSchema$4.nullable(),
|
|
2201
2518
|
problemCode: z$1.string().trim().min(1).max(128).nullable(),
|
|
2202
2519
|
projectId: boundedIdentifierSchema$8,
|
|
2203
2520
|
provider: localAgentSessionProviderSchema,
|
|
@@ -2215,7 +2532,7 @@ const agentActivitySessionInventoryQuerySchema = z$1.strictObject({
|
|
|
2215
2532
|
status: agentActivityInventorySessionStatusSchema.optional()
|
|
2216
2533
|
});
|
|
2217
2534
|
const agentActivitySessionInventoryResponseSchema = z$1.strictObject({
|
|
2218
|
-
asOfMs: timestampMsSchema$
|
|
2535
|
+
asOfMs: timestampMsSchema$4,
|
|
2219
2536
|
coverage: z$1.array(agentActivityInventoryCoverageSchema),
|
|
2220
2537
|
nextCursor: z$1.string().trim().min(1).max(2048).nullable(),
|
|
2221
2538
|
organization: agentActivityInventoryOrganizationSchema,
|
|
@@ -2233,11 +2550,11 @@ z$1.strictObject({
|
|
|
2233
2550
|
const observedLocalAgentSessionSchema = z$1.strictObject({
|
|
2234
2551
|
canFork: z$1.boolean(),
|
|
2235
2552
|
canResume: z$1.boolean(),
|
|
2236
|
-
lastActiveAtMs: timestampMsSchema$
|
|
2553
|
+
lastActiveAtMs: timestampMsSchema$4,
|
|
2237
2554
|
nativeSessionId: agentActivityNativeSessionIdSchema,
|
|
2238
2555
|
nativeSessionTitle: z$1.string().trim().min(1).max(240).nullable(),
|
|
2239
2556
|
origin: agentActivityInventorySessionOriginSchema,
|
|
2240
|
-
startedAtMs: timestampMsSchema$
|
|
2557
|
+
startedAtMs: timestampMsSchema$4.nullable(),
|
|
2241
2558
|
status: agentActivityInventorySessionStatusSchema
|
|
2242
2559
|
}).superRefine((value, context) => {
|
|
2243
2560
|
if (value.startedAtMs !== null && value.startedAtMs > value.lastActiveAtMs) context.addIssue({
|
|
@@ -2256,7 +2573,7 @@ const submitAgentActivitySessionReconciliationBodySchema = z$1.strictObject({
|
|
|
2256
2573
|
agentControllerRef: agentControllerRefSchema,
|
|
2257
2574
|
lane: boundedIdentifierSchema$8,
|
|
2258
2575
|
localConnectionId: z$1.string().regex(/^sha256:[a-f0-9]{64}$/u),
|
|
2259
|
-
observedAtMs: timestampMsSchema$
|
|
2576
|
+
observedAtMs: timestampMsSchema$4,
|
|
2260
2577
|
openMeldServiceRuntimeId: z$1.strictObject({
|
|
2261
2578
|
source: z$1.literal("runtime_registry_authority"),
|
|
2262
2579
|
value: boundedIdentifierSchema$8
|
|
@@ -3453,7 +3770,7 @@ const AGENT_ACTIVITY_CLIENT_KINDS = [
|
|
|
3453
3770
|
"unknown"
|
|
3454
3771
|
];
|
|
3455
3772
|
const boundedIdentifierSchema$6 = string().trim().min(1).max(256);
|
|
3456
|
-
const timestampMsSchema$
|
|
3773
|
+
const timestampMsSchema$3 = number().int().nonnegative();
|
|
3457
3774
|
const nullableBoundedTextSchema = (maximum) => string().trim().min(1).max(maximum).nullable();
|
|
3458
3775
|
const agentActivityRpcContextShape = { context: openMeldRequestContextSchema.optional() };
|
|
3459
3776
|
const agentActivityEventTypeSchema = enumFactory([
|
|
@@ -3560,17 +3877,17 @@ const openCodePublicAgentActivityProviderMetadataSchema = openCodeAgentActivityP
|
|
|
3560
3877
|
const agentActivityEventCommonShape = {
|
|
3561
3878
|
eventId: boundedIdentifierSchema$6,
|
|
3562
3879
|
eventType: agentActivityEventTypeSchema,
|
|
3563
|
-
expiresAtMs: timestampMsSchema$
|
|
3880
|
+
expiresAtMs: timestampMsSchema$3,
|
|
3564
3881
|
gitBranch: nullableBoundedTextSchema(512),
|
|
3565
3882
|
gitCommit: nullableBoundedTextSchema(128),
|
|
3566
3883
|
model: nullableBoundedTextSchema(256),
|
|
3567
|
-
observedAtMs: timestampMsSchema$
|
|
3884
|
+
observedAtMs: timestampMsSchema$3,
|
|
3568
3885
|
organizationId: boundedIdentifierSchema$6,
|
|
3569
3886
|
projectId: boundedIdentifierSchema$6,
|
|
3570
3887
|
providerSessionId: string().trim().min(1).max(512),
|
|
3571
3888
|
repositoryFingerprint: repositoryFingerprintSchema.nullable(),
|
|
3572
3889
|
source: literal("observed"),
|
|
3573
|
-
startedAtMs: timestampMsSchema$
|
|
3890
|
+
startedAtMs: timestampMsSchema$3.nullable(),
|
|
3574
3891
|
status: agentActivitySessionStatusSchema,
|
|
3575
3892
|
title: nullableBoundedTextSchema(240)
|
|
3576
3893
|
};
|
|
@@ -3724,17 +4041,17 @@ const agentActivitySnapshotQueryShape = {
|
|
|
3724
4041
|
};
|
|
3725
4042
|
const agentActivitySnapshotQuerySchema = strictObject(agentActivitySnapshotQueryShape);
|
|
3726
4043
|
const agentActivityPublicSessionCommonShape = {
|
|
3727
|
-
expiresAtMs: timestampMsSchema$
|
|
4044
|
+
expiresAtMs: timestampMsSchema$3,
|
|
3728
4045
|
gitBranch: nullableBoundedTextSchema(512),
|
|
3729
4046
|
gitCommit: nullableBoundedTextSchema(128),
|
|
3730
4047
|
id: boundedIdentifierSchema$6,
|
|
3731
4048
|
isActive: boolean(),
|
|
3732
|
-
lastObservedAtMs: timestampMsSchema$
|
|
4049
|
+
lastObservedAtMs: timestampMsSchema$3,
|
|
3733
4050
|
memberName: string().trim().min(1).max(256),
|
|
3734
4051
|
memberUserId: boundedIdentifierSchema$6,
|
|
3735
4052
|
model: nullableBoundedTextSchema(256),
|
|
3736
4053
|
projectId: boundedIdentifierSchema$6,
|
|
3737
|
-
startedAtMs: timestampMsSchema$
|
|
4054
|
+
startedAtMs: timestampMsSchema$3.nullable(),
|
|
3738
4055
|
status: agentActivitySessionStatusSchema,
|
|
3739
4056
|
title: nullableBoundedTextSchema(240)
|
|
3740
4057
|
};
|
|
@@ -3778,7 +4095,7 @@ const agentActivityPublicEventSchema = strictObject({
|
|
|
3778
4095
|
eventType: agentActivityEventTypeSchema,
|
|
3779
4096
|
memberName: string().trim().min(1).max(256),
|
|
3780
4097
|
memberUserId: boundedIdentifierSchema$6,
|
|
3781
|
-
observedAtMs: timestampMsSchema$
|
|
4098
|
+
observedAtMs: timestampMsSchema$3,
|
|
3782
4099
|
projectId: boundedIdentifierSchema$6,
|
|
3783
4100
|
provider: agentActivityProviderSchema,
|
|
3784
4101
|
status: agentActivitySessionStatusSchema,
|
|
@@ -3786,19 +4103,19 @@ const agentActivityPublicEventSchema = strictObject({
|
|
|
3786
4103
|
});
|
|
3787
4104
|
const agentActivityDigestCitationSchema = strictObject({
|
|
3788
4105
|
eventId: boundedIdentifierSchema$6,
|
|
3789
|
-
observedAtMs: timestampMsSchema$
|
|
4106
|
+
observedAtMs: timestampMsSchema$3
|
|
3790
4107
|
});
|
|
3791
4108
|
const agentActivityPublicDigestSchema = strictObject({
|
|
3792
4109
|
citations: array(agentActivityDigestCitationSchema).max(20),
|
|
3793
|
-
createdAtMs: timestampMsSchema$
|
|
4110
|
+
createdAtMs: timestampMsSchema$3,
|
|
3794
4111
|
eventCount: number().int().positive(),
|
|
3795
4112
|
failureReason: string().trim().min(1).max(256).nullable(),
|
|
3796
4113
|
id: boundedIdentifierSchema$6,
|
|
3797
4114
|
projectId: boundedIdentifierSchema$6,
|
|
3798
4115
|
status: enumFactory(["completed", "failed"]),
|
|
3799
4116
|
summary: string().trim().min(1).max(AGENT_ACTIVITY_DIGEST_SUMMARY_MAX_CHARS).nullable(),
|
|
3800
|
-
windowEndedAtMs: timestampMsSchema$
|
|
3801
|
-
windowStartedAtMs: timestampMsSchema$
|
|
4117
|
+
windowEndedAtMs: timestampMsSchema$3,
|
|
4118
|
+
windowStartedAtMs: timestampMsSchema$3
|
|
3802
4119
|
}).superRefine((value, context) => {
|
|
3803
4120
|
if (value.windowStartedAtMs > value.windowEndedAtMs) context.addIssue({
|
|
3804
4121
|
code: "custom",
|
|
@@ -3826,7 +4143,7 @@ const agentActivityDigestEvidenceSchema = strictObject({
|
|
|
3826
4143
|
eventId: boundedIdentifierSchema$6,
|
|
3827
4144
|
eventType: agentActivityEventTypeSchema,
|
|
3828
4145
|
memberName: string().trim().min(1).max(256),
|
|
3829
|
-
observedAtMs: timestampMsSchema$
|
|
4146
|
+
observedAtMs: timestampMsSchema$3,
|
|
3830
4147
|
provider: agentActivityProviderSchema,
|
|
3831
4148
|
status: agentActivitySessionStatusSchema,
|
|
3832
4149
|
title: nullableBoundedTextSchema(240)
|
|
@@ -3836,8 +4153,8 @@ strictObject({
|
|
|
3836
4153
|
evidence: array(agentActivityDigestEvidenceSchema).min(1).max(100),
|
|
3837
4154
|
organizationId: boundedIdentifierSchema$6,
|
|
3838
4155
|
projectId: boundedIdentifierSchema$6,
|
|
3839
|
-
windowEndedAtMs: timestampMsSchema$
|
|
3840
|
-
windowStartedAtMs: timestampMsSchema$
|
|
4156
|
+
windowEndedAtMs: timestampMsSchema$3,
|
|
4157
|
+
windowStartedAtMs: timestampMsSchema$3
|
|
3841
4158
|
}).superRefine((value, context) => {
|
|
3842
4159
|
if (value.eventCount < value.evidence.length) context.addIssue({
|
|
3843
4160
|
code: "custom",
|
|
@@ -3862,7 +4179,7 @@ strictObject({
|
|
|
3862
4179
|
});
|
|
3863
4180
|
});
|
|
3864
4181
|
const agentActivitySnapshotResponseSchema = strictObject({
|
|
3865
|
-
asOfMs: timestampMsSchema$
|
|
4182
|
+
asOfMs: timestampMsSchema$3,
|
|
3866
4183
|
digestsTruncated: boolean(),
|
|
3867
4184
|
organizationId: boundedIdentifierSchema$6,
|
|
3868
4185
|
digests: array(agentActivityPublicDigestSchema).max(500),
|
|
@@ -3887,7 +4204,7 @@ const agentActivityStatsResponseSchema = strictObject({
|
|
|
3887
4204
|
daily: array(agentActivityStatsDailySchema).max(400),
|
|
3888
4205
|
dailyTruncated: boolean(),
|
|
3889
4206
|
organizationId: boundedIdentifierSchema$6,
|
|
3890
|
-
sinceMs: timestampMsSchema$
|
|
4207
|
+
sinceMs: timestampMsSchema$3.nullable(),
|
|
3891
4208
|
totalActiveDurationMs: number().int().nonnegative(),
|
|
3892
4209
|
totalSessions: number().int().nonnegative()
|
|
3893
4210
|
});
|
|
@@ -3951,7 +4268,7 @@ const CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT = "practical-v2";
|
|
|
3951
4268
|
const CENTER_AGENT_ROUTINE_MANAGEMENT_V1_CONTRACT = "management-v1";
|
|
3952
4269
|
const CENTER_AGENT_ROUTINE_MANAGEMENT_CONTRACT = "management-v2";
|
|
3953
4270
|
const trimmedIdentifierSchema = string().trim().min(1).max(256);
|
|
3954
|
-
const timestampMsSchema$
|
|
4271
|
+
const timestampMsSchema$2 = number().int().nonnegative();
|
|
3955
4272
|
const centerAgentRoutineRunScheduledForMsSchema = number().int().min(Number.MIN_SAFE_INTEGER).max(Number.MAX_SAFE_INTEGER);
|
|
3956
4273
|
const nullableTrimmedTextSchema = (maximum) => string().trim().min(1).max(maximum).nullable();
|
|
3957
4274
|
const queryIntegerPattern = /^\d+$/u;
|
|
@@ -3976,16 +4293,16 @@ const centerAgentRoutineTargetSpaceSchema = strictObject({
|
|
|
3976
4293
|
const centerAgentRoutineLastRunSummarySchema = strictObject({
|
|
3977
4294
|
failureCode: nullableTrimmedTextSchema(256),
|
|
3978
4295
|
failureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),
|
|
3979
|
-
finishedAtMs: timestampMsSchema$
|
|
4296
|
+
finishedAtMs: timestampMsSchema$2.nullable(),
|
|
3980
4297
|
id: trimmedIdentifierSchema,
|
|
3981
4298
|
publishedSignalId: nullableTrimmedTextSchema(256),
|
|
3982
4299
|
scheduledFor: centerAgentRoutineRunScheduledForMsSchema,
|
|
3983
|
-
startedAtMs: timestampMsSchema$
|
|
4300
|
+
startedAtMs: timestampMsSchema$2.nullable(),
|
|
3984
4301
|
status: centerAgentRoutineRunStatusSchema
|
|
3985
4302
|
}).superRefine(validateRoutineRunScheduledFor);
|
|
3986
4303
|
const routineScheduleShape = {
|
|
3987
4304
|
cronExpression: nullableTrimmedTextSchema(256),
|
|
3988
|
-
runAtMs: timestampMsSchema$
|
|
4305
|
+
runAtMs: timestampMsSchema$2.nullable().default(null),
|
|
3989
4306
|
scheduleKind: centerAgentRoutineScheduleKindSchema.default("cron"),
|
|
3990
4307
|
timezone: nullableTrimmedTextSchema(128)
|
|
3991
4308
|
};
|
|
@@ -4001,7 +4318,7 @@ const routineDestinationShape = {
|
|
|
4001
4318
|
};
|
|
4002
4319
|
const centerAgentRoutineShape = {
|
|
4003
4320
|
canManage: boolean(),
|
|
4004
|
-
createdAtMs: timestampMsSchema$
|
|
4321
|
+
createdAtMs: timestampMsSchema$2,
|
|
4005
4322
|
createdByUserId: trimmedIdentifierSchema,
|
|
4006
4323
|
...routineScheduleShape,
|
|
4007
4324
|
...routineDestinationShape,
|
|
@@ -4009,10 +4326,10 @@ const centerAgentRoutineShape = {
|
|
|
4009
4326
|
instructions: string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS),
|
|
4010
4327
|
lastRun: centerAgentRoutineLastRunSummarySchema.nullable(),
|
|
4011
4328
|
name: string().trim().min(1).max(120),
|
|
4012
|
-
nextDueAt: timestampMsSchema$
|
|
4329
|
+
nextDueAt: timestampMsSchema$2.nullable(),
|
|
4013
4330
|
organizationId: trimmedIdentifierSchema,
|
|
4014
4331
|
status: centerAgentRoutineStatusSchema,
|
|
4015
|
-
updatedAtMs: timestampMsSchema$
|
|
4332
|
+
updatedAtMs: timestampMsSchema$2,
|
|
4016
4333
|
updatedByUserId: trimmedIdentifierSchema
|
|
4017
4334
|
};
|
|
4018
4335
|
const centerAgentRoutineSchema = strictObject(centerAgentRoutineShape).superRefine(validateRoutineScheduleAndDestination);
|
|
@@ -4043,45 +4360,45 @@ const centerAgentRoutineRunSchema = strictObject({
|
|
|
4043
4360
|
...routineDestinationShape,
|
|
4044
4361
|
failureCode: nullableTrimmedTextSchema(256),
|
|
4045
4362
|
failureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),
|
|
4046
|
-
finishedAtMs: timestampMsSchema$
|
|
4363
|
+
finishedAtMs: timestampMsSchema$2.nullable(),
|
|
4047
4364
|
id: trimmedIdentifierSchema,
|
|
4048
4365
|
nativeDeliveryId: nullableTrimmedTextSchema(256),
|
|
4049
4366
|
organizationId: trimmedIdentifierSchema,
|
|
4050
4367
|
publishedSignalId: nullableTrimmedTextSchema(256),
|
|
4051
4368
|
routineId: trimmedIdentifierSchema,
|
|
4052
4369
|
scheduledFor: centerAgentRoutineRunScheduledForMsSchema,
|
|
4053
|
-
startedAtMs: timestampMsSchema$
|
|
4370
|
+
startedAtMs: timestampMsSchema$2.nullable(),
|
|
4054
4371
|
status: centerAgentRoutineRunStatusSchema
|
|
4055
4372
|
}).superRefine(validateRoutineRunScheduledFor);
|
|
4056
4373
|
const centerAgentRoutineLegacyV1Schema = strictObject({
|
|
4057
4374
|
canManage: boolean(),
|
|
4058
|
-
createdAtMs: timestampMsSchema$
|
|
4375
|
+
createdAtMs: timestampMsSchema$2,
|
|
4059
4376
|
createdByUserId: trimmedIdentifierSchema,
|
|
4060
4377
|
cronExpression: string().trim().min(1).max(256),
|
|
4061
4378
|
id: trimmedIdentifierSchema,
|
|
4062
4379
|
instructions: string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS),
|
|
4063
4380
|
lastRun: centerAgentRoutineLastRunSummarySchema.nullable(),
|
|
4064
4381
|
name: string().trim().min(1).max(120),
|
|
4065
|
-
nextDueAt: timestampMsSchema$
|
|
4382
|
+
nextDueAt: timestampMsSchema$2.nullable(),
|
|
4066
4383
|
organizationId: trimmedIdentifierSchema,
|
|
4067
4384
|
scheduleKind: literal("cron"),
|
|
4068
4385
|
status: enumFactory(["enabled", "paused"]),
|
|
4069
4386
|
targetSpaceId: trimmedIdentifierSchema,
|
|
4070
4387
|
timezone: string().trim().min(1).max(128),
|
|
4071
|
-
updatedAtMs: timestampMsSchema$
|
|
4388
|
+
updatedAtMs: timestampMsSchema$2,
|
|
4072
4389
|
updatedByUserId: trimmedIdentifierSchema
|
|
4073
4390
|
});
|
|
4074
4391
|
const centerAgentRoutineRunLegacyV1Schema = strictObject({
|
|
4075
4392
|
failureCode: nullableTrimmedTextSchema(256),
|
|
4076
4393
|
failureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),
|
|
4077
|
-
finishedAtMs: timestampMsSchema$
|
|
4394
|
+
finishedAtMs: timestampMsSchema$2.nullable(),
|
|
4078
4395
|
id: trimmedIdentifierSchema,
|
|
4079
4396
|
nativeDeliveryId: nullableTrimmedTextSchema(256),
|
|
4080
4397
|
organizationId: trimmedIdentifierSchema,
|
|
4081
4398
|
publishedSignalId: nullableTrimmedTextSchema(256),
|
|
4082
4399
|
routineId: trimmedIdentifierSchema,
|
|
4083
4400
|
scheduledFor: centerAgentRoutineRunScheduledForMsSchema,
|
|
4084
|
-
startedAtMs: timestampMsSchema$
|
|
4401
|
+
startedAtMs: timestampMsSchema$2.nullable(),
|
|
4085
4402
|
status: centerAgentRoutineRunStatusSchema
|
|
4086
4403
|
}).superRefine(validateRoutineRunScheduledFor);
|
|
4087
4404
|
const routineContractQueryShape = { contract: centerAgentRoutineContractSchema.optional() };
|
|
@@ -4133,7 +4450,7 @@ const routineUpdateShape = {
|
|
|
4133
4450
|
destinationKind: centerAgentRoutineDestinationKindSchema.optional(),
|
|
4134
4451
|
instructions: string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS).optional(),
|
|
4135
4452
|
name: string().trim().min(1).max(120).optional(),
|
|
4136
|
-
runAtMs: timestampMsSchema$
|
|
4453
|
+
runAtMs: timestampMsSchema$2.nullable().optional(),
|
|
4137
4454
|
scheduleKind: centerAgentRoutineScheduleKindSchema.optional(),
|
|
4138
4455
|
slackChannelId: nullableTrimmedTextSchema(256).optional(),
|
|
4139
4456
|
slackConversationId: nullableTrimmedTextSchema(512).optional(),
|
|
@@ -4287,7 +4604,7 @@ const FEEDBACK_ISSUE_ERROR_CODES = [
|
|
|
4287
4604
|
FEEDBACK_ISSUE_INVALID_TRANSITION_ERROR_CODE
|
|
4288
4605
|
];
|
|
4289
4606
|
const boundedIdentifierSchema$5 = z$1.string().trim().min(1).max(256);
|
|
4290
|
-
const timestampMsSchema$
|
|
4607
|
+
const timestampMsSchema$1 = z$1.number().int().nonnegative();
|
|
4291
4608
|
const feedbackIssueCategorySchema = z$1.enum([
|
|
4292
4609
|
"bug",
|
|
4293
4610
|
"experience",
|
|
@@ -4339,7 +4656,7 @@ z$1.strictObject({
|
|
|
4339
4656
|
submitterUserId: z$1.string().min(1).nullable()
|
|
4340
4657
|
});
|
|
4341
4658
|
const feedbackIssueCursorSchema = z$1.strictObject({
|
|
4342
|
-
createdAtMs: timestampMsSchema$
|
|
4659
|
+
createdAtMs: timestampMsSchema$1,
|
|
4343
4660
|
issueId: boundedIdentifierSchema$5
|
|
4344
4661
|
});
|
|
4345
4662
|
const feedbackIssueRecordSchema = z$1.strictObject({
|
|
@@ -4356,8 +4673,8 @@ const feedbackIssueRecordSchema = z$1.strictObject({
|
|
|
4356
4673
|
clientContext: feedbackClientContextSchema.nullable(),
|
|
4357
4674
|
status: feedbackIssueStatusSchema,
|
|
4358
4675
|
triageNote: z$1.string().max(2e3).nullable(),
|
|
4359
|
-
createdAtMs: timestampMsSchema$
|
|
4360
|
-
updatedAtMs: timestampMsSchema$
|
|
4676
|
+
createdAtMs: timestampMsSchema$1,
|
|
4677
|
+
updatedAtMs: timestampMsSchema$1
|
|
4361
4678
|
});
|
|
4362
4679
|
z$1.strictObject({
|
|
4363
4680
|
organizationId: boundedIdentifierSchema$5,
|
|
@@ -4699,14 +5016,14 @@ const ORGANIZATION_SKILL_ERROR_CODES = [
|
|
|
4699
5016
|
"organization_skill.unsafe_bundle",
|
|
4700
5017
|
"organization_skill.version_conflict"
|
|
4701
5018
|
];
|
|
4702
|
-
const identifierSchema$
|
|
4703
|
-
const isoDateTimeSchema$
|
|
5019
|
+
const identifierSchema$2 = string().trim().min(1).max(256);
|
|
5020
|
+
const isoDateTimeSchema$6 = iso.datetime({ offset: true });
|
|
4704
5021
|
const digestSchema = string().regex(/^[a-f0-9]{64}$/);
|
|
4705
5022
|
const skillNameSchema = string().trim().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Skill names use lowercase letters, numbers, and single hyphens.");
|
|
4706
5023
|
const descriptionSchema = string().trim().min(1).max(ORGANIZATION_SKILL_DESCRIPTION_MAX_CHARS);
|
|
4707
5024
|
const instructionsSchema = string().max(ORGANIZATION_SKILL_INSTRUCTIONS_MAX_CHARS);
|
|
4708
5025
|
const sourceUrlSchema = url().max(2048);
|
|
4709
|
-
const operationIdSchema$
|
|
5026
|
+
const operationIdSchema$2 = string().trim().min(1).max(256);
|
|
4710
5027
|
const metadataSchema = record(string().trim().min(1).max(128), string().max(1024));
|
|
4711
5028
|
const organizationSkillGitHubSourceSchema = strictObject({
|
|
4712
5029
|
commitSha: string().regex(/^[a-f0-9]{40}$/),
|
|
@@ -4794,10 +5111,10 @@ const organizationSkillBundleSchema = strictObject({
|
|
|
4794
5111
|
});
|
|
4795
5112
|
});
|
|
4796
5113
|
const organizationSkillReleaseSummarySchema = strictObject({
|
|
4797
|
-
createdAt: isoDateTimeSchema$
|
|
4798
|
-
createdByUserId: identifierSchema$
|
|
5114
|
+
createdAt: isoDateTimeSchema$6,
|
|
5115
|
+
createdByUserId: identifierSchema$2,
|
|
4799
5116
|
digest: digestSchema,
|
|
4800
|
-
id: identifierSchema$
|
|
5117
|
+
id: identifierSchema$2,
|
|
4801
5118
|
source: organizationSkillSourceSchema
|
|
4802
5119
|
});
|
|
4803
5120
|
const organizationSkillPermissionsSchema = strictObject({
|
|
@@ -4806,73 +5123,73 @@ const organizationSkillPermissionsSchema = strictObject({
|
|
|
4806
5123
|
});
|
|
4807
5124
|
const organizationSkillSummarySchema = strictObject({
|
|
4808
5125
|
activeRelease: organizationSkillReleaseSummarySchema,
|
|
4809
|
-
createdAt: isoDateTimeSchema$
|
|
5126
|
+
createdAt: isoDateTimeSchema$6,
|
|
4810
5127
|
description: descriptionSchema,
|
|
4811
5128
|
enabled: boolean(),
|
|
4812
|
-
id: identifierSchema$
|
|
5129
|
+
id: identifierSchema$2,
|
|
4813
5130
|
name: skillNameSchema,
|
|
4814
|
-
organizationId: identifierSchema$
|
|
5131
|
+
organizationId: identifierSchema$2,
|
|
4815
5132
|
permissions: organizationSkillPermissionsSchema,
|
|
4816
5133
|
source: organizationSkillSourceSchema,
|
|
4817
|
-
updatedAt: isoDateTimeSchema$
|
|
5134
|
+
updatedAt: isoDateTimeSchema$6,
|
|
4818
5135
|
version: number().int().positive()
|
|
4819
5136
|
});
|
|
4820
5137
|
const organizationSkillSchema = organizationSkillSummarySchema.extend({
|
|
4821
5138
|
bundle: organizationSkillBundleSchema,
|
|
4822
|
-
maintainerUserIds: array(identifierSchema$
|
|
5139
|
+
maintainerUserIds: array(identifierSchema$2),
|
|
4823
5140
|
releases: array(organizationSkillReleaseSummarySchema)
|
|
4824
5141
|
});
|
|
4825
5142
|
strictObject({});
|
|
4826
5143
|
const listOrganizationSkillsResponseSchema = strictObject({
|
|
4827
5144
|
canManage: boolean(),
|
|
4828
|
-
organizationId: identifierSchema$
|
|
5145
|
+
organizationId: identifierSchema$2,
|
|
4829
5146
|
skills: array(organizationSkillSummarySchema)
|
|
4830
5147
|
});
|
|
4831
|
-
const organizationSkillRouteParamsSchema = strictObject({ skillId: identifierSchema$
|
|
5148
|
+
const organizationSkillRouteParamsSchema = strictObject({ skillId: identifierSchema$2 });
|
|
4832
5149
|
const getOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4833
5150
|
const createOrganizationSkillBodySchema = strictObject({
|
|
4834
5151
|
description: descriptionSchema,
|
|
4835
|
-
expectedOrganizationId: identifierSchema$
|
|
5152
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4836
5153
|
instructions: instructionsSchema,
|
|
4837
5154
|
name: skillNameSchema
|
|
4838
5155
|
});
|
|
4839
5156
|
const createOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4840
5157
|
const updateOrganizationSkillBodySchema = strictObject({
|
|
4841
5158
|
bundle: organizationSkillBundleSchema,
|
|
4842
|
-
expectedActiveReleaseId: identifierSchema$
|
|
4843
|
-
expectedOrganizationId: identifierSchema$
|
|
5159
|
+
expectedActiveReleaseId: identifierSchema$2,
|
|
5160
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4844
5161
|
expectedVersion: number().int().positive()
|
|
4845
5162
|
});
|
|
4846
5163
|
const updateOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4847
5164
|
const setOrganizationSkillEnabledBodySchema = strictObject({
|
|
4848
5165
|
enabled: boolean(),
|
|
4849
|
-
expectedOrganizationId: identifierSchema$
|
|
5166
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4850
5167
|
expectedVersion: number().int().positive()
|
|
4851
5168
|
});
|
|
4852
5169
|
const setOrganizationSkillEnabledResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4853
5170
|
const setOrganizationSkillMaintainersBodySchema = strictObject({
|
|
4854
|
-
expectedOrganizationId: identifierSchema$
|
|
5171
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4855
5172
|
expectedVersion: number().int().positive(),
|
|
4856
|
-
maintainerUserIds: array(identifierSchema$
|
|
5173
|
+
maintainerUserIds: array(identifierSchema$2).max(100)
|
|
4857
5174
|
});
|
|
4858
5175
|
const setOrganizationSkillMaintainersResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4859
5176
|
const deleteOrganizationSkillBodySchema = strictObject({
|
|
4860
|
-
expectedOrganizationId: identifierSchema$
|
|
5177
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4861
5178
|
expectedVersion: number().int().positive()
|
|
4862
5179
|
});
|
|
4863
5180
|
const deleteOrganizationSkillResponseSchema = strictObject({
|
|
4864
5181
|
deleted: literal(true),
|
|
4865
|
-
organizationId: identifierSchema$
|
|
4866
|
-
skillId: identifierSchema$
|
|
5182
|
+
organizationId: identifierSchema$2,
|
|
5183
|
+
skillId: identifierSchema$2
|
|
4867
5184
|
});
|
|
4868
5185
|
const importOrganizationSkillFromGitHubBodySchema = strictObject({
|
|
4869
5186
|
expectedCommitSha: string().regex(/^[a-f0-9]{40}$/).optional(),
|
|
4870
|
-
expectedOrganizationId: identifierSchema$
|
|
5187
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4871
5188
|
url: sourceUrlSchema
|
|
4872
5189
|
});
|
|
4873
5190
|
const importOrganizationSkillFromGitHubResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4874
5191
|
const previewOrganizationSkillFromGitHubBodySchema = strictObject({
|
|
4875
|
-
expectedOrganizationId: identifierSchema$
|
|
5192
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4876
5193
|
url: sourceUrlSchema
|
|
4877
5194
|
});
|
|
4878
5195
|
const organizationSkillGitHubPreviewSchema = strictObject({
|
|
@@ -4888,7 +5205,7 @@ const organizationSkillGitHubPreviewSchema = strictObject({
|
|
|
4888
5205
|
warnings: array(string().trim().min(1).max(1024))
|
|
4889
5206
|
});
|
|
4890
5207
|
const previewOrganizationSkillFromGitHubResponseSchema = strictObject({
|
|
4891
|
-
organizationId: identifierSchema$
|
|
5208
|
+
organizationId: identifierSchema$2,
|
|
4892
5209
|
preview: organizationSkillGitHubPreviewSchema
|
|
4893
5210
|
});
|
|
4894
5211
|
discriminatedUnion("action", [
|
|
@@ -4900,7 +5217,7 @@ discriminatedUnion("action", [
|
|
|
4900
5217
|
strictObject({
|
|
4901
5218
|
action: literal("get"),
|
|
4902
5219
|
context: openMeldRequestContextSchema,
|
|
4903
|
-
skillId: identifierSchema$
|
|
5220
|
+
skillId: identifierSchema$2,
|
|
4904
5221
|
speakerMember: centerAgentToolSpeakerSchema
|
|
4905
5222
|
}),
|
|
4906
5223
|
strictObject({
|
|
@@ -4914,17 +5231,17 @@ discriminatedUnion("action", [
|
|
|
4914
5231
|
strictObject({
|
|
4915
5232
|
action: literal("list"),
|
|
4916
5233
|
canManage: boolean(),
|
|
4917
|
-
organizationId: identifierSchema$
|
|
5234
|
+
organizationId: identifierSchema$2,
|
|
4918
5235
|
skills: array(organizationSkillSummarySchema)
|
|
4919
5236
|
}),
|
|
4920
5237
|
strictObject({
|
|
4921
5238
|
action: literal("get"),
|
|
4922
|
-
organizationId: identifierSchema$
|
|
5239
|
+
organizationId: identifierSchema$2,
|
|
4923
5240
|
skill: organizationSkillSchema
|
|
4924
5241
|
}),
|
|
4925
5242
|
strictObject({
|
|
4926
5243
|
action: literal("preview_github"),
|
|
4927
|
-
organizationId: identifierSchema$
|
|
5244
|
+
organizationId: identifierSchema$2,
|
|
4928
5245
|
preview: organizationSkillGitHubPreviewSchema
|
|
4929
5246
|
})
|
|
4930
5247
|
]);
|
|
@@ -4932,62 +5249,62 @@ discriminatedUnion("action", [strictObject({
|
|
|
4932
5249
|
action: literal("create"),
|
|
4933
5250
|
bundle: organizationSkillBundleSchema,
|
|
4934
5251
|
context: openMeldRequestContextSchema,
|
|
4935
|
-
operationId: operationIdSchema$
|
|
5252
|
+
operationId: operationIdSchema$2,
|
|
4936
5253
|
speakerMember: centerAgentToolSpeakerSchema
|
|
4937
5254
|
}), strictObject({
|
|
4938
5255
|
action: literal("import_github"),
|
|
4939
5256
|
context: openMeldRequestContextSchema,
|
|
4940
5257
|
expectedCommitSha: string().regex(/^[a-f0-9]{40}$/),
|
|
4941
|
-
operationId: operationIdSchema$
|
|
5258
|
+
operationId: operationIdSchema$2,
|
|
4942
5259
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
4943
5260
|
url: sourceUrlSchema
|
|
4944
5261
|
})]);
|
|
4945
5262
|
discriminatedUnion("action", [strictObject({
|
|
4946
5263
|
action: literal("create"),
|
|
4947
|
-
organizationId: identifierSchema$
|
|
5264
|
+
organizationId: identifierSchema$2,
|
|
4948
5265
|
skill: organizationSkillSummarySchema
|
|
4949
5266
|
}), strictObject({
|
|
4950
5267
|
action: literal("import_github"),
|
|
4951
|
-
organizationId: identifierSchema$
|
|
5268
|
+
organizationId: identifierSchema$2,
|
|
4952
5269
|
skill: organizationSkillSummarySchema
|
|
4953
5270
|
})]);
|
|
4954
5271
|
const organizationSkillRuntimeReleaseSchema = strictObject({
|
|
4955
5272
|
bundle: organizationSkillBundleSchema,
|
|
4956
5273
|
digest: digestSchema,
|
|
4957
|
-
releaseId: identifierSchema$
|
|
4958
|
-
skillId: identifierSchema$
|
|
5274
|
+
releaseId: identifierSchema$2,
|
|
5275
|
+
skillId: identifierSchema$2
|
|
4959
5276
|
});
|
|
4960
5277
|
const organizationSkillRuntimeReleaseSelectionSchema = strictObject({
|
|
4961
5278
|
digest: digestSchema,
|
|
4962
5279
|
name: skillNameSchema,
|
|
4963
|
-
releaseId: identifierSchema$
|
|
4964
|
-
skillId: identifierSchema$
|
|
5280
|
+
releaseId: identifierSchema$2,
|
|
5281
|
+
skillId: identifierSchema$2
|
|
4965
5282
|
});
|
|
4966
5283
|
strictObject({
|
|
4967
|
-
organizationId: identifierSchema$
|
|
5284
|
+
organizationId: identifierSchema$2,
|
|
4968
5285
|
releases: array(organizationSkillRuntimeReleaseSchema).max(64)
|
|
4969
5286
|
});
|
|
4970
5287
|
strictObject({ context: openMeldRequestContextSchema });
|
|
4971
5288
|
strictObject({
|
|
4972
5289
|
context: openMeldRequestContextSchema,
|
|
4973
|
-
skillId: identifierSchema$
|
|
5290
|
+
skillId: identifierSchema$2
|
|
4974
5291
|
});
|
|
4975
5292
|
createOrganizationSkillBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
4976
5293
|
updateOrganizationSkillBodySchema.extend({
|
|
4977
5294
|
context: openMeldRequestContextSchema,
|
|
4978
|
-
skillId: identifierSchema$
|
|
5295
|
+
skillId: identifierSchema$2
|
|
4979
5296
|
});
|
|
4980
5297
|
setOrganizationSkillEnabledBodySchema.extend({
|
|
4981
5298
|
context: openMeldRequestContextSchema,
|
|
4982
|
-
skillId: identifierSchema$
|
|
5299
|
+
skillId: identifierSchema$2
|
|
4983
5300
|
});
|
|
4984
5301
|
setOrganizationSkillMaintainersBodySchema.extend({
|
|
4985
5302
|
context: openMeldRequestContextSchema,
|
|
4986
|
-
skillId: identifierSchema$
|
|
5303
|
+
skillId: identifierSchema$2
|
|
4987
5304
|
});
|
|
4988
5305
|
deleteOrganizationSkillBodySchema.extend({
|
|
4989
5306
|
context: openMeldRequestContextSchema,
|
|
4990
|
-
skillId: identifierSchema$
|
|
5307
|
+
skillId: identifierSchema$2
|
|
4991
5308
|
});
|
|
4992
5309
|
importOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
4993
5310
|
previewOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
@@ -4999,10 +5316,10 @@ strictObject({
|
|
|
4999
5316
|
strictObject({
|
|
5000
5317
|
context: openMeldRequestContextSchema,
|
|
5001
5318
|
digest: digestSchema,
|
|
5002
|
-
releaseId: identifierSchema$
|
|
5003
|
-
routineRunId: identifierSchema$
|
|
5004
|
-
skillId: identifierSchema$
|
|
5005
|
-
submissionId: identifierSchema$
|
|
5319
|
+
releaseId: identifierSchema$2,
|
|
5320
|
+
routineRunId: identifierSchema$2.nullable(),
|
|
5321
|
+
skillId: identifierSchema$2,
|
|
5322
|
+
submissionId: identifierSchema$2
|
|
5006
5323
|
});
|
|
5007
5324
|
strictObject({ recorded: boolean() });
|
|
5008
5325
|
function isSafePortableSkillPath(value) {
|
|
@@ -5054,7 +5371,7 @@ const spaceAccessModeStateSchema = z$1.strictObject({
|
|
|
5054
5371
|
//#endregion
|
|
5055
5372
|
//#region ../../packages/schemas/dist/schemas/http/space-meta.js
|
|
5056
5373
|
const trimmedNonEmptyStringSchema$12 = z$1.string().trim().min(1);
|
|
5057
|
-
const isoDateTimeSchema$
|
|
5374
|
+
const isoDateTimeSchema$5 = z$1.iso.datetime({ offset: true });
|
|
5058
5375
|
const MAX_SPACE_GUIDE_LENGTH = 4e3;
|
|
5059
5376
|
const spaceOrganizationVisibilitySchema = z$1.enum(["public", "private"]);
|
|
5060
5377
|
function resolveInitialSpaceAccessMode(_visibility) {
|
|
@@ -5082,7 +5399,7 @@ const spaceStorageUsageSchema = z$1.strictObject({
|
|
|
5082
5399
|
usagePercent: z$1.number().finite().min(0)
|
|
5083
5400
|
});
|
|
5084
5401
|
const spaceDirectMessageMetaSchema = z$1.strictObject({
|
|
5085
|
-
convertedAt: isoDateTimeSchema$
|
|
5402
|
+
convertedAt: isoDateTimeSchema$5.optional(),
|
|
5086
5403
|
pairKey: trimmedNonEmptyStringSchema$12
|
|
5087
5404
|
});
|
|
5088
5405
|
const spaceMetaSchema = z$1.strictObject({
|
|
@@ -5098,8 +5415,8 @@ const spaceMetaSchema = z$1.strictObject({
|
|
|
5098
5415
|
guide: trimmedNonEmptyStringSchema$12.optional(),
|
|
5099
5416
|
accessMode: spaceAccessModeSchema.optional(),
|
|
5100
5417
|
passwordProtected: z$1.boolean().optional(),
|
|
5101
|
-
createdAt: isoDateTimeSchema$
|
|
5102
|
-
updatedAt: isoDateTimeSchema$
|
|
5418
|
+
createdAt: isoDateTimeSchema$5.optional(),
|
|
5419
|
+
updatedAt: isoDateTimeSchema$5.optional(),
|
|
5103
5420
|
storageUsage: spaceStorageUsageSchema.optional()
|
|
5104
5421
|
});
|
|
5105
5422
|
const patchSpaceMetaResponseSchema = spaceMetaSchema;
|
|
@@ -5787,7 +6104,7 @@ const messageChannelIdentityLinkConsumeResponseSchema = strictObject({
|
|
|
5787
6104
|
//#endregion
|
|
5788
6105
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-member-research.js
|
|
5789
6106
|
const trimmedNonEmptyStringSchema$8 = z$1.string().trim().min(1);
|
|
5790
|
-
const isoDateTimeSchema$
|
|
6107
|
+
const isoDateTimeSchema$4 = z$1.iso.datetime({ offset: true });
|
|
5791
6108
|
const memberResearchTextSchema = z$1.string().trim().min(1).max(1e3);
|
|
5792
6109
|
const CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES = [
|
|
5793
6110
|
"organization_directory",
|
|
@@ -5908,8 +6225,8 @@ const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
|
5908
6225
|
position: z$1.number().int().positive(),
|
|
5909
6226
|
status: centerAgentMemberResearchTaskStatusSchema,
|
|
5910
6227
|
failureCode: trimmedNonEmptyStringSchema$8.nullable(),
|
|
5911
|
-
startedAt: isoDateTimeSchema$
|
|
5912
|
-
finishedAt: isoDateTimeSchema$
|
|
6228
|
+
startedAt: isoDateTimeSchema$4.nullable(),
|
|
6229
|
+
finishedAt: isoDateTimeSchema$4.nullable()
|
|
5913
6230
|
}).superRefine((task, context) => {
|
|
5914
6231
|
if (!(task.status === "queued" && task.startedAt === null && task.finishedAt === null && task.failureCode === null || task.status === "running" && task.startedAt !== null && task.finishedAt === null && task.failureCode === null || task.status === "completed" && task.startedAt !== null && task.finishedAt !== null && task.failureCode === null || task.status === "failed" && task.startedAt !== null && task.finishedAt !== null && task.failureCode !== null)) context.addIssue({
|
|
5915
6232
|
code: "custom",
|
|
@@ -5930,8 +6247,8 @@ const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
|
5930
6247
|
totalCount: z$1.number().int().positive(),
|
|
5931
6248
|
completedCount: z$1.number().int().nonnegative(),
|
|
5932
6249
|
failedCount: z$1.number().int().nonnegative(),
|
|
5933
|
-
createdAt: isoDateTimeSchema$
|
|
5934
|
-
updatedAt: isoDateTimeSchema$
|
|
6250
|
+
createdAt: isoDateTimeSchema$4,
|
|
6251
|
+
updatedAt: isoDateTimeSchema$4,
|
|
5935
6252
|
tasks: z$1.array(centerAgentMemberResearchTaskSchema).min(1)
|
|
5936
6253
|
}).superRefine((batch, context) => {
|
|
5937
6254
|
const completedCount = batch.tasks.filter((task) => task.status === "completed").length;
|
|
@@ -6039,68 +6356,68 @@ const organizationDocumentKindSchema = enumFactory([
|
|
|
6039
6356
|
"knowledge"
|
|
6040
6357
|
]);
|
|
6041
6358
|
const profileReportTypeSchema = enumFactory(["work_profile"]);
|
|
6042
|
-
const identifierSchema$
|
|
6043
|
-
const titleSchema
|
|
6359
|
+
const identifierSchema$1 = string().trim().min(1).max(256);
|
|
6360
|
+
const titleSchema = string().trim().min(1).max(200);
|
|
6044
6361
|
const folderNameSchema = string().trim().min(1).max(200);
|
|
6045
6362
|
const contentSchema = string().max(ORGANIZATION_DOCUMENT_CONTENT_MAX_CHARS);
|
|
6046
|
-
const isoDateTimeSchema$
|
|
6047
|
-
const operationIdSchema = string().trim().min(1).max(256);
|
|
6363
|
+
const isoDateTimeSchema$3 = iso.datetime({ offset: true });
|
|
6364
|
+
const operationIdSchema$1 = string().trim().min(1).max(256);
|
|
6048
6365
|
const organizationDocumentFolderSchema = strictObject({
|
|
6049
|
-
createdAt: isoDateTimeSchema$
|
|
6050
|
-
id: identifierSchema$
|
|
6366
|
+
createdAt: isoDateTimeSchema$3,
|
|
6367
|
+
id: identifierSchema$1,
|
|
6051
6368
|
isManaged: boolean().default(false),
|
|
6052
6369
|
name: folderNameSchema,
|
|
6053
|
-
organizationId: identifierSchema$
|
|
6054
|
-
parentFolderId: identifierSchema$
|
|
6055
|
-
updatedAt: isoDateTimeSchema$
|
|
6370
|
+
organizationId: identifierSchema$1,
|
|
6371
|
+
parentFolderId: identifierSchema$1.nullable().optional(),
|
|
6372
|
+
updatedAt: isoDateTimeSchema$3
|
|
6056
6373
|
});
|
|
6057
6374
|
const organizationDocumentSummarySchema = strictObject({
|
|
6058
6375
|
canEditContent: boolean(),
|
|
6059
6376
|
canManage: boolean(),
|
|
6060
|
-
createdAt: isoDateTimeSchema$
|
|
6061
|
-
folderId: identifierSchema$
|
|
6377
|
+
createdAt: isoDateTimeSchema$3,
|
|
6378
|
+
folderId: identifierSchema$1.nullable(),
|
|
6062
6379
|
hasDraft: boolean(),
|
|
6063
|
-
id: identifierSchema$
|
|
6380
|
+
id: identifierSchema$1,
|
|
6064
6381
|
kind: organizationDocumentKindSchema,
|
|
6065
|
-
organizationId: identifierSchema$
|
|
6382
|
+
organizationId: identifierSchema$1,
|
|
6066
6383
|
profileReportDate: iso.date().nullable().optional(),
|
|
6067
6384
|
profileReportType: profileReportTypeSchema.nullable().optional(),
|
|
6068
|
-
subjectUserId: identifierSchema$
|
|
6069
|
-
title: titleSchema
|
|
6070
|
-
updatedAt: isoDateTimeSchema$
|
|
6385
|
+
subjectUserId: identifierSchema$1.nullable(),
|
|
6386
|
+
title: titleSchema,
|
|
6387
|
+
updatedAt: isoDateTimeSchema$3
|
|
6071
6388
|
});
|
|
6072
6389
|
const organizationDocumentSchema = organizationDocumentSummarySchema.omit({ hasDraft: true }).extend({
|
|
6073
6390
|
content: contentSchema,
|
|
6074
6391
|
draftContent: contentSchema.nullable(),
|
|
6075
|
-
draftCreatedAt: isoDateTimeSchema$
|
|
6392
|
+
draftCreatedAt: isoDateTimeSchema$3.nullable(),
|
|
6076
6393
|
draftCreatedBy: literal(CENTER_AGENT_ORGANIZATION_DOCUMENT_DRAFT_CREATED_BY).nullable()
|
|
6077
6394
|
});
|
|
6078
6395
|
strictObject({});
|
|
6079
6396
|
const listOrganizationDocumentsResponseSchema = strictObject({
|
|
6080
6397
|
canManage: boolean(),
|
|
6081
|
-
currentUserId: identifierSchema$
|
|
6398
|
+
currentUserId: identifierSchema$1,
|
|
6082
6399
|
documents: array(organizationDocumentSummarySchema),
|
|
6083
6400
|
folders: array(organizationDocumentFolderSchema),
|
|
6084
|
-
organizationId: identifierSchema$
|
|
6401
|
+
organizationId: identifierSchema$1
|
|
6085
6402
|
});
|
|
6086
|
-
const organizationDocumentRouteParamsSchema = strictObject({ documentId: identifierSchema$
|
|
6403
|
+
const organizationDocumentRouteParamsSchema = strictObject({ documentId: identifierSchema$1 });
|
|
6087
6404
|
const getOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6088
6405
|
const createOrganizationDocumentBodySchema = strictObject({
|
|
6089
6406
|
content: contentSchema,
|
|
6090
|
-
expectedOrganizationId: identifierSchema$
|
|
6091
|
-
folderId: identifierSchema$
|
|
6407
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6408
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6092
6409
|
kind: organizationDocumentKindSchema,
|
|
6093
|
-
subjectUserId: identifierSchema$
|
|
6094
|
-
title: titleSchema
|
|
6410
|
+
subjectUserId: identifierSchema$1.nullable().optional(),
|
|
6411
|
+
title: titleSchema.optional()
|
|
6095
6412
|
}).superRefine(validateCreateDocumentShape);
|
|
6096
6413
|
const createOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6097
6414
|
const updateOrganizationDocumentBodySchema = strictObject({
|
|
6098
6415
|
content: contentSchema.optional(),
|
|
6099
|
-
expectedDocumentUpdatedAt: isoDateTimeSchema$
|
|
6100
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
6101
|
-
expectedOrganizationId: identifierSchema$
|
|
6102
|
-
folderId: identifierSchema$
|
|
6103
|
-
title: titleSchema
|
|
6416
|
+
expectedDocumentUpdatedAt: isoDateTimeSchema$3.optional(),
|
|
6417
|
+
expectedDraftCreatedAt: isoDateTimeSchema$3.nullable().optional(),
|
|
6418
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6419
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6420
|
+
title: titleSchema.optional()
|
|
6104
6421
|
}).superRefine((value, context) => {
|
|
6105
6422
|
if (value.content === void 0) return;
|
|
6106
6423
|
if (value.expectedDocumentUpdatedAt === void 0) context.addIssue({
|
|
@@ -6115,71 +6432,71 @@ const updateOrganizationDocumentBodySchema = strictObject({
|
|
|
6115
6432
|
});
|
|
6116
6433
|
}).refine((value) => value.content !== void 0 || value.title !== void 0 || value.folderId !== void 0, { message: "At least one document field must be updated." });
|
|
6117
6434
|
const updateOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6118
|
-
const deleteOrganizationDocumentBodySchema = strictObject({ expectedOrganizationId: identifierSchema$
|
|
6435
|
+
const deleteOrganizationDocumentBodySchema = strictObject({ expectedOrganizationId: identifierSchema$1 });
|
|
6119
6436
|
const deleteOrganizationDocumentResponseSchema = strictObject({
|
|
6120
6437
|
deleted: literal(true),
|
|
6121
|
-
documentId: identifierSchema$
|
|
6122
|
-
organizationId: identifierSchema$
|
|
6438
|
+
documentId: identifierSchema$1,
|
|
6439
|
+
organizationId: identifierSchema$1
|
|
6123
6440
|
});
|
|
6124
|
-
const organizationDocumentFolderRouteParamsSchema = strictObject({ folderId: identifierSchema$
|
|
6441
|
+
const organizationDocumentFolderRouteParamsSchema = strictObject({ folderId: identifierSchema$1 });
|
|
6125
6442
|
const createOrganizationDocumentFolderBodySchema = strictObject({
|
|
6126
|
-
expectedOrganizationId: identifierSchema$
|
|
6443
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6127
6444
|
name: folderNameSchema,
|
|
6128
|
-
parentFolderId: identifierSchema$
|
|
6445
|
+
parentFolderId: identifierSchema$1.nullable().optional()
|
|
6129
6446
|
});
|
|
6130
6447
|
const createOrganizationDocumentFolderResponseSchema = strictObject({ folder: organizationDocumentFolderSchema });
|
|
6131
6448
|
const updateOrganizationDocumentFolderBodySchema = strictObject({
|
|
6132
|
-
expectedOrganizationId: identifierSchema$
|
|
6449
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6133
6450
|
name: folderNameSchema.optional(),
|
|
6134
|
-
parentFolderId: identifierSchema$
|
|
6451
|
+
parentFolderId: identifierSchema$1.nullable().optional()
|
|
6135
6452
|
}).refine((value) => Number(value.name !== void 0) + Number(value.parentFolderId !== void 0) === 1, { message: "Exactly one folder field must be updated." });
|
|
6136
6453
|
const updateOrganizationDocumentFolderResponseSchema = strictObject({ folder: organizationDocumentFolderSchema });
|
|
6137
|
-
const deleteOrganizationDocumentFolderBodySchema = strictObject({ expectedOrganizationId: identifierSchema$
|
|
6454
|
+
const deleteOrganizationDocumentFolderBodySchema = strictObject({ expectedOrganizationId: identifierSchema$1 });
|
|
6138
6455
|
const deleteOrganizationDocumentFolderResponseSchema = strictObject({
|
|
6139
6456
|
deleted: literal(true),
|
|
6140
|
-
folderId: identifierSchema$
|
|
6141
|
-
organizationId: identifierSchema$
|
|
6457
|
+
folderId: identifierSchema$1,
|
|
6458
|
+
organizationId: identifierSchema$1
|
|
6142
6459
|
});
|
|
6143
6460
|
const approveOrganizationDocumentDraftBodySchema = strictObject({
|
|
6144
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
6145
|
-
expectedOrganizationId: identifierSchema$
|
|
6461
|
+
expectedDraftCreatedAt: isoDateTimeSchema$3,
|
|
6462
|
+
expectedOrganizationId: identifierSchema$1
|
|
6146
6463
|
});
|
|
6147
6464
|
const approveOrganizationDocumentDraftResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6148
6465
|
const discardOrganizationDocumentDraftBodySchema = strictObject({
|
|
6149
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
6150
|
-
expectedOrganizationId: identifierSchema$
|
|
6466
|
+
expectedDraftCreatedAt: isoDateTimeSchema$3,
|
|
6467
|
+
expectedOrganizationId: identifierSchema$1
|
|
6151
6468
|
});
|
|
6152
6469
|
const discardOrganizationDocumentDraftResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6153
6470
|
strictObject({ context: openMeldRequestContextSchema });
|
|
6154
6471
|
strictObject({
|
|
6155
6472
|
context: openMeldRequestContextSchema,
|
|
6156
|
-
documentId: identifierSchema$
|
|
6473
|
+
documentId: identifierSchema$1
|
|
6157
6474
|
});
|
|
6158
6475
|
createOrganizationDocumentBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
6159
6476
|
updateOrganizationDocumentBodySchema.extend({
|
|
6160
6477
|
context: openMeldRequestContextSchema,
|
|
6161
|
-
documentId: identifierSchema$
|
|
6478
|
+
documentId: identifierSchema$1
|
|
6162
6479
|
});
|
|
6163
6480
|
deleteOrganizationDocumentBodySchema.extend({
|
|
6164
6481
|
context: openMeldRequestContextSchema,
|
|
6165
|
-
documentId: identifierSchema$
|
|
6482
|
+
documentId: identifierSchema$1
|
|
6166
6483
|
});
|
|
6167
6484
|
createOrganizationDocumentFolderBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
6168
6485
|
updateOrganizationDocumentFolderBodySchema.extend({
|
|
6169
6486
|
context: openMeldRequestContextSchema,
|
|
6170
|
-
folderId: identifierSchema$
|
|
6487
|
+
folderId: identifierSchema$1
|
|
6171
6488
|
});
|
|
6172
6489
|
deleteOrganizationDocumentFolderBodySchema.extend({
|
|
6173
6490
|
context: openMeldRequestContextSchema,
|
|
6174
|
-
folderId: identifierSchema$
|
|
6491
|
+
folderId: identifierSchema$1
|
|
6175
6492
|
});
|
|
6176
6493
|
approveOrganizationDocumentDraftBodySchema.extend({
|
|
6177
6494
|
context: openMeldRequestContextSchema,
|
|
6178
|
-
documentId: identifierSchema$
|
|
6495
|
+
documentId: identifierSchema$1
|
|
6179
6496
|
});
|
|
6180
6497
|
discardOrganizationDocumentDraftBodySchema.extend({
|
|
6181
6498
|
context: openMeldRequestContextSchema,
|
|
6182
|
-
documentId: identifierSchema$
|
|
6499
|
+
documentId: identifierSchema$1
|
|
6183
6500
|
});
|
|
6184
6501
|
discriminatedUnion("action", [strictObject({
|
|
6185
6502
|
action: literal("list"),
|
|
@@ -6188,7 +6505,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
6188
6505
|
}), strictObject({
|
|
6189
6506
|
action: literal("get"),
|
|
6190
6507
|
context: openMeldRequestContextSchema,
|
|
6191
|
-
documentId: identifierSchema$
|
|
6508
|
+
documentId: identifierSchema$1,
|
|
6192
6509
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6193
6510
|
})]);
|
|
6194
6511
|
discriminatedUnion("action", [strictObject({
|
|
@@ -6201,7 +6518,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
6201
6518
|
updatedAt: true
|
|
6202
6519
|
})),
|
|
6203
6520
|
folders: array(organizationDocumentFolderSchema),
|
|
6204
|
-
organizationId: identifierSchema$
|
|
6521
|
+
organizationId: identifierSchema$1
|
|
6205
6522
|
}), strictObject({
|
|
6206
6523
|
action: literal("get"),
|
|
6207
6524
|
document: organizationDocumentSchema.pick({
|
|
@@ -6213,7 +6530,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
6213
6530
|
title: true,
|
|
6214
6531
|
updatedAt: true
|
|
6215
6532
|
}),
|
|
6216
|
-
organizationId: identifierSchema$
|
|
6533
|
+
organizationId: identifierSchema$1
|
|
6217
6534
|
})]);
|
|
6218
6535
|
const organizationDocumentComputerProjectionSchema = organizationDocumentSchema.pick({
|
|
6219
6536
|
content: true,
|
|
@@ -6228,45 +6545,45 @@ strictObject({ context: openMeldRequestContextSchema });
|
|
|
6228
6545
|
strictObject({
|
|
6229
6546
|
documents: array(organizationDocumentComputerProjectionSchema),
|
|
6230
6547
|
folders: array(organizationDocumentFolderSchema),
|
|
6231
|
-
organizationId: identifierSchema$
|
|
6548
|
+
organizationId: identifierSchema$1,
|
|
6232
6549
|
revision: string().regex(/^[a-f0-9]{64}$/u)
|
|
6233
6550
|
});
|
|
6234
6551
|
strictObject({
|
|
6235
6552
|
context: openMeldRequestContextSchema,
|
|
6236
|
-
documentId: identifierSchema$
|
|
6553
|
+
documentId: identifierSchema$1.optional(),
|
|
6237
6554
|
draftContent: contentSchema,
|
|
6238
|
-
expectedDocumentUpdatedAt: isoDateTimeSchema$
|
|
6239
|
-
folderId: identifierSchema$
|
|
6555
|
+
expectedDocumentUpdatedAt: isoDateTimeSchema$3.optional(),
|
|
6556
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6240
6557
|
kind: organizationDocumentKindSchema.optional(),
|
|
6241
6558
|
memberResearchReport: centerAgentMemberResearchReportSchema.optional(),
|
|
6242
|
-
memberResearchTaskId: identifierSchema$
|
|
6559
|
+
memberResearchTaskId: identifierSchema$1.optional(),
|
|
6243
6560
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
6244
|
-
subjectUserId: identifierSchema$
|
|
6245
|
-
title: titleSchema
|
|
6561
|
+
subjectUserId: identifierSchema$1.optional(),
|
|
6562
|
+
title: titleSchema.optional()
|
|
6246
6563
|
}).superRefine(validateCenterAgentDraftTarget);
|
|
6247
6564
|
strictObject({
|
|
6248
6565
|
document: organizationDocumentSummarySchema,
|
|
6249
6566
|
draftReplaced: boolean(),
|
|
6250
6567
|
memberResearchDraft: strictObject({
|
|
6251
6568
|
content: contentSchema,
|
|
6252
|
-
documentId: identifierSchema$
|
|
6569
|
+
documentId: identifierSchema$1,
|
|
6253
6570
|
profileReportFolderName: folderNameSchema,
|
|
6254
|
-
subjectUserId: identifierSchema$
|
|
6255
|
-
title: titleSchema
|
|
6571
|
+
subjectUserId: identifierSchema$1,
|
|
6572
|
+
title: titleSchema
|
|
6256
6573
|
}).optional()
|
|
6257
6574
|
});
|
|
6258
6575
|
strictObject({
|
|
6259
6576
|
context: openMeldRequestContextSchema,
|
|
6260
|
-
documentId: identifierSchema$
|
|
6577
|
+
documentId: identifierSchema$1,
|
|
6261
6578
|
path: string().trim().min(1).max(1024),
|
|
6262
|
-
subjectUserId: identifierSchema$
|
|
6263
|
-
taskId: identifierSchema$
|
|
6579
|
+
subjectUserId: identifierSchema$1,
|
|
6580
|
+
taskId: identifierSchema$1
|
|
6264
6581
|
});
|
|
6265
6582
|
strictObject({
|
|
6266
|
-
documentId: identifierSchema$
|
|
6583
|
+
documentId: identifierSchema$1,
|
|
6267
6584
|
path: string().trim().min(1).max(1024),
|
|
6268
6585
|
recorded: literal(true),
|
|
6269
|
-
taskId: identifierSchema$
|
|
6586
|
+
taskId: identifierSchema$1
|
|
6270
6587
|
});
|
|
6271
6588
|
const centerAgentOrganizationDocumentProjectionSchema = organizationDocumentSchema.pick({
|
|
6272
6589
|
content: true,
|
|
@@ -6281,35 +6598,35 @@ discriminatedUnion("action", [
|
|
|
6281
6598
|
action: literal("create_folder"),
|
|
6282
6599
|
context: openMeldRequestContextSchema,
|
|
6283
6600
|
name: folderNameSchema,
|
|
6284
|
-
operationId: operationIdSchema,
|
|
6285
|
-
parentFolderId: identifierSchema$
|
|
6601
|
+
operationId: operationIdSchema$1,
|
|
6602
|
+
parentFolderId: identifierSchema$1.nullable().optional(),
|
|
6286
6603
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6287
6604
|
}),
|
|
6288
6605
|
strictObject({
|
|
6289
6606
|
action: literal("rename_folder"),
|
|
6290
6607
|
context: openMeldRequestContextSchema,
|
|
6291
|
-
folderId: identifierSchema$
|
|
6608
|
+
folderId: identifierSchema$1,
|
|
6292
6609
|
name: folderNameSchema,
|
|
6293
|
-
operationId: operationIdSchema,
|
|
6610
|
+
operationId: operationIdSchema$1,
|
|
6294
6611
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6295
6612
|
}),
|
|
6296
6613
|
strictObject({
|
|
6297
6614
|
action: literal("move_document"),
|
|
6298
6615
|
context: openMeldRequestContextSchema,
|
|
6299
|
-
documentId: identifierSchema$
|
|
6300
|
-
folderId: identifierSchema$
|
|
6301
|
-
operationId: operationIdSchema,
|
|
6616
|
+
documentId: identifierSchema$1,
|
|
6617
|
+
folderId: identifierSchema$1.nullable(),
|
|
6618
|
+
operationId: operationIdSchema$1,
|
|
6302
6619
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6303
6620
|
}),
|
|
6304
6621
|
strictObject({
|
|
6305
6622
|
action: literal("save_document"),
|
|
6306
6623
|
content: contentSchema,
|
|
6307
6624
|
context: openMeldRequestContextSchema,
|
|
6308
|
-
documentId: identifierSchema$
|
|
6309
|
-
folderId: identifierSchema$
|
|
6310
|
-
operationId: operationIdSchema,
|
|
6625
|
+
documentId: identifierSchema$1.optional(),
|
|
6626
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6627
|
+
operationId: operationIdSchema$1,
|
|
6311
6628
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
6312
|
-
title: titleSchema
|
|
6629
|
+
title: titleSchema.optional()
|
|
6313
6630
|
}).superRefine((value, context) => {
|
|
6314
6631
|
if (!(value.documentId || value.title)) context.addIssue({
|
|
6315
6632
|
code: "custom",
|
|
@@ -6322,22 +6639,22 @@ discriminatedUnion("action", [
|
|
|
6322
6639
|
strictObject({
|
|
6323
6640
|
action: literal("create_folder"),
|
|
6324
6641
|
folder: organizationDocumentFolderSchema,
|
|
6325
|
-
organizationId: identifierSchema$
|
|
6642
|
+
organizationId: identifierSchema$1
|
|
6326
6643
|
}),
|
|
6327
6644
|
strictObject({
|
|
6328
6645
|
action: literal("rename_folder"),
|
|
6329
6646
|
folder: organizationDocumentFolderSchema,
|
|
6330
|
-
organizationId: identifierSchema$
|
|
6647
|
+
organizationId: identifierSchema$1
|
|
6331
6648
|
}),
|
|
6332
6649
|
strictObject({
|
|
6333
6650
|
action: literal("move_document"),
|
|
6334
6651
|
document: centerAgentOrganizationDocumentProjectionSchema,
|
|
6335
|
-
organizationId: identifierSchema$
|
|
6652
|
+
organizationId: identifierSchema$1
|
|
6336
6653
|
}),
|
|
6337
6654
|
strictObject({
|
|
6338
6655
|
action: literal("save_document"),
|
|
6339
6656
|
document: centerAgentOrganizationDocumentProjectionSchema,
|
|
6340
|
-
organizationId: identifierSchema$
|
|
6657
|
+
organizationId: identifierSchema$1,
|
|
6341
6658
|
outcome: enumFactory(["created", "updated"])
|
|
6342
6659
|
})
|
|
6343
6660
|
]);
|
|
@@ -6347,9 +6664,9 @@ strictObject({
|
|
|
6347
6664
|
});
|
|
6348
6665
|
strictObject({
|
|
6349
6666
|
briefContent: contentSchema.nullable(),
|
|
6350
|
-
documentTitles: array(titleSchema
|
|
6667
|
+
documentTitles: array(titleSchema),
|
|
6351
6668
|
organizationProtectedInformation: organizationProtectedInformationSchema.nullable().optional(),
|
|
6352
|
-
organizationId: identifierSchema$
|
|
6669
|
+
organizationId: identifierSchema$1
|
|
6353
6670
|
});
|
|
6354
6671
|
function validateCreateDocumentShape(value, context) {
|
|
6355
6672
|
if (value.kind === "member_profile" && !value.subjectUserId) context.addIssue({
|
|
@@ -6433,7 +6750,7 @@ const CONNECTOR_APP_REQUEST_STATUSES = [
|
|
|
6433
6750
|
"declined"
|
|
6434
6751
|
];
|
|
6435
6752
|
const trimmedNonEmptyStringSchema$7 = string().trim().min(1);
|
|
6436
|
-
const timestampMsSchema
|
|
6753
|
+
const timestampMsSchema = number().int().nonnegative();
|
|
6437
6754
|
const connectorCredentialValueSchema = string().min(1).max(8192);
|
|
6438
6755
|
const connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();
|
|
6439
6756
|
const connectorAppRequestedCapabilitiesSchema = array(string().trim().min(1).max(80)).max(12);
|
|
@@ -6449,14 +6766,14 @@ const githubAppInstallationIdSchema = string().regex(/^[1-9][0-9]*$/u);
|
|
|
6449
6766
|
const connectorConnectionSchema = strictObject({
|
|
6450
6767
|
canDisconnect: boolean(),
|
|
6451
6768
|
connectionName: connectorConnectionNameSchema,
|
|
6452
|
-
createdAtMs: timestampMsSchema
|
|
6453
|
-
disconnectedAtMs: timestampMsSchema
|
|
6769
|
+
createdAtMs: timestampMsSchema,
|
|
6770
|
+
disconnectedAtMs: timestampMsSchema.nullable(),
|
|
6454
6771
|
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6455
6772
|
ownerDisplayName: trimmedNonEmptyStringSchema$7,
|
|
6456
6773
|
scope: connectorConnectionScopeSchema.default("member"),
|
|
6457
6774
|
service: connectorServiceSchema,
|
|
6458
6775
|
status: connectorConnectionStatusSchema,
|
|
6459
|
-
updatedAtMs: timestampMsSchema
|
|
6776
|
+
updatedAtMs: timestampMsSchema,
|
|
6460
6777
|
userId: trimmedNonEmptyStringSchema$7
|
|
6461
6778
|
});
|
|
6462
6779
|
strictObject({
|
|
@@ -6465,10 +6782,10 @@ strictObject({
|
|
|
6465
6782
|
organizationId: trimmedNonEmptyStringSchema$7
|
|
6466
6783
|
});
|
|
6467
6784
|
const connectorAppRequestSchema = strictObject({
|
|
6468
|
-
availableAtMs: timestampMsSchema
|
|
6469
|
-
createdAtMs: timestampMsSchema
|
|
6785
|
+
availableAtMs: timestampMsSchema.nullable(),
|
|
6786
|
+
createdAtMs: timestampMsSchema,
|
|
6470
6787
|
id: string().trim().min(1).max(128),
|
|
6471
|
-
notifiedAtMs: timestampMsSchema
|
|
6788
|
+
notifiedAtMs: timestampMsSchema.nullable(),
|
|
6472
6789
|
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6473
6790
|
providerId: string().trim().min(1).max(160).nullable(),
|
|
6474
6791
|
providerName: string().trim().min(1).max(120),
|
|
@@ -6477,7 +6794,7 @@ const connectorAppRequestSchema = strictObject({
|
|
|
6477
6794
|
requesterUserId: trimmedNonEmptyStringSchema$7.nullable(),
|
|
6478
6795
|
source: connectorAppRequestSourceSchema,
|
|
6479
6796
|
status: connectorAppRequestStatusSchema,
|
|
6480
|
-
updatedAtMs: timestampMsSchema
|
|
6797
|
+
updatedAtMs: timestampMsSchema,
|
|
6481
6798
|
useCase: connectorAppRequestOptionalTextSchema
|
|
6482
6799
|
});
|
|
6483
6800
|
strictObject({
|
|
@@ -6521,11 +6838,11 @@ strictObject({
|
|
|
6521
6838
|
strictObject({
|
|
6522
6839
|
authorizationUrl: url(),
|
|
6523
6840
|
connection: connectorConnectionSchema,
|
|
6524
|
-
expiresAtMs: timestampMsSchema
|
|
6841
|
+
expiresAtMs: timestampMsSchema.optional()
|
|
6525
6842
|
});
|
|
6526
6843
|
strictObject({
|
|
6527
6844
|
connection: connectorConnectionSchema,
|
|
6528
|
-
expiresAtMs: timestampMsSchema
|
|
6845
|
+
expiresAtMs: timestampMsSchema,
|
|
6529
6846
|
state: githubAppInstallationStateSchema
|
|
6530
6847
|
});
|
|
6531
6848
|
strictObject({
|
|
@@ -6880,18 +7197,18 @@ const accountSpaceIndexResponseSchema = z$1.strictObject({
|
|
|
6880
7197
|
});
|
|
6881
7198
|
//#endregion
|
|
6882
7199
|
//#region ../../packages/schemas/dist/schemas/http/agent-profile-creation-request.js
|
|
6883
|
-
const identifierSchema
|
|
7200
|
+
const identifierSchema = z$1.string().trim().min(1).max(256);
|
|
6884
7201
|
const profileNameSchema = z$1.string().trim().min(1).max(80);
|
|
6885
|
-
const isoDateTimeSchema$
|
|
7202
|
+
const isoDateTimeSchema$2 = z$1.iso.datetime({ offset: true });
|
|
6886
7203
|
z$1.object({
|
|
6887
|
-
requestId: identifierSchema
|
|
6888
|
-
idempotencyKey: identifierSchema
|
|
7204
|
+
requestId: identifierSchema.optional(),
|
|
7205
|
+
idempotencyKey: identifierSchema.optional()
|
|
6889
7206
|
}).refine((value) => !(value.requestId && value.idempotencyKey), { message: "Select a request by its ID or idempotency key, not both." });
|
|
6890
7207
|
z$1.strictObject({
|
|
6891
7208
|
kind: z$1.literal("agent_profile_creation"),
|
|
6892
7209
|
v: z$1.literal(1),
|
|
6893
|
-
organizationId: identifierSchema
|
|
6894
|
-
requestId: identifierSchema
|
|
7210
|
+
organizationId: identifierSchema,
|
|
7211
|
+
requestId: identifierSchema
|
|
6895
7212
|
});
|
|
6896
7213
|
const agentProfileCreationApprovalPolicySchema = z$1.enum([
|
|
6897
7214
|
"never_allow",
|
|
@@ -6931,8 +7248,8 @@ const agentProfileCreationRequestStatusReasonSchema = z$1.enum([
|
|
|
6931
7248
|
const completeAgentProfileCreationConfigurationSchema = agentProfileCreationPreferenceSelectionSchema.safeExtend({
|
|
6932
7249
|
agentControllerRef: agentControllerRefSchema.nullable(),
|
|
6933
7250
|
authorizeForOrganization: z$1.boolean().optional().default(true),
|
|
6934
|
-
localAgentConnectionCandidateId: identifierSchema
|
|
6935
|
-
targetComputerId: identifierSchema
|
|
7251
|
+
localAgentConnectionCandidateId: identifierSchema.nullable().optional(),
|
|
7252
|
+
targetComputerId: identifierSchema.nullable()
|
|
6936
7253
|
}).superRefine((configuration, context) => {
|
|
6937
7254
|
const hasController = configuration.agentControllerRef !== null;
|
|
6938
7255
|
const hasComputer = configuration.targetComputerId !== null;
|
|
@@ -7002,25 +7319,25 @@ const DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION = {
|
|
|
7002
7319
|
targetComputerId: null
|
|
7003
7320
|
};
|
|
7004
7321
|
const agentProfileCreationRequestSchema = z$1.strictObject({
|
|
7005
|
-
actorProfileId: identifierSchema
|
|
7006
|
-
completedAt: isoDateTimeSchema$
|
|
7322
|
+
actorProfileId: identifierSchema,
|
|
7323
|
+
completedAt: isoDateTimeSchema$2.nullable(),
|
|
7007
7324
|
configuration: agentProfileCreationConfigurationSchema,
|
|
7008
|
-
createdAgentProfileId: identifierSchema
|
|
7009
|
-
createdAt: isoDateTimeSchema$
|
|
7010
|
-
decidedAt: isoDateTimeSchema$
|
|
7011
|
-
id: identifierSchema
|
|
7325
|
+
createdAgentProfileId: identifierSchema.nullable(),
|
|
7326
|
+
createdAt: isoDateTimeSchema$2,
|
|
7327
|
+
decidedAt: isoDateTimeSchema$2.nullable(),
|
|
7328
|
+
id: identifierSchema,
|
|
7012
7329
|
failureMessage: z$1.string().trim().min(1).max(1e3).nullable(),
|
|
7013
|
-
nativeSessionId: identifierSchema
|
|
7014
|
-
organizationId: identifierSchema
|
|
7330
|
+
nativeSessionId: identifierSchema.nullable(),
|
|
7331
|
+
organizationId: identifierSchema,
|
|
7015
7332
|
profileName: profileNameSchema,
|
|
7016
|
-
requestedSpaceId: identifierSchema
|
|
7017
|
-
requesterUserId: identifierSchema
|
|
7333
|
+
requestedSpaceId: identifierSchema.nullable(),
|
|
7334
|
+
requesterUserId: identifierSchema,
|
|
7018
7335
|
sessionStrategy: agentProfileCreationSessionStrategySchema,
|
|
7019
7336
|
source: agentProfileCreationRequestSourceSchema,
|
|
7020
7337
|
status: agentProfileCreationRequestStatusSchema,
|
|
7021
7338
|
statusReason: agentProfileCreationRequestStatusReasonSchema,
|
|
7022
|
-
targetOwnerUserId: identifierSchema
|
|
7023
|
-
updatedAt: isoDateTimeSchema$
|
|
7339
|
+
targetOwnerUserId: identifierSchema,
|
|
7340
|
+
updatedAt: isoDateTimeSchema$2
|
|
7024
7341
|
}).superRefine((request, context) => {
|
|
7025
7342
|
if (request.sessionStrategy === "new" && request.nativeSessionId !== null) context.addIssue({
|
|
7026
7343
|
code: "custom",
|
|
@@ -7050,13 +7367,13 @@ const agentProfileCreationRequestSchema = z$1.strictObject({
|
|
|
7050
7367
|
});
|
|
7051
7368
|
const createAgentProfileCreationRequestBodySchema = z$1.strictObject({
|
|
7052
7369
|
configuration: agentProfileCreationConfigurationSchema.optional(),
|
|
7053
|
-
idempotencyKey: identifierSchema
|
|
7054
|
-
nativeSessionId: identifierSchema
|
|
7370
|
+
idempotencyKey: identifierSchema,
|
|
7371
|
+
nativeSessionId: identifierSchema.nullable().optional(),
|
|
7055
7372
|
profileName: profileNameSchema,
|
|
7056
|
-
requestedSpaceId: identifierSchema
|
|
7373
|
+
requestedSpaceId: identifierSchema.nullable().optional(),
|
|
7057
7374
|
sessionStrategy: agentProfileCreationSessionStrategySchema,
|
|
7058
7375
|
source: agentProfileCreationRequestSourceSchema,
|
|
7059
|
-
targetOwnerUserId: identifierSchema
|
|
7376
|
+
targetOwnerUserId: identifierSchema
|
|
7060
7377
|
}).superRefine((request, context) => {
|
|
7061
7378
|
const nativeSessionId = request.nativeSessionId ?? null;
|
|
7062
7379
|
if (request.configuration?.agentControllerRef === "hosted:remote-agent" && request.sessionStrategy !== "new") context.addIssue({
|
|
@@ -7089,8 +7406,8 @@ const agentProfileCreationIntentSchema = z$1.object(createAgentProfileCreationRe
|
|
|
7089
7406
|
targetOwnerUserId: intent.targetOwnerUserId
|
|
7090
7407
|
}));
|
|
7091
7408
|
const listAgentProfileCreationRequestsResponseSchema = z$1.strictObject({
|
|
7092
|
-
organizationId: identifierSchema
|
|
7093
|
-
matchedIdempotencyKey: identifierSchema
|
|
7409
|
+
organizationId: identifierSchema,
|
|
7410
|
+
matchedIdempotencyKey: identifierSchema.optional(),
|
|
7094
7411
|
requests: z$1.array(agentProfileCreationRequestSchema).max(200)
|
|
7095
7412
|
});
|
|
7096
7413
|
const decideAgentProfileCreationRequestBodySchema = z$1.strictObject({ decision: z$1.enum(["approve", "decline"]) });
|
|
@@ -7098,9 +7415,9 @@ const agentProfileCreationRequestMutationResponseSchema = z$1.strictObject({ req
|
|
|
7098
7415
|
const agentProfileCreationApprovalPreferenceSchema = z$1.strictObject({
|
|
7099
7416
|
existingSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
7100
7417
|
newSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
7101
|
-
organizationId: identifierSchema
|
|
7102
|
-
updatedAt: isoDateTimeSchema$
|
|
7103
|
-
userId: identifierSchema
|
|
7418
|
+
organizationId: identifierSchema,
|
|
7419
|
+
updatedAt: isoDateTimeSchema$2.nullable(),
|
|
7420
|
+
userId: identifierSchema
|
|
7104
7421
|
});
|
|
7105
7422
|
const setAgentProfileCreationApprovalPreferenceBodySchema = z$1.strictObject({
|
|
7106
7423
|
existingSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
@@ -8234,7 +8551,7 @@ z$1.union([slackChannelHistoryResponseSchema, slackReadUnavailableResponseSchema
|
|
|
8234
8551
|
z$1.union([slackFileReadResponseSchema, slackReadUnavailableResponseSchema]);
|
|
8235
8552
|
//#endregion
|
|
8236
8553
|
//#region ../../packages/schemas/dist/schemas/http/space-status.js
|
|
8237
|
-
const isoDateTimeSchema$
|
|
8554
|
+
const isoDateTimeSchema$1 = z$1.iso.datetime({ offset: true });
|
|
8238
8555
|
const optionalTrimmedStringSchema$1 = z$1.preprocess((value) => {
|
|
8239
8556
|
const normalized = String(value ?? "").trim();
|
|
8240
8557
|
return normalized.length > 0 ? normalized : void 0;
|
|
@@ -8253,7 +8570,7 @@ const spaceStatusLatestVisibleUpdateSchema = z$1.object({
|
|
|
8253
8570
|
"signal.status",
|
|
8254
8571
|
"signal.system_notice"
|
|
8255
8572
|
]),
|
|
8256
|
-
createdAt: isoDateTimeSchema$
|
|
8573
|
+
createdAt: isoDateTimeSchema$1,
|
|
8257
8574
|
actorProfileId: openMeldRuntimeProfileIdSchema,
|
|
8258
8575
|
actorName: optionalTrimmedStringSchema$1,
|
|
8259
8576
|
previewText: nonEmptyTrimmedStringFromUnknown.transform(boundSpaceStatusPreviewText)
|
|
@@ -8264,11 +8581,11 @@ const spaceStatusMembersSummarySchema = spaceMembersSummarySchema.extend({
|
|
|
8264
8581
|
});
|
|
8265
8582
|
const getSpaceStatusResponseSchema = z$1.object({
|
|
8266
8583
|
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
8267
|
-
generatedAt: isoDateTimeSchema$
|
|
8584
|
+
generatedAt: isoDateTimeSchema$1,
|
|
8268
8585
|
centerAgentProfileId: agentProfileIdSchema.optional(),
|
|
8269
8586
|
name: optionalTrimmedStringSchema$1,
|
|
8270
8587
|
spacePurpose: optionalTrimmedStringSchema$1,
|
|
8271
|
-
directMessageConvertedAt: isoDateTimeSchema$
|
|
8588
|
+
directMessageConvertedAt: isoDateTimeSchema$1.optional(),
|
|
8272
8589
|
organizationVisibility: spaceOrganizationVisibilitySchema.optional(),
|
|
8273
8590
|
ownerUserIds: z$1.array(z$1.string().min(1)).optional(),
|
|
8274
8591
|
allowGuests: z$1.boolean().optional(),
|
|
@@ -8483,7 +8800,7 @@ const REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS = 4e3;
|
|
|
8483
8800
|
const REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS = 1024;
|
|
8484
8801
|
const REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS = 2048;
|
|
8485
8802
|
const contentHashSchema = string().regex(/^sha256:[0-9a-f]{64}$/u);
|
|
8486
|
-
const isoDateTimeSchema
|
|
8803
|
+
const isoDateTimeSchema = iso.datetime({ offset: true });
|
|
8487
8804
|
/** A personal Agent's Space conversation must not share a runtime with another Agent. */
|
|
8488
8805
|
function buildPersonalRemoteAgentConversationId(input) {
|
|
8489
8806
|
return ["personal-remote-agent.v1", ...[
|
|
@@ -8539,7 +8856,7 @@ const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
|
8539
8856
|
truncated: boolean()
|
|
8540
8857
|
}),
|
|
8541
8858
|
reactions: spaceMessageReactionsSchema.optional(),
|
|
8542
|
-
occurredAt: isoDateTimeSchema
|
|
8859
|
+
occurredAt: isoDateTimeSchema,
|
|
8543
8860
|
source: remoteAgentConversationContinuityEntrySourceSchema
|
|
8544
8861
|
}).superRefine((entry, context) => {
|
|
8545
8862
|
const materializedCharacterCount = Array.from(entry.content.text).length;
|
|
@@ -11559,834 +11876,521 @@ const centerAgentComputerSetupOptionSchema = strictObject({
|
|
|
11559
11876
|
"needs_attention",
|
|
11560
11877
|
"not_connected",
|
|
11561
11878
|
"unknown"
|
|
11562
|
-
])
|
|
11563
|
-
}).superRefine((value, context) => {
|
|
11564
|
-
if (value.recommendedMode !== null && value.recommendedMode !== "setup" && value.connectedComputerId === null) context.addIssue({
|
|
11565
|
-
code: "custom",
|
|
11566
|
-
message: "connectedComputerId is required for reconnect and update_service",
|
|
11567
|
-
path: ["connectedComputerId"]
|
|
11568
|
-
});
|
|
11569
|
-
});
|
|
11570
|
-
strictObject({
|
|
11571
|
-
memberUserId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11572
|
-
speakerMember: centerAgentToolSpeakerSchema
|
|
11573
|
-
});
|
|
11574
|
-
strictObject({
|
|
11575
|
-
candidates: array(centerAgentLocalAgentConnectionCandidateSchema),
|
|
11576
|
-
organizationId: trimmedNonEmptyStringSchema$1
|
|
11577
|
-
});
|
|
11578
|
-
strictObject({
|
|
11579
|
-
includeDiagnostics: boolean().optional(),
|
|
11580
|
-
includeUsageLimits: literal("true").optional(),
|
|
11581
|
-
speakerMember: centerAgentToolSpeakerSchema
|
|
11582
|
-
});
|
|
11583
|
-
strictObject({
|
|
11584
|
-
computers: array(centerAgentComputerSetupOptionSchema),
|
|
11585
|
-
diagnostics: ownerComputerDiagnosticsSchema.optional(),
|
|
11586
|
-
organizationId: trimmedNonEmptyStringSchema$1
|
|
11587
|
-
});
|
|
11588
|
-
strictObject({
|
|
11589
|
-
includeUsageLimits: literal("true").optional(),
|
|
11590
|
-
speakerMember: centerAgentToolSpeakerSchema,
|
|
11591
|
-
target: peopleComputerTargetSchema.optional()
|
|
11592
|
-
});
|
|
11593
|
-
lazySchema(() => strictObject({
|
|
11594
|
-
inventory: peopleComputersResponseSchema.extend({ computers: array(peopleComputersResponseSchema.shape.computers.element.extend({ executionTargets: array(peopleComputersResponseSchema.shape.computers.element.shape.executionTargets.element.omit({
|
|
11595
|
-
capabilities: true,
|
|
11596
|
-
localAgentCatalog: true
|
|
11597
|
-
})) })) }),
|
|
11598
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11599
|
-
selectedComputer: strictObject({
|
|
11600
|
-
target: peopleComputerTargetSchema,
|
|
11601
|
-
readiness: currentLocalRuntimeReplyReadinessResponseSchema,
|
|
11602
|
-
fileAccess: computerFileAccessSummarySchema
|
|
11603
|
-
}).nullable()
|
|
11604
|
-
}));
|
|
11605
|
-
strictObject({
|
|
11606
|
-
speakerMember: centerAgentToolSpeakerSchema,
|
|
11607
|
-
target: peopleComputerTargetSchema.optional()
|
|
11608
|
-
});
|
|
11609
|
-
strictObject({
|
|
11610
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11611
|
-
result: requestCurrentOpenMeldToolsUpdateResponseSchema
|
|
11612
|
-
});
|
|
11613
|
-
strictObject({
|
|
11614
|
-
automaticUpdatesEnabled: boolean(),
|
|
11615
|
-
speakerMember: centerAgentToolSpeakerSchema,
|
|
11616
|
-
target: peopleComputerTargetSchema.optional()
|
|
11617
|
-
});
|
|
11618
|
-
strictObject({
|
|
11619
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11620
|
-
result: setCurrentOpenMeldToolsMaintenanceResponseSchema
|
|
11621
|
-
});
|
|
11622
|
-
strictObject({
|
|
11623
|
-
agentId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11624
|
-
speakerMember: centerAgentToolSpeakerSchema,
|
|
11625
|
-
target: peopleComputerTargetSchema.optional()
|
|
11626
|
-
});
|
|
11627
|
-
currentLocalAgentInstallationsResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$1 });
|
|
11628
|
-
strictObject({
|
|
11629
|
-
agentId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11630
|
-
confirmed: literal(true),
|
|
11631
|
-
installationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11632
|
-
speakerMember: centerAgentToolSpeakerSchema,
|
|
11633
|
-
target: peopleComputerTargetSchema.optional()
|
|
11634
|
-
});
|
|
11635
|
-
selectCurrentLocalAgentInstallationResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$1 });
|
|
11636
|
-
strictObject({
|
|
11637
|
-
includeUsageLimits: literal("true").optional(),
|
|
11638
|
-
memberUserId: trimmedNonEmptyStringSchema$1
|
|
11639
|
-
});
|
|
11640
|
-
organizationComputersResponseSchema.extend({ memberUserId: trimmedNonEmptyStringSchema$1 }).superRefine((value, context) => {
|
|
11641
|
-
value.computers.forEach((computer, index) => {
|
|
11642
|
-
if (computer.ownerUserId !== value.memberUserId) context.addIssue({
|
|
11643
|
-
code: "custom",
|
|
11644
|
-
message: "computer ownerUserId must match memberUserId",
|
|
11645
|
-
path: [
|
|
11646
|
-
"computers",
|
|
11647
|
-
index,
|
|
11648
|
-
"ownerUserId"
|
|
11649
|
-
]
|
|
11650
|
-
});
|
|
11651
|
-
});
|
|
11652
|
-
});
|
|
11653
|
-
strictObject({
|
|
11654
|
-
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11655
|
-
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11656
|
-
agentProfileId: agentProfileIdSchema,
|
|
11657
|
-
candidateId: trimmedNonEmptyStringSchema$1,
|
|
11658
|
-
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11659
|
-
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11660
|
-
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11661
|
-
reasoningLevel: trimmedNonEmptyStringSchema$1.optional()
|
|
11662
|
-
});
|
|
11663
|
-
strictObject({
|
|
11664
|
-
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11665
|
-
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11666
|
-
agentProfileId: agentProfileIdSchema,
|
|
11667
|
-
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11668
|
-
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11669
|
-
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11670
|
-
reasoningLevel: trimmedNonEmptyStringSchema$1.optional(),
|
|
11671
|
-
workspaceMode: profileWorkspaceModeSchema.optional(),
|
|
11672
|
-
workspacePath: profileWorkingDirectorySchema.optional()
|
|
11673
|
-
}).superRefine((value, ctx) => {
|
|
11674
|
-
if (value.agentControllerCollaborationMode === void 0 && value.agentControllerPermissionMode === void 0 && value.modelId === void 0 && value.openCodePermission === void 0 && value.reasoningLevel === void 0 && value.workspaceMode === void 0 && value.workspacePath === void 0) ctx.addIssue({
|
|
11675
|
-
code: "custom",
|
|
11676
|
-
message: "Expected at least one runtime setting"
|
|
11677
|
-
});
|
|
11678
|
-
if (value.reasoningLevel !== void 0 && value.modelId === void 0) ctx.addIssue({
|
|
11679
|
-
code: "custom",
|
|
11680
|
-
message: "reasoningLevel requires modelId",
|
|
11681
|
-
path: ["reasoningLevel"]
|
|
11682
|
-
});
|
|
11683
|
-
if (value.workspacePath !== void 0 && value.workspaceMode === void 0) ctx.addIssue({
|
|
11684
|
-
code: "custom",
|
|
11685
|
-
message: "workspacePath requires workspaceMode",
|
|
11686
|
-
path: ["workspacePath"]
|
|
11687
|
-
});
|
|
11688
|
-
});
|
|
11689
|
-
strictObject({ agentProfileId: agentProfileIdSchema });
|
|
11690
|
-
strictObject({ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional() });
|
|
11691
|
-
strictObject({
|
|
11692
|
-
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11693
|
-
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11694
|
-
candidateId: trimmedNonEmptyStringSchema$1,
|
|
11695
|
-
configuration: agentProfileCreationPreferenceSelectionSchema.optional(),
|
|
11696
|
-
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11697
|
-
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11698
|
-
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11699
|
-
profileName: trimmedNonEmptyStringSchema$1,
|
|
11700
|
-
reasoningLevel: trimmedNonEmptyStringSchema$1.optional(),
|
|
11701
|
-
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11702
|
-
workspaceMode: profileWorkspaceModeSchema.optional(),
|
|
11703
|
-
workspacePath: profileWorkingDirectorySchema.optional()
|
|
11704
|
-
}).superRefine((value, ctx) => {
|
|
11705
|
-
if (value.reasoningLevel !== void 0 && value.modelId === void 0) ctx.addIssue({
|
|
11706
|
-
code: "custom",
|
|
11707
|
-
message: "reasoningLevel requires modelId",
|
|
11708
|
-
path: ["reasoningLevel"]
|
|
11709
|
-
});
|
|
11710
|
-
if (value.workspacePath !== void 0 && value.workspaceMode === void 0) ctx.addIssue({
|
|
11711
|
-
code: "custom",
|
|
11712
|
-
message: "workspacePath requires workspaceMode",
|
|
11713
|
-
path: ["workspacePath"]
|
|
11714
|
-
});
|
|
11715
|
-
});
|
|
11716
|
-
const centerAgentCheckAgentProfileReadinessResponseSchema = strictObject({
|
|
11717
|
-
agentProfileId: agentProfileIdSchema,
|
|
11718
|
-
blockers: array(strictObject({
|
|
11719
|
-
reasonCode: trimmedNonEmptyStringSchema$1,
|
|
11720
|
-
explanation: trimmedNonEmptyStringSchema$1
|
|
11721
|
-
})),
|
|
11722
|
-
canReply: boolean(),
|
|
11723
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11724
|
-
readiness: getAgentExecutionReadinessResponseSchema,
|
|
11725
|
-
summary: trimmedNonEmptyStringSchema$1
|
|
11726
|
-
});
|
|
11727
|
-
const centerAgentProductOperationStatusSchema = enumFactory(["completed", "blocked"]);
|
|
11728
|
-
const centerAgentConnectAgentProfileToLocalAgentResponseSchema = strictObject({
|
|
11729
|
-
agentProfileId: agentProfileIdSchema,
|
|
11730
|
-
binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
|
|
11731
|
-
canReply: boolean(),
|
|
11732
|
-
candidate: centerAgentLocalAgentConnectionCandidateSchema.optional(),
|
|
11733
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11734
|
-
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
11735
|
-
status: centerAgentProductOperationStatusSchema,
|
|
11736
|
-
steps: array(centerAgentProductOperationStepSchema)
|
|
11737
|
-
});
|
|
11738
|
-
strictObject({
|
|
11739
|
-
agentProfileId: agentProfileIdSchema,
|
|
11740
|
-
binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
|
|
11741
|
-
canReply: boolean(),
|
|
11742
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11743
|
-
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
11744
|
-
status: centerAgentProductOperationStatusSchema,
|
|
11745
|
-
steps: array(centerAgentProductOperationStepSchema),
|
|
11746
|
-
workspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()
|
|
11879
|
+
])
|
|
11880
|
+
}).superRefine((value, context) => {
|
|
11881
|
+
if (value.recommendedMode !== null && value.recommendedMode !== "setup" && value.connectedComputerId === null) context.addIssue({
|
|
11882
|
+
code: "custom",
|
|
11883
|
+
message: "connectedComputerId is required for reconnect and update_service",
|
|
11884
|
+
path: ["connectedComputerId"]
|
|
11885
|
+
});
|
|
11747
11886
|
});
|
|
11748
11887
|
strictObject({
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
connection: centerAgentConnectAgentProfileToLocalAgentResponseSchema.optional(),
|
|
11752
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11753
|
-
profile: authProfileViewSchema.optional(),
|
|
11754
|
-
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
11755
|
-
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11756
|
-
status: centerAgentProductOperationStatusSchema,
|
|
11757
|
-
steps: array(centerAgentProductOperationStepSchema),
|
|
11758
|
-
workspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()
|
|
11759
|
-
});
|
|
11760
|
-
const centerAgentConciergeActionResponseSchema = strictObject({
|
|
11761
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11762
|
-
attribution: centerAgentAttributionSchema,
|
|
11763
|
-
resource: centerAgentResourceSchema.nullable()
|
|
11764
|
-
});
|
|
11765
|
-
centerAgentConciergeActionResponseSchema.extend({
|
|
11766
|
-
meta: spaceMetaSchema.optional(),
|
|
11767
|
-
spaceId: trimmedNonEmptyStringSchema$1
|
|
11888
|
+
memberUserId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11889
|
+
speakerMember: centerAgentToolSpeakerSchema
|
|
11768
11890
|
});
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
enabled: boolean()
|
|
11891
|
+
strictObject({
|
|
11892
|
+
candidates: array(centerAgentLocalAgentConnectionCandidateSchema),
|
|
11893
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
11773
11894
|
});
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11895
|
+
strictObject({
|
|
11896
|
+
includeDiagnostics: boolean().optional(),
|
|
11897
|
+
includeUsageLimits: literal("true").optional(),
|
|
11898
|
+
speakerMember: centerAgentToolSpeakerSchema
|
|
11778
11899
|
});
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
}), strictObject({
|
|
11784
|
-
code: enumFactory(["not_organization_member", "active_human_profile_required"]),
|
|
11785
|
-
memberUserId: trimmedNonEmptyStringSchema$1,
|
|
11786
|
-
message: trimmedNonEmptyStringSchema$1,
|
|
11787
|
-
status: literal("rejected")
|
|
11788
|
-
})]);
|
|
11789
|
-
centerAgentConciergeActionResponseSchema.extend({
|
|
11790
|
-
membership: postSpaceMembersResponseSchema,
|
|
11791
|
-
results: array(centerAgentAddMembersToSpaceResultSchema),
|
|
11792
|
-
spaceId: trimmedNonEmptyStringSchema$1
|
|
11900
|
+
strictObject({
|
|
11901
|
+
computers: array(centerAgentComputerSetupOptionSchema),
|
|
11902
|
+
diagnostics: ownerComputerDiagnosticsSchema.optional(),
|
|
11903
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
11793
11904
|
});
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11797
|
-
|
|
11905
|
+
strictObject({
|
|
11906
|
+
includeUsageLimits: literal("true").optional(),
|
|
11907
|
+
speakerMember: centerAgentToolSpeakerSchema,
|
|
11908
|
+
target: peopleComputerTargetSchema.optional()
|
|
11798
11909
|
});
|
|
11799
|
-
|
|
11910
|
+
lazySchema(() => strictObject({
|
|
11911
|
+
inventory: peopleComputersResponseSchema.extend({ computers: array(peopleComputersResponseSchema.shape.computers.element.extend({ executionTargets: array(peopleComputersResponseSchema.shape.computers.element.shape.executionTargets.element.omit({
|
|
11912
|
+
capabilities: true,
|
|
11913
|
+
localAgentCatalog: true
|
|
11914
|
+
})) })) }),
|
|
11800
11915
|
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
}),
|
|
11811
|
-
strictObject({
|
|
11812
|
-
scope: literal("thread"),
|
|
11813
|
-
signals: array(signalEnvelopeSchema).max(100),
|
|
11814
|
-
threadId: trimmedNonEmptyStringSchema$1,
|
|
11815
|
-
truncated: boolean()
|
|
11816
|
-
}),
|
|
11817
|
-
strictObject({
|
|
11818
|
-
afterSignalId: trimmedNonEmptyStringSchema$1,
|
|
11819
|
-
scope: literal("delta"),
|
|
11820
|
-
signals: array(signalEnvelopeSchema).max(100),
|
|
11821
|
-
truncated: boolean()
|
|
11822
|
-
}),
|
|
11823
|
-
strictObject({
|
|
11824
|
-
scope: literal("history"),
|
|
11825
|
-
signals: array(signalEnvelopeSchema).max(100),
|
|
11826
|
-
truncated: boolean()
|
|
11827
|
-
})
|
|
11828
|
-
]);
|
|
11829
|
-
union([strictObject({
|
|
11830
|
-
...centerAgentSpaceContextBaseResponseShape,
|
|
11831
|
-
bootstrap: spaceBootstrapResponseSchema
|
|
11832
|
-
}), strictObject({
|
|
11833
|
-
...centerAgentSpaceContextBaseResponseShape,
|
|
11834
|
-
context: centerAgentProgressiveSpaceContextSchema
|
|
11835
|
-
})]);
|
|
11836
|
-
const centerAgentDispatchHistoryLatestAttemptSchema = strictObject({
|
|
11837
|
-
attemptId: trimmedNonEmptyStringSchema$1,
|
|
11838
|
-
attemptNo: int().min(1),
|
|
11839
|
-
createdAt: ISO_DATE_TIME_SCHEMA$1,
|
|
11840
|
-
errorCode: nullableTrimmedStringSchema$1,
|
|
11841
|
-
errorMessage: nullableDiagnosticTextSchema,
|
|
11842
|
-
finishedAt: nullableIsoDateTimeSchema$1,
|
|
11843
|
-
startedAt: nullableIsoDateTimeSchema$1,
|
|
11844
|
-
status: spaceDispatchTraceAttemptStatusSchema
|
|
11916
|
+
selectedComputer: strictObject({
|
|
11917
|
+
target: peopleComputerTargetSchema,
|
|
11918
|
+
readiness: currentLocalRuntimeReplyReadinessResponseSchema,
|
|
11919
|
+
fileAccess: computerFileAccessSummarySchema
|
|
11920
|
+
}).nullable()
|
|
11921
|
+
}));
|
|
11922
|
+
strictObject({
|
|
11923
|
+
speakerMember: centerAgentToolSpeakerSchema,
|
|
11924
|
+
target: peopleComputerTargetSchema.optional()
|
|
11845
11925
|
});
|
|
11846
11926
|
strictObject({
|
|
11847
|
-
entries: array(strictObject({
|
|
11848
|
-
attemptCount: int().min(0),
|
|
11849
|
-
dispatchId: trimmedNonEmptyStringSchema$1,
|
|
11850
|
-
firstSeenAt: ISO_DATE_TIME_SCHEMA$1,
|
|
11851
|
-
lastAttemptAt: ISO_DATE_TIME_SCHEMA$1,
|
|
11852
|
-
latestAttempt: union([centerAgentDispatchHistoryLatestAttemptSchema, nullFactory()]),
|
|
11853
|
-
status: spaceDispatchTraceDispatchStatusSchema,
|
|
11854
|
-
targetProfileId: trimmedNonEmptyStringSchema$1
|
|
11855
|
-
})),
|
|
11856
11927
|
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11857
|
-
|
|
11928
|
+
result: requestCurrentOpenMeldToolsUpdateResponseSchema
|
|
11858
11929
|
});
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11930
|
+
strictObject({
|
|
11931
|
+
automaticUpdatesEnabled: boolean(),
|
|
11932
|
+
speakerMember: centerAgentToolSpeakerSchema,
|
|
11933
|
+
target: peopleComputerTargetSchema.optional()
|
|
11863
11934
|
});
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
}), strictObject({
|
|
11868
|
-
addressingModel: literal("wake_reference_mention"),
|
|
11869
|
-
structuredMentionTargets: literal(true),
|
|
11870
|
-
structuredReferenceTargets: literal(true)
|
|
11871
|
-
})]);
|
|
11872
|
-
centerAgentConciergeActionResponseSchema.extend({
|
|
11873
|
-
signal: signalTextEnvelopeSchema,
|
|
11874
|
-
spaceId: trimmedNonEmptyStringSchema$1
|
|
11935
|
+
strictObject({
|
|
11936
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11937
|
+
result: setCurrentOpenMeldToolsMaintenanceResponseSchema
|
|
11875
11938
|
});
|
|
11876
11939
|
strictObject({
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
messageTs: trimmedNonEmptyStringSchema$1,
|
|
11881
|
-
organizationId: trimmedNonEmptyStringSchema$1
|
|
11940
|
+
agentId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11941
|
+
speakerMember: centerAgentToolSpeakerSchema,
|
|
11942
|
+
target: peopleComputerTargetSchema.optional()
|
|
11882
11943
|
});
|
|
11944
|
+
currentLocalAgentInstallationsResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$1 });
|
|
11883
11945
|
strictObject({
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11946
|
+
agentId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11947
|
+
confirmed: literal(true),
|
|
11948
|
+
installationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11949
|
+
speakerMember: centerAgentToolSpeakerSchema,
|
|
11950
|
+
target: peopleComputerTargetSchema.optional()
|
|
11889
11951
|
});
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
status: enumFactory([
|
|
11895
|
-
"authorization_expired",
|
|
11896
|
-
"forbidden",
|
|
11897
|
-
"rate_limited",
|
|
11898
|
-
"unavailable"
|
|
11899
|
-
])
|
|
11952
|
+
selectCurrentLocalAgentInstallationResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$1 });
|
|
11953
|
+
strictObject({
|
|
11954
|
+
includeUsageLimits: literal("true").optional(),
|
|
11955
|
+
memberUserId: trimmedNonEmptyStringSchema$1
|
|
11900
11956
|
});
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11957
|
+
organizationComputersResponseSchema.extend({ memberUserId: trimmedNonEmptyStringSchema$1 }).superRefine((value, context) => {
|
|
11958
|
+
value.computers.forEach((computer, index) => {
|
|
11959
|
+
if (computer.ownerUserId !== value.memberUserId) context.addIssue({
|
|
11960
|
+
code: "custom",
|
|
11961
|
+
message: "computer ownerUserId must match memberUserId",
|
|
11962
|
+
path: [
|
|
11963
|
+
"computers",
|
|
11964
|
+
index,
|
|
11965
|
+
"ownerUserId"
|
|
11966
|
+
]
|
|
11967
|
+
});
|
|
11968
|
+
});
|
|
11910
11969
|
});
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
completionCondition: literal("terminal"),
|
|
11921
|
-
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11922
|
-
task: spaceWakeAgentTaskHandleSchema
|
|
11923
|
-
})).optional(),
|
|
11924
|
-
delegationId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11925
|
-
fallbackTask: strictObject({
|
|
11926
|
-
activationSubscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11927
|
-
completionCondition: literal("terminal"),
|
|
11928
|
-
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11929
|
-
task: spaceWakeAgentTaskHandleSchema
|
|
11930
|
-
}).optional(),
|
|
11931
|
-
spaceId: trimmedNonEmptyStringSchema$1
|
|
11970
|
+
strictObject({
|
|
11971
|
+
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11972
|
+
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11973
|
+
agentProfileId: agentProfileIdSchema,
|
|
11974
|
+
candidateId: trimmedNonEmptyStringSchema$1,
|
|
11975
|
+
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11976
|
+
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11977
|
+
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11978
|
+
reasoningLevel: trimmedNonEmptyStringSchema$1.optional()
|
|
11932
11979
|
});
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11939
|
-
|
|
11940
|
-
|
|
11980
|
+
strictObject({
|
|
11981
|
+
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11982
|
+
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11983
|
+
agentProfileId: agentProfileIdSchema,
|
|
11984
|
+
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11985
|
+
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11986
|
+
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11987
|
+
reasoningLevel: trimmedNonEmptyStringSchema$1.optional(),
|
|
11988
|
+
workspaceMode: profileWorkspaceModeSchema.optional(),
|
|
11989
|
+
workspacePath: profileWorkingDirectorySchema.optional()
|
|
11990
|
+
}).superRefine((value, ctx) => {
|
|
11991
|
+
if (value.agentControllerCollaborationMode === void 0 && value.agentControllerPermissionMode === void 0 && value.modelId === void 0 && value.openCodePermission === void 0 && value.reasoningLevel === void 0 && value.workspaceMode === void 0 && value.workspacePath === void 0) ctx.addIssue({
|
|
11941
11992
|
code: "custom",
|
|
11942
|
-
message: "
|
|
11943
|
-
path: ["delegationId"]
|
|
11993
|
+
message: "Expected at least one runtime setting"
|
|
11944
11994
|
});
|
|
11945
|
-
|
|
11946
|
-
if (value.delegationId === void 0 !== (value.childTasks === void 0)) context.addIssue({
|
|
11995
|
+
if (value.reasoningLevel !== void 0 && value.modelId === void 0) ctx.addIssue({
|
|
11947
11996
|
code: "custom",
|
|
11948
|
-
message: "
|
|
11949
|
-
path: ["
|
|
11997
|
+
message: "reasoningLevel requires modelId",
|
|
11998
|
+
path: ["reasoningLevel"]
|
|
11950
11999
|
});
|
|
11951
|
-
if (value.
|
|
12000
|
+
if (value.workspacePath !== void 0 && value.workspaceMode === void 0) ctx.addIssue({
|
|
11952
12001
|
code: "custom",
|
|
11953
|
-
message: "
|
|
11954
|
-
path: ["
|
|
12002
|
+
message: "workspacePath requires workspaceMode",
|
|
12003
|
+
path: ["workspacePath"]
|
|
11955
12004
|
});
|
|
11956
|
-
if (value.childTasks) {
|
|
11957
|
-
const expectedProfileIds = [...new Set(value.agentProfileIds)].sort();
|
|
11958
|
-
const childProfileIds = value.childTasks.map((child) => child.task.targetProfileId).sort();
|
|
11959
|
-
if (childProfileIds.length !== expectedProfileIds.length || childProfileIds.some((profileId, index) => profileId !== expectedProfileIds[index])) context.addIssue({
|
|
11960
|
-
code: "custom",
|
|
11961
|
-
message: "childTasks must contain exactly one Space Wake task for every agentProfileId",
|
|
11962
|
-
path: ["childTasks"]
|
|
11963
|
-
});
|
|
11964
|
-
if (value.fallbackTask && expectedProfileIds.includes(value.fallbackTask.task.targetProfileId)) context.addIssue({
|
|
11965
|
-
code: "custom",
|
|
11966
|
-
message: "fallbackTask must target a different Agent Profile",
|
|
11967
|
-
path: ["fallbackTask"]
|
|
11968
|
-
});
|
|
11969
|
-
}
|
|
11970
12005
|
});
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
|
|
11977
|
-
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
12006
|
+
strictObject({ agentProfileId: agentProfileIdSchema });
|
|
12007
|
+
strictObject({ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional() });
|
|
12008
|
+
strictObject({
|
|
12009
|
+
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
12010
|
+
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
12011
|
+
candidateId: trimmedNonEmptyStringSchema$1,
|
|
12012
|
+
configuration: agentProfileCreationPreferenceSelectionSchema.optional(),
|
|
12013
|
+
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
12014
|
+
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
12015
|
+
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
12016
|
+
profileName: trimmedNonEmptyStringSchema$1,
|
|
12017
|
+
reasoningLevel: trimmedNonEmptyStringSchema$1.optional(),
|
|
12018
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
12019
|
+
workspaceMode: profileWorkspaceModeSchema.optional(),
|
|
12020
|
+
workspacePath: profileWorkingDirectorySchema.optional()
|
|
12021
|
+
}).superRefine((value, ctx) => {
|
|
12022
|
+
if (value.reasoningLevel !== void 0 && value.modelId === void 0) ctx.addIssue({
|
|
12023
|
+
code: "custom",
|
|
12024
|
+
message: "reasoningLevel requires modelId",
|
|
12025
|
+
path: ["reasoningLevel"]
|
|
12026
|
+
});
|
|
12027
|
+
if (value.workspacePath !== void 0 && value.workspaceMode === void 0) ctx.addIssue({
|
|
12028
|
+
code: "custom",
|
|
12029
|
+
message: "workspacePath requires workspaceMode",
|
|
12030
|
+
path: ["workspacePath"]
|
|
12031
|
+
});
|
|
11983
12032
|
});
|
|
11984
|
-
const
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
|
|
12033
|
+
const centerAgentCheckAgentProfileReadinessResponseSchema = strictObject({
|
|
12034
|
+
agentProfileId: agentProfileIdSchema,
|
|
12035
|
+
blockers: array(strictObject({
|
|
12036
|
+
reasonCode: trimmedNonEmptyStringSchema$1,
|
|
12037
|
+
explanation: trimmedNonEmptyStringSchema$1
|
|
12038
|
+
})),
|
|
12039
|
+
canReply: boolean(),
|
|
12040
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12041
|
+
readiness: getAgentExecutionReadinessResponseSchema,
|
|
12042
|
+
summary: trimmedNonEmptyStringSchema$1
|
|
12043
|
+
});
|
|
12044
|
+
const centerAgentProductOperationStatusSchema = enumFactory(["completed", "blocked"]);
|
|
12045
|
+
const centerAgentConnectAgentProfileToLocalAgentResponseSchema = strictObject({
|
|
12046
|
+
agentProfileId: agentProfileIdSchema,
|
|
12047
|
+
binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
|
|
12048
|
+
canReply: boolean(),
|
|
12049
|
+
candidate: centerAgentLocalAgentConnectionCandidateSchema.optional(),
|
|
12050
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12051
|
+
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
12052
|
+
status: centerAgentProductOperationStatusSchema,
|
|
12053
|
+
steps: array(centerAgentProductOperationStepSchema)
|
|
11990
12054
|
});
|
|
11991
12055
|
strictObject({
|
|
11992
|
-
|
|
12056
|
+
agentProfileId: agentProfileIdSchema,
|
|
12057
|
+
binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
|
|
12058
|
+
canReply: boolean(),
|
|
11993
12059
|
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11994
|
-
|
|
12060
|
+
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
12061
|
+
status: centerAgentProductOperationStatusSchema,
|
|
12062
|
+
steps: array(centerAgentProductOperationStepSchema),
|
|
12063
|
+
workspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()
|
|
11995
12064
|
});
|
|
11996
|
-
|
|
11997
|
-
|
|
12065
|
+
strictObject({
|
|
12066
|
+
agentProfileId: agentProfileIdSchema.optional(),
|
|
12067
|
+
canReply: boolean(),
|
|
12068
|
+
connection: centerAgentConnectAgentProfileToLocalAgentResponseSchema.optional(),
|
|
11998
12069
|
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11999
|
-
|
|
12000
|
-
|
|
12070
|
+
profile: authProfileViewSchema.optional(),
|
|
12071
|
+
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
12001
12072
|
spaceId: trimmedNonEmptyStringSchema$1,
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
//#region ../../packages/schemas/dist/schemas/http/center-agent-memory.js
|
|
12006
|
-
const boundedIdentifierSchema$1 = z$1.string().trim().min(1).max(256);
|
|
12007
|
-
const CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS = 1200;
|
|
12008
|
-
const centerAgentMemoryProviderSchema = z$1.enum(["zep_cloud"]);
|
|
12009
|
-
const centerAgentMemoryWipeStatusSchema = z$1.enum(["deleted", "not_found"]);
|
|
12010
|
-
const centerAgentWipeMemberMemoryResponseSchema = z$1.strictObject({
|
|
12011
|
-
organizationId: boundedIdentifierSchema$1,
|
|
12012
|
-
provider: centerAgentMemoryProviderSchema,
|
|
12013
|
-
status: centerAgentMemoryWipeStatusSchema,
|
|
12014
|
-
userId: boundedIdentifierSchema$1
|
|
12015
|
-
});
|
|
12016
|
-
const centerAgentOrganizationMemoryPolicyResponseSchema = z$1.strictObject({
|
|
12017
|
-
organizationId: boundedIdentifierSchema$1,
|
|
12018
|
-
organizationMemoryOptIn: z$1.boolean(),
|
|
12019
|
-
provider: centerAgentMemoryProviderSchema,
|
|
12020
|
-
updatedByUserId: boundedIdentifierSchema$1.nullable()
|
|
12021
|
-
});
|
|
12022
|
-
const updateCenterAgentOrganizationMemoryPolicyBodySchema = z$1.strictObject({ organizationMemoryOptIn: z$1.boolean() });
|
|
12023
|
-
z$1.strictObject({ fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS) });
|
|
12024
|
-
z$1.strictObject({
|
|
12025
|
-
fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS),
|
|
12026
|
-
organizationId: boundedIdentifierSchema$1,
|
|
12027
|
-
saved: z$1.literal(true),
|
|
12028
|
-
source: z$1.literal("explicit_tool")
|
|
12029
|
-
});
|
|
12030
|
-
//#endregion
|
|
12031
|
-
//#region ../../packages/schemas/dist/schemas/http/current-device-target.js
|
|
12032
|
-
const currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;
|
|
12033
|
-
const currentDeviceTargetResolvedSchema = z$1.strictObject({
|
|
12034
|
-
availability: z$1.literal("resolved"),
|
|
12035
|
-
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12036
|
-
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12037
|
-
runtimeLane: daemonServiceLaneSchema
|
|
12038
|
-
});
|
|
12039
|
-
const currentDeviceTargetMissingSchema = z$1.strictObject({
|
|
12040
|
-
availability: z$1.literal("missing"),
|
|
12041
|
-
reasonCodes: z$1.array(z$1.string().trim().min(1).max(256)).optional()
|
|
12042
|
-
});
|
|
12043
|
-
const currentDeviceTargetResponseSchema = z$1.discriminatedUnion("availability", [currentDeviceTargetResolvedSchema, currentDeviceTargetMissingSchema]);
|
|
12044
|
-
const localRuntimeEnrollmentBodySchema = z$1.strictObject({
|
|
12045
|
-
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12046
|
-
runtimeLane: daemonServiceLaneSchema
|
|
12047
|
-
});
|
|
12048
|
-
const localRuntimeEnrollmentResponseSchema = z$1.strictObject({
|
|
12049
|
-
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12050
|
-
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12051
|
-
runtimeLane: daemonServiceLaneSchema
|
|
12052
|
-
});
|
|
12053
|
-
const forgetCurrentComputerStatusSchema = z$1.enum(["forgotten", "already_missing"]);
|
|
12054
|
-
const forgetCurrentComputerResponseSchema = z$1.strictObject({
|
|
12055
|
-
status: forgetCurrentComputerStatusSchema,
|
|
12056
|
-
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12057
|
-
currentDeviceTarget: currentDeviceTargetMissingSchema
|
|
12058
|
-
});
|
|
12059
|
-
z$1.strictObject({ deviceId: currentDeviceTargetDeviceIdSchema });
|
|
12060
|
-
const forgetComputerResponseSchema = z$1.strictObject({
|
|
12061
|
-
status: forgetCurrentComputerStatusSchema,
|
|
12062
|
-
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12063
|
-
currentDeviceTarget: currentDeviceTargetResponseSchema
|
|
12073
|
+
status: centerAgentProductOperationStatusSchema,
|
|
12074
|
+
steps: array(centerAgentProductOperationStepSchema),
|
|
12075
|
+
workspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()
|
|
12064
12076
|
});
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
observedDisplayName: z$1.string().trim().min(1).max(200).nullable(),
|
|
12070
|
-
platformFamily: localRuntimePlatformFamilySchema,
|
|
12071
|
-
osVersion: z$1.string().trim().min(1).max(120).nullable(),
|
|
12072
|
-
deviceType: observedDeviceTypeSchema,
|
|
12073
|
-
observedAtMs: z$1.number().int().nonnegative()
|
|
12077
|
+
const centerAgentConciergeActionResponseSchema = strictObject({
|
|
12078
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12079
|
+
attribution: centerAgentAttributionSchema,
|
|
12080
|
+
resource: centerAgentResourceSchema.nullable()
|
|
12074
12081
|
});
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
//#region ../../packages/schemas/dist/schemas/http/inbox.js
|
|
12079
|
-
const identifierSchema = string().trim().min(1).max(256);
|
|
12080
|
-
const timestampMsSchema = number().int().nonnegative();
|
|
12081
|
-
const isoDateTimeSchema = iso.datetime({ offset: true });
|
|
12082
|
-
const titleSchema = string().trim().min(1).max(160);
|
|
12083
|
-
const previewSchema = string().trim().min(1).max(500);
|
|
12084
|
-
const contextLabelSchema = string().trim().min(1).max(160);
|
|
12085
|
-
const inboxViewSchema = enumFactory([
|
|
12086
|
-
"all",
|
|
12087
|
-
"unread",
|
|
12088
|
-
"needs_action",
|
|
12089
|
-
"needs_review",
|
|
12090
|
-
"updates",
|
|
12091
|
-
"urgent_updates",
|
|
12092
|
-
"recent_updates"
|
|
12093
|
-
]);
|
|
12094
|
-
const inboxAttentionSchema = enumFactory(["update", "action_required"]);
|
|
12095
|
-
const inboxImportanceSchema = enumFactory(["normal", "urgent"]);
|
|
12096
|
-
const inboxResolutionStatusSchema = enumFactory([
|
|
12097
|
-
"not_applicable",
|
|
12098
|
-
"open",
|
|
12099
|
-
"resolved"
|
|
12100
|
-
]);
|
|
12101
|
-
const inboxItemWireKindSchema = union([enumFactory([
|
|
12102
|
-
"space_message",
|
|
12103
|
-
"space_mention",
|
|
12104
|
-
"agent_reply",
|
|
12105
|
-
"agent_interaction",
|
|
12106
|
-
"wake_outcome",
|
|
12107
|
-
"center_agent_update",
|
|
12108
|
-
"document_review",
|
|
12109
|
-
"organization_request",
|
|
12110
|
-
"system_issue"
|
|
12111
|
-
]), literal("space_reference")]);
|
|
12112
|
-
const inboxSourceKindSchema = enumFactory([
|
|
12113
|
-
"space_signal",
|
|
12114
|
-
"runtime_coordinator_interaction",
|
|
12115
|
-
"remote_agent_native_delivery",
|
|
12116
|
-
"remote_agent_native_interaction",
|
|
12117
|
-
"organization_document_draft",
|
|
12118
|
-
"organization_opportunity",
|
|
12119
|
-
"organization_member_request",
|
|
12120
|
-
"agent_profile_work_recovery",
|
|
12121
|
-
"system_attention_event"
|
|
12122
|
-
]);
|
|
12123
|
-
const centerAgentRequestMemberAttentionBodySchema = strictObject({
|
|
12124
|
-
impact: enumFactory([
|
|
12125
|
-
"response_needed",
|
|
12126
|
-
"work_blocked",
|
|
12127
|
-
"material_failure_risk"
|
|
12128
|
-
]),
|
|
12129
|
-
prompt: previewSchema,
|
|
12130
|
-
submissionId: identifierSchema,
|
|
12131
|
-
title: titleSchema
|
|
12082
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12083
|
+
meta: spaceMetaSchema.optional(),
|
|
12084
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
12132
12085
|
});
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
requestId: identifierSchema
|
|
12086
|
+
centerAgentConciergeActionResponseSchema.extend({ profile: authProfileViewSchema });
|
|
12087
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12088
|
+
agentProfileId: agentProfileIdSchema,
|
|
12089
|
+
enabled: boolean()
|
|
12138
12090
|
});
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
}).superRefine((target, context) => {
|
|
12144
|
-
if (target.signalId === void 0 !== (target.spaceId === void 0)) context.addIssue({
|
|
12145
|
-
code: "custom",
|
|
12146
|
-
message: "Center Agent Inbox targets must include both spaceId and signalId."
|
|
12147
|
-
});
|
|
12091
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12092
|
+
agentProfileIds: array(agentProfileIdSchema),
|
|
12093
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
12094
|
+
membership: postSpaceMembersResponseSchema
|
|
12148
12095
|
});
|
|
12149
|
-
const
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12096
|
+
const centerAgentAddMembersToSpaceResultSchema = discriminatedUnion("status", [strictObject({
|
|
12097
|
+
memberUserId: trimmedNonEmptyStringSchema$1,
|
|
12098
|
+
profileId: openMeldRuntimeProfileIdSchema,
|
|
12099
|
+
status: enumFactory(["added", "already_member"])
|
|
12100
|
+
}), strictObject({
|
|
12101
|
+
code: enumFactory(["not_organization_member", "active_human_profile_required"]),
|
|
12102
|
+
memberUserId: trimmedNonEmptyStringSchema$1,
|
|
12103
|
+
message: trimmedNonEmptyStringSchema$1,
|
|
12104
|
+
status: literal("rejected")
|
|
12105
|
+
})]);
|
|
12106
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12107
|
+
membership: postSpaceMembersResponseSchema,
|
|
12108
|
+
results: array(centerAgentAddMembersToSpaceResultSchema),
|
|
12109
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
12157
12110
|
});
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
kind: literal("agent_profile_creation_request"),
|
|
12169
|
-
requestId: identifierSchema
|
|
12170
|
-
}),
|
|
12111
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12112
|
+
agentProfileIds: array(agentProfileIdSchema),
|
|
12113
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
12114
|
+
membership: removeSpaceMembersResponseSchema
|
|
12115
|
+
});
|
|
12116
|
+
const centerAgentSpaceContextBaseResponseShape = {
|
|
12117
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12118
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
12119
|
+
};
|
|
12120
|
+
const centerAgentProgressiveSpaceContextSchema = discriminatedUnion("scope", [
|
|
12171
12121
|
strictObject({
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
spaceId: identifierSchema,
|
|
12178
|
-
threadRootSignalId: identifierSchema.optional()
|
|
12122
|
+
scope: literal("source"),
|
|
12123
|
+
signals: array(signalEnvelopeSchema).max(1),
|
|
12124
|
+
sourceSignalId: trimmedNonEmptyStringSchema$1,
|
|
12125
|
+
threadContext: union([spaceThreadContextSchema, nullFactory()]),
|
|
12126
|
+
truncated: literal(false)
|
|
12179
12127
|
}),
|
|
12180
12128
|
strictObject({
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
|
|
12185
|
-
spaceId: identifierSchema,
|
|
12186
|
-
threadRootSignalId: identifierSchema.nullable().optional()
|
|
12129
|
+
scope: literal("thread"),
|
|
12130
|
+
signals: array(signalEnvelopeSchema).max(100),
|
|
12131
|
+
threadId: trimmedNonEmptyStringSchema$1,
|
|
12132
|
+
truncated: boolean()
|
|
12187
12133
|
}),
|
|
12188
12134
|
strictObject({
|
|
12189
|
-
|
|
12190
|
-
|
|
12135
|
+
afterSignalId: trimmedNonEmptyStringSchema$1,
|
|
12136
|
+
scope: literal("delta"),
|
|
12137
|
+
signals: array(signalEnvelopeSchema).max(100),
|
|
12138
|
+
truncated: boolean()
|
|
12191
12139
|
}),
|
|
12192
|
-
slackInboxSourceTargetSchema,
|
|
12193
|
-
centerAgentInboxSourceTargetSchema,
|
|
12194
12140
|
strictObject({
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
"computers",
|
|
12199
|
-
"notifications"
|
|
12200
|
-
])
|
|
12141
|
+
scope: literal("history"),
|
|
12142
|
+
signals: array(signalEnvelopeSchema).max(100),
|
|
12143
|
+
truncated: boolean()
|
|
12201
12144
|
})
|
|
12202
12145
|
]);
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
}).superRefine((item, context) => {
|
|
12220
|
-
if (!(item.attention === "update" ? item.resolutionStatus === "not_applicable" : item.resolutionStatus === "open" || item.resolutionStatus === "resolved")) context.addIssue({
|
|
12221
|
-
code: "custom",
|
|
12222
|
-
message: "Inbox resolution status must match its attention class.",
|
|
12223
|
-
path: ["resolutionStatus"]
|
|
12224
|
-
});
|
|
12146
|
+
union([strictObject({
|
|
12147
|
+
...centerAgentSpaceContextBaseResponseShape,
|
|
12148
|
+
bootstrap: spaceBootstrapResponseSchema
|
|
12149
|
+
}), strictObject({
|
|
12150
|
+
...centerAgentSpaceContextBaseResponseShape,
|
|
12151
|
+
context: centerAgentProgressiveSpaceContextSchema
|
|
12152
|
+
})]);
|
|
12153
|
+
const centerAgentDispatchHistoryLatestAttemptSchema = strictObject({
|
|
12154
|
+
attemptId: trimmedNonEmptyStringSchema$1,
|
|
12155
|
+
attemptNo: int().min(1),
|
|
12156
|
+
createdAt: ISO_DATE_TIME_SCHEMA$1,
|
|
12157
|
+
errorCode: nullableTrimmedStringSchema$1,
|
|
12158
|
+
errorMessage: nullableDiagnosticTextSchema,
|
|
12159
|
+
finishedAt: nullableIsoDateTimeSchema$1,
|
|
12160
|
+
startedAt: nullableIsoDateTimeSchema$1,
|
|
12161
|
+
status: spaceDispatchTraceAttemptStatusSchema
|
|
12225
12162
|
});
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12163
|
+
strictObject({
|
|
12164
|
+
entries: array(strictObject({
|
|
12165
|
+
attemptCount: int().min(0),
|
|
12166
|
+
dispatchId: trimmedNonEmptyStringSchema$1,
|
|
12167
|
+
firstSeenAt: ISO_DATE_TIME_SCHEMA$1,
|
|
12168
|
+
lastAttemptAt: ISO_DATE_TIME_SCHEMA$1,
|
|
12169
|
+
latestAttempt: union([centerAgentDispatchHistoryLatestAttemptSchema, nullFactory()]),
|
|
12170
|
+
status: spaceDispatchTraceDispatchStatusSchema,
|
|
12171
|
+
targetProfileId: trimmedNonEmptyStringSchema$1
|
|
12172
|
+
})),
|
|
12173
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12174
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
12234
12175
|
});
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12176
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12177
|
+
accessModeState: spaceAccessModeStateSchema.optional(),
|
|
12178
|
+
meta: spaceMetaSchema.optional(),
|
|
12179
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
12180
|
+
});
|
|
12181
|
+
discriminatedUnion("addressingModel", [strictObject({
|
|
12182
|
+
addressingModel: literal("wake_reference"),
|
|
12183
|
+
structuredReferenceTargets: literal(true)
|
|
12184
|
+
}), strictObject({
|
|
12185
|
+
addressingModel: literal("wake_reference_mention"),
|
|
12186
|
+
structuredMentionTargets: literal(true),
|
|
12187
|
+
structuredReferenceTargets: literal(true)
|
|
12188
|
+
})]);
|
|
12189
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12190
|
+
signal: signalTextEnvelopeSchema,
|
|
12191
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
12239
12192
|
});
|
|
12240
12193
|
strictObject({
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12194
|
+
attribution: centerAgentAttributionSchema,
|
|
12195
|
+
channelName: trimmedNonEmptyStringSchema$1.max(80),
|
|
12196
|
+
joinedChannel: boolean(),
|
|
12197
|
+
messageTs: trimmedNonEmptyStringSchema$1,
|
|
12198
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
12244
12199
|
});
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
|
|
12248
|
-
|
|
12249
|
-
|
|
12200
|
+
strictObject({
|
|
12201
|
+
attribution: centerAgentAttributionSchema,
|
|
12202
|
+
channelName: trimmedNonEmptyStringSchema$1.max(80),
|
|
12203
|
+
file: slackFileMetadataSchema,
|
|
12204
|
+
joinedChannel: boolean(),
|
|
12205
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
12250
12206
|
});
|
|
12251
|
-
const
|
|
12252
|
-
organizationId:
|
|
12253
|
-
|
|
12207
|
+
const centerAgentSlackSearchFailureSchema = strictObject({
|
|
12208
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12209
|
+
reason: trimmedNonEmptyStringSchema$1.max(500),
|
|
12210
|
+
retryAfterSeconds: number().int().nonnegative().optional(),
|
|
12211
|
+
status: enumFactory([
|
|
12212
|
+
"authorization_expired",
|
|
12213
|
+
"forbidden",
|
|
12214
|
+
"rate_limited",
|
|
12215
|
+
"unavailable"
|
|
12216
|
+
])
|
|
12254
12217
|
});
|
|
12255
|
-
const
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12218
|
+
const centerAgentSlackSearchEvidenceItemSchema = strictObject({
|
|
12219
|
+
authorName: trimmedNonEmptyStringSchema$1.max(256),
|
|
12220
|
+
authorUserId: trimmedNonEmptyStringSchema$1.max(256),
|
|
12221
|
+
channelId: trimmedNonEmptyStringSchema$1.max(256),
|
|
12222
|
+
channelName: trimmedNonEmptyStringSchema$1.max(256),
|
|
12223
|
+
content: trimmedNonEmptyStringSchema$1.max(2e3),
|
|
12224
|
+
isAuthorBot: boolean(),
|
|
12225
|
+
messageTs: trimmedNonEmptyStringSchema$1.max(64),
|
|
12226
|
+
permalink: slackMessagePermalinkSchema
|
|
12227
|
+
});
|
|
12228
|
+
discriminatedUnion("status", [strictObject({
|
|
12229
|
+
messages: array(centerAgentSlackSearchEvidenceItemSchema.extend({ contextMessages: array(centerAgentSlackSearchEvidenceItemSchema).max(2) })).max(8),
|
|
12230
|
+
moreResultsAvailable: boolean(),
|
|
12231
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12232
|
+
status: literal("found")
|
|
12233
|
+
}), centerAgentSlackSearchFailureSchema]);
|
|
12234
|
+
const centerAgentWakeAgentProfilesInSpaceResponseBaseSchema = centerAgentConciergeActionResponseSchema.extend({
|
|
12235
|
+
agentProfileIds: array(agentProfileIdSchema),
|
|
12236
|
+
childTasks: array(strictObject({
|
|
12237
|
+
completionCondition: literal("terminal"),
|
|
12238
|
+
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
12239
|
+
task: spaceWakeAgentTaskHandleSchema
|
|
12240
|
+
})).optional(),
|
|
12241
|
+
delegationId: trimmedNonEmptyStringSchema$1.optional(),
|
|
12242
|
+
fallbackTask: strictObject({
|
|
12243
|
+
activationSubscriptionId: trimmedNonEmptyStringSchema$1,
|
|
12244
|
+
completionCondition: literal("terminal"),
|
|
12245
|
+
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
12246
|
+
task: spaceWakeAgentTaskHandleSchema
|
|
12247
|
+
}).optional(),
|
|
12248
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
12249
|
+
});
|
|
12250
|
+
union([centerAgentWakeAgentProfilesInSpaceResponseBaseSchema.extend({
|
|
12251
|
+
publicationStatus: literal("accepted").optional(),
|
|
12252
|
+
signal: signalTextEnvelopeSchema
|
|
12253
|
+
}), centerAgentWakeAgentProfilesInSpaceResponseBaseSchema.extend({
|
|
12254
|
+
publicationStatus: literal("pending"),
|
|
12255
|
+
retryAfterSeconds: int().positive().max(300)
|
|
12256
|
+
}).superRefine((value, context) => {
|
|
12257
|
+
if (!(value.delegationId && value.childTasks)) context.addIssue({
|
|
12258
|
+
code: "custom",
|
|
12259
|
+
message: "a pending Wake publication requires its durable delegation contract",
|
|
12260
|
+
path: ["delegationId"]
|
|
12261
|
+
});
|
|
12262
|
+
})]).superRefine((value, context) => {
|
|
12263
|
+
if (value.delegationId === void 0 !== (value.childTasks === void 0)) context.addIssue({
|
|
12264
|
+
code: "custom",
|
|
12265
|
+
message: "delegationId and childTasks must either both be present or both be absent",
|
|
12266
|
+
path: ["delegationId"]
|
|
12267
|
+
});
|
|
12268
|
+
if (value.fallbackTask && !value.delegationId) context.addIssue({
|
|
12269
|
+
code: "custom",
|
|
12270
|
+
message: "fallbackTask requires a delegationId",
|
|
12271
|
+
path: ["fallbackTask"]
|
|
12272
|
+
});
|
|
12273
|
+
if (value.childTasks) {
|
|
12274
|
+
const expectedProfileIds = [...new Set(value.agentProfileIds)].sort();
|
|
12275
|
+
const childProfileIds = value.childTasks.map((child) => child.task.targetProfileId).sort();
|
|
12276
|
+
if (childProfileIds.length !== expectedProfileIds.length || childProfileIds.some((profileId, index) => profileId !== expectedProfileIds[index])) context.addIssue({
|
|
12277
|
+
code: "custom",
|
|
12278
|
+
message: "childTasks must contain exactly one Space Wake task for every agentProfileId",
|
|
12279
|
+
path: ["childTasks"]
|
|
12280
|
+
});
|
|
12281
|
+
if (value.fallbackTask && expectedProfileIds.includes(value.fallbackTask.task.targetProfileId)) context.addIssue({
|
|
12282
|
+
code: "custom",
|
|
12283
|
+
message: "fallbackTask must target a different Agent Profile",
|
|
12284
|
+
path: ["fallbackTask"]
|
|
12285
|
+
});
|
|
12286
|
+
}
|
|
12259
12287
|
});
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12288
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12289
|
+
completionCondition: agentTaskCompletionConditionSchema,
|
|
12290
|
+
status: enumFactory([
|
|
12291
|
+
"watching",
|
|
12292
|
+
"continuation_pending",
|
|
12293
|
+
"continuation_created",
|
|
12294
|
+
"condition_not_met"
|
|
12295
|
+
]),
|
|
12296
|
+
outcome: union([agentTaskCompletionObservationSchema, nullFactory()]),
|
|
12297
|
+
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
12298
|
+
task: agentTaskHandleSchema,
|
|
12299
|
+
watchId: trimmedNonEmptyStringSchema$1
|
|
12272
12300
|
});
|
|
12273
|
-
const
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
|
|
12301
|
+
const centerAgentListAgentTaskSchema = strictObject({
|
|
12302
|
+
outcome: union([agentTaskTerminalOutcomeSchema, nullFactory()]),
|
|
12303
|
+
registeredAtMs: int().nonnegative(),
|
|
12304
|
+
registrationSource: agentControllerTaskLifecycleEventSourceSchema,
|
|
12305
|
+
supportedCompletionConditions: array(agentTaskCompletionConditionSchema),
|
|
12306
|
+
task: controllerAgentTaskHandleSchema
|
|
12277
12307
|
});
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
organizationId:
|
|
12281
|
-
|
|
12282
|
-
targets: array(spaceInboxUnreadTargetSchema).max(500),
|
|
12283
|
-
totalUnreadCount: number().int().nonnegative()
|
|
12308
|
+
strictObject({
|
|
12309
|
+
hasMore: boolean(),
|
|
12310
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12311
|
+
tasks: array(centerAgentListAgentTaskSchema).max(20)
|
|
12284
12312
|
});
|
|
12285
|
-
|
|
12286
|
-
const
|
|
12287
|
-
|
|
12288
|
-
|
|
12313
|
+
centerAgentConciergeActionResponseSchema.extend({ invited: literal(true) });
|
|
12314
|
+
const openCenterAgentDirectMessageSpaceResponseSchema = strictObject({
|
|
12315
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12316
|
+
centerAgentProfileId: agentProfileIdSchema,
|
|
12317
|
+
memberProfileId: openMeldRuntimeProfileIdSchema,
|
|
12318
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
12319
|
+
created: boolean()
|
|
12289
12320
|
});
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
|
|
12321
|
+
//#endregion
|
|
12322
|
+
//#region ../../packages/schemas/dist/schemas/http/center-agent-memory.js
|
|
12323
|
+
const boundedIdentifierSchema$1 = z$1.string().trim().min(1).max(256);
|
|
12324
|
+
const CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS = 1200;
|
|
12325
|
+
const centerAgentMemoryProviderSchema = z$1.enum(["zep_cloud"]);
|
|
12326
|
+
const centerAgentMemoryWipeStatusSchema = z$1.enum(["deleted", "not_found"]);
|
|
12327
|
+
const centerAgentWipeMemberMemoryResponseSchema = z$1.strictObject({
|
|
12328
|
+
organizationId: boundedIdentifierSchema$1,
|
|
12329
|
+
provider: centerAgentMemoryProviderSchema,
|
|
12330
|
+
status: centerAgentMemoryWipeStatusSchema,
|
|
12331
|
+
userId: boundedIdentifierSchema$1
|
|
12293
12332
|
});
|
|
12294
|
-
const
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12333
|
+
const centerAgentOrganizationMemoryPolicyResponseSchema = z$1.strictObject({
|
|
12334
|
+
organizationId: boundedIdentifierSchema$1,
|
|
12335
|
+
organizationMemoryOptIn: z$1.boolean(),
|
|
12336
|
+
provider: centerAgentMemoryProviderSchema,
|
|
12337
|
+
updatedByUserId: boundedIdentifierSchema$1.nullable()
|
|
12298
12338
|
});
|
|
12299
|
-
const
|
|
12300
|
-
|
|
12301
|
-
|
|
12339
|
+
const updateCenterAgentOrganizationMemoryPolicyBodySchema = z$1.strictObject({ organizationMemoryOptIn: z$1.boolean() });
|
|
12340
|
+
z$1.strictObject({ fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS) });
|
|
12341
|
+
z$1.strictObject({
|
|
12342
|
+
fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS),
|
|
12343
|
+
organizationId: boundedIdentifierSchema$1,
|
|
12344
|
+
saved: z$1.literal(true),
|
|
12345
|
+
source: z$1.literal("explicit_tool")
|
|
12302
12346
|
});
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12347
|
+
//#endregion
|
|
12348
|
+
//#region ../../packages/schemas/dist/schemas/http/current-device-target.js
|
|
12349
|
+
const currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;
|
|
12350
|
+
const currentDeviceTargetResolvedSchema = z$1.strictObject({
|
|
12351
|
+
availability: z$1.literal("resolved"),
|
|
12352
|
+
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12353
|
+
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12354
|
+
runtimeLane: daemonServiceLaneSchema
|
|
12306
12355
|
});
|
|
12307
|
-
const
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
"all_messages",
|
|
12311
|
-
"mentions_and_replies",
|
|
12312
|
-
"muted"
|
|
12313
|
-
]);
|
|
12314
|
-
const inboxMessageNotificationPreferencesQuerySchema = strictObject({ spaceId: identifierSchema.optional() });
|
|
12315
|
-
const inboxMessageNotificationPreferencesResponseSchema = strictObject({
|
|
12316
|
-
organizationId: identifierSchema,
|
|
12317
|
-
spaceId: identifierSchema.nullable(),
|
|
12318
|
-
defaultMode: inboxMessageNotificationModeSchema,
|
|
12319
|
-
overrideMode: inboxConversationNotificationModeSchema.nullable(),
|
|
12320
|
-
effectiveMode: inboxConversationNotificationModeSchema
|
|
12356
|
+
const currentDeviceTargetMissingSchema = z$1.strictObject({
|
|
12357
|
+
availability: z$1.literal("missing"),
|
|
12358
|
+
reasonCodes: z$1.array(z$1.string().trim().min(1).max(256)).optional()
|
|
12321
12359
|
});
|
|
12322
|
-
const
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
scope: literal("conversation"),
|
|
12327
|
-
spaceId: identifierSchema,
|
|
12328
|
-
mode: inboxConversationNotificationModeSchema.nullable()
|
|
12329
|
-
})]);
|
|
12330
|
-
inboxMessageNotificationPreferencesQuerySchema.extend({ context: openMeldRequestContextSchema });
|
|
12331
|
-
strictObject({
|
|
12332
|
-
context: openMeldRequestContextSchema,
|
|
12333
|
-
preference: updateInboxMessageNotificationPreferencesBodySchema
|
|
12360
|
+
const currentDeviceTargetResponseSchema = z$1.discriminatedUnion("availability", [currentDeviceTargetResolvedSchema, currentDeviceTargetMissingSchema]);
|
|
12361
|
+
const localRuntimeEnrollmentBodySchema = z$1.strictObject({
|
|
12362
|
+
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12363
|
+
runtimeLane: daemonServiceLaneSchema
|
|
12334
12364
|
});
|
|
12335
|
-
const
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
const markInboxItemReadBodySchema = strictObject({ read: boolean() });
|
|
12340
|
-
const markInboxItemReadResponseSchema = strictObject({ item: inboxItemSchema });
|
|
12341
|
-
strictObject({ item: inboxItemWireSchema });
|
|
12342
|
-
const markAllInboxItemsReadResponseSchema = strictObject({ markedReadCount: number().int().nonnegative() });
|
|
12343
|
-
strictObject({
|
|
12344
|
-
attention: inboxAttentionSchema,
|
|
12345
|
-
contextLabel: contextLabelSchema.nullable(),
|
|
12346
|
-
importance: inboxImportanceSchema,
|
|
12347
|
-
kind: inboxItemWireKindSchema,
|
|
12348
|
-
occurredAtMs: timestampMsSchema,
|
|
12349
|
-
organizationId: identifierSchema,
|
|
12350
|
-
preview: previewSchema,
|
|
12351
|
-
recipientUserId: identifierSchema,
|
|
12352
|
-
sourceKey: identifierSchema,
|
|
12353
|
-
sourceKind: inboxSourceKindSchema,
|
|
12354
|
-
sourceTarget: inboxSourceTargetSchema,
|
|
12355
|
-
title: titleSchema
|
|
12356
|
-
}).transform((candidate) => ({
|
|
12357
|
-
...candidate,
|
|
12358
|
-
kind: normalizeInboxItemWireKind(candidate.kind)
|
|
12359
|
-
}));
|
|
12360
|
-
function normalizeInboxItemWireKind(kind) {
|
|
12361
|
-
return kind === "space_reference" ? "space_mention" : kind;
|
|
12362
|
-
}
|
|
12363
|
-
listInboxItemsQuerySchema.extend({
|
|
12364
|
-
context: openMeldRequestContextSchema,
|
|
12365
|
-
includeReplyToRecipient: boolean().optional()
|
|
12365
|
+
const localRuntimeEnrollmentResponseSchema = z$1.strictObject({
|
|
12366
|
+
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12367
|
+
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12368
|
+
runtimeLane: daemonServiceLaneSchema
|
|
12366
12369
|
});
|
|
12367
|
-
|
|
12368
|
-
strictObject({
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
spaceId: identifierSchema
|
|
12370
|
+
const forgetCurrentComputerStatusSchema = z$1.enum(["forgotten", "already_missing"]);
|
|
12371
|
+
const forgetCurrentComputerResponseSchema = z$1.strictObject({
|
|
12372
|
+
status: forgetCurrentComputerStatusSchema,
|
|
12373
|
+
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12374
|
+
currentDeviceTarget: currentDeviceTargetMissingSchema
|
|
12373
12375
|
});
|
|
12374
|
-
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12376
|
+
z$1.strictObject({ deviceId: currentDeviceTargetDeviceIdSchema });
|
|
12377
|
+
const forgetComputerResponseSchema = z$1.strictObject({
|
|
12378
|
+
status: forgetCurrentComputerStatusSchema,
|
|
12379
|
+
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12380
|
+
currentDeviceTarget: currentDeviceTargetResponseSchema
|
|
12379
12381
|
});
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12382
|
+
//#endregion
|
|
12383
|
+
//#region ../../packages/schemas/dist/schemas/http/device-metadata.js
|
|
12384
|
+
const observedDeviceTypeSchema = localRuntimeDeviceTypeSchema;
|
|
12385
|
+
const observedDeviceMetadataSchema = z$1.strictObject({
|
|
12386
|
+
observedDisplayName: z$1.string().trim().min(1).max(200).nullable(),
|
|
12387
|
+
platformFamily: localRuntimePlatformFamilySchema,
|
|
12388
|
+
osVersion: z$1.string().trim().min(1).max(120).nullable(),
|
|
12389
|
+
deviceType: observedDeviceTypeSchema,
|
|
12390
|
+
observedAtMs: z$1.number().int().nonnegative()
|
|
12385
12391
|
});
|
|
12386
|
-
strictObject({
|
|
12387
|
-
|
|
12388
|
-
updateInboxNotificationPreferencesBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
12389
|
-
centerAgentRequestMemberAttentionBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
12392
|
+
const writeCurrentDeviceObservedMetadataBodySchema = z$1.strictObject({ metadata: observedDeviceMetadataSchema });
|
|
12393
|
+
const writeCurrentDeviceObservedMetadataResponseSchema = writeCurrentDeviceObservedMetadataBodySchema;
|
|
12390
12394
|
//#endregion
|
|
12391
12395
|
//#region ../../packages/schemas/dist/schemas/http/list-signals-query.js
|
|
12392
12396
|
const CATCHUP_DEFAULT_LIMIT = 200;
|
|
@@ -13583,6 +13587,170 @@ const spaceMessagePinsResponseSchema = z$1.strictObject({ pins: z$1.array(z$1.st
|
|
|
13583
13587
|
preview: z$1.string()
|
|
13584
13588
|
})) });
|
|
13585
13589
|
//#endregion
|
|
13590
|
+
//#region ../../packages/schemas/dist/schemas/http/space-tasks.js
|
|
13591
|
+
const SPACE_TASK_DESCRIPTION_MAX_CHARS = 8e3;
|
|
13592
|
+
const SPACE_TASK_RESULT_SUMMARY_MAX_CHARS = 8e3;
|
|
13593
|
+
const SPACE_TASK_REVIEW_FEEDBACK_MAX_CHARS = 8e3;
|
|
13594
|
+
const optionalTrimmedText = (max) => z$1.union([z$1.string().trim().min(1).max(max), z$1.null()]);
|
|
13595
|
+
const spaceTaskIdSchema = z$1.string().trim().regex(/^tsk_[0-9a-f-]{36}$/u);
|
|
13596
|
+
const spaceTaskPhaseSchema = z$1.enum([
|
|
13597
|
+
"to_do",
|
|
13598
|
+
"in_progress",
|
|
13599
|
+
"in_review",
|
|
13600
|
+
"done",
|
|
13601
|
+
"canceled"
|
|
13602
|
+
]);
|
|
13603
|
+
const spaceTaskActorSchema = z$1.strictObject({
|
|
13604
|
+
profileId: openMeldRuntimeProfileIdSchema,
|
|
13605
|
+
profileKind: z$1.enum(["human", "agent"]),
|
|
13606
|
+
profileName: z$1.string().min(1).max(200),
|
|
13607
|
+
ownerUserId: z$1.string().min(1).max(512).nullable()
|
|
13608
|
+
});
|
|
13609
|
+
const spaceTaskResultSchema = z$1.strictObject({
|
|
13610
|
+
resultRevision: z$1.number().int().min(1),
|
|
13611
|
+
summary: z$1.string().trim().min(1).max(SPACE_TASK_RESULT_SUMMARY_MAX_CHARS),
|
|
13612
|
+
submittedAt: z$1.string().datetime(),
|
|
13613
|
+
submittedBy: spaceTaskActorSchema
|
|
13614
|
+
});
|
|
13615
|
+
const spaceTaskReviewSchema = z$1.strictObject({
|
|
13616
|
+
decision: z$1.enum(["accepted", "changes_requested"]),
|
|
13617
|
+
feedback: optionalTrimmedText(SPACE_TASK_REVIEW_FEEDBACK_MAX_CHARS),
|
|
13618
|
+
resultRevision: z$1.number().int().min(1),
|
|
13619
|
+
reviewedAt: z$1.string().datetime(),
|
|
13620
|
+
reviewedBy: spaceTaskActorSchema
|
|
13621
|
+
});
|
|
13622
|
+
const spaceTaskEventTypeSchema = z$1.enum([
|
|
13623
|
+
"created",
|
|
13624
|
+
"assigned",
|
|
13625
|
+
"brief_updated",
|
|
13626
|
+
"reviewer_set",
|
|
13627
|
+
"marked_in_progress",
|
|
13628
|
+
"result_submitted",
|
|
13629
|
+
"review_accepted",
|
|
13630
|
+
"changes_requested",
|
|
13631
|
+
"canceled",
|
|
13632
|
+
"reopened",
|
|
13633
|
+
"rework_continued"
|
|
13634
|
+
]);
|
|
13635
|
+
const spaceTaskEventSchema = z$1.strictObject({
|
|
13636
|
+
eventId: z$1.string().trim().regex(/^tse_[0-9a-f-]{36}$/u),
|
|
13637
|
+
taskId: spaceTaskIdSchema,
|
|
13638
|
+
operationId: z$1.string().trim().min(1).max(200),
|
|
13639
|
+
type: spaceTaskEventTypeSchema,
|
|
13640
|
+
actor: spaceTaskActorSchema,
|
|
13641
|
+
fromPhase: z$1.union([spaceTaskPhaseSchema, z$1.null()]),
|
|
13642
|
+
toPhase: spaceTaskPhaseSchema,
|
|
13643
|
+
taskRevision: z$1.number().int().min(1),
|
|
13644
|
+
detail: optionalTrimmedText(SPACE_TASK_RESULT_SUMMARY_MAX_CHARS),
|
|
13645
|
+
createdAt: z$1.string().datetime()
|
|
13646
|
+
});
|
|
13647
|
+
const spaceTaskSchema = z$1.strictObject({
|
|
13648
|
+
taskId: spaceTaskIdSchema,
|
|
13649
|
+
spaceId: z$1.string().trim().min(1).max(512),
|
|
13650
|
+
title: z$1.string().trim().min(1).max(200),
|
|
13651
|
+
description: optionalTrimmedText(SPACE_TASK_DESCRIPTION_MAX_CHARS),
|
|
13652
|
+
completionConditions: z$1.array(z$1.string().trim().min(1).max(500)).max(12),
|
|
13653
|
+
sourceSignalId: z$1.string().trim().min(1).max(512).nullable(),
|
|
13654
|
+
threadId: z$1.string().trim().min(1).max(512).nullable(),
|
|
13655
|
+
requestedBy: spaceTaskActorSchema,
|
|
13656
|
+
createdBy: spaceTaskActorSchema,
|
|
13657
|
+
assignee: z$1.union([spaceTaskActorSchema, z$1.null()]),
|
|
13658
|
+
reviewer: z$1.union([spaceTaskActorSchema, z$1.null()]),
|
|
13659
|
+
phase: spaceTaskPhaseSchema,
|
|
13660
|
+
result: z$1.union([spaceTaskResultSchema, z$1.null()]),
|
|
13661
|
+
review: z$1.union([spaceTaskReviewSchema, z$1.null()]),
|
|
13662
|
+
automaticReworkRounds: z$1.number().int().min(0).max(2),
|
|
13663
|
+
needsHumanDecision: z$1.boolean(),
|
|
13664
|
+
revision: z$1.number().int().min(1),
|
|
13665
|
+
createdAt: z$1.string().datetime(),
|
|
13666
|
+
updatedAt: z$1.string().datetime()
|
|
13667
|
+
});
|
|
13668
|
+
const operationIdSchema = z$1.string().trim().min(1).max(200);
|
|
13669
|
+
const expectedRevisionSchema = z$1.number().int().min(1);
|
|
13670
|
+
const createSpaceTaskBodySchema = z$1.strictObject({
|
|
13671
|
+
operationId: operationIdSchema,
|
|
13672
|
+
title: spaceTaskSchema.shape.title,
|
|
13673
|
+
description: spaceTaskSchema.shape.description.optional(),
|
|
13674
|
+
completionConditions: spaceTaskSchema.shape.completionConditions.optional(),
|
|
13675
|
+
sourceSignalId: spaceTaskSchema.shape.sourceSignalId.optional(),
|
|
13676
|
+
threadId: spaceTaskSchema.shape.threadId.optional(),
|
|
13677
|
+
assigneeProfileId: openMeldRuntimeProfileIdSchema.nullable().optional(),
|
|
13678
|
+
reviewerProfileId: openMeldRuntimeProfileIdSchema.nullable().optional()
|
|
13679
|
+
}).superRefine((value, ctx) => {
|
|
13680
|
+
if (value.assigneeProfileId && value.reviewerProfileId === value.assigneeProfileId) ctx.addIssue({
|
|
13681
|
+
code: "custom",
|
|
13682
|
+
path: ["reviewerProfileId"],
|
|
13683
|
+
message: "An independent Reviewer must differ from the assignee"
|
|
13684
|
+
});
|
|
13685
|
+
});
|
|
13686
|
+
const taskMutationBase = {
|
|
13687
|
+
operationId: operationIdSchema,
|
|
13688
|
+
expectedRevision: expectedRevisionSchema
|
|
13689
|
+
};
|
|
13690
|
+
const mutateSpaceTaskBodySchema = z$1.discriminatedUnion("action", [
|
|
13691
|
+
z$1.strictObject({
|
|
13692
|
+
...taskMutationBase,
|
|
13693
|
+
action: z$1.literal("assign"),
|
|
13694
|
+
assigneeProfileId: openMeldRuntimeProfileIdSchema.nullable()
|
|
13695
|
+
}),
|
|
13696
|
+
z$1.strictObject({
|
|
13697
|
+
...taskMutationBase,
|
|
13698
|
+
action: z$1.literal("update_brief"),
|
|
13699
|
+
title: spaceTaskSchema.shape.title.optional(),
|
|
13700
|
+
description: spaceTaskSchema.shape.description.optional(),
|
|
13701
|
+
completionConditions: spaceTaskSchema.shape.completionConditions.optional()
|
|
13702
|
+
}),
|
|
13703
|
+
z$1.strictObject({
|
|
13704
|
+
...taskMutationBase,
|
|
13705
|
+
action: z$1.literal("set_reviewer"),
|
|
13706
|
+
reviewerProfileId: openMeldRuntimeProfileIdSchema.nullable()
|
|
13707
|
+
}),
|
|
13708
|
+
z$1.strictObject({
|
|
13709
|
+
...taskMutationBase,
|
|
13710
|
+
action: z$1.literal("mark_in_progress")
|
|
13711
|
+
}),
|
|
13712
|
+
z$1.strictObject({
|
|
13713
|
+
...taskMutationBase,
|
|
13714
|
+
action: z$1.literal("submit_result"),
|
|
13715
|
+
summary: spaceTaskResultSchema.shape.summary
|
|
13716
|
+
}),
|
|
13717
|
+
z$1.strictObject({
|
|
13718
|
+
...taskMutationBase,
|
|
13719
|
+
action: z$1.literal("review"),
|
|
13720
|
+
decision: spaceTaskReviewSchema.shape.decision,
|
|
13721
|
+
feedback: spaceTaskReviewSchema.shape.feedback.optional()
|
|
13722
|
+
}),
|
|
13723
|
+
z$1.strictObject({
|
|
13724
|
+
...taskMutationBase,
|
|
13725
|
+
action: z$1.literal("cancel"),
|
|
13726
|
+
reason: z$1.string().trim().min(1).max(1e3)
|
|
13727
|
+
}),
|
|
13728
|
+
z$1.strictObject({
|
|
13729
|
+
...taskMutationBase,
|
|
13730
|
+
action: z$1.literal("reopen"),
|
|
13731
|
+
reason: z$1.string().trim().min(1).max(1e3)
|
|
13732
|
+
}),
|
|
13733
|
+
z$1.strictObject({
|
|
13734
|
+
...taskMutationBase,
|
|
13735
|
+
action: z$1.literal("continue_rework"),
|
|
13736
|
+
reason: z$1.string().trim().min(1).max(1e3)
|
|
13737
|
+
})
|
|
13738
|
+
]);
|
|
13739
|
+
const spaceTaskResponseSchema = z$1.strictObject({
|
|
13740
|
+
task: spaceTaskSchema,
|
|
13741
|
+
events: z$1.array(spaceTaskEventSchema)
|
|
13742
|
+
});
|
|
13743
|
+
z$1.strictObject({ phase: spaceTaskPhaseSchema.optional() });
|
|
13744
|
+
const listSpaceTasksResponseSchema = z$1.strictObject({
|
|
13745
|
+
tasks: z$1.array(spaceTaskSchema),
|
|
13746
|
+
truncated: z$1.boolean()
|
|
13747
|
+
});
|
|
13748
|
+
const spaceTaskMutationReceiptSchema = z$1.strictObject({
|
|
13749
|
+
task: spaceTaskSchema,
|
|
13750
|
+
event: spaceTaskEventSchema,
|
|
13751
|
+
applied: z$1.boolean()
|
|
13752
|
+
});
|
|
13753
|
+
//#endregion
|
|
13586
13754
|
//#region ../../packages/schemas/dist/schemas/http/space-updates.js
|
|
13587
13755
|
const DECIMAL_INTEGER_REGEX = /^\d+$/u;
|
|
13588
13756
|
const updatesLimitSchema = z$1.preprocess((value) => {
|
|
@@ -18832,6 +19000,63 @@ async function getSpaceStatus(client, input) {
|
|
|
18832
19000
|
invalidMessage: "invalid space status response"
|
|
18833
19001
|
});
|
|
18834
19002
|
}
|
|
19003
|
+
async function listSpaceTasks(client, input) {
|
|
19004
|
+
const query = input.phase ? `?phase=${encodeURIComponent(input.phase)}` : "";
|
|
19005
|
+
return await client.requestJson({
|
|
19006
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/tasks${query}`,
|
|
19007
|
+
operation: "space.tasks.list",
|
|
19008
|
+
method: "GET",
|
|
19009
|
+
requestContext: input.requestContext,
|
|
19010
|
+
signal: input.signal,
|
|
19011
|
+
timeoutMs: input.timeoutMs,
|
|
19012
|
+
spacePassword: input.spacePassword,
|
|
19013
|
+
schema: listSpaceTasksResponseSchema,
|
|
19014
|
+
invalidMessage: "Invalid Space Tasks response."
|
|
19015
|
+
});
|
|
19016
|
+
}
|
|
19017
|
+
async function getSpaceTask(client, input) {
|
|
19018
|
+
return await client.requestJson({
|
|
19019
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/tasks/${encodeURIComponent(input.taskId)}`,
|
|
19020
|
+
operation: "space.tasks.get",
|
|
19021
|
+
method: "GET",
|
|
19022
|
+
requestContext: input.requestContext,
|
|
19023
|
+
signal: input.signal,
|
|
19024
|
+
timeoutMs: input.timeoutMs,
|
|
19025
|
+
spacePassword: input.spacePassword,
|
|
19026
|
+
schema: spaceTaskResponseSchema,
|
|
19027
|
+
invalidMessage: "Invalid Space Task response."
|
|
19028
|
+
});
|
|
19029
|
+
}
|
|
19030
|
+
async function createSpaceTask(client, input) {
|
|
19031
|
+
return await client.requestJson({
|
|
19032
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/tasks`,
|
|
19033
|
+
operation: "space.tasks.create",
|
|
19034
|
+
method: "POST",
|
|
19035
|
+
headers: { "content-type": "application/json" },
|
|
19036
|
+
body: JSON.stringify(createSpaceTaskBodySchema.parse(input.body)),
|
|
19037
|
+
requestContext: input.requestContext,
|
|
19038
|
+
signal: input.signal,
|
|
19039
|
+
timeoutMs: input.timeoutMs,
|
|
19040
|
+
spacePassword: input.spacePassword,
|
|
19041
|
+
schema: spaceTaskMutationReceiptSchema,
|
|
19042
|
+
invalidMessage: "Invalid Space Task creation response."
|
|
19043
|
+
});
|
|
19044
|
+
}
|
|
19045
|
+
async function mutateSpaceTask(client, input) {
|
|
19046
|
+
return await client.requestJson({
|
|
19047
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/tasks/${encodeURIComponent(input.taskId)}`,
|
|
19048
|
+
operation: "space.tasks.mutate",
|
|
19049
|
+
method: "PATCH",
|
|
19050
|
+
headers: { "content-type": "application/json" },
|
|
19051
|
+
body: JSON.stringify(mutateSpaceTaskBodySchema.parse(input.body)),
|
|
19052
|
+
requestContext: input.requestContext,
|
|
19053
|
+
signal: input.signal,
|
|
19054
|
+
timeoutMs: input.timeoutMs,
|
|
19055
|
+
spacePassword: input.spacePassword,
|
|
19056
|
+
schema: spaceTaskMutationReceiptSchema,
|
|
19057
|
+
invalidMessage: "Invalid Space Task change response."
|
|
19058
|
+
});
|
|
19059
|
+
}
|
|
18835
19060
|
async function createSpaceThread(client, input) {
|
|
18836
19061
|
const body = {
|
|
18837
19062
|
rootSignalId: input.rootSignalId,
|
|
@@ -19123,7 +19348,11 @@ const createSpaceApi = (client) => {
|
|
|
19123
19348
|
getThread: async (input) => await getSpaceThread(client, input),
|
|
19124
19349
|
listThreadEvents: async (input) => await listSpaceThreadEvents(client, input),
|
|
19125
19350
|
listThreadSignals: async (input) => await listSpaceThreadSignals(client, input),
|
|
19126
|
-
postThreadSignal: async (input) => await postSpaceThreadSignal(client, input)
|
|
19351
|
+
postThreadSignal: async (input) => await postSpaceThreadSignal(client, input),
|
|
19352
|
+
listTasks: async (input) => await listSpaceTasks(client, input),
|
|
19353
|
+
getTask: async (input) => await getSpaceTask(client, input),
|
|
19354
|
+
createTask: async (input) => await createSpaceTask(client, input),
|
|
19355
|
+
mutateTask: async (input) => await mutateSpaceTask(client, input)
|
|
19127
19356
|
};
|
|
19128
19357
|
};
|
|
19129
19358
|
async function readOrUpdateSpaceFilePins(client, input) {
|
|
@@ -19224,6 +19453,6 @@ function shouldWrapNetworkRequestError(error) {
|
|
|
19224
19453
|
return message.includes("fetch failed") || message.includes("failed to fetch") || message.includes("network request failed");
|
|
19225
19454
|
}
|
|
19226
19455
|
//#endregion
|
|
19227
|
-
export { buildLocalFolderPickerPath as $,
|
|
19456
|
+
export { buildLocalFolderPickerPath as $, listSpaceTasksResponseSchema as $n, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as $r, createPrepareReadinessApi as $t, buildCurrentOrganizationDirectoryPath as A, archiveProjectResponseSchema as Ai, setSpaceAccessMode as An, modelCatalogSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, toCompatibleSpaceAddressingRequestWireValue as Bi, MAX_TEXT_LENGTH as Bn, stringifyOrganizationSkillBundleCanonicalJson as Br, createDirectMessageApi as Bt, buildCenterAgentSessionPath as C, agentControllerCollaborationModeSchema as Ci, readAccountOrganizationContext as Cn, betterAuthDeviceAuthorizationTokenRequestSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, localProjectControlConnectionSchema as Di, readOrUpdateSpaceMessagePins as Dn, agentProfileCreationConfigurationSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, signalTextEnvelopeSchema as Ei, readOrUpdateSpaceFilePins as En, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as Fi, updateSpaceMeta as Fn, getOrganizationSkillResponseSchema as Fr, createCenterAgentApi as Ft, buildFeedbackIssueSubmissionPath as G, OPENMELD_HEADER_PROFILE_ID as Gn, createCenterAgentRoutineResponseSchema as Gr, createLocalProjectControlApi as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, parseIncoming as Hn, organizationComputersResponseSchema as Hr, createFetchTransport as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, OPENMELD_RUNTIME_CAPABILITIES_HEADER as Ii, uploadSpaceAttachment as In, listOrganizationSkillsResponseSchema as Ir, createComputerAuthorizationGrant as It, buildInboxItemReadPath as J, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Jn, listCenterAgentRoutinesResponseSchema as Jr, createOrganizationApi as Jt, buildInboxItemDismissPath as K, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as Kn, deleteCenterAgentRoutineResponseSchema as Kr, createLocalRuntimeExpectedRoutesApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, computerFileAccessDaemonFrameSchema as Li, uploadSpaceFile as Ln, organizationSkillBundleSchema as Lr, createComputerFileAccessApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, listProjectsResponseSchema as Mi, trashSpaceFileEntry as Mn, resolveInitialSpaceAccessMode as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, projectSchema as Ni, updateSpaceFileContent as Nn, spaceCreatorSchema as Nr, createAgentProfileExecutionModeApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, localProjectControlDaemonFrameSchema as Oi, resolveAccountSpaceIndexGatewayHost as On, createAgentProfileCreationRequestBodySchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, updateProjectResponseSchema as Pi, updateSpaceFileEntry as Pn, spaceMetaSchema as Pr, createAgentProfileWorkRecoveryApi as Pt, buildInboxSummaryPath as Q, createSpaceTaskBodySchema as Qn, AGENT_ACTIVITY_EVENT_MAX_BYTES as Qr, createPluginsApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, computerFileAccessPolicyInputSchema as Ri, DAEMON_STREAM_KEEPALIVE_PING as Rn, organizationSkillReleaseSummarySchema as Rr, createConfigApi as Rt, buildCenterAgentProfilePath as S, agentControllerPermissionModeSchema as Si, publicSpaceUrls as Sn, betterAuthDeviceAuthorizationErrorResponseSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, serviceConnectionEvidenceJournalSchema as Ti, readCliRelease as Tn, betterAuthSessionSnapshotResponseSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, parseServerErrorFrame as Un, submitFeedbackIssueRequestSchema as Ur, createInboxApi as Ut, buildCurrentOrganizationSpacesPath as V, parseEnvelope as Vn, organizationDirectoryResponseSchema as Vr, createFeedbackApi as Vt, buildDirectMessageSpacePath as W, resolveCustomMentionAliasOverride as Wn, submitFeedbackIssueResponseSchema as Wr, createLocalFolderPickerApi as Wt, buildInboxPath as X, toErrorMessage$2 as Xn, resumeCenterAgentRoutineResponseSchema as Xr, createOrganizationSkillsApi as Xt, buildInboxMarkAllReadPath as Y, buildOpenMeldRequestContextHeaders as Yn, pauseCenterAgentRoutineResponseSchema as Yr, createOrganizationDocumentsApi as Yt, buildInboxPreferencesPath as Z, getSpaceUpdatesResponseSchema as Zn, updateCenterAgentRoutineResponseSchema as Zr, createOrganizationUsageApi as Zt, buildCenterAgentDirectMessageSpacePath as _, agentActivitySessionInventoryResponseSchema as _i, listSpaceFileRevisions as _n, projectOwnerComputerLocalRuntimes as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, leaveSpaceResponseSchema as ai, createRuntimeReportingApi as an, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, centerAgentToolSpeakerSchema as bi, mutateSpaceTask as bn, betterAuthDeviceAuthorizationCodeRequestSchema as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, resolvedSpaceMemberProfileSchema as ci, createSpaceFolder as cn, resolveRuntimeCoordinatorHeadStatusRootCause as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, spaceMemberDirectoryEntrySchema as di, getModelCatalog as dn, spaceDispatchTraceDispatchStatusSchema as dr, buildOrganizationSkillsPath as dt, agentActivityEventSchema as ei, createProfileSpaceHistoryApi as en, mutateSpaceTaskBodySchema as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, spaceMemberDirectorySchema as fi, getSpaceFile as fn, spaceDispatchTraceResponseSchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, agentActivitySessionInventoryQuerySchema as gi, isInboxNotificationEligible as gn, ownerComputerDiagnosticsSchema as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, agentActivityInventorySessionStatusSchema as hi, isInboxItemVisibleConversation as hn, submitAgentControllerTaskLifecycleEventItemSchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, agentActivitySnapshotResponseSchema as ii, createRoutinesApi as in, pluginActionRequestSchema as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, createProjectResponseSchema as ji, toStructuredApiClientFailure as jn, organizationSpaceDirectoryWithMemberCountsResponseSchema as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, localProjectControlDiscoverProjectsResponseSchema as ki, resolveProfileSpaceHistoryGatewayHost as kn, gatewayErrorEnvelopeSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, spaceMemberAgentWakeAvailabilitySchema as li, createSpaceTask as ln, resolveSpaceDispatchTraceRootCause as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, agentActivityInventorySessionOriginSchema as mi, inboxMessageNotificationSpaceId as mn, projectObservabilityWakeCorrelation as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivitySessionStatusSchema as ni, createProjectsApi as nn, spaceTaskMutationReceiptSchema as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, postSpaceMembersResponseSchema as oi, createServiceConnectionEvidenceApi as on, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, spaceMemberKindSchema as pi, getSpaceTask as pn, observabilityWakeTraceSelectorSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, OPENMELD_HEADER_REQUEST_ID as qn, listCenterAgentRoutineRunsResponseSchema as qr, createOpenMeldApiClient as qt, buildAccountSpaceActiveWakeSummaryPath as r, agentActivitySnapshotQuerySchema as ri, createReasoningStreamApi as rn, spaceEntryTargetSchema as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, removeSpaceMembersResponseSchema as si, createSpaceApi as sn, projectSpaceDispatchTraceFinalVisibleOutcome as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, agentActivityProviderSchema as ti, createProfilesApi as tn, spaceTaskIdSchema as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, spaceMemberDirectoryAllowedRelationsSchema as ui, downloadSpaceFileContent as un, spaceDispatchTraceAttemptStatusSchema as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, localAgentSessionProviderSchema as vi, listSpaceFiles as vn, summarizeComputerFileAccessPolicy as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, serviceConnectionEvidenceEventSchema as wi, readAccountSession as wn, betterAuthDeviceAuthorizationTokenResponseSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, openCodePermissionConfigSchema as xi, normalizeApiBaseUrl as xn, betterAuthDeviceAuthorizationCodeResponseSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, observedLocalAgentSessionSchema as yi, listSpaceTasks as yn, BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, computerFileAccessPolicySchema as zi, DAEMON_STREAM_KEEPALIVE_PONG as zn, organizationSkillSummarySchema as zr, createCurrentDeviceApi as zt };
|
|
19228
19457
|
|
|
19229
|
-
//# sourceMappingURL=dist-
|
|
19458
|
+
//# sourceMappingURL=dist-jsWwS864.js.map
|