openmeld 0.3.198 → 0.3.199
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-DKpC3EhG.js → add-me-membership-DU044FOl.js} +2 -2
- package/dist/{add-me-membership-DKpC3EhG.js.map → add-me-membership-DU044FOl.js.map} +1 -1
- package/dist/{api-client-foundation-DISAuROT.js → api-client-foundation-7_VqA9rB.js} +3 -3
- package/dist/{api-client-foundation-DISAuROT.js.map → api-client-foundation-7_VqA9rB.js.map} +1 -1
- package/dist/{api-client-foundation-e3LardOA.js → api-client-foundation-CLs3fDt5.js} +1 -1
- package/dist/auth-session-lbATRqNG.js +4 -0
- package/dist/{auth-session-BjZX32Cm.js → auth-session-xz8ddkam.js} +2 -2
- package/dist/{auth-session-BjZX32Cm.js.map → auth-session-xz8ddkam.js.map} +1 -1
- package/dist/{command-DlzTGCgU.js → command-B9TcrbXM.js} +9 -9
- package/dist/command-B9TcrbXM.js.map +1 -0
- package/dist/dist-C6YkYkyj.js +4 -0
- package/dist/{dist-Mhy5FanK.js → dist-DMOtlPEO.js} +629 -430
- package/dist/dist-DMOtlPEO.js.map +1 -0
- package/dist/dist-o3UL1EGQ.js.map +1 -1
- package/dist/{elapsed-time-BVaAdO2f.js → elapsed-time-B3D9iBeu.js} +3 -3
- package/dist/{elapsed-time-BVaAdO2f.js.map → elapsed-time-B3D9iBeu.js.map} +1 -1
- package/dist/{installer-Cb6dJ-Dj.js → installer-C8qUYLs5.js} +3 -3
- package/dist/{installer-Cb6dJ-Dj.js.map → installer-C8qUYLs5.js.map} +1 -1
- package/dist/{openmeld-CcYTC54w.js → openmeld-B1xX2ts7.js} +144 -13
- package/dist/openmeld-B1xX2ts7.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-Bgn69UrV.js → openmeld-maintenance-worker-CnaF70_P.js} +3 -3
- package/dist/{openmeld-maintenance-worker-Bgn69UrV.js.map → openmeld-maintenance-worker-CnaF70_P.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-AKsXMm44.js → openmeld-tools-update-coordinator-CU5OrEIa.js} +10 -10
- package/dist/{openmeld-tools-update-coordinator-AKsXMm44.js.map → openmeld-tools-update-coordinator-CU5OrEIa.js.map} +1 -1
- package/dist/openmeld.js +3 -3
- package/dist/{runtime-transport-B22M3ZUl.js → runtime-transport-B1Tdf6Rf.js} +6 -6
- package/dist/runtime-transport-B1Tdf6Rf.js.map +1 -0
- package/dist/upgrade-bZCdWP8h.js +4 -0
- package/dist/{upgrade-i-HvIYsB.js → upgrade-zPnNCuSr.js} +4 -4
- package/dist/{upgrade-i-HvIYsB.js.map → upgrade-zPnNCuSr.js.map} +1 -1
- package/package.json +2 -2
- package/skills/openmeld-cli/SKILL.md +1 -0
- package/skills/openmeld-cli/playbooks/plugins.md +26 -0
- package/dist/auth-session-B7OGmKso.js +0 -4
- package/dist/command-DlzTGCgU.js.map +0 -1
- package/dist/dist-BNSY0PaP.js +0 -4
- package/dist/dist-Mhy5FanK.js.map +0 -1
- package/dist/openmeld-CcYTC54w.js.map +0 -1
- package/dist/runtime-transport-B22M3ZUl.js.map +0 -1
- package/dist/upgrade-SXadeUxr.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
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 { $ as localFolderPickerRequestSchema, $n as spaceMentionLabelSchema, $r as clientMessageIdSchema$1, $t as runtimeCoordinatorExecutionCreationDiagnosticSchema, An as signalSystemNoticeDataSchema, Ar as array, At as agentInteractionPendingSummarySchema, B as openMeldDaemonOriginalErrorSchema, Bn as spaceMessageAttachmentsSchema, Br as neverFactory, Bt as localComponentUpdatePolicySchema, Ci as optionalBooleanQuerySchema, Ct as spaceAllowedActionsSchema, Dr as updateSpaceFileEntryResponseSchema, Dt as workingLanguageTagSchema, Er as trashSpaceFileEntryResponseSchema, Et as workingLanguageGuidanceSchema, Fn as spaceAttachmentDimensionSchema, Fr as enumFactory, Gn as messageEnvelopeSchema, Gr as record, Gt as openMeldToolsMaintenanceProjectionSchema, Hr as number, Ht as localComponentUpdateStatusSchema, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAttachmentFileNameSchema, Ir as int, Jn as conversationCompactionMarkerSchema, Jr as tuple, Jt as openMeldToolsUpdateOperationSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kr as strictObject, Ln as spaceAttachmentMimeTypeSchema, Lr as iso, Mi as openMeldNavigationTargetSchema, Mn as signalTextSchema, Mr as coerce, Ni as openMeldWebUrlSchema, Nn as wakeDeviceWaitTargetSchema, Nr as discriminatedUnion, Nt as agentInteractionResponseSchema, Or as uploadSpaceFileResponseSchema, Ot as targetWakeLifecycleIdentitySchema, Pn as spaceAttachmentDescriptorSchema, Pr as email, Qr as url, Qt as postSpaceWakeStopResponseSchema, Rn as spaceAttachmentSizeBytesSchema, Rr as lazySchema, Si as nonEmptyTrimmedStringFromUnknown, Sr as spaceFileNameSchema, St as resultArchivePolicySchema, Ti as MAX_TEXT_LENGTH$1, Tr as stageSpaceComposerUploadResponseSchema, Tt as spaceDispatchPolicySchema, Ur as object, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vr as nullFactory, Vt as localComponentUpdateProjectionSchema, Wr as preprocess, Wt as openMeldToolsMaintenanceMutationResultSchema, Xr as union, Yn as centerAgentInteractionSourceSchema, Yr as undefinedFactory, Yt as openMeldToolsUpdateRequestResultSchema, Zr as unknown, Zt as postSpaceWakeStopBodySchema, _i as profileSchema, _r as spaceFileActorSchema, ai as spaceAgentStreamPresenceSchema, an as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, ar as discardSpaceComposerUploadResponseSchema, at as agentTaskCompletionObservationSchema, bi as uuidProfileIdSchema, br as spaceFileEntryIdSchema, ci as spaceThreadContextSchema, cn as organizationInformationProtectionPolicyResponseSchema, cr as listSpaceFileRevisionsResponseSchema, ct as areAgentTaskTerminalOutcomesEqual, di as spaceThreadSignalPlacementSchema, dn as executeExecutionRecoveryBodySchema, dt as spaceWakeAgentTaskHandleSchema, en as runtimeCoordinatorExecutionEventSchema, er as spaceMentionLabelSourceSchema, et as localFolderPickerResultSchema, fn as executeExecutionRecoveryResponseSchema, ft as localAgentInstallationOptionSchema, gi as profileKindSchema, gn as agentProfileWorkRecoveryActionKindSchema, gr as spaceComposerUploadIdSchema, hi as openMeldRuntimeProfileIdSchema, hn as openMeldRequestContextSchema, hr as spaceComposerUploadDescriptorSchema, ht as openMeldDaemonSyncRouteCatalogPayloadSchema, ii as spaceAgentStreamPartFrameSchema, in as spaceTraceExecutionIdentityProjectionSchema, ir as createSpaceFolderResponseSchema, it as agentTaskCompletionConditionSchema, ji as computerSetupModeSchema, jn as signalTextDataSchema, jr as boolean, kn as signalStatusDataSchema, kr as NEVER, li as spaceThreadEventSchema, ln as organizationProtectedInformationSchema, lr as listSpaceFilesResponseSchema, lt as buildAgentTaskKey, mr as restoreSpaceFileRevisionResponseSchema, n as daemonExecutionCompatibilitySchema, ni as agentStreamToolPartSchema, nr as SPACE_FILE_MAX_SIZE_BYTES, nt as spaceCallerContextSchema, oi as spaceAgentStreamSnapshotSchema, on as normalizeSpacePasswordText, or as getSpaceFileResponseSchema, ot as agentTaskHandleSchema, pi as agentProfileIdSchema, pn as inspectExecutionRecoveryResponseSchema, pr as restoreSpaceFileEntryResponseSchema, qr as string, ri as spaceAgentStreamDeltaFrameSchema, rt as agentDelegationSnapshotSchema, si as spaceAgentStreamTerminalFrameSchema, sn as spacePasswordSchema, st as agentTaskTerminalOutcomeSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as AGENT_STREAM_SNAPSHOT_MAX_CHARS, tn as runtimeCoordinatorExecutionRecordSchema, tr as SPACE_FILE_ERROR_CODES, tt as localFolderPathSchema, ui as spaceThreadSchema, un as updateOrganizationInformationProtectionPolicyBodySchema, ur as publishSpaceComposerUploadResponseSchema, ut as controllerAgentTaskHandleSchema, vi as profileWorkingDirectorySchema, vr as spaceFileClientMutationIdSchema, wi as trimmedStringFromUnknown, wr as spaceMessageFileReferencesSchema, wt as spacePublicationModeSchema, xi as finiteIntegerNumber, xr as spaceFileMimeTypeSchema, yi as profileWorkspaceModeSchema, yr as spaceFileDescriptorSchema, yt as dispatchExecutionSchema, zn as spaceMessageAttachmentSchema, zr as literal } from "./runtime-transport-
|
|
4
|
+
import { $ as localFolderPickerRequestSchema, $n as spaceMentionLabelSchema, $r as clientMessageIdSchema$1, $t as runtimeCoordinatorExecutionCreationDiagnosticSchema, An as signalSystemNoticeDataSchema, Ar as array, At as agentInteractionPendingSummarySchema, B as openMeldDaemonOriginalErrorSchema, Bn as spaceMessageAttachmentsSchema, Br as neverFactory, Bt as localComponentUpdatePolicySchema, Ci as optionalBooleanQuerySchema, Ct as spaceAllowedActionsSchema, Dr as updateSpaceFileEntryResponseSchema, Dt as workingLanguageTagSchema, Er as trashSpaceFileEntryResponseSchema, Et as workingLanguageGuidanceSchema, Fn as spaceAttachmentDimensionSchema, Fr as enumFactory, Gn as messageEnvelopeSchema, Gr as record, Gt as openMeldToolsMaintenanceProjectionSchema, Hr as number, Ht as localComponentUpdateStatusSchema, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAttachmentFileNameSchema, Ir as int, Jn as conversationCompactionMarkerSchema, Jr as tuple, Jt as openMeldToolsUpdateOperationSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kr as strictObject, Ln as spaceAttachmentMimeTypeSchema, Lr as iso, Mi as openMeldNavigationTargetSchema, Mn as signalTextSchema, Mr as coerce, Ni as openMeldWebUrlSchema, Nn as wakeDeviceWaitTargetSchema, Nr as discriminatedUnion, Nt as agentInteractionResponseSchema, Or as uploadSpaceFileResponseSchema, Ot as targetWakeLifecycleIdentitySchema, Pn as spaceAttachmentDescriptorSchema, Pr as email, Qr as url, Qt as postSpaceWakeStopResponseSchema, Rn as spaceAttachmentSizeBytesSchema, Rr as lazySchema, Si as nonEmptyTrimmedStringFromUnknown, Sr as spaceFileNameSchema, St as resultArchivePolicySchema, Ti as MAX_TEXT_LENGTH$1, Tr as stageSpaceComposerUploadResponseSchema, Tt as spaceDispatchPolicySchema, Ur as object, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vr as nullFactory, Vt as localComponentUpdateProjectionSchema, Wr as preprocess, Wt as openMeldToolsMaintenanceMutationResultSchema, Xr as union, Yn as centerAgentInteractionSourceSchema, Yr as undefinedFactory, Yt as openMeldToolsUpdateRequestResultSchema, Zr as unknown, Zt as postSpaceWakeStopBodySchema, _i as profileSchema, _r as spaceFileActorSchema, ai as spaceAgentStreamPresenceSchema, an as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, ar as discardSpaceComposerUploadResponseSchema, at as agentTaskCompletionObservationSchema, bi as uuidProfileIdSchema, br as spaceFileEntryIdSchema, ci as spaceThreadContextSchema, cn as organizationInformationProtectionPolicyResponseSchema, cr as listSpaceFileRevisionsResponseSchema, ct as areAgentTaskTerminalOutcomesEqual, di as spaceThreadSignalPlacementSchema, dn as executeExecutionRecoveryBodySchema, dt as spaceWakeAgentTaskHandleSchema, en as runtimeCoordinatorExecutionEventSchema, er as spaceMentionLabelSourceSchema, et as localFolderPickerResultSchema, fn as executeExecutionRecoveryResponseSchema, ft as localAgentInstallationOptionSchema, gi as profileKindSchema, gn as agentProfileWorkRecoveryActionKindSchema, gr as spaceComposerUploadIdSchema, hi as openMeldRuntimeProfileIdSchema, hn as openMeldRequestContextSchema, hr as spaceComposerUploadDescriptorSchema, ht as openMeldDaemonSyncRouteCatalogPayloadSchema, ii as spaceAgentStreamPartFrameSchema, in as spaceTraceExecutionIdentityProjectionSchema, ir as createSpaceFolderResponseSchema, it as agentTaskCompletionConditionSchema, ji as computerSetupModeSchema, jn as signalTextDataSchema, jr as boolean, kn as signalStatusDataSchema, kr as NEVER, li as spaceThreadEventSchema, ln as organizationProtectedInformationSchema, lr as listSpaceFilesResponseSchema, lt as buildAgentTaskKey, mr as restoreSpaceFileRevisionResponseSchema, n as daemonExecutionCompatibilitySchema, ni as agentStreamToolPartSchema, nr as SPACE_FILE_MAX_SIZE_BYTES, nt as spaceCallerContextSchema, oi as spaceAgentStreamSnapshotSchema, on as normalizeSpacePasswordText, or as getSpaceFileResponseSchema, ot as agentTaskHandleSchema, pi as agentProfileIdSchema, pn as inspectExecutionRecoveryResponseSchema, pr as restoreSpaceFileEntryResponseSchema, qr as string, ri as spaceAgentStreamDeltaFrameSchema, rt as agentDelegationSnapshotSchema, si as spaceAgentStreamTerminalFrameSchema, sn as spacePasswordSchema, st as agentTaskTerminalOutcomeSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as AGENT_STREAM_SNAPSHOT_MAX_CHARS, tn as runtimeCoordinatorExecutionRecordSchema, tr as SPACE_FILE_ERROR_CODES, tt as localFolderPathSchema, ui as spaceThreadSchema, un as updateOrganizationInformationProtectionPolicyBodySchema, ur as publishSpaceComposerUploadResponseSchema, ut as controllerAgentTaskHandleSchema, vi as profileWorkingDirectorySchema, vr as spaceFileClientMutationIdSchema, wi as trimmedStringFromUnknown, wr as spaceMessageFileReferencesSchema, wt as spacePublicationModeSchema, xi as finiteIntegerNumber, xr as spaceFileMimeTypeSchema, yi as profileWorkspaceModeSchema, yr as spaceFileDescriptorSchema, yt as dispatchExecutionSchema, zn as spaceMessageAttachmentSchema, zr as literal } from "./runtime-transport-B1Tdf6Rf.js";
|
|
5
5
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
6
6
|
import { n as toErrorMessage$3 } from "./dist-o3UL1EGQ.js";
|
|
7
7
|
import * as z$1 from "zod/v4";
|
|
@@ -657,8 +657,8 @@ const MESSAGE_CHANNEL_MENTION_TYPES = [
|
|
|
657
657
|
"none"
|
|
658
658
|
];
|
|
659
659
|
const MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;
|
|
660
|
-
const nonEmptyStringSchema$
|
|
661
|
-
const providerIdSchema = nonEmptyStringSchema$
|
|
660
|
+
const nonEmptyStringSchema$5 = string().trim().min(1);
|
|
661
|
+
const providerIdSchema = nonEmptyStringSchema$5.max(512);
|
|
662
662
|
const SLACK_MESSAGE_TIMESTAMP_PATTERN = /^\d+\.\d+$/u;
|
|
663
663
|
const SLACK_THREAD_PERMALINK_PATH_PATTERN = /^\/archives\/([A-Za-z0-9_-]+)\/p(\d{10})(\d{1,6})\/?$/u;
|
|
664
664
|
const timestampMsSchema$7 = number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
@@ -727,8 +727,8 @@ const messageChannelConversationLocatorSchema = discriminatedUnion("provider", [
|
|
|
727
727
|
const messageChannelResourceDescriptorSchema = strictObject({
|
|
728
728
|
type: messageChannelResourceTypeSchema,
|
|
729
729
|
fileKey: providerIdSchema,
|
|
730
|
-
fileName: nonEmptyStringSchema$
|
|
731
|
-
mimeType: nonEmptyStringSchema$
|
|
730
|
+
fileName: nonEmptyStringSchema$5.max(512).nullable(),
|
|
731
|
+
mimeType: nonEmptyStringSchema$5.max(256).nullable(),
|
|
732
732
|
sizeBytes: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).nullable()
|
|
733
733
|
});
|
|
734
734
|
const messageChannelConversationEventShape = { locator: messageChannelConversationLocatorSchema };
|
|
@@ -737,10 +737,10 @@ const normalizedMessageChannelMessageEventSchema = strictObject({
|
|
|
737
737
|
messageId: providerIdSchema,
|
|
738
738
|
sentAtMs: timestampMsSchema$7,
|
|
739
739
|
senderId: providerIdSchema,
|
|
740
|
-
senderDisplayName: nonEmptyStringSchema$
|
|
740
|
+
senderDisplayName: nonEmptyStringSchema$5.max(256).optional(),
|
|
741
741
|
senderTenantKey: providerIdSchema.optional(),
|
|
742
742
|
...messageChannelConversationEventShape,
|
|
743
|
-
text: nonEmptyStringSchema$
|
|
743
|
+
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS),
|
|
744
744
|
mention: messageChannelMentionTypeSchema,
|
|
745
745
|
resources: array(messageChannelResourceDescriptorSchema).max(10)
|
|
746
746
|
});
|
|
@@ -750,8 +750,8 @@ const normalizedMessageChannelCardActionEventSchema = strictObject({
|
|
|
750
750
|
occurredAtMs: timestampMsSchema$7,
|
|
751
751
|
senderId: providerIdSchema,
|
|
752
752
|
...messageChannelConversationEventShape,
|
|
753
|
-
actionName: nonEmptyStringSchema$
|
|
754
|
-
actionValue: nonEmptyStringSchema$
|
|
753
|
+
actionName: nonEmptyStringSchema$5.max(128),
|
|
754
|
+
actionValue: nonEmptyStringSchema$5.max(8192).nullable()
|
|
755
755
|
});
|
|
756
756
|
discriminatedUnion("action", [strictObject({
|
|
757
757
|
v: literal(1),
|
|
@@ -778,7 +778,7 @@ const normalizedMessageChannelEventSchema = discriminatedUnion("kind", [
|
|
|
778
778
|
occurredAtMs: timestampMsSchema$7,
|
|
779
779
|
senderId: providerIdSchema,
|
|
780
780
|
...messageChannelConversationEventShape,
|
|
781
|
-
reaction: nonEmptyStringSchema$
|
|
781
|
+
reaction: nonEmptyStringSchema$5.max(128),
|
|
782
782
|
operation: enumFactory(["add", "remove"])
|
|
783
783
|
}),
|
|
784
784
|
strictObject({
|
|
@@ -788,7 +788,7 @@ const normalizedMessageChannelEventSchema = discriminatedUnion("kind", [
|
|
|
788
788
|
occurredAtMs: timestampMsSchema$7,
|
|
789
789
|
senderId: providerIdSchema,
|
|
790
790
|
...messageChannelConversationEventShape,
|
|
791
|
-
text: nonEmptyStringSchema$
|
|
791
|
+
text: nonEmptyStringSchema$5.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS)
|
|
792
792
|
})
|
|
793
793
|
]);
|
|
794
794
|
const messageChannelIngressEnvelopeSchema = strictObject({
|
|
@@ -5535,19 +5535,19 @@ const MESSAGE_CHANNEL_ERROR_CODES = [
|
|
|
5535
5535
|
"message_channel.setup_request_recipient_unavailable"
|
|
5536
5536
|
];
|
|
5537
5537
|
const LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_CHARS = 262144;
|
|
5538
|
-
const nonEmptyStringSchema$
|
|
5539
|
-
const capabilityGroupSchema = nonEmptyStringSchema$
|
|
5540
|
-
const reasonCodeSchema$2 = nonEmptyStringSchema$
|
|
5538
|
+
const nonEmptyStringSchema$4 = string().trim().min(1);
|
|
5539
|
+
const capabilityGroupSchema = nonEmptyStringSchema$4.max(64).regex(/^[a-z0-9][a-z0-9._-]*$/u);
|
|
5540
|
+
const reasonCodeSchema$2 = nonEmptyStringSchema$4.max(128).regex(/^[a-z0-9][a-z0-9._-]*$/u);
|
|
5541
5541
|
const messageChannelConnectionStatusSchema = enumFactory(MESSAGE_CHANNEL_CONNECTION_STATUSES);
|
|
5542
5542
|
const messageChannelSetupRequestBodySchema = strictObject({ provider: messageChannelProviderSchema });
|
|
5543
5543
|
const messageChannelSetupRequestResponseSchema = strictObject({
|
|
5544
|
-
organizationId: nonEmptyStringSchema$
|
|
5544
|
+
organizationId: nonEmptyStringSchema$4.max(256),
|
|
5545
5545
|
provider: messageChannelProviderSchema,
|
|
5546
5546
|
recipientCount: number().int().positive(),
|
|
5547
|
-
requestId: nonEmptyStringSchema$
|
|
5547
|
+
requestId: nonEmptyStringSchema$4.max(256),
|
|
5548
5548
|
status: enumFactory(["created", "already_requested"])
|
|
5549
5549
|
});
|
|
5550
|
-
const messageChannelIdentityLinkIdSchema = nonEmptyStringSchema$
|
|
5550
|
+
const messageChannelIdentityLinkIdSchema = nonEmptyStringSchema$4.max(82).regex(/^channel_identity_[0-9a-f]{64}$/u);
|
|
5551
5551
|
const larkPlatformProviderSchema = enumFactory(["lark", "feishu"]);
|
|
5552
5552
|
const larkPlatformRegistrationBeginModeSchema = enumFactory([
|
|
5553
5553
|
"resume",
|
|
@@ -5556,13 +5556,13 @@ const larkPlatformRegistrationBeginModeSchema = enumFactory([
|
|
|
5556
5556
|
"reauthorize"
|
|
5557
5557
|
]);
|
|
5558
5558
|
const messageChannelConnectionProjectionSchema = strictObject({
|
|
5559
|
-
id: nonEmptyStringSchema$
|
|
5559
|
+
id: nonEmptyStringSchema$4.max(256),
|
|
5560
5560
|
provider: messageChannelProviderSchema,
|
|
5561
5561
|
transport: messageChannelTransportSchema,
|
|
5562
5562
|
status: messageChannelConnectionStatusSchema,
|
|
5563
|
-
externalAccountId: nonEmptyStringSchema$
|
|
5564
|
-
externalAccountName: nonEmptyStringSchema$
|
|
5565
|
-
permissionBundleVersion: nonEmptyStringSchema$
|
|
5563
|
+
externalAccountId: nonEmptyStringSchema$4.max(512).nullable(),
|
|
5564
|
+
externalAccountName: nonEmptyStringSchema$4.max(256).nullable(),
|
|
5565
|
+
permissionBundleVersion: nonEmptyStringSchema$4.max(128).nullable(),
|
|
5566
5566
|
grantedCapabilityGroups: array(capabilityGroupSchema).max(32),
|
|
5567
5567
|
lastVerifiedAt: iso.datetime({ offset: true }).nullable(),
|
|
5568
5568
|
reasonCode: reasonCodeSchema$2.nullable()
|
|
@@ -5576,13 +5576,13 @@ const messageChannelConnectionProjectionSchema = strictObject({
|
|
|
5576
5576
|
const messageChannelIdentityLinkProjectionSchema = strictObject({
|
|
5577
5577
|
connectedAt: iso.datetime({ offset: true }),
|
|
5578
5578
|
id: messageChannelIdentityLinkIdSchema,
|
|
5579
|
-
openMeldUserId: nonEmptyStringSchema$
|
|
5579
|
+
openMeldUserId: nonEmptyStringSchema$4.max(256),
|
|
5580
5580
|
provider: messageChannelProviderSchema,
|
|
5581
5581
|
providerAccountEmail: email().max(320).nullable().default(null),
|
|
5582
|
-
providerAccountName: nonEmptyStringSchema$
|
|
5582
|
+
providerAccountName: nonEmptyStringSchema$4.max(256).nullable()
|
|
5583
5583
|
});
|
|
5584
5584
|
const messageChannelConnectionListResponseSchema = strictObject({
|
|
5585
|
-
organizationId: nonEmptyStringSchema$
|
|
5585
|
+
organizationId: nonEmptyStringSchema$4.max(256),
|
|
5586
5586
|
availableLarkPlatformProviders: array(larkPlatformProviderSchema).max(2),
|
|
5587
5587
|
connections: array(messageChannelConnectionProjectionSchema).max(MESSAGE_CHANNEL_PROVIDERS.length),
|
|
5588
5588
|
identityLinks: array(messageChannelIdentityLinkProjectionSchema).max(1e4).default([])
|
|
@@ -5606,7 +5606,7 @@ const messageChannelConnectionListResponseSchema = strictObject({
|
|
|
5606
5606
|
providers.add(connection.provider);
|
|
5607
5607
|
}
|
|
5608
5608
|
});
|
|
5609
|
-
const larkPlatformRegistrationAttemptIdSchema = nonEmptyStringSchema$
|
|
5609
|
+
const larkPlatformRegistrationAttemptIdSchema = nonEmptyStringSchema$4.max(256);
|
|
5610
5610
|
const larkPlatformActiveRegistrationProjectionSchema = strictObject({
|
|
5611
5611
|
canResume: boolean(),
|
|
5612
5612
|
expiresAt: iso.datetime({ offset: true }),
|
|
@@ -5621,7 +5621,7 @@ const larkPlatformActiveRegistrationProjectionSchema = strictObject({
|
|
|
5621
5621
|
])
|
|
5622
5622
|
});
|
|
5623
5623
|
const larkPlatformActiveRegistrationListResponseSchema = strictObject({
|
|
5624
|
-
organizationId: nonEmptyStringSchema$
|
|
5624
|
+
organizationId: nonEmptyStringSchema$4.max(256),
|
|
5625
5625
|
registrations: array(larkPlatformActiveRegistrationProjectionSchema).max(2)
|
|
5626
5626
|
}).superRefine((response, context) => {
|
|
5627
5627
|
const providers = /* @__PURE__ */ new Set();
|
|
@@ -5662,7 +5662,7 @@ const larkPlatformRegistrationAttemptProjectionSchema = strictObject({
|
|
|
5662
5662
|
}
|
|
5663
5663
|
});
|
|
5664
5664
|
const larkPlatformRegistrationResponseSchema = strictObject({
|
|
5665
|
-
organizationId: nonEmptyStringSchema$
|
|
5665
|
+
organizationId: nonEmptyStringSchema$4.max(256),
|
|
5666
5666
|
attempt: larkPlatformRegistrationAttemptProjectionSchema,
|
|
5667
5667
|
connection: messageChannelConnectionProjectionSchema.nullable()
|
|
5668
5668
|
}).superRefine((response, context) => {
|
|
@@ -5674,21 +5674,21 @@ const larkPlatformRegistrationResponseSchema = strictObject({
|
|
|
5674
5674
|
});
|
|
5675
5675
|
strictObject({
|
|
5676
5676
|
provider: larkPlatformProviderSchema,
|
|
5677
|
-
connectionId: nonEmptyStringSchema$
|
|
5677
|
+
connectionId: nonEmptyStringSchema$4.max(256),
|
|
5678
5678
|
surface: enumFactory(["events", "callbacks"]),
|
|
5679
5679
|
rawBody: string().min(2).max(LARK_PLATFORM_WEBHOOK_RAW_BODY_MAX_CHARS),
|
|
5680
5680
|
headers: strictObject({
|
|
5681
|
-
timestamp: nonEmptyStringSchema$
|
|
5682
|
-
nonce: nonEmptyStringSchema$
|
|
5683
|
-
signature: nonEmptyStringSchema$
|
|
5681
|
+
timestamp: nonEmptyStringSchema$4.max(64).nullable(),
|
|
5682
|
+
nonce: nonEmptyStringSchema$4.max(256).nullable(),
|
|
5683
|
+
signature: nonEmptyStringSchema$4.max(256).nullable()
|
|
5684
5684
|
}),
|
|
5685
5685
|
receivedAtMs: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
5686
|
-
gatewayRequestId: nonEmptyStringSchema$
|
|
5686
|
+
gatewayRequestId: nonEmptyStringSchema$4.max(256)
|
|
5687
5687
|
});
|
|
5688
5688
|
discriminatedUnion("status", [
|
|
5689
5689
|
strictObject({
|
|
5690
5690
|
status: literal("challenge"),
|
|
5691
|
-
challenge: nonEmptyStringSchema$
|
|
5691
|
+
challenge: nonEmptyStringSchema$4.max(2048)
|
|
5692
5692
|
}),
|
|
5693
5693
|
strictObject({
|
|
5694
5694
|
status: literal("enqueue"),
|
|
@@ -5709,12 +5709,12 @@ const messageChannelIdentityLinkPreviewResponseSchema = strictObject({
|
|
|
5709
5709
|
alreadyMember: boolean().default(true),
|
|
5710
5710
|
continuesRequest: boolean().default(false),
|
|
5711
5711
|
expiresAt: iso.datetime({ offset: true }),
|
|
5712
|
-
organizationId: nonEmptyStringSchema$
|
|
5713
|
-
organizationName: nonEmptyStringSchema$
|
|
5712
|
+
organizationId: nonEmptyStringSchema$4.max(256),
|
|
5713
|
+
organizationName: nonEmptyStringSchema$4.max(256),
|
|
5714
5714
|
provider: larkPlatformProviderSchema,
|
|
5715
|
-
providerUserDisplayName: nonEmptyStringSchema$
|
|
5716
|
-
providerUserId: nonEmptyStringSchema$
|
|
5717
|
-
openMeldAccountEmail: nonEmptyStringSchema$
|
|
5715
|
+
providerUserDisplayName: nonEmptyStringSchema$4.max(256),
|
|
5716
|
+
providerUserId: nonEmptyStringSchema$4.max(512),
|
|
5717
|
+
openMeldAccountEmail: nonEmptyStringSchema$4.max(320),
|
|
5718
5718
|
replacesExistingLink: boolean().default(false)
|
|
5719
5719
|
});
|
|
5720
5720
|
const messageChannelIdentityLinkConsumeBodySchema = strictObject({ token: messageChannelIdentityLinkTokenSchema });
|
|
@@ -5724,13 +5724,13 @@ const messageChannelIdentityLinkConsumeResponseSchema = strictObject({
|
|
|
5724
5724
|
continuesRequest: boolean().default(false),
|
|
5725
5725
|
joinedOrganization: boolean().default(false),
|
|
5726
5726
|
linked: literal(true),
|
|
5727
|
-
organizationId: nonEmptyStringSchema$
|
|
5728
|
-
organizationName: nonEmptyStringSchema$
|
|
5727
|
+
organizationId: nonEmptyStringSchema$4.max(256),
|
|
5728
|
+
organizationName: nonEmptyStringSchema$4.max(256),
|
|
5729
5729
|
provider: larkPlatformProviderSchema,
|
|
5730
|
-
providerUserDisplayName: nonEmptyStringSchema$
|
|
5731
|
-
providerUserId: nonEmptyStringSchema$
|
|
5730
|
+
providerUserDisplayName: nonEmptyStringSchema$4.max(256),
|
|
5731
|
+
providerUserId: nonEmptyStringSchema$4.max(512),
|
|
5732
5732
|
replacedExistingLink: boolean().default(false),
|
|
5733
|
-
openMeldUserId: nonEmptyStringSchema$
|
|
5733
|
+
openMeldUserId: nonEmptyStringSchema$4.max(256)
|
|
5734
5734
|
});
|
|
5735
5735
|
//#endregion
|
|
5736
5736
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-member-research.js
|
|
@@ -6348,9 +6348,252 @@ function validateCenterAgentDraftTarget(value, context) {
|
|
|
6348
6348
|
...value.title ? { title: value.title } : {}
|
|
6349
6349
|
}, context);
|
|
6350
6350
|
}
|
|
6351
|
+
const CONNECTOR_SERVICES = ["github", ...[
|
|
6352
|
+
"feishu",
|
|
6353
|
+
"lark",
|
|
6354
|
+
"gmail",
|
|
6355
|
+
"googlecalendar",
|
|
6356
|
+
"googledrive",
|
|
6357
|
+
"notion",
|
|
6358
|
+
"linear",
|
|
6359
|
+
"figma",
|
|
6360
|
+
"posthog",
|
|
6361
|
+
"cloudflare_browser_rendering",
|
|
6362
|
+
"cloudflare_dns",
|
|
6363
|
+
"cloudflare_r2",
|
|
6364
|
+
"cloudflare_worker"
|
|
6365
|
+
]];
|
|
6366
|
+
const CONNECTOR_CONNECTION_STATUSES = [
|
|
6367
|
+
"pending",
|
|
6368
|
+
"active",
|
|
6369
|
+
"disconnected"
|
|
6370
|
+
];
|
|
6371
|
+
const CONNECTOR_CONNECTION_SCOPES = ["member", "shared"];
|
|
6372
|
+
const CONNECTOR_CONNECTION_PREFERENCES = [
|
|
6373
|
+
"automatic",
|
|
6374
|
+
"requester",
|
|
6375
|
+
"shared"
|
|
6376
|
+
];
|
|
6377
|
+
const CONNECTOR_APP_REQUEST_SOURCES = ["openconnector_catalog", "freeform"];
|
|
6378
|
+
const CONNECTOR_APP_REQUEST_STATUSES = [
|
|
6379
|
+
"requested",
|
|
6380
|
+
"available",
|
|
6381
|
+
"declined"
|
|
6382
|
+
];
|
|
6383
|
+
const trimmedNonEmptyStringSchema$8 = string().trim().min(1);
|
|
6384
|
+
const timestampMsSchema$1 = number().int().nonnegative();
|
|
6385
|
+
const connectorCredentialValueSchema = string().min(1).max(8192);
|
|
6386
|
+
const connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();
|
|
6387
|
+
const connectorAppRequestedCapabilitiesSchema = array(string().trim().min(1).max(80)).max(12);
|
|
6388
|
+
const connectorServiceSchema = enumFactory(CONNECTOR_SERVICES);
|
|
6389
|
+
const connectorConnectionStatusSchema = enumFactory(CONNECTOR_CONNECTION_STATUSES);
|
|
6390
|
+
const connectorConnectionScopeSchema = enumFactory(CONNECTOR_CONNECTION_SCOPES);
|
|
6391
|
+
const connectorConnectionPreferenceSchema = enumFactory(CONNECTOR_CONNECTION_PREFERENCES);
|
|
6392
|
+
const connectorAppRequestSourceSchema = enumFactory(CONNECTOR_APP_REQUEST_SOURCES);
|
|
6393
|
+
const connectorAppRequestStatusSchema = enumFactory(CONNECTOR_APP_REQUEST_STATUSES);
|
|
6394
|
+
const connectorConnectionNameSchema = string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/u);
|
|
6395
|
+
const githubAppInstallationStateSchema = string().regex(/^githubapp_[0-9a-f]{64}$/u);
|
|
6396
|
+
const githubAppInstallationIdSchema = string().regex(/^[1-9][0-9]*$/u);
|
|
6397
|
+
const connectorConnectionSchema = strictObject({
|
|
6398
|
+
canDisconnect: boolean(),
|
|
6399
|
+
connectionName: connectorConnectionNameSchema,
|
|
6400
|
+
createdAtMs: timestampMsSchema$1,
|
|
6401
|
+
disconnectedAtMs: timestampMsSchema$1.nullable(),
|
|
6402
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
6403
|
+
ownerDisplayName: trimmedNonEmptyStringSchema$8,
|
|
6404
|
+
scope: connectorConnectionScopeSchema.default("member"),
|
|
6405
|
+
service: connectorServiceSchema,
|
|
6406
|
+
status: connectorConnectionStatusSchema,
|
|
6407
|
+
updatedAtMs: timestampMsSchema$1,
|
|
6408
|
+
userId: trimmedNonEmptyStringSchema$8
|
|
6409
|
+
});
|
|
6410
|
+
strictObject({
|
|
6411
|
+
connections: array(connectorConnectionSchema),
|
|
6412
|
+
currentUserId: trimmedNonEmptyStringSchema$8,
|
|
6413
|
+
organizationId: trimmedNonEmptyStringSchema$8
|
|
6414
|
+
});
|
|
6415
|
+
const connectorAppRequestSchema = strictObject({
|
|
6416
|
+
availableAtMs: timestampMsSchema$1.nullable(),
|
|
6417
|
+
createdAtMs: timestampMsSchema$1,
|
|
6418
|
+
id: string().trim().min(1).max(128),
|
|
6419
|
+
notifiedAtMs: timestampMsSchema$1.nullable(),
|
|
6420
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
6421
|
+
providerId: string().trim().min(1).max(160).nullable(),
|
|
6422
|
+
providerName: string().trim().min(1).max(120),
|
|
6423
|
+
requestedCapabilities: connectorAppRequestedCapabilitiesSchema,
|
|
6424
|
+
requesterMemberId: trimmedNonEmptyStringSchema$8.nullable(),
|
|
6425
|
+
requesterUserId: trimmedNonEmptyStringSchema$8.nullable(),
|
|
6426
|
+
source: connectorAppRequestSourceSchema,
|
|
6427
|
+
status: connectorAppRequestStatusSchema,
|
|
6428
|
+
updatedAtMs: timestampMsSchema$1,
|
|
6429
|
+
useCase: connectorAppRequestOptionalTextSchema
|
|
6430
|
+
});
|
|
6431
|
+
strictObject({
|
|
6432
|
+
providerId: string().trim().min(1).max(160).nullable().optional(),
|
|
6433
|
+
providerName: string().trim().min(1).max(120),
|
|
6434
|
+
requestedCapabilities: connectorAppRequestedCapabilitiesSchema.optional(),
|
|
6435
|
+
source: connectorAppRequestSourceSchema,
|
|
6436
|
+
useCase: connectorAppRequestOptionalTextSchema.optional()
|
|
6437
|
+
}).superRefine((input, context) => {
|
|
6438
|
+
if (input.source === "openconnector_catalog" && !input.providerId?.trim()) context.addIssue({
|
|
6439
|
+
code: "custom",
|
|
6440
|
+
message: "A catalog Plugin request requires its OpenConnector provider ID.",
|
|
6441
|
+
path: ["providerId"]
|
|
6442
|
+
});
|
|
6443
|
+
if (input.source === "freeform" && input.providerId != null) context.addIssue({
|
|
6444
|
+
code: "custom",
|
|
6445
|
+
message: "A freeform Plugin request cannot include a provider ID.",
|
|
6446
|
+
path: ["providerId"]
|
|
6447
|
+
});
|
|
6448
|
+
});
|
|
6449
|
+
strictObject({ request: connectorAppRequestSchema });
|
|
6450
|
+
strictObject({
|
|
6451
|
+
currentUserId: trimmedNonEmptyStringSchema$8,
|
|
6452
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
6453
|
+
requests: array(connectorAppRequestSchema).max(500)
|
|
6454
|
+
});
|
|
6455
|
+
strictObject({
|
|
6456
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
6457
|
+
providers: array(strictObject({
|
|
6458
|
+
authTypes: array(string().trim().min(1).max(80)).max(12),
|
|
6459
|
+
categories: array(strictObject({
|
|
6460
|
+
displayName: string().trim().min(1).max(120),
|
|
6461
|
+
id: string().trim().min(1).max(120)
|
|
6462
|
+
})).max(12),
|
|
6463
|
+
displayName: string().trim().min(1).max(120),
|
|
6464
|
+
homepageUrl: url().nullable(),
|
|
6465
|
+
iconUrl: url().nullable(),
|
|
6466
|
+
service: string().trim().min(1).max(160)
|
|
6467
|
+
})).max(5e3)
|
|
6468
|
+
});
|
|
6469
|
+
strictObject({
|
|
6470
|
+
authorizationUrl: url(),
|
|
6471
|
+
connection: connectorConnectionSchema,
|
|
6472
|
+
expiresAtMs: timestampMsSchema$1.optional()
|
|
6473
|
+
});
|
|
6474
|
+
strictObject({
|
|
6475
|
+
connection: connectorConnectionSchema,
|
|
6476
|
+
expiresAtMs: timestampMsSchema$1,
|
|
6477
|
+
state: githubAppInstallationStateSchema
|
|
6478
|
+
});
|
|
6479
|
+
strictObject({
|
|
6480
|
+
installation_id: githubAppInstallationIdSchema,
|
|
6481
|
+
setup_action: string().trim().min(1).max(64).optional(),
|
|
6482
|
+
state: githubAppInstallationStateSchema
|
|
6483
|
+
});
|
|
6484
|
+
discriminatedUnion("status", [
|
|
6485
|
+
strictObject({
|
|
6486
|
+
actorProfileId: trimmedNonEmptyStringSchema$8,
|
|
6487
|
+
installationId: githubAppInstallationIdSchema,
|
|
6488
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
6489
|
+
status: literal("valid"),
|
|
6490
|
+
targetConnectionName: connectorConnectionNameSchema,
|
|
6491
|
+
userId: trimmedNonEmptyStringSchema$8,
|
|
6492
|
+
verificationConnectionName: connectorConnectionNameSchema
|
|
6493
|
+
}),
|
|
6494
|
+
strictObject({ status: literal("expired") }),
|
|
6495
|
+
strictObject({ status: literal("invalid") })
|
|
6496
|
+
]);
|
|
6497
|
+
strictObject({
|
|
6498
|
+
installationId: githubAppInstallationIdSchema,
|
|
6499
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
6500
|
+
status: literal("verifying"),
|
|
6501
|
+
targetConnectionName: connectorConnectionNameSchema,
|
|
6502
|
+
userId: trimmedNonEmptyStringSchema$8,
|
|
6503
|
+
verificationConnectionName: connectorConnectionNameSchema
|
|
6504
|
+
}).nullable();
|
|
6505
|
+
strictObject({
|
|
6506
|
+
authType: enumFactory(["api_key", "custom_credential"]),
|
|
6507
|
+
values: record(string().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u), connectorCredentialValueSchema).refine((values) => Object.keys(values).length > 0, { message: "At least one credential value is required." }).refine((values) => Object.keys(values).length <= 16, { message: "Too many credential values." })
|
|
6508
|
+
});
|
|
6509
|
+
strictObject({ connection: connectorConnectionSchema });
|
|
6510
|
+
strictObject({
|
|
6511
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$8,
|
|
6512
|
+
includeAuthorizationExpiry: literal("true").optional()
|
|
6513
|
+
});
|
|
6514
|
+
strictObject({ userId: trimmedNonEmptyStringSchema$8 });
|
|
6515
|
+
strictObject({ connection: connectorConnectionSchema });
|
|
6516
|
+
strictObject({
|
|
6517
|
+
availableConnectionNames: array(connectorConnectionNameSchema).max(500),
|
|
6518
|
+
service: connectorServiceSchema
|
|
6519
|
+
});
|
|
6520
|
+
strictObject({
|
|
6521
|
+
permission: enumFactory(["read", "write"]).optional(),
|
|
6522
|
+
connection: connectorConnectionSchema.nullable(),
|
|
6523
|
+
selection: enumFactory(["requester", "shared"]).nullable()
|
|
6524
|
+
});
|
|
6525
|
+
strictObject({
|
|
6526
|
+
connectionPreference: connectorConnectionPreferenceSchema.optional(),
|
|
6527
|
+
includeAccessPolicy: literal(true).optional(),
|
|
6528
|
+
requesterUserId: string().nullable(),
|
|
6529
|
+
service: connectorServiceSchema
|
|
6530
|
+
});
|
|
6531
|
+
//#endregion
|
|
6532
|
+
//#region ../../packages/schemas/dist/schemas/http/plugin-access.js
|
|
6533
|
+
const PLUGIN_ERROR_CODES = [
|
|
6534
|
+
"plugin.access_changed",
|
|
6535
|
+
"plugin.access_invalid",
|
|
6536
|
+
"plugin.access_manage_forbidden",
|
|
6537
|
+
"plugin.action_forbidden",
|
|
6538
|
+
"plugin.action_unavailable",
|
|
6539
|
+
"plugin.caller_forbidden",
|
|
6540
|
+
"plugin.catalog_unavailable",
|
|
6541
|
+
"plugin.confirmation_invalid",
|
|
6542
|
+
"plugin.connection_not_found",
|
|
6543
|
+
"plugin.connection_owner_unavailable",
|
|
6544
|
+
"plugin.connection_required",
|
|
6545
|
+
"plugin.connection_unavailable",
|
|
6546
|
+
"plugin.human_required",
|
|
6547
|
+
"plugin.identity_unavailable",
|
|
6548
|
+
"plugin.operation_identity_unavailable",
|
|
6549
|
+
"plugin.operation_unavailable",
|
|
6550
|
+
"plugin.personal_request_required",
|
|
6551
|
+
"plugin.request_invalid",
|
|
6552
|
+
"plugin.request_provenance_unavailable",
|
|
6553
|
+
"plugin.runtime_invalid",
|
|
6554
|
+
"plugin.runtime_unavailable",
|
|
6555
|
+
"plugin.state_unavailable"
|
|
6556
|
+
];
|
|
6557
|
+
enumFactory([
|
|
6558
|
+
"center_agent",
|
|
6559
|
+
"local_agent",
|
|
6560
|
+
"remote_agent"
|
|
6561
|
+
]);
|
|
6562
|
+
const pluginPermissionSchema = enumFactory([
|
|
6563
|
+
"none",
|
|
6564
|
+
"read",
|
|
6565
|
+
"write"
|
|
6566
|
+
]);
|
|
6567
|
+
const pluginAccessPolicySchema = strictObject({
|
|
6568
|
+
center_agent: pluginPermissionSchema,
|
|
6569
|
+
local_agent: pluginPermissionSchema,
|
|
6570
|
+
remote_agent: pluginPermissionSchema
|
|
6571
|
+
});
|
|
6572
|
+
const pluginAccessSchema = strictObject({
|
|
6573
|
+
canManage: boolean(),
|
|
6574
|
+
connectionName: connectorConnectionNameSchema,
|
|
6575
|
+
scope: enumFactory(["member", "shared"]),
|
|
6576
|
+
policy: pluginAccessPolicySchema,
|
|
6577
|
+
revision: number().int().nonnegative()
|
|
6578
|
+
});
|
|
6579
|
+
strictObject({
|
|
6580
|
+
organizationId: string().trim().min(1),
|
|
6581
|
+
connections: array(pluginAccessSchema)
|
|
6582
|
+
});
|
|
6583
|
+
const pluginAccessListRpcInputSchema = strictObject({
|
|
6584
|
+
context: openMeldRequestContextSchema,
|
|
6585
|
+
expectedOrganizationId: string().trim().min(1),
|
|
6586
|
+
service: connectorServiceSchema
|
|
6587
|
+
});
|
|
6588
|
+
const pluginAccessUpdateBodySchema = strictObject({
|
|
6589
|
+
connectionName: connectorConnectionNameSchema,
|
|
6590
|
+
expectedRevision: number().int().nonnegative(),
|
|
6591
|
+
policy: pluginAccessPolicySchema
|
|
6592
|
+
});
|
|
6593
|
+
pluginAccessListRpcInputSchema.extend({ ...pluginAccessUpdateBodySchema.shape });
|
|
6351
6594
|
//#endregion
|
|
6352
6595
|
//#region ../../packages/schemas/dist/schemas/http/gateway-error.js
|
|
6353
|
-
const trimmedNonEmptyStringSchema$
|
|
6596
|
+
const trimmedNonEmptyStringSchema$7 = z$1.string().trim().min(1);
|
|
6354
6597
|
const SPACE_ADDRESSING_TARGET_INVALID_ERROR_CODE = "space.addressing.target_invalid";
|
|
6355
6598
|
const gatewayErrorCodeSchema = z$1.enum([
|
|
6356
6599
|
"bad_request",
|
|
@@ -6383,6 +6626,7 @@ const gatewayErrorCodeSchema = z$1.enum([
|
|
|
6383
6626
|
...MESSAGE_CHANNEL_ERROR_CODES,
|
|
6384
6627
|
...ORGANIZATION_DOCUMENT_ERROR_CODES,
|
|
6385
6628
|
...ORGANIZATION_SKILL_ERROR_CODES,
|
|
6629
|
+
...PLUGIN_ERROR_CODES,
|
|
6386
6630
|
"connector.organization_context_changed",
|
|
6387
6631
|
"organization.logo.conflict",
|
|
6388
6632
|
"organization.logo.content_mismatch",
|
|
@@ -6470,8 +6714,8 @@ const gatewayErrorCodeSchema = z$1.enum([
|
|
|
6470
6714
|
]);
|
|
6471
6715
|
const gatewayErrorSchema = commonErrorSchema.extend({
|
|
6472
6716
|
code: gatewayErrorCodeSchema,
|
|
6473
|
-
requestId: trimmedNonEmptyStringSchema$
|
|
6474
|
-
upstreamCode: trimmedNonEmptyStringSchema$
|
|
6717
|
+
requestId: trimmedNonEmptyStringSchema$7,
|
|
6718
|
+
upstreamCode: trimmedNonEmptyStringSchema$7.optional()
|
|
6475
6719
|
});
|
|
6476
6720
|
const gatewayErrorEnvelopeSchema = z$1.strictObject({
|
|
6477
6721
|
ok: z$1.literal(false),
|
|
@@ -6492,8 +6736,8 @@ const GATEWAY_HOST_MAX_LENGTH = 255;
|
|
|
6492
6736
|
const PROFILE_SPACE_HISTORY_MAX_LIMIT = 500;
|
|
6493
6737
|
const NON_NEGATIVE_INT_RE$2 = /^\d+$/;
|
|
6494
6738
|
const GATEWAY_HOST_PATH_CHARS_RE = /[/?#]/;
|
|
6495
|
-
const trimmedNonEmptyStringSchema$
|
|
6496
|
-
const nullableTrimmedStringSchema$6 = z$1.union([trimmedNonEmptyStringSchema$
|
|
6739
|
+
const trimmedNonEmptyStringSchema$6 = z$1.string().trim().min(1);
|
|
6740
|
+
const nullableTrimmedStringSchema$6 = z$1.union([trimmedNonEmptyStringSchema$6, z$1.null()]);
|
|
6497
6741
|
const nullableNonNegativeIntSchema$1 = z$1.union([z$1.number().int().min(0), z$1.null()]);
|
|
6498
6742
|
const nullableIsoDateTimeSchema$4 = z$1.union([ISO_DATE_TIME_SCHEMA$6, z$1.null()]);
|
|
6499
6743
|
const profileSpaceHistoryGatewayHostSchema = z$1.string().transform((value, ctx) => {
|
|
@@ -6564,9 +6808,9 @@ const profileSpaceHistoryStatusListSchema = z$1.union([profileSpaceHistoryStatus
|
|
|
6564
6808
|
return Array.isArray(value) ? value : [value];
|
|
6565
6809
|
});
|
|
6566
6810
|
const profileSpaceHistoryRecordSchema = z$1.strictObject({
|
|
6567
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6811
|
+
profileId: trimmedNonEmptyStringSchema$6,
|
|
6568
6812
|
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6569
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6813
|
+
spaceId: trimmedNonEmptyStringSchema$6,
|
|
6570
6814
|
spaceName: nullableTrimmedStringSchema$6,
|
|
6571
6815
|
creatorProfileId: nullableTrimmedStringSchema$6,
|
|
6572
6816
|
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]),
|
|
@@ -6617,17 +6861,17 @@ z$1.strictObject({
|
|
|
6617
6861
|
reason: z$1.string().trim().min(1).max(500).optional()
|
|
6618
6862
|
});
|
|
6619
6863
|
const patchProfileSpaceHistoryStatusResponseSchema = z$1.strictObject({
|
|
6620
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6864
|
+
profileId: trimmedNonEmptyStringSchema$6,
|
|
6621
6865
|
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6622
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6866
|
+
spaceId: trimmedNonEmptyStringSchema$6,
|
|
6623
6867
|
status: profileSpaceHistoryStatusSchema,
|
|
6624
6868
|
updatedAt: ISO_DATE_TIME_SCHEMA$6
|
|
6625
6869
|
});
|
|
6626
6870
|
//#endregion
|
|
6627
6871
|
//#region ../../packages/schemas/dist/schemas/http/account-space-index.js
|
|
6628
6872
|
const ISO_DATE_TIME_SCHEMA$5 = z$1.iso.datetime({ offset: true });
|
|
6629
|
-
const trimmedNonEmptyStringSchema$
|
|
6630
|
-
const nullableTrimmedStringSchema$5 = z$1.union([trimmedNonEmptyStringSchema$
|
|
6873
|
+
const trimmedNonEmptyStringSchema$5 = z$1.string().trim().min(1);
|
|
6874
|
+
const nullableTrimmedStringSchema$5 = z$1.union([trimmedNonEmptyStringSchema$5, z$1.null()]);
|
|
6631
6875
|
const nullableNonNegativeIntSchema = z$1.union([z$1.number().int().min(0), z$1.null()]);
|
|
6632
6876
|
const nullableIsoDateTimeSchema$3 = z$1.union([ISO_DATE_TIME_SCHEMA$5, z$1.null()]);
|
|
6633
6877
|
const ACCOUNT_SPACE_INDEX_MAX_LIMIT = 500;
|
|
@@ -6661,24 +6905,24 @@ z$1.strictObject({
|
|
|
6661
6905
|
includePurposes: accountSpaceIndexIncludePurposesSchema,
|
|
6662
6906
|
limit: accountSpaceIndexLimitSchema,
|
|
6663
6907
|
scope: accountSpaceIndexScopeSchema.default("account"),
|
|
6664
|
-
selectedProfileId: trimmedNonEmptyStringSchema$
|
|
6908
|
+
selectedProfileId: trimmedNonEmptyStringSchema$5
|
|
6665
6909
|
});
|
|
6666
6910
|
const accountSpaceIndexJoinedProfileSchema = z$1.strictObject({
|
|
6667
6911
|
lastJoinedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6668
6912
|
pinnedAt: nullableIsoDateTimeSchema$3,
|
|
6669
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6670
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
6913
|
+
profileId: trimmedNonEmptyStringSchema$5,
|
|
6914
|
+
profileName: trimmedNonEmptyStringSchema$5
|
|
6671
6915
|
});
|
|
6672
6916
|
const accountSpaceIndexItemSchema = z$1.strictObject({
|
|
6673
6917
|
messagePreview: z$1.strictObject({
|
|
6674
|
-
signalId: trimmedNonEmptyStringSchema$
|
|
6675
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6918
|
+
signalId: trimmedNonEmptyStringSchema$5,
|
|
6919
|
+
profileId: trimmedNonEmptyStringSchema$5,
|
|
6676
6920
|
timestamp: z$1.number().int().nonnegative(),
|
|
6677
6921
|
text: z$1.string().max(240)
|
|
6678
6922
|
}).nullable().optional(),
|
|
6679
6923
|
memberPreviews: z$1.array(z$1.strictObject({
|
|
6680
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6681
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
6924
|
+
profileId: trimmedNonEmptyStringSchema$5,
|
|
6925
|
+
profileName: trimmedNonEmptyStringSchema$5,
|
|
6682
6926
|
profileKind: z$1.enum(["human", "agent"]),
|
|
6683
6927
|
agentControllerRef: nullableTrimmedStringSchema$5
|
|
6684
6928
|
})).max(3).optional(),
|
|
@@ -6690,29 +6934,29 @@ const accountSpaceIndexItemSchema = z$1.strictObject({
|
|
|
6690
6934
|
joinedProfiles: z$1.array(accountSpaceIndexJoinedProfileSchema),
|
|
6691
6935
|
lastJoinedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6692
6936
|
lastSeenTs: nullableNonNegativeIntSchema,
|
|
6693
|
-
openProfileId: trimmedNonEmptyStringSchema$
|
|
6694
|
-
openProfileName: trimmedNonEmptyStringSchema$
|
|
6695
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6937
|
+
openProfileId: trimmedNonEmptyStringSchema$5,
|
|
6938
|
+
openProfileName: trimmedNonEmptyStringSchema$5,
|
|
6939
|
+
organizationId: trimmedNonEmptyStringSchema$5,
|
|
6696
6940
|
pinnedAt: nullableIsoDateTimeSchema$3,
|
|
6697
|
-
pinnedProfileIds: z$1.array(trimmedNonEmptyStringSchema$
|
|
6941
|
+
pinnedProfileIds: z$1.array(trimmedNonEmptyStringSchema$5),
|
|
6698
6942
|
spaceCreatedAt: nullableIsoDateTimeSchema$3,
|
|
6699
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6700
|
-
spaceName: trimmedNonEmptyStringSchema$
|
|
6943
|
+
spaceId: trimmedNonEmptyStringSchema$5,
|
|
6944
|
+
spaceName: trimmedNonEmptyStringSchema$5,
|
|
6701
6945
|
activeAgentCount: nullableNonNegativeIntSchema.optional(),
|
|
6702
6946
|
activeHumanCount: nullableNonNegativeIntSchema.optional(),
|
|
6703
6947
|
activeMemberCount: nullableNonNegativeIntSchema.optional(),
|
|
6704
6948
|
directMessageConvertedAt: nullableIsoDateTimeSchema$3.optional(),
|
|
6705
|
-
directMessageProfileIds: z$1.union([z$1.tuple([trimmedNonEmptyStringSchema$
|
|
6949
|
+
directMessageProfileIds: z$1.union([z$1.tuple([trimmedNonEmptyStringSchema$5, trimmedNonEmptyStringSchema$5]), z$1.null()]).optional(),
|
|
6706
6950
|
spacePurpose: nullableTrimmedStringSchema$5.optional(),
|
|
6707
6951
|
spaceUpdatedAt: nullableIsoDateTimeSchema$3,
|
|
6708
|
-
status: trimmedNonEmptyStringSchema$
|
|
6952
|
+
status: trimmedNonEmptyStringSchema$5,
|
|
6709
6953
|
updatedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6710
6954
|
visibility: spaceOrganizationVisibilitySchema
|
|
6711
6955
|
});
|
|
6712
6956
|
const accountSpaceIndexDeletedItemSchema = z$1.strictObject({
|
|
6713
6957
|
deletedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6714
6958
|
deletedByProfileName: nullableTrimmedStringSchema$5,
|
|
6715
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6959
|
+
spaceId: trimmedNonEmptyStringSchema$5,
|
|
6716
6960
|
spaceName: nullableTrimmedStringSchema$5
|
|
6717
6961
|
});
|
|
6718
6962
|
const accountSpaceIndexResponseSchema = z$1.strictObject({
|
|
@@ -7031,7 +7275,7 @@ const centerAgentModelRouteSchema = z$1.strictObject({
|
|
|
7031
7275
|
//#endregion
|
|
7032
7276
|
//#region ../../packages/schemas/dist/schemas/runtime/channel-context.js
|
|
7033
7277
|
const CHANNEL_CONTEXT_MESSAGE_TEXT_MAX_CHARS = 4e3;
|
|
7034
|
-
const nonEmptyStringSchema$
|
|
7278
|
+
const nonEmptyStringSchema$3 = z$1.string().trim().min(1);
|
|
7035
7279
|
const channelContextAuthorSchema = z$1.strictObject({
|
|
7036
7280
|
kind: z$1.enum([
|
|
7037
7281
|
"human",
|
|
@@ -7040,14 +7284,14 @@ const channelContextAuthorSchema = z$1.strictObject({
|
|
|
7040
7284
|
"system",
|
|
7041
7285
|
"unknown"
|
|
7042
7286
|
]),
|
|
7043
|
-
id: nonEmptyStringSchema$
|
|
7044
|
-
displayName: nonEmptyStringSchema$
|
|
7287
|
+
id: nonEmptyStringSchema$3.max(256).optional(),
|
|
7288
|
+
displayName: nonEmptyStringSchema$3.max(256).optional()
|
|
7045
7289
|
});
|
|
7046
7290
|
const channelContextMessageSchema = z$1.strictObject({
|
|
7047
|
-
id: nonEmptyStringSchema$
|
|
7291
|
+
id: nonEmptyStringSchema$3.max(256),
|
|
7048
7292
|
author: channelContextAuthorSchema,
|
|
7049
7293
|
sentAtMs: z$1.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
7050
|
-
text: nonEmptyStringSchema$
|
|
7294
|
+
text: nonEmptyStringSchema$3.max(CHANNEL_CONTEXT_MESSAGE_TEXT_MAX_CHARS)
|
|
7051
7295
|
});
|
|
7052
7296
|
const channelContextSyncSchema = z$1.strictObject({
|
|
7053
7297
|
mode: z$1.enum(["snapshot", "delta"]),
|
|
@@ -7061,8 +7305,8 @@ const channelContextSyncSchema = z$1.strictObject({
|
|
|
7061
7305
|
});
|
|
7062
7306
|
const channelContextSchema = z$1.strictObject({
|
|
7063
7307
|
provider: messageChannelProviderSchema,
|
|
7064
|
-
conversationId: nonEmptyStringSchema$
|
|
7065
|
-
currentMessageId: nonEmptyStringSchema$
|
|
7308
|
+
conversationId: nonEmptyStringSchema$3.max(512),
|
|
7309
|
+
currentMessageId: nonEmptyStringSchema$3.max(256),
|
|
7066
7310
|
sync: channelContextSyncSchema,
|
|
7067
7311
|
messages: z$1.array(channelContextMessageSchema).max(20)
|
|
7068
7312
|
}).superRefine((context, refinement) => {
|
|
@@ -7114,7 +7358,7 @@ const channelContextSchema = z$1.strictObject({
|
|
|
7114
7358
|
});
|
|
7115
7359
|
//#endregion
|
|
7116
7360
|
//#region ../../packages/schemas/dist/schemas/runtime/remote-agent-turn-envelope.js
|
|
7117
|
-
const nonEmptyStringSchema$
|
|
7361
|
+
const nonEmptyStringSchema$2 = string().trim().min(1);
|
|
7118
7362
|
const REMOTE_AGENT_TURN_ENVELOPE_MEMORY_ITEM_TEXT_MAX_CHARS = 1200;
|
|
7119
7363
|
const remoteAgentWorkLoopCheckpointSchema = strictObject({
|
|
7120
7364
|
reason: literal("tool_call_budget_exhausted"),
|
|
@@ -7123,7 +7367,7 @@ const remoteAgentWorkLoopCheckpointSchema = strictObject({
|
|
|
7123
7367
|
});
|
|
7124
7368
|
const remoteAgentWorkLoopContinuationSchema = strictObject({
|
|
7125
7369
|
attempt: number().int().positive().max(8),
|
|
7126
|
-
previousSubmissionId: nonEmptyStringSchema$
|
|
7370
|
+
previousSubmissionId: nonEmptyStringSchema$2,
|
|
7127
7371
|
reason: literal("tool_call_budget_exhausted"),
|
|
7128
7372
|
v: literal(1)
|
|
7129
7373
|
});
|
|
@@ -7164,11 +7408,11 @@ const centerAgentContextScopePlanSchema = strictObject({
|
|
|
7164
7408
|
});
|
|
7165
7409
|
const remoteAgentTurnEnvelopePersonSenderShape = {
|
|
7166
7410
|
callerContext: spaceCallerContextSchema.optional(),
|
|
7167
|
-
id: nonEmptyStringSchema$
|
|
7168
|
-
displayName: nonEmptyStringSchema$
|
|
7169
|
-
ownerUserId: nonEmptyStringSchema$
|
|
7170
|
-
profileId: nonEmptyStringSchema$
|
|
7171
|
-
role: nonEmptyStringSchema$
|
|
7411
|
+
id: nonEmptyStringSchema$2,
|
|
7412
|
+
displayName: nonEmptyStringSchema$2,
|
|
7413
|
+
ownerUserId: nonEmptyStringSchema$2.optional(),
|
|
7414
|
+
profileId: nonEmptyStringSchema$2.optional(),
|
|
7415
|
+
role: nonEmptyStringSchema$2.optional(),
|
|
7172
7416
|
messageChannelIdentity: messageChannelParticipantIdentitySchema.optional(),
|
|
7173
7417
|
verified: boolean()
|
|
7174
7418
|
};
|
|
@@ -7183,38 +7427,38 @@ const remoteAgentTurnEnvelopeSenderSchema = discriminatedUnion("kind", [
|
|
|
7183
7427
|
}),
|
|
7184
7428
|
strictObject({
|
|
7185
7429
|
kind: literal("routine"),
|
|
7186
|
-
routineId: nonEmptyStringSchema$
|
|
7187
|
-
createdByUserId: nonEmptyStringSchema$
|
|
7430
|
+
routineId: nonEmptyStringSchema$2,
|
|
7431
|
+
createdByUserId: nonEmptyStringSchema$2,
|
|
7188
7432
|
delegatedBy: strictObject({
|
|
7189
|
-
id: nonEmptyStringSchema$
|
|
7190
|
-
displayName: nonEmptyStringSchema$
|
|
7191
|
-
ownerUserId: nonEmptyStringSchema$
|
|
7192
|
-
profileId: nonEmptyStringSchema$
|
|
7193
|
-
role: nonEmptyStringSchema$
|
|
7433
|
+
id: nonEmptyStringSchema$2,
|
|
7434
|
+
displayName: nonEmptyStringSchema$2,
|
|
7435
|
+
ownerUserId: nonEmptyStringSchema$2,
|
|
7436
|
+
profileId: nonEmptyStringSchema$2.optional(),
|
|
7437
|
+
role: nonEmptyStringSchema$2.optional(),
|
|
7194
7438
|
verified: literal(true)
|
|
7195
7439
|
})
|
|
7196
7440
|
})
|
|
7197
7441
|
]);
|
|
7198
7442
|
const remoteAgentTurnEnvelopeSpaceSchema = strictObject({
|
|
7199
|
-
id: nonEmptyStringSchema$
|
|
7200
|
-
name: nonEmptyStringSchema$
|
|
7443
|
+
id: nonEmptyStringSchema$2,
|
|
7444
|
+
name: nonEmptyStringSchema$2,
|
|
7201
7445
|
kind: enumFactory(["dm", "space"]),
|
|
7202
7446
|
isCenterAgentDm: boolean(),
|
|
7203
|
-
guide: nonEmptyStringSchema$
|
|
7447
|
+
guide: nonEmptyStringSchema$2.max(MAX_SPACE_GUIDE_LENGTH).optional()
|
|
7204
7448
|
});
|
|
7205
7449
|
const remoteAgentTurnEnvelopeOrganizationSchema = strictObject({
|
|
7206
|
-
id: nonEmptyStringSchema$
|
|
7207
|
-
name: nonEmptyStringSchema$
|
|
7450
|
+
id: nonEmptyStringSchema$2,
|
|
7451
|
+
name: nonEmptyStringSchema$2,
|
|
7208
7452
|
personal: boolean(),
|
|
7209
7453
|
memberCount: number().int().nonnegative(),
|
|
7210
7454
|
webUrl: openMeldWebUrlSchema.optional(),
|
|
7211
7455
|
workingLanguage: workingLanguageGuidanceSchema.optional()
|
|
7212
7456
|
});
|
|
7213
7457
|
const remoteAgentTurnEnvelopeCenterAgentSchema = strictObject({
|
|
7214
|
-
profileName: nonEmptyStringSchema$
|
|
7215
|
-
profileHandle: nonEmptyStringSchema$
|
|
7458
|
+
profileName: nonEmptyStringSchema$2,
|
|
7459
|
+
profileHandle: nonEmptyStringSchema$2
|
|
7216
7460
|
});
|
|
7217
|
-
const remoteAgentSlackSearchAuthorizationSchema = strictObject({ encryptedAuthorization: nonEmptyStringSchema$
|
|
7461
|
+
const remoteAgentSlackSearchAuthorizationSchema = strictObject({ encryptedAuthorization: nonEmptyStringSchema$2.max(8192) });
|
|
7218
7462
|
const remoteAgentRoutineDestinationSchema = discriminatedUnion("kind", [
|
|
7219
7463
|
strictObject({
|
|
7220
7464
|
kind: literal("message_channel"),
|
|
@@ -7222,22 +7466,22 @@ const remoteAgentRoutineDestinationSchema = discriminatedUnion("kind", [
|
|
|
7222
7466
|
}),
|
|
7223
7467
|
strictObject({
|
|
7224
7468
|
kind: literal("space"),
|
|
7225
|
-
spaceId: nonEmptyStringSchema$
|
|
7469
|
+
spaceId: nonEmptyStringSchema$2
|
|
7226
7470
|
}),
|
|
7227
7471
|
strictObject({
|
|
7228
|
-
channelId: nonEmptyStringSchema$
|
|
7229
|
-
conversationId: nonEmptyStringSchema$
|
|
7472
|
+
channelId: nonEmptyStringSchema$2,
|
|
7473
|
+
conversationId: nonEmptyStringSchema$2,
|
|
7230
7474
|
kind: literal("slack_thread"),
|
|
7231
|
-
label: nonEmptyStringSchema$
|
|
7232
|
-
teamId: nonEmptyStringSchema$
|
|
7233
|
-
threadTs: nonEmptyStringSchema$
|
|
7475
|
+
label: nonEmptyStringSchema$2.optional(),
|
|
7476
|
+
teamId: nonEmptyStringSchema$2,
|
|
7477
|
+
threadTs: nonEmptyStringSchema$2
|
|
7234
7478
|
})
|
|
7235
7479
|
]);
|
|
7236
7480
|
const remoteAgentRoutineContinuationSchema = strictObject({
|
|
7237
7481
|
delegation: agentDelegationSnapshotSchema,
|
|
7238
|
-
delegationId: nonEmptyStringSchema$
|
|
7482
|
+
delegationId: nonEmptyStringSchema$2,
|
|
7239
7483
|
outcome: agentTaskTerminalOutcomeSchema,
|
|
7240
|
-
subscriptionId: nonEmptyStringSchema$
|
|
7484
|
+
subscriptionId: nonEmptyStringSchema$2,
|
|
7241
7485
|
watchedTask: agentTaskHandleSchema
|
|
7242
7486
|
});
|
|
7243
7487
|
const remoteAgentTurnEnvelopeTriggerSchema = discriminatedUnion("source", [
|
|
@@ -7245,11 +7489,11 @@ const remoteAgentTurnEnvelopeTriggerSchema = discriminatedUnion("source", [
|
|
|
7245
7489
|
strictObject({ source: literal("space_wake") }),
|
|
7246
7490
|
strictObject({
|
|
7247
7491
|
source: literal("slack"),
|
|
7248
|
-
teamId: nonEmptyStringSchema$
|
|
7249
|
-
channelId: nonEmptyStringSchema$
|
|
7250
|
-
threadTs: nonEmptyStringSchema$
|
|
7251
|
-
conversationId: nonEmptyStringSchema$
|
|
7252
|
-
channelName: nonEmptyStringSchema$
|
|
7492
|
+
teamId: nonEmptyStringSchema$2.optional(),
|
|
7493
|
+
channelId: nonEmptyStringSchema$2.optional(),
|
|
7494
|
+
threadTs: nonEmptyStringSchema$2.optional(),
|
|
7495
|
+
conversationId: nonEmptyStringSchema$2.optional(),
|
|
7496
|
+
channelName: nonEmptyStringSchema$2.optional(),
|
|
7253
7497
|
replyPlacement: enumFactory(["conversation", "thread"]).optional(),
|
|
7254
7498
|
searchAuthorization: remoteAgentSlackSearchAuthorizationSchema.optional()
|
|
7255
7499
|
}),
|
|
@@ -7257,8 +7501,8 @@ const remoteAgentTurnEnvelopeTriggerSchema = discriminatedUnion("source", [
|
|
|
7257
7501
|
source: literal("message_channel"),
|
|
7258
7502
|
routineLocator: messageChannelConversationLocatorSchema.optional(),
|
|
7259
7503
|
provider: messageChannelProviderSchema,
|
|
7260
|
-
connectionId: nonEmptyStringSchema$
|
|
7261
|
-
conversationId: nonEmptyStringSchema$
|
|
7504
|
+
connectionId: nonEmptyStringSchema$2,
|
|
7505
|
+
conversationId: nonEmptyStringSchema$2,
|
|
7262
7506
|
filePublicationSupported: literal(true).optional(),
|
|
7263
7507
|
resources: array(messageChannelResourceDescriptorSchema).max(10).optional()
|
|
7264
7508
|
}),
|
|
@@ -7266,33 +7510,33 @@ const remoteAgentTurnEnvelopeTriggerSchema = discriminatedUnion("source", [
|
|
|
7266
7510
|
authorizedActions: centerAgentRoutineAuthorizedActionsSchema.default([]),
|
|
7267
7511
|
externalActionPolicy: centerAgentRoutineExternalActionPolicySchema.optional(),
|
|
7268
7512
|
source: literal("routine"),
|
|
7269
|
-
routineId: nonEmptyStringSchema$
|
|
7270
|
-
runId: nonEmptyStringSchema$
|
|
7513
|
+
routineId: nonEmptyStringSchema$2,
|
|
7514
|
+
runId: nonEmptyStringSchema$2,
|
|
7271
7515
|
scheduledFor: number().int().nonnegative(),
|
|
7272
|
-
routineName: nonEmptyStringSchema$
|
|
7516
|
+
routineName: nonEmptyStringSchema$2.max(120),
|
|
7273
7517
|
destination: remoteAgentRoutineDestinationSchema.optional(),
|
|
7274
7518
|
continuation: remoteAgentRoutineContinuationSchema.optional()
|
|
7275
7519
|
}),
|
|
7276
7520
|
strictObject({
|
|
7277
7521
|
source: literal("member_research"),
|
|
7278
|
-
taskId: nonEmptyStringSchema$
|
|
7279
|
-
subjectUserId: nonEmptyStringSchema$
|
|
7280
|
-
subjectDisplayName: nonEmptyStringSchema$
|
|
7522
|
+
taskId: nonEmptyStringSchema$2,
|
|
7523
|
+
subjectUserId: nonEmptyStringSchema$2,
|
|
7524
|
+
subjectDisplayName: nonEmptyStringSchema$2
|
|
7281
7525
|
}),
|
|
7282
7526
|
strictObject({
|
|
7283
7527
|
delegation: agentDelegationSnapshotSchema.optional(),
|
|
7284
|
-
delegationId: nonEmptyStringSchema$
|
|
7528
|
+
delegationId: nonEmptyStringSchema$2,
|
|
7285
7529
|
outcome: agentTaskTerminalOutcomeSchema,
|
|
7286
7530
|
source: literal("task_continuation"),
|
|
7287
|
-
subscriptionId: nonEmptyStringSchema$
|
|
7531
|
+
subscriptionId: nonEmptyStringSchema$2,
|
|
7288
7532
|
watchedTask: agentTaskHandleSchema
|
|
7289
7533
|
}),
|
|
7290
7534
|
strictObject({
|
|
7291
7535
|
outcome: agentTaskCompletionObservationSchema,
|
|
7292
7536
|
source: literal("task_watch_continuation"),
|
|
7293
|
-
subscriptionId: nonEmptyStringSchema$
|
|
7537
|
+
subscriptionId: nonEmptyStringSchema$2,
|
|
7294
7538
|
watchedTask: agentTaskHandleSchema,
|
|
7295
|
-
watchId: nonEmptyStringSchema$
|
|
7539
|
+
watchId: nonEmptyStringSchema$2
|
|
7296
7540
|
})
|
|
7297
7541
|
]);
|
|
7298
7542
|
enumFactory([
|
|
@@ -7303,7 +7547,7 @@ enumFactory([
|
|
|
7303
7547
|
"message_channel_conversation"
|
|
7304
7548
|
]);
|
|
7305
7549
|
const remoteAgentTurnEnvelopeMemorySubjectSchema = enumFactory(["member", "organization"]);
|
|
7306
|
-
const remoteAgentTurnEnvelopeMemoryItemTextSchema = nonEmptyStringSchema$
|
|
7550
|
+
const remoteAgentTurnEnvelopeMemoryItemTextSchema = nonEmptyStringSchema$2.max(REMOTE_AGENT_TURN_ENVELOPE_MEMORY_ITEM_TEXT_MAX_CHARS);
|
|
7307
7551
|
const remoteAgentTurnEnvelopeMemorySchema = strictObject({
|
|
7308
7552
|
items: array(discriminatedUnion("source", [strictObject({
|
|
7309
7553
|
source: enumFactory([
|
|
@@ -7447,179 +7691,6 @@ function validateTaskContinuationTrigger(trigger, context) {
|
|
|
7447
7691
|
path: ["trigger", "outcome"]
|
|
7448
7692
|
});
|
|
7449
7693
|
}
|
|
7450
|
-
const CONNECTOR_SERVICES = ["github", ...[
|
|
7451
|
-
"feishu",
|
|
7452
|
-
"lark",
|
|
7453
|
-
"gmail",
|
|
7454
|
-
"googlecalendar",
|
|
7455
|
-
"googledrive",
|
|
7456
|
-
"notion",
|
|
7457
|
-
"linear",
|
|
7458
|
-
"figma",
|
|
7459
|
-
"posthog",
|
|
7460
|
-
"cloudflare_browser_rendering",
|
|
7461
|
-
"cloudflare_dns",
|
|
7462
|
-
"cloudflare_r2",
|
|
7463
|
-
"cloudflare_worker"
|
|
7464
|
-
]];
|
|
7465
|
-
const CONNECTOR_CONNECTION_STATUSES = [
|
|
7466
|
-
"pending",
|
|
7467
|
-
"active",
|
|
7468
|
-
"disconnected"
|
|
7469
|
-
];
|
|
7470
|
-
const CONNECTOR_CONNECTION_SCOPES = ["member", "shared"];
|
|
7471
|
-
const CONNECTOR_CONNECTION_PREFERENCES = [
|
|
7472
|
-
"automatic",
|
|
7473
|
-
"requester",
|
|
7474
|
-
"shared"
|
|
7475
|
-
];
|
|
7476
|
-
const CONNECTOR_APP_REQUEST_SOURCES = ["openconnector_catalog", "freeform"];
|
|
7477
|
-
const CONNECTOR_APP_REQUEST_STATUSES = [
|
|
7478
|
-
"requested",
|
|
7479
|
-
"available",
|
|
7480
|
-
"declined"
|
|
7481
|
-
];
|
|
7482
|
-
const trimmedNonEmptyStringSchema$5 = string().trim().min(1);
|
|
7483
|
-
const timestampMsSchema$1 = number().int().nonnegative();
|
|
7484
|
-
const connectorCredentialValueSchema = string().min(1).max(8192);
|
|
7485
|
-
const connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();
|
|
7486
|
-
const connectorAppRequestedCapabilitiesSchema = array(string().trim().min(1).max(80)).max(12);
|
|
7487
|
-
const connectorServiceSchema = enumFactory(CONNECTOR_SERVICES);
|
|
7488
|
-
const connectorConnectionStatusSchema = enumFactory(CONNECTOR_CONNECTION_STATUSES);
|
|
7489
|
-
const connectorConnectionScopeSchema = enumFactory(CONNECTOR_CONNECTION_SCOPES);
|
|
7490
|
-
enumFactory(CONNECTOR_CONNECTION_PREFERENCES);
|
|
7491
|
-
const connectorAppRequestSourceSchema = enumFactory(CONNECTOR_APP_REQUEST_SOURCES);
|
|
7492
|
-
const connectorAppRequestStatusSchema = enumFactory(CONNECTOR_APP_REQUEST_STATUSES);
|
|
7493
|
-
const connectorConnectionNameSchema = string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/u);
|
|
7494
|
-
const githubAppInstallationStateSchema = string().regex(/^githubapp_[0-9a-f]{64}$/u);
|
|
7495
|
-
const githubAppInstallationIdSchema = string().regex(/^[1-9][0-9]*$/u);
|
|
7496
|
-
const connectorConnectionSchema = strictObject({
|
|
7497
|
-
canDisconnect: boolean(),
|
|
7498
|
-
connectionName: connectorConnectionNameSchema,
|
|
7499
|
-
createdAtMs: timestampMsSchema$1,
|
|
7500
|
-
disconnectedAtMs: timestampMsSchema$1.nullable(),
|
|
7501
|
-
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7502
|
-
ownerDisplayName: trimmedNonEmptyStringSchema$5,
|
|
7503
|
-
scope: connectorConnectionScopeSchema.default("member"),
|
|
7504
|
-
service: connectorServiceSchema,
|
|
7505
|
-
status: connectorConnectionStatusSchema,
|
|
7506
|
-
updatedAtMs: timestampMsSchema$1,
|
|
7507
|
-
userId: trimmedNonEmptyStringSchema$5
|
|
7508
|
-
});
|
|
7509
|
-
strictObject({
|
|
7510
|
-
connections: array(connectorConnectionSchema),
|
|
7511
|
-
currentUserId: trimmedNonEmptyStringSchema$5,
|
|
7512
|
-
organizationId: trimmedNonEmptyStringSchema$5
|
|
7513
|
-
});
|
|
7514
|
-
const connectorAppRequestSchema = strictObject({
|
|
7515
|
-
availableAtMs: timestampMsSchema$1.nullable(),
|
|
7516
|
-
createdAtMs: timestampMsSchema$1,
|
|
7517
|
-
id: string().trim().min(1).max(128),
|
|
7518
|
-
notifiedAtMs: timestampMsSchema$1.nullable(),
|
|
7519
|
-
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7520
|
-
providerId: string().trim().min(1).max(160).nullable(),
|
|
7521
|
-
providerName: string().trim().min(1).max(120),
|
|
7522
|
-
requestedCapabilities: connectorAppRequestedCapabilitiesSchema,
|
|
7523
|
-
requesterMemberId: trimmedNonEmptyStringSchema$5.nullable(),
|
|
7524
|
-
requesterUserId: trimmedNonEmptyStringSchema$5.nullable(),
|
|
7525
|
-
source: connectorAppRequestSourceSchema,
|
|
7526
|
-
status: connectorAppRequestStatusSchema,
|
|
7527
|
-
updatedAtMs: timestampMsSchema$1,
|
|
7528
|
-
useCase: connectorAppRequestOptionalTextSchema
|
|
7529
|
-
});
|
|
7530
|
-
strictObject({
|
|
7531
|
-
providerId: string().trim().min(1).max(160).nullable().optional(),
|
|
7532
|
-
providerName: string().trim().min(1).max(120),
|
|
7533
|
-
requestedCapabilities: connectorAppRequestedCapabilitiesSchema.optional(),
|
|
7534
|
-
source: connectorAppRequestSourceSchema,
|
|
7535
|
-
useCase: connectorAppRequestOptionalTextSchema.optional()
|
|
7536
|
-
}).superRefine((input, context) => {
|
|
7537
|
-
if (input.source === "openconnector_catalog" && !input.providerId?.trim()) context.addIssue({
|
|
7538
|
-
code: "custom",
|
|
7539
|
-
message: "A catalog Plugin request requires its OpenConnector provider ID.",
|
|
7540
|
-
path: ["providerId"]
|
|
7541
|
-
});
|
|
7542
|
-
if (input.source === "freeform" && input.providerId != null) context.addIssue({
|
|
7543
|
-
code: "custom",
|
|
7544
|
-
message: "A freeform Plugin request cannot include a provider ID.",
|
|
7545
|
-
path: ["providerId"]
|
|
7546
|
-
});
|
|
7547
|
-
});
|
|
7548
|
-
strictObject({ request: connectorAppRequestSchema });
|
|
7549
|
-
strictObject({
|
|
7550
|
-
currentUserId: trimmedNonEmptyStringSchema$5,
|
|
7551
|
-
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7552
|
-
requests: array(connectorAppRequestSchema).max(500)
|
|
7553
|
-
});
|
|
7554
|
-
strictObject({
|
|
7555
|
-
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7556
|
-
providers: array(strictObject({
|
|
7557
|
-
authTypes: array(string().trim().min(1).max(80)).max(12),
|
|
7558
|
-
categories: array(strictObject({
|
|
7559
|
-
displayName: string().trim().min(1).max(120),
|
|
7560
|
-
id: string().trim().min(1).max(120)
|
|
7561
|
-
})).max(12),
|
|
7562
|
-
displayName: string().trim().min(1).max(120),
|
|
7563
|
-
homepageUrl: url().nullable(),
|
|
7564
|
-
iconUrl: url().nullable(),
|
|
7565
|
-
service: string().trim().min(1).max(160)
|
|
7566
|
-
})).max(5e3)
|
|
7567
|
-
});
|
|
7568
|
-
strictObject({
|
|
7569
|
-
authorizationUrl: url(),
|
|
7570
|
-
connection: connectorConnectionSchema,
|
|
7571
|
-
expiresAtMs: timestampMsSchema$1.optional()
|
|
7572
|
-
});
|
|
7573
|
-
strictObject({
|
|
7574
|
-
connection: connectorConnectionSchema,
|
|
7575
|
-
expiresAtMs: timestampMsSchema$1,
|
|
7576
|
-
state: githubAppInstallationStateSchema
|
|
7577
|
-
});
|
|
7578
|
-
strictObject({
|
|
7579
|
-
installation_id: githubAppInstallationIdSchema,
|
|
7580
|
-
setup_action: string().trim().min(1).max(64).optional(),
|
|
7581
|
-
state: githubAppInstallationStateSchema
|
|
7582
|
-
});
|
|
7583
|
-
discriminatedUnion("status", [
|
|
7584
|
-
strictObject({
|
|
7585
|
-
actorProfileId: trimmedNonEmptyStringSchema$5,
|
|
7586
|
-
installationId: githubAppInstallationIdSchema,
|
|
7587
|
-
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7588
|
-
status: literal("valid"),
|
|
7589
|
-
targetConnectionName: connectorConnectionNameSchema,
|
|
7590
|
-
userId: trimmedNonEmptyStringSchema$5,
|
|
7591
|
-
verificationConnectionName: connectorConnectionNameSchema
|
|
7592
|
-
}),
|
|
7593
|
-
strictObject({ status: literal("expired") }),
|
|
7594
|
-
strictObject({ status: literal("invalid") })
|
|
7595
|
-
]);
|
|
7596
|
-
strictObject({
|
|
7597
|
-
installationId: githubAppInstallationIdSchema,
|
|
7598
|
-
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7599
|
-
status: literal("verifying"),
|
|
7600
|
-
targetConnectionName: connectorConnectionNameSchema,
|
|
7601
|
-
userId: trimmedNonEmptyStringSchema$5,
|
|
7602
|
-
verificationConnectionName: connectorConnectionNameSchema
|
|
7603
|
-
}).nullable();
|
|
7604
|
-
strictObject({
|
|
7605
|
-
authType: enumFactory(["api_key", "custom_credential"]),
|
|
7606
|
-
values: record(string().regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u), connectorCredentialValueSchema).refine((values) => Object.keys(values).length > 0, { message: "At least one credential value is required." }).refine((values) => Object.keys(values).length <= 16, { message: "Too many credential values." })
|
|
7607
|
-
});
|
|
7608
|
-
strictObject({ connection: connectorConnectionSchema });
|
|
7609
|
-
strictObject({
|
|
7610
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$5,
|
|
7611
|
-
includeAuthorizationExpiry: literal("true").optional()
|
|
7612
|
-
});
|
|
7613
|
-
strictObject({ userId: trimmedNonEmptyStringSchema$5 });
|
|
7614
|
-
strictObject({ connection: connectorConnectionSchema });
|
|
7615
|
-
strictObject({
|
|
7616
|
-
availableConnectionNames: array(connectorConnectionNameSchema).max(500),
|
|
7617
|
-
service: connectorServiceSchema
|
|
7618
|
-
});
|
|
7619
|
-
strictObject({
|
|
7620
|
-
connection: connectorConnectionSchema.nullable(),
|
|
7621
|
-
selection: enumFactory(["requester", "shared"]).nullable()
|
|
7622
|
-
});
|
|
7623
7694
|
//#endregion
|
|
7624
7695
|
//#region ../../packages/schemas/dist/schemas/http/owner-computer-diagnostics.js
|
|
7625
7696
|
const boundedDiagnosticCodeSchema = z$1.string().trim().min(1).max(256);
|
|
@@ -8304,7 +8375,7 @@ const optionalThreadSignalLimitSchema = z$1.preprocess((value) => {
|
|
|
8304
8375
|
return decimalIntegerPattern.test(normalized) ? Number.parseInt(normalized, 10) : NaN;
|
|
8305
8376
|
}, z$1.number().int().min(1).max(100).optional());
|
|
8306
8377
|
const listSpaceThreadSignalsQuerySchema = z$1.strictObject({
|
|
8307
|
-
includeWakeContinuation: z$1.preprocess((value) => value === "true" ? true : value, z$1.literal(true).optional()),
|
|
8378
|
+
includeWakeContinuation: z$1.preprocess((value) => value === "true" ? true : value, z$1.union([z$1.literal(true), z$1.literal("conversation")]).optional()),
|
|
8308
8379
|
afterSignalId: optionalThreadSignalAnchorSchema,
|
|
8309
8380
|
limit: optionalThreadSignalLimitSchema
|
|
8310
8381
|
}).superRefine((value, ctx) => {
|
|
@@ -8339,7 +8410,10 @@ const listSpaceThreadsResponseSchema = z$1.strictObject({
|
|
|
8339
8410
|
previews: z$1.array(spaceThreadPreviewSchema).default([])
|
|
8340
8411
|
});
|
|
8341
8412
|
const listSpaceThreadSignalsResponseSchema = z$1.strictObject({
|
|
8342
|
-
wakeContinuation: z$1.strictObject({
|
|
8413
|
+
wakeContinuation: z$1.strictObject({
|
|
8414
|
+
targetProfileId: z$1.string().min(1).nullable(),
|
|
8415
|
+
automaticTargetProfileId: z$1.string().min(1).nullable().optional()
|
|
8416
|
+
}).optional(),
|
|
8343
8417
|
signals: z$1.array(signalEnvelopeSchema),
|
|
8344
8418
|
placements: z$1.array(spaceThreadSignalPlacementSchema)
|
|
8345
8419
|
});
|
|
@@ -8475,10 +8549,10 @@ const createSpaceBodySchema = z$1.strictObject({
|
|
|
8475
8549
|
});
|
|
8476
8550
|
//#endregion
|
|
8477
8551
|
//#region ../../packages/schemas/dist/schemas/runtime/remote-agent-worker.js
|
|
8478
|
-
const nonEmptyStringSchema = string().trim().min(1);
|
|
8479
|
-
const optionalNonEmptyStringSchema = nonEmptyStringSchema.optional();
|
|
8480
|
-
const nullableNonEmptyStringSchema = nonEmptyStringSchema.nullable();
|
|
8481
|
-
const optionalDispatchErrorSummarySchema = nonEmptyStringSchema.max(512).optional();
|
|
8552
|
+
const nonEmptyStringSchema$1 = string().trim().min(1);
|
|
8553
|
+
const optionalNonEmptyStringSchema = nonEmptyStringSchema$1.optional();
|
|
8554
|
+
const nullableNonEmptyStringSchema = nonEmptyStringSchema$1.nullable();
|
|
8555
|
+
const optionalDispatchErrorSummarySchema = nonEmptyStringSchema$1.max(512).optional();
|
|
8482
8556
|
const REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS = 4e3;
|
|
8483
8557
|
const REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS = 1024;
|
|
8484
8558
|
const REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS = 2048;
|
|
@@ -8490,14 +8564,14 @@ function buildPersonalRemoteAgentConversationId(input) {
|
|
|
8490
8564
|
input.organizationId,
|
|
8491
8565
|
input.agentProfileId,
|
|
8492
8566
|
input.spaceId
|
|
8493
|
-
].map((value) => nonEmptyStringSchema.max(256).parse(value)).map((value) => `${value.length}:${value}`)].join("|");
|
|
8567
|
+
].map((value) => nonEmptyStringSchema$1.max(256).parse(value)).map((value) => `${value.length}:${value}`)].join("|");
|
|
8494
8568
|
}
|
|
8495
8569
|
function buildRemoteAgentRuntimeConversationId(input) {
|
|
8496
|
-
const organizationId = nonEmptyStringSchema.max(256).parse(input.organizationId);
|
|
8497
|
-
const logicalConversationId = nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS).parse(input.logicalConversationId);
|
|
8570
|
+
const organizationId = nonEmptyStringSchema$1.max(256).parse(input.organizationId);
|
|
8571
|
+
const logicalConversationId = nonEmptyStringSchema$1.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS).parse(input.logicalConversationId);
|
|
8498
8572
|
const generation = number().int().nonnegative().parse(input.generation);
|
|
8499
8573
|
if (generation === 0) return logicalConversationId;
|
|
8500
|
-
return nonEmptyStringSchema.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS).parse([
|
|
8574
|
+
return nonEmptyStringSchema$1.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS).parse([
|
|
8501
8575
|
"remote-agent-runtime-generation.v1",
|
|
8502
8576
|
`${organizationId.length}:${organizationId}`,
|
|
8503
8577
|
`${logicalConversationId.length}:${logicalConversationId}`,
|
|
@@ -8506,13 +8580,13 @@ function buildRemoteAgentRuntimeConversationId(input) {
|
|
|
8506
8580
|
}
|
|
8507
8581
|
const remoteAgentConversationContinuityEntrySourceSchema = discriminatedUnion("kind", [strictObject({
|
|
8508
8582
|
kind: literal("space_signal"),
|
|
8509
|
-
signalId: nonEmptyStringSchema.max(256),
|
|
8510
|
-
spaceId: nonEmptyStringSchema.max(256),
|
|
8583
|
+
signalId: nonEmptyStringSchema$1.max(256),
|
|
8584
|
+
spaceId: nonEmptyStringSchema$1.max(256),
|
|
8511
8585
|
version: contentHashSchema
|
|
8512
8586
|
}), strictObject({
|
|
8513
|
-
conversationId: nonEmptyStringSchema.max(512),
|
|
8587
|
+
conversationId: nonEmptyStringSchema$1.max(512),
|
|
8514
8588
|
kind: literal("message_channel_message"),
|
|
8515
|
-
messageId: nonEmptyStringSchema.max(256),
|
|
8589
|
+
messageId: nonEmptyStringSchema$1.max(256),
|
|
8516
8590
|
provider: enumFactory([
|
|
8517
8591
|
"feishu",
|
|
8518
8592
|
"lark",
|
|
@@ -8522,8 +8596,8 @@ const remoteAgentConversationContinuityEntrySourceSchema = discriminatedUnion("k
|
|
|
8522
8596
|
const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
8523
8597
|
entries: array(strictObject({
|
|
8524
8598
|
author: strictObject({
|
|
8525
|
-
displayName: nonEmptyStringSchema.max(256).optional(),
|
|
8526
|
-
id: nonEmptyStringSchema.max(256).optional(),
|
|
8599
|
+
displayName: nonEmptyStringSchema$1.max(256).optional(),
|
|
8600
|
+
id: nonEmptyStringSchema$1.max(256).optional(),
|
|
8527
8601
|
kind: enumFactory([
|
|
8528
8602
|
"agent",
|
|
8529
8603
|
"bot",
|
|
@@ -8555,7 +8629,7 @@ const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
|
8555
8629
|
});
|
|
8556
8630
|
})).min(1).max(20),
|
|
8557
8631
|
fromGeneration: number().int().nonnegative(),
|
|
8558
|
-
logicalConversationId: nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),
|
|
8632
|
+
logicalConversationId: nonEmptyStringSchema$1.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),
|
|
8559
8633
|
toGeneration: number().int().positive(),
|
|
8560
8634
|
truncated: boolean(),
|
|
8561
8635
|
v: literal(1)
|
|
@@ -8573,7 +8647,7 @@ const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
|
8573
8647
|
});
|
|
8574
8648
|
const remoteAgentRuntimeConversationSchema = strictObject({
|
|
8575
8649
|
generation: number().int().nonnegative(),
|
|
8576
|
-
id: nonEmptyStringSchema.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS)
|
|
8650
|
+
id: nonEmptyStringSchema$1.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS)
|
|
8577
8651
|
});
|
|
8578
8652
|
const REMOTE_AGENT_STREAM_DELTA_MAX_CHARS = 1024;
|
|
8579
8653
|
enumFactory(Object.values({
|
|
@@ -8621,7 +8695,7 @@ const remoteAgentRuntimeEvidenceReasonCodeSchema = enumFactory(Object.values({
|
|
|
8621
8695
|
TURN_TIMEOUT: "remote_agent.turn.timeout"
|
|
8622
8696
|
}));
|
|
8623
8697
|
const remoteAgentWorkerSubmitMessagesResultSchema = strictObject({
|
|
8624
|
-
submissionId: nonEmptyStringSchema,
|
|
8698
|
+
submissionId: nonEmptyStringSchema$1,
|
|
8625
8699
|
idempotencyKey: optionalNonEmptyStringSchema,
|
|
8626
8700
|
requestId: optionalNonEmptyStringSchema,
|
|
8627
8701
|
status: enumFactory([
|
|
@@ -8647,8 +8721,8 @@ const remoteAgentWorkerAdmissionRejectionCodeSchema = enumFactory([
|
|
|
8647
8721
|
]);
|
|
8648
8722
|
union([remoteAgentRuntimeEvidenceReasonCodeSchema, remoteAgentWorkerAdmissionRejectionCodeSchema]);
|
|
8649
8723
|
union([remoteAgentWorkerSubmitMessagesResultSchema, strictObject({
|
|
8650
|
-
idempotencyKey: nonEmptyStringSchema,
|
|
8651
|
-
message: nonEmptyStringSchema,
|
|
8724
|
+
idempotencyKey: nonEmptyStringSchema$1,
|
|
8725
|
+
message: nonEmptyStringSchema$1,
|
|
8652
8726
|
outcome: literal("rejected"),
|
|
8653
8727
|
reasonCode: remoteAgentWorkerAdmissionRejectionCodeSchema,
|
|
8654
8728
|
v: literal(1)
|
|
@@ -8660,7 +8734,7 @@ const remoteAgentWorkerInputAttachmentsSchema = array(union([spaceMessageAttachm
|
|
|
8660
8734
|
/**
|
|
8661
8735
|
* Core-resolved immutable object key for a canonical Space File revision.
|
|
8662
8736
|
*/
|
|
8663
|
-
objectKey: nonEmptyStringSchema.max(4096),
|
|
8737
|
+
objectKey: nonEmptyStringSchema$1.max(4096),
|
|
8664
8738
|
removeAfterAdmission: neverFactory().optional(),
|
|
8665
8739
|
sizeBytes: number().int().finite().min(1).max(SPACE_FILE_MAX_SIZE_BYTES)
|
|
8666
8740
|
})])).max(10).superRefine((attachments, context) => {
|
|
@@ -8672,7 +8746,7 @@ const remoteAgentWorkerInputAttachmentsSchema = array(union([spaceMessageAttachm
|
|
|
8672
8746
|
});
|
|
8673
8747
|
const remoteAgentWorkerTurnMessageSchema = strictObject({
|
|
8674
8748
|
role: enumFactory(["user"]),
|
|
8675
|
-
content: nonEmptyStringSchema,
|
|
8749
|
+
content: nonEmptyStringSchema$1,
|
|
8676
8750
|
attachments: remoteAgentWorkerInputAttachmentsSchema.optional()
|
|
8677
8751
|
});
|
|
8678
8752
|
const remoteAgentWorkerAuthorContextSchema = strictObject({
|
|
@@ -8685,16 +8759,16 @@ const remoteAgentWorkerAuthorContextSchema = strictObject({
|
|
|
8685
8759
|
displayName: nullableNonEmptyStringSchema
|
|
8686
8760
|
});
|
|
8687
8761
|
const remoteAgentWorkerSubmitTurnRequestShape = {
|
|
8688
|
-
organizationId: nonEmptyStringSchema,
|
|
8689
|
-
spaceId: nonEmptyStringSchema,
|
|
8762
|
+
organizationId: nonEmptyStringSchema$1,
|
|
8763
|
+
spaceId: nonEmptyStringSchema$1,
|
|
8690
8764
|
conversationId: optionalNonEmptyStringSchema,
|
|
8691
8765
|
agentProfileId: agentProfileIdSchema,
|
|
8692
|
-
agentProfileOwnerUserId: nonEmptyStringSchema.nullable(),
|
|
8693
|
-
bindingId: nonEmptyStringSchema,
|
|
8694
|
-
triggerMessageId: nonEmptyStringSchema,
|
|
8695
|
-
dispatchId: nonEmptyStringSchema,
|
|
8766
|
+
agentProfileOwnerUserId: nonEmptyStringSchema$1.nullable(),
|
|
8767
|
+
bindingId: nonEmptyStringSchema$1,
|
|
8768
|
+
triggerMessageId: nonEmptyStringSchema$1,
|
|
8769
|
+
dispatchId: nonEmptyStringSchema$1,
|
|
8696
8770
|
sourceClientMessageId: nullableNonEmptyStringSchema.optional(),
|
|
8697
|
-
idempotencyKey: nonEmptyStringSchema,
|
|
8771
|
+
idempotencyKey: nonEmptyStringSchema$1,
|
|
8698
8772
|
toolExecutionDeadlineAtMs: number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
|
|
8699
8773
|
messages: array(remoteAgentWorkerTurnMessageSchema).min(1),
|
|
8700
8774
|
author: remoteAgentWorkerAuthorContextSchema,
|
|
@@ -8713,7 +8787,7 @@ const remoteAgentWorkerSubmitTurnRequestV2Schema = strictObject({
|
|
|
8713
8787
|
});
|
|
8714
8788
|
const remoteAgentWorkerConversationIdentitySchema = strictObject({
|
|
8715
8789
|
kind: literal("personal_agent"),
|
|
8716
|
-
agentProfileId: nonEmptyStringSchema
|
|
8790
|
+
agentProfileId: nonEmptyStringSchema$1
|
|
8717
8791
|
});
|
|
8718
8792
|
discriminatedUnion("v", [
|
|
8719
8793
|
remoteAgentWorkerSubmitTurnRequestV1Schema,
|
|
@@ -8722,16 +8796,16 @@ discriminatedUnion("v", [
|
|
|
8722
8796
|
v: literal(4),
|
|
8723
8797
|
...remoteAgentWorkerSubmitTurnRequestShape,
|
|
8724
8798
|
conversationIdentity: remoteAgentWorkerConversationIdentitySchema.optional(),
|
|
8725
|
-
conversationId: nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),
|
|
8799
|
+
conversationId: nonEmptyStringSchema$1.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),
|
|
8726
8800
|
continuityContext: remoteAgentConversationContinuityContextSchema.optional(),
|
|
8727
8801
|
sourceMessageEnvelope: messageEnvelopeSchema.optional(),
|
|
8728
8802
|
modelRoute: centerAgentModelRouteSchema,
|
|
8729
8803
|
runtimeConversation: remoteAgentRuntimeConversationSchema,
|
|
8730
8804
|
spaceDispatchContext: strictObject({
|
|
8731
|
-
dispatchChainId: nonEmptyStringSchema,
|
|
8805
|
+
dispatchChainId: nonEmptyStringSchema$1,
|
|
8732
8806
|
autoRelayDepth: number().int().nonnegative(),
|
|
8733
|
-
visitedProfileIds: array(nonEmptyStringSchema).max(256),
|
|
8734
|
-
visitedProfileIdsHash: nonEmptyStringSchema
|
|
8807
|
+
visitedProfileIds: array(nonEmptyStringSchema$1).max(256),
|
|
8808
|
+
visitedProfileIdsHash: nonEmptyStringSchema$1
|
|
8735
8809
|
}).optional()
|
|
8736
8810
|
}).superRefine((request, context) => {
|
|
8737
8811
|
if (request.conversationIdentity?.kind === "personal_agent") {
|
|
@@ -8770,10 +8844,10 @@ discriminatedUnion("v", [
|
|
|
8770
8844
|
]);
|
|
8771
8845
|
const remoteAgentWorkerExecutionIdentitySchema = {
|
|
8772
8846
|
v: literal(1),
|
|
8773
|
-
organizationId: nonEmptyStringSchema,
|
|
8774
|
-
spaceId: nonEmptyStringSchema,
|
|
8775
|
-
submissionId: nonEmptyStringSchema,
|
|
8776
|
-
idempotencyKey: nonEmptyStringSchema
|
|
8847
|
+
organizationId: nonEmptyStringSchema$1,
|
|
8848
|
+
spaceId: nonEmptyStringSchema$1,
|
|
8849
|
+
submissionId: nonEmptyStringSchema$1,
|
|
8850
|
+
idempotencyKey: nonEmptyStringSchema$1
|
|
8777
8851
|
};
|
|
8778
8852
|
const remoteAgentWorkerExecutionStatusSchema = enumFactory([
|
|
8779
8853
|
"pending",
|
|
@@ -8807,7 +8881,7 @@ const remoteAgentWorkerExecutionStateSchema = strictObject({
|
|
|
8807
8881
|
lastProgressAtMs: number().int().nonnegative(),
|
|
8808
8882
|
lastProgressKind: remoteAgentWorkerExecutionProgressKindSchema,
|
|
8809
8883
|
completedAtMs: number().int().nonnegative().nullable(),
|
|
8810
|
-
cancellationReason: nonEmptyStringSchema.max(512).nullable()
|
|
8884
|
+
cancellationReason: nonEmptyStringSchema$1.max(512).nullable()
|
|
8811
8885
|
});
|
|
8812
8886
|
union([
|
|
8813
8887
|
strictObject({
|
|
@@ -8823,7 +8897,7 @@ union([
|
|
|
8823
8897
|
strictObject({
|
|
8824
8898
|
...remoteAgentWorkerExecutionIdentitySchema,
|
|
8825
8899
|
conversationId: optionalNonEmptyStringSchema,
|
|
8826
|
-
reason: nonEmptyStringSchema.max(512).optional()
|
|
8900
|
+
reason: nonEmptyStringSchema$1.max(512).optional()
|
|
8827
8901
|
});
|
|
8828
8902
|
union([
|
|
8829
8903
|
strictObject({
|
|
@@ -8846,12 +8920,12 @@ union([
|
|
|
8846
8920
|
]);
|
|
8847
8921
|
strictObject({
|
|
8848
8922
|
organizationId: optionalNonEmptyStringSchema,
|
|
8849
|
-
runtimeConversationId: nonEmptyStringSchema.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS),
|
|
8850
|
-
spaceId: nonEmptyStringSchema
|
|
8923
|
+
runtimeConversationId: nonEmptyStringSchema$1.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS),
|
|
8924
|
+
spaceId: nonEmptyStringSchema$1
|
|
8851
8925
|
});
|
|
8852
8926
|
strictObject({
|
|
8853
|
-
runtimeConversationId: nonEmptyStringSchema.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS),
|
|
8854
|
-
spaceId: nonEmptyStringSchema
|
|
8927
|
+
runtimeConversationId: nonEmptyStringSchema$1.max(REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS),
|
|
8928
|
+
spaceId: nonEmptyStringSchema$1
|
|
8855
8929
|
});
|
|
8856
8930
|
const nullableNonNegativeIntegerSchema = number().int().nonnegative().nullable();
|
|
8857
8931
|
const remoteAgentRuntimeSubmissionDiagnosticSchema = strictObject({
|
|
@@ -8875,37 +8949,37 @@ const remoteAgentRuntimeSubmissionDiagnosticSchema = strictObject({
|
|
|
8875
8949
|
"terminalizing",
|
|
8876
8950
|
"settled"
|
|
8877
8951
|
]),
|
|
8878
|
-
submissionId: nonEmptyStringSchema,
|
|
8952
|
+
submissionId: nonEmptyStringSchema$1,
|
|
8879
8953
|
timeoutAtMs: number().int().nonnegative()
|
|
8880
8954
|
});
|
|
8881
8955
|
const remoteAgentRuntimeAttemptMarkerDiagnosticSchema = strictObject({
|
|
8882
|
-
attemptId: nonEmptyStringSchema,
|
|
8956
|
+
attemptId: nonEmptyStringSchema$1,
|
|
8883
8957
|
createdAtMs: number().int().nonnegative(),
|
|
8884
|
-
submissionId: nonEmptyStringSchema
|
|
8958
|
+
submissionId: nonEmptyStringSchema$1
|
|
8885
8959
|
});
|
|
8886
8960
|
const remoteAgentRuntimeActiveRunDiagnosticSchema = strictObject({
|
|
8887
8961
|
createdAtMs: number().int().nonnegative(),
|
|
8888
|
-
id: nonEmptyStringSchema,
|
|
8889
|
-
name: nonEmptyStringSchema
|
|
8962
|
+
id: nonEmptyStringSchema$1,
|
|
8963
|
+
name: nonEmptyStringSchema$1
|
|
8890
8964
|
});
|
|
8891
8965
|
const remoteAgentRuntimeFiberDiagnosticSchema = strictObject({
|
|
8892
8966
|
completedAtMs: nullableNonNegativeIntegerSchema,
|
|
8893
8967
|
createdAtMs: number().int().nonnegative(),
|
|
8894
|
-
fiberId: nonEmptyStringSchema,
|
|
8968
|
+
fiberId: nonEmptyStringSchema$1,
|
|
8895
8969
|
idempotencyKey: nullableNonEmptyStringSchema,
|
|
8896
|
-
name: nonEmptyStringSchema,
|
|
8970
|
+
name: nonEmptyStringSchema$1,
|
|
8897
8971
|
startedAtMs: nullableNonNegativeIntegerSchema,
|
|
8898
|
-
status: nonEmptyStringSchema
|
|
8972
|
+
status: nonEmptyStringSchema$1
|
|
8899
8973
|
});
|
|
8900
8974
|
const remoteAgentRuntimeScheduleDiagnosticSchema = strictObject({
|
|
8901
8975
|
callback: nullableNonEmptyStringSchema,
|
|
8902
8976
|
createdAtSeconds: number().int().nonnegative(),
|
|
8903
8977
|
delayInSeconds: nullableNonNegativeIntegerSchema,
|
|
8904
8978
|
executionStartedAtMs: nullableNonNegativeIntegerSchema,
|
|
8905
|
-
id: nonEmptyStringSchema,
|
|
8979
|
+
id: nonEmptyStringSchema$1,
|
|
8906
8980
|
running: boolean(),
|
|
8907
8981
|
timeMs: nullableNonNegativeIntegerSchema,
|
|
8908
|
-
type: nonEmptyStringSchema
|
|
8982
|
+
type: nonEmptyStringSchema$1
|
|
8909
8983
|
});
|
|
8910
8984
|
const remoteAgentRuntimeCallbackContextDiagnosticSchema = strictObject({
|
|
8911
8985
|
callbackAttempts: number().int().nonnegative(),
|
|
@@ -8919,7 +8993,7 @@ const remoteAgentRuntimeCallbackContextDiagnosticSchema = strictObject({
|
|
|
8919
8993
|
"rejected",
|
|
8920
8994
|
"retryable"
|
|
8921
8995
|
]),
|
|
8922
|
-
dispatchId: nonEmptyStringSchema,
|
|
8996
|
+
dispatchId: nonEmptyStringSchema$1,
|
|
8923
8997
|
hasCompletedText: boolean(),
|
|
8924
8998
|
lastCoreResponseReasonCode: nullableNonEmptyStringSchema,
|
|
8925
8999
|
lastCoreResponseStatus: enumFactory([
|
|
@@ -8929,16 +9003,16 @@ const remoteAgentRuntimeCallbackContextDiagnosticSchema = strictObject({
|
|
|
8929
9003
|
"retryable"
|
|
8930
9004
|
]).nullable(),
|
|
8931
9005
|
lastFailureCode: nullableNonEmptyStringSchema,
|
|
8932
|
-
submissionId: nonEmptyStringSchema,
|
|
9006
|
+
submissionId: nonEmptyStringSchema$1,
|
|
8933
9007
|
updatedAtMs: number().int().nonnegative()
|
|
8934
9008
|
});
|
|
8935
9009
|
const remoteAgentRecentToolCallDiagnosticSchema = strictObject({
|
|
8936
9010
|
calledAtMs: number().int().nonnegative(),
|
|
8937
9011
|
source: enumFactory(["code_mode", "direct"]),
|
|
8938
|
-
toolName: nonEmptyStringSchema.max(160)
|
|
9012
|
+
toolName: nonEmptyStringSchema$1.max(160)
|
|
8939
9013
|
});
|
|
8940
9014
|
const remoteAgentCapabilityDiscoveryDiagnosticSchema = strictObject({
|
|
8941
|
-
capabilityNames: array(nonEmptyStringSchema.max(160)).max(12),
|
|
9015
|
+
capabilityNames: array(nonEmptyStringSchema$1.max(160)).max(12),
|
|
8942
9016
|
observedAtMs: number().int().nonnegative(),
|
|
8943
9017
|
operation: enumFactory(["describe", "search"]),
|
|
8944
9018
|
resultCount: number().int().nonnegative()
|
|
@@ -8971,7 +9045,7 @@ const remoteAgentTurnRuntimeEvidenceSchema = strictObject({
|
|
|
8971
9045
|
recentCapabilityDiscovery: array(remoteAgentCapabilityDiscoveryDiagnosticSchema).max(16),
|
|
8972
9046
|
recentProviderRequests: array(remoteAgentProviderRequestDiagnosticSchema).max(16),
|
|
8973
9047
|
recentToolCalls: array(remoteAgentRecentToolCallDiagnosticSchema).max(32),
|
|
8974
|
-
submissionId: nonEmptyStringSchema,
|
|
9048
|
+
submissionId: nonEmptyStringSchema$1,
|
|
8975
9049
|
toolCallCount: number().int().nonnegative(),
|
|
8976
9050
|
toolCallLimit: number().int().positive(),
|
|
8977
9051
|
updatedAtMs: number().int().nonnegative()
|
|
@@ -8984,7 +9058,7 @@ const remoteAgentWorkerRuntimeDiagnosticsResponseV1Schema = strictObject({
|
|
|
8984
9058
|
durableObjectAlarmAtMs: nullableNonNegativeIntegerSchema,
|
|
8985
9059
|
fibers: array(remoteAgentRuntimeFiberDiagnosticSchema).max(50),
|
|
8986
9060
|
schedules: array(remoteAgentRuntimeScheduleDiagnosticSchema).max(50),
|
|
8987
|
-
spaceId: nonEmptyStringSchema,
|
|
9061
|
+
spaceId: nonEmptyStringSchema$1,
|
|
8988
9062
|
submissions: array(remoteAgentRuntimeSubmissionDiagnosticSchema).max(50),
|
|
8989
9063
|
turnObservability: array(remoteAgentTurnRuntimeEvidenceSchema).max(50).optional(),
|
|
8990
9064
|
v: literal(1)
|
|
@@ -9012,29 +9086,29 @@ const remoteAgentWorkerRuntimeDiagnosticsResponseSchema = discriminatedUnion("v"
|
|
|
9012
9086
|
v: literal(2)
|
|
9013
9087
|
})]);
|
|
9014
9088
|
const remoteAgentCoreCallbackIdentitySchema = {
|
|
9015
|
-
submissionId: nonEmptyStringSchema,
|
|
9016
|
-
idempotencyKey: nonEmptyStringSchema,
|
|
9017
|
-
organizationId: nonEmptyStringSchema,
|
|
9018
|
-
spaceId: nonEmptyStringSchema,
|
|
9089
|
+
submissionId: nonEmptyStringSchema$1,
|
|
9090
|
+
idempotencyKey: nonEmptyStringSchema$1,
|
|
9091
|
+
organizationId: nonEmptyStringSchema$1,
|
|
9092
|
+
spaceId: nonEmptyStringSchema$1,
|
|
9019
9093
|
agentProfileId: agentProfileIdSchema,
|
|
9020
|
-
bindingId: nonEmptyStringSchema,
|
|
9021
|
-
triggerMessageId: nonEmptyStringSchema,
|
|
9022
|
-
dispatchId: nonEmptyStringSchema,
|
|
9094
|
+
bindingId: nonEmptyStringSchema$1,
|
|
9095
|
+
triggerMessageId: nonEmptyStringSchema$1,
|
|
9096
|
+
dispatchId: nonEmptyStringSchema$1,
|
|
9023
9097
|
callbackAttempt: number().int().positive().optional()
|
|
9024
9098
|
};
|
|
9025
9099
|
const remoteAgentStreamDeltaCallbackIdentitySchema = {
|
|
9026
|
-
submissionId: nonEmptyStringSchema,
|
|
9027
|
-
idempotencyKey: nonEmptyStringSchema,
|
|
9028
|
-
organizationId: nonEmptyStringSchema,
|
|
9029
|
-
spaceId: nonEmptyStringSchema,
|
|
9100
|
+
submissionId: nonEmptyStringSchema$1,
|
|
9101
|
+
idempotencyKey: nonEmptyStringSchema$1,
|
|
9102
|
+
organizationId: nonEmptyStringSchema$1,
|
|
9103
|
+
spaceId: nonEmptyStringSchema$1,
|
|
9030
9104
|
agentProfileId: agentProfileIdSchema,
|
|
9031
|
-
bindingId: nonEmptyStringSchema,
|
|
9032
|
-
triggerMessageId: nonEmptyStringSchema,
|
|
9033
|
-
dispatchId: nonEmptyStringSchema
|
|
9105
|
+
bindingId: nonEmptyStringSchema$1,
|
|
9106
|
+
triggerMessageId: nonEmptyStringSchema$1,
|
|
9107
|
+
dispatchId: nonEmptyStringSchema$1
|
|
9034
9108
|
};
|
|
9035
9109
|
const legacyRemoteAgentStreamDeltaCallbackBodySchema = strictObject({
|
|
9036
9110
|
v: literal(1),
|
|
9037
|
-
streamId: nonEmptyStringSchema,
|
|
9111
|
+
streamId: nonEmptyStringSchema$1,
|
|
9038
9112
|
sequence: number().int().positive(),
|
|
9039
9113
|
...remoteAgentStreamDeltaCallbackIdentitySchema,
|
|
9040
9114
|
source: enumFactory(["flue.text_delta", "simulated.final_text"]),
|
|
@@ -9044,7 +9118,7 @@ const legacyRemoteAgentStreamDeltaCallbackBodySchema = strictObject({
|
|
|
9044
9118
|
});
|
|
9045
9119
|
const typedRemoteAgentStreamDeltaCallbackIdentitySchema = {
|
|
9046
9120
|
v: literal(2),
|
|
9047
|
-
streamId: nonEmptyStringSchema,
|
|
9121
|
+
streamId: nonEmptyStringSchema$1,
|
|
9048
9122
|
sequence: number().int().positive(),
|
|
9049
9123
|
...remoteAgentStreamDeltaCallbackIdentitySchema,
|
|
9050
9124
|
delta: string().min(1).max(REMOTE_AGENT_STREAM_DELTA_MAX_CHARS),
|
|
@@ -9066,7 +9140,7 @@ union([
|
|
|
9066
9140
|
]);
|
|
9067
9141
|
strictObject({
|
|
9068
9142
|
v: literal(1),
|
|
9069
|
-
streamId: nonEmptyStringSchema,
|
|
9143
|
+
streamId: nonEmptyStringSchema$1,
|
|
9070
9144
|
sequence: number().int().positive(),
|
|
9071
9145
|
...remoteAgentStreamDeltaCallbackIdentitySchema,
|
|
9072
9146
|
source: literal("flue.tool"),
|
|
@@ -9088,12 +9162,12 @@ union([
|
|
|
9088
9162
|
strictObject({
|
|
9089
9163
|
status: literal("rejected"),
|
|
9090
9164
|
lastSequence: remoteAgentStreamLastSequenceSchema,
|
|
9091
|
-
reasonCode: nonEmptyStringSchema
|
|
9165
|
+
reasonCode: nonEmptyStringSchema$1
|
|
9092
9166
|
}),
|
|
9093
9167
|
strictObject({
|
|
9094
9168
|
status: literal("retryable"),
|
|
9095
9169
|
lastSequence: remoteAgentStreamLastSequenceSchema,
|
|
9096
|
-
reasonCode: nonEmptyStringSchema,
|
|
9170
|
+
reasonCode: nonEmptyStringSchema$1,
|
|
9097
9171
|
retryAfterMs: remoteAgentRetryAfterMsSchema.optional()
|
|
9098
9172
|
})
|
|
9099
9173
|
]);
|
|
@@ -9102,15 +9176,15 @@ const remoteAgentCoreCallbackBodySchema = union([strictObject({
|
|
|
9102
9176
|
conversationCompaction: conversationCompactionMarkerSchema.optional(),
|
|
9103
9177
|
navigationTarget: openMeldNavigationTargetSchema.optional(),
|
|
9104
9178
|
status: literal("completed").optional(),
|
|
9105
|
-
text: nonEmptyStringSchema.max(MAX_TEXT_LENGTH$1),
|
|
9179
|
+
text: nonEmptyStringSchema$1.max(MAX_TEXT_LENGTH$1),
|
|
9106
9180
|
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
9107
9181
|
files: spaceMessageFileReferencesSchema.optional()
|
|
9108
9182
|
}), strictObject({
|
|
9109
9183
|
...remoteAgentCoreCallbackIdentitySchema,
|
|
9110
9184
|
status: literal("failed"),
|
|
9111
|
-
failureCode: nonEmptyStringSchema,
|
|
9185
|
+
failureCode: nonEmptyStringSchema$1,
|
|
9112
9186
|
failureDetail: optionalDispatchErrorSummarySchema,
|
|
9113
|
-
failureMessage: nonEmptyStringSchema
|
|
9187
|
+
failureMessage: nonEmptyStringSchema$1
|
|
9114
9188
|
})]);
|
|
9115
9189
|
union([remoteAgentCoreCallbackBodySchema, strictObject({
|
|
9116
9190
|
...remoteAgentCoreCallbackIdentitySchema,
|
|
@@ -9121,7 +9195,7 @@ discriminatedUnion("kind", [strictObject({
|
|
|
9121
9195
|
callback: remoteAgentCoreCallbackBodySchema,
|
|
9122
9196
|
kind: literal("callback")
|
|
9123
9197
|
}), strictObject({
|
|
9124
|
-
failureCode: nonEmptyStringSchema,
|
|
9198
|
+
failureCode: nonEmptyStringSchema$1,
|
|
9125
9199
|
kind: literal("terminal_failure")
|
|
9126
9200
|
})]);
|
|
9127
9201
|
strictObject({
|
|
@@ -9129,16 +9203,16 @@ strictObject({
|
|
|
9129
9203
|
conversationCompaction: conversationCompactionMarkerSchema.optional(),
|
|
9130
9204
|
navigationTarget: openMeldNavigationTargetSchema.optional(),
|
|
9131
9205
|
status: literal("completed"),
|
|
9132
|
-
text: nonEmptyStringSchema.max(MAX_TEXT_LENGTH$1),
|
|
9206
|
+
text: nonEmptyStringSchema$1.max(MAX_TEXT_LENGTH$1),
|
|
9133
9207
|
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
9134
9208
|
files: spaceMessageFileReferencesSchema.optional()
|
|
9135
9209
|
});
|
|
9136
9210
|
strictObject({
|
|
9137
9211
|
...remoteAgentCoreCallbackIdentitySchema,
|
|
9138
9212
|
status: literal("failed"),
|
|
9139
|
-
failureCode: nonEmptyStringSchema,
|
|
9213
|
+
failureCode: nonEmptyStringSchema$1,
|
|
9140
9214
|
failureDetail: optionalDispatchErrorSummarySchema,
|
|
9141
|
-
failureMessage: nonEmptyStringSchema
|
|
9215
|
+
failureMessage: nonEmptyStringSchema$1
|
|
9142
9216
|
});
|
|
9143
9217
|
strictObject({
|
|
9144
9218
|
status: enumFactory([
|
|
@@ -9147,8 +9221,8 @@ strictObject({
|
|
|
9147
9221
|
"rejected",
|
|
9148
9222
|
"retryable"
|
|
9149
9223
|
]),
|
|
9150
|
-
reasonCode: nonEmptyStringSchema.optional(),
|
|
9151
|
-
publishedSignalId: nonEmptyStringSchema.nullable().optional(),
|
|
9224
|
+
reasonCode: nonEmptyStringSchema$1.optional(),
|
|
9225
|
+
publishedSignalId: nonEmptyStringSchema$1.nullable().optional(),
|
|
9152
9226
|
retryAfterMs: remoteAgentRetryAfterMsSchema.optional()
|
|
9153
9227
|
});
|
|
9154
9228
|
//#endregion
|
|
@@ -10877,6 +10951,7 @@ const centerAgentConnectorActionAuditOutcomeSchema = enumFactory([
|
|
|
10877
10951
|
"outcome_unknown"
|
|
10878
10952
|
]);
|
|
10879
10953
|
strictObject({
|
|
10954
|
+
connectionName: connectorConnectionNameSchema.optional(),
|
|
10880
10955
|
actionId: trimmedNonEmptyStringSchema$1.max(160),
|
|
10881
10956
|
operationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10882
10957
|
outcome: centerAgentConnectorActionAuditOutcomeSchema,
|
|
@@ -10935,6 +11010,12 @@ strictObject({ operation: strictObject({
|
|
|
10935
11010
|
}).nullable() });
|
|
10936
11011
|
strictObject({
|
|
10937
11012
|
actionId: trimmedNonEmptyStringSchema$1.max(160),
|
|
11013
|
+
effect: enumFactory([
|
|
11014
|
+
"read",
|
|
11015
|
+
"write",
|
|
11016
|
+
"destructive",
|
|
11017
|
+
"unspecified"
|
|
11018
|
+
]).optional(),
|
|
10938
11019
|
connectionName: connectorConnectionNameSchema,
|
|
10939
11020
|
operationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10940
11021
|
outcome: centerAgentConnectorActionAuditOutcomeSchema,
|
|
@@ -12071,6 +12152,7 @@ const inboxViewSchema = enumFactory([
|
|
|
12071
12152
|
"all",
|
|
12072
12153
|
"unread",
|
|
12073
12154
|
"needs_action",
|
|
12155
|
+
"needs_review",
|
|
12074
12156
|
"updates",
|
|
12075
12157
|
"urgent_updates",
|
|
12076
12158
|
"recent_updates"
|
|
@@ -12643,6 +12725,141 @@ const organizationUsageOverviewResponseSchema = z$1.strictObject({
|
|
|
12643
12725
|
});
|
|
12644
12726
|
z$1.strictObject({ context: openMeldRequestContextSchema });
|
|
12645
12727
|
//#endregion
|
|
12728
|
+
//#region ../../packages/schemas/dist/schemas/runtime/openconnector-runtime.js
|
|
12729
|
+
const nonEmptyStringSchema = z$1.string().trim().min(1);
|
|
12730
|
+
const jsonSchemaObjectSchema = z$1.record(z$1.string(), z$1.unknown());
|
|
12731
|
+
const openConnectorRuntimeActionEffectSchema = z$1.enum([
|
|
12732
|
+
"destructive",
|
|
12733
|
+
"read",
|
|
12734
|
+
"write"
|
|
12735
|
+
]);
|
|
12736
|
+
const openConnectorRuntimeActionExecutionSchema = z$1.strictObject({
|
|
12737
|
+
catalogOnly: z$1.boolean(),
|
|
12738
|
+
locallyExecutable: z$1.boolean(),
|
|
12739
|
+
needsCredential: z$1.boolean(),
|
|
12740
|
+
noAuthRunnable: z$1.boolean(),
|
|
12741
|
+
requiredAuthTypes: z$1.array(z$1.enum([
|
|
12742
|
+
"no_auth",
|
|
12743
|
+
"api_key",
|
|
12744
|
+
"custom_credential",
|
|
12745
|
+
"oauth2"
|
|
12746
|
+
]))
|
|
12747
|
+
}).superRefine((execution, context) => {
|
|
12748
|
+
if (execution.catalogOnly === execution.locallyExecutable) context.addIssue({
|
|
12749
|
+
code: "custom",
|
|
12750
|
+
message: "OpenConnector action execution must be either locally executable or catalog-only.",
|
|
12751
|
+
path: ["locallyExecutable"]
|
|
12752
|
+
});
|
|
12753
|
+
if (execution.needsCredential === execution.noAuthRunnable) context.addIssue({
|
|
12754
|
+
code: "custom",
|
|
12755
|
+
message: "OpenConnector action credential requirements are inconsistent.",
|
|
12756
|
+
path: ["needsCredential"]
|
|
12757
|
+
});
|
|
12758
|
+
});
|
|
12759
|
+
const openConnectorRuntimeActionSchema = z$1.strictObject({
|
|
12760
|
+
asyncLifecycle: z$1.strictObject({
|
|
12761
|
+
cancelActionId: nonEmptyStringSchema.optional(),
|
|
12762
|
+
startActionId: nonEmptyStringSchema,
|
|
12763
|
+
statusActionId: nonEmptyStringSchema
|
|
12764
|
+
}).nullable(),
|
|
12765
|
+
description: nonEmptyStringSchema,
|
|
12766
|
+
effect: openConnectorRuntimeActionEffectSchema.optional(),
|
|
12767
|
+
execution: openConnectorRuntimeActionExecutionSchema,
|
|
12768
|
+
followUpActions: z$1.array(z$1.strictObject({ actionId: nonEmptyStringSchema })),
|
|
12769
|
+
id: nonEmptyStringSchema,
|
|
12770
|
+
inputSchema: jsonSchemaObjectSchema,
|
|
12771
|
+
name: nonEmptyStringSchema,
|
|
12772
|
+
outputSchema: jsonSchemaObjectSchema,
|
|
12773
|
+
providerPermissions: z$1.array(nonEmptyStringSchema),
|
|
12774
|
+
requiredScopes: z$1.array(nonEmptyStringSchema),
|
|
12775
|
+
service: nonEmptyStringSchema
|
|
12776
|
+
});
|
|
12777
|
+
const openConnectorRuntimeActionListSchema = z$1.array(openConnectorRuntimeActionSchema);
|
|
12778
|
+
const openConnectorRuntimeActionSearchResultSchema = z$1.strictObject({
|
|
12779
|
+
authenticated: z$1.boolean(),
|
|
12780
|
+
description: nonEmptyStringSchema,
|
|
12781
|
+
effect: openConnectorRuntimeActionEffectSchema.optional(),
|
|
12782
|
+
id: nonEmptyStringSchema,
|
|
12783
|
+
inputSchema: jsonSchemaObjectSchema,
|
|
12784
|
+
name: nonEmptyStringSchema,
|
|
12785
|
+
outputSchema: jsonSchemaObjectSchema,
|
|
12786
|
+
service: nonEmptyStringSchema
|
|
12787
|
+
});
|
|
12788
|
+
z$1.array(openConnectorRuntimeActionSearchResultSchema);
|
|
12789
|
+
const openConnectorRuntimeActionOperationMetaSchema = z$1.strictObject({
|
|
12790
|
+
actionId: nonEmptyStringSchema,
|
|
12791
|
+
auditPersisted: z$1.boolean(),
|
|
12792
|
+
executionId: nonEmptyStringSchema
|
|
12793
|
+
});
|
|
12794
|
+
z$1.strictObject({
|
|
12795
|
+
data: z$1.unknown(),
|
|
12796
|
+
message: z$1.literal("OK"),
|
|
12797
|
+
meta: openConnectorRuntimeActionOperationMetaSchema,
|
|
12798
|
+
outputSchema: jsonSchemaObjectSchema,
|
|
12799
|
+
success: z$1.literal(true)
|
|
12800
|
+
});
|
|
12801
|
+
//#endregion
|
|
12802
|
+
//#region ../../packages/schemas/dist/schemas/http/plugin-actions.js
|
|
12803
|
+
const selectedAccountSchema = centerAgentConnectorActionExecutionConnectionSchema.extend({ permission: enumFactory(["read", "write"]) });
|
|
12804
|
+
const selection = {
|
|
12805
|
+
service: connectorServiceSchema,
|
|
12806
|
+
account: enumFactory(["personal", "shared"])
|
|
12807
|
+
};
|
|
12808
|
+
const pluginActionRequestSchema = strictObject({
|
|
12809
|
+
dispatchId: string().trim().min(1).max(256).optional(),
|
|
12810
|
+
action: discriminatedUnion("operation", [
|
|
12811
|
+
strictObject({ operation: literal("list") }),
|
|
12812
|
+
strictObject({
|
|
12813
|
+
operation: literal("actions"),
|
|
12814
|
+
...selection
|
|
12815
|
+
}),
|
|
12816
|
+
strictObject({
|
|
12817
|
+
operation: literal("execute"),
|
|
12818
|
+
...selection,
|
|
12819
|
+
actionId: string().trim().min(1).max(160),
|
|
12820
|
+
input: record(string(), unknown()),
|
|
12821
|
+
operationId: string().trim().min(1).max(256),
|
|
12822
|
+
confirmationToken: string().uuid().optional()
|
|
12823
|
+
})
|
|
12824
|
+
])
|
|
12825
|
+
});
|
|
12826
|
+
strictObject({
|
|
12827
|
+
context: openMeldRequestContextSchema,
|
|
12828
|
+
expectedOrganizationId: string().trim().min(1),
|
|
12829
|
+
request: pluginActionRequestSchema
|
|
12830
|
+
});
|
|
12831
|
+
const pluginActionResponseSchema = discriminatedUnion("kind", [
|
|
12832
|
+
strictObject({
|
|
12833
|
+
kind: literal("connections"),
|
|
12834
|
+
connections: array(selectedAccountSchema)
|
|
12835
|
+
}),
|
|
12836
|
+
strictObject({
|
|
12837
|
+
kind: literal("actions"),
|
|
12838
|
+
connection: selectedAccountSchema,
|
|
12839
|
+
actions: openConnectorRuntimeActionListSchema
|
|
12840
|
+
}),
|
|
12841
|
+
strictObject({
|
|
12842
|
+
kind: literal("confirmation_required"),
|
|
12843
|
+
connection: selectedAccountSchema,
|
|
12844
|
+
actionId: string(),
|
|
12845
|
+
operationId: string(),
|
|
12846
|
+
confirmationToken: string().uuid(),
|
|
12847
|
+
expiresAtMs: number(),
|
|
12848
|
+
message: string()
|
|
12849
|
+
}),
|
|
12850
|
+
strictObject({
|
|
12851
|
+
kind: literal("execution"),
|
|
12852
|
+
connection: centerAgentConnectorActionExecutionConnectionSchema,
|
|
12853
|
+
actionId: string(),
|
|
12854
|
+
operationId: string(),
|
|
12855
|
+
status: centerAgentConnectorActionOperationStatusSchema,
|
|
12856
|
+
replayed: boolean(),
|
|
12857
|
+
data: unknown().optional(),
|
|
12858
|
+
error: string().optional(),
|
|
12859
|
+
providerExecutionId: string().nullable()
|
|
12860
|
+
})
|
|
12861
|
+
]);
|
|
12862
|
+
//#endregion
|
|
12646
12863
|
//#region ../../packages/schemas/dist/schemas/http/space-agent-interaction.js
|
|
12647
12864
|
const respondToSpaceAgentInteractionBodySchema = z$1.strictObject({
|
|
12648
12865
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
@@ -14015,7 +14232,8 @@ const createAgentProfileBindingApi = (client) => {
|
|
|
14015
14232
|
});
|
|
14016
14233
|
},
|
|
14017
14234
|
getExecutionReadinessBatch: async (input) => {
|
|
14018
|
-
const
|
|
14235
|
+
const { signal, ...body } = input;
|
|
14236
|
+
const request = requireValidExecutionReadinessBatchInput(body);
|
|
14019
14237
|
return await client.requestJson({
|
|
14020
14238
|
body: JSON.stringify({
|
|
14021
14239
|
agentProfileIds: request.agentProfileIds,
|
|
@@ -14025,6 +14243,7 @@ const createAgentProfileBindingApi = (client) => {
|
|
|
14025
14243
|
invalidMessage: "Invalid Agent Execution Readiness batch response.",
|
|
14026
14244
|
method: "POST",
|
|
14027
14245
|
operation: "agent_execution_readiness.batch_read",
|
|
14246
|
+
signal,
|
|
14028
14247
|
requestContext: request.requestContext,
|
|
14029
14248
|
schema: getAgentExecutionReadinessBatchResponseSchema,
|
|
14030
14249
|
url: buildAgentExecutionReadinessBatchRoute()
|
|
@@ -16732,6 +16951,22 @@ function requestOptions$2(input) {
|
|
|
16732
16951
|
...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }
|
|
16733
16952
|
};
|
|
16734
16953
|
}
|
|
16954
|
+
function createPluginsApi(client) {
|
|
16955
|
+
return { action: async (input) => {
|
|
16956
|
+
const request = pluginActionRequestSchema.parse(input.request);
|
|
16957
|
+
return await client.requestJson({
|
|
16958
|
+
method: "POST",
|
|
16959
|
+
operation: "plugins.action",
|
|
16960
|
+
timeoutMs: input.request.action.operation === "execute" ? 12e4 : 3e4,
|
|
16961
|
+
requestContext: input.requestContext,
|
|
16962
|
+
url: `/v1/organizations/current/plugins/actions?expectedOrganizationId=${encodeURIComponent(input.organizationId)}`,
|
|
16963
|
+
body: JSON.stringify(request),
|
|
16964
|
+
headers: { "content-type": "application/json" },
|
|
16965
|
+
schema: pluginActionResponseSchema,
|
|
16966
|
+
invalidMessage: "Invalid plugin action response."
|
|
16967
|
+
});
|
|
16968
|
+
} };
|
|
16969
|
+
}
|
|
16735
16970
|
function buildPrepareReadinessRoute(deviceId) {
|
|
16736
16971
|
return `/v1/devices/${encodeURIComponent(deviceId)}/prepare-readiness`;
|
|
16737
16972
|
}
|
|
@@ -17445,7 +17680,7 @@ function buildSpaceThreadSignalsPath(spaceId, threadId, query) {
|
|
|
17445
17680
|
searchParams.set("afterSignalId", query.afterSignalId);
|
|
17446
17681
|
searchParams.set("limit", String(query.limit));
|
|
17447
17682
|
}
|
|
17448
|
-
if (query.includeWakeContinuation) searchParams.set("includeWakeContinuation",
|
|
17683
|
+
if (query.includeWakeContinuation) searchParams.set("includeWakeContinuation", String(query.includeWakeContinuation));
|
|
17449
17684
|
return `${path}?${searchParams.toString()}`;
|
|
17450
17685
|
}
|
|
17451
17686
|
function buildSpaceRoutePath(spaceId, segment) {
|
|
@@ -18750,11 +18985,12 @@ function createFetchTransport(input) {
|
|
|
18750
18985
|
return async function fetchTransport(request) {
|
|
18751
18986
|
const timeoutMs = normalizeOptionalTimeoutMs(request.timeoutMs) ?? defaultTimeoutMs;
|
|
18752
18987
|
const timeoutSignal = timeoutMs === void 0 ? null : AbortSignal.timeout(timeoutMs);
|
|
18753
|
-
const
|
|
18988
|
+
const signals = [request.init?.signal, timeoutSignal].filter((signal) => signal != null);
|
|
18989
|
+
const signal = signals.length > 1 ? AbortSignal.any(signals) : signals[0];
|
|
18754
18990
|
try {
|
|
18755
18991
|
return await input.fetch(request.url, {
|
|
18756
18992
|
...request.init,
|
|
18757
|
-
signal
|
|
18993
|
+
signal
|
|
18758
18994
|
});
|
|
18759
18995
|
} catch (error) {
|
|
18760
18996
|
if (timeoutSignal?.aborted && timeoutMs !== void 0) throw createTimeoutError({
|
|
@@ -18768,8 +19004,6 @@ function createFetchTransport(input) {
|
|
|
18768
19004
|
cause: error
|
|
18769
19005
|
});
|
|
18770
19006
|
throw error;
|
|
18771
|
-
} finally {
|
|
18772
|
-
composed.cleanup();
|
|
18773
19007
|
}
|
|
18774
19008
|
};
|
|
18775
19009
|
}
|
|
@@ -18808,42 +19042,7 @@ function shouldWrapNetworkRequestError(error) {
|
|
|
18808
19042
|
const message = toErrorMessage(error).toLowerCase();
|
|
18809
19043
|
return message.includes("fetch failed") || message.includes("failed to fetch") || message.includes("network request failed");
|
|
18810
19044
|
}
|
|
18811
|
-
function composeAbortSignals(parent, timeout) {
|
|
18812
|
-
if (!(parent || timeout)) return {
|
|
18813
|
-
signal: void 0,
|
|
18814
|
-
cleanup: () => void 0
|
|
18815
|
-
};
|
|
18816
|
-
if (!parent) return {
|
|
18817
|
-
signal: timeout ?? void 0,
|
|
18818
|
-
cleanup: () => void 0
|
|
18819
|
-
};
|
|
18820
|
-
if (!timeout) return {
|
|
18821
|
-
signal: parent,
|
|
18822
|
-
cleanup: () => void 0
|
|
18823
|
-
};
|
|
18824
|
-
if (parent.aborted || timeout.aborted) {
|
|
18825
|
-
const controller = new AbortController();
|
|
18826
|
-
controller.abort();
|
|
18827
|
-
return {
|
|
18828
|
-
signal: controller.signal,
|
|
18829
|
-
cleanup: () => void 0
|
|
18830
|
-
};
|
|
18831
|
-
}
|
|
18832
|
-
const controller = new AbortController();
|
|
18833
|
-
const abort = () => {
|
|
18834
|
-
controller.abort();
|
|
18835
|
-
};
|
|
18836
|
-
parent.addEventListener("abort", abort, { once: true });
|
|
18837
|
-
timeout.addEventListener("abort", abort, { once: true });
|
|
18838
|
-
return {
|
|
18839
|
-
signal: controller.signal,
|
|
18840
|
-
cleanup: () => {
|
|
18841
|
-
parent.removeEventListener("abort", abort);
|
|
18842
|
-
timeout.removeEventListener("abort", abort);
|
|
18843
|
-
}
|
|
18844
|
-
};
|
|
18845
|
-
}
|
|
18846
19045
|
//#endregion
|
|
18847
|
-
export { buildLocalFolderPickerPath as $,
|
|
19046
|
+
export { buildLocalFolderPickerPath as $, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as $n, spaceMemberDirectorySchema as $r, createProfilesApi as $t, buildCurrentOrganizationDirectoryPath as A, resolveCustomMentionAliasOverride as An, deleteCenterAgentRoutineResponseSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Bn, agentActivitySessionStatusSchema as Br, createFetchTransport as Bt, buildCenterAgentSessionPath as C, uploadSpaceFile as Cn, authProfileManagedRoleSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, parseEnvelope as Dn, submitFeedbackIssueRequestSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, MAX_TEXT_LENGTH as En, organizationComputersResponseSchema as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, buildOpenMeldRequestContextHeaders as Fn, updateCenterAgentRoutineResponseSchema as Fr, createComputerFileAccessApi as Ft, buildFeedbackIssueSubmissionPath as G, spaceDispatchTraceDispatchStatusSchema as Gn, localProjectControlDiscoverProjectsResponseSchema as Gr, createOpenMeldApiClient as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, projectSpaceDispatchTraceFinalVisibleOutcome as Hn, agentActivitySnapshotResponseSchema as Hr, createLocalFolderPickerApi as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, toErrorMessage$2 as In, AGENT_ACTIVITY_EVENT_MAX_BYTES as Ir, createConfigApi as It, buildInboxItemReadPath as J, projectObservabilityWakeCorrelation as Jn, removeSpaceMembersResponseSchema as Jr, createOrganizationSkillsApi as Jt, buildInboxItemDismissPath as K, spaceDispatchTraceResponseSchema as Kn, leaveSpaceResponseSchema as Kr, createOrganizationApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, getSpaceUpdatesResponseSchema as Ln, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Lr, createCurrentDeviceApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as Mn, listCenterAgentRoutinesResponseSchema as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, OPENMELD_HEADER_REQUEST_ID as Nn, pauseCenterAgentRoutineResponseSchema as Nr, createAgentProfileWorkRecoveryApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, parseIncoming as On, submitFeedbackIssueResponseSchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Pn, resumeCenterAgentRoutineResponseSchema as Pr, createCenterAgentApi as Pt, buildInboxSummaryPath as Q, summarizeComputerFileAccessPolicy as Qn, spaceMemberDirectoryEntrySchema as Qr, createProfileSpaceHistoryApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, spaceEntryTargetSchema as Rn, agentActivityEventSchema as Rr, createDirectMessageApi as Rt, buildCenterAgentProfilePath as S, toCompatibleSpaceAddressingRequestWireValue as Si, uploadSpaceAttachment as Sn, authProfileKindSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, DAEMON_STREAM_KEEPALIVE_PONG as Tn, profileErrorResponseSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, resolveSpaceDispatchTraceRootCause as Un, localProjectControlConnectionSchema as Ur, createLocalProjectControlApi as Ut, buildCurrentOrganizationSpacesPath as V, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as Vn, agentActivitySnapshotQuerySchema as Vr, createInboxApi as Vt, buildDirectMessageSpacePath as W, spaceDispatchTraceAttemptStatusSchema as Wn, localProjectControlDaemonFrameSchema as Wr, createLocalRuntimeExpectedRoutesApi as Wt, buildInboxPath as X, ownerComputerDiagnosticsSchema as Xn, spaceMemberAgentWakeAvailabilitySchema as Xr, createPluginsApi as Xt, buildInboxMarkAllReadPath as Y, submitAgentControllerTaskLifecycleEventItemSchema as Yn, resolvedSpaceMemberProfileSchema as Yr, createOrganizationUsageApi as Yt, buildInboxPreferencesPath as Z, projectOwnerComputerLocalRuntimes as Zn, spaceMemberDirectoryAllowedRelationsSchema as Zr, createPrepareReadinessApi as Zt, buildCenterAgentDirectMessageSpacePath as _, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as _i, toStructuredApiClientFailure as _n, organizationSkillSummarySchema as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, localAgentSessionProviderSchema as ai, downloadSpaceFileContent as an, computerFileAccessDaemonFrameSchema as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, agentControllerPermissionModeSchema as bi, updateSpaceFileEntry as bn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, createProjectResponseSchema as ci, listSpaceFileRevisions as cn, modelCatalogSchema as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, updateProjectResponseSchema as di, publicSpaceUrls as dn, spaceCreatorSchema as dr, buildOrganizationSkillsPath as dt, spaceMemberKindSchema as ei, createProjectsApi as en, agentProfileCreationConfigurationSchema as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, centerAgentToolSpeakerSchema as fi, readOrUpdateSpaceFilePins as fn, spaceMetaSchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, START_ISO_DATE_TIME_SCHEMA as gi, setSpaceAccessMode as gn, organizationSkillReleaseSummarySchema as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, START_BOUNDED_VERSION_SCHEMA as hi, resolveProfileSpaceHistoryGatewayHost as hn, organizationSkillBundleSchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, agentActivitySessionInventoryResponseSchema as ii, createSpaceFolder as in, OPENMELD_RUNTIME_CAPABILITIES_HEADER as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, OPENMELD_HEADER_PROFILE_ID as jn, listCenterAgentRoutineRunsResponseSchema as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, parseServerErrorFrame as kn, createCenterAgentRoutineResponseSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, listProjectsResponseSchema as li, listSpaceFiles as ln, organizationSpaceDirectoryWithMemberCountsResponseSchema as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, START_BOUNDED_ID_SCHEMA as mi, resolveAccountSpaceIndexGatewayHost as mn, listOrganizationSkillsResponseSchema as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivityInventorySessionStatusSchema as ni, createRuntimeReportingApi as nn, gatewayErrorEnvelopeSchema as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, observedLocalAgentSessionSchema as oi, getModelCatalog as on, computerFileAccessPolicyInputSchema as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, openCodePermissionConfigSchema as pi, readOrUpdateSpaceMessagePins as pn, getOrganizationSkillResponseSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, observabilityWakeTraceSelectorSchema as qn, postSpaceMembersResponseSchema as qr, createOrganizationDocumentsApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, agentActivitySessionInventoryQuerySchema as ri, createSpaceApi as rn, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, archiveProjectResponseSchema as si, getSpaceFile as sn, computerFileAccessPolicySchema as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, agentActivityInventorySessionOriginSchema as ti, createRoutinesApi as tn, createAgentProfileCreationRequestBodySchema as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, projectSchema as ui, normalizeApiBaseUrl as un, resolveInitialSpaceAccessMode as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, startReplyReadinessSummarySchema as vi, trashSpaceFileEntry as vn, stringifyOrganizationSkillBundleCanonicalJson as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, DAEMON_STREAM_KEEPALIVE_PING as wn, profileCapabilitiesResponseSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, agentControllerCollaborationModeSchema as xi, updateSpaceMeta as xn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, localAgentCatalogSchema as yi, updateSpaceFileContent as yn, organizationDirectoryResponseSchema as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, pluginActionRequestSchema as zn, agentActivityProviderSchema as zr, createFeedbackApi as zt };
|
|
18848
19047
|
|
|
18849
|
-
//# sourceMappingURL=dist-
|
|
19048
|
+
//# sourceMappingURL=dist-DMOtlPEO.js.map
|