openmeld 0.3.211 → 0.3.213
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-CNgO595N.js → add-me-membership-GbaxKxz-.js} +2 -2
- package/dist/{add-me-membership-CNgO595N.js.map → add-me-membership-GbaxKxz-.js.map} +1 -1
- package/dist/agents-BNoz9DA5.js +4153 -0
- package/dist/agents-BNoz9DA5.js.map +1 -0
- package/dist/{api-client-foundation-CtQTtA4m.js → api-client-foundation-TEBOwWl1.js} +1 -1
- package/dist/{api-client-foundation-MJK8vWfn.js → api-client-foundation-km8Ol1P4.js} +3 -3
- package/dist/{api-client-foundation-MJK8vWfn.js.map → api-client-foundation-km8Ol1P4.js.map} +1 -1
- package/dist/auth-session-D6UDl3r3.js +4 -0
- package/dist/{auth-session-CB7m-csh.js → auth-session-DgHvRt5i.js} +99 -21
- package/dist/auth-session-DgHvRt5i.js.map +1 -0
- package/dist/{command-oQK6PG6b.js → command-Dsa8gaFe.js} +10 -9
- package/dist/{command-oQK6PG6b.js.map → command-Dsa8gaFe.js.map} +1 -1
- package/dist/computer-connection-D8tX14R_.js +120 -0
- package/dist/computer-connection-D8tX14R_.js.map +1 -0
- package/dist/{computer-connection-review-CiIyTeDw.js → computer-connection-review-CjOXBWiV.js} +6 -6
- package/dist/{computer-connection-review-CiIyTeDw.js.map → computer-connection-review-CjOXBWiV.js.map} +1 -1
- package/dist/computer-disconnect-k6UVCsVF.js +47 -0
- package/dist/computer-disconnect-k6UVCsVF.js.map +1 -0
- package/dist/{computer-setup-continuation-CeFPluYv.js → computer-setup-continuation-DhY_sJis.js} +4 -4
- package/dist/{computer-setup-continuation-CeFPluYv.js.map → computer-setup-continuation-DhY_sJis.js.map} +1 -1
- package/dist/{control-plane-D9jDcbMZ.js → control-plane-Bpu7g9Av.js} +3 -547
- package/dist/control-plane-Bpu7g9Av.js.map +1 -0
- package/dist/{daemon-service-runtime-D8KrOfSV.js → daemon-service-runtime-CY6wdBe1.js} +381 -54
- package/dist/daemon-service-runtime-CY6wdBe1.js.map +1 -0
- package/dist/{openmeld-tools-update-coordinator-qrZLtDMv.js → daemon-service-update-coordinator-BcbbIDzC.js} +25953 -25662
- package/dist/daemon-service-update-coordinator-BcbbIDzC.js.map +1 -0
- package/dist/{dist-DajKOXDk.js → dist-Bsz_wafH.js} +1 -1
- package/dist/{dist-DtykdMlN.js → dist-CAx_kxvt.js} +971 -929
- package/dist/dist-CAx_kxvt.js.map +1 -0
- package/dist/{elapsed-time-BE9NPM-x.js → elapsed-time-Do3uIV__.js} +47 -78
- package/dist/elapsed-time-Do3uIV__.js.map +1 -0
- package/dist/{installation-inventory-CLBwkIf6.js → installation-inventory-C92AkQkA.js} +3 -3
- package/dist/{installation-inventory-CLBwkIf6.js.map → installation-inventory-C92AkQkA.js.map} +1 -1
- package/dist/local-components-B6SCXZf9.js +575 -0
- package/dist/local-components-B6SCXZf9.js.map +1 -0
- package/dist/{openmeld-LADiOJ3_.js → openmeld-I4pLxQsY.js} +55 -154
- package/dist/openmeld-I4pLxQsY.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-B-u1CItK.js → openmeld-maintenance-worker-D5VAO9GD.js} +5 -5
- package/dist/{openmeld-maintenance-worker-B-u1CItK.js.map → openmeld-maintenance-worker-D5VAO9GD.js.map} +1 -1
- package/dist/openmeld-tools-update-join-DsQdgYNw.js +56 -0
- package/dist/openmeld-tools-update-join-DsQdgYNw.js.map +1 -0
- package/dist/openmeld-tools-update-process-frame-0X-t0Kjv.js +93 -0
- package/dist/openmeld-tools-update-process-frame-0X-t0Kjv.js.map +1 -0
- package/dist/openmeld-tools-update-process-frame-DX1Dc8VI.js +4 -0
- package/dist/openmeld.js +7 -3
- package/dist/openmeld.js.map +1 -1
- package/dist/{prepare-session-executor-B5aD6Fx_.js → prepare-session-executor-BEzlM0hJ.js} +171 -16
- package/dist/prepare-session-executor-BEzlM0hJ.js.map +1 -0
- package/dist/{runtime-transport-VcPSvVY1.js → runtime-transport-DxISZdzf.js} +34 -4
- package/dist/runtime-transport-DxISZdzf.js.map +1 -0
- package/dist/{agents-CGBELT4J.js → service-Cev-7yAJ.js} +703 -4620
- package/dist/service-Cev-7yAJ.js.map +1 -0
- package/dist/{service-account-authorization-D1Wp-91j.js → service-account-authorization-AbowIr6n.js} +3 -3
- package/dist/{service-account-authorization-D1Wp-91j.js.map → service-account-authorization-AbowIr6n.js.map} +1 -1
- package/dist/service-account-control-BV_tBiio.js +145 -0
- package/dist/service-account-control-BV_tBiio.js.map +1 -0
- package/dist/{service-control-capabilities-CP1XCSVm.js → service-control-capabilities-BGXPenm1.js} +1 -1
- package/dist/{service-control-capabilities-COkZ1Ceh.js → service-control-capabilities-DUudAKoj.js} +2 -2
- package/dist/{service-control-capabilities-COkZ1Ceh.js.map → service-control-capabilities-DUudAKoj.js.map} +1 -1
- package/dist/{upgrade-DJLqTfBA.js → upgrade-9h70HCQP.js} +40 -18
- package/dist/upgrade-9h70HCQP.js.map +1 -0
- package/dist/upgrade-CXgHeEKK.js +4 -0
- package/package.json +2 -2
- package/dist/agents-CGBELT4J.js.map +0 -1
- package/dist/auth-session-CB7m-csh.js.map +0 -1
- package/dist/auth-session-DXJq5arz.js +0 -4
- package/dist/computer-connection-51dg6Tq0.js +0 -54
- package/dist/computer-connection-51dg6Tq0.js.map +0 -1
- package/dist/control-plane-D9jDcbMZ.js.map +0 -1
- package/dist/daemon-service-runtime-D8KrOfSV.js.map +0 -1
- package/dist/dist-DtykdMlN.js.map +0 -1
- package/dist/elapsed-time-BE9NPM-x.js.map +0 -1
- package/dist/openmeld-LADiOJ3_.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-qrZLtDMv.js.map +0 -1
- package/dist/prepare-session-executor-B5aD6Fx_.js.map +0 -1
- package/dist/runtime-transport-VcPSvVY1.js.map +0 -1
- package/dist/upgrade-BMh_CLJL.js +0 -4
- package/dist/upgrade-DJLqTfBA.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-DxISZdzf.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-Bpu7g9Av.js";
|
|
7
|
+
import { A as coerce, B as number, C as openMeldToolsUpdateRequestResultSchema, E as NEVER, F as iso, G as string, H as preprocess, I as lazySchema, J as union, K as tuple, L as literal, M as email, N as enumFactory, O as array, P as int, R as neverFactory, U as record, V as object, W as strictObject, X as url, Y as unknown, _ as openMeldToolsMaintenanceProjectionSchema, c as localComponentUpdatePolicySchema, g as openMeldToolsMaintenanceMutationResultSchema, j as discriminatedUnion, k as boolean, l as localComponentUpdateProjectionSchema, q as undefinedFactory, u as localComponentUpdateStatusSchema, x as openMeldToolsUpdateOperationSchema, z as nullFactory } from "./local-components-B6SCXZf9.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,544 @@ 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
|
+
"mentions",
|
|
1546
|
+
"updates",
|
|
1547
|
+
"urgent_updates",
|
|
1548
|
+
"recent_updates"
|
|
1549
|
+
]);
|
|
1550
|
+
const inboxPresentationSchema = enumFactory(["attention"]);
|
|
1551
|
+
const inboxAttentionSchema = enumFactory(["update", "action_required"]);
|
|
1552
|
+
const inboxImportanceSchema = enumFactory(["normal", "urgent"]);
|
|
1553
|
+
const inboxResolutionStatusSchema = enumFactory([
|
|
1554
|
+
"not_applicable",
|
|
1555
|
+
"open",
|
|
1556
|
+
"resolved"
|
|
1557
|
+
]);
|
|
1558
|
+
const inboxItemWireKindSchema = union([enumFactory([
|
|
1559
|
+
"space_message",
|
|
1560
|
+
"space_mention",
|
|
1561
|
+
"agent_reply",
|
|
1562
|
+
"agent_interaction",
|
|
1563
|
+
"wake_outcome",
|
|
1564
|
+
"center_agent_update",
|
|
1565
|
+
"document_review",
|
|
1566
|
+
"organization_request",
|
|
1567
|
+
"system_issue"
|
|
1568
|
+
]), literal("space_reference")]);
|
|
1569
|
+
const inboxSourceKindSchema = enumFactory([
|
|
1570
|
+
"space_signal",
|
|
1571
|
+
"runtime_coordinator_interaction",
|
|
1572
|
+
"remote_agent_native_delivery",
|
|
1573
|
+
"remote_agent_native_interaction",
|
|
1574
|
+
"organization_document_draft",
|
|
1575
|
+
"organization_opportunity",
|
|
1576
|
+
"organization_member_request",
|
|
1577
|
+
"agent_profile_work_recovery",
|
|
1578
|
+
"system_attention_event"
|
|
1579
|
+
]);
|
|
1580
|
+
const centerAgentRequestMemberAttentionBodySchema = strictObject({
|
|
1581
|
+
impact: enumFactory([
|
|
1582
|
+
"response_needed",
|
|
1583
|
+
"work_blocked",
|
|
1584
|
+
"material_failure_risk"
|
|
1585
|
+
]),
|
|
1586
|
+
prompt: previewSchema,
|
|
1587
|
+
submissionId: identifierSchema$3,
|
|
1588
|
+
title: titleSchema$1
|
|
1589
|
+
});
|
|
1590
|
+
strictObject({
|
|
1591
|
+
importance: inboxImportanceSchema,
|
|
1592
|
+
instruction: string().trim().min(1).max(500),
|
|
1593
|
+
organizationId: identifierSchema$3,
|
|
1594
|
+
requestId: identifierSchema$3
|
|
1595
|
+
});
|
|
1596
|
+
const centerAgentInboxSourceTargetSchema = strictObject({
|
|
1597
|
+
kind: literal("center_agent"),
|
|
1598
|
+
signalId: identifierSchema$3.optional(),
|
|
1599
|
+
spaceId: identifierSchema$3.optional()
|
|
1600
|
+
}).superRefine((target, context) => {
|
|
1601
|
+
if (target.signalId === void 0 !== (target.spaceId === void 0)) context.addIssue({
|
|
1602
|
+
code: "custom",
|
|
1603
|
+
message: "Center Agent Inbox targets must include both spaceId and signalId."
|
|
1604
|
+
});
|
|
1605
|
+
});
|
|
1606
|
+
const slackInboxSourceTargetSchema = strictObject({
|
|
1607
|
+
channelId: identifierSchema$3,
|
|
1608
|
+
kind: literal("message_channel"),
|
|
1609
|
+
messageId: identifierSchema$3,
|
|
1610
|
+
permalink: slackMessagePermalinkSchema,
|
|
1611
|
+
provider: literal("slack"),
|
|
1612
|
+
teamId: identifierSchema$3,
|
|
1613
|
+
threadRootMessageId: identifierSchema$3
|
|
1614
|
+
});
|
|
1615
|
+
const inboxSourceTargetSchema = discriminatedUnion("kind", [
|
|
1616
|
+
strictObject({
|
|
1617
|
+
kind: literal("organization_join_request"),
|
|
1618
|
+
requestId: identifierSchema$3
|
|
1619
|
+
}),
|
|
1620
|
+
strictObject({
|
|
1621
|
+
kind: literal("agent_profile"),
|
|
1622
|
+
profileId: identifierSchema$3
|
|
1623
|
+
}),
|
|
1624
|
+
strictObject({
|
|
1625
|
+
kind: literal("agent_profile_creation_request"),
|
|
1626
|
+
requestId: identifierSchema$3
|
|
1627
|
+
}),
|
|
1628
|
+
strictObject({
|
|
1629
|
+
kind: literal("space"),
|
|
1630
|
+
directMessage: boolean().optional(),
|
|
1631
|
+
agentOwnerActivity: boolean().optional(),
|
|
1632
|
+
replyToRecipient: boolean().optional(),
|
|
1633
|
+
signalId: identifierSchema$3.optional(),
|
|
1634
|
+
spaceId: identifierSchema$3,
|
|
1635
|
+
threadRootSignalId: identifierSchema$3.optional()
|
|
1636
|
+
}),
|
|
1637
|
+
strictObject({
|
|
1638
|
+
interactionId: identifierSchema$3,
|
|
1639
|
+
kind: literal("agent_interaction"),
|
|
1640
|
+
runtimeCoordinatorExecutionId: identifierSchema$3,
|
|
1641
|
+
sourceSignalId: identifierSchema$3.optional(),
|
|
1642
|
+
spaceId: identifierSchema$3,
|
|
1643
|
+
threadRootSignalId: identifierSchema$3.nullable().optional()
|
|
1644
|
+
}),
|
|
1645
|
+
strictObject({
|
|
1646
|
+
documentId: identifierSchema$3,
|
|
1647
|
+
kind: literal("organization_document")
|
|
1648
|
+
}),
|
|
1649
|
+
slackInboxSourceTargetSchema,
|
|
1650
|
+
centerAgentInboxSourceTargetSchema,
|
|
1651
|
+
strictObject({
|
|
1652
|
+
kind: literal("settings"),
|
|
1653
|
+
section: enumFactory([
|
|
1654
|
+
"channels",
|
|
1655
|
+
"computers",
|
|
1656
|
+
"notifications"
|
|
1657
|
+
])
|
|
1658
|
+
})
|
|
1659
|
+
]);
|
|
1660
|
+
const inboxItemWireSchema = strictObject({
|
|
1661
|
+
attention: inboxAttentionSchema,
|
|
1662
|
+
contextLabel: contextLabelSchema.nullable(),
|
|
1663
|
+
createdAt: isoDateTimeSchema$7,
|
|
1664
|
+
id: identifierSchema$3,
|
|
1665
|
+
importance: inboxImportanceSchema,
|
|
1666
|
+
kind: inboxItemWireKindSchema,
|
|
1667
|
+
occurredAt: isoDateTimeSchema$7,
|
|
1668
|
+
organizationId: identifierSchema$3,
|
|
1669
|
+
preview: previewSchema,
|
|
1670
|
+
readAt: isoDateTimeSchema$7.nullable(),
|
|
1671
|
+
recipientUserId: identifierSchema$3,
|
|
1672
|
+
resolutionStatus: inboxResolutionStatusSchema,
|
|
1673
|
+
sourceTarget: inboxSourceTargetSchema,
|
|
1674
|
+
title: titleSchema$1,
|
|
1675
|
+
updatedAt: isoDateTimeSchema$7
|
|
1676
|
+
}).superRefine((item, context) => {
|
|
1677
|
+
if (!(item.attention === "update" ? item.resolutionStatus === "not_applicable" : item.resolutionStatus === "open" || item.resolutionStatus === "resolved")) context.addIssue({
|
|
1678
|
+
code: "custom",
|
|
1679
|
+
message: "Inbox resolution status must match its attention class.",
|
|
1680
|
+
path: ["resolutionStatus"]
|
|
1681
|
+
});
|
|
1682
|
+
});
|
|
1683
|
+
const inboxItemSchema = inboxItemWireSchema.transform((item) => ({
|
|
1684
|
+
...item,
|
|
1685
|
+
kind: normalizeInboxItemWireKind(item.kind)
|
|
1686
|
+
}));
|
|
1687
|
+
const listInboxItemsQuerySchema = strictObject({
|
|
1688
|
+
cursor: string().trim().min(1).max(1024).optional(),
|
|
1689
|
+
limit: coerce.number().int().min(1).max(100).optional(),
|
|
1690
|
+
presentation: inboxPresentationSchema.optional(),
|
|
1691
|
+
notificationPreview: literal("true").optional(),
|
|
1692
|
+
view: inboxViewSchema.optional()
|
|
1693
|
+
});
|
|
1694
|
+
const inboxSummaryQuerySchema = strictObject({ presentation: inboxPresentationSchema.optional() });
|
|
1695
|
+
const listInboxItemsResponseSchema = strictObject({
|
|
1696
|
+
items: array(inboxItemSchema),
|
|
1697
|
+
nextCursor: string().min(1).max(1024).nullable(),
|
|
1698
|
+
organizationId: identifierSchema$3
|
|
1699
|
+
});
|
|
1700
|
+
strictObject({
|
|
1701
|
+
items: array(inboxItemWireSchema),
|
|
1702
|
+
nextCursor: string().min(1).max(1024).nullable(),
|
|
1703
|
+
organizationId: identifierSchema$3
|
|
1704
|
+
});
|
|
1705
|
+
const inboxSummaryResponseSchema = strictObject({
|
|
1706
|
+
organizationId: identifierSchema$3,
|
|
1707
|
+
totalUnreadCount: number().int().nonnegative(),
|
|
1708
|
+
unresolvedActionCount: number().int().nonnegative(),
|
|
1709
|
+
unreadUrgentUpdateCount: number().int().nonnegative().optional(),
|
|
1710
|
+
unreadMentionCount: number().int().nonnegative().optional(),
|
|
1711
|
+
ordinaryUnreadCount: number().int().nonnegative().optional()
|
|
1712
|
+
});
|
|
1713
|
+
const centerAgentInboxSummaryResponseSchema = strictObject({
|
|
1714
|
+
organizationId: identifierSchema$3,
|
|
1715
|
+
unreadCount: number().int().nonnegative()
|
|
1716
|
+
});
|
|
1717
|
+
const spaceInboxSummaryItemSchema = strictObject({
|
|
1718
|
+
latestUnreadOccurredAtMs: timestampMsSchema$5,
|
|
1719
|
+
spaceId: identifierSchema$3,
|
|
1720
|
+
unreadCount: number().int().positive()
|
|
1721
|
+
});
|
|
1722
|
+
const spaceInboxSummaryResponseSchema = strictObject({
|
|
1723
|
+
chatUnreadCount: number().int().nonnegative().optional(),
|
|
1724
|
+
chatUnresolvedActionCount: number().int().nonnegative().optional(),
|
|
1725
|
+
chatUnreadUrgentUpdateCount: number().int().nonnegative().optional(),
|
|
1726
|
+
attention: array(strictObject({
|
|
1727
|
+
spaceId: identifierSchema$3,
|
|
1728
|
+
unresolvedActionCount: number().int().nonnegative(),
|
|
1729
|
+
unreadUrgentUpdateCount: number().int().nonnegative()
|
|
1730
|
+
})).optional(),
|
|
1731
|
+
ordinarySpaceUnreadCount: number().int().nonnegative().optional(),
|
|
1732
|
+
organizationId: identifierSchema$3,
|
|
1733
|
+
spaces: array(spaceInboxSummaryItemSchema).max(500)
|
|
1734
|
+
});
|
|
1735
|
+
const spaceInboxUnreadTargetSchema = strictObject({
|
|
1736
|
+
occurredAtMs: timestampMsSchema$5,
|
|
1737
|
+
signalId: identifierSchema$3,
|
|
1738
|
+
threadRootSignalId: identifierSchema$3.nullable()
|
|
1739
|
+
});
|
|
1740
|
+
const spaceInboxUnreadTargetsResponseSchema = strictObject({
|
|
1741
|
+
hasMoreTargets: boolean(),
|
|
1742
|
+
organizationId: identifierSchema$3,
|
|
1743
|
+
spaceId: identifierSchema$3,
|
|
1744
|
+
targets: array(spaceInboxUnreadTargetSchema).max(500),
|
|
1745
|
+
totalUnreadCount: number().int().nonnegative()
|
|
1746
|
+
});
|
|
1747
|
+
const spaceInboxUnreadTargetsRouteParamsSchema = strictObject({ spaceId: identifierSchema$3 });
|
|
1748
|
+
const markCenterAgentInboxReadThroughBodySchema = strictObject({
|
|
1749
|
+
spaceId: identifierSchema$3,
|
|
1750
|
+
throughOccurredAtMs: timestampMsSchema$5
|
|
1751
|
+
});
|
|
1752
|
+
const markCenterAgentInboxReadThroughResponseSchema = strictObject({
|
|
1753
|
+
markedReadCount: number().int().nonnegative(),
|
|
1754
|
+
readThroughAt: isoDateTimeSchema$7
|
|
1755
|
+
});
|
|
1756
|
+
const markSpaceInboxReadThroughBodySchema = strictObject({
|
|
1757
|
+
spaceId: identifierSchema$3,
|
|
1758
|
+
threadRootSignalId: identifierSchema$3.optional(),
|
|
1759
|
+
throughOccurredAtMs: timestampMsSchema$5
|
|
1760
|
+
});
|
|
1761
|
+
const markSpaceInboxReadThroughResponseSchema = strictObject({
|
|
1762
|
+
markedReadCount: number().int().nonnegative(),
|
|
1763
|
+
readThroughAt: isoDateTimeSchema$7
|
|
1764
|
+
});
|
|
1765
|
+
const inboxNotificationPreferencesResponseSchema = strictObject({
|
|
1766
|
+
updatedAt: isoDateTimeSchema$7.nullable(),
|
|
1767
|
+
urgentEmailEnabled: boolean()
|
|
1768
|
+
});
|
|
1769
|
+
const updateInboxNotificationPreferencesBodySchema = strictObject({ urgentEmailEnabled: boolean() });
|
|
1770
|
+
const inboxMessageNotificationModeSchema = enumFactory(["all_messages", "mentions_and_replies"]);
|
|
1771
|
+
const inboxConversationNotificationModeSchema = enumFactory([
|
|
1772
|
+
"all_messages",
|
|
1773
|
+
"mentions_and_replies",
|
|
1774
|
+
"muted"
|
|
1775
|
+
]);
|
|
1776
|
+
const inboxMessageNotificationPreferencesQuerySchema = strictObject({ spaceId: identifierSchema$3.optional() });
|
|
1777
|
+
const inboxMessageNotificationPreferencesResponseSchema = strictObject({
|
|
1778
|
+
organizationId: identifierSchema$3,
|
|
1779
|
+
spaceId: identifierSchema$3.nullable(),
|
|
1780
|
+
defaultMode: inboxMessageNotificationModeSchema,
|
|
1781
|
+
overrideMode: inboxConversationNotificationModeSchema.nullable(),
|
|
1782
|
+
effectiveMode: inboxConversationNotificationModeSchema
|
|
1783
|
+
});
|
|
1784
|
+
const updateInboxMessageNotificationPreferencesBodySchema = discriminatedUnion("scope", [strictObject({
|
|
1785
|
+
scope: literal("account"),
|
|
1786
|
+
mode: inboxMessageNotificationModeSchema
|
|
1787
|
+
}), strictObject({
|
|
1788
|
+
scope: literal("conversation"),
|
|
1789
|
+
spaceId: identifierSchema$3,
|
|
1790
|
+
mode: inboxConversationNotificationModeSchema.nullable()
|
|
1791
|
+
})]);
|
|
1792
|
+
inboxMessageNotificationPreferencesQuerySchema.extend({ context: openMeldRequestContextSchema });
|
|
1793
|
+
strictObject({
|
|
1794
|
+
context: openMeldRequestContextSchema,
|
|
1795
|
+
preference: updateInboxMessageNotificationPreferencesBodySchema
|
|
1796
|
+
});
|
|
1797
|
+
const inboxItemRouteParamsSchema = strictObject({ itemId: identifierSchema$3 });
|
|
1798
|
+
const getInboxItemResponseSchema = strictObject({ item: inboxItemSchema });
|
|
1799
|
+
strictObject({ item: inboxItemWireSchema });
|
|
1800
|
+
const dismissInboxItemResponseSchema = strictObject({ dismissedItemId: identifierSchema$3 });
|
|
1801
|
+
const markInboxItemReadBodySchema = strictObject({ read: boolean() });
|
|
1802
|
+
const markInboxItemReadResponseSchema = strictObject({ item: inboxItemSchema });
|
|
1803
|
+
strictObject({ item: inboxItemWireSchema });
|
|
1804
|
+
const markAllInboxItemsReadResponseSchema = strictObject({ markedReadCount: number().int().nonnegative() });
|
|
1805
|
+
const markAllInboxItemsReadQuerySchema = strictObject({ presentation: inboxPresentationSchema.optional() });
|
|
1806
|
+
strictObject({
|
|
1807
|
+
attention: inboxAttentionSchema,
|
|
1808
|
+
contextLabel: contextLabelSchema.nullable(),
|
|
1809
|
+
importance: inboxImportanceSchema,
|
|
1810
|
+
kind: inboxItemWireKindSchema,
|
|
1811
|
+
occurredAtMs: timestampMsSchema$5,
|
|
1812
|
+
organizationId: identifierSchema$3,
|
|
1813
|
+
preview: previewSchema,
|
|
1814
|
+
recipientUserId: identifierSchema$3,
|
|
1815
|
+
sourceKey: identifierSchema$3,
|
|
1816
|
+
sourceKind: inboxSourceKindSchema,
|
|
1817
|
+
sourceTarget: inboxSourceTargetSchema,
|
|
1818
|
+
title: titleSchema$1
|
|
1819
|
+
}).transform((candidate) => ({
|
|
1820
|
+
...candidate,
|
|
1821
|
+
kind: normalizeInboxItemWireKind(candidate.kind)
|
|
1822
|
+
}));
|
|
1823
|
+
function normalizeInboxItemWireKind(kind) {
|
|
1824
|
+
return kind === "space_reference" ? "space_mention" : kind;
|
|
1825
|
+
}
|
|
1826
|
+
listInboxItemsQuerySchema.extend({
|
|
1827
|
+
context: openMeldRequestContextSchema,
|
|
1828
|
+
includeReplyToRecipient: boolean().optional()
|
|
1829
|
+
});
|
|
1830
|
+
strictObject({
|
|
1831
|
+
context: openMeldRequestContextSchema,
|
|
1832
|
+
presentation: inboxPresentationSchema.optional()
|
|
1833
|
+
});
|
|
1834
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1835
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1836
|
+
strictObject({
|
|
1837
|
+
context: openMeldRequestContextSchema,
|
|
1838
|
+
spaceId: identifierSchema$3
|
|
1839
|
+
});
|
|
1840
|
+
markCenterAgentInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1841
|
+
markSpaceInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1842
|
+
inboxItemRouteParamsSchema.extend({
|
|
1843
|
+
context: openMeldRequestContextSchema,
|
|
1844
|
+
includeReplyToRecipient: boolean().optional()
|
|
1845
|
+
});
|
|
1846
|
+
inboxItemRouteParamsSchema.extend({ context: openMeldRequestContextSchema });
|
|
1847
|
+
markInboxItemReadBodySchema.extend({
|
|
1848
|
+
context: openMeldRequestContextSchema,
|
|
1849
|
+
includeReplyToRecipient: boolean().optional(),
|
|
1850
|
+
itemId: identifierSchema$3
|
|
1851
|
+
});
|
|
1852
|
+
strictObject({
|
|
1853
|
+
context: openMeldRequestContextSchema,
|
|
1854
|
+
presentation: inboxPresentationSchema.optional()
|
|
1855
|
+
});
|
|
1856
|
+
strictObject({ context: openMeldRequestContextSchema });
|
|
1857
|
+
updateInboxNotificationPreferencesBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1858
|
+
centerAgentRequestMemberAttentionBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
1859
|
+
//#endregion
|
|
1321
1860
|
//#region ../../packages/schemas/dist/schemas/http/space-link-previews.js
|
|
1322
1861
|
const previewUrlSchema = z$1.url().max(4096).refine((value) => {
|
|
1323
1862
|
const url = new URL(value);
|
|
@@ -1730,258 +2269,47 @@ const daemonRouteObservationSummarySchema = z$1.strictObject({
|
|
|
1730
2269
|
status: daemonRouteObservationStatusSchema
|
|
1731
2270
|
}).superRefine((value, ctx) => {
|
|
1732
2271
|
if (value.status === "online" && value.reasonCode !== "online") ctx.addIssue({
|
|
1733
|
-
code: "custom",
|
|
1734
|
-
message: "online route observation must use online reasonCode",
|
|
1735
|
-
path: ["reasonCode"]
|
|
1736
|
-
});
|
|
1737
|
-
if (value.status === "offline" && value.reasonCode !== "route.not_registered") ctx.addIssue({
|
|
1738
|
-
code: "custom",
|
|
1739
|
-
message: "offline route observation must normalize to route.not_registered",
|
|
1740
|
-
path: ["reasonCode"]
|
|
1741
|
-
});
|
|
1742
|
-
if (value.status === "unavailable" && (value.reasonCode === "online" || value.reasonCode === "route.not_registered")) ctx.addIssue({
|
|
1743
|
-
code: "custom",
|
|
1744
|
-
message: "unavailable route observation must use an unavailable reasonCode",
|
|
1745
|
-
path: ["reasonCode"]
|
|
1746
|
-
});
|
|
1747
|
-
});
|
|
1748
|
-
//#endregion
|
|
1749
|
-
//#region ../../packages/schemas/dist/schemas/open-code-permission.js
|
|
1750
|
-
const openCodePermissionActionSchema = z$1.enum([
|
|
1751
|
-
"allow",
|
|
1752
|
-
"ask",
|
|
1753
|
-
"deny"
|
|
1754
|
-
]);
|
|
1755
|
-
const openCodePermissionKeySchema = z$1.string().trim().min(1).max(128);
|
|
1756
|
-
const openCodePermissionPatternSchema = z$1.string().trim().min(1).max(512);
|
|
1757
|
-
const plainJsonObjectSchema = z$1.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value), "Expected an object");
|
|
1758
|
-
const openCodePermissionPatternRulesSchema = plainJsonObjectSchema.pipe(z$1.record(openCodePermissionPatternSchema, openCodePermissionActionSchema)).superRefine((value, context) => {
|
|
1759
|
-
if (Object.keys(value).length > 128) context.addIssue({
|
|
1760
|
-
code: "custom",
|
|
1761
|
-
message: "OpenCode permission pattern rules cannot exceed 128 entries"
|
|
1762
|
-
});
|
|
1763
|
-
});
|
|
1764
|
-
const openCodePermissionConfigSchema = plainJsonObjectSchema.pipe(z$1.record(openCodePermissionKeySchema, z$1.union([openCodePermissionActionSchema, openCodePermissionPatternRulesSchema]))).superRefine((value, context) => {
|
|
1765
|
-
if (Object.keys(value).length > 64) context.addIssue({
|
|
1766
|
-
code: "custom",
|
|
1767
|
-
message: "OpenCode permission config cannot exceed 64 permission keys"
|
|
1768
|
-
});
|
|
1769
|
-
if (JSON.stringify(value).length > 2e4) context.addIssue({
|
|
1770
|
-
code: "custom",
|
|
1771
|
-
message: "OpenCode permission config cannot exceed 20 KB"
|
|
1772
|
-
});
|
|
1773
|
-
});
|
|
1774
|
-
//#endregion
|
|
1775
|
-
//#region ../../packages/schemas/dist/schemas/runtime/message-channel.js
|
|
1776
|
-
const MESSAGE_CHANNEL_PROVIDERS = [
|
|
1777
|
-
"slack",
|
|
1778
|
-
"lark",
|
|
1779
|
-
"feishu"
|
|
1780
|
-
];
|
|
1781
|
-
const MESSAGE_CHANNEL_TRANSPORTS = ["webhook", "websocket"];
|
|
1782
|
-
const MESSAGE_CHANNEL_EVENT_KINDS = [
|
|
1783
|
-
"message",
|
|
1784
|
-
"card_action",
|
|
1785
|
-
"bot_added",
|
|
1786
|
-
"reaction",
|
|
1787
|
-
"document_comment"
|
|
1788
|
-
];
|
|
1789
|
-
const MESSAGE_CHANNEL_RESOURCE_TYPES = [
|
|
1790
|
-
"image",
|
|
1791
|
-
"file",
|
|
1792
|
-
"audio",
|
|
1793
|
-
"video",
|
|
1794
|
-
"sticker"
|
|
1795
|
-
];
|
|
1796
|
-
const MESSAGE_CHANNEL_MENTION_TYPES = [
|
|
1797
|
-
"direct_message",
|
|
1798
|
-
"group_mention",
|
|
1799
|
-
"group_message",
|
|
1800
|
-
"none"
|
|
1801
|
-
];
|
|
1802
|
-
const MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;
|
|
1803
|
-
const nonEmptyStringSchema$5 = string().trim().min(1);
|
|
1804
|
-
const providerIdSchema = nonEmptyStringSchema$5.max(512);
|
|
1805
|
-
const SLACK_MESSAGE_TIMESTAMP_PATTERN = /^\d+\.\d+$/u;
|
|
1806
|
-
const SLACK_THREAD_PERMALINK_PATH_PATTERN = /^\/archives\/([A-Za-z0-9_-]+)\/p(\d{10})(\d{1,6})\/?$/u;
|
|
1807
|
-
const timestampMsSchema$6 = number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
1808
|
-
const slackMessagePermalinkSchema = url().max(2048).refine(isSlackMessagePermalink, { message: "Slack permalinks must use an HTTPS slack.com host." });
|
|
1809
|
-
const slackThreadPublicationPermalinkSchema = slackMessagePermalinkSchema.refine((value) => parseSlackThreadPublicationPermalink(value) !== null, { message: "Slack thread permalinks must identify an exact Slack channel message." });
|
|
1810
|
-
function parseSlackThreadPublicationPermalink(value) {
|
|
1811
|
-
if (!slackMessagePermalinkSchema.safeParse(value).success) return null;
|
|
1812
|
-
const url = new URL(value);
|
|
1813
|
-
const pathMatch = SLACK_THREAD_PERMALINK_PATH_PATTERN.exec(url.pathname);
|
|
1814
|
-
if (!pathMatch) return null;
|
|
1815
|
-
const channelId = pathMatch[1];
|
|
1816
|
-
const seconds = pathMatch[2];
|
|
1817
|
-
const fractional = pathMatch[3];
|
|
1818
|
-
if (!(channelId && seconds && fractional)) return null;
|
|
1819
|
-
const queryChannelId = url.searchParams.get("cid");
|
|
1820
|
-
if (queryChannelId && queryChannelId !== channelId) return null;
|
|
1821
|
-
const queryThreadTs = url.searchParams.get("thread_ts");
|
|
1822
|
-
if (queryThreadTs && !SLACK_MESSAGE_TIMESTAMP_PATTERN.test(queryThreadTs)) return null;
|
|
1823
|
-
return {
|
|
1824
|
-
channelId,
|
|
1825
|
-
threadTs: queryThreadTs ?? `${seconds}.${fractional}`
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1828
|
-
function isSlackMessagePermalink(value) {
|
|
1829
|
-
let url;
|
|
1830
|
-
try {
|
|
1831
|
-
url = new URL(value);
|
|
1832
|
-
} catch {
|
|
1833
|
-
return false;
|
|
1834
|
-
}
|
|
1835
|
-
const hostname = url.hostname.toLowerCase();
|
|
1836
|
-
return url.protocol === "https:" && !url.username && !url.password && (hostname === "slack.com" || hostname.endsWith(".slack.com"));
|
|
1837
|
-
}
|
|
1838
|
-
const messageChannelProviderSchema = enumFactory(MESSAGE_CHANNEL_PROVIDERS);
|
|
1839
|
-
const messageChannelParticipantIdentitySchema = strictObject({
|
|
1840
|
-
connectionId: providerIdSchema,
|
|
1841
|
-
provider: messageChannelProviderSchema,
|
|
1842
|
-
providerUserEmail: email().max(320).optional(),
|
|
1843
|
-
providerUserId: providerIdSchema
|
|
1844
|
-
});
|
|
1845
|
-
const messageChannelTransportSchema = enumFactory(MESSAGE_CHANNEL_TRANSPORTS);
|
|
1846
|
-
enumFactory(MESSAGE_CHANNEL_EVENT_KINDS);
|
|
1847
|
-
const messageChannelResourceTypeSchema = enumFactory(MESSAGE_CHANNEL_RESOURCE_TYPES);
|
|
1848
|
-
const messageChannelMentionTypeSchema = enumFactory(MESSAGE_CHANNEL_MENTION_TYPES);
|
|
1849
|
-
const slackMessageChannelConversationLocatorSchema = strictObject({
|
|
1850
|
-
provider: literal("slack"),
|
|
1851
|
-
connectionId: providerIdSchema,
|
|
1852
|
-
teamId: providerIdSchema,
|
|
1853
|
-
channelId: providerIdSchema,
|
|
1854
|
-
rootMessageId: providerIdSchema
|
|
1855
|
-
});
|
|
1856
|
-
const createLarkPlatformConversationLocatorSchema = (provider) => strictObject({
|
|
1857
|
-
provider: literal(provider),
|
|
1858
|
-
connectionId: providerIdSchema,
|
|
1859
|
-
appId: providerIdSchema,
|
|
1860
|
-
tenantKey: providerIdSchema.nullable(),
|
|
1861
|
-
chatId: providerIdSchema,
|
|
1862
|
-
rootMessageId: providerIdSchema,
|
|
1863
|
-
threadId: providerIdSchema.nullable()
|
|
2272
|
+
code: "custom",
|
|
2273
|
+
message: "online route observation must use online reasonCode",
|
|
2274
|
+
path: ["reasonCode"]
|
|
2275
|
+
});
|
|
2276
|
+
if (value.status === "offline" && value.reasonCode !== "route.not_registered") ctx.addIssue({
|
|
2277
|
+
code: "custom",
|
|
2278
|
+
message: "offline route observation must normalize to route.not_registered",
|
|
2279
|
+
path: ["reasonCode"]
|
|
2280
|
+
});
|
|
2281
|
+
if (value.status === "unavailable" && (value.reasonCode === "online" || value.reasonCode === "route.not_registered")) ctx.addIssue({
|
|
2282
|
+
code: "custom",
|
|
2283
|
+
message: "unavailable route observation must use an unavailable reasonCode",
|
|
2284
|
+
path: ["reasonCode"]
|
|
2285
|
+
});
|
|
1864
2286
|
});
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
2287
|
+
//#endregion
|
|
2288
|
+
//#region ../../packages/schemas/dist/schemas/open-code-permission.js
|
|
2289
|
+
const openCodePermissionActionSchema = z$1.enum([
|
|
2290
|
+
"allow",
|
|
2291
|
+
"ask",
|
|
2292
|
+
"deny"
|
|
1869
2293
|
]);
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
const normalizedMessageChannelMessageEventSchema = strictObject({
|
|
1879
|
-
kind: literal("message"),
|
|
1880
|
-
messageId: providerIdSchema,
|
|
1881
|
-
sentAtMs: timestampMsSchema$6,
|
|
1882
|
-
senderId: providerIdSchema,
|
|
1883
|
-
senderDisplayName: nonEmptyStringSchema$5.max(256).optional(),
|
|
1884
|
-
senderTenantKey: providerIdSchema.optional(),
|
|
1885
|
-
...messageChannelConversationEventShape,
|
|
1886
|
-
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS),
|
|
1887
|
-
mention: messageChannelMentionTypeSchema,
|
|
1888
|
-
resources: array(messageChannelResourceDescriptorSchema).max(10)
|
|
1889
|
-
});
|
|
1890
|
-
const normalizedMessageChannelCardActionEventSchema = strictObject({
|
|
1891
|
-
kind: literal("card_action"),
|
|
1892
|
-
actionId: providerIdSchema,
|
|
1893
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1894
|
-
senderId: providerIdSchema,
|
|
1895
|
-
...messageChannelConversationEventShape,
|
|
1896
|
-
actionName: nonEmptyStringSchema$5.max(128),
|
|
1897
|
-
actionValue: nonEmptyStringSchema$5.max(8192).nullable()
|
|
2294
|
+
const openCodePermissionKeySchema = z$1.string().trim().min(1).max(128);
|
|
2295
|
+
const openCodePermissionPatternSchema = z$1.string().trim().min(1).max(512);
|
|
2296
|
+
const plainJsonObjectSchema = z$1.custom((value) => typeof value === "object" && value !== null && !Array.isArray(value), "Expected an object");
|
|
2297
|
+
const openCodePermissionPatternRulesSchema = plainJsonObjectSchema.pipe(z$1.record(openCodePermissionPatternSchema, openCodePermissionActionSchema)).superRefine((value, context) => {
|
|
2298
|
+
if (Object.keys(value).length > 128) context.addIssue({
|
|
2299
|
+
code: "custom",
|
|
2300
|
+
message: "OpenCode permission pattern rules cannot exceed 128 entries"
|
|
2301
|
+
});
|
|
1898
2302
|
});
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
action: literal("stop"),
|
|
1902
|
-
deliveryId: providerIdSchema
|
|
1903
|
-
}), strictObject({
|
|
1904
|
-
v: literal(1),
|
|
1905
|
-
action: literal("reply"),
|
|
1906
|
-
deliveryId: providerIdSchema,
|
|
1907
|
-
text: string().trim().min(1).max(1e3)
|
|
1908
|
-
})]);
|
|
1909
|
-
const normalizedMessageChannelEventSchema = discriminatedUnion("kind", [
|
|
1910
|
-
normalizedMessageChannelMessageEventSchema,
|
|
1911
|
-
normalizedMessageChannelCardActionEventSchema,
|
|
1912
|
-
strictObject({
|
|
1913
|
-
kind: literal("bot_added"),
|
|
1914
|
-
chatId: providerIdSchema,
|
|
1915
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1916
|
-
addedById: providerIdSchema.nullable()
|
|
1917
|
-
}),
|
|
1918
|
-
strictObject({
|
|
1919
|
-
kind: literal("reaction"),
|
|
1920
|
-
messageId: providerIdSchema,
|
|
1921
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1922
|
-
senderId: providerIdSchema,
|
|
1923
|
-
...messageChannelConversationEventShape,
|
|
1924
|
-
reaction: nonEmptyStringSchema$5.max(128),
|
|
1925
|
-
operation: enumFactory(["add", "remove"])
|
|
1926
|
-
}),
|
|
1927
|
-
strictObject({
|
|
1928
|
-
kind: literal("document_comment"),
|
|
1929
|
-
commentId: providerIdSchema,
|
|
1930
|
-
documentToken: providerIdSchema,
|
|
1931
|
-
occurredAtMs: timestampMsSchema$6,
|
|
1932
|
-
senderId: providerIdSchema,
|
|
1933
|
-
...messageChannelConversationEventShape,
|
|
1934
|
-
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS)
|
|
1935
|
-
})
|
|
1936
|
-
]);
|
|
1937
|
-
const messageChannelIngressEnvelopeSchema = strictObject({
|
|
1938
|
-
v: literal(1),
|
|
1939
|
-
kind: literal("remote_agent_message_channel_event"),
|
|
1940
|
-
provider: messageChannelProviderSchema,
|
|
1941
|
-
connectionId: providerIdSchema,
|
|
1942
|
-
providerEventId: providerIdSchema,
|
|
1943
|
-
connectionGeneration: number().int().positive().optional(),
|
|
1944
|
-
receivedAtMs: timestampMsSchema$6,
|
|
1945
|
-
gatewayRequestId: providerIdSchema,
|
|
1946
|
-
event: normalizedMessageChannelEventSchema
|
|
1947
|
-
}).superRefine((envelope, context) => {
|
|
1948
|
-
if (!("locator" in envelope.event)) return;
|
|
1949
|
-
if (envelope.event.locator.provider !== envelope.provider) context.addIssue({
|
|
2303
|
+
const openCodePermissionConfigSchema = plainJsonObjectSchema.pipe(z$1.record(openCodePermissionKeySchema, z$1.union([openCodePermissionActionSchema, openCodePermissionPatternRulesSchema]))).superRefine((value, context) => {
|
|
2304
|
+
if (Object.keys(value).length > 64) context.addIssue({
|
|
1950
2305
|
code: "custom",
|
|
1951
|
-
message: "
|
|
1952
|
-
path: [
|
|
1953
|
-
"event",
|
|
1954
|
-
"locator",
|
|
1955
|
-
"provider"
|
|
1956
|
-
]
|
|
2306
|
+
message: "OpenCode permission config cannot exceed 64 permission keys"
|
|
1957
2307
|
});
|
|
1958
|
-
if (
|
|
2308
|
+
if (JSON.stringify(value).length > 2e4) context.addIssue({
|
|
1959
2309
|
code: "custom",
|
|
1960
|
-
message: "
|
|
1961
|
-
path: [
|
|
1962
|
-
"event",
|
|
1963
|
-
"locator",
|
|
1964
|
-
"connectionId"
|
|
1965
|
-
]
|
|
2310
|
+
message: "OpenCode permission config cannot exceed 20 KB"
|
|
1966
2311
|
});
|
|
1967
2312
|
});
|
|
1968
|
-
function buildMessageChannelConversationId(locator) {
|
|
1969
|
-
if (locator.provider === "slack") return [
|
|
1970
|
-
locator.provider,
|
|
1971
|
-
locator.connectionId,
|
|
1972
|
-
locator.channelId,
|
|
1973
|
-
locator.rootMessageId
|
|
1974
|
-
].map(encodeConversationIdPart).join(":");
|
|
1975
|
-
return [
|
|
1976
|
-
locator.provider,
|
|
1977
|
-
locator.connectionId,
|
|
1978
|
-
locator.chatId,
|
|
1979
|
-
locator.rootMessageId
|
|
1980
|
-
].map(encodeConversationIdPart).join(":");
|
|
1981
|
-
}
|
|
1982
|
-
function encodeConversationIdPart(value) {
|
|
1983
|
-
return encodeURIComponent(value);
|
|
1984
|
-
}
|
|
1985
2313
|
//#endregion
|
|
1986
2314
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-speaker.js
|
|
1987
2315
|
const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
@@ -2041,6 +2369,7 @@ const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
|
2041
2369
|
"github_list_workflow_runs",
|
|
2042
2370
|
"github_get_workflow_run",
|
|
2043
2371
|
"github_list_workflow_run_jobs",
|
|
2372
|
+
"github_get_release_by_tag",
|
|
2044
2373
|
"github_create_issue_batch",
|
|
2045
2374
|
"github_create_issue",
|
|
2046
2375
|
"github_create_issue_comment",
|
|
@@ -2059,6 +2388,7 @@ const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
|
2059
2388
|
"github_update_issue",
|
|
2060
2389
|
"github_update_pull_request",
|
|
2061
2390
|
"github_update_pull_request_branch",
|
|
2391
|
+
"github_dispatch_workflow",
|
|
2062
2392
|
"github_rerun_workflow"
|
|
2063
2393
|
];
|
|
2064
2394
|
const trimmedIdentifierSchema$1 = z$1.string().trim().min(1);
|
|
@@ -2105,7 +2435,7 @@ const LOCAL_AGENT_CONTROLLER_REF_BY_PROVIDER = {
|
|
|
2105
2435
|
};
|
|
2106
2436
|
const boundedIdentifierSchema$8 = z$1.string().trim().min(1).max(512);
|
|
2107
2437
|
const displayNameSchema = z$1.string().trim().min(1).max(256);
|
|
2108
|
-
const timestampMsSchema$
|
|
2438
|
+
const timestampMsSchema$4 = z$1.number().int().nonnegative();
|
|
2109
2439
|
const agentActivityNativeSessionIdSchema = boundedIdentifierSchema$8;
|
|
2110
2440
|
const localAgentSessionProviderSchema = z$1.enum(LOCAL_AGENT_SESSION_PROVIDERS);
|
|
2111
2441
|
const agentActivityInventorySessionStatusSchema = z$1.enum([
|
|
@@ -2155,7 +2485,7 @@ const agentActivityInventoryProjectSchema = z$1.strictObject({
|
|
|
2155
2485
|
});
|
|
2156
2486
|
const agentActivityInventoryComputerSchema = z$1.strictObject({
|
|
2157
2487
|
id: boundedIdentifierSchema$8,
|
|
2158
|
-
lastSeenAtMs: timestampMsSchema$
|
|
2488
|
+
lastSeenAtMs: timestampMsSchema$4.nullable(),
|
|
2159
2489
|
name: displayNameSchema,
|
|
2160
2490
|
state: agentActivityInventoryComputerStateSchema
|
|
2161
2491
|
});
|
|
@@ -2171,8 +2501,8 @@ const agentActivityInventorySessionSchema = z$1.strictObject({
|
|
|
2171
2501
|
canResume: z$1.boolean(),
|
|
2172
2502
|
computer: agentActivityInventoryComputerSchema,
|
|
2173
2503
|
dataState: agentActivityInventoryDataStateSchema,
|
|
2174
|
-
inventoryUpdatedAtMs: timestampMsSchema$
|
|
2175
|
-
lastActiveAtMs: timestampMsSchema$
|
|
2504
|
+
inventoryUpdatedAtMs: timestampMsSchema$4,
|
|
2505
|
+
lastActiveAtMs: timestampMsSchema$4,
|
|
2176
2506
|
localAgent: agentActivityInventoryLocalAgentSchema,
|
|
2177
2507
|
nativeSessionId: agentActivityNativeSessionIdSchema,
|
|
2178
2508
|
nativeSessionTitle: z$1.string().trim().min(1).max(240).nullable(),
|
|
@@ -2180,7 +2510,7 @@ const agentActivityInventorySessionSchema = z$1.strictObject({
|
|
|
2180
2510
|
origin: agentActivityInventorySessionOriginSchema,
|
|
2181
2511
|
owner: agentActivityInventoryOwnerSchema,
|
|
2182
2512
|
project: agentActivityInventoryProjectSchema,
|
|
2183
|
-
startedAtMs: timestampMsSchema$
|
|
2513
|
+
startedAtMs: timestampMsSchema$4.nullable(),
|
|
2184
2514
|
status: agentActivityInventorySessionStatusSchema
|
|
2185
2515
|
}).superRefine((value, context) => {
|
|
2186
2516
|
if (value.bindingState === "bound" !== (value.boundAgentProfileId !== null)) context.addIssue({
|
|
@@ -2197,8 +2527,8 @@ const agentActivityInventorySessionSchema = z$1.strictObject({
|
|
|
2197
2527
|
const agentActivityInventoryCoverageSchema = z$1.strictObject({
|
|
2198
2528
|
agentControllerRef: agentControllerRefSchema,
|
|
2199
2529
|
computerId: boundedIdentifierSchema$8,
|
|
2200
|
-
lastAttemptAtMs: timestampMsSchema$
|
|
2201
|
-
lastCompleteAtMs: timestampMsSchema$
|
|
2530
|
+
lastAttemptAtMs: timestampMsSchema$4.nullable(),
|
|
2531
|
+
lastCompleteAtMs: timestampMsSchema$4.nullable(),
|
|
2202
2532
|
problemCode: z$1.string().trim().min(1).max(128).nullable(),
|
|
2203
2533
|
projectId: boundedIdentifierSchema$8,
|
|
2204
2534
|
provider: localAgentSessionProviderSchema,
|
|
@@ -2216,7 +2546,7 @@ const agentActivitySessionInventoryQuerySchema = z$1.strictObject({
|
|
|
2216
2546
|
status: agentActivityInventorySessionStatusSchema.optional()
|
|
2217
2547
|
});
|
|
2218
2548
|
const agentActivitySessionInventoryResponseSchema = z$1.strictObject({
|
|
2219
|
-
asOfMs: timestampMsSchema$
|
|
2549
|
+
asOfMs: timestampMsSchema$4,
|
|
2220
2550
|
coverage: z$1.array(agentActivityInventoryCoverageSchema),
|
|
2221
2551
|
nextCursor: z$1.string().trim().min(1).max(2048).nullable(),
|
|
2222
2552
|
organization: agentActivityInventoryOrganizationSchema,
|
|
@@ -2234,11 +2564,11 @@ z$1.strictObject({
|
|
|
2234
2564
|
const observedLocalAgentSessionSchema = z$1.strictObject({
|
|
2235
2565
|
canFork: z$1.boolean(),
|
|
2236
2566
|
canResume: z$1.boolean(),
|
|
2237
|
-
lastActiveAtMs: timestampMsSchema$
|
|
2567
|
+
lastActiveAtMs: timestampMsSchema$4,
|
|
2238
2568
|
nativeSessionId: agentActivityNativeSessionIdSchema,
|
|
2239
2569
|
nativeSessionTitle: z$1.string().trim().min(1).max(240).nullable(),
|
|
2240
2570
|
origin: agentActivityInventorySessionOriginSchema,
|
|
2241
|
-
startedAtMs: timestampMsSchema$
|
|
2571
|
+
startedAtMs: timestampMsSchema$4.nullable(),
|
|
2242
2572
|
status: agentActivityInventorySessionStatusSchema
|
|
2243
2573
|
}).superRefine((value, context) => {
|
|
2244
2574
|
if (value.startedAtMs !== null && value.startedAtMs > value.lastActiveAtMs) context.addIssue({
|
|
@@ -2257,7 +2587,7 @@ const submitAgentActivitySessionReconciliationBodySchema = z$1.strictObject({
|
|
|
2257
2587
|
agentControllerRef: agentControllerRefSchema,
|
|
2258
2588
|
lane: boundedIdentifierSchema$8,
|
|
2259
2589
|
localConnectionId: z$1.string().regex(/^sha256:[a-f0-9]{64}$/u),
|
|
2260
|
-
observedAtMs: timestampMsSchema$
|
|
2590
|
+
observedAtMs: timestampMsSchema$4,
|
|
2261
2591
|
openMeldServiceRuntimeId: z$1.strictObject({
|
|
2262
2592
|
source: z$1.literal("runtime_registry_authority"),
|
|
2263
2593
|
value: boundedIdentifierSchema$8
|
|
@@ -3454,7 +3784,7 @@ const AGENT_ACTIVITY_CLIENT_KINDS = [
|
|
|
3454
3784
|
"unknown"
|
|
3455
3785
|
];
|
|
3456
3786
|
const boundedIdentifierSchema$6 = string().trim().min(1).max(256);
|
|
3457
|
-
const timestampMsSchema$
|
|
3787
|
+
const timestampMsSchema$3 = number().int().nonnegative();
|
|
3458
3788
|
const nullableBoundedTextSchema = (maximum) => string().trim().min(1).max(maximum).nullable();
|
|
3459
3789
|
const agentActivityRpcContextShape = { context: openMeldRequestContextSchema.optional() };
|
|
3460
3790
|
const agentActivityEventTypeSchema = enumFactory([
|
|
@@ -3561,17 +3891,17 @@ const openCodePublicAgentActivityProviderMetadataSchema = openCodeAgentActivityP
|
|
|
3561
3891
|
const agentActivityEventCommonShape = {
|
|
3562
3892
|
eventId: boundedIdentifierSchema$6,
|
|
3563
3893
|
eventType: agentActivityEventTypeSchema,
|
|
3564
|
-
expiresAtMs: timestampMsSchema$
|
|
3894
|
+
expiresAtMs: timestampMsSchema$3,
|
|
3565
3895
|
gitBranch: nullableBoundedTextSchema(512),
|
|
3566
3896
|
gitCommit: nullableBoundedTextSchema(128),
|
|
3567
3897
|
model: nullableBoundedTextSchema(256),
|
|
3568
|
-
observedAtMs: timestampMsSchema$
|
|
3898
|
+
observedAtMs: timestampMsSchema$3,
|
|
3569
3899
|
organizationId: boundedIdentifierSchema$6,
|
|
3570
3900
|
projectId: boundedIdentifierSchema$6,
|
|
3571
3901
|
providerSessionId: string().trim().min(1).max(512),
|
|
3572
3902
|
repositoryFingerprint: repositoryFingerprintSchema.nullable(),
|
|
3573
3903
|
source: literal("observed"),
|
|
3574
|
-
startedAtMs: timestampMsSchema$
|
|
3904
|
+
startedAtMs: timestampMsSchema$3.nullable(),
|
|
3575
3905
|
status: agentActivitySessionStatusSchema,
|
|
3576
3906
|
title: nullableBoundedTextSchema(240)
|
|
3577
3907
|
};
|
|
@@ -3725,17 +4055,17 @@ const agentActivitySnapshotQueryShape = {
|
|
|
3725
4055
|
};
|
|
3726
4056
|
const agentActivitySnapshotQuerySchema = strictObject(agentActivitySnapshotQueryShape);
|
|
3727
4057
|
const agentActivityPublicSessionCommonShape = {
|
|
3728
|
-
expiresAtMs: timestampMsSchema$
|
|
4058
|
+
expiresAtMs: timestampMsSchema$3,
|
|
3729
4059
|
gitBranch: nullableBoundedTextSchema(512),
|
|
3730
4060
|
gitCommit: nullableBoundedTextSchema(128),
|
|
3731
4061
|
id: boundedIdentifierSchema$6,
|
|
3732
4062
|
isActive: boolean(),
|
|
3733
|
-
lastObservedAtMs: timestampMsSchema$
|
|
4063
|
+
lastObservedAtMs: timestampMsSchema$3,
|
|
3734
4064
|
memberName: string().trim().min(1).max(256),
|
|
3735
4065
|
memberUserId: boundedIdentifierSchema$6,
|
|
3736
4066
|
model: nullableBoundedTextSchema(256),
|
|
3737
4067
|
projectId: boundedIdentifierSchema$6,
|
|
3738
|
-
startedAtMs: timestampMsSchema$
|
|
4068
|
+
startedAtMs: timestampMsSchema$3.nullable(),
|
|
3739
4069
|
status: agentActivitySessionStatusSchema,
|
|
3740
4070
|
title: nullableBoundedTextSchema(240)
|
|
3741
4071
|
};
|
|
@@ -3779,7 +4109,7 @@ const agentActivityPublicEventSchema = strictObject({
|
|
|
3779
4109
|
eventType: agentActivityEventTypeSchema,
|
|
3780
4110
|
memberName: string().trim().min(1).max(256),
|
|
3781
4111
|
memberUserId: boundedIdentifierSchema$6,
|
|
3782
|
-
observedAtMs: timestampMsSchema$
|
|
4112
|
+
observedAtMs: timestampMsSchema$3,
|
|
3783
4113
|
projectId: boundedIdentifierSchema$6,
|
|
3784
4114
|
provider: agentActivityProviderSchema,
|
|
3785
4115
|
status: agentActivitySessionStatusSchema,
|
|
@@ -3787,19 +4117,19 @@ const agentActivityPublicEventSchema = strictObject({
|
|
|
3787
4117
|
});
|
|
3788
4118
|
const agentActivityDigestCitationSchema = strictObject({
|
|
3789
4119
|
eventId: boundedIdentifierSchema$6,
|
|
3790
|
-
observedAtMs: timestampMsSchema$
|
|
4120
|
+
observedAtMs: timestampMsSchema$3
|
|
3791
4121
|
});
|
|
3792
4122
|
const agentActivityPublicDigestSchema = strictObject({
|
|
3793
4123
|
citations: array(agentActivityDigestCitationSchema).max(20),
|
|
3794
|
-
createdAtMs: timestampMsSchema$
|
|
4124
|
+
createdAtMs: timestampMsSchema$3,
|
|
3795
4125
|
eventCount: number().int().positive(),
|
|
3796
4126
|
failureReason: string().trim().min(1).max(256).nullable(),
|
|
3797
4127
|
id: boundedIdentifierSchema$6,
|
|
3798
4128
|
projectId: boundedIdentifierSchema$6,
|
|
3799
4129
|
status: enumFactory(["completed", "failed"]),
|
|
3800
4130
|
summary: string().trim().min(1).max(AGENT_ACTIVITY_DIGEST_SUMMARY_MAX_CHARS).nullable(),
|
|
3801
|
-
windowEndedAtMs: timestampMsSchema$
|
|
3802
|
-
windowStartedAtMs: timestampMsSchema$
|
|
4131
|
+
windowEndedAtMs: timestampMsSchema$3,
|
|
4132
|
+
windowStartedAtMs: timestampMsSchema$3
|
|
3803
4133
|
}).superRefine((value, context) => {
|
|
3804
4134
|
if (value.windowStartedAtMs > value.windowEndedAtMs) context.addIssue({
|
|
3805
4135
|
code: "custom",
|
|
@@ -3827,7 +4157,7 @@ const agentActivityDigestEvidenceSchema = strictObject({
|
|
|
3827
4157
|
eventId: boundedIdentifierSchema$6,
|
|
3828
4158
|
eventType: agentActivityEventTypeSchema,
|
|
3829
4159
|
memberName: string().trim().min(1).max(256),
|
|
3830
|
-
observedAtMs: timestampMsSchema$
|
|
4160
|
+
observedAtMs: timestampMsSchema$3,
|
|
3831
4161
|
provider: agentActivityProviderSchema,
|
|
3832
4162
|
status: agentActivitySessionStatusSchema,
|
|
3833
4163
|
title: nullableBoundedTextSchema(240)
|
|
@@ -3837,8 +4167,8 @@ strictObject({
|
|
|
3837
4167
|
evidence: array(agentActivityDigestEvidenceSchema).min(1).max(100),
|
|
3838
4168
|
organizationId: boundedIdentifierSchema$6,
|
|
3839
4169
|
projectId: boundedIdentifierSchema$6,
|
|
3840
|
-
windowEndedAtMs: timestampMsSchema$
|
|
3841
|
-
windowStartedAtMs: timestampMsSchema$
|
|
4170
|
+
windowEndedAtMs: timestampMsSchema$3,
|
|
4171
|
+
windowStartedAtMs: timestampMsSchema$3
|
|
3842
4172
|
}).superRefine((value, context) => {
|
|
3843
4173
|
if (value.eventCount < value.evidence.length) context.addIssue({
|
|
3844
4174
|
code: "custom",
|
|
@@ -3863,7 +4193,7 @@ strictObject({
|
|
|
3863
4193
|
});
|
|
3864
4194
|
});
|
|
3865
4195
|
const agentActivitySnapshotResponseSchema = strictObject({
|
|
3866
|
-
asOfMs: timestampMsSchema$
|
|
4196
|
+
asOfMs: timestampMsSchema$3,
|
|
3867
4197
|
digestsTruncated: boolean(),
|
|
3868
4198
|
organizationId: boundedIdentifierSchema$6,
|
|
3869
4199
|
digests: array(agentActivityPublicDigestSchema).max(500),
|
|
@@ -3888,7 +4218,7 @@ const agentActivityStatsResponseSchema = strictObject({
|
|
|
3888
4218
|
daily: array(agentActivityStatsDailySchema).max(400),
|
|
3889
4219
|
dailyTruncated: boolean(),
|
|
3890
4220
|
organizationId: boundedIdentifierSchema$6,
|
|
3891
|
-
sinceMs: timestampMsSchema$
|
|
4221
|
+
sinceMs: timestampMsSchema$3.nullable(),
|
|
3892
4222
|
totalActiveDurationMs: number().int().nonnegative(),
|
|
3893
4223
|
totalSessions: number().int().nonnegative()
|
|
3894
4224
|
});
|
|
@@ -3952,7 +4282,7 @@ const CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT = "practical-v2";
|
|
|
3952
4282
|
const CENTER_AGENT_ROUTINE_MANAGEMENT_V1_CONTRACT = "management-v1";
|
|
3953
4283
|
const CENTER_AGENT_ROUTINE_MANAGEMENT_CONTRACT = "management-v2";
|
|
3954
4284
|
const trimmedIdentifierSchema = string().trim().min(1).max(256);
|
|
3955
|
-
const timestampMsSchema$
|
|
4285
|
+
const timestampMsSchema$2 = number().int().nonnegative();
|
|
3956
4286
|
const centerAgentRoutineRunScheduledForMsSchema = number().int().min(Number.MIN_SAFE_INTEGER).max(Number.MAX_SAFE_INTEGER);
|
|
3957
4287
|
const nullableTrimmedTextSchema = (maximum) => string().trim().min(1).max(maximum).nullable();
|
|
3958
4288
|
const queryIntegerPattern = /^\d+$/u;
|
|
@@ -3977,16 +4307,16 @@ const centerAgentRoutineTargetSpaceSchema = strictObject({
|
|
|
3977
4307
|
const centerAgentRoutineLastRunSummarySchema = strictObject({
|
|
3978
4308
|
failureCode: nullableTrimmedTextSchema(256),
|
|
3979
4309
|
failureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),
|
|
3980
|
-
finishedAtMs: timestampMsSchema$
|
|
4310
|
+
finishedAtMs: timestampMsSchema$2.nullable(),
|
|
3981
4311
|
id: trimmedIdentifierSchema,
|
|
3982
4312
|
publishedSignalId: nullableTrimmedTextSchema(256),
|
|
3983
4313
|
scheduledFor: centerAgentRoutineRunScheduledForMsSchema,
|
|
3984
|
-
startedAtMs: timestampMsSchema$
|
|
4314
|
+
startedAtMs: timestampMsSchema$2.nullable(),
|
|
3985
4315
|
status: centerAgentRoutineRunStatusSchema
|
|
3986
4316
|
}).superRefine(validateRoutineRunScheduledFor);
|
|
3987
4317
|
const routineScheduleShape = {
|
|
3988
4318
|
cronExpression: nullableTrimmedTextSchema(256),
|
|
3989
|
-
runAtMs: timestampMsSchema$
|
|
4319
|
+
runAtMs: timestampMsSchema$2.nullable().default(null),
|
|
3990
4320
|
scheduleKind: centerAgentRoutineScheduleKindSchema.default("cron"),
|
|
3991
4321
|
timezone: nullableTrimmedTextSchema(128)
|
|
3992
4322
|
};
|
|
@@ -4002,7 +4332,7 @@ const routineDestinationShape = {
|
|
|
4002
4332
|
};
|
|
4003
4333
|
const centerAgentRoutineShape = {
|
|
4004
4334
|
canManage: boolean(),
|
|
4005
|
-
createdAtMs: timestampMsSchema$
|
|
4335
|
+
createdAtMs: timestampMsSchema$2,
|
|
4006
4336
|
createdByUserId: trimmedIdentifierSchema,
|
|
4007
4337
|
...routineScheduleShape,
|
|
4008
4338
|
...routineDestinationShape,
|
|
@@ -4010,10 +4340,10 @@ const centerAgentRoutineShape = {
|
|
|
4010
4340
|
instructions: string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS),
|
|
4011
4341
|
lastRun: centerAgentRoutineLastRunSummarySchema.nullable(),
|
|
4012
4342
|
name: string().trim().min(1).max(120),
|
|
4013
|
-
nextDueAt: timestampMsSchema$
|
|
4343
|
+
nextDueAt: timestampMsSchema$2.nullable(),
|
|
4014
4344
|
organizationId: trimmedIdentifierSchema,
|
|
4015
4345
|
status: centerAgentRoutineStatusSchema,
|
|
4016
|
-
updatedAtMs: timestampMsSchema$
|
|
4346
|
+
updatedAtMs: timestampMsSchema$2,
|
|
4017
4347
|
updatedByUserId: trimmedIdentifierSchema
|
|
4018
4348
|
};
|
|
4019
4349
|
const centerAgentRoutineSchema = strictObject(centerAgentRoutineShape).superRefine(validateRoutineScheduleAndDestination);
|
|
@@ -4044,45 +4374,45 @@ const centerAgentRoutineRunSchema = strictObject({
|
|
|
4044
4374
|
...routineDestinationShape,
|
|
4045
4375
|
failureCode: nullableTrimmedTextSchema(256),
|
|
4046
4376
|
failureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),
|
|
4047
|
-
finishedAtMs: timestampMsSchema$
|
|
4377
|
+
finishedAtMs: timestampMsSchema$2.nullable(),
|
|
4048
4378
|
id: trimmedIdentifierSchema,
|
|
4049
4379
|
nativeDeliveryId: nullableTrimmedTextSchema(256),
|
|
4050
4380
|
organizationId: trimmedIdentifierSchema,
|
|
4051
4381
|
publishedSignalId: nullableTrimmedTextSchema(256),
|
|
4052
4382
|
routineId: trimmedIdentifierSchema,
|
|
4053
4383
|
scheduledFor: centerAgentRoutineRunScheduledForMsSchema,
|
|
4054
|
-
startedAtMs: timestampMsSchema$
|
|
4384
|
+
startedAtMs: timestampMsSchema$2.nullable(),
|
|
4055
4385
|
status: centerAgentRoutineRunStatusSchema
|
|
4056
4386
|
}).superRefine(validateRoutineRunScheduledFor);
|
|
4057
4387
|
const centerAgentRoutineLegacyV1Schema = strictObject({
|
|
4058
4388
|
canManage: boolean(),
|
|
4059
|
-
createdAtMs: timestampMsSchema$
|
|
4389
|
+
createdAtMs: timestampMsSchema$2,
|
|
4060
4390
|
createdByUserId: trimmedIdentifierSchema,
|
|
4061
4391
|
cronExpression: string().trim().min(1).max(256),
|
|
4062
4392
|
id: trimmedIdentifierSchema,
|
|
4063
4393
|
instructions: string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS),
|
|
4064
4394
|
lastRun: centerAgentRoutineLastRunSummarySchema.nullable(),
|
|
4065
4395
|
name: string().trim().min(1).max(120),
|
|
4066
|
-
nextDueAt: timestampMsSchema$
|
|
4396
|
+
nextDueAt: timestampMsSchema$2.nullable(),
|
|
4067
4397
|
organizationId: trimmedIdentifierSchema,
|
|
4068
4398
|
scheduleKind: literal("cron"),
|
|
4069
4399
|
status: enumFactory(["enabled", "paused"]),
|
|
4070
4400
|
targetSpaceId: trimmedIdentifierSchema,
|
|
4071
4401
|
timezone: string().trim().min(1).max(128),
|
|
4072
|
-
updatedAtMs: timestampMsSchema$
|
|
4402
|
+
updatedAtMs: timestampMsSchema$2,
|
|
4073
4403
|
updatedByUserId: trimmedIdentifierSchema
|
|
4074
4404
|
});
|
|
4075
4405
|
const centerAgentRoutineRunLegacyV1Schema = strictObject({
|
|
4076
4406
|
failureCode: nullableTrimmedTextSchema(256),
|
|
4077
4407
|
failureDetail: nullableTrimmedTextSchema(CENTER_AGENT_ROUTINE_RUN_FAILURE_DETAIL_MAX_CHARS),
|
|
4078
|
-
finishedAtMs: timestampMsSchema$
|
|
4408
|
+
finishedAtMs: timestampMsSchema$2.nullable(),
|
|
4079
4409
|
id: trimmedIdentifierSchema,
|
|
4080
4410
|
nativeDeliveryId: nullableTrimmedTextSchema(256),
|
|
4081
4411
|
organizationId: trimmedIdentifierSchema,
|
|
4082
4412
|
publishedSignalId: nullableTrimmedTextSchema(256),
|
|
4083
4413
|
routineId: trimmedIdentifierSchema,
|
|
4084
4414
|
scheduledFor: centerAgentRoutineRunScheduledForMsSchema,
|
|
4085
|
-
startedAtMs: timestampMsSchema$
|
|
4415
|
+
startedAtMs: timestampMsSchema$2.nullable(),
|
|
4086
4416
|
status: centerAgentRoutineRunStatusSchema
|
|
4087
4417
|
}).superRefine(validateRoutineRunScheduledFor);
|
|
4088
4418
|
const routineContractQueryShape = { contract: centerAgentRoutineContractSchema.optional() };
|
|
@@ -4134,7 +4464,7 @@ const routineUpdateShape = {
|
|
|
4134
4464
|
destinationKind: centerAgentRoutineDestinationKindSchema.optional(),
|
|
4135
4465
|
instructions: string().trim().min(1).max(CENTER_AGENT_ROUTINE_INSTRUCTIONS_MAX_CHARS).optional(),
|
|
4136
4466
|
name: string().trim().min(1).max(120).optional(),
|
|
4137
|
-
runAtMs: timestampMsSchema$
|
|
4467
|
+
runAtMs: timestampMsSchema$2.nullable().optional(),
|
|
4138
4468
|
scheduleKind: centerAgentRoutineScheduleKindSchema.optional(),
|
|
4139
4469
|
slackChannelId: nullableTrimmedTextSchema(256).optional(),
|
|
4140
4470
|
slackConversationId: nullableTrimmedTextSchema(512).optional(),
|
|
@@ -4288,7 +4618,7 @@ const FEEDBACK_ISSUE_ERROR_CODES = [
|
|
|
4288
4618
|
FEEDBACK_ISSUE_INVALID_TRANSITION_ERROR_CODE
|
|
4289
4619
|
];
|
|
4290
4620
|
const boundedIdentifierSchema$5 = z$1.string().trim().min(1).max(256);
|
|
4291
|
-
const timestampMsSchema$
|
|
4621
|
+
const timestampMsSchema$1 = z$1.number().int().nonnegative();
|
|
4292
4622
|
const feedbackIssueCategorySchema = z$1.enum([
|
|
4293
4623
|
"bug",
|
|
4294
4624
|
"experience",
|
|
@@ -4340,7 +4670,7 @@ z$1.strictObject({
|
|
|
4340
4670
|
submitterUserId: z$1.string().min(1).nullable()
|
|
4341
4671
|
});
|
|
4342
4672
|
const feedbackIssueCursorSchema = z$1.strictObject({
|
|
4343
|
-
createdAtMs: timestampMsSchema$
|
|
4673
|
+
createdAtMs: timestampMsSchema$1,
|
|
4344
4674
|
issueId: boundedIdentifierSchema$5
|
|
4345
4675
|
});
|
|
4346
4676
|
const feedbackIssueRecordSchema = z$1.strictObject({
|
|
@@ -4357,8 +4687,8 @@ const feedbackIssueRecordSchema = z$1.strictObject({
|
|
|
4357
4687
|
clientContext: feedbackClientContextSchema.nullable(),
|
|
4358
4688
|
status: feedbackIssueStatusSchema,
|
|
4359
4689
|
triageNote: z$1.string().max(2e3).nullable(),
|
|
4360
|
-
createdAtMs: timestampMsSchema$
|
|
4361
|
-
updatedAtMs: timestampMsSchema$
|
|
4690
|
+
createdAtMs: timestampMsSchema$1,
|
|
4691
|
+
updatedAtMs: timestampMsSchema$1
|
|
4362
4692
|
});
|
|
4363
4693
|
z$1.strictObject({
|
|
4364
4694
|
organizationId: boundedIdentifierSchema$5,
|
|
@@ -4700,8 +5030,8 @@ const ORGANIZATION_SKILL_ERROR_CODES = [
|
|
|
4700
5030
|
"organization_skill.unsafe_bundle",
|
|
4701
5031
|
"organization_skill.version_conflict"
|
|
4702
5032
|
];
|
|
4703
|
-
const identifierSchema$
|
|
4704
|
-
const isoDateTimeSchema$
|
|
5033
|
+
const identifierSchema$2 = string().trim().min(1).max(256);
|
|
5034
|
+
const isoDateTimeSchema$6 = iso.datetime({ offset: true });
|
|
4705
5035
|
const digestSchema = string().regex(/^[a-f0-9]{64}$/);
|
|
4706
5036
|
const skillNameSchema = string().trim().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Skill names use lowercase letters, numbers, and single hyphens.");
|
|
4707
5037
|
const descriptionSchema = string().trim().min(1).max(ORGANIZATION_SKILL_DESCRIPTION_MAX_CHARS);
|
|
@@ -4795,10 +5125,10 @@ const organizationSkillBundleSchema = strictObject({
|
|
|
4795
5125
|
});
|
|
4796
5126
|
});
|
|
4797
5127
|
const organizationSkillReleaseSummarySchema = strictObject({
|
|
4798
|
-
createdAt: isoDateTimeSchema$
|
|
4799
|
-
createdByUserId: identifierSchema$
|
|
5128
|
+
createdAt: isoDateTimeSchema$6,
|
|
5129
|
+
createdByUserId: identifierSchema$2,
|
|
4800
5130
|
digest: digestSchema,
|
|
4801
|
-
id: identifierSchema$
|
|
5131
|
+
id: identifierSchema$2,
|
|
4802
5132
|
source: organizationSkillSourceSchema
|
|
4803
5133
|
});
|
|
4804
5134
|
const organizationSkillPermissionsSchema = strictObject({
|
|
@@ -4807,73 +5137,73 @@ const organizationSkillPermissionsSchema = strictObject({
|
|
|
4807
5137
|
});
|
|
4808
5138
|
const organizationSkillSummarySchema = strictObject({
|
|
4809
5139
|
activeRelease: organizationSkillReleaseSummarySchema,
|
|
4810
|
-
createdAt: isoDateTimeSchema$
|
|
5140
|
+
createdAt: isoDateTimeSchema$6,
|
|
4811
5141
|
description: descriptionSchema,
|
|
4812
5142
|
enabled: boolean(),
|
|
4813
|
-
id: identifierSchema$
|
|
5143
|
+
id: identifierSchema$2,
|
|
4814
5144
|
name: skillNameSchema,
|
|
4815
|
-
organizationId: identifierSchema$
|
|
5145
|
+
organizationId: identifierSchema$2,
|
|
4816
5146
|
permissions: organizationSkillPermissionsSchema,
|
|
4817
5147
|
source: organizationSkillSourceSchema,
|
|
4818
|
-
updatedAt: isoDateTimeSchema$
|
|
5148
|
+
updatedAt: isoDateTimeSchema$6,
|
|
4819
5149
|
version: number().int().positive()
|
|
4820
5150
|
});
|
|
4821
5151
|
const organizationSkillSchema = organizationSkillSummarySchema.extend({
|
|
4822
5152
|
bundle: organizationSkillBundleSchema,
|
|
4823
|
-
maintainerUserIds: array(identifierSchema$
|
|
5153
|
+
maintainerUserIds: array(identifierSchema$2),
|
|
4824
5154
|
releases: array(organizationSkillReleaseSummarySchema)
|
|
4825
5155
|
});
|
|
4826
5156
|
strictObject({});
|
|
4827
5157
|
const listOrganizationSkillsResponseSchema = strictObject({
|
|
4828
5158
|
canManage: boolean(),
|
|
4829
|
-
organizationId: identifierSchema$
|
|
5159
|
+
organizationId: identifierSchema$2,
|
|
4830
5160
|
skills: array(organizationSkillSummarySchema)
|
|
4831
5161
|
});
|
|
4832
|
-
const organizationSkillRouteParamsSchema = strictObject({ skillId: identifierSchema$
|
|
5162
|
+
const organizationSkillRouteParamsSchema = strictObject({ skillId: identifierSchema$2 });
|
|
4833
5163
|
const getOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4834
5164
|
const createOrganizationSkillBodySchema = strictObject({
|
|
4835
5165
|
description: descriptionSchema,
|
|
4836
|
-
expectedOrganizationId: identifierSchema$
|
|
5166
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4837
5167
|
instructions: instructionsSchema,
|
|
4838
5168
|
name: skillNameSchema
|
|
4839
5169
|
});
|
|
4840
5170
|
const createOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4841
5171
|
const updateOrganizationSkillBodySchema = strictObject({
|
|
4842
5172
|
bundle: organizationSkillBundleSchema,
|
|
4843
|
-
expectedActiveReleaseId: identifierSchema$
|
|
4844
|
-
expectedOrganizationId: identifierSchema$
|
|
5173
|
+
expectedActiveReleaseId: identifierSchema$2,
|
|
5174
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4845
5175
|
expectedVersion: number().int().positive()
|
|
4846
5176
|
});
|
|
4847
5177
|
const updateOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4848
5178
|
const setOrganizationSkillEnabledBodySchema = strictObject({
|
|
4849
5179
|
enabled: boolean(),
|
|
4850
|
-
expectedOrganizationId: identifierSchema$
|
|
5180
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4851
5181
|
expectedVersion: number().int().positive()
|
|
4852
5182
|
});
|
|
4853
5183
|
const setOrganizationSkillEnabledResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4854
5184
|
const setOrganizationSkillMaintainersBodySchema = strictObject({
|
|
4855
|
-
expectedOrganizationId: identifierSchema$
|
|
5185
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4856
5186
|
expectedVersion: number().int().positive(),
|
|
4857
|
-
maintainerUserIds: array(identifierSchema$
|
|
5187
|
+
maintainerUserIds: array(identifierSchema$2).max(100)
|
|
4858
5188
|
});
|
|
4859
5189
|
const setOrganizationSkillMaintainersResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4860
5190
|
const deleteOrganizationSkillBodySchema = strictObject({
|
|
4861
|
-
expectedOrganizationId: identifierSchema$
|
|
5191
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4862
5192
|
expectedVersion: number().int().positive()
|
|
4863
5193
|
});
|
|
4864
5194
|
const deleteOrganizationSkillResponseSchema = strictObject({
|
|
4865
5195
|
deleted: literal(true),
|
|
4866
|
-
organizationId: identifierSchema$
|
|
4867
|
-
skillId: identifierSchema$
|
|
5196
|
+
organizationId: identifierSchema$2,
|
|
5197
|
+
skillId: identifierSchema$2
|
|
4868
5198
|
});
|
|
4869
5199
|
const importOrganizationSkillFromGitHubBodySchema = strictObject({
|
|
4870
5200
|
expectedCommitSha: string().regex(/^[a-f0-9]{40}$/).optional(),
|
|
4871
|
-
expectedOrganizationId: identifierSchema$
|
|
5201
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4872
5202
|
url: sourceUrlSchema
|
|
4873
5203
|
});
|
|
4874
5204
|
const importOrganizationSkillFromGitHubResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4875
5205
|
const previewOrganizationSkillFromGitHubBodySchema = strictObject({
|
|
4876
|
-
expectedOrganizationId: identifierSchema$
|
|
5206
|
+
expectedOrganizationId: identifierSchema$2,
|
|
4877
5207
|
url: sourceUrlSchema
|
|
4878
5208
|
});
|
|
4879
5209
|
const organizationSkillGitHubPreviewSchema = strictObject({
|
|
@@ -4889,7 +5219,7 @@ const organizationSkillGitHubPreviewSchema = strictObject({
|
|
|
4889
5219
|
warnings: array(string().trim().min(1).max(1024))
|
|
4890
5220
|
});
|
|
4891
5221
|
const previewOrganizationSkillFromGitHubResponseSchema = strictObject({
|
|
4892
|
-
organizationId: identifierSchema$
|
|
5222
|
+
organizationId: identifierSchema$2,
|
|
4893
5223
|
preview: organizationSkillGitHubPreviewSchema
|
|
4894
5224
|
});
|
|
4895
5225
|
discriminatedUnion("action", [
|
|
@@ -4901,7 +5231,7 @@ discriminatedUnion("action", [
|
|
|
4901
5231
|
strictObject({
|
|
4902
5232
|
action: literal("get"),
|
|
4903
5233
|
context: openMeldRequestContextSchema,
|
|
4904
|
-
skillId: identifierSchema$
|
|
5234
|
+
skillId: identifierSchema$2,
|
|
4905
5235
|
speakerMember: centerAgentToolSpeakerSchema
|
|
4906
5236
|
}),
|
|
4907
5237
|
strictObject({
|
|
@@ -4915,17 +5245,17 @@ discriminatedUnion("action", [
|
|
|
4915
5245
|
strictObject({
|
|
4916
5246
|
action: literal("list"),
|
|
4917
5247
|
canManage: boolean(),
|
|
4918
|
-
organizationId: identifierSchema$
|
|
5248
|
+
organizationId: identifierSchema$2,
|
|
4919
5249
|
skills: array(organizationSkillSummarySchema)
|
|
4920
5250
|
}),
|
|
4921
5251
|
strictObject({
|
|
4922
5252
|
action: literal("get"),
|
|
4923
|
-
organizationId: identifierSchema$
|
|
5253
|
+
organizationId: identifierSchema$2,
|
|
4924
5254
|
skill: organizationSkillSchema
|
|
4925
5255
|
}),
|
|
4926
5256
|
strictObject({
|
|
4927
5257
|
action: literal("preview_github"),
|
|
4928
|
-
organizationId: identifierSchema$
|
|
5258
|
+
organizationId: identifierSchema$2,
|
|
4929
5259
|
preview: organizationSkillGitHubPreviewSchema
|
|
4930
5260
|
})
|
|
4931
5261
|
]);
|
|
@@ -4945,50 +5275,50 @@ discriminatedUnion("action", [strictObject({
|
|
|
4945
5275
|
})]);
|
|
4946
5276
|
discriminatedUnion("action", [strictObject({
|
|
4947
5277
|
action: literal("create"),
|
|
4948
|
-
organizationId: identifierSchema$
|
|
5278
|
+
organizationId: identifierSchema$2,
|
|
4949
5279
|
skill: organizationSkillSummarySchema
|
|
4950
5280
|
}), strictObject({
|
|
4951
5281
|
action: literal("import_github"),
|
|
4952
|
-
organizationId: identifierSchema$
|
|
5282
|
+
organizationId: identifierSchema$2,
|
|
4953
5283
|
skill: organizationSkillSummarySchema
|
|
4954
5284
|
})]);
|
|
4955
5285
|
const organizationSkillRuntimeReleaseSchema = strictObject({
|
|
4956
5286
|
bundle: organizationSkillBundleSchema,
|
|
4957
5287
|
digest: digestSchema,
|
|
4958
|
-
releaseId: identifierSchema$
|
|
4959
|
-
skillId: identifierSchema$
|
|
5288
|
+
releaseId: identifierSchema$2,
|
|
5289
|
+
skillId: identifierSchema$2
|
|
4960
5290
|
});
|
|
4961
5291
|
const organizationSkillRuntimeReleaseSelectionSchema = strictObject({
|
|
4962
5292
|
digest: digestSchema,
|
|
4963
5293
|
name: skillNameSchema,
|
|
4964
|
-
releaseId: identifierSchema$
|
|
4965
|
-
skillId: identifierSchema$
|
|
5294
|
+
releaseId: identifierSchema$2,
|
|
5295
|
+
skillId: identifierSchema$2
|
|
4966
5296
|
});
|
|
4967
5297
|
strictObject({
|
|
4968
|
-
organizationId: identifierSchema$
|
|
5298
|
+
organizationId: identifierSchema$2,
|
|
4969
5299
|
releases: array(organizationSkillRuntimeReleaseSchema).max(64)
|
|
4970
5300
|
});
|
|
4971
5301
|
strictObject({ context: openMeldRequestContextSchema });
|
|
4972
5302
|
strictObject({
|
|
4973
5303
|
context: openMeldRequestContextSchema,
|
|
4974
|
-
skillId: identifierSchema$
|
|
5304
|
+
skillId: identifierSchema$2
|
|
4975
5305
|
});
|
|
4976
5306
|
createOrganizationSkillBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
4977
5307
|
updateOrganizationSkillBodySchema.extend({
|
|
4978
5308
|
context: openMeldRequestContextSchema,
|
|
4979
|
-
skillId: identifierSchema$
|
|
5309
|
+
skillId: identifierSchema$2
|
|
4980
5310
|
});
|
|
4981
5311
|
setOrganizationSkillEnabledBodySchema.extend({
|
|
4982
5312
|
context: openMeldRequestContextSchema,
|
|
4983
|
-
skillId: identifierSchema$
|
|
5313
|
+
skillId: identifierSchema$2
|
|
4984
5314
|
});
|
|
4985
5315
|
setOrganizationSkillMaintainersBodySchema.extend({
|
|
4986
5316
|
context: openMeldRequestContextSchema,
|
|
4987
|
-
skillId: identifierSchema$
|
|
5317
|
+
skillId: identifierSchema$2
|
|
4988
5318
|
});
|
|
4989
5319
|
deleteOrganizationSkillBodySchema.extend({
|
|
4990
5320
|
context: openMeldRequestContextSchema,
|
|
4991
|
-
skillId: identifierSchema$
|
|
5321
|
+
skillId: identifierSchema$2
|
|
4992
5322
|
});
|
|
4993
5323
|
importOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
4994
5324
|
previewOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
@@ -5000,10 +5330,10 @@ strictObject({
|
|
|
5000
5330
|
strictObject({
|
|
5001
5331
|
context: openMeldRequestContextSchema,
|
|
5002
5332
|
digest: digestSchema,
|
|
5003
|
-
releaseId: identifierSchema$
|
|
5004
|
-
routineRunId: identifierSchema$
|
|
5005
|
-
skillId: identifierSchema$
|
|
5006
|
-
submissionId: identifierSchema$
|
|
5333
|
+
releaseId: identifierSchema$2,
|
|
5334
|
+
routineRunId: identifierSchema$2.nullable(),
|
|
5335
|
+
skillId: identifierSchema$2,
|
|
5336
|
+
submissionId: identifierSchema$2
|
|
5007
5337
|
});
|
|
5008
5338
|
strictObject({ recorded: boolean() });
|
|
5009
5339
|
function isSafePortableSkillPath(value) {
|
|
@@ -5039,13 +5369,17 @@ const SPACE_ACCESS_MODES = [
|
|
|
5039
5369
|
"public_view_join_password",
|
|
5040
5370
|
"protected"
|
|
5041
5371
|
];
|
|
5372
|
+
const spaceLinkJoinPolicySchema = z$1.enum(["invite_only", "access_mode"]);
|
|
5042
5373
|
function spaceAccessModeUsesPassword(accessMode) {
|
|
5043
5374
|
return accessMode === "public_view_join_password" || accessMode === "protected";
|
|
5044
5375
|
}
|
|
5045
5376
|
const spaceAccessModeSchema = z$1.enum(SPACE_ACCESS_MODES);
|
|
5046
5377
|
const setSpaceAccessModeBodySchema = z$1.strictObject({
|
|
5047
5378
|
accessMode: spaceAccessModeSchema,
|
|
5048
|
-
|
|
5379
|
+
allowGuests: z$1.boolean().optional(),
|
|
5380
|
+
linkJoinPolicy: spaceLinkJoinPolicySchema.optional(),
|
|
5381
|
+
password: spacePasswordSchema.optional(),
|
|
5382
|
+
visibility: z$1.enum(["public", "private"]).optional()
|
|
5049
5383
|
});
|
|
5050
5384
|
const spaceAccessModeStateSchema = z$1.strictObject({
|
|
5051
5385
|
spaceId: z$1.string().trim().min(1),
|
|
@@ -5055,7 +5389,7 @@ const spaceAccessModeStateSchema = z$1.strictObject({
|
|
|
5055
5389
|
//#endregion
|
|
5056
5390
|
//#region ../../packages/schemas/dist/schemas/http/space-meta.js
|
|
5057
5391
|
const trimmedNonEmptyStringSchema$12 = z$1.string().trim().min(1);
|
|
5058
|
-
const isoDateTimeSchema$
|
|
5392
|
+
const isoDateTimeSchema$5 = z$1.iso.datetime({ offset: true });
|
|
5059
5393
|
const MAX_SPACE_GUIDE_LENGTH = 4e3;
|
|
5060
5394
|
const spaceOrganizationVisibilitySchema = z$1.enum(["public", "private"]);
|
|
5061
5395
|
function resolveInitialSpaceAccessMode(_visibility) {
|
|
@@ -5083,7 +5417,7 @@ const spaceStorageUsageSchema = z$1.strictObject({
|
|
|
5083
5417
|
usagePercent: z$1.number().finite().min(0)
|
|
5084
5418
|
});
|
|
5085
5419
|
const spaceDirectMessageMetaSchema = z$1.strictObject({
|
|
5086
|
-
convertedAt: isoDateTimeSchema$
|
|
5420
|
+
convertedAt: isoDateTimeSchema$5.optional(),
|
|
5087
5421
|
pairKey: trimmedNonEmptyStringSchema$12
|
|
5088
5422
|
});
|
|
5089
5423
|
const spaceMetaSchema = z$1.strictObject({
|
|
@@ -5098,9 +5432,10 @@ const spaceMetaSchema = z$1.strictObject({
|
|
|
5098
5432
|
allowGuests: z$1.boolean().optional(),
|
|
5099
5433
|
guide: trimmedNonEmptyStringSchema$12.optional(),
|
|
5100
5434
|
accessMode: spaceAccessModeSchema.optional(),
|
|
5435
|
+
linkJoinPolicy: spaceLinkJoinPolicySchema.optional(),
|
|
5101
5436
|
passwordProtected: z$1.boolean().optional(),
|
|
5102
|
-
createdAt: isoDateTimeSchema$
|
|
5103
|
-
updatedAt: isoDateTimeSchema$
|
|
5437
|
+
createdAt: isoDateTimeSchema$5.optional(),
|
|
5438
|
+
updatedAt: isoDateTimeSchema$5.optional(),
|
|
5104
5439
|
storageUsage: spaceStorageUsageSchema.optional()
|
|
5105
5440
|
});
|
|
5106
5441
|
const patchSpaceMetaResponseSchema = spaceMetaSchema;
|
|
@@ -5788,7 +6123,7 @@ const messageChannelIdentityLinkConsumeResponseSchema = strictObject({
|
|
|
5788
6123
|
//#endregion
|
|
5789
6124
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-member-research.js
|
|
5790
6125
|
const trimmedNonEmptyStringSchema$8 = z$1.string().trim().min(1);
|
|
5791
|
-
const isoDateTimeSchema$
|
|
6126
|
+
const isoDateTimeSchema$4 = z$1.iso.datetime({ offset: true });
|
|
5792
6127
|
const memberResearchTextSchema = z$1.string().trim().min(1).max(1e3);
|
|
5793
6128
|
const CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES = [
|
|
5794
6129
|
"organization_directory",
|
|
@@ -5909,8 +6244,8 @@ const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
|
5909
6244
|
position: z$1.number().int().positive(),
|
|
5910
6245
|
status: centerAgentMemberResearchTaskStatusSchema,
|
|
5911
6246
|
failureCode: trimmedNonEmptyStringSchema$8.nullable(),
|
|
5912
|
-
startedAt: isoDateTimeSchema$
|
|
5913
|
-
finishedAt: isoDateTimeSchema$
|
|
6247
|
+
startedAt: isoDateTimeSchema$4.nullable(),
|
|
6248
|
+
finishedAt: isoDateTimeSchema$4.nullable()
|
|
5914
6249
|
}).superRefine((task, context) => {
|
|
5915
6250
|
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({
|
|
5916
6251
|
code: "custom",
|
|
@@ -5931,8 +6266,8 @@ const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
|
5931
6266
|
totalCount: z$1.number().int().positive(),
|
|
5932
6267
|
completedCount: z$1.number().int().nonnegative(),
|
|
5933
6268
|
failedCount: z$1.number().int().nonnegative(),
|
|
5934
|
-
createdAt: isoDateTimeSchema$
|
|
5935
|
-
updatedAt: isoDateTimeSchema$
|
|
6269
|
+
createdAt: isoDateTimeSchema$4,
|
|
6270
|
+
updatedAt: isoDateTimeSchema$4,
|
|
5936
6271
|
tasks: z$1.array(centerAgentMemberResearchTaskSchema).min(1)
|
|
5937
6272
|
}).superRefine((batch, context) => {
|
|
5938
6273
|
const completedCount = batch.tasks.filter((task) => task.status === "completed").length;
|
|
@@ -6040,68 +6375,68 @@ const organizationDocumentKindSchema = enumFactory([
|
|
|
6040
6375
|
"knowledge"
|
|
6041
6376
|
]);
|
|
6042
6377
|
const profileReportTypeSchema = enumFactory(["work_profile"]);
|
|
6043
|
-
const identifierSchema$
|
|
6044
|
-
const titleSchema
|
|
6378
|
+
const identifierSchema$1 = string().trim().min(1).max(256);
|
|
6379
|
+
const titleSchema = string().trim().min(1).max(200);
|
|
6045
6380
|
const folderNameSchema = string().trim().min(1).max(200);
|
|
6046
6381
|
const contentSchema = string().max(ORGANIZATION_DOCUMENT_CONTENT_MAX_CHARS);
|
|
6047
|
-
const isoDateTimeSchema$
|
|
6382
|
+
const isoDateTimeSchema$3 = iso.datetime({ offset: true });
|
|
6048
6383
|
const operationIdSchema$1 = string().trim().min(1).max(256);
|
|
6049
6384
|
const organizationDocumentFolderSchema = strictObject({
|
|
6050
|
-
createdAt: isoDateTimeSchema$
|
|
6051
|
-
id: identifierSchema$
|
|
6385
|
+
createdAt: isoDateTimeSchema$3,
|
|
6386
|
+
id: identifierSchema$1,
|
|
6052
6387
|
isManaged: boolean().default(false),
|
|
6053
6388
|
name: folderNameSchema,
|
|
6054
|
-
organizationId: identifierSchema$
|
|
6055
|
-
parentFolderId: identifierSchema$
|
|
6056
|
-
updatedAt: isoDateTimeSchema$
|
|
6389
|
+
organizationId: identifierSchema$1,
|
|
6390
|
+
parentFolderId: identifierSchema$1.nullable().optional(),
|
|
6391
|
+
updatedAt: isoDateTimeSchema$3
|
|
6057
6392
|
});
|
|
6058
6393
|
const organizationDocumentSummarySchema = strictObject({
|
|
6059
6394
|
canEditContent: boolean(),
|
|
6060
6395
|
canManage: boolean(),
|
|
6061
|
-
createdAt: isoDateTimeSchema$
|
|
6062
|
-
folderId: identifierSchema$
|
|
6396
|
+
createdAt: isoDateTimeSchema$3,
|
|
6397
|
+
folderId: identifierSchema$1.nullable(),
|
|
6063
6398
|
hasDraft: boolean(),
|
|
6064
|
-
id: identifierSchema$
|
|
6399
|
+
id: identifierSchema$1,
|
|
6065
6400
|
kind: organizationDocumentKindSchema,
|
|
6066
|
-
organizationId: identifierSchema$
|
|
6401
|
+
organizationId: identifierSchema$1,
|
|
6067
6402
|
profileReportDate: iso.date().nullable().optional(),
|
|
6068
6403
|
profileReportType: profileReportTypeSchema.nullable().optional(),
|
|
6069
|
-
subjectUserId: identifierSchema$
|
|
6070
|
-
title: titleSchema
|
|
6071
|
-
updatedAt: isoDateTimeSchema$
|
|
6404
|
+
subjectUserId: identifierSchema$1.nullable(),
|
|
6405
|
+
title: titleSchema,
|
|
6406
|
+
updatedAt: isoDateTimeSchema$3
|
|
6072
6407
|
});
|
|
6073
6408
|
const organizationDocumentSchema = organizationDocumentSummarySchema.omit({ hasDraft: true }).extend({
|
|
6074
6409
|
content: contentSchema,
|
|
6075
6410
|
draftContent: contentSchema.nullable(),
|
|
6076
|
-
draftCreatedAt: isoDateTimeSchema$
|
|
6411
|
+
draftCreatedAt: isoDateTimeSchema$3.nullable(),
|
|
6077
6412
|
draftCreatedBy: literal(CENTER_AGENT_ORGANIZATION_DOCUMENT_DRAFT_CREATED_BY).nullable()
|
|
6078
6413
|
});
|
|
6079
6414
|
strictObject({});
|
|
6080
6415
|
const listOrganizationDocumentsResponseSchema = strictObject({
|
|
6081
6416
|
canManage: boolean(),
|
|
6082
|
-
currentUserId: identifierSchema$
|
|
6417
|
+
currentUserId: identifierSchema$1,
|
|
6083
6418
|
documents: array(organizationDocumentSummarySchema),
|
|
6084
6419
|
folders: array(organizationDocumentFolderSchema),
|
|
6085
|
-
organizationId: identifierSchema$
|
|
6420
|
+
organizationId: identifierSchema$1
|
|
6086
6421
|
});
|
|
6087
|
-
const organizationDocumentRouteParamsSchema = strictObject({ documentId: identifierSchema$
|
|
6422
|
+
const organizationDocumentRouteParamsSchema = strictObject({ documentId: identifierSchema$1 });
|
|
6088
6423
|
const getOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6089
6424
|
const createOrganizationDocumentBodySchema = strictObject({
|
|
6090
6425
|
content: contentSchema,
|
|
6091
|
-
expectedOrganizationId: identifierSchema$
|
|
6092
|
-
folderId: identifierSchema$
|
|
6426
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6427
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6093
6428
|
kind: organizationDocumentKindSchema,
|
|
6094
|
-
subjectUserId: identifierSchema$
|
|
6095
|
-
title: titleSchema
|
|
6429
|
+
subjectUserId: identifierSchema$1.nullable().optional(),
|
|
6430
|
+
title: titleSchema.optional()
|
|
6096
6431
|
}).superRefine(validateCreateDocumentShape);
|
|
6097
6432
|
const createOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6098
6433
|
const updateOrganizationDocumentBodySchema = strictObject({
|
|
6099
6434
|
content: contentSchema.optional(),
|
|
6100
|
-
expectedDocumentUpdatedAt: isoDateTimeSchema$
|
|
6101
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
6102
|
-
expectedOrganizationId: identifierSchema$
|
|
6103
|
-
folderId: identifierSchema$
|
|
6104
|
-
title: titleSchema
|
|
6435
|
+
expectedDocumentUpdatedAt: isoDateTimeSchema$3.optional(),
|
|
6436
|
+
expectedDraftCreatedAt: isoDateTimeSchema$3.nullable().optional(),
|
|
6437
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6438
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6439
|
+
title: titleSchema.optional()
|
|
6105
6440
|
}).superRefine((value, context) => {
|
|
6106
6441
|
if (value.content === void 0) return;
|
|
6107
6442
|
if (value.expectedDocumentUpdatedAt === void 0) context.addIssue({
|
|
@@ -6116,71 +6451,71 @@ const updateOrganizationDocumentBodySchema = strictObject({
|
|
|
6116
6451
|
});
|
|
6117
6452
|
}).refine((value) => value.content !== void 0 || value.title !== void 0 || value.folderId !== void 0, { message: "At least one document field must be updated." });
|
|
6118
6453
|
const updateOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6119
|
-
const deleteOrganizationDocumentBodySchema = strictObject({ expectedOrganizationId: identifierSchema$
|
|
6454
|
+
const deleteOrganizationDocumentBodySchema = strictObject({ expectedOrganizationId: identifierSchema$1 });
|
|
6120
6455
|
const deleteOrganizationDocumentResponseSchema = strictObject({
|
|
6121
6456
|
deleted: literal(true),
|
|
6122
|
-
documentId: identifierSchema$
|
|
6123
|
-
organizationId: identifierSchema$
|
|
6457
|
+
documentId: identifierSchema$1,
|
|
6458
|
+
organizationId: identifierSchema$1
|
|
6124
6459
|
});
|
|
6125
|
-
const organizationDocumentFolderRouteParamsSchema = strictObject({ folderId: identifierSchema$
|
|
6460
|
+
const organizationDocumentFolderRouteParamsSchema = strictObject({ folderId: identifierSchema$1 });
|
|
6126
6461
|
const createOrganizationDocumentFolderBodySchema = strictObject({
|
|
6127
|
-
expectedOrganizationId: identifierSchema$
|
|
6462
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6128
6463
|
name: folderNameSchema,
|
|
6129
|
-
parentFolderId: identifierSchema$
|
|
6464
|
+
parentFolderId: identifierSchema$1.nullable().optional()
|
|
6130
6465
|
});
|
|
6131
6466
|
const createOrganizationDocumentFolderResponseSchema = strictObject({ folder: organizationDocumentFolderSchema });
|
|
6132
6467
|
const updateOrganizationDocumentFolderBodySchema = strictObject({
|
|
6133
|
-
expectedOrganizationId: identifierSchema$
|
|
6468
|
+
expectedOrganizationId: identifierSchema$1,
|
|
6134
6469
|
name: folderNameSchema.optional(),
|
|
6135
|
-
parentFolderId: identifierSchema$
|
|
6470
|
+
parentFolderId: identifierSchema$1.nullable().optional()
|
|
6136
6471
|
}).refine((value) => Number(value.name !== void 0) + Number(value.parentFolderId !== void 0) === 1, { message: "Exactly one folder field must be updated." });
|
|
6137
6472
|
const updateOrganizationDocumentFolderResponseSchema = strictObject({ folder: organizationDocumentFolderSchema });
|
|
6138
|
-
const deleteOrganizationDocumentFolderBodySchema = strictObject({ expectedOrganizationId: identifierSchema$
|
|
6473
|
+
const deleteOrganizationDocumentFolderBodySchema = strictObject({ expectedOrganizationId: identifierSchema$1 });
|
|
6139
6474
|
const deleteOrganizationDocumentFolderResponseSchema = strictObject({
|
|
6140
6475
|
deleted: literal(true),
|
|
6141
|
-
folderId: identifierSchema$
|
|
6142
|
-
organizationId: identifierSchema$
|
|
6476
|
+
folderId: identifierSchema$1,
|
|
6477
|
+
organizationId: identifierSchema$1
|
|
6143
6478
|
});
|
|
6144
6479
|
const approveOrganizationDocumentDraftBodySchema = strictObject({
|
|
6145
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
6146
|
-
expectedOrganizationId: identifierSchema$
|
|
6480
|
+
expectedDraftCreatedAt: isoDateTimeSchema$3,
|
|
6481
|
+
expectedOrganizationId: identifierSchema$1
|
|
6147
6482
|
});
|
|
6148
6483
|
const approveOrganizationDocumentDraftResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6149
6484
|
const discardOrganizationDocumentDraftBodySchema = strictObject({
|
|
6150
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
6151
|
-
expectedOrganizationId: identifierSchema$
|
|
6485
|
+
expectedDraftCreatedAt: isoDateTimeSchema$3,
|
|
6486
|
+
expectedOrganizationId: identifierSchema$1
|
|
6152
6487
|
});
|
|
6153
6488
|
const discardOrganizationDocumentDraftResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
6154
6489
|
strictObject({ context: openMeldRequestContextSchema });
|
|
6155
6490
|
strictObject({
|
|
6156
6491
|
context: openMeldRequestContextSchema,
|
|
6157
|
-
documentId: identifierSchema$
|
|
6492
|
+
documentId: identifierSchema$1
|
|
6158
6493
|
});
|
|
6159
6494
|
createOrganizationDocumentBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
6160
6495
|
updateOrganizationDocumentBodySchema.extend({
|
|
6161
6496
|
context: openMeldRequestContextSchema,
|
|
6162
|
-
documentId: identifierSchema$
|
|
6497
|
+
documentId: identifierSchema$1
|
|
6163
6498
|
});
|
|
6164
6499
|
deleteOrganizationDocumentBodySchema.extend({
|
|
6165
6500
|
context: openMeldRequestContextSchema,
|
|
6166
|
-
documentId: identifierSchema$
|
|
6501
|
+
documentId: identifierSchema$1
|
|
6167
6502
|
});
|
|
6168
6503
|
createOrganizationDocumentFolderBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
6169
6504
|
updateOrganizationDocumentFolderBodySchema.extend({
|
|
6170
6505
|
context: openMeldRequestContextSchema,
|
|
6171
|
-
folderId: identifierSchema$
|
|
6506
|
+
folderId: identifierSchema$1
|
|
6172
6507
|
});
|
|
6173
6508
|
deleteOrganizationDocumentFolderBodySchema.extend({
|
|
6174
6509
|
context: openMeldRequestContextSchema,
|
|
6175
|
-
folderId: identifierSchema$
|
|
6510
|
+
folderId: identifierSchema$1
|
|
6176
6511
|
});
|
|
6177
6512
|
approveOrganizationDocumentDraftBodySchema.extend({
|
|
6178
6513
|
context: openMeldRequestContextSchema,
|
|
6179
|
-
documentId: identifierSchema$
|
|
6514
|
+
documentId: identifierSchema$1
|
|
6180
6515
|
});
|
|
6181
6516
|
discardOrganizationDocumentDraftBodySchema.extend({
|
|
6182
6517
|
context: openMeldRequestContextSchema,
|
|
6183
|
-
documentId: identifierSchema$
|
|
6518
|
+
documentId: identifierSchema$1
|
|
6184
6519
|
});
|
|
6185
6520
|
discriminatedUnion("action", [strictObject({
|
|
6186
6521
|
action: literal("list"),
|
|
@@ -6189,7 +6524,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
6189
6524
|
}), strictObject({
|
|
6190
6525
|
action: literal("get"),
|
|
6191
6526
|
context: openMeldRequestContextSchema,
|
|
6192
|
-
documentId: identifierSchema$
|
|
6527
|
+
documentId: identifierSchema$1,
|
|
6193
6528
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6194
6529
|
})]);
|
|
6195
6530
|
discriminatedUnion("action", [strictObject({
|
|
@@ -6202,7 +6537,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
6202
6537
|
updatedAt: true
|
|
6203
6538
|
})),
|
|
6204
6539
|
folders: array(organizationDocumentFolderSchema),
|
|
6205
|
-
organizationId: identifierSchema$
|
|
6540
|
+
organizationId: identifierSchema$1
|
|
6206
6541
|
}), strictObject({
|
|
6207
6542
|
action: literal("get"),
|
|
6208
6543
|
document: organizationDocumentSchema.pick({
|
|
@@ -6214,7 +6549,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
6214
6549
|
title: true,
|
|
6215
6550
|
updatedAt: true
|
|
6216
6551
|
}),
|
|
6217
|
-
organizationId: identifierSchema$
|
|
6552
|
+
organizationId: identifierSchema$1
|
|
6218
6553
|
})]);
|
|
6219
6554
|
const organizationDocumentComputerProjectionSchema = organizationDocumentSchema.pick({
|
|
6220
6555
|
content: true,
|
|
@@ -6229,45 +6564,45 @@ strictObject({ context: openMeldRequestContextSchema });
|
|
|
6229
6564
|
strictObject({
|
|
6230
6565
|
documents: array(organizationDocumentComputerProjectionSchema),
|
|
6231
6566
|
folders: array(organizationDocumentFolderSchema),
|
|
6232
|
-
organizationId: identifierSchema$
|
|
6567
|
+
organizationId: identifierSchema$1,
|
|
6233
6568
|
revision: string().regex(/^[a-f0-9]{64}$/u)
|
|
6234
6569
|
});
|
|
6235
6570
|
strictObject({
|
|
6236
6571
|
context: openMeldRequestContextSchema,
|
|
6237
|
-
documentId: identifierSchema$
|
|
6572
|
+
documentId: identifierSchema$1.optional(),
|
|
6238
6573
|
draftContent: contentSchema,
|
|
6239
|
-
expectedDocumentUpdatedAt: isoDateTimeSchema$
|
|
6240
|
-
folderId: identifierSchema$
|
|
6574
|
+
expectedDocumentUpdatedAt: isoDateTimeSchema$3.optional(),
|
|
6575
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6241
6576
|
kind: organizationDocumentKindSchema.optional(),
|
|
6242
6577
|
memberResearchReport: centerAgentMemberResearchReportSchema.optional(),
|
|
6243
|
-
memberResearchTaskId: identifierSchema$
|
|
6578
|
+
memberResearchTaskId: identifierSchema$1.optional(),
|
|
6244
6579
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
6245
|
-
subjectUserId: identifierSchema$
|
|
6246
|
-
title: titleSchema
|
|
6580
|
+
subjectUserId: identifierSchema$1.optional(),
|
|
6581
|
+
title: titleSchema.optional()
|
|
6247
6582
|
}).superRefine(validateCenterAgentDraftTarget);
|
|
6248
6583
|
strictObject({
|
|
6249
6584
|
document: organizationDocumentSummarySchema,
|
|
6250
6585
|
draftReplaced: boolean(),
|
|
6251
6586
|
memberResearchDraft: strictObject({
|
|
6252
6587
|
content: contentSchema,
|
|
6253
|
-
documentId: identifierSchema$
|
|
6588
|
+
documentId: identifierSchema$1,
|
|
6254
6589
|
profileReportFolderName: folderNameSchema,
|
|
6255
|
-
subjectUserId: identifierSchema$
|
|
6256
|
-
title: titleSchema
|
|
6590
|
+
subjectUserId: identifierSchema$1,
|
|
6591
|
+
title: titleSchema
|
|
6257
6592
|
}).optional()
|
|
6258
6593
|
});
|
|
6259
6594
|
strictObject({
|
|
6260
6595
|
context: openMeldRequestContextSchema,
|
|
6261
|
-
documentId: identifierSchema$
|
|
6596
|
+
documentId: identifierSchema$1,
|
|
6262
6597
|
path: string().trim().min(1).max(1024),
|
|
6263
|
-
subjectUserId: identifierSchema$
|
|
6264
|
-
taskId: identifierSchema$
|
|
6598
|
+
subjectUserId: identifierSchema$1,
|
|
6599
|
+
taskId: identifierSchema$1
|
|
6265
6600
|
});
|
|
6266
6601
|
strictObject({
|
|
6267
|
-
documentId: identifierSchema$
|
|
6602
|
+
documentId: identifierSchema$1,
|
|
6268
6603
|
path: string().trim().min(1).max(1024),
|
|
6269
6604
|
recorded: literal(true),
|
|
6270
|
-
taskId: identifierSchema$
|
|
6605
|
+
taskId: identifierSchema$1
|
|
6271
6606
|
});
|
|
6272
6607
|
const centerAgentOrganizationDocumentProjectionSchema = organizationDocumentSchema.pick({
|
|
6273
6608
|
content: true,
|
|
@@ -6283,13 +6618,13 @@ discriminatedUnion("action", [
|
|
|
6283
6618
|
context: openMeldRequestContextSchema,
|
|
6284
6619
|
name: folderNameSchema,
|
|
6285
6620
|
operationId: operationIdSchema$1,
|
|
6286
|
-
parentFolderId: identifierSchema$
|
|
6621
|
+
parentFolderId: identifierSchema$1.nullable().optional(),
|
|
6287
6622
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6288
6623
|
}),
|
|
6289
6624
|
strictObject({
|
|
6290
6625
|
action: literal("rename_folder"),
|
|
6291
6626
|
context: openMeldRequestContextSchema,
|
|
6292
|
-
folderId: identifierSchema$
|
|
6627
|
+
folderId: identifierSchema$1,
|
|
6293
6628
|
name: folderNameSchema,
|
|
6294
6629
|
operationId: operationIdSchema$1,
|
|
6295
6630
|
speakerMember: centerAgentToolSpeakerSchema
|
|
@@ -6297,8 +6632,8 @@ discriminatedUnion("action", [
|
|
|
6297
6632
|
strictObject({
|
|
6298
6633
|
action: literal("move_document"),
|
|
6299
6634
|
context: openMeldRequestContextSchema,
|
|
6300
|
-
documentId: identifierSchema$
|
|
6301
|
-
folderId: identifierSchema$
|
|
6635
|
+
documentId: identifierSchema$1,
|
|
6636
|
+
folderId: identifierSchema$1.nullable(),
|
|
6302
6637
|
operationId: operationIdSchema$1,
|
|
6303
6638
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6304
6639
|
}),
|
|
@@ -6306,11 +6641,11 @@ discriminatedUnion("action", [
|
|
|
6306
6641
|
action: literal("save_document"),
|
|
6307
6642
|
content: contentSchema,
|
|
6308
6643
|
context: openMeldRequestContextSchema,
|
|
6309
|
-
documentId: identifierSchema$
|
|
6310
|
-
folderId: identifierSchema$
|
|
6644
|
+
documentId: identifierSchema$1.optional(),
|
|
6645
|
+
folderId: identifierSchema$1.nullable().optional(),
|
|
6311
6646
|
operationId: operationIdSchema$1,
|
|
6312
6647
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
6313
|
-
title: titleSchema
|
|
6648
|
+
title: titleSchema.optional()
|
|
6314
6649
|
}).superRefine((value, context) => {
|
|
6315
6650
|
if (!(value.documentId || value.title)) context.addIssue({
|
|
6316
6651
|
code: "custom",
|
|
@@ -6323,22 +6658,22 @@ discriminatedUnion("action", [
|
|
|
6323
6658
|
strictObject({
|
|
6324
6659
|
action: literal("create_folder"),
|
|
6325
6660
|
folder: organizationDocumentFolderSchema,
|
|
6326
|
-
organizationId: identifierSchema$
|
|
6661
|
+
organizationId: identifierSchema$1
|
|
6327
6662
|
}),
|
|
6328
6663
|
strictObject({
|
|
6329
6664
|
action: literal("rename_folder"),
|
|
6330
6665
|
folder: organizationDocumentFolderSchema,
|
|
6331
|
-
organizationId: identifierSchema$
|
|
6666
|
+
organizationId: identifierSchema$1
|
|
6332
6667
|
}),
|
|
6333
6668
|
strictObject({
|
|
6334
6669
|
action: literal("move_document"),
|
|
6335
6670
|
document: centerAgentOrganizationDocumentProjectionSchema,
|
|
6336
|
-
organizationId: identifierSchema$
|
|
6671
|
+
organizationId: identifierSchema$1
|
|
6337
6672
|
}),
|
|
6338
6673
|
strictObject({
|
|
6339
6674
|
action: literal("save_document"),
|
|
6340
6675
|
document: centerAgentOrganizationDocumentProjectionSchema,
|
|
6341
|
-
organizationId: identifierSchema$
|
|
6676
|
+
organizationId: identifierSchema$1,
|
|
6342
6677
|
outcome: enumFactory(["created", "updated"])
|
|
6343
6678
|
})
|
|
6344
6679
|
]);
|
|
@@ -6348,9 +6683,9 @@ strictObject({
|
|
|
6348
6683
|
});
|
|
6349
6684
|
strictObject({
|
|
6350
6685
|
briefContent: contentSchema.nullable(),
|
|
6351
|
-
documentTitles: array(titleSchema
|
|
6686
|
+
documentTitles: array(titleSchema),
|
|
6352
6687
|
organizationProtectedInformation: organizationProtectedInformationSchema.nullable().optional(),
|
|
6353
|
-
organizationId: identifierSchema$
|
|
6688
|
+
organizationId: identifierSchema$1
|
|
6354
6689
|
});
|
|
6355
6690
|
function validateCreateDocumentShape(value, context) {
|
|
6356
6691
|
if (value.kind === "member_profile" && !value.subjectUserId) context.addIssue({
|
|
@@ -6434,7 +6769,7 @@ const CONNECTOR_APP_REQUEST_STATUSES = [
|
|
|
6434
6769
|
"declined"
|
|
6435
6770
|
];
|
|
6436
6771
|
const trimmedNonEmptyStringSchema$7 = string().trim().min(1);
|
|
6437
|
-
const timestampMsSchema
|
|
6772
|
+
const timestampMsSchema = number().int().nonnegative();
|
|
6438
6773
|
const connectorCredentialValueSchema = string().min(1).max(8192);
|
|
6439
6774
|
const connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();
|
|
6440
6775
|
const connectorAppRequestedCapabilitiesSchema = array(string().trim().min(1).max(80)).max(12);
|
|
@@ -6450,14 +6785,14 @@ const githubAppInstallationIdSchema = string().regex(/^[1-9][0-9]*$/u);
|
|
|
6450
6785
|
const connectorConnectionSchema = strictObject({
|
|
6451
6786
|
canDisconnect: boolean(),
|
|
6452
6787
|
connectionName: connectorConnectionNameSchema,
|
|
6453
|
-
createdAtMs: timestampMsSchema
|
|
6454
|
-
disconnectedAtMs: timestampMsSchema
|
|
6788
|
+
createdAtMs: timestampMsSchema,
|
|
6789
|
+
disconnectedAtMs: timestampMsSchema.nullable(),
|
|
6455
6790
|
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6456
6791
|
ownerDisplayName: trimmedNonEmptyStringSchema$7,
|
|
6457
6792
|
scope: connectorConnectionScopeSchema.default("member"),
|
|
6458
6793
|
service: connectorServiceSchema,
|
|
6459
6794
|
status: connectorConnectionStatusSchema,
|
|
6460
|
-
updatedAtMs: timestampMsSchema
|
|
6795
|
+
updatedAtMs: timestampMsSchema,
|
|
6461
6796
|
userId: trimmedNonEmptyStringSchema$7
|
|
6462
6797
|
});
|
|
6463
6798
|
strictObject({
|
|
@@ -6466,10 +6801,10 @@ strictObject({
|
|
|
6466
6801
|
organizationId: trimmedNonEmptyStringSchema$7
|
|
6467
6802
|
});
|
|
6468
6803
|
const connectorAppRequestSchema = strictObject({
|
|
6469
|
-
availableAtMs: timestampMsSchema
|
|
6470
|
-
createdAtMs: timestampMsSchema
|
|
6804
|
+
availableAtMs: timestampMsSchema.nullable(),
|
|
6805
|
+
createdAtMs: timestampMsSchema,
|
|
6471
6806
|
id: string().trim().min(1).max(128),
|
|
6472
|
-
notifiedAtMs: timestampMsSchema
|
|
6807
|
+
notifiedAtMs: timestampMsSchema.nullable(),
|
|
6473
6808
|
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6474
6809
|
providerId: string().trim().min(1).max(160).nullable(),
|
|
6475
6810
|
providerName: string().trim().min(1).max(120),
|
|
@@ -6478,7 +6813,7 @@ const connectorAppRequestSchema = strictObject({
|
|
|
6478
6813
|
requesterUserId: trimmedNonEmptyStringSchema$7.nullable(),
|
|
6479
6814
|
source: connectorAppRequestSourceSchema,
|
|
6480
6815
|
status: connectorAppRequestStatusSchema,
|
|
6481
|
-
updatedAtMs: timestampMsSchema
|
|
6816
|
+
updatedAtMs: timestampMsSchema,
|
|
6482
6817
|
useCase: connectorAppRequestOptionalTextSchema
|
|
6483
6818
|
});
|
|
6484
6819
|
strictObject({
|
|
@@ -6522,11 +6857,11 @@ strictObject({
|
|
|
6522
6857
|
strictObject({
|
|
6523
6858
|
authorizationUrl: url(),
|
|
6524
6859
|
connection: connectorConnectionSchema,
|
|
6525
|
-
expiresAtMs: timestampMsSchema
|
|
6860
|
+
expiresAtMs: timestampMsSchema.optional()
|
|
6526
6861
|
});
|
|
6527
6862
|
strictObject({
|
|
6528
6863
|
connection: connectorConnectionSchema,
|
|
6529
|
-
expiresAtMs: timestampMsSchema
|
|
6864
|
+
expiresAtMs: timestampMsSchema,
|
|
6530
6865
|
state: githubAppInstallationStateSchema
|
|
6531
6866
|
});
|
|
6532
6867
|
strictObject({
|
|
@@ -6881,18 +7216,18 @@ const accountSpaceIndexResponseSchema = z$1.strictObject({
|
|
|
6881
7216
|
});
|
|
6882
7217
|
//#endregion
|
|
6883
7218
|
//#region ../../packages/schemas/dist/schemas/http/agent-profile-creation-request.js
|
|
6884
|
-
const identifierSchema
|
|
7219
|
+
const identifierSchema = z$1.string().trim().min(1).max(256);
|
|
6885
7220
|
const profileNameSchema = z$1.string().trim().min(1).max(80);
|
|
6886
|
-
const isoDateTimeSchema$
|
|
7221
|
+
const isoDateTimeSchema$2 = z$1.iso.datetime({ offset: true });
|
|
6887
7222
|
z$1.object({
|
|
6888
|
-
requestId: identifierSchema
|
|
6889
|
-
idempotencyKey: identifierSchema
|
|
7223
|
+
requestId: identifierSchema.optional(),
|
|
7224
|
+
idempotencyKey: identifierSchema.optional()
|
|
6890
7225
|
}).refine((value) => !(value.requestId && value.idempotencyKey), { message: "Select a request by its ID or idempotency key, not both." });
|
|
6891
7226
|
z$1.strictObject({
|
|
6892
7227
|
kind: z$1.literal("agent_profile_creation"),
|
|
6893
7228
|
v: z$1.literal(1),
|
|
6894
|
-
organizationId: identifierSchema
|
|
6895
|
-
requestId: identifierSchema
|
|
7229
|
+
organizationId: identifierSchema,
|
|
7230
|
+
requestId: identifierSchema
|
|
6896
7231
|
});
|
|
6897
7232
|
const agentProfileCreationApprovalPolicySchema = z$1.enum([
|
|
6898
7233
|
"never_allow",
|
|
@@ -6932,8 +7267,8 @@ const agentProfileCreationRequestStatusReasonSchema = z$1.enum([
|
|
|
6932
7267
|
const completeAgentProfileCreationConfigurationSchema = agentProfileCreationPreferenceSelectionSchema.safeExtend({
|
|
6933
7268
|
agentControllerRef: agentControllerRefSchema.nullable(),
|
|
6934
7269
|
authorizeForOrganization: z$1.boolean().optional().default(true),
|
|
6935
|
-
localAgentConnectionCandidateId: identifierSchema
|
|
6936
|
-
targetComputerId: identifierSchema
|
|
7270
|
+
localAgentConnectionCandidateId: identifierSchema.nullable().optional(),
|
|
7271
|
+
targetComputerId: identifierSchema.nullable()
|
|
6937
7272
|
}).superRefine((configuration, context) => {
|
|
6938
7273
|
const hasController = configuration.agentControllerRef !== null;
|
|
6939
7274
|
const hasComputer = configuration.targetComputerId !== null;
|
|
@@ -7003,25 +7338,25 @@ const DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION = {
|
|
|
7003
7338
|
targetComputerId: null
|
|
7004
7339
|
};
|
|
7005
7340
|
const agentProfileCreationRequestSchema = z$1.strictObject({
|
|
7006
|
-
actorProfileId: identifierSchema
|
|
7007
|
-
completedAt: isoDateTimeSchema$
|
|
7341
|
+
actorProfileId: identifierSchema,
|
|
7342
|
+
completedAt: isoDateTimeSchema$2.nullable(),
|
|
7008
7343
|
configuration: agentProfileCreationConfigurationSchema,
|
|
7009
|
-
createdAgentProfileId: identifierSchema
|
|
7010
|
-
createdAt: isoDateTimeSchema$
|
|
7011
|
-
decidedAt: isoDateTimeSchema$
|
|
7012
|
-
id: identifierSchema
|
|
7344
|
+
createdAgentProfileId: identifierSchema.nullable(),
|
|
7345
|
+
createdAt: isoDateTimeSchema$2,
|
|
7346
|
+
decidedAt: isoDateTimeSchema$2.nullable(),
|
|
7347
|
+
id: identifierSchema,
|
|
7013
7348
|
failureMessage: z$1.string().trim().min(1).max(1e3).nullable(),
|
|
7014
|
-
nativeSessionId: identifierSchema
|
|
7015
|
-
organizationId: identifierSchema
|
|
7349
|
+
nativeSessionId: identifierSchema.nullable(),
|
|
7350
|
+
organizationId: identifierSchema,
|
|
7016
7351
|
profileName: profileNameSchema,
|
|
7017
|
-
requestedSpaceId: identifierSchema
|
|
7018
|
-
requesterUserId: identifierSchema
|
|
7352
|
+
requestedSpaceId: identifierSchema.nullable(),
|
|
7353
|
+
requesterUserId: identifierSchema,
|
|
7019
7354
|
sessionStrategy: agentProfileCreationSessionStrategySchema,
|
|
7020
7355
|
source: agentProfileCreationRequestSourceSchema,
|
|
7021
7356
|
status: agentProfileCreationRequestStatusSchema,
|
|
7022
7357
|
statusReason: agentProfileCreationRequestStatusReasonSchema,
|
|
7023
|
-
targetOwnerUserId: identifierSchema
|
|
7024
|
-
updatedAt: isoDateTimeSchema$
|
|
7358
|
+
targetOwnerUserId: identifierSchema,
|
|
7359
|
+
updatedAt: isoDateTimeSchema$2
|
|
7025
7360
|
}).superRefine((request, context) => {
|
|
7026
7361
|
if (request.sessionStrategy === "new" && request.nativeSessionId !== null) context.addIssue({
|
|
7027
7362
|
code: "custom",
|
|
@@ -7051,13 +7386,13 @@ const agentProfileCreationRequestSchema = z$1.strictObject({
|
|
|
7051
7386
|
});
|
|
7052
7387
|
const createAgentProfileCreationRequestBodySchema = z$1.strictObject({
|
|
7053
7388
|
configuration: agentProfileCreationConfigurationSchema.optional(),
|
|
7054
|
-
idempotencyKey: identifierSchema
|
|
7055
|
-
nativeSessionId: identifierSchema
|
|
7389
|
+
idempotencyKey: identifierSchema,
|
|
7390
|
+
nativeSessionId: identifierSchema.nullable().optional(),
|
|
7056
7391
|
profileName: profileNameSchema,
|
|
7057
|
-
requestedSpaceId: identifierSchema
|
|
7392
|
+
requestedSpaceId: identifierSchema.nullable().optional(),
|
|
7058
7393
|
sessionStrategy: agentProfileCreationSessionStrategySchema,
|
|
7059
7394
|
source: agentProfileCreationRequestSourceSchema,
|
|
7060
|
-
targetOwnerUserId: identifierSchema
|
|
7395
|
+
targetOwnerUserId: identifierSchema
|
|
7061
7396
|
}).superRefine((request, context) => {
|
|
7062
7397
|
const nativeSessionId = request.nativeSessionId ?? null;
|
|
7063
7398
|
if (request.configuration?.agentControllerRef === "hosted:remote-agent" && request.sessionStrategy !== "new") context.addIssue({
|
|
@@ -7090,8 +7425,8 @@ const agentProfileCreationIntentSchema = z$1.object(createAgentProfileCreationRe
|
|
|
7090
7425
|
targetOwnerUserId: intent.targetOwnerUserId
|
|
7091
7426
|
}));
|
|
7092
7427
|
const listAgentProfileCreationRequestsResponseSchema = z$1.strictObject({
|
|
7093
|
-
organizationId: identifierSchema
|
|
7094
|
-
matchedIdempotencyKey: identifierSchema
|
|
7428
|
+
organizationId: identifierSchema,
|
|
7429
|
+
matchedIdempotencyKey: identifierSchema.optional(),
|
|
7095
7430
|
requests: z$1.array(agentProfileCreationRequestSchema).max(200)
|
|
7096
7431
|
});
|
|
7097
7432
|
const decideAgentProfileCreationRequestBodySchema = z$1.strictObject({ decision: z$1.enum(["approve", "decline"]) });
|
|
@@ -7099,9 +7434,9 @@ const agentProfileCreationRequestMutationResponseSchema = z$1.strictObject({ req
|
|
|
7099
7434
|
const agentProfileCreationApprovalPreferenceSchema = z$1.strictObject({
|
|
7100
7435
|
existingSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
7101
7436
|
newSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
7102
|
-
organizationId: identifierSchema
|
|
7103
|
-
updatedAt: isoDateTimeSchema$
|
|
7104
|
-
userId: identifierSchema
|
|
7437
|
+
organizationId: identifierSchema,
|
|
7438
|
+
updatedAt: isoDateTimeSchema$2.nullable(),
|
|
7439
|
+
userId: identifierSchema
|
|
7105
7440
|
});
|
|
7106
7441
|
const setAgentProfileCreationApprovalPreferenceBodySchema = z$1.strictObject({
|
|
7107
7442
|
existingSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
@@ -7136,7 +7471,11 @@ const executeAgentProfileWorkRecoveryBodySchema = z$1.discriminatedUnion("action
|
|
|
7136
7471
|
z$1.strictObject({ action: z$1.literal("continue_interrupted_work") }),
|
|
7137
7472
|
z$1.strictObject({ action: z$1.literal("approve_queued_work") }),
|
|
7138
7473
|
z$1.strictObject({
|
|
7139
|
-
action: z$1.literal("skip_interrupted_work"),
|
|
7474
|
+
action: z$1.literal("skip_interrupted_work"),
|
|
7475
|
+
expectedInterruptedTargetWakeLifecycleId: z$1.string().trim().min(1).max(512)
|
|
7476
|
+
}),
|
|
7477
|
+
z$1.strictObject({
|
|
7478
|
+
action: z$1.literal("fork_interrupted_work"),
|
|
7140
7479
|
expectedInterruptedTargetWakeLifecycleId: z$1.string().trim().min(1).max(512)
|
|
7141
7480
|
})
|
|
7142
7481
|
]);
|
|
@@ -8235,7 +8574,7 @@ z$1.union([slackChannelHistoryResponseSchema, slackReadUnavailableResponseSchema
|
|
|
8235
8574
|
z$1.union([slackFileReadResponseSchema, slackReadUnavailableResponseSchema]);
|
|
8236
8575
|
//#endregion
|
|
8237
8576
|
//#region ../../packages/schemas/dist/schemas/http/space-status.js
|
|
8238
|
-
const isoDateTimeSchema$
|
|
8577
|
+
const isoDateTimeSchema$1 = z$1.iso.datetime({ offset: true });
|
|
8239
8578
|
const optionalTrimmedStringSchema$1 = z$1.preprocess((value) => {
|
|
8240
8579
|
const normalized = String(value ?? "").trim();
|
|
8241
8580
|
return normalized.length > 0 ? normalized : void 0;
|
|
@@ -8254,7 +8593,7 @@ const spaceStatusLatestVisibleUpdateSchema = z$1.object({
|
|
|
8254
8593
|
"signal.status",
|
|
8255
8594
|
"signal.system_notice"
|
|
8256
8595
|
]),
|
|
8257
|
-
createdAt: isoDateTimeSchema$
|
|
8596
|
+
createdAt: isoDateTimeSchema$1,
|
|
8258
8597
|
actorProfileId: openMeldRuntimeProfileIdSchema,
|
|
8259
8598
|
actorName: optionalTrimmedStringSchema$1,
|
|
8260
8599
|
previewText: nonEmptyTrimmedStringFromUnknown.transform(boundSpaceStatusPreviewText)
|
|
@@ -8265,15 +8604,16 @@ const spaceStatusMembersSummarySchema = spaceMembersSummarySchema.extend({
|
|
|
8265
8604
|
});
|
|
8266
8605
|
const getSpaceStatusResponseSchema = z$1.object({
|
|
8267
8606
|
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
8268
|
-
generatedAt: isoDateTimeSchema$
|
|
8607
|
+
generatedAt: isoDateTimeSchema$1,
|
|
8269
8608
|
centerAgentProfileId: agentProfileIdSchema.optional(),
|
|
8270
8609
|
name: optionalTrimmedStringSchema$1,
|
|
8271
8610
|
spacePurpose: optionalTrimmedStringSchema$1,
|
|
8272
|
-
directMessageConvertedAt: isoDateTimeSchema$
|
|
8611
|
+
directMessageConvertedAt: isoDateTimeSchema$1.optional(),
|
|
8273
8612
|
organizationVisibility: spaceOrganizationVisibilitySchema.optional(),
|
|
8274
8613
|
ownerUserIds: z$1.array(z$1.string().min(1)).optional(),
|
|
8275
8614
|
allowGuests: z$1.boolean().optional(),
|
|
8276
8615
|
accessMode: spaceAccessModeSchema,
|
|
8616
|
+
linkJoinPolicy: spaceLinkJoinPolicySchema.optional(),
|
|
8277
8617
|
passwordProtected: z$1.boolean(),
|
|
8278
8618
|
dispatchPolicy: spaceDispatchPolicySchema,
|
|
8279
8619
|
publicationMode: spacePublicationModeSchema,
|
|
@@ -8484,7 +8824,7 @@ const REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS = 4e3;
|
|
|
8484
8824
|
const REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS = 1024;
|
|
8485
8825
|
const REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS = 2048;
|
|
8486
8826
|
const contentHashSchema = string().regex(/^sha256:[0-9a-f]{64}$/u);
|
|
8487
|
-
const isoDateTimeSchema
|
|
8827
|
+
const isoDateTimeSchema = iso.datetime({ offset: true });
|
|
8488
8828
|
/** A personal Agent's Space conversation must not share a runtime with another Agent. */
|
|
8489
8829
|
function buildPersonalRemoteAgentConversationId(input) {
|
|
8490
8830
|
return ["personal-remote-agent.v1", ...[
|
|
@@ -8540,7 +8880,7 @@ const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
|
8540
8880
|
truncated: boolean()
|
|
8541
8881
|
}),
|
|
8542
8882
|
reactions: spaceMessageReactionsSchema.optional(),
|
|
8543
|
-
occurredAt: isoDateTimeSchema
|
|
8883
|
+
occurredAt: isoDateTimeSchema,
|
|
8544
8884
|
source: remoteAgentConversationContinuityEntrySourceSchema
|
|
8545
8885
|
}).superRefine((entry, context) => {
|
|
8546
8886
|
const materializedCharacterCount = Array.from(entry.content.text).length;
|
|
@@ -11940,454 +12280,141 @@ union([centerAgentWakeAgentProfilesInSpaceResponseBaseSchema.extend({
|
|
|
11940
12280
|
}).superRefine((value, context) => {
|
|
11941
12281
|
if (!(value.delegationId && value.childTasks)) context.addIssue({
|
|
11942
12282
|
code: "custom",
|
|
11943
|
-
message: "a pending Wake publication requires its durable delegation contract",
|
|
11944
|
-
path: ["delegationId"]
|
|
11945
|
-
});
|
|
11946
|
-
})]).superRefine((value, context) => {
|
|
11947
|
-
if (value.delegationId === void 0 !== (value.childTasks === void 0)) context.addIssue({
|
|
11948
|
-
code: "custom",
|
|
11949
|
-
message: "delegationId and childTasks must either both be present or both be absent",
|
|
11950
|
-
path: ["delegationId"]
|
|
11951
|
-
});
|
|
11952
|
-
if (value.fallbackTask && !value.delegationId) context.addIssue({
|
|
11953
|
-
code: "custom",
|
|
11954
|
-
message: "fallbackTask requires a delegationId",
|
|
11955
|
-
path: ["fallbackTask"]
|
|
11956
|
-
});
|
|
11957
|
-
if (value.childTasks) {
|
|
11958
|
-
const expectedProfileIds = [...new Set(value.agentProfileIds)].sort();
|
|
11959
|
-
const childProfileIds = value.childTasks.map((child) => child.task.targetProfileId).sort();
|
|
11960
|
-
if (childProfileIds.length !== expectedProfileIds.length || childProfileIds.some((profileId, index) => profileId !== expectedProfileIds[index])) context.addIssue({
|
|
11961
|
-
code: "custom",
|
|
11962
|
-
message: "childTasks must contain exactly one Space Wake task for every agentProfileId",
|
|
11963
|
-
path: ["childTasks"]
|
|
11964
|
-
});
|
|
11965
|
-
if (value.fallbackTask && expectedProfileIds.includes(value.fallbackTask.task.targetProfileId)) context.addIssue({
|
|
11966
|
-
code: "custom",
|
|
11967
|
-
message: "fallbackTask must target a different Agent Profile",
|
|
11968
|
-
path: ["fallbackTask"]
|
|
11969
|
-
});
|
|
11970
|
-
}
|
|
11971
|
-
});
|
|
11972
|
-
centerAgentConciergeActionResponseSchema.extend({
|
|
11973
|
-
completionCondition: agentTaskCompletionConditionSchema,
|
|
11974
|
-
status: enumFactory([
|
|
11975
|
-
"watching",
|
|
11976
|
-
"continuation_pending",
|
|
11977
|
-
"continuation_created",
|
|
11978
|
-
"condition_not_met"
|
|
11979
|
-
]),
|
|
11980
|
-
outcome: union([agentTaskCompletionObservationSchema, nullFactory()]),
|
|
11981
|
-
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11982
|
-
task: agentTaskHandleSchema,
|
|
11983
|
-
watchId: trimmedNonEmptyStringSchema$1
|
|
11984
|
-
});
|
|
11985
|
-
const centerAgentListAgentTaskSchema = strictObject({
|
|
11986
|
-
outcome: union([agentTaskTerminalOutcomeSchema, nullFactory()]),
|
|
11987
|
-
registeredAtMs: int().nonnegative(),
|
|
11988
|
-
registrationSource: agentControllerTaskLifecycleEventSourceSchema,
|
|
11989
|
-
supportedCompletionConditions: array(agentTaskCompletionConditionSchema),
|
|
11990
|
-
task: controllerAgentTaskHandleSchema
|
|
11991
|
-
});
|
|
11992
|
-
strictObject({
|
|
11993
|
-
hasMore: boolean(),
|
|
11994
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11995
|
-
tasks: array(centerAgentListAgentTaskSchema).max(20)
|
|
11996
|
-
});
|
|
11997
|
-
centerAgentConciergeActionResponseSchema.extend({ invited: literal(true) });
|
|
11998
|
-
const openCenterAgentDirectMessageSpaceResponseSchema = strictObject({
|
|
11999
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12000
|
-
centerAgentProfileId: agentProfileIdSchema,
|
|
12001
|
-
memberProfileId: openMeldRuntimeProfileIdSchema,
|
|
12002
|
-
spaceId: trimmedNonEmptyStringSchema$1,
|
|
12003
|
-
created: boolean()
|
|
12004
|
-
});
|
|
12005
|
-
//#endregion
|
|
12006
|
-
//#region ../../packages/schemas/dist/schemas/http/center-agent-memory.js
|
|
12007
|
-
const boundedIdentifierSchema$1 = z$1.string().trim().min(1).max(256);
|
|
12008
|
-
const CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS = 1200;
|
|
12009
|
-
const centerAgentMemoryProviderSchema = z$1.enum(["zep_cloud"]);
|
|
12010
|
-
const centerAgentMemoryWipeStatusSchema = z$1.enum(["deleted", "not_found"]);
|
|
12011
|
-
const centerAgentWipeMemberMemoryResponseSchema = z$1.strictObject({
|
|
12012
|
-
organizationId: boundedIdentifierSchema$1,
|
|
12013
|
-
provider: centerAgentMemoryProviderSchema,
|
|
12014
|
-
status: centerAgentMemoryWipeStatusSchema,
|
|
12015
|
-
userId: boundedIdentifierSchema$1
|
|
12016
|
-
});
|
|
12017
|
-
const centerAgentOrganizationMemoryPolicyResponseSchema = z$1.strictObject({
|
|
12018
|
-
organizationId: boundedIdentifierSchema$1,
|
|
12019
|
-
organizationMemoryOptIn: z$1.boolean(),
|
|
12020
|
-
provider: centerAgentMemoryProviderSchema,
|
|
12021
|
-
updatedByUserId: boundedIdentifierSchema$1.nullable()
|
|
12022
|
-
});
|
|
12023
|
-
const updateCenterAgentOrganizationMemoryPolicyBodySchema = z$1.strictObject({ organizationMemoryOptIn: z$1.boolean() });
|
|
12024
|
-
z$1.strictObject({ fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS) });
|
|
12025
|
-
z$1.strictObject({
|
|
12026
|
-
fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS),
|
|
12027
|
-
organizationId: boundedIdentifierSchema$1,
|
|
12028
|
-
saved: z$1.literal(true),
|
|
12029
|
-
source: z$1.literal("explicit_tool")
|
|
12030
|
-
});
|
|
12031
|
-
//#endregion
|
|
12032
|
-
//#region ../../packages/schemas/dist/schemas/http/current-device-target.js
|
|
12033
|
-
const currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;
|
|
12034
|
-
const currentDeviceTargetResolvedSchema = z$1.strictObject({
|
|
12035
|
-
availability: z$1.literal("resolved"),
|
|
12036
|
-
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12037
|
-
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12038
|
-
runtimeLane: daemonServiceLaneSchema
|
|
12039
|
-
});
|
|
12040
|
-
const currentDeviceTargetMissingSchema = z$1.strictObject({
|
|
12041
|
-
availability: z$1.literal("missing"),
|
|
12042
|
-
reasonCodes: z$1.array(z$1.string().trim().min(1).max(256)).optional()
|
|
12043
|
-
});
|
|
12044
|
-
const currentDeviceTargetResponseSchema = z$1.discriminatedUnion("availability", [currentDeviceTargetResolvedSchema, currentDeviceTargetMissingSchema]);
|
|
12045
|
-
const localRuntimeEnrollmentBodySchema = z$1.strictObject({
|
|
12046
|
-
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12047
|
-
runtimeLane: daemonServiceLaneSchema
|
|
12048
|
-
});
|
|
12049
|
-
const localRuntimeEnrollmentResponseSchema = z$1.strictObject({
|
|
12050
|
-
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12051
|
-
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12052
|
-
runtimeLane: daemonServiceLaneSchema
|
|
12053
|
-
});
|
|
12054
|
-
const forgetCurrentComputerStatusSchema = z$1.enum(["forgotten", "already_missing"]);
|
|
12055
|
-
const forgetCurrentComputerResponseSchema = z$1.strictObject({
|
|
12056
|
-
status: forgetCurrentComputerStatusSchema,
|
|
12057
|
-
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12058
|
-
currentDeviceTarget: currentDeviceTargetMissingSchema
|
|
12059
|
-
});
|
|
12060
|
-
z$1.strictObject({ deviceId: currentDeviceTargetDeviceIdSchema });
|
|
12061
|
-
const forgetComputerResponseSchema = z$1.strictObject({
|
|
12062
|
-
status: forgetCurrentComputerStatusSchema,
|
|
12063
|
-
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12064
|
-
currentDeviceTarget: currentDeviceTargetResponseSchema
|
|
12065
|
-
});
|
|
12066
|
-
//#endregion
|
|
12067
|
-
//#region ../../packages/schemas/dist/schemas/http/device-metadata.js
|
|
12068
|
-
const observedDeviceTypeSchema = localRuntimeDeviceTypeSchema;
|
|
12069
|
-
const observedDeviceMetadataSchema = z$1.strictObject({
|
|
12070
|
-
observedDisplayName: z$1.string().trim().min(1).max(200).nullable(),
|
|
12071
|
-
platformFamily: localRuntimePlatformFamilySchema,
|
|
12072
|
-
osVersion: z$1.string().trim().min(1).max(120).nullable(),
|
|
12073
|
-
deviceType: observedDeviceTypeSchema,
|
|
12074
|
-
observedAtMs: z$1.number().int().nonnegative()
|
|
12075
|
-
});
|
|
12076
|
-
const writeCurrentDeviceObservedMetadataBodySchema = z$1.strictObject({ metadata: observedDeviceMetadataSchema });
|
|
12077
|
-
const writeCurrentDeviceObservedMetadataResponseSchema = writeCurrentDeviceObservedMetadataBodySchema;
|
|
12078
|
-
//#endregion
|
|
12079
|
-
//#region ../../packages/schemas/dist/schemas/http/inbox.js
|
|
12080
|
-
const identifierSchema = string().trim().min(1).max(256);
|
|
12081
|
-
const timestampMsSchema = number().int().nonnegative();
|
|
12082
|
-
const isoDateTimeSchema = iso.datetime({ offset: true });
|
|
12083
|
-
const titleSchema = string().trim().min(1).max(160);
|
|
12084
|
-
const previewSchema = string().trim().min(1).max(500);
|
|
12085
|
-
const contextLabelSchema = string().trim().min(1).max(160);
|
|
12086
|
-
const inboxViewSchema = enumFactory([
|
|
12087
|
-
"all",
|
|
12088
|
-
"unread",
|
|
12089
|
-
"needs_action",
|
|
12090
|
-
"needs_review",
|
|
12091
|
-
"updates",
|
|
12092
|
-
"urgent_updates",
|
|
12093
|
-
"recent_updates"
|
|
12094
|
-
]);
|
|
12095
|
-
const inboxAttentionSchema = enumFactory(["update", "action_required"]);
|
|
12096
|
-
const inboxImportanceSchema = enumFactory(["normal", "urgent"]);
|
|
12097
|
-
const inboxResolutionStatusSchema = enumFactory([
|
|
12098
|
-
"not_applicable",
|
|
12099
|
-
"open",
|
|
12100
|
-
"resolved"
|
|
12101
|
-
]);
|
|
12102
|
-
const inboxItemWireKindSchema = union([enumFactory([
|
|
12103
|
-
"space_message",
|
|
12104
|
-
"space_mention",
|
|
12105
|
-
"agent_reply",
|
|
12106
|
-
"agent_interaction",
|
|
12107
|
-
"wake_outcome",
|
|
12108
|
-
"center_agent_update",
|
|
12109
|
-
"document_review",
|
|
12110
|
-
"organization_request",
|
|
12111
|
-
"system_issue"
|
|
12112
|
-
]), literal("space_reference")]);
|
|
12113
|
-
const inboxSourceKindSchema = enumFactory([
|
|
12114
|
-
"space_signal",
|
|
12115
|
-
"runtime_coordinator_interaction",
|
|
12116
|
-
"remote_agent_native_delivery",
|
|
12117
|
-
"remote_agent_native_interaction",
|
|
12118
|
-
"organization_document_draft",
|
|
12119
|
-
"organization_opportunity",
|
|
12120
|
-
"organization_member_request",
|
|
12121
|
-
"agent_profile_work_recovery",
|
|
12122
|
-
"system_attention_event"
|
|
12123
|
-
]);
|
|
12124
|
-
const centerAgentRequestMemberAttentionBodySchema = strictObject({
|
|
12125
|
-
impact: enumFactory([
|
|
12126
|
-
"response_needed",
|
|
12127
|
-
"work_blocked",
|
|
12128
|
-
"material_failure_risk"
|
|
12129
|
-
]),
|
|
12130
|
-
prompt: previewSchema,
|
|
12131
|
-
submissionId: identifierSchema,
|
|
12132
|
-
title: titleSchema
|
|
12133
|
-
});
|
|
12134
|
-
strictObject({
|
|
12135
|
-
importance: inboxImportanceSchema,
|
|
12136
|
-
instruction: string().trim().min(1).max(500),
|
|
12137
|
-
organizationId: identifierSchema,
|
|
12138
|
-
requestId: identifierSchema
|
|
12139
|
-
});
|
|
12140
|
-
const centerAgentInboxSourceTargetSchema = strictObject({
|
|
12141
|
-
kind: literal("center_agent"),
|
|
12142
|
-
signalId: identifierSchema.optional(),
|
|
12143
|
-
spaceId: identifierSchema.optional()
|
|
12144
|
-
}).superRefine((target, context) => {
|
|
12145
|
-
if (target.signalId === void 0 !== (target.spaceId === void 0)) context.addIssue({
|
|
12146
|
-
code: "custom",
|
|
12147
|
-
message: "Center Agent Inbox targets must include both spaceId and signalId."
|
|
12148
|
-
});
|
|
12149
|
-
});
|
|
12150
|
-
const slackInboxSourceTargetSchema = strictObject({
|
|
12151
|
-
channelId: identifierSchema,
|
|
12152
|
-
kind: literal("message_channel"),
|
|
12153
|
-
messageId: identifierSchema,
|
|
12154
|
-
permalink: slackMessagePermalinkSchema,
|
|
12155
|
-
provider: literal("slack"),
|
|
12156
|
-
teamId: identifierSchema,
|
|
12157
|
-
threadRootMessageId: identifierSchema
|
|
12158
|
-
});
|
|
12159
|
-
const inboxSourceTargetSchema = discriminatedUnion("kind", [
|
|
12160
|
-
strictObject({
|
|
12161
|
-
kind: literal("organization_join_request"),
|
|
12162
|
-
requestId: identifierSchema
|
|
12163
|
-
}),
|
|
12164
|
-
strictObject({
|
|
12165
|
-
kind: literal("agent_profile"),
|
|
12166
|
-
profileId: identifierSchema
|
|
12167
|
-
}),
|
|
12168
|
-
strictObject({
|
|
12169
|
-
kind: literal("agent_profile_creation_request"),
|
|
12170
|
-
requestId: identifierSchema
|
|
12171
|
-
}),
|
|
12172
|
-
strictObject({
|
|
12173
|
-
kind: literal("space"),
|
|
12174
|
-
directMessage: boolean().optional(),
|
|
12175
|
-
agentOwnerActivity: boolean().optional(),
|
|
12176
|
-
replyToRecipient: boolean().optional(),
|
|
12177
|
-
signalId: identifierSchema.optional(),
|
|
12178
|
-
spaceId: identifierSchema,
|
|
12179
|
-
threadRootSignalId: identifierSchema.optional()
|
|
12180
|
-
}),
|
|
12181
|
-
strictObject({
|
|
12182
|
-
interactionId: identifierSchema,
|
|
12183
|
-
kind: literal("agent_interaction"),
|
|
12184
|
-
runtimeCoordinatorExecutionId: identifierSchema,
|
|
12185
|
-
sourceSignalId: identifierSchema.optional(),
|
|
12186
|
-
spaceId: identifierSchema,
|
|
12187
|
-
threadRootSignalId: identifierSchema.nullable().optional()
|
|
12188
|
-
}),
|
|
12189
|
-
strictObject({
|
|
12190
|
-
documentId: identifierSchema,
|
|
12191
|
-
kind: literal("organization_document")
|
|
12192
|
-
}),
|
|
12193
|
-
slackInboxSourceTargetSchema,
|
|
12194
|
-
centerAgentInboxSourceTargetSchema,
|
|
12195
|
-
strictObject({
|
|
12196
|
-
kind: literal("settings"),
|
|
12197
|
-
section: enumFactory([
|
|
12198
|
-
"channels",
|
|
12199
|
-
"computers",
|
|
12200
|
-
"notifications"
|
|
12201
|
-
])
|
|
12202
|
-
})
|
|
12203
|
-
]);
|
|
12204
|
-
const inboxItemWireSchema = strictObject({
|
|
12205
|
-
attention: inboxAttentionSchema,
|
|
12206
|
-
contextLabel: contextLabelSchema.nullable(),
|
|
12207
|
-
createdAt: isoDateTimeSchema,
|
|
12208
|
-
id: identifierSchema,
|
|
12209
|
-
importance: inboxImportanceSchema,
|
|
12210
|
-
kind: inboxItemWireKindSchema,
|
|
12211
|
-
occurredAt: isoDateTimeSchema,
|
|
12212
|
-
organizationId: identifierSchema,
|
|
12213
|
-
preview: previewSchema,
|
|
12214
|
-
readAt: isoDateTimeSchema.nullable(),
|
|
12215
|
-
recipientUserId: identifierSchema,
|
|
12216
|
-
resolutionStatus: inboxResolutionStatusSchema,
|
|
12217
|
-
sourceTarget: inboxSourceTargetSchema,
|
|
12218
|
-
title: titleSchema,
|
|
12219
|
-
updatedAt: isoDateTimeSchema
|
|
12220
|
-
}).superRefine((item, context) => {
|
|
12221
|
-
if (!(item.attention === "update" ? item.resolutionStatus === "not_applicable" : item.resolutionStatus === "open" || item.resolutionStatus === "resolved")) context.addIssue({
|
|
12283
|
+
message: "a pending Wake publication requires its durable delegation contract",
|
|
12284
|
+
path: ["delegationId"]
|
|
12285
|
+
});
|
|
12286
|
+
})]).superRefine((value, context) => {
|
|
12287
|
+
if (value.delegationId === void 0 !== (value.childTasks === void 0)) context.addIssue({
|
|
12222
12288
|
code: "custom",
|
|
12223
|
-
message: "
|
|
12224
|
-
path: ["
|
|
12289
|
+
message: "delegationId and childTasks must either both be present or both be absent",
|
|
12290
|
+
path: ["delegationId"]
|
|
12291
|
+
});
|
|
12292
|
+
if (value.fallbackTask && !value.delegationId) context.addIssue({
|
|
12293
|
+
code: "custom",
|
|
12294
|
+
message: "fallbackTask requires a delegationId",
|
|
12295
|
+
path: ["fallbackTask"]
|
|
12225
12296
|
});
|
|
12297
|
+
if (value.childTasks) {
|
|
12298
|
+
const expectedProfileIds = [...new Set(value.agentProfileIds)].sort();
|
|
12299
|
+
const childProfileIds = value.childTasks.map((child) => child.task.targetProfileId).sort();
|
|
12300
|
+
if (childProfileIds.length !== expectedProfileIds.length || childProfileIds.some((profileId, index) => profileId !== expectedProfileIds[index])) context.addIssue({
|
|
12301
|
+
code: "custom",
|
|
12302
|
+
message: "childTasks must contain exactly one Space Wake task for every agentProfileId",
|
|
12303
|
+
path: ["childTasks"]
|
|
12304
|
+
});
|
|
12305
|
+
if (value.fallbackTask && expectedProfileIds.includes(value.fallbackTask.task.targetProfileId)) context.addIssue({
|
|
12306
|
+
code: "custom",
|
|
12307
|
+
message: "fallbackTask must target a different Agent Profile",
|
|
12308
|
+
path: ["fallbackTask"]
|
|
12309
|
+
});
|
|
12310
|
+
}
|
|
12226
12311
|
});
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12312
|
+
centerAgentConciergeActionResponseSchema.extend({
|
|
12313
|
+
completionCondition: agentTaskCompletionConditionSchema,
|
|
12314
|
+
status: enumFactory([
|
|
12315
|
+
"watching",
|
|
12316
|
+
"continuation_pending",
|
|
12317
|
+
"continuation_created",
|
|
12318
|
+
"condition_not_met"
|
|
12319
|
+
]),
|
|
12320
|
+
outcome: union([agentTaskCompletionObservationSchema, nullFactory()]),
|
|
12321
|
+
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
12322
|
+
task: agentTaskHandleSchema,
|
|
12323
|
+
watchId: trimmedNonEmptyStringSchema$1
|
|
12235
12324
|
});
|
|
12236
|
-
const
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12325
|
+
const centerAgentListAgentTaskSchema = strictObject({
|
|
12326
|
+
outcome: union([agentTaskTerminalOutcomeSchema, nullFactory()]),
|
|
12327
|
+
registeredAtMs: int().nonnegative(),
|
|
12328
|
+
registrationSource: agentControllerTaskLifecycleEventSourceSchema,
|
|
12329
|
+
supportedCompletionConditions: array(agentTaskCompletionConditionSchema),
|
|
12330
|
+
task: controllerAgentTaskHandleSchema
|
|
12240
12331
|
});
|
|
12241
12332
|
strictObject({
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
});
|
|
12246
|
-
const inboxSummaryResponseSchema = strictObject({
|
|
12247
|
-
organizationId: identifierSchema,
|
|
12248
|
-
totalUnreadCount: number().int().nonnegative(),
|
|
12249
|
-
unresolvedActionCount: number().int().nonnegative(),
|
|
12250
|
-
unreadUrgentUpdateCount: number().int().nonnegative().optional()
|
|
12251
|
-
});
|
|
12252
|
-
const centerAgentInboxSummaryResponseSchema = strictObject({
|
|
12253
|
-
organizationId: identifierSchema,
|
|
12254
|
-
unreadCount: number().int().nonnegative()
|
|
12255
|
-
});
|
|
12256
|
-
const spaceInboxSummaryItemSchema = strictObject({
|
|
12257
|
-
latestUnreadOccurredAtMs: timestampMsSchema,
|
|
12258
|
-
spaceId: identifierSchema,
|
|
12259
|
-
unreadCount: number().int().positive()
|
|
12260
|
-
});
|
|
12261
|
-
const spaceInboxSummaryResponseSchema = strictObject({
|
|
12262
|
-
chatUnreadCount: number().int().nonnegative().optional(),
|
|
12263
|
-
chatUnresolvedActionCount: number().int().nonnegative().optional(),
|
|
12264
|
-
chatUnreadUrgentUpdateCount: number().int().nonnegative().optional(),
|
|
12265
|
-
attention: array(strictObject({
|
|
12266
|
-
spaceId: identifierSchema,
|
|
12267
|
-
unresolvedActionCount: number().int().nonnegative(),
|
|
12268
|
-
unreadUrgentUpdateCount: number().int().nonnegative()
|
|
12269
|
-
})).optional(),
|
|
12270
|
-
ordinarySpaceUnreadCount: number().int().nonnegative().optional(),
|
|
12271
|
-
organizationId: identifierSchema,
|
|
12272
|
-
spaces: array(spaceInboxSummaryItemSchema).max(500)
|
|
12273
|
-
});
|
|
12274
|
-
const spaceInboxUnreadTargetSchema = strictObject({
|
|
12275
|
-
occurredAtMs: timestampMsSchema,
|
|
12276
|
-
signalId: identifierSchema,
|
|
12277
|
-
threadRootSignalId: identifierSchema.nullable()
|
|
12278
|
-
});
|
|
12279
|
-
const spaceInboxUnreadTargetsResponseSchema = strictObject({
|
|
12280
|
-
hasMoreTargets: boolean(),
|
|
12281
|
-
organizationId: identifierSchema,
|
|
12282
|
-
spaceId: identifierSchema,
|
|
12283
|
-
targets: array(spaceInboxUnreadTargetSchema).max(500),
|
|
12284
|
-
totalUnreadCount: number().int().nonnegative()
|
|
12333
|
+
hasMore: boolean(),
|
|
12334
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12335
|
+
tasks: array(centerAgentListAgentTaskSchema).max(20)
|
|
12285
12336
|
});
|
|
12286
|
-
|
|
12287
|
-
const
|
|
12288
|
-
|
|
12289
|
-
|
|
12337
|
+
centerAgentConciergeActionResponseSchema.extend({ invited: literal(true) });
|
|
12338
|
+
const openCenterAgentDirectMessageSpaceResponseSchema = strictObject({
|
|
12339
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
12340
|
+
centerAgentProfileId: agentProfileIdSchema,
|
|
12341
|
+
memberProfileId: openMeldRuntimeProfileIdSchema,
|
|
12342
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
12343
|
+
created: boolean()
|
|
12290
12344
|
});
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12345
|
+
//#endregion
|
|
12346
|
+
//#region ../../packages/schemas/dist/schemas/http/center-agent-memory.js
|
|
12347
|
+
const boundedIdentifierSchema$1 = z$1.string().trim().min(1).max(256);
|
|
12348
|
+
const CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS = 1200;
|
|
12349
|
+
const centerAgentMemoryProviderSchema = z$1.enum(["zep_cloud"]);
|
|
12350
|
+
const centerAgentMemoryWipeStatusSchema = z$1.enum(["deleted", "not_found"]);
|
|
12351
|
+
const centerAgentWipeMemberMemoryResponseSchema = z$1.strictObject({
|
|
12352
|
+
organizationId: boundedIdentifierSchema$1,
|
|
12353
|
+
provider: centerAgentMemoryProviderSchema,
|
|
12354
|
+
status: centerAgentMemoryWipeStatusSchema,
|
|
12355
|
+
userId: boundedIdentifierSchema$1
|
|
12294
12356
|
});
|
|
12295
|
-
const
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12357
|
+
const centerAgentOrganizationMemoryPolicyResponseSchema = z$1.strictObject({
|
|
12358
|
+
organizationId: boundedIdentifierSchema$1,
|
|
12359
|
+
organizationMemoryOptIn: z$1.boolean(),
|
|
12360
|
+
provider: centerAgentMemoryProviderSchema,
|
|
12361
|
+
updatedByUserId: boundedIdentifierSchema$1.nullable()
|
|
12299
12362
|
});
|
|
12300
|
-
const
|
|
12301
|
-
|
|
12302
|
-
|
|
12363
|
+
const updateCenterAgentOrganizationMemoryPolicyBodySchema = z$1.strictObject({ organizationMemoryOptIn: z$1.boolean() });
|
|
12364
|
+
z$1.strictObject({ fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS) });
|
|
12365
|
+
z$1.strictObject({
|
|
12366
|
+
fact: z$1.string().trim().min(1).max(CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS),
|
|
12367
|
+
organizationId: boundedIdentifierSchema$1,
|
|
12368
|
+
saved: z$1.literal(true),
|
|
12369
|
+
source: z$1.literal("explicit_tool")
|
|
12303
12370
|
});
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12371
|
+
//#endregion
|
|
12372
|
+
//#region ../../packages/schemas/dist/schemas/http/current-device-target.js
|
|
12373
|
+
const currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;
|
|
12374
|
+
const currentDeviceTargetResolvedSchema = z$1.strictObject({
|
|
12375
|
+
availability: z$1.literal("resolved"),
|
|
12376
|
+
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12377
|
+
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12378
|
+
runtimeLane: daemonServiceLaneSchema
|
|
12307
12379
|
});
|
|
12308
|
-
const
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
"all_messages",
|
|
12312
|
-
"mentions_and_replies",
|
|
12313
|
-
"muted"
|
|
12314
|
-
]);
|
|
12315
|
-
const inboxMessageNotificationPreferencesQuerySchema = strictObject({ spaceId: identifierSchema.optional() });
|
|
12316
|
-
const inboxMessageNotificationPreferencesResponseSchema = strictObject({
|
|
12317
|
-
organizationId: identifierSchema,
|
|
12318
|
-
spaceId: identifierSchema.nullable(),
|
|
12319
|
-
defaultMode: inboxMessageNotificationModeSchema,
|
|
12320
|
-
overrideMode: inboxConversationNotificationModeSchema.nullable(),
|
|
12321
|
-
effectiveMode: inboxConversationNotificationModeSchema
|
|
12380
|
+
const currentDeviceTargetMissingSchema = z$1.strictObject({
|
|
12381
|
+
availability: z$1.literal("missing"),
|
|
12382
|
+
reasonCodes: z$1.array(z$1.string().trim().min(1).max(256)).optional()
|
|
12322
12383
|
});
|
|
12323
|
-
const
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
scope: literal("conversation"),
|
|
12328
|
-
spaceId: identifierSchema,
|
|
12329
|
-
mode: inboxConversationNotificationModeSchema.nullable()
|
|
12330
|
-
})]);
|
|
12331
|
-
inboxMessageNotificationPreferencesQuerySchema.extend({ context: openMeldRequestContextSchema });
|
|
12332
|
-
strictObject({
|
|
12333
|
-
context: openMeldRequestContextSchema,
|
|
12334
|
-
preference: updateInboxMessageNotificationPreferencesBodySchema
|
|
12384
|
+
const currentDeviceTargetResponseSchema = z$1.discriminatedUnion("availability", [currentDeviceTargetResolvedSchema, currentDeviceTargetMissingSchema]);
|
|
12385
|
+
const localRuntimeEnrollmentBodySchema = z$1.strictObject({
|
|
12386
|
+
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12387
|
+
runtimeLane: daemonServiceLaneSchema
|
|
12335
12388
|
});
|
|
12336
|
-
const
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
const markInboxItemReadBodySchema = strictObject({ read: boolean() });
|
|
12341
|
-
const markInboxItemReadResponseSchema = strictObject({ item: inboxItemSchema });
|
|
12342
|
-
strictObject({ item: inboxItemWireSchema });
|
|
12343
|
-
const markAllInboxItemsReadResponseSchema = strictObject({ markedReadCount: number().int().nonnegative() });
|
|
12344
|
-
strictObject({
|
|
12345
|
-
attention: inboxAttentionSchema,
|
|
12346
|
-
contextLabel: contextLabelSchema.nullable(),
|
|
12347
|
-
importance: inboxImportanceSchema,
|
|
12348
|
-
kind: inboxItemWireKindSchema,
|
|
12349
|
-
occurredAtMs: timestampMsSchema,
|
|
12350
|
-
organizationId: identifierSchema,
|
|
12351
|
-
preview: previewSchema,
|
|
12352
|
-
recipientUserId: identifierSchema,
|
|
12353
|
-
sourceKey: identifierSchema,
|
|
12354
|
-
sourceKind: inboxSourceKindSchema,
|
|
12355
|
-
sourceTarget: inboxSourceTargetSchema,
|
|
12356
|
-
title: titleSchema
|
|
12357
|
-
}).transform((candidate) => ({
|
|
12358
|
-
...candidate,
|
|
12359
|
-
kind: normalizeInboxItemWireKind(candidate.kind)
|
|
12360
|
-
}));
|
|
12361
|
-
function normalizeInboxItemWireKind(kind) {
|
|
12362
|
-
return kind === "space_reference" ? "space_mention" : kind;
|
|
12363
|
-
}
|
|
12364
|
-
listInboxItemsQuerySchema.extend({
|
|
12365
|
-
context: openMeldRequestContextSchema,
|
|
12366
|
-
includeReplyToRecipient: boolean().optional()
|
|
12389
|
+
const localRuntimeEnrollmentResponseSchema = z$1.strictObject({
|
|
12390
|
+
connectedComputerId: START_BOUNDED_ID_SCHEMA.optional(),
|
|
12391
|
+
deviceId: currentDeviceTargetDeviceIdSchema,
|
|
12392
|
+
runtimeLane: daemonServiceLaneSchema
|
|
12367
12393
|
});
|
|
12368
|
-
|
|
12369
|
-
strictObject({
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
spaceId: identifierSchema
|
|
12394
|
+
const forgetCurrentComputerStatusSchema = z$1.enum(["forgotten", "already_missing"]);
|
|
12395
|
+
const forgetCurrentComputerResponseSchema = z$1.strictObject({
|
|
12396
|
+
status: forgetCurrentComputerStatusSchema,
|
|
12397
|
+
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12398
|
+
currentDeviceTarget: currentDeviceTargetMissingSchema
|
|
12374
12399
|
});
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12400
|
+
z$1.strictObject({ deviceId: currentDeviceTargetDeviceIdSchema });
|
|
12401
|
+
const forgetComputerResponseSchema = z$1.strictObject({
|
|
12402
|
+
status: forgetCurrentComputerStatusSchema,
|
|
12403
|
+
forgottenDeviceId: START_BOUNDED_ID_SCHEMA.nullable(),
|
|
12404
|
+
currentDeviceTarget: currentDeviceTargetResponseSchema
|
|
12380
12405
|
});
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12406
|
+
//#endregion
|
|
12407
|
+
//#region ../../packages/schemas/dist/schemas/http/device-metadata.js
|
|
12408
|
+
const observedDeviceTypeSchema = localRuntimeDeviceTypeSchema;
|
|
12409
|
+
const observedDeviceMetadataSchema = z$1.strictObject({
|
|
12410
|
+
observedDisplayName: z$1.string().trim().min(1).max(200).nullable(),
|
|
12411
|
+
platformFamily: localRuntimePlatformFamilySchema,
|
|
12412
|
+
osVersion: z$1.string().trim().min(1).max(120).nullable(),
|
|
12413
|
+
deviceType: observedDeviceTypeSchema,
|
|
12414
|
+
observedAtMs: z$1.number().int().nonnegative()
|
|
12386
12415
|
});
|
|
12387
|
-
strictObject({
|
|
12388
|
-
|
|
12389
|
-
updateInboxNotificationPreferencesBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
12390
|
-
centerAgentRequestMemberAttentionBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
12416
|
+
const writeCurrentDeviceObservedMetadataBodySchema = z$1.strictObject({ metadata: observedDeviceMetadataSchema });
|
|
12417
|
+
const writeCurrentDeviceObservedMetadataResponseSchema = writeCurrentDeviceObservedMetadataBodySchema;
|
|
12391
12418
|
//#endregion
|
|
12392
12419
|
//#region ../../packages/schemas/dist/schemas/http/list-signals-query.js
|
|
12393
12420
|
const CATCHUP_DEFAULT_LIMIT = 200;
|
|
@@ -15888,12 +15915,15 @@ function buildInboxPath(query = {}) {
|
|
|
15888
15915
|
const search = new URLSearchParams();
|
|
15889
15916
|
if (query.cursor !== void 0) search.set("cursor", query.cursor);
|
|
15890
15917
|
if (query.limit !== void 0) search.set("limit", String(query.limit));
|
|
15918
|
+
if (query.presentation !== void 0) search.set("presentation", query.presentation);
|
|
15919
|
+
if (query.notificationPreview !== void 0) search.set("notificationPreview", query.notificationPreview);
|
|
15891
15920
|
if (query.view !== void 0) search.set("view", query.view);
|
|
15892
15921
|
const suffix = search.toString();
|
|
15893
15922
|
return suffix ? `${INBOX_PATH}?${suffix}` : INBOX_PATH;
|
|
15894
15923
|
}
|
|
15895
|
-
function buildInboxSummaryPath() {
|
|
15896
|
-
|
|
15924
|
+
function buildInboxSummaryPath(presentation) {
|
|
15925
|
+
const base = `${INBOX_PATH}/summary`;
|
|
15926
|
+
return presentation === void 0 ? base : `${base}?${new URLSearchParams({ presentation })}`;
|
|
15897
15927
|
}
|
|
15898
15928
|
function buildCenterAgentInboxSummaryPath() {
|
|
15899
15929
|
return `${INBOX_PATH}/center-agent/summary`;
|
|
@@ -15919,8 +15949,9 @@ function buildInboxItemDismissPath(itemId) {
|
|
|
15919
15949
|
function buildInboxItemPath(itemId) {
|
|
15920
15950
|
return `${INBOX_PATH}/items/${encodeURIComponent(itemId)}`;
|
|
15921
15951
|
}
|
|
15922
|
-
function buildInboxMarkAllReadPath() {
|
|
15923
|
-
|
|
15952
|
+
function buildInboxMarkAllReadPath(presentation) {
|
|
15953
|
+
const base = `${INBOX_PATH}/mark-all-read`;
|
|
15954
|
+
return presentation === void 0 ? base : `${base}?${new URLSearchParams({ presentation })}`;
|
|
15924
15955
|
}
|
|
15925
15956
|
function buildInboxPreferencesPath() {
|
|
15926
15957
|
return `${INBOX_PATH}/preferences`;
|
|
@@ -15985,6 +16016,8 @@ const createInboxApi = (client) => ({
|
|
|
15985
16016
|
const query = requireValidInput$5(listInboxItemsQuerySchema, {
|
|
15986
16017
|
...input.cursor === void 0 ? {} : { cursor: input.cursor },
|
|
15987
16018
|
...input.limit === void 0 ? {} : { limit: input.limit },
|
|
16019
|
+
...input.presentation === void 0 ? {} : { presentation: input.presentation },
|
|
16020
|
+
...input.notificationPreview === void 0 ? {} : { notificationPreview: input.notificationPreview },
|
|
15988
16021
|
...input.view === void 0 ? {} : { view: input.view }
|
|
15989
16022
|
}, "Inbox list request is invalid.");
|
|
15990
16023
|
return await client.requestJson({
|
|
@@ -15997,15 +16030,18 @@ const createInboxApi = (client) => ({
|
|
|
15997
16030
|
url: buildInboxPath(query)
|
|
15998
16031
|
});
|
|
15999
16032
|
},
|
|
16000
|
-
summary: async (input = {}) =>
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16033
|
+
summary: async (input = {}) => {
|
|
16034
|
+
const query = requireValidInput$5(inboxSummaryQuerySchema, input.presentation === void 0 ? {} : { presentation: input.presentation }, "Inbox summary request is invalid.");
|
|
16035
|
+
return await client.requestJson({
|
|
16036
|
+
...requestOptions$7(input),
|
|
16037
|
+
invalidMessage: "invalid Inbox summary response",
|
|
16038
|
+
headers: { [OPENMELD_HEADER_INBOX_SUMMARY_VERSION]: "3" },
|
|
16039
|
+
method: "GET",
|
|
16040
|
+
operation: "inbox.summary",
|
|
16041
|
+
schema: inboxSummaryResponseSchema,
|
|
16042
|
+
url: buildInboxSummaryPath(query.presentation)
|
|
16043
|
+
});
|
|
16044
|
+
},
|
|
16009
16045
|
markRead: async (input) => {
|
|
16010
16046
|
const params = requireValidInput$5(inboxItemRouteParamsSchema, { itemId: input.itemId }, "Inbox item request is invalid.");
|
|
16011
16047
|
const body = requireValidInput$5(markInboxItemReadBodySchema, { read: input.read }, "Inbox read request is invalid.");
|
|
@@ -16023,14 +16059,17 @@ const createInboxApi = (client) => ({
|
|
|
16023
16059
|
url: buildInboxItemReadPath(params.itemId)
|
|
16024
16060
|
});
|
|
16025
16061
|
},
|
|
16026
|
-
markAllRead: async (input = {}) =>
|
|
16027
|
-
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16062
|
+
markAllRead: async (input = {}) => {
|
|
16063
|
+
const query = requireValidInput$5(markAllInboxItemsReadQuerySchema, input.presentation === void 0 ? {} : { presentation: input.presentation }, "Inbox mark-all-read request is invalid.");
|
|
16064
|
+
return await client.requestJson({
|
|
16065
|
+
...requestOptions$7(input),
|
|
16066
|
+
invalidMessage: "invalid Inbox mark-all-read response",
|
|
16067
|
+
method: "POST",
|
|
16068
|
+
operation: "inbox.mark_all_read",
|
|
16069
|
+
schema: markAllInboxItemsReadResponseSchema,
|
|
16070
|
+
url: buildInboxMarkAllReadPath(query.presentation)
|
|
16071
|
+
});
|
|
16072
|
+
},
|
|
16034
16073
|
markCenterAgentReadThrough: async (input) => {
|
|
16035
16074
|
const body = requireValidInput$5(markCenterAgentInboxReadThroughBodySchema, {
|
|
16036
16075
|
spaceId: input.spaceId,
|
|
@@ -16052,7 +16091,7 @@ const createInboxApi = (client) => ({
|
|
|
16052
16091
|
invalidMessage: "invalid Space Inbox summary response",
|
|
16053
16092
|
method: "GET",
|
|
16054
16093
|
operation: "inbox.space.summary",
|
|
16055
|
-
headers: { [OPENMELD_HEADER_INBOX_SUMMARY_VERSION]: "
|
|
16094
|
+
headers: { [OPENMELD_HEADER_INBOX_SUMMARY_VERSION]: "3" },
|
|
16056
16095
|
schema: spaceInboxSummaryResponseSchema,
|
|
16057
16096
|
url: buildSpaceInboxSummaryPath()
|
|
16058
16097
|
}),
|
|
@@ -18031,7 +18070,10 @@ function buildSpaceRoutePath(spaceId, segment) {
|
|
|
18031
18070
|
async function setSpaceAccessMode(client, input) {
|
|
18032
18071
|
const parsedBody = setSpaceAccessModeBodySchema.safeParse({
|
|
18033
18072
|
accessMode: input.accessMode,
|
|
18034
|
-
...input.
|
|
18073
|
+
...input.allowGuests === void 0 ? {} : { allowGuests: input.allowGuests },
|
|
18074
|
+
...input.linkJoinPolicy === void 0 ? {} : { linkJoinPolicy: input.linkJoinPolicy },
|
|
18075
|
+
...input.password === void 0 ? {} : { password: input.password },
|
|
18076
|
+
...input.visibility === void 0 ? {} : { visibility: input.visibility }
|
|
18035
18077
|
});
|
|
18036
18078
|
if (!parsedBody.success) throw new Error(parsedBody.error.issues[0]?.message ?? "invalid space access mode request body");
|
|
18037
18079
|
return await client.requestJson({
|
|
@@ -18130,7 +18172,7 @@ function readRequestBodySize(body) {
|
|
|
18130
18172
|
return body instanceof Blob ? body.size : body.byteLength;
|
|
18131
18173
|
}
|
|
18132
18174
|
function currentSpaceAccessHeaders() {
|
|
18133
|
-
return { [SPACE_ACCESS_VERSION_HEADER]: "
|
|
18175
|
+
return { [SPACE_ACCESS_VERSION_HEADER]: "2" };
|
|
18134
18176
|
}
|
|
18135
18177
|
function currentSpaceAddressingHeaders(contentType) {
|
|
18136
18178
|
return {
|
|
@@ -19452,4 +19494,4 @@ function shouldWrapNetworkRequestError(error) {
|
|
|
19452
19494
|
//#endregion
|
|
19453
19495
|
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 };
|
|
19454
19496
|
|
|
19455
|
-
//# sourceMappingURL=dist-
|
|
19497
|
+
//# sourceMappingURL=dist-CAx_kxvt.js.map
|