openmeld 0.3.160 → 0.3.162
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-DIlgLZLR.js → add-me-membership-C9Y9OWxw.js} +2 -2
- package/dist/{add-me-membership-DIlgLZLR.js.map → add-me-membership-C9Y9OWxw.js.map} +1 -1
- package/dist/{api-client-foundation-i0M0ZIrQ.js → api-client-foundation-B653f1oL.js} +3 -3
- package/dist/{api-client-foundation-i0M0ZIrQ.js.map → api-client-foundation-B653f1oL.js.map} +1 -1
- package/dist/{api-client-foundation-UKDtNrdW.js → api-client-foundation-MuJJn5lD.js} +1 -1
- package/dist/auth-session-DWjyI9bE.js +4 -0
- package/dist/{auth-session-DnS-Axyz.js → auth-session-xj7oUO1L.js} +2 -2
- package/dist/{auth-session-DnS-Axyz.js.map → auth-session-xj7oUO1L.js.map} +1 -1
- package/dist/{command-D9xEikCY.js → command-Dc2TC2ol.js} +8 -8
- package/dist/{command-D9xEikCY.js.map → command-Dc2TC2ol.js.map} +1 -1
- package/dist/dist-CCEaxgwd.js +4 -0
- package/dist/{dist-CqYwEcEG.js → dist-DdoxYSxj.js} +557 -436
- package/dist/dist-DdoxYSxj.js.map +1 -0
- package/dist/{elapsed-time-Dd6Ecbev.js → elapsed-time-DlE75gVk.js} +3 -3
- package/dist/{elapsed-time-Dd6Ecbev.js.map → elapsed-time-DlE75gVk.js.map} +1 -1
- package/dist/{installer-CLPF4DHx.js → installer-BLq3-kJg.js} +3 -3
- package/dist/{installer-CLPF4DHx.js.map → installer-BLq3-kJg.js.map} +1 -1
- package/dist/{openmeld-DR8Bn-1b.js → openmeld-CUuOK6de.js} +15 -13
- package/dist/openmeld-CUuOK6de.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-Bj1ZAvBN.js → openmeld-maintenance-worker-D6rPVE2G.js} +3 -3
- package/dist/{openmeld-maintenance-worker-Bj1ZAvBN.js.map → openmeld-maintenance-worker-D6rPVE2G.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-C7JyBdik.js → openmeld-tools-update-coordinator-BlAIre9U.js} +10 -10
- package/dist/{openmeld-tools-update-coordinator-C7JyBdik.js.map → openmeld-tools-update-coordinator-BlAIre9U.js.map} +1 -1
- package/dist/openmeld.js +3 -3
- package/dist/{runtime-transport-BsvsUfwb.js → runtime-transport-w7zmmzEz.js} +7 -2
- package/dist/runtime-transport-w7zmmzEz.js.map +1 -0
- package/dist/{upgrade-VYwQsaiC.js → upgrade-7ByxkBKE.js} +4 -4
- package/dist/{upgrade-VYwQsaiC.js.map → upgrade-7ByxkBKE.js.map} +1 -1
- package/dist/upgrade-DN0NpXH1.js +4 -0
- package/package.json +2 -2
- package/dist/auth-session-DMovqZYd.js +0 -4
- package/dist/dist-CqYwEcEG.js.map +0 -1
- package/dist/dist-sCZhNX4o.js +0 -4
- package/dist/openmeld-DR8Bn-1b.js.map +0 -1
- package/dist/runtime-transport-BsvsUfwb.js.map +0 -1
- package/dist/upgrade-CDPK-ayC.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { S as resolveBuiltinAgentControllerConversationCapability, m as agentControllerRefSchema, s as runtimeTransportModeSchema, x as agentControllerConversationCapabilitySchema, y as normalizeKnownBuiltinAgentControllerId } from "./controller-contract-CvjP4mYj.js";
|
|
4
|
-
import { $ as localFolderPickerRequestSchema, $n as openMeldToolsMaintenanceMutationResultSchema, $r as openMeldRequestContextSchema, $t as stageSpaceComposerUploadResponseSchema, Ar as postSpaceWakeStopResponseSchema, At as spaceAttachmentFileNameSchema, B as openMeldDaemonOriginalErrorSchema, Br as normalizeSpacePasswordText, Bt as createSpaceFolderResponseSchema, Cn as targetWakeLifecycleIdentitySchema, Cr as string, Dr as unknown, Dt as signalTextSchema, Er as union, Et as signalTextDataSchema, Fn as spaceAgentStreamPresenceSchema, Fr as runtimeCoordinatorExecutionRecordSchema, Ft as conversationCompactionMarkerSchema, Gr as spaceMentionLabelSourceSchema, Gt as listSpaceFilesResponseSchema, Hn as agentInteractionResponseSchema, Ht as getSpaceFileResponseSchema, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAgentStreamSnapshotSchema, Jr as updateOrganizationInformationProtectionPolicyBodySchema, Jt as restoreSpaceFileEntryResponseSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kr as organizationInformationProtectionPolicyResponseSchema, Kt as publishSpaceComposerUploadResponseSchema, Ln as spaceAgentStreamTerminalFrameSchema, Lt as centerAgentInteractionSourceSchema, Mn as agentStreamToolPartSchema, Mt as spaceAttachmentSizeBytesSchema, Nn as spaceAgentStreamDeltaFrameSchema, Nr as runtimeCoordinatorExecutionCreationDiagnosticSchema, Nt as spaceMessageAttachmentSchema, On as messageEnvelopeSchema, Or as url, Ot as spaceAttachmentDescriptorSchema, Pn as spaceAgentStreamPartFrameSchema, Pr as runtimeCoordinatorExecutionEventSchema, Pt as spaceMessageAttachmentsSchema, Qt as spaceMessageFileReferencesSchema, Rr as spaceTraceExecutionIdentityProjectionSchema, Rt as SPACE_FILE_ERROR_CODES, Si as openMeldWebUrlSchema, Sn as workingLanguageTagSchema, Sr as strictObject, St as centerAgentTaskReferenceSchema, Tr as undefinedFactory, Tt as signalSystemNoticeDataSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vr as spacePasswordSchema, Vt as discardSpaceComposerUploadResponseSchema, Wr as spaceMentionLabelSchema, Wt as listSpaceFileRevisionsResponseSchema, Xn as localComponentUpdateProjectionSchema, Xr as executeExecutionRecoveryResponseSchema, Xt as spaceFileMimeTypeSchema, Yn as localComponentUpdatePolicySchema, Yr as executeExecutionRecoveryBodySchema, Yt as restoreSpaceFileRevisionResponseSchema, Zn as localComponentUpdateStatusSchema, Zr as inspectExecutionRecoveryResponseSchema, _n as resultArchivePolicySchema, _r as nullFactory, ai as profileSchema, at as agentTaskHandleSchema, bi as computerSetupModeSchema, bn as spaceDispatchPolicySchema, br as preprocess, ci as uuidProfileIdSchema, cr as boolean, ct as buildAgentTaskKey, di as optionalBooleanQuerySchema, dn as spaceThreadContextSchema, dr as email, en as trashSpaceFileEntryResponseSchema, er as openMeldToolsMaintenanceProjectionSchema, et as localFolderPickerResultSchema, fi as trimmedStringFromUnknown, fn as spaceThreadEventSchema, fr as enumFactory, gr as neverFactory, hr as literal, ii as profileKindSchema, ir as openMeldToolsUpdateRequestResultSchema, it as agentTaskCompletionObservationSchema, jn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, jr as clientMessageIdSchema$1, jt as spaceAttachmentMimeTypeSchema, kr as postSpaceWakeStopBodySchema, kt as spaceAttachmentDimensionSchema, li as finiteIntegerNumber, lr as coerce, lt as controllerAgentTaskHandleSchema, mi as agentProfileWorkRecoveryActionKindSchema, mn as spaceThreadSignalPlacementSchema, mr as iso, n as daemonExecutionCompatibilitySchema, nn as uploadSpaceFileResponseSchema, nt as agentDelegationSnapshotSchema, oi as profileWorkingDirectorySchema, on as openMeldDaemonSyncRouteCatalogPayloadSchema, or as NEVER, ot as agentTaskTerminalOutcomeSchema, pi as MAX_TEXT_LENGTH$1, pn as spaceThreadSchema, pr as int, qr as organizationProtectedInformationSchema, ri as openMeldRuntimeProfileIdSchema, rn as localAgentInstallationOptionSchema, rr as openMeldToolsUpdateOperationSchema, rt as agentTaskCompletionConditionSchema, si as profileWorkspaceModeSchema, sr as array, st as areAgentTaskTerminalOutcomesEqual, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as agentProfileIdSchema, tn as updateSpaceFileEntryResponseSchema, tt as localFolderPathSchema, ui as nonEmptyTrimmedStringFromUnknown, un as dispatchExecutionSchema, ur as discriminatedUnion, ut as spaceWakeAgentTaskHandleSchema, vn as spaceAllowedActionsSchema, vr as number, wr as tuple, wt as signalStatusDataSchema, xi as openMeldNavigationTargetSchema, xn as workingLanguageGuidanceSchema, xr as record, yn as spacePublicationModeSchema, yr as object, zn as agentInteractionPendingSummarySchema, zr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, zt as SPACE_FILE_MAX_SIZE_BYTES } from "./runtime-transport-
|
|
4
|
+
import { $ as localFolderPickerRequestSchema, $n as openMeldToolsMaintenanceMutationResultSchema, $r as openMeldRequestContextSchema, $t as stageSpaceComposerUploadResponseSchema, Ar as postSpaceWakeStopResponseSchema, At as spaceAttachmentFileNameSchema, B as openMeldDaemonOriginalErrorSchema, Br as normalizeSpacePasswordText, Bt as createSpaceFolderResponseSchema, Cn as targetWakeLifecycleIdentitySchema, Cr as string, Dr as unknown, Dt as signalTextSchema, Er as union, Et as signalTextDataSchema, Fn as spaceAgentStreamPresenceSchema, Fr as runtimeCoordinatorExecutionRecordSchema, Ft as conversationCompactionMarkerSchema, Gr as spaceMentionLabelSourceSchema, Gt as listSpaceFilesResponseSchema, Hn as agentInteractionResponseSchema, Ht as getSpaceFileResponseSchema, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAgentStreamSnapshotSchema, Jr as updateOrganizationInformationProtectionPolicyBodySchema, Jt as restoreSpaceFileEntryResponseSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kr as organizationInformationProtectionPolicyResponseSchema, Kt as publishSpaceComposerUploadResponseSchema, Ln as spaceAgentStreamTerminalFrameSchema, Lt as centerAgentInteractionSourceSchema, Mn as agentStreamToolPartSchema, Mt as spaceAttachmentSizeBytesSchema, Nn as spaceAgentStreamDeltaFrameSchema, Nr as runtimeCoordinatorExecutionCreationDiagnosticSchema, Nt as spaceMessageAttachmentSchema, On as messageEnvelopeSchema, Or as url, Ot as spaceAttachmentDescriptorSchema, Pn as spaceAgentStreamPartFrameSchema, Pr as runtimeCoordinatorExecutionEventSchema, Pt as spaceMessageAttachmentsSchema, Qt as spaceMessageFileReferencesSchema, Rr as spaceTraceExecutionIdentityProjectionSchema, Rt as SPACE_FILE_ERROR_CODES, Si as openMeldWebUrlSchema, Sn as workingLanguageTagSchema, Sr as strictObject, St as centerAgentTaskReferenceSchema, Tr as undefinedFactory, Tt as signalSystemNoticeDataSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vr as spacePasswordSchema, Vt as discardSpaceComposerUploadResponseSchema, Wr as spaceMentionLabelSchema, Wt as listSpaceFileRevisionsResponseSchema, Xn as localComponentUpdateProjectionSchema, Xr as executeExecutionRecoveryResponseSchema, Xt as spaceFileMimeTypeSchema, Yn as localComponentUpdatePolicySchema, Yr as executeExecutionRecoveryBodySchema, Yt as restoreSpaceFileRevisionResponseSchema, Zn as localComponentUpdateStatusSchema, Zr as inspectExecutionRecoveryResponseSchema, _n as resultArchivePolicySchema, _r as nullFactory, ai as profileSchema, at as agentTaskHandleSchema, bi as computerSetupModeSchema, bn as spaceDispatchPolicySchema, br as preprocess, ci as uuidProfileIdSchema, cr as boolean, ct as buildAgentTaskKey, di as optionalBooleanQuerySchema, dn as spaceThreadContextSchema, dr as email, en as trashSpaceFileEntryResponseSchema, er as openMeldToolsMaintenanceProjectionSchema, et as localFolderPickerResultSchema, fi as trimmedStringFromUnknown, fn as spaceThreadEventSchema, fr as enumFactory, gr as neverFactory, hr as literal, ii as profileKindSchema, ir as openMeldToolsUpdateRequestResultSchema, it as agentTaskCompletionObservationSchema, jn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, jr as clientMessageIdSchema$1, jt as spaceAttachmentMimeTypeSchema, kr as postSpaceWakeStopBodySchema, kt as spaceAttachmentDimensionSchema, li as finiteIntegerNumber, lr as coerce, lt as controllerAgentTaskHandleSchema, mi as agentProfileWorkRecoveryActionKindSchema, mn as spaceThreadSignalPlacementSchema, mr as iso, n as daemonExecutionCompatibilitySchema, nn as uploadSpaceFileResponseSchema, nt as agentDelegationSnapshotSchema, oi as profileWorkingDirectorySchema, on as openMeldDaemonSyncRouteCatalogPayloadSchema, or as NEVER, ot as agentTaskTerminalOutcomeSchema, pi as MAX_TEXT_LENGTH$1, pn as spaceThreadSchema, pr as int, qr as organizationProtectedInformationSchema, ri as openMeldRuntimeProfileIdSchema, rn as localAgentInstallationOptionSchema, rr as openMeldToolsUpdateOperationSchema, rt as agentTaskCompletionConditionSchema, si as profileWorkspaceModeSchema, sr as array, st as areAgentTaskTerminalOutcomesEqual, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as agentProfileIdSchema, tn as updateSpaceFileEntryResponseSchema, tt as localFolderPathSchema, ui as nonEmptyTrimmedStringFromUnknown, un as dispatchExecutionSchema, ur as discriminatedUnion, ut as spaceWakeAgentTaskHandleSchema, vn as spaceAllowedActionsSchema, vr as number, wr as tuple, wt as signalStatusDataSchema, xi as openMeldNavigationTargetSchema, xn as workingLanguageGuidanceSchema, xr as record, yn as spacePublicationModeSchema, yr as object, zn as agentInteractionPendingSummarySchema, zr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, zt as SPACE_FILE_MAX_SIZE_BYTES } from "./runtime-transport-w7zmmzEz.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";
|
|
@@ -5086,6 +5086,47 @@ const postNormalMessageBodySchema = z$1.strictObject({
|
|
|
5086
5086
|
});
|
|
5087
5087
|
const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
|
|
5088
5088
|
//#endregion
|
|
5089
|
+
//#region ../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js
|
|
5090
|
+
const CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = "center_agent_direct_message_space";
|
|
5091
|
+
const ISO_DATE_TIME_SCHEMA$8 = z$1.iso.datetime({ offset: true });
|
|
5092
|
+
const trimmedNonEmptyStringSchema$11 = z$1.string().trim().min(1);
|
|
5093
|
+
const createCenterAgentSessionBodySchema = z$1.strictObject({ creationId: z$1.uuid() });
|
|
5094
|
+
const centerAgentSessionSelectorSchema = z$1.strictObject({ spaceId: trimmedNonEmptyStringSchema$11.max(128) });
|
|
5095
|
+
const centerAgentDirectMessageSpaceProjectionSchema = z$1.strictObject({
|
|
5096
|
+
centerAgentProfileId: trimmedNonEmptyStringSchema$11,
|
|
5097
|
+
isCenterAgentDirectMessageSpace: z$1.literal(true),
|
|
5098
|
+
kind: z$1.literal(CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND),
|
|
5099
|
+
memberProfileId: trimmedNonEmptyStringSchema$11,
|
|
5100
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5101
|
+
spaceId: trimmedNonEmptyStringSchema$11
|
|
5102
|
+
});
|
|
5103
|
+
const getCenterAgentDirectMessageSpaceProjectionResponseSchema = z$1.strictObject({
|
|
5104
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$8,
|
|
5105
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5106
|
+
projection: z$1.union([centerAgentDirectMessageSpaceProjectionSchema, z$1.null()])
|
|
5107
|
+
});
|
|
5108
|
+
const listCenterAgentSessionsQuerySchema = z$1.strictObject({
|
|
5109
|
+
cursor: z$1.string().trim().min(1).max(1024).optional(),
|
|
5110
|
+
limit: z$1.number().int().min(1).max(100).default(20)
|
|
5111
|
+
});
|
|
5112
|
+
z$1.strictObject({
|
|
5113
|
+
v: z$1.literal(1),
|
|
5114
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5115
|
+
pairKey: trimmedNonEmptyStringSchema$11,
|
|
5116
|
+
createdAtMs: z$1.number().int().nonnegative(),
|
|
5117
|
+
spaceId: centerAgentSessionSelectorSchema.shape.spaceId
|
|
5118
|
+
});
|
|
5119
|
+
const centerAgentSessionListItemSchema = centerAgentDirectMessageSpaceProjectionSchema.extend({
|
|
5120
|
+
name: z$1.string().nullable(),
|
|
5121
|
+
createdAt: ISO_DATE_TIME_SCHEMA$8.nullable()
|
|
5122
|
+
});
|
|
5123
|
+
const listCenterAgentSessionsResponseSchema = z$1.strictObject({
|
|
5124
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$8,
|
|
5125
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5126
|
+
sessions: z$1.array(centerAgentSessionListItemSchema).max(100),
|
|
5127
|
+
nextCursor: z$1.string().min(1).max(1024).nullable()
|
|
5128
|
+
});
|
|
5129
|
+
//#endregion
|
|
5089
5130
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-context-manifest.js
|
|
5090
5131
|
const CENTER_AGENT_CONTEXT_MANIFEST_VERSION = "center_agent_context_manifest.v1";
|
|
5091
5132
|
const CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION = "center_agent_context_load_receipt.v1";
|
|
@@ -5103,13 +5144,14 @@ const CENTER_AGENT_CONTEXT_ERROR_CODES = [
|
|
|
5103
5144
|
"center_agent.context_load_selection_duplicate",
|
|
5104
5145
|
"center_agent.context_load_selection_invalid"
|
|
5105
5146
|
];
|
|
5106
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
5107
|
-
const trimmedNonEmptyStringSchema$
|
|
5147
|
+
const ISO_DATE_TIME_SCHEMA$7 = iso.datetime({ offset: true });
|
|
5148
|
+
const trimmedNonEmptyStringSchema$10 = string().trim().min(1);
|
|
5108
5149
|
const contentHashSchema$1 = string().regex(/^sha256:[0-9a-f]{64}$/u);
|
|
5109
5150
|
const centerAgentContextManifestIdSchema = string().regex(/^center_agent_context_manifest_[0-9a-f-]{36}$/u);
|
|
5110
5151
|
const loadReceiptIdSchema = string().regex(/^center_agent_context_load_receipt_[0-9a-f-]{36}$/u);
|
|
5111
5152
|
const centerAgentContextManifestViewSchema = literal("messages");
|
|
5112
5153
|
const createCenterAgentContextManifestBodySchema = strictObject({
|
|
5154
|
+
spaceId: centerAgentSessionSelectorSchema.shape.spaceId.optional(),
|
|
5113
5155
|
cursor: string().trim().min(1).max(768).optional(),
|
|
5114
5156
|
limit: number().int().min(1).max(50).default(20),
|
|
5115
5157
|
maxContextTokens: number().int().min(256).max(CENTER_AGENT_CONTEXT_MAX_TOKEN_BUDGET).default(CENTER_AGENT_CONTEXT_DEFAULT_TOKEN_BUDGET),
|
|
@@ -5117,23 +5159,23 @@ const createCenterAgentContextManifestBodySchema = strictObject({
|
|
|
5117
5159
|
view: centerAgentContextManifestViewSchema.default("messages")
|
|
5118
5160
|
});
|
|
5119
5161
|
const centerAgentContextManifestSourceRefSchema = strictObject({
|
|
5120
|
-
id: trimmedNonEmptyStringSchema$
|
|
5162
|
+
id: trimmedNonEmptyStringSchema$10,
|
|
5121
5163
|
type: literal("space_signal"),
|
|
5122
5164
|
uri: string().regex(/^openmeld:\/\/spaces\/[^/]+\/signals\/[^/]+$/u),
|
|
5123
5165
|
version: contentHashSchema$1
|
|
5124
5166
|
});
|
|
5125
5167
|
const centerAgentContextManifestEntrySchema = strictObject({
|
|
5126
5168
|
author: strictObject({
|
|
5127
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
5169
|
+
profileId: trimmedNonEmptyStringSchema$10,
|
|
5128
5170
|
profileKind: enumFactory([
|
|
5129
5171
|
"agent",
|
|
5130
5172
|
"human",
|
|
5131
5173
|
"system"
|
|
5132
5174
|
]),
|
|
5133
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
5175
|
+
profileName: trimmedNonEmptyStringSchema$10
|
|
5134
5176
|
}),
|
|
5135
5177
|
carrier: strictObject({
|
|
5136
|
-
client: trimmedNonEmptyStringSchema$
|
|
5178
|
+
client: trimmedNonEmptyStringSchema$10.max(80),
|
|
5137
5179
|
kind: literal("local_agent")
|
|
5138
5180
|
}).optional(),
|
|
5139
5181
|
content: strictObject({
|
|
@@ -5143,13 +5185,13 @@ const centerAgentContextManifestEntrySchema = strictObject({
|
|
|
5143
5185
|
type: literal("text")
|
|
5144
5186
|
}),
|
|
5145
5187
|
materializedContentHash: contentHashSchema$1,
|
|
5146
|
-
occurredAt: ISO_DATE_TIME_SCHEMA$
|
|
5188
|
+
occurredAt: ISO_DATE_TIME_SCHEMA$7,
|
|
5147
5189
|
redactions: array(enumFactory([
|
|
5148
5190
|
"attachments_not_in_messages_view",
|
|
5149
5191
|
"local_session_locator_omitted",
|
|
5150
5192
|
"message_content_budget"
|
|
5151
5193
|
])),
|
|
5152
|
-
replyToSignalId: trimmedNonEmptyStringSchema$
|
|
5194
|
+
replyToSignalId: trimmedNonEmptyStringSchema$10.optional(),
|
|
5153
5195
|
sourceRef: centerAgentContextManifestSourceRefSchema
|
|
5154
5196
|
});
|
|
5155
5197
|
strictObject({
|
|
@@ -5159,7 +5201,7 @@ strictObject({
|
|
|
5159
5201
|
});
|
|
5160
5202
|
const centerAgentContextLoadSelectedEntrySchema = strictObject({
|
|
5161
5203
|
materializedContentHash: contentHashSchema$1,
|
|
5162
|
-
sourceRefId: trimmedNonEmptyStringSchema$
|
|
5204
|
+
sourceRefId: trimmedNonEmptyStringSchema$10
|
|
5163
5205
|
});
|
|
5164
5206
|
const createCenterAgentContextLoadReceiptBodySchema = strictObject({
|
|
5165
5207
|
selection: discriminatedUnion("kind", [strictObject({ kind: literal("all_manifest_entries") }), strictObject({
|
|
@@ -5192,20 +5234,20 @@ const createCenterAgentContextManifestResponseSchema = strictObject({
|
|
|
5192
5234
|
hasMore: boolean()
|
|
5193
5235
|
}),
|
|
5194
5236
|
entries: array(centerAgentContextManifestEntrySchema),
|
|
5195
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5237
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$7,
|
|
5196
5238
|
manifestId: centerAgentContextManifestIdSchema,
|
|
5197
5239
|
provenance: strictObject({
|
|
5198
|
-
auditEntryId: trimmedNonEmptyStringSchema$
|
|
5240
|
+
auditEntryId: trimmedNonEmptyStringSchema$10,
|
|
5199
5241
|
contentProjection: literal("user_visible_space_signals")
|
|
5200
5242
|
}),
|
|
5201
5243
|
request: strictObject({ source: centerAgentInteractionSourceSchema }),
|
|
5202
5244
|
schemaVersion: literal(CENTER_AGENT_CONTEXT_MANIFEST_VERSION),
|
|
5203
5245
|
subject: strictObject({
|
|
5204
|
-
centerAgentProfileId: trimmedNonEmptyStringSchema$
|
|
5205
|
-
conversationId: trimmedNonEmptyStringSchema$
|
|
5246
|
+
centerAgentProfileId: trimmedNonEmptyStringSchema$10,
|
|
5247
|
+
conversationId: trimmedNonEmptyStringSchema$10,
|
|
5206
5248
|
kind: literal("center_agent_conversation"),
|
|
5207
|
-
memberProfileId: trimmedNonEmptyStringSchema$
|
|
5208
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5249
|
+
memberProfileId: trimmedNonEmptyStringSchema$10,
|
|
5250
|
+
organizationId: trimmedNonEmptyStringSchema$10
|
|
5209
5251
|
}),
|
|
5210
5252
|
view: centerAgentContextManifestViewSchema
|
|
5211
5253
|
});
|
|
@@ -5214,9 +5256,9 @@ const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
|
|
|
5214
5256
|
principal: literal("authenticated_member"),
|
|
5215
5257
|
scope: literal("requester_private")
|
|
5216
5258
|
}),
|
|
5217
|
-
provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$
|
|
5259
|
+
provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$10 }),
|
|
5218
5260
|
receipt: strictObject({
|
|
5219
|
-
client: trimmedNonEmptyStringSchema$
|
|
5261
|
+
client: trimmedNonEmptyStringSchema$10.max(80),
|
|
5220
5262
|
estimatedTokens: number().int().nonnegative(),
|
|
5221
5263
|
id: loadReceiptIdSchema,
|
|
5222
5264
|
includedMessages: number().int().min(1).max(50),
|
|
@@ -5224,7 +5266,7 @@ const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
|
|
|
5224
5266
|
selectedEntries: array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),
|
|
5225
5267
|
status: literal("loaded")
|
|
5226
5268
|
}),
|
|
5227
|
-
recordedAt: ISO_DATE_TIME_SCHEMA$
|
|
5269
|
+
recordedAt: ISO_DATE_TIME_SCHEMA$7,
|
|
5228
5270
|
schemaVersion: literal(CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION)
|
|
5229
5271
|
});
|
|
5230
5272
|
//#endregion
|
|
@@ -5456,7 +5498,7 @@ const messageChannelIdentityLinkConsumeResponseSchema = z$1.strictObject({
|
|
|
5456
5498
|
});
|
|
5457
5499
|
//#endregion
|
|
5458
5500
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-member-research.js
|
|
5459
|
-
const trimmedNonEmptyStringSchema$
|
|
5501
|
+
const trimmedNonEmptyStringSchema$9 = z$1.string().trim().min(1);
|
|
5460
5502
|
const isoDateTimeSchema$6 = z$1.iso.datetime({ offset: true });
|
|
5461
5503
|
const memberResearchTextSchema = z$1.string().trim().min(1).max(1e3);
|
|
5462
5504
|
const CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES = [
|
|
@@ -5483,8 +5525,8 @@ const centerAgentMemberResearchEvidenceSourceSchema = z$1.enum([
|
|
|
5483
5525
|
const centerAgentMemberResearchEvidenceItemSchema = z$1.strictObject({
|
|
5484
5526
|
date: z$1.iso.date(),
|
|
5485
5527
|
source: centerAgentMemberResearchEvidenceSourceSchema,
|
|
5486
|
-
sourceId: trimmedNonEmptyStringSchema$
|
|
5487
|
-
sourceName: trimmedNonEmptyStringSchema$
|
|
5528
|
+
sourceId: trimmedNonEmptyStringSchema$9.max(256),
|
|
5529
|
+
sourceName: trimmedNonEmptyStringSchema$9.max(120).optional(),
|
|
5488
5530
|
sourceUrl: z$1.url().max(2048).optional(),
|
|
5489
5531
|
text: memberResearchTextSchema
|
|
5490
5532
|
}).superRefine((item, context) => {
|
|
@@ -5503,7 +5545,7 @@ const centerAgentMemberResearchEvidenceItemSchema = z$1.strictObject({
|
|
|
5503
5545
|
}
|
|
5504
5546
|
if ((item.source === "slack" || item.source === "connected_app") && !item.sourceName) context.addIssue({
|
|
5505
5547
|
code: "custom",
|
|
5506
|
-
message: `${item.source === "slack" ? "Slack" : "Connected
|
|
5548
|
+
message: `${item.source === "slack" ? "Slack" : "Connected Plugin"} evidence requires a sourceName.`,
|
|
5507
5549
|
path: ["sourceName"]
|
|
5508
5550
|
});
|
|
5509
5551
|
if (item.source === "github" && item.sourceUrl && new URL(item.sourceUrl).protocol !== "https:") context.addIssue({
|
|
@@ -5513,7 +5555,7 @@ const centerAgentMemberResearchEvidenceItemSchema = z$1.strictObject({
|
|
|
5513
5555
|
});
|
|
5514
5556
|
if (item.source === "connected_app" && item.sourceUrl && new URL(item.sourceUrl).protocol !== "https:") context.addIssue({
|
|
5515
5557
|
code: "custom",
|
|
5516
|
-
message: "Connected
|
|
5558
|
+
message: "Connected Plugin evidence sourceUrl must use HTTPS.",
|
|
5517
5559
|
path: ["sourceUrl"]
|
|
5518
5560
|
});
|
|
5519
5561
|
});
|
|
@@ -5523,7 +5565,7 @@ const centerAgentMemberResearchCoverageSchema = z$1.strictObject({
|
|
|
5523
5565
|
evidence: memberResearchTextSchema.max(500),
|
|
5524
5566
|
source: centerAgentMemberResearchCoverageSourceSchema,
|
|
5525
5567
|
status: centerAgentMemberResearchCoverageStatusSchema,
|
|
5526
|
-
timeRange: trimmedNonEmptyStringSchema$
|
|
5568
|
+
timeRange: trimmedNonEmptyStringSchema$9.max(120)
|
|
5527
5569
|
});
|
|
5528
5570
|
const centerAgentMemberResearchCoverageListSchema = z$1.array(centerAgentMemberResearchCoverageSchema).min(LEGACY_CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES.length).max(CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES.length).superRefine((coverage, context) => {
|
|
5529
5571
|
const expectedSources = coverage.length === LEGACY_CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES.length ? LEGACY_CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES : CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES;
|
|
@@ -5572,12 +5614,12 @@ const centerAgentMemberResearchTaskStatusSchema = z$1.enum([
|
|
|
5572
5614
|
"failed"
|
|
5573
5615
|
]);
|
|
5574
5616
|
const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
5575
|
-
id: trimmedNonEmptyStringSchema$
|
|
5576
|
-
subjectUserId: trimmedNonEmptyStringSchema$
|
|
5577
|
-
subjectDisplayName: trimmedNonEmptyStringSchema$
|
|
5617
|
+
id: trimmedNonEmptyStringSchema$9,
|
|
5618
|
+
subjectUserId: trimmedNonEmptyStringSchema$9,
|
|
5619
|
+
subjectDisplayName: trimmedNonEmptyStringSchema$9,
|
|
5578
5620
|
position: z$1.number().int().positive(),
|
|
5579
5621
|
status: centerAgentMemberResearchTaskStatusSchema,
|
|
5580
|
-
failureCode: trimmedNonEmptyStringSchema$
|
|
5622
|
+
failureCode: trimmedNonEmptyStringSchema$9.nullable(),
|
|
5581
5623
|
startedAt: isoDateTimeSchema$6.nullable(),
|
|
5582
5624
|
finishedAt: isoDateTimeSchema$6.nullable()
|
|
5583
5625
|
}).superRefine((task, context) => {
|
|
@@ -5593,8 +5635,8 @@ const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
|
5593
5635
|
});
|
|
5594
5636
|
});
|
|
5595
5637
|
const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
5596
|
-
id: trimmedNonEmptyStringSchema$
|
|
5597
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5638
|
+
id: trimmedNonEmptyStringSchema$9,
|
|
5639
|
+
organizationId: trimmedNonEmptyStringSchema$9,
|
|
5598
5640
|
scope: centerAgentMemberResearchScopeSchema,
|
|
5599
5641
|
status: centerAgentMemberResearchBatchStatusSchema,
|
|
5600
5642
|
totalCount: z$1.number().int().positive(),
|
|
@@ -5656,11 +5698,11 @@ const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
|
5656
5698
|
});
|
|
5657
5699
|
});
|
|
5658
5700
|
const startCenterAgentMemberResearchBodySchema = z$1.discriminatedUnion("scope", [z$1.strictObject({
|
|
5659
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
5701
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$9,
|
|
5660
5702
|
scope: z$1.literal("member"),
|
|
5661
|
-
subjectUserId: trimmedNonEmptyStringSchema$
|
|
5703
|
+
subjectUserId: trimmedNonEmptyStringSchema$9
|
|
5662
5704
|
}), z$1.strictObject({
|
|
5663
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
5705
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$9,
|
|
5664
5706
|
scope: z$1.literal("all")
|
|
5665
5707
|
})]);
|
|
5666
5708
|
const startCenterAgentMemberResearchResponseSchema = z$1.strictObject({ batch: centerAgentMemberResearchBatchSchema });
|
|
@@ -5670,7 +5712,7 @@ z$1.strictObject({
|
|
|
5670
5712
|
speakerMember: centerAgentToolSpeakerSchema
|
|
5671
5713
|
});
|
|
5672
5714
|
const getCenterAgentMemberResearchStatusResponseSchema = z$1.strictObject({
|
|
5673
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5715
|
+
organizationId: trimmedNonEmptyStringSchema$9,
|
|
5674
5716
|
latestBatch: centerAgentMemberResearchBatchSchema.nullable()
|
|
5675
5717
|
});
|
|
5676
5718
|
z$1.strictObject({ context: openMeldRequestContextSchema });
|
|
@@ -6072,7 +6114,7 @@ function validateCenterAgentDraftTarget(value, context) {
|
|
|
6072
6114
|
}
|
|
6073
6115
|
//#endregion
|
|
6074
6116
|
//#region ../../packages/schemas/dist/schemas/http/gateway-error.js
|
|
6075
|
-
const trimmedNonEmptyStringSchema$
|
|
6117
|
+
const trimmedNonEmptyStringSchema$8 = z$1.string().trim().min(1);
|
|
6076
6118
|
const SPACE_ADDRESSING_TARGET_INVALID_ERROR_CODE = "space.addressing.target_invalid";
|
|
6077
6119
|
const gatewayErrorCodeSchema = z$1.enum([
|
|
6078
6120
|
"bad_request",
|
|
@@ -6192,8 +6234,8 @@ const gatewayErrorCodeSchema = z$1.enum([
|
|
|
6192
6234
|
]);
|
|
6193
6235
|
const gatewayErrorSchema = commonErrorSchema.extend({
|
|
6194
6236
|
code: gatewayErrorCodeSchema,
|
|
6195
|
-
requestId: trimmedNonEmptyStringSchema$
|
|
6196
|
-
upstreamCode: trimmedNonEmptyStringSchema$
|
|
6237
|
+
requestId: trimmedNonEmptyStringSchema$8,
|
|
6238
|
+
upstreamCode: trimmedNonEmptyStringSchema$8.optional()
|
|
6197
6239
|
});
|
|
6198
6240
|
const gatewayErrorEnvelopeSchema = z$1.strictObject({
|
|
6199
6241
|
ok: z$1.literal(false),
|
|
@@ -6209,15 +6251,15 @@ const identityImageMimeTypeSchema = z$1.enum([
|
|
|
6209
6251
|
]);
|
|
6210
6252
|
//#endregion
|
|
6211
6253
|
//#region ../../packages/schemas/dist/schemas/http/profile-space-history.js
|
|
6212
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
6254
|
+
const ISO_DATE_TIME_SCHEMA$6 = z$1.iso.datetime({ offset: true });
|
|
6213
6255
|
const GATEWAY_HOST_MAX_LENGTH = 255;
|
|
6214
6256
|
const PROFILE_SPACE_HISTORY_MAX_LIMIT = 500;
|
|
6215
6257
|
const NON_NEGATIVE_INT_RE$2 = /^\d+$/;
|
|
6216
6258
|
const GATEWAY_HOST_PATH_CHARS_RE = /[/?#]/;
|
|
6217
|
-
const trimmedNonEmptyStringSchema$
|
|
6218
|
-
const nullableTrimmedStringSchema$6 = z$1.union([trimmedNonEmptyStringSchema$
|
|
6259
|
+
const trimmedNonEmptyStringSchema$7 = z$1.string().trim().min(1);
|
|
6260
|
+
const nullableTrimmedStringSchema$6 = z$1.union([trimmedNonEmptyStringSchema$7, z$1.null()]);
|
|
6219
6261
|
const nullableNonNegativeIntSchema$1 = z$1.union([z$1.number().int().min(0), z$1.null()]);
|
|
6220
|
-
const nullableIsoDateTimeSchema$4 = z$1.union([ISO_DATE_TIME_SCHEMA$
|
|
6262
|
+
const nullableIsoDateTimeSchema$4 = z$1.union([ISO_DATE_TIME_SCHEMA$6, z$1.null()]);
|
|
6221
6263
|
const profileSpaceHistoryGatewayHostSchema = z$1.string().transform((value, ctx) => {
|
|
6222
6264
|
const normalized = value.trim().toLowerCase();
|
|
6223
6265
|
if (normalized.length === 0) {
|
|
@@ -6286,20 +6328,20 @@ const profileSpaceHistoryStatusListSchema = z$1.union([profileSpaceHistoryStatus
|
|
|
6286
6328
|
return Array.isArray(value) ? value : [value];
|
|
6287
6329
|
});
|
|
6288
6330
|
const profileSpaceHistoryRecordSchema = z$1.strictObject({
|
|
6289
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6331
|
+
profileId: trimmedNonEmptyStringSchema$7,
|
|
6290
6332
|
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6291
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6333
|
+
spaceId: trimmedNonEmptyStringSchema$7,
|
|
6292
6334
|
spaceName: nullableTrimmedStringSchema$6,
|
|
6293
6335
|
creatorProfileId: nullableTrimmedStringSchema$6,
|
|
6294
6336
|
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]),
|
|
6295
6337
|
spaceCreatedAt: nullableIsoDateTimeSchema$4,
|
|
6296
6338
|
spaceUpdatedAt: nullableIsoDateTimeSchema$4,
|
|
6297
|
-
lastJoinedAt: ISO_DATE_TIME_SCHEMA$
|
|
6339
|
+
lastJoinedAt: ISO_DATE_TIME_SCHEMA$6,
|
|
6298
6340
|
lastSeenTs: nullableNonNegativeIntSchema$1,
|
|
6299
6341
|
pinnedAt: nullableIsoDateTimeSchema$4,
|
|
6300
6342
|
status: profileSpaceHistoryStatusSchema,
|
|
6301
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
6302
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
6343
|
+
createdAt: ISO_DATE_TIME_SCHEMA$6,
|
|
6344
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$6
|
|
6303
6345
|
});
|
|
6304
6346
|
z$1.strictObject({
|
|
6305
6347
|
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
@@ -6324,7 +6366,7 @@ z$1.strictObject({
|
|
|
6324
6366
|
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]).optional(),
|
|
6325
6367
|
spaceCreatedAt: nullableIsoDateTimeSchema$4.optional(),
|
|
6326
6368
|
spaceUpdatedAt: nullableIsoDateTimeSchema$4.optional(),
|
|
6327
|
-
lastJoinedAt: ISO_DATE_TIME_SCHEMA$
|
|
6369
|
+
lastJoinedAt: ISO_DATE_TIME_SCHEMA$6.optional(),
|
|
6328
6370
|
lastSeenTs: nullableNonNegativeIntSchema$1.optional(),
|
|
6329
6371
|
pinnedAt: nullableIsoDateTimeSchema$4.optional(),
|
|
6330
6372
|
status: profileSpaceHistoryStatusSchema.optional()
|
|
@@ -6339,19 +6381,19 @@ z$1.strictObject({
|
|
|
6339
6381
|
reason: z$1.string().trim().min(1).max(500).optional()
|
|
6340
6382
|
});
|
|
6341
6383
|
const patchProfileSpaceHistoryStatusResponseSchema = z$1.strictObject({
|
|
6342
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6384
|
+
profileId: trimmedNonEmptyStringSchema$7,
|
|
6343
6385
|
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6344
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6386
|
+
spaceId: trimmedNonEmptyStringSchema$7,
|
|
6345
6387
|
status: profileSpaceHistoryStatusSchema,
|
|
6346
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
6388
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$6
|
|
6347
6389
|
});
|
|
6348
6390
|
//#endregion
|
|
6349
6391
|
//#region ../../packages/schemas/dist/schemas/http/account-space-index.js
|
|
6350
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
6351
|
-
const trimmedNonEmptyStringSchema$
|
|
6352
|
-
const nullableTrimmedStringSchema$5 = z$1.union([trimmedNonEmptyStringSchema$
|
|
6392
|
+
const ISO_DATE_TIME_SCHEMA$5 = z$1.iso.datetime({ offset: true });
|
|
6393
|
+
const trimmedNonEmptyStringSchema$6 = z$1.string().trim().min(1);
|
|
6394
|
+
const nullableTrimmedStringSchema$5 = z$1.union([trimmedNonEmptyStringSchema$6, z$1.null()]);
|
|
6353
6395
|
const nullableNonNegativeIntSchema = z$1.union([z$1.number().int().min(0), z$1.null()]);
|
|
6354
|
-
const nullableIsoDateTimeSchema$3 = z$1.union([ISO_DATE_TIME_SCHEMA$
|
|
6396
|
+
const nullableIsoDateTimeSchema$3 = z$1.union([ISO_DATE_TIME_SCHEMA$5, z$1.null()]);
|
|
6355
6397
|
const ACCOUNT_SPACE_INDEX_MAX_LIMIT = 500;
|
|
6356
6398
|
const NON_NEGATIVE_INT_RE$1 = /^\d+$/;
|
|
6357
6399
|
const accountSpaceIndexScopeSchema = z$1.enum(["account", "profile"]);
|
|
@@ -6375,52 +6417,59 @@ const accountSpaceIndexIncludeDirectMessageProfileIdsSchema = z$1.preprocess((va
|
|
|
6375
6417
|
return value === "true";
|
|
6376
6418
|
}, z$1.boolean()).optional();
|
|
6377
6419
|
z$1.strictObject({
|
|
6420
|
+
includeMemberPreviews: z$1.preprocess((value) => value === true || value === "true", z$1.boolean()).optional(),
|
|
6378
6421
|
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6379
6422
|
includeDirectMessageProfileIds: accountSpaceIndexIncludeDirectMessageProfileIdsSchema,
|
|
6380
6423
|
includeRecentlyDeletedItems: accountSpaceIndexIncludeRecentlyDeletedItemsSchema,
|
|
6381
6424
|
includePurposes: accountSpaceIndexIncludePurposesSchema,
|
|
6382
6425
|
limit: accountSpaceIndexLimitSchema,
|
|
6383
6426
|
scope: accountSpaceIndexScopeSchema.default("account"),
|
|
6384
|
-
selectedProfileId: trimmedNonEmptyStringSchema$
|
|
6427
|
+
selectedProfileId: trimmedNonEmptyStringSchema$6
|
|
6385
6428
|
});
|
|
6386
6429
|
const accountSpaceIndexJoinedProfileSchema = z$1.strictObject({
|
|
6387
|
-
lastJoinedAt: ISO_DATE_TIME_SCHEMA$
|
|
6430
|
+
lastJoinedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6388
6431
|
pinnedAt: nullableIsoDateTimeSchema$3,
|
|
6389
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
6390
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
6432
|
+
profileId: trimmedNonEmptyStringSchema$6,
|
|
6433
|
+
profileName: trimmedNonEmptyStringSchema$6
|
|
6391
6434
|
});
|
|
6392
6435
|
const accountSpaceIndexItemSchema = z$1.strictObject({
|
|
6436
|
+
memberPreviews: z$1.array(z$1.strictObject({
|
|
6437
|
+
profileId: trimmedNonEmptyStringSchema$6,
|
|
6438
|
+
profileName: trimmedNonEmptyStringSchema$6,
|
|
6439
|
+
profileKind: z$1.enum(["human", "agent"]),
|
|
6440
|
+
agentControllerRef: nullableTrimmedStringSchema$5
|
|
6441
|
+
})).max(3).optional(),
|
|
6393
6442
|
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]),
|
|
6394
6443
|
creatorOwnerUserId: nullableTrimmedStringSchema$5,
|
|
6395
6444
|
creatorProfileId: nullableTrimmedStringSchema$5,
|
|
6396
6445
|
creatorProfileName: nullableTrimmedStringSchema$5,
|
|
6397
6446
|
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6398
6447
|
joinedProfiles: z$1.array(accountSpaceIndexJoinedProfileSchema),
|
|
6399
|
-
lastJoinedAt: ISO_DATE_TIME_SCHEMA$
|
|
6448
|
+
lastJoinedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6400
6449
|
lastSeenTs: nullableNonNegativeIntSchema,
|
|
6401
|
-
openProfileId: trimmedNonEmptyStringSchema$
|
|
6402
|
-
openProfileName: trimmedNonEmptyStringSchema$
|
|
6403
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6450
|
+
openProfileId: trimmedNonEmptyStringSchema$6,
|
|
6451
|
+
openProfileName: trimmedNonEmptyStringSchema$6,
|
|
6452
|
+
organizationId: trimmedNonEmptyStringSchema$6,
|
|
6404
6453
|
pinnedAt: nullableIsoDateTimeSchema$3,
|
|
6405
|
-
pinnedProfileIds: z$1.array(trimmedNonEmptyStringSchema$
|
|
6454
|
+
pinnedProfileIds: z$1.array(trimmedNonEmptyStringSchema$6),
|
|
6406
6455
|
spaceCreatedAt: nullableIsoDateTimeSchema$3,
|
|
6407
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6408
|
-
spaceName: trimmedNonEmptyStringSchema$
|
|
6456
|
+
spaceId: trimmedNonEmptyStringSchema$6,
|
|
6457
|
+
spaceName: trimmedNonEmptyStringSchema$6,
|
|
6409
6458
|
activeAgentCount: nullableNonNegativeIntSchema.optional(),
|
|
6410
6459
|
activeHumanCount: nullableNonNegativeIntSchema.optional(),
|
|
6411
6460
|
activeMemberCount: nullableNonNegativeIntSchema.optional(),
|
|
6412
6461
|
directMessageConvertedAt: nullableIsoDateTimeSchema$3.optional(),
|
|
6413
|
-
directMessageProfileIds: z$1.union([z$1.tuple([trimmedNonEmptyStringSchema$
|
|
6462
|
+
directMessageProfileIds: z$1.union([z$1.tuple([trimmedNonEmptyStringSchema$6, trimmedNonEmptyStringSchema$6]), z$1.null()]).optional(),
|
|
6414
6463
|
spacePurpose: nullableTrimmedStringSchema$5.optional(),
|
|
6415
6464
|
spaceUpdatedAt: nullableIsoDateTimeSchema$3,
|
|
6416
|
-
status: trimmedNonEmptyStringSchema$
|
|
6417
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
6465
|
+
status: trimmedNonEmptyStringSchema$6,
|
|
6466
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6418
6467
|
visibility: spaceOrganizationVisibilitySchema
|
|
6419
6468
|
});
|
|
6420
6469
|
const accountSpaceIndexDeletedItemSchema = z$1.strictObject({
|
|
6421
|
-
deletedAt: ISO_DATE_TIME_SCHEMA$
|
|
6470
|
+
deletedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6422
6471
|
deletedByProfileName: nullableTrimmedStringSchema$5,
|
|
6423
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
6472
|
+
spaceId: trimmedNonEmptyStringSchema$6,
|
|
6424
6473
|
spaceName: nullableTrimmedStringSchema$5
|
|
6425
6474
|
});
|
|
6426
6475
|
const accountSpaceIndexResponseSchema = z$1.strictObject({
|
|
@@ -7122,7 +7171,7 @@ const CONNECTOR_APP_REQUEST_STATUSES = [
|
|
|
7122
7171
|
"available",
|
|
7123
7172
|
"declined"
|
|
7124
7173
|
];
|
|
7125
|
-
const trimmedNonEmptyStringSchema$
|
|
7174
|
+
const trimmedNonEmptyStringSchema$5 = string().trim().min(1);
|
|
7126
7175
|
const timestampMsSchema$1 = number().int().nonnegative();
|
|
7127
7176
|
const connectorCredentialValueSchema = string().min(1).max(8192);
|
|
7128
7177
|
const connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();
|
|
@@ -7141,30 +7190,30 @@ const connectorConnectionSchema = strictObject({
|
|
|
7141
7190
|
connectionName: connectorConnectionNameSchema,
|
|
7142
7191
|
createdAtMs: timestampMsSchema$1,
|
|
7143
7192
|
disconnectedAtMs: timestampMsSchema$1.nullable(),
|
|
7144
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7145
|
-
ownerDisplayName: trimmedNonEmptyStringSchema$
|
|
7193
|
+
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7194
|
+
ownerDisplayName: trimmedNonEmptyStringSchema$5,
|
|
7146
7195
|
scope: connectorConnectionScopeSchema.default("member"),
|
|
7147
7196
|
service: connectorServiceSchema,
|
|
7148
7197
|
status: connectorConnectionStatusSchema,
|
|
7149
7198
|
updatedAtMs: timestampMsSchema$1,
|
|
7150
|
-
userId: trimmedNonEmptyStringSchema$
|
|
7199
|
+
userId: trimmedNonEmptyStringSchema$5
|
|
7151
7200
|
});
|
|
7152
7201
|
strictObject({
|
|
7153
7202
|
connections: array(connectorConnectionSchema),
|
|
7154
|
-
currentUserId: trimmedNonEmptyStringSchema$
|
|
7155
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7203
|
+
currentUserId: trimmedNonEmptyStringSchema$5,
|
|
7204
|
+
organizationId: trimmedNonEmptyStringSchema$5
|
|
7156
7205
|
});
|
|
7157
7206
|
const connectorAppRequestSchema = strictObject({
|
|
7158
7207
|
availableAtMs: timestampMsSchema$1.nullable(),
|
|
7159
7208
|
createdAtMs: timestampMsSchema$1,
|
|
7160
7209
|
id: string().trim().min(1).max(128),
|
|
7161
7210
|
notifiedAtMs: timestampMsSchema$1.nullable(),
|
|
7162
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7211
|
+
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7163
7212
|
providerId: string().trim().min(1).max(160).nullable(),
|
|
7164
7213
|
providerName: string().trim().min(1).max(120),
|
|
7165
7214
|
requestedCapabilities: connectorAppRequestedCapabilitiesSchema,
|
|
7166
|
-
requesterMemberId: trimmedNonEmptyStringSchema$
|
|
7167
|
-
requesterUserId: trimmedNonEmptyStringSchema$
|
|
7215
|
+
requesterMemberId: trimmedNonEmptyStringSchema$5.nullable(),
|
|
7216
|
+
requesterUserId: trimmedNonEmptyStringSchema$5.nullable(),
|
|
7168
7217
|
source: connectorAppRequestSourceSchema,
|
|
7169
7218
|
status: connectorAppRequestStatusSchema,
|
|
7170
7219
|
updatedAtMs: timestampMsSchema$1,
|
|
@@ -7179,23 +7228,23 @@ strictObject({
|
|
|
7179
7228
|
}).superRefine((input, context) => {
|
|
7180
7229
|
if (input.source === "openconnector_catalog" && !input.providerId?.trim()) context.addIssue({
|
|
7181
7230
|
code: "custom",
|
|
7182
|
-
message: "A catalog
|
|
7231
|
+
message: "A catalog Plugin request requires its OpenConnector provider ID.",
|
|
7183
7232
|
path: ["providerId"]
|
|
7184
7233
|
});
|
|
7185
7234
|
if (input.source === "freeform" && input.providerId != null) context.addIssue({
|
|
7186
7235
|
code: "custom",
|
|
7187
|
-
message: "A freeform
|
|
7236
|
+
message: "A freeform Plugin request cannot include a provider ID.",
|
|
7188
7237
|
path: ["providerId"]
|
|
7189
7238
|
});
|
|
7190
7239
|
});
|
|
7191
7240
|
strictObject({ request: connectorAppRequestSchema });
|
|
7192
7241
|
strictObject({
|
|
7193
|
-
currentUserId: trimmedNonEmptyStringSchema$
|
|
7194
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7242
|
+
currentUserId: trimmedNonEmptyStringSchema$5,
|
|
7243
|
+
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7195
7244
|
requests: array(connectorAppRequestSchema).max(500)
|
|
7196
7245
|
});
|
|
7197
7246
|
strictObject({
|
|
7198
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7247
|
+
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7199
7248
|
providers: array(strictObject({
|
|
7200
7249
|
authTypes: array(string().trim().min(1).max(80)).max(12),
|
|
7201
7250
|
categories: array(strictObject({
|
|
@@ -7225,12 +7274,12 @@ strictObject({
|
|
|
7225
7274
|
});
|
|
7226
7275
|
discriminatedUnion("status", [
|
|
7227
7276
|
strictObject({
|
|
7228
|
-
actorProfileId: trimmedNonEmptyStringSchema$
|
|
7277
|
+
actorProfileId: trimmedNonEmptyStringSchema$5,
|
|
7229
7278
|
installationId: githubAppInstallationIdSchema,
|
|
7230
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7279
|
+
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7231
7280
|
status: literal("valid"),
|
|
7232
7281
|
targetConnectionName: connectorConnectionNameSchema,
|
|
7233
|
-
userId: trimmedNonEmptyStringSchema$
|
|
7282
|
+
userId: trimmedNonEmptyStringSchema$5,
|
|
7234
7283
|
verificationConnectionName: connectorConnectionNameSchema
|
|
7235
7284
|
}),
|
|
7236
7285
|
strictObject({ status: literal("expired") }),
|
|
@@ -7238,10 +7287,10 @@ discriminatedUnion("status", [
|
|
|
7238
7287
|
]);
|
|
7239
7288
|
strictObject({
|
|
7240
7289
|
installationId: githubAppInstallationIdSchema,
|
|
7241
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7290
|
+
organizationId: trimmedNonEmptyStringSchema$5,
|
|
7242
7291
|
status: literal("verifying"),
|
|
7243
7292
|
targetConnectionName: connectorConnectionNameSchema,
|
|
7244
|
-
userId: trimmedNonEmptyStringSchema$
|
|
7293
|
+
userId: trimmedNonEmptyStringSchema$5,
|
|
7245
7294
|
verificationConnectionName: connectorConnectionNameSchema
|
|
7246
7295
|
}).nullable();
|
|
7247
7296
|
strictObject({
|
|
@@ -7250,10 +7299,10 @@ strictObject({
|
|
|
7250
7299
|
});
|
|
7251
7300
|
strictObject({ connection: connectorConnectionSchema });
|
|
7252
7301
|
strictObject({
|
|
7253
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
7302
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$5,
|
|
7254
7303
|
includeAuthorizationExpiry: literal("true").optional()
|
|
7255
7304
|
});
|
|
7256
|
-
strictObject({ userId: trimmedNonEmptyStringSchema$
|
|
7305
|
+
strictObject({ userId: trimmedNonEmptyStringSchema$5 });
|
|
7257
7306
|
strictObject({ connection: connectorConnectionSchema });
|
|
7258
7307
|
strictObject({
|
|
7259
7308
|
availableConnectionNames: array(connectorConnectionNameSchema).max(500),
|
|
@@ -7683,19 +7732,19 @@ const submitRuntimeProviderConversationProofsResponseSchema = z$1.strictObject({
|
|
|
7683
7732
|
});
|
|
7684
7733
|
//#endregion
|
|
7685
7734
|
//#region ../../packages/schemas/dist/schemas/http/slack-workspace-directory.js
|
|
7686
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
7687
|
-
const trimmedNonEmptyStringSchema$
|
|
7688
|
-
const nullableTrimmedStringSchema$4 = z$1.union([trimmedNonEmptyStringSchema$
|
|
7735
|
+
const ISO_DATE_TIME_SCHEMA$4 = z$1.iso.datetime({ offset: true });
|
|
7736
|
+
const trimmedNonEmptyStringSchema$4 = z$1.string().trim().min(1);
|
|
7737
|
+
const nullableTrimmedStringSchema$4 = z$1.union([trimmedNonEmptyStringSchema$4, z$1.null()]);
|
|
7689
7738
|
z$1.strictObject({
|
|
7690
|
-
cursor: trimmedNonEmptyStringSchema$
|
|
7739
|
+
cursor: trimmedNonEmptyStringSchema$4.max(2048).optional(),
|
|
7691
7740
|
includeMemberUserId: z$1.literal(true).optional(),
|
|
7692
7741
|
limit: z$1.number().int().min(1).max(200).optional()
|
|
7693
7742
|
});
|
|
7694
7743
|
const slackWorkspaceMembershipSchema = z$1.discriminatedUnion("status", [
|
|
7695
7744
|
z$1.strictObject({
|
|
7696
7745
|
matchedBy: z$1.enum(["identity_link", "email"]),
|
|
7697
|
-
memberDisplayName: trimmedNonEmptyStringSchema$
|
|
7698
|
-
memberUserId: trimmedNonEmptyStringSchema$
|
|
7746
|
+
memberDisplayName: trimmedNonEmptyStringSchema$4,
|
|
7747
|
+
memberUserId: trimmedNonEmptyStringSchema$4.optional(),
|
|
7699
7748
|
status: z$1.literal("member")
|
|
7700
7749
|
}),
|
|
7701
7750
|
z$1.strictObject({ status: z$1.literal("not_member") }),
|
|
@@ -7705,26 +7754,26 @@ const slackWorkspaceMembershipSchema = z$1.discriminatedUnion("status", [
|
|
|
7705
7754
|
})
|
|
7706
7755
|
]);
|
|
7707
7756
|
const slackWorkspaceDirectoryMemberSchema = z$1.strictObject({
|
|
7708
|
-
displayName: trimmedNonEmptyStringSchema$
|
|
7757
|
+
displayName: trimmedNonEmptyStringSchema$4,
|
|
7709
7758
|
email: nullableTrimmedStringSchema$4,
|
|
7710
7759
|
isAdmin: z$1.boolean(),
|
|
7711
7760
|
isGuest: z$1.boolean(),
|
|
7712
7761
|
isOwner: z$1.boolean(),
|
|
7713
7762
|
realName: nullableTrimmedStringSchema$4,
|
|
7714
|
-
slackUserId: trimmedNonEmptyStringSchema$
|
|
7763
|
+
slackUserId: trimmedNonEmptyStringSchema$4,
|
|
7715
7764
|
title: nullableTrimmedStringSchema$4,
|
|
7716
7765
|
openMeldMembership: slackWorkspaceMembershipSchema
|
|
7717
7766
|
});
|
|
7718
7767
|
const slackWorkspaceDirectoryResponseSchema = z$1.strictObject({
|
|
7719
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
7768
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$4,
|
|
7720
7769
|
members: z$1.array(slackWorkspaceDirectoryMemberSchema),
|
|
7721
7770
|
nextCursor: nullableTrimmedStringSchema$4,
|
|
7722
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7771
|
+
organizationId: trimmedNonEmptyStringSchema$4
|
|
7723
7772
|
});
|
|
7724
7773
|
const slackReadUnavailableResponseSchema = z$1.strictObject({
|
|
7725
|
-
message: trimmedNonEmptyStringSchema$
|
|
7726
|
-
nextAction: trimmedNonEmptyStringSchema$
|
|
7727
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7774
|
+
message: trimmedNonEmptyStringSchema$4.max(500),
|
|
7775
|
+
nextAction: trimmedNonEmptyStringSchema$4.max(500),
|
|
7776
|
+
organizationId: trimmedNonEmptyStringSchema$4,
|
|
7728
7777
|
reasonCode: z$1.enum([
|
|
7729
7778
|
"channel_access_required",
|
|
7730
7779
|
"connection_state_unavailable",
|
|
@@ -7735,11 +7784,11 @@ const slackReadUnavailableResponseSchema = z$1.strictObject({
|
|
|
7735
7784
|
z$1.union([slackWorkspaceDirectoryResponseSchema, slackReadUnavailableResponseSchema]);
|
|
7736
7785
|
//#endregion
|
|
7737
7786
|
//#region ../../packages/schemas/dist/schemas/http/slack-channel-reads.js
|
|
7738
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
7739
|
-
const trimmedNonEmptyStringSchema$
|
|
7740
|
-
const nullableTrimmedStringSchema$3 = z$1.union([trimmedNonEmptyStringSchema$
|
|
7741
|
-
const slackChannelNameSchema = trimmedNonEmptyStringSchema$
|
|
7742
|
-
const slackCursorSchema = trimmedNonEmptyStringSchema$
|
|
7787
|
+
const ISO_DATE_TIME_SCHEMA$3 = z$1.iso.datetime({ offset: true });
|
|
7788
|
+
const trimmedNonEmptyStringSchema$3 = z$1.string().trim().min(1);
|
|
7789
|
+
const nullableTrimmedStringSchema$3 = z$1.union([trimmedNonEmptyStringSchema$3, z$1.null()]);
|
|
7790
|
+
const slackChannelNameSchema = trimmedNonEmptyStringSchema$3.max(80);
|
|
7791
|
+
const slackCursorSchema = trimmedNonEmptyStringSchema$3.max(2048).optional();
|
|
7743
7792
|
const CENTER_AGENT_SLACK_FILE_MAX_BASE64_CHARACTERS = Math.ceil(5242880 / 3) * 4;
|
|
7744
7793
|
const slackFileContentBase64Schema = z$1.string().max(CENTER_AGENT_SLACK_FILE_MAX_BASE64_CHARACTERS).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u);
|
|
7745
7794
|
z$1.strictObject({
|
|
@@ -7755,16 +7804,16 @@ z$1.strictObject({
|
|
|
7755
7804
|
z$1.strictObject({
|
|
7756
7805
|
channelName: slackChannelNameSchema,
|
|
7757
7806
|
cursor: slackCursorSchema,
|
|
7758
|
-
expectedChannelId: trimmedNonEmptyStringSchema$
|
|
7807
|
+
expectedChannelId: trimmedNonEmptyStringSchema$3.max(80).optional(),
|
|
7759
7808
|
includeFiles: z$1.literal(true).optional(),
|
|
7760
7809
|
limit: z$1.number().int().min(1).max(15).optional()
|
|
7761
7810
|
});
|
|
7762
7811
|
z$1.union([z$1.strictObject({
|
|
7763
7812
|
channelName: slackChannelNameSchema,
|
|
7764
|
-
fileId: trimmedNonEmptyStringSchema$
|
|
7813
|
+
fileId: trimmedNonEmptyStringSchema$3.max(256)
|
|
7765
7814
|
}), z$1.strictObject({
|
|
7766
|
-
channelId: trimmedNonEmptyStringSchema$
|
|
7767
|
-
fileId: trimmedNonEmptyStringSchema$
|
|
7815
|
+
channelId: trimmedNonEmptyStringSchema$3.max(80),
|
|
7816
|
+
fileId: trimmedNonEmptyStringSchema$3.max(256)
|
|
7768
7817
|
})]);
|
|
7769
7818
|
const slackChannelSummarySchema = z$1.strictObject({
|
|
7770
7819
|
channelName: slackChannelNameSchema,
|
|
@@ -7774,20 +7823,20 @@ const slackChannelSummarySchema = z$1.strictObject({
|
|
|
7774
7823
|
});
|
|
7775
7824
|
const slackChannelListResponseSchema = z$1.strictObject({
|
|
7776
7825
|
channels: z$1.array(slackChannelSummarySchema),
|
|
7777
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
7826
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
7778
7827
|
nextCursor: nullableTrimmedStringSchema$3,
|
|
7779
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7828
|
+
organizationId: trimmedNonEmptyStringSchema$3
|
|
7780
7829
|
});
|
|
7781
7830
|
const slackChannelMembersResponseSchema = z$1.strictObject({
|
|
7782
|
-
channelId: trimmedNonEmptyStringSchema$
|
|
7831
|
+
channelId: trimmedNonEmptyStringSchema$3.max(80).optional(),
|
|
7783
7832
|
channelName: slackChannelNameSchema,
|
|
7784
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
7833
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
7785
7834
|
members: z$1.array(slackWorkspaceDirectoryMemberSchema),
|
|
7786
7835
|
nextCursor: nullableTrimmedStringSchema$3,
|
|
7787
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7836
|
+
organizationId: trimmedNonEmptyStringSchema$3
|
|
7788
7837
|
});
|
|
7789
7838
|
const slackFileMetadataSchema = z$1.strictObject({
|
|
7790
|
-
fileId: trimmedNonEmptyStringSchema$
|
|
7839
|
+
fileId: trimmedNonEmptyStringSchema$3.max(256),
|
|
7791
7840
|
mimeType: nullableTrimmedStringSchema$3,
|
|
7792
7841
|
name: nullableTrimmedStringSchema$3,
|
|
7793
7842
|
permalink: z$1.union([z$1.url({ protocol: /^https$/u }), z$1.null()]),
|
|
@@ -7797,22 +7846,22 @@ const slackChannelHistoryMessageSchema = z$1.strictObject({
|
|
|
7797
7846
|
authorDisplayName: nullableTrimmedStringSchema$3,
|
|
7798
7847
|
authorSlackUserId: nullableTrimmedStringSchema$3,
|
|
7799
7848
|
isAuthorBot: z$1.boolean(),
|
|
7800
|
-
messageTs: trimmedNonEmptyStringSchema$
|
|
7849
|
+
messageTs: trimmedNonEmptyStringSchema$3,
|
|
7801
7850
|
files: z$1.array(slackFileMetadataSchema).optional(),
|
|
7802
7851
|
text: nullableTrimmedStringSchema$3
|
|
7803
7852
|
});
|
|
7804
7853
|
const slackChannelHistoryResponseSchema = z$1.strictObject({
|
|
7805
7854
|
channelName: slackChannelNameSchema,
|
|
7806
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
7855
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
7807
7856
|
messages: z$1.array(slackChannelHistoryMessageSchema),
|
|
7808
7857
|
nextCursor: nullableTrimmedStringSchema$3,
|
|
7809
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7858
|
+
organizationId: trimmedNonEmptyStringSchema$3
|
|
7810
7859
|
});
|
|
7811
7860
|
const slackFileReadResponseSchema = z$1.strictObject({
|
|
7812
7861
|
channelName: slackChannelNameSchema.optional(),
|
|
7813
7862
|
contentBase64: slackFileContentBase64Schema,
|
|
7814
7863
|
file: slackFileMetadataSchema,
|
|
7815
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
7864
|
+
organizationId: trimmedNonEmptyStringSchema$3
|
|
7816
7865
|
});
|
|
7817
7866
|
z$1.union([slackChannelListResponseSchema, slackReadUnavailableResponseSchema]);
|
|
7818
7867
|
z$1.union([slackChannelMembersResponseSchema, slackReadUnavailableResponseSchema]);
|
|
@@ -8163,6 +8212,8 @@ enumFactory(Object.values({
|
|
|
8163
8212
|
}));
|
|
8164
8213
|
enumFactory(Object.values({
|
|
8165
8214
|
CANCEL_EXECUTION: "cancelExecution",
|
|
8215
|
+
RECEIVE_EXECUTION_INPUT: "receiveExecutionInput",
|
|
8216
|
+
READ_EXECUTION_INPUT: "readExecutionInput",
|
|
8166
8217
|
READ_EXECUTION_STATE: "readExecutionState",
|
|
8167
8218
|
RECONCILE_EXECUTION: "reconcileExecution",
|
|
8168
8219
|
READ_RUNTIME_DIAGNOSTICS: "readRuntimeDiagnostics",
|
|
@@ -8532,7 +8583,7 @@ const remoteAgentTurnRuntimeEvidenceSchema = strictObject({
|
|
|
8532
8583
|
toolCallLimit: number().int().positive(),
|
|
8533
8584
|
updatedAtMs: number().int().nonnegative()
|
|
8534
8585
|
});
|
|
8535
|
-
const
|
|
8586
|
+
const remoteAgentWorkerRuntimeDiagnosticsResponseV1Schema = strictObject({
|
|
8536
8587
|
activeRuns: array(remoteAgentRuntimeActiveRunDiagnosticSchema).max(50),
|
|
8537
8588
|
attemptMarkers: array(remoteAgentRuntimeAttemptMarkerDiagnosticSchema).max(50),
|
|
8538
8589
|
callbackContexts: array(remoteAgentRuntimeCallbackContextDiagnosticSchema).max(50),
|
|
@@ -8545,6 +8596,28 @@ const remoteAgentWorkerRuntimeDiagnosticsResponseSchema = strictObject({
|
|
|
8545
8596
|
turnObservability: array(remoteAgentTurnRuntimeEvidenceSchema).max(50).optional(),
|
|
8546
8597
|
v: literal(1)
|
|
8547
8598
|
});
|
|
8599
|
+
const remoteAgentWorkerRuntimeDiagnosticsResponseSchema = discriminatedUnion("v", [remoteAgentWorkerRuntimeDiagnosticsResponseV1Schema, remoteAgentWorkerRuntimeDiagnosticsResponseV1Schema.omit({
|
|
8600
|
+
attemptMarkers: true,
|
|
8601
|
+
submissions: true,
|
|
8602
|
+
v: true
|
|
8603
|
+
}).extend({
|
|
8604
|
+
submissions: array(remoteAgentRuntimeSubmissionDiagnosticSchema.omit({
|
|
8605
|
+
maxRetry: true,
|
|
8606
|
+
recoveryRequestedAtMs: true
|
|
8607
|
+
}).extend({
|
|
8608
|
+
maxAttempts: number().int().positive(),
|
|
8609
|
+
joinedInto: nullableNonEmptyStringSchema,
|
|
8610
|
+
status: enumFactory([
|
|
8611
|
+
"queued",
|
|
8612
|
+
"running",
|
|
8613
|
+
"terminalizing",
|
|
8614
|
+
"settled",
|
|
8615
|
+
"joining",
|
|
8616
|
+
"joined"
|
|
8617
|
+
])
|
|
8618
|
+
})).max(50),
|
|
8619
|
+
v: literal(2)
|
|
8620
|
+
})]);
|
|
8548
8621
|
const remoteAgentCoreCallbackIdentitySchema = {
|
|
8549
8622
|
submissionId: nonEmptyStringSchema,
|
|
8550
8623
|
idempotencyKey: nonEmptyStringSchema,
|
|
@@ -8911,19 +8984,27 @@ function normalizeOptionalClientMessageId(value) {
|
|
|
8911
8984
|
}
|
|
8912
8985
|
//#endregion
|
|
8913
8986
|
//#region ../../packages/schemas/dist/schemas/http/space-dispatch-trace.js
|
|
8914
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
8915
|
-
const trimmedNonEmptyStringSchema$
|
|
8987
|
+
const ISO_DATE_TIME_SCHEMA$2 = iso.datetime({ offset: true });
|
|
8988
|
+
const trimmedNonEmptyStringSchema$2 = string().trim().min(1);
|
|
8916
8989
|
const SPACE_DISPATCH_TRACE_TIMEOUT_POLICY_MAX_MS = 6048e5;
|
|
8917
8990
|
const SPACE_DISPATCH_TRACE_PROMPT_LENGTH_MAX = 1e6;
|
|
8918
8991
|
const SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS = 1200;
|
|
8919
8992
|
const SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER = "x-openmeld-space-dispatch-trace-response-version";
|
|
8920
8993
|
const SPACE_DISPATCH_TRACE_INVALID_OUTPUT_PREVIEW_MAX_CHARS = 180;
|
|
8921
|
-
union([
|
|
8922
|
-
|
|
8923
|
-
|
|
8994
|
+
const spaceDispatchTraceResponseContractVersionSchema = union([
|
|
8995
|
+
literal(2),
|
|
8996
|
+
literal(3),
|
|
8997
|
+
literal(4)
|
|
8998
|
+
]);
|
|
8999
|
+
enumFactory([
|
|
9000
|
+
"2",
|
|
9001
|
+
String(3),
|
|
9002
|
+
String(4)
|
|
9003
|
+
]).transform(Number).pipe(spaceDispatchTraceResponseContractVersionSchema);
|
|
9004
|
+
const boundedNullableTrimmedStringSchema = (maxLength) => union([trimmedNonEmptyStringSchema$2.max(maxLength), nullFactory()]);
|
|
8924
9005
|
const nullableTrimmedStringSchema$2 = boundedNullableTrimmedStringSchema(4096);
|
|
8925
9006
|
const nullableSignalTextSchema = boundedNullableTrimmedStringSchema(MAX_TEXT_LENGTH$1);
|
|
8926
|
-
const nullableIsoDateTimeSchema$2 = union([ISO_DATE_TIME_SCHEMA$
|
|
9007
|
+
const nullableIsoDateTimeSchema$2 = union([ISO_DATE_TIME_SCHEMA$2, nullFactory()]);
|
|
8927
9008
|
const nullableIntegerSchema = union([int(), nullFactory()]);
|
|
8928
9009
|
const boundedNullableNonNegativeIntegerSchema = (maxValue) => union([int().min(0).max(maxValue), nullFactory()]);
|
|
8929
9010
|
const nullableProfileKindSchema = union([enumFactory([
|
|
@@ -8932,8 +9013,8 @@ const nullableProfileKindSchema = union([enumFactory([
|
|
|
8932
9013
|
"system"
|
|
8933
9014
|
]), nullFactory()]);
|
|
8934
9015
|
const dispatchTraceOwnerSchema = strictObject({
|
|
8935
|
-
id: trimmedNonEmptyStringSchema$
|
|
8936
|
-
kind: trimmedNonEmptyStringSchema$
|
|
9016
|
+
id: trimmedNonEmptyStringSchema$2,
|
|
9017
|
+
kind: trimmedNonEmptyStringSchema$2
|
|
8937
9018
|
});
|
|
8938
9019
|
const spaceDispatchTraceDispatchStatusSchema = enumFactory([
|
|
8939
9020
|
"queued",
|
|
@@ -8957,34 +9038,34 @@ const spaceDispatchTraceAttemptStatusSchema = enumFactory([
|
|
|
8957
9038
|
"waiting_result"
|
|
8958
9039
|
]);
|
|
8959
9040
|
const spaceDispatchTraceQuerySchema = strictObject({
|
|
8960
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
8961
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
9041
|
+
spaceId: trimmedNonEmptyStringSchema$2,
|
|
9042
|
+
dispatchId: trimmedNonEmptyStringSchema$2
|
|
8962
9043
|
});
|
|
8963
9044
|
const spaceDispatchTraceDispatchSchema = strictObject({
|
|
8964
9045
|
factSource: literal("dispatch_ledger"),
|
|
8965
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
8966
|
-
idempotencyKey: trimmedNonEmptyStringSchema$
|
|
8967
|
-
sourceEventId: trimmedNonEmptyStringSchema$
|
|
9046
|
+
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9047
|
+
idempotencyKey: trimmedNonEmptyStringSchema$2,
|
|
9048
|
+
sourceEventId: trimmedNonEmptyStringSchema$2,
|
|
8968
9049
|
sourceClientMessageId: nullableTrimmedStringSchema$2,
|
|
8969
9050
|
owner: union([dispatchTraceOwnerSchema, nullFactory()]),
|
|
8970
|
-
targetProfileId: trimmedNonEmptyStringSchema$
|
|
9051
|
+
targetProfileId: trimmedNonEmptyStringSchema$2,
|
|
8971
9052
|
status: spaceDispatchTraceDispatchStatusSchema,
|
|
8972
|
-
firstSeenAt: ISO_DATE_TIME_SCHEMA$
|
|
8973
|
-
lastAttemptAt: ISO_DATE_TIME_SCHEMA$
|
|
9053
|
+
firstSeenAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9054
|
+
lastAttemptAt: ISO_DATE_TIME_SCHEMA$2,
|
|
8974
9055
|
attemptCount: int().min(0),
|
|
8975
9056
|
latestAttemptId: nullableTrimmedStringSchema$2
|
|
8976
9057
|
});
|
|
8977
9058
|
const spaceDispatchTraceLatestAttemptSchema = strictObject({
|
|
8978
9059
|
factSource: literal("dispatch_attempt"),
|
|
8979
|
-
attemptId: trimmedNonEmptyStringSchema$
|
|
8980
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
8981
|
-
idempotencyKey: trimmedNonEmptyStringSchema$
|
|
9060
|
+
attemptId: trimmedNonEmptyStringSchema$2,
|
|
9061
|
+
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9062
|
+
idempotencyKey: trimmedNonEmptyStringSchema$2,
|
|
8982
9063
|
attemptNo: int().min(1),
|
|
8983
9064
|
status: spaceDispatchTraceAttemptStatusSchema,
|
|
8984
9065
|
daemonSessionId: nullableTrimmedStringSchema$2,
|
|
8985
9066
|
connectionGeneration: nullableIntegerSchema,
|
|
8986
9067
|
leaseEpoch: nullableIntegerSchema,
|
|
8987
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9068
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2,
|
|
8988
9069
|
startedAt: nullableIsoDateTimeSchema$2,
|
|
8989
9070
|
finishedAt: nullableIsoDateTimeSchema$2,
|
|
8990
9071
|
errorCode: nullableTrimmedStringSchema$2,
|
|
@@ -8992,10 +9073,10 @@ const spaceDispatchTraceLatestAttemptSchema = strictObject({
|
|
|
8992
9073
|
});
|
|
8993
9074
|
const spaceDispatchTraceNativeDeliverySchema = strictObject({
|
|
8994
9075
|
factSource: literal("remote_agent_native_delivery_ledger"),
|
|
8995
|
-
deliveryId: trimmedNonEmptyStringSchema$
|
|
8996
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
8997
|
-
idempotencyKey: trimmedNonEmptyStringSchema$
|
|
8998
|
-
bindingId: trimmedNonEmptyStringSchema$
|
|
9076
|
+
deliveryId: trimmedNonEmptyStringSchema$2,
|
|
9077
|
+
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9078
|
+
idempotencyKey: trimmedNonEmptyStringSchema$2,
|
|
9079
|
+
bindingId: trimmedNonEmptyStringSchema$2,
|
|
8999
9080
|
runtimeFamily: literal("hosted_center_agent"),
|
|
9000
9081
|
status: enumFactory([
|
|
9001
9082
|
"guardrail_rejected",
|
|
@@ -9015,9 +9096,9 @@ const spaceDispatchTraceNativeDeliverySchema = strictObject({
|
|
|
9015
9096
|
"slack",
|
|
9016
9097
|
"space"
|
|
9017
9098
|
]),
|
|
9018
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
9019
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
9020
|
-
targetProfileId: trimmedNonEmptyStringSchema$
|
|
9099
|
+
organizationId: trimmedNonEmptyStringSchema$2,
|
|
9100
|
+
spaceId: trimmedNonEmptyStringSchema$2,
|
|
9101
|
+
targetProfileId: trimmedNonEmptyStringSchema$2
|
|
9021
9102
|
}),
|
|
9022
9103
|
controllerNormalization: strictObject({
|
|
9023
9104
|
factSource: literal("remote_agent_native_delivery_ledger"),
|
|
@@ -9032,38 +9113,38 @@ const spaceDispatchTraceNativeDeliverySchema = strictObject({
|
|
|
9032
9113
|
]),
|
|
9033
9114
|
bindingUpdatedAt: nullableIsoDateTimeSchema$2
|
|
9034
9115
|
}),
|
|
9035
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9036
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
9116
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9117
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$2
|
|
9037
9118
|
});
|
|
9038
9119
|
const spaceDispatchTraceOpsDecisionSchema = strictObject({
|
|
9039
9120
|
factSource: literal("ops_decision"),
|
|
9040
|
-
id: trimmedNonEmptyStringSchema$
|
|
9041
|
-
decisionCode: trimmedNonEmptyStringSchema$
|
|
9042
|
-
decidedBy: trimmedNonEmptyStringSchema$
|
|
9043
|
-
source: trimmedNonEmptyStringSchema$
|
|
9044
|
-
decidedAt: ISO_DATE_TIME_SCHEMA$
|
|
9121
|
+
id: trimmedNonEmptyStringSchema$2,
|
|
9122
|
+
decisionCode: trimmedNonEmptyStringSchema$2,
|
|
9123
|
+
decidedBy: trimmedNonEmptyStringSchema$2,
|
|
9124
|
+
source: trimmedNonEmptyStringSchema$2,
|
|
9125
|
+
decidedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9045
9126
|
correlationId: nullableTrimmedStringSchema$2,
|
|
9046
9127
|
expectedRecoveryCriteria: nullableTrimmedStringSchema$2
|
|
9047
9128
|
});
|
|
9048
9129
|
const spaceDispatchTraceReplySignalSchema = strictObject({
|
|
9049
9130
|
factSource: enumFactory(["space_signal_by_published_signal_id", "space_signal_recent_window"]),
|
|
9050
|
-
signalId: trimmedNonEmptyStringSchema$
|
|
9051
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
9131
|
+
signalId: trimmedNonEmptyStringSchema$2,
|
|
9132
|
+
profileId: trimmedNonEmptyStringSchema$2,
|
|
9052
9133
|
profileKind: nullableProfileKindSchema,
|
|
9053
9134
|
profileName: nullableTrimmedStringSchema$2,
|
|
9054
|
-
text: trimmedNonEmptyStringSchema$
|
|
9055
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9135
|
+
text: trimmedNonEmptyStringSchema$2,
|
|
9136
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2
|
|
9056
9137
|
});
|
|
9057
9138
|
const spaceDispatchTraceFinalVisibleMessageSchema = strictObject({
|
|
9058
9139
|
factSource: enumFactory(["space_signal_by_published_signal_id", "space_final_reply_claim"]),
|
|
9059
|
-
signalId: trimmedNonEmptyStringSchema$
|
|
9140
|
+
signalId: trimmedNonEmptyStringSchema$2,
|
|
9060
9141
|
signalType: enumFactory([
|
|
9061
9142
|
"signal.text",
|
|
9062
9143
|
"signal.status",
|
|
9063
9144
|
"signal.system_notice"
|
|
9064
9145
|
]),
|
|
9065
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
9066
|
-
targetProfileId: trimmedNonEmptyStringSchema$
|
|
9146
|
+
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9147
|
+
targetProfileId: trimmedNonEmptyStringSchema$2,
|
|
9067
9148
|
profileId: nullableTrimmedStringSchema$2,
|
|
9068
9149
|
profileKind: nullableProfileKindSchema,
|
|
9069
9150
|
profileName: nullableTrimmedStringSchema$2,
|
|
@@ -9076,7 +9157,7 @@ const spaceDispatchTraceFinalVisibleMessageSchema = strictObject({
|
|
|
9076
9157
|
"wake_stopped"
|
|
9077
9158
|
]), nullFactory()]),
|
|
9078
9159
|
statusType: nullableTrimmedStringSchema$2,
|
|
9079
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9160
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2
|
|
9080
9161
|
});
|
|
9081
9162
|
const spaceDispatchTraceFinalVisibleMessageLinkageSchema = strictObject({
|
|
9082
9163
|
status: enumFactory([
|
|
@@ -9092,7 +9173,7 @@ const spaceDispatchTraceFinalVisibleMessageLinkageSchema = strictObject({
|
|
|
9092
9173
|
"space_final_reply_claim",
|
|
9093
9174
|
"none"
|
|
9094
9175
|
]),
|
|
9095
|
-
candidateSignalIds: array(trimmedNonEmptyStringSchema$
|
|
9176
|
+
candidateSignalIds: array(trimmedNonEmptyStringSchema$2).max(16),
|
|
9096
9177
|
claimSignalId: nullableTrimmedStringSchema$2,
|
|
9097
9178
|
selectedSignalId: nullableTrimmedStringSchema$2
|
|
9098
9179
|
});
|
|
@@ -9132,14 +9213,14 @@ const spaceDispatchTraceFinalVisibleOutcomeSchema = strictObject({
|
|
|
9132
9213
|
});
|
|
9133
9214
|
const spaceDispatchTraceClaimLeaseSchema = strictObject({
|
|
9134
9215
|
factSource: literal("dispatch_claim_lease"),
|
|
9135
|
-
claimLeaseId: trimmedNonEmptyStringSchema$
|
|
9136
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
9137
|
-
sourceEventId: trimmedNonEmptyStringSchema$
|
|
9216
|
+
claimLeaseId: trimmedNonEmptyStringSchema$2,
|
|
9217
|
+
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9218
|
+
sourceEventId: trimmedNonEmptyStringSchema$2,
|
|
9138
9219
|
sourceClientMessageId: nullableTrimmedStringSchema$2,
|
|
9139
|
-
targetProfileId: trimmedNonEmptyStringSchema$
|
|
9140
|
-
bindingId: trimmedNonEmptyStringSchema$
|
|
9141
|
-
openMeldServiceRuntimeId: trimmedNonEmptyStringSchema$
|
|
9142
|
-
agentControllerRef: trimmedNonEmptyStringSchema$
|
|
9220
|
+
targetProfileId: trimmedNonEmptyStringSchema$2,
|
|
9221
|
+
bindingId: trimmedNonEmptyStringSchema$2,
|
|
9222
|
+
openMeldServiceRuntimeId: trimmedNonEmptyStringSchema$2,
|
|
9223
|
+
agentControllerRef: trimmedNonEmptyStringSchema$2,
|
|
9143
9224
|
leaseState: enumFactory([
|
|
9144
9225
|
"active",
|
|
9145
9226
|
"cancelled",
|
|
@@ -9148,19 +9229,19 @@ const spaceDispatchTraceClaimLeaseSchema = strictObject({
|
|
|
9148
9229
|
"superseded"
|
|
9149
9230
|
]),
|
|
9150
9231
|
claimTraceReason: nullableTrimmedStringSchema$2,
|
|
9151
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9152
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
9153
|
-
expiresAt: ISO_DATE_TIME_SCHEMA$
|
|
9232
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9233
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9234
|
+
expiresAt: ISO_DATE_TIME_SCHEMA$2
|
|
9154
9235
|
});
|
|
9155
9236
|
const spaceDispatchTraceResultSchema = strictObject({
|
|
9156
9237
|
factSource: literal("dispatch_result"),
|
|
9157
|
-
resultRef: trimmedNonEmptyStringSchema$
|
|
9158
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
9159
|
-
resultKind: trimmedNonEmptyStringSchema$
|
|
9160
|
-
publicOutcome: trimmedNonEmptyStringSchema$
|
|
9238
|
+
resultRef: trimmedNonEmptyStringSchema$2,
|
|
9239
|
+
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9240
|
+
resultKind: trimmedNonEmptyStringSchema$2,
|
|
9241
|
+
publicOutcome: trimmedNonEmptyStringSchema$2,
|
|
9161
9242
|
publishedSignalId: nullableTrimmedStringSchema$2,
|
|
9162
9243
|
statusType: nullableTrimmedStringSchema$2,
|
|
9163
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9244
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2
|
|
9164
9245
|
});
|
|
9165
9246
|
const spaceDispatchTraceResultInboxPublishStateSchema = enumFactory([
|
|
9166
9247
|
"result_accepted",
|
|
@@ -9173,20 +9254,20 @@ const spaceDispatchTraceResultInboxPublishStateSchema = enumFactory([
|
|
|
9173
9254
|
]);
|
|
9174
9255
|
const spaceDispatchTraceResultInboxSchema = strictObject({
|
|
9175
9256
|
factSource: literal("dispatch_result_inbox"),
|
|
9176
|
-
resultKey: trimmedNonEmptyStringSchema$
|
|
9177
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
9178
|
-
attemptId: trimmedNonEmptyStringSchema$
|
|
9179
|
-
taskId: trimmedNonEmptyStringSchema$
|
|
9180
|
-
targetProfileId: trimmedNonEmptyStringSchema$
|
|
9181
|
-
daemonSessionId: trimmedNonEmptyStringSchema$
|
|
9257
|
+
resultKey: trimmedNonEmptyStringSchema$2,
|
|
9258
|
+
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9259
|
+
attemptId: trimmedNonEmptyStringSchema$2,
|
|
9260
|
+
taskId: trimmedNonEmptyStringSchema$2,
|
|
9261
|
+
targetProfileId: trimmedNonEmptyStringSchema$2,
|
|
9262
|
+
daemonSessionId: trimmedNonEmptyStringSchema$2,
|
|
9182
9263
|
leaseEpoch: int(),
|
|
9183
9264
|
submittedConnectionGeneration: int(),
|
|
9184
9265
|
projectFailureContext: openMeldDaemonTaskResultProjectFailureContextSchema.optional(),
|
|
9185
9266
|
publishState: spaceDispatchTraceResultInboxPublishStateSchema,
|
|
9186
9267
|
publishedSignalId: nullableTrimmedStringSchema$2,
|
|
9187
9268
|
publicationErrorCode: nullableTrimmedStringSchema$2,
|
|
9188
|
-
acceptedAt: ISO_DATE_TIME_SCHEMA$
|
|
9189
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
9269
|
+
acceptedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9270
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$2
|
|
9190
9271
|
});
|
|
9191
9272
|
const spaceDispatchTraceStreamingSchema = strictObject({
|
|
9192
9273
|
streamingMode: enumFactory(["final", "stream"]),
|
|
@@ -9338,82 +9419,82 @@ const currentPublishedRuntimeCoordinatorHeadRecoveryActionSchema = enumFactory([
|
|
|
9338
9419
|
"wait_for_wake_route_report"
|
|
9339
9420
|
]);
|
|
9340
9421
|
const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV1Schema = strictObject({
|
|
9341
|
-
decidedAt: ISO_DATE_TIME_SCHEMA$
|
|
9422
|
+
decidedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9342
9423
|
publicationCategory: legacyPublishedRuntimeCoordinatorHeadPublicationCategorySchema,
|
|
9343
9424
|
reasonCode: legacyPublishedRuntimeCoordinatorHeadReasonCodeSchema,
|
|
9344
9425
|
source: publishedRuntimeCoordinatorHeadDecisionSourceSchema,
|
|
9345
9426
|
userRecoveryAction: legacyPublishedRuntimeCoordinatorHeadRecoveryActionSchema
|
|
9346
9427
|
});
|
|
9347
9428
|
const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionV2Schema = strictObject({
|
|
9348
|
-
decidedAt: ISO_DATE_TIME_SCHEMA$
|
|
9429
|
+
decidedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9349
9430
|
publicationCategory: publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema,
|
|
9350
9431
|
reasonCode: publishedRuntimeCoordinatorHeadReasonCodeV2Schema,
|
|
9351
9432
|
source: publishedRuntimeCoordinatorHeadDecisionSourceSchema,
|
|
9352
9433
|
userRecoveryAction: publishedRuntimeCoordinatorHeadRecoveryActionV2Schema
|
|
9353
9434
|
});
|
|
9354
9435
|
const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionSchema = strictObject({
|
|
9355
|
-
decidedAt: ISO_DATE_TIME_SCHEMA$
|
|
9436
|
+
decidedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9356
9437
|
publicationCategory: currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema,
|
|
9357
9438
|
reasonCode: currentPublishedRuntimeCoordinatorHeadReasonCodeSchema,
|
|
9358
9439
|
source: publishedRuntimeCoordinatorHeadDecisionSourceSchema,
|
|
9359
9440
|
userRecoveryAction: currentPublishedRuntimeCoordinatorHeadRecoveryActionSchema
|
|
9360
9441
|
});
|
|
9361
9442
|
const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV1Schema = union([strictObject({
|
|
9362
|
-
intentId: trimmedNonEmptyStringSchema$
|
|
9443
|
+
intentId: trimmedNonEmptyStringSchema$2.max(4096),
|
|
9363
9444
|
kind: literal("no_execution_failure"),
|
|
9364
9445
|
publicationCategory: legacyPublishedRuntimeCoordinatorHeadPublicationCategorySchema,
|
|
9365
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
9446
|
+
readyAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9366
9447
|
reasonCode: legacyPublishedRuntimeCoordinatorHeadReasonCodeSchema,
|
|
9367
9448
|
status: literal("ready_for_phase_6"),
|
|
9368
9449
|
userRecoveryAction: legacyPublishedRuntimeCoordinatorHeadRecoveryActionSchema
|
|
9369
9450
|
}), strictObject({
|
|
9370
|
-
intentId: trimmedNonEmptyStringSchema$
|
|
9451
|
+
intentId: trimmedNonEmptyStringSchema$2.max(4096),
|
|
9371
9452
|
kind: literal("stopped_notice"),
|
|
9372
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
9453
|
+
readyAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9373
9454
|
reasonCode: literal("runtime_coordinator.pre_agent_stop_requested"),
|
|
9374
9455
|
status: literal("ready_for_phase_6")
|
|
9375
9456
|
})]);
|
|
9376
9457
|
const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentV2Schema = union([strictObject({
|
|
9377
|
-
intentId: trimmedNonEmptyStringSchema$
|
|
9458
|
+
intentId: trimmedNonEmptyStringSchema$2.max(4096),
|
|
9378
9459
|
kind: literal("no_execution_failure"),
|
|
9379
9460
|
publicationCategory: publishedRuntimeCoordinatorHeadPublicationCategoryV2Schema,
|
|
9380
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
9461
|
+
readyAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9381
9462
|
reasonCode: publishedRuntimeCoordinatorHeadReasonCodeV2Schema,
|
|
9382
9463
|
status: literal("ready_for_phase_6"),
|
|
9383
9464
|
userRecoveryAction: publishedRuntimeCoordinatorHeadRecoveryActionV2Schema
|
|
9384
9465
|
}), strictObject({
|
|
9385
|
-
intentId: trimmedNonEmptyStringSchema$
|
|
9466
|
+
intentId: trimmedNonEmptyStringSchema$2.max(4096),
|
|
9386
9467
|
kind: literal("stopped_notice"),
|
|
9387
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
9468
|
+
readyAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9388
9469
|
reasonCode: literal("runtime_coordinator.pre_agent_stop_requested"),
|
|
9389
9470
|
status: literal("ready_for_phase_6")
|
|
9390
9471
|
})]);
|
|
9391
9472
|
const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentSchema = union([strictObject({
|
|
9392
|
-
intentId: trimmedNonEmptyStringSchema$
|
|
9473
|
+
intentId: trimmedNonEmptyStringSchema$2.max(4096),
|
|
9393
9474
|
kind: literal("no_execution_failure"),
|
|
9394
9475
|
publicationCategory: currentPublishedRuntimeCoordinatorHeadPublicationCategorySchema,
|
|
9395
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
9476
|
+
readyAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9396
9477
|
reasonCode: currentPublishedRuntimeCoordinatorHeadReasonCodeSchema,
|
|
9397
9478
|
status: literal("ready_for_phase_6"),
|
|
9398
9479
|
userRecoveryAction: currentPublishedRuntimeCoordinatorHeadRecoveryActionSchema
|
|
9399
9480
|
}), strictObject({
|
|
9400
|
-
intentId: trimmedNonEmptyStringSchema$
|
|
9481
|
+
intentId: trimmedNonEmptyStringSchema$2.max(4096),
|
|
9401
9482
|
kind: literal("stopped_notice"),
|
|
9402
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
9483
|
+
readyAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9403
9484
|
reasonCode: literal("runtime_coordinator.pre_agent_stop_requested"),
|
|
9404
9485
|
status: literal("ready_for_phase_6")
|
|
9405
9486
|
})]);
|
|
9406
9487
|
const spaceDispatchTraceRuntimeCoordinatorHeadPublicationOutcomeSchema = strictObject({
|
|
9407
|
-
failurePublicationCommandId: trimmedNonEmptyStringSchema$
|
|
9488
|
+
failurePublicationCommandId: trimmedNonEmptyStringSchema$2.max(4096),
|
|
9408
9489
|
finalMessageKind: enumFactory([
|
|
9409
9490
|
"failure_notice",
|
|
9410
9491
|
"status",
|
|
9411
9492
|
"success_reply",
|
|
9412
9493
|
"unknown"
|
|
9413
9494
|
]).nullable(),
|
|
9414
|
-
observedAt: ISO_DATE_TIME_SCHEMA$
|
|
9495
|
+
observedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9415
9496
|
publicationErrorCode: string().trim().min(1).max(160).nullable(),
|
|
9416
|
-
publishedSignalId: trimmedNonEmptyStringSchema$
|
|
9497
|
+
publishedSignalId: trimmedNonEmptyStringSchema$2.nullable(),
|
|
9417
9498
|
status: enumFactory([
|
|
9418
9499
|
"failure_published",
|
|
9419
9500
|
"already_final",
|
|
@@ -9422,8 +9503,8 @@ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationOutcomeSchema = strictO
|
|
|
9422
9503
|
});
|
|
9423
9504
|
const spaceDispatchTraceRuntimeCoordinatorHeadPublicationExhaustionSchema = strictObject({
|
|
9424
9505
|
attemptCount: int().positive(),
|
|
9425
|
-
exhaustedAt: ISO_DATE_TIME_SCHEMA$
|
|
9426
|
-
lastFailureAt: ISO_DATE_TIME_SCHEMA$
|
|
9506
|
+
exhaustedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9507
|
+
lastFailureAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9427
9508
|
lastReasonCode: string().trim().min(1).max(160),
|
|
9428
9509
|
reasonCode: literal("runtime_coordinator.publication_retry_exhausted"),
|
|
9429
9510
|
status: literal("publication_exhausted")
|
|
@@ -9433,62 +9514,62 @@ const spaceDispatchTraceRuntimeCoordinatorHeadTargetDisplaySchema = strictObject
|
|
|
9433
9514
|
targetProfileName: string().min(1).max(64).nullable()
|
|
9434
9515
|
});
|
|
9435
9516
|
const spaceDispatchTraceRuntimeCoordinatorHeadOfflineWaitingBoundarySchema = strictObject({
|
|
9436
|
-
deadlineAt: ISO_DATE_TIME_SCHEMA$
|
|
9517
|
+
deadlineAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9437
9518
|
deadlineOutcome: literal("publication_intent_ready"),
|
|
9438
|
-
observedAt: ISO_DATE_TIME_SCHEMA$
|
|
9519
|
+
observedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9439
9520
|
reasonCode: literal("daemon.profile.offline"),
|
|
9440
|
-
softDeadlineAt: ISO_DATE_TIME_SCHEMA$
|
|
9521
|
+
softDeadlineAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9441
9522
|
trigger: literal("openmeld_service_route_connected"),
|
|
9442
9523
|
triggerOwner: literal("runtime_coordinator"),
|
|
9443
9524
|
userRecoveryAction: literal("start_or_restart_openmeld_service"),
|
|
9444
9525
|
userVisibleState: literal("waiting_for_openmeld_service"),
|
|
9445
9526
|
waitingCategory: literal("service_not_connected"),
|
|
9446
9527
|
waitingFor: literal("openmeld_service_route_connection"),
|
|
9447
|
-
waitingSince: ISO_DATE_TIME_SCHEMA$
|
|
9528
|
+
waitingSince: ISO_DATE_TIME_SCHEMA$2
|
|
9448
9529
|
});
|
|
9449
9530
|
const spaceDispatchTraceRuntimeCoordinatorHeadWaitingBoundarySchema = discriminatedUnion("reasonCode", [spaceDispatchTraceRuntimeCoordinatorHeadOfflineWaitingBoundarySchema, strictObject({
|
|
9450
|
-
deadlineAt: ISO_DATE_TIME_SCHEMA$
|
|
9531
|
+
deadlineAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9451
9532
|
deadlineOutcome: literal("publication_intent_ready"),
|
|
9452
|
-
observedAt: ISO_DATE_TIME_SCHEMA$
|
|
9533
|
+
observedAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9453
9534
|
reasonCode: literal("daemon.profile.pending_first_report"),
|
|
9454
|
-
softDeadlineAt: ISO_DATE_TIME_SCHEMA$
|
|
9535
|
+
softDeadlineAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9455
9536
|
trigger: literal("wake_route_reported"),
|
|
9456
9537
|
triggerOwner: literal("runtime_coordinator"),
|
|
9457
9538
|
userRecoveryAction: literal("wait_for_wake_route_report"),
|
|
9458
9539
|
userVisibleState: literal("waiting_for_wake_route_report"),
|
|
9459
9540
|
waitingCategory: literal("wake_route_registration_pending"),
|
|
9460
9541
|
waitingFor: literal("wake_route_report"),
|
|
9461
|
-
waitingSince: ISO_DATE_TIME_SCHEMA$
|
|
9542
|
+
waitingSince: ISO_DATE_TIME_SCHEMA$2
|
|
9462
9543
|
})]);
|
|
9463
9544
|
const spaceDispatchTraceRuntimeCoordinatorHeadFoundCommonShape = {
|
|
9464
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9545
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9465
9546
|
duplicateDispatchCount: int().min(0),
|
|
9466
9547
|
executionLinkedAt: nullableIsoDateTimeSchema$2,
|
|
9467
9548
|
factSource: literal("runtime_coordinator_head_lifecycle"),
|
|
9468
9549
|
modelVersion: literal("openmeld.runtime_coordinator.head_lifecycle.v1"),
|
|
9469
|
-
ownerUserId: trimmedNonEmptyStringSchema$
|
|
9470
|
-
primaryDispatchId: trimmedNonEmptyStringSchema$
|
|
9550
|
+
ownerUserId: trimmedNonEmptyStringSchema$2,
|
|
9551
|
+
primaryDispatchId: trimmedNonEmptyStringSchema$2,
|
|
9471
9552
|
publicationExhaustion: spaceDispatchTraceRuntimeCoordinatorHeadPublicationExhaustionSchema.optional(),
|
|
9472
9553
|
publicationOutcome: spaceDispatchTraceRuntimeCoordinatorHeadPublicationOutcomeSchema.optional(),
|
|
9473
9554
|
readStatus: literal("found"),
|
|
9474
9555
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),
|
|
9475
9556
|
status: publishedRuntimeCoordinatorHeadLifecycleStatusSchema,
|
|
9476
9557
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema,
|
|
9477
|
-
targetWakeLifecycleId: trimmedNonEmptyStringSchema$
|
|
9558
|
+
targetWakeLifecycleId: trimmedNonEmptyStringSchema$2.max(2048),
|
|
9478
9559
|
targetDisplay: spaceDispatchTraceRuntimeCoordinatorHeadTargetDisplaySchema.optional(),
|
|
9479
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
9560
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$2
|
|
9480
9561
|
};
|
|
9481
9562
|
const spaceDispatchTraceRuntimeCoordinatorHeadMissingSchema = strictObject({
|
|
9482
9563
|
factSource: literal("runtime_coordinator_head_lifecycle"),
|
|
9483
9564
|
readStatus: literal("missing"),
|
|
9484
9565
|
reasonCode: literal("runtime_coordinator.head_lifecycle_not_found"),
|
|
9485
|
-
targetWakeLifecycleId: trimmedNonEmptyStringSchema$
|
|
9566
|
+
targetWakeLifecycleId: trimmedNonEmptyStringSchema$2.max(2048)
|
|
9486
9567
|
});
|
|
9487
9568
|
const spaceDispatchTraceRuntimeCoordinatorHeadAuthorityUnavailableSchema = strictObject({
|
|
9488
9569
|
factSource: literal("runtime_coordinator_head_lifecycle"),
|
|
9489
9570
|
readStatus: literal("authority_unavailable"),
|
|
9490
|
-
reasonCode: trimmedNonEmptyStringSchema$
|
|
9491
|
-
targetWakeLifecycleId: trimmedNonEmptyStringSchema$
|
|
9571
|
+
reasonCode: trimmedNonEmptyStringSchema$2.max(160),
|
|
9572
|
+
targetWakeLifecycleId: trimmedNonEmptyStringSchema$2.max(2048)
|
|
9492
9573
|
});
|
|
9493
9574
|
const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleV1Schema = discriminatedUnion("readStatus", [
|
|
9494
9575
|
strictObject({
|
|
@@ -9538,7 +9619,7 @@ const spaceDispatchTraceStructuredActionFailureSchema = strictObject({
|
|
|
9538
9619
|
spaceActionParseError: nullableTrimmedStringSchema$2
|
|
9539
9620
|
});
|
|
9540
9621
|
const spaceDispatchTraceOpenClawGatewayVisibilitySchema = strictObject({
|
|
9541
|
-
agentId: trimmedNonEmptyStringSchema$
|
|
9622
|
+
agentId: trimmedNonEmptyStringSchema$2,
|
|
9542
9623
|
gatewayRestartAttempted: boolean(),
|
|
9543
9624
|
gatewayVisibility: enumFactory([
|
|
9544
9625
|
"missing_after_restart",
|
|
@@ -10278,11 +10359,11 @@ function expectNullTraceEvidence(context, actual, path) {
|
|
|
10278
10359
|
}
|
|
10279
10360
|
//#endregion
|
|
10280
10361
|
//#region ../../packages/schemas/dist/schemas/http/center-agent.js
|
|
10281
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
10282
|
-
const trimmedNonEmptyStringSchema$
|
|
10283
|
-
const nullableTrimmedStringSchema$1 = union([trimmedNonEmptyStringSchema$
|
|
10284
|
-
const nullableIsoDateTimeSchema$1 = union([ISO_DATE_TIME_SCHEMA$
|
|
10285
|
-
const nullableDiagnosticTextSchema = union([trimmedNonEmptyStringSchema$
|
|
10362
|
+
const ISO_DATE_TIME_SCHEMA$1 = iso.datetime({ offset: true });
|
|
10363
|
+
const trimmedNonEmptyStringSchema$1 = string().trim().min(1);
|
|
10364
|
+
const nullableTrimmedStringSchema$1 = union([trimmedNonEmptyStringSchema$1, nullFactory()]);
|
|
10365
|
+
const nullableIsoDateTimeSchema$1 = union([ISO_DATE_TIME_SCHEMA$1, nullFactory()]);
|
|
10366
|
+
const nullableDiagnosticTextSchema = union([trimmedNonEmptyStringSchema$1.max(512), nullFactory()]);
|
|
10286
10367
|
const CENTER_AGENT_REFERENCE_OVERLAP_MESSAGE = "A profile cannot be both a Wake target and a Reference target.";
|
|
10287
10368
|
function findCenterAgentReferenceOverlapIndex(input) {
|
|
10288
10369
|
const executableProfileIds = new Set(input.activationTargets);
|
|
@@ -10367,15 +10448,15 @@ const centerAgentConnectorActionAuditOutcomeSchema = enumFactory([
|
|
|
10367
10448
|
"outcome_unknown"
|
|
10368
10449
|
]);
|
|
10369
10450
|
strictObject({
|
|
10370
|
-
actionId: trimmedNonEmptyStringSchema$
|
|
10371
|
-
operationId: trimmedNonEmptyStringSchema$
|
|
10451
|
+
actionId: trimmedNonEmptyStringSchema$1.max(160),
|
|
10452
|
+
operationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10372
10453
|
outcome: centerAgentConnectorActionAuditOutcomeSchema,
|
|
10373
10454
|
service: connectorServiceSchema,
|
|
10374
10455
|
speakerMember: centerAgentToolSpeakerSchema
|
|
10375
10456
|
});
|
|
10376
10457
|
const centerAgentResourceSchema = strictObject({
|
|
10377
|
-
type: trimmedNonEmptyStringSchema$
|
|
10378
|
-
id: trimmedNonEmptyStringSchema$
|
|
10458
|
+
type: trimmedNonEmptyStringSchema$1,
|
|
10459
|
+
id: trimmedNonEmptyStringSchema$1
|
|
10379
10460
|
});
|
|
10380
10461
|
const centerAgentOnBehalfOfInputSchema = strictObject({ profileId: openMeldRuntimeProfileIdSchema });
|
|
10381
10462
|
const centerAgentAttributionSchema = strictObject({
|
|
@@ -10383,7 +10464,7 @@ const centerAgentAttributionSchema = strictObject({
|
|
|
10383
10464
|
onBehalfOf: strictObject({
|
|
10384
10465
|
profileId: openMeldRuntimeProfileIdSchema,
|
|
10385
10466
|
userId: nullableTrimmedStringSchema$1,
|
|
10386
|
-
displayName: trimmedNonEmptyStringSchema$
|
|
10467
|
+
displayName: trimmedNonEmptyStringSchema$1
|
|
10387
10468
|
}).nullable()
|
|
10388
10469
|
});
|
|
10389
10470
|
strictObject({
|
|
@@ -10398,22 +10479,22 @@ const centerAgentConnectorActionOperationStatusSchema = enumFactory([
|
|
|
10398
10479
|
]);
|
|
10399
10480
|
const centerAgentConnectorActionExecutionConnectionSchema = strictObject({
|
|
10400
10481
|
connectionName: connectorConnectionNameSchema,
|
|
10401
|
-
ownerDisplayName: trimmedNonEmptyStringSchema$
|
|
10402
|
-
ownerUserId: trimmedNonEmptyStringSchema$
|
|
10482
|
+
ownerDisplayName: trimmedNonEmptyStringSchema$1,
|
|
10483
|
+
ownerUserId: trimmedNonEmptyStringSchema$1,
|
|
10403
10484
|
scope: connectorConnectionScopeSchema,
|
|
10404
10485
|
service: connectorServiceSchema
|
|
10405
10486
|
});
|
|
10406
10487
|
strictObject({
|
|
10407
|
-
actionId: trimmedNonEmptyStringSchema$
|
|
10408
|
-
operationId: trimmedNonEmptyStringSchema$
|
|
10488
|
+
actionId: trimmedNonEmptyStringSchema$1.max(160),
|
|
10489
|
+
operationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10409
10490
|
service: connectorServiceSchema,
|
|
10410
10491
|
speakerMember: centerAgentToolSpeakerSchema
|
|
10411
10492
|
});
|
|
10412
10493
|
strictObject({ operation: strictObject({
|
|
10413
|
-
actionId: trimmedNonEmptyStringSchema$
|
|
10494
|
+
actionId: trimmedNonEmptyStringSchema$1.max(160),
|
|
10414
10495
|
connectionName: connectorConnectionNameSchema,
|
|
10415
10496
|
executionConnection: centerAgentConnectorActionExecutionConnectionSchema.nullable().optional(),
|
|
10416
|
-
operationId: trimmedNonEmptyStringSchema$
|
|
10497
|
+
operationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10417
10498
|
service: connectorServiceSchema,
|
|
10418
10499
|
status: centerAgentConnectorActionOperationStatusSchema
|
|
10419
10500
|
}).superRefine((value, context) => {
|
|
@@ -10424,9 +10505,9 @@ strictObject({ operation: strictObject({
|
|
|
10424
10505
|
});
|
|
10425
10506
|
}).nullable() });
|
|
10426
10507
|
strictObject({
|
|
10427
|
-
actionId: trimmedNonEmptyStringSchema$
|
|
10508
|
+
actionId: trimmedNonEmptyStringSchema$1.max(160),
|
|
10428
10509
|
connectionName: connectorConnectionNameSchema,
|
|
10429
|
-
operationId: trimmedNonEmptyStringSchema$
|
|
10510
|
+
operationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10430
10511
|
outcome: centerAgentConnectorActionAuditOutcomeSchema,
|
|
10431
10512
|
providerExecutionId: nullableTrimmedStringSchema$1,
|
|
10432
10513
|
requestSignature: string().regex(/^[0-9a-f]{64}$/),
|
|
@@ -10442,25 +10523,25 @@ strictObject({
|
|
|
10442
10523
|
strictObject({
|
|
10443
10524
|
attribution: centerAgentAttributionSchema,
|
|
10444
10525
|
executionConnection: centerAgentConnectorActionExecutionConnectionSchema.nullable().optional(),
|
|
10445
|
-
operationId: trimmedNonEmptyStringSchema$
|
|
10526
|
+
operationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10446
10527
|
providerExecutionId: nullableTrimmedStringSchema$1,
|
|
10447
10528
|
recorded: literal(true),
|
|
10448
10529
|
replayed: boolean(),
|
|
10449
10530
|
status: centerAgentConnectorActionOperationStatusSchema
|
|
10450
10531
|
});
|
|
10451
10532
|
const centerAgentDesignationSchema = strictObject({
|
|
10452
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10533
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10453
10534
|
agentProfileId: agentProfileIdSchema,
|
|
10454
10535
|
duty: nullFactory(),
|
|
10455
|
-
designatedBy: trimmedNonEmptyStringSchema$
|
|
10456
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
10536
|
+
designatedBy: trimmedNonEmptyStringSchema$1,
|
|
10537
|
+
createdAt: ISO_DATE_TIME_SCHEMA$1
|
|
10457
10538
|
});
|
|
10458
10539
|
const centerAgentModelConfigurationResponseSchema = strictObject({
|
|
10459
10540
|
canManage: boolean(),
|
|
10460
10541
|
choices: array(centerAgentModelChoiceSchema).min(1),
|
|
10461
10542
|
configurationRevision: number().int().nonnegative(),
|
|
10462
10543
|
effectiveModel: centerAgentModelSummarySchema,
|
|
10463
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10544
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10464
10545
|
preference: centerAgentModelPreferenceSchema
|
|
10465
10546
|
});
|
|
10466
10547
|
const updateCenterAgentModelBodySchema = strictObject({
|
|
@@ -10484,19 +10565,19 @@ const centerAgentSlackWorkspaceConnectionSchema = strictObject({
|
|
|
10484
10565
|
workspaceName: nullableTrimmedStringSchema$1
|
|
10485
10566
|
});
|
|
10486
10567
|
const getCenterAgentDesignationResponseSchema = strictObject({
|
|
10487
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10568
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10488
10569
|
designation: centerAgentDesignationSchema.nullable(),
|
|
10489
10570
|
remoteRuntimeAvailability: centerAgentRemoteRuntimeAvailabilitySchema.optional(),
|
|
10490
10571
|
slackConnection: centerAgentSlackWorkspaceConnectionSchema.optional()
|
|
10491
10572
|
});
|
|
10492
|
-
const centerAgentSlackWorkspaceConnectBodySchema = strictObject({ slackTeamId: trimmedNonEmptyStringSchema$
|
|
10573
|
+
const centerAgentSlackWorkspaceConnectBodySchema = strictObject({ slackTeamId: trimmedNonEmptyStringSchema$1 });
|
|
10493
10574
|
const centerAgentSlackWorkspaceConnectionResponseSchema = strictObject({
|
|
10494
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10575
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10495
10576
|
slackConnection: centerAgentSlackWorkspaceConnectionSchema
|
|
10496
10577
|
});
|
|
10497
10578
|
const centerAgentSlackWorkspaceDisconnectResponseSchema = strictObject({
|
|
10498
10579
|
disconnected: boolean(),
|
|
10499
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10580
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10500
10581
|
slackConnection: centerAgentSlackWorkspaceConnectionSchema
|
|
10501
10582
|
});
|
|
10502
10583
|
const slackIdentityLinkTokenSchema = string().trim().regex(/^slacklink_[0-9a-f]{64}$/);
|
|
@@ -10504,15 +10585,15 @@ const slackIdentityLinkPreviewBodySchema = strictObject({ token: slackIdentityLi
|
|
|
10504
10585
|
const slackIdentityLinkPreviewResponseSchema = strictObject({
|
|
10505
10586
|
alreadyMember: boolean().default(true),
|
|
10506
10587
|
continuesRequest: boolean().default(true),
|
|
10507
|
-
expiresAt: ISO_DATE_TIME_SCHEMA$
|
|
10508
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10509
|
-
organizationName: trimmedNonEmptyStringSchema$
|
|
10588
|
+
expiresAt: ISO_DATE_TIME_SCHEMA$1,
|
|
10589
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10590
|
+
organizationName: trimmedNonEmptyStringSchema$1,
|
|
10510
10591
|
slackAccountEmail: email().nullable().default(null),
|
|
10511
|
-
slackDisplayName: trimmedNonEmptyStringSchema$
|
|
10512
|
-
slackTeamId: trimmedNonEmptyStringSchema$
|
|
10513
|
-
slackUserId: trimmedNonEmptyStringSchema$
|
|
10514
|
-
slackWorkspaceLabel: trimmedNonEmptyStringSchema$
|
|
10515
|
-
openMeldAccountEmail: trimmedNonEmptyStringSchema$
|
|
10592
|
+
slackDisplayName: trimmedNonEmptyStringSchema$1,
|
|
10593
|
+
slackTeamId: trimmedNonEmptyStringSchema$1,
|
|
10594
|
+
slackUserId: trimmedNonEmptyStringSchema$1,
|
|
10595
|
+
slackWorkspaceLabel: trimmedNonEmptyStringSchema$1,
|
|
10596
|
+
openMeldAccountEmail: trimmedNonEmptyStringSchema$1,
|
|
10516
10597
|
replacesExistingLink: boolean().default(false)
|
|
10517
10598
|
});
|
|
10518
10599
|
const slackIdentityLinkConsumeBodySchema = strictObject({
|
|
@@ -10524,27 +10605,27 @@ const slackIdentityLinkConsumeResponseSchema = strictObject({
|
|
|
10524
10605
|
continued: boolean().default(false),
|
|
10525
10606
|
joinedOrganization: boolean().default(false),
|
|
10526
10607
|
linked: literal(true),
|
|
10527
|
-
openMeldProfileId: trimmedNonEmptyStringSchema$
|
|
10528
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10529
|
-
organizationName: trimmedNonEmptyStringSchema$
|
|
10530
|
-
organizationSlug: trimmedNonEmptyStringSchema$
|
|
10531
|
-
slackDisplayName: trimmedNonEmptyStringSchema$
|
|
10532
|
-
slackTeamId: trimmedNonEmptyStringSchema$
|
|
10608
|
+
openMeldProfileId: trimmedNonEmptyStringSchema$1.nullable().default(null),
|
|
10609
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10610
|
+
organizationName: trimmedNonEmptyStringSchema$1,
|
|
10611
|
+
organizationSlug: trimmedNonEmptyStringSchema$1.nullable().default(null),
|
|
10612
|
+
slackDisplayName: trimmedNonEmptyStringSchema$1,
|
|
10613
|
+
slackTeamId: trimmedNonEmptyStringSchema$1,
|
|
10533
10614
|
slackThreadPermalink: slackMessagePermalinkSchema.nullable().optional(),
|
|
10534
|
-
slackUserId: trimmedNonEmptyStringSchema$
|
|
10615
|
+
slackUserId: trimmedNonEmptyStringSchema$1,
|
|
10535
10616
|
replacedExistingLink: boolean().default(false),
|
|
10536
|
-
openMeldUserId: trimmedNonEmptyStringSchema$
|
|
10617
|
+
openMeldUserId: trimmedNonEmptyStringSchema$1
|
|
10537
10618
|
});
|
|
10538
10619
|
strictObject({
|
|
10539
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10540
|
-
userId: trimmedNonEmptyStringSchema$
|
|
10620
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10621
|
+
userId: trimmedNonEmptyStringSchema$1
|
|
10541
10622
|
});
|
|
10542
10623
|
discriminatedUnion("ok", [strictObject({
|
|
10543
10624
|
alreadyMember: boolean(),
|
|
10544
10625
|
ok: literal(true),
|
|
10545
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10546
|
-
organizationName: trimmedNonEmptyStringSchema$
|
|
10547
|
-
organizationSlug: trimmedNonEmptyStringSchema$
|
|
10626
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10627
|
+
organizationName: trimmedNonEmptyStringSchema$1,
|
|
10628
|
+
organizationSlug: trimmedNonEmptyStringSchema$1,
|
|
10548
10629
|
role: enumFactory([
|
|
10549
10630
|
"owner",
|
|
10550
10631
|
"admin",
|
|
@@ -10558,24 +10639,24 @@ discriminatedUnion("ok", [strictObject({
|
|
|
10558
10639
|
"slack.workspace_member_enrollment.organization_inactive",
|
|
10559
10640
|
"slack.workspace_member_enrollment.personal_organization"
|
|
10560
10641
|
]),
|
|
10561
|
-
message: trimmedNonEmptyStringSchema$
|
|
10642
|
+
message: trimmedNonEmptyStringSchema$1,
|
|
10562
10643
|
ok: literal(false)
|
|
10563
10644
|
})]);
|
|
10564
10645
|
strictObject({
|
|
10565
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10646
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10566
10647
|
provider: enumFactory([
|
|
10567
10648
|
"feishu",
|
|
10568
10649
|
"lark",
|
|
10569
10650
|
"slack"
|
|
10570
10651
|
]),
|
|
10571
|
-
userId: trimmedNonEmptyStringSchema$
|
|
10652
|
+
userId: trimmedNonEmptyStringSchema$1
|
|
10572
10653
|
});
|
|
10573
10654
|
discriminatedUnion("ok", [strictObject({
|
|
10574
10655
|
alreadyMember: boolean(),
|
|
10575
10656
|
ok: literal(true),
|
|
10576
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10577
|
-
organizationName: trimmedNonEmptyStringSchema$
|
|
10578
|
-
organizationSlug: trimmedNonEmptyStringSchema$
|
|
10657
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10658
|
+
organizationName: trimmedNonEmptyStringSchema$1,
|
|
10659
|
+
organizationSlug: trimmedNonEmptyStringSchema$1,
|
|
10579
10660
|
role: enumFactory([
|
|
10580
10661
|
"owner",
|
|
10581
10662
|
"admin",
|
|
@@ -10589,7 +10670,7 @@ discriminatedUnion("ok", [strictObject({
|
|
|
10589
10670
|
"message_channel.member_enrollment.organization_inactive",
|
|
10590
10671
|
"message_channel.member_enrollment.personal_organization"
|
|
10591
10672
|
]),
|
|
10592
|
-
message: trimmedNonEmptyStringSchema$
|
|
10673
|
+
message: trimmedNonEmptyStringSchema$1,
|
|
10593
10674
|
ok: literal(false)
|
|
10594
10675
|
})]);
|
|
10595
10676
|
const designateCenterAgentBodySchema = strictObject({
|
|
@@ -10597,7 +10678,7 @@ const designateCenterAgentBodySchema = strictObject({
|
|
|
10597
10678
|
runtime: enumFactory(["self_hosted", "remote_agent"]).default("self_hosted")
|
|
10598
10679
|
});
|
|
10599
10680
|
const designateCenterAgentResponseSchema = strictObject({
|
|
10600
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10681
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10601
10682
|
designation: centerAgentDesignationSchema,
|
|
10602
10683
|
status: enumFactory([
|
|
10603
10684
|
"designated",
|
|
@@ -10609,7 +10690,7 @@ const centerAgentOperatingStateSchema = enumFactory(["active", "paused"]);
|
|
|
10609
10690
|
const getCenterAgentOperatingStateResponseSchema = strictObject({
|
|
10610
10691
|
canChangeOperatingState: boolean(),
|
|
10611
10692
|
operatingState: centerAgentOperatingStateSchema,
|
|
10612
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10693
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10613
10694
|
pausedAt: nullableIsoDateTimeSchema$1
|
|
10614
10695
|
});
|
|
10615
10696
|
const updateCenterAgentOperatingStateBodySchema = strictObject({ operatingState: centerAgentOperatingStateSchema });
|
|
@@ -10617,23 +10698,23 @@ const updateCenterAgentOperatingStateResponseSchema = getCenterAgentOperatingSta
|
|
|
10617
10698
|
affectedTaskCount: number().int().nonnegative(),
|
|
10618
10699
|
changed: boolean()
|
|
10619
10700
|
});
|
|
10620
|
-
const centerAgentUpdateProfileBodySchema = strictObject({ profileName: trimmedNonEmptyStringSchema$
|
|
10701
|
+
const centerAgentUpdateProfileBodySchema = strictObject({ profileName: trimmedNonEmptyStringSchema$1 });
|
|
10621
10702
|
const centerAgentUpdateProfileResponseSchema = strictObject({
|
|
10622
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10703
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10623
10704
|
profile: authProfileViewSchema
|
|
10624
10705
|
});
|
|
10625
10706
|
const centerAgentAuditJournalEntrySchema = strictObject({
|
|
10626
|
-
id: trimmedNonEmptyStringSchema$
|
|
10627
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10707
|
+
id: trimmedNonEmptyStringSchema$1,
|
|
10708
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10628
10709
|
actorProfileId: openMeldRuntimeProfileIdSchema,
|
|
10629
10710
|
action: centerAgentActionSchema,
|
|
10630
10711
|
onBehalfOf: strictObject({
|
|
10631
10712
|
profileId: openMeldRuntimeProfileIdSchema,
|
|
10632
10713
|
userId: nullableTrimmedStringSchema$1,
|
|
10633
|
-
displayName: trimmedNonEmptyStringSchema$
|
|
10714
|
+
displayName: trimmedNonEmptyStringSchema$1
|
|
10634
10715
|
}).nullable(),
|
|
10635
10716
|
interactionSource: strictObject({
|
|
10636
|
-
client: trimmedNonEmptyStringSchema$
|
|
10717
|
+
client: trimmedNonEmptyStringSchema$1.max(80),
|
|
10637
10718
|
kind: literal("local_agent")
|
|
10638
10719
|
}).optional(),
|
|
10639
10720
|
contextManifest: strictObject({
|
|
@@ -10644,11 +10725,11 @@ const centerAgentAuditJournalEntrySchema = strictObject({
|
|
|
10644
10725
|
contextLoad: strictObject({
|
|
10645
10726
|
estimatedTokens: number().int().nonnegative(),
|
|
10646
10727
|
includedMessages: number().int().min(1).max(50),
|
|
10647
|
-
manifestId: trimmedNonEmptyStringSchema$
|
|
10728
|
+
manifestId: trimmedNonEmptyStringSchema$1
|
|
10648
10729
|
}).optional(),
|
|
10649
10730
|
resource: centerAgentResourceSchema.nullable(),
|
|
10650
|
-
sourceSpaceId: trimmedNonEmptyStringSchema$
|
|
10651
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
10731
|
+
sourceSpaceId: trimmedNonEmptyStringSchema$1.nullable().optional(),
|
|
10732
|
+
createdAt: ISO_DATE_TIME_SCHEMA$1
|
|
10652
10733
|
});
|
|
10653
10734
|
const listCenterAgentAuditJournalQuerySchema = strictObject({
|
|
10654
10735
|
actionSet: enumFactory([
|
|
@@ -10676,7 +10757,7 @@ const listCenterAgentAuditJournalQuerySchema = strictObject({
|
|
|
10676
10757
|
limit: coerce.number().int().min(1).max(200).optional()
|
|
10677
10758
|
});
|
|
10678
10759
|
const listCenterAgentAuditJournalResponseSchema = strictObject({
|
|
10679
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10760
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10680
10761
|
entries: array(centerAgentAuditJournalEntrySchema)
|
|
10681
10762
|
});
|
|
10682
10763
|
strictObject({
|
|
@@ -10703,25 +10784,25 @@ strictObject({
|
|
|
10703
10784
|
};
|
|
10704
10785
|
});
|
|
10705
10786
|
strictObject({
|
|
10706
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
10787
|
+
profileName: trimmedNonEmptyStringSchema$1,
|
|
10707
10788
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional()
|
|
10708
10789
|
});
|
|
10709
10790
|
strictObject({ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional() });
|
|
10710
10791
|
strictObject({
|
|
10711
10792
|
agentProfileIds: array(agentProfileIdSchema).min(1).max(100),
|
|
10712
10793
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
10713
|
-
password: trimmedNonEmptyStringSchema$
|
|
10714
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10794
|
+
password: trimmedNonEmptyStringSchema$1.optional(),
|
|
10795
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
10715
10796
|
});
|
|
10716
10797
|
strictObject({
|
|
10717
|
-
memberUserIds: array(trimmedNonEmptyStringSchema$
|
|
10718
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10798
|
+
memberUserIds: array(trimmedNonEmptyStringSchema$1).min(1).max(100),
|
|
10799
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
10719
10800
|
speakerMember: centerAgentToolSpeakerSchema
|
|
10720
10801
|
});
|
|
10721
10802
|
strictObject({
|
|
10722
10803
|
agentProfileIds: array(agentProfileIdSchema).min(1).max(100),
|
|
10723
10804
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
10724
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10805
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
10725
10806
|
});
|
|
10726
10807
|
const centerAgentSpaceContextScopeSchema = enumFactory([
|
|
10727
10808
|
"source",
|
|
@@ -10736,13 +10817,13 @@ const centerAgentSpaceContextAnchorByScope = {
|
|
|
10736
10817
|
thread: "threadId"
|
|
10737
10818
|
};
|
|
10738
10819
|
strictObject({
|
|
10739
|
-
afterSignalId: trimmedNonEmptyStringSchema$
|
|
10820
|
+
afterSignalId: trimmedNonEmptyStringSchema$1.optional(),
|
|
10740
10821
|
limit: number().int().min(1).max(100).optional(),
|
|
10741
10822
|
requestedAddressingModel: literal("wake_reference_mention").optional(),
|
|
10742
10823
|
scope: centerAgentSpaceContextScopeSchema.optional(),
|
|
10743
|
-
sourceSignalId: trimmedNonEmptyStringSchema$
|
|
10744
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10745
|
-
threadId: trimmedNonEmptyStringSchema$
|
|
10824
|
+
sourceSignalId: trimmedNonEmptyStringSchema$1.optional(),
|
|
10825
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
10826
|
+
threadId: trimmedNonEmptyStringSchema$1.optional()
|
|
10746
10827
|
}).superRefine((value, context) => {
|
|
10747
10828
|
const requiredAnchor = value.scope ? centerAgentSpaceContextAnchorByScope[value.scope] : null;
|
|
10748
10829
|
if (requiredAnchor && !value[requiredAnchor]) context.addIssue({
|
|
@@ -10761,17 +10842,17 @@ strictObject({
|
|
|
10761
10842
|
});
|
|
10762
10843
|
});
|
|
10763
10844
|
strictObject({
|
|
10764
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
10845
|
+
dispatchId: trimmedNonEmptyStringSchema$1.optional(),
|
|
10765
10846
|
limit: number().int().min(1).max(20).optional(),
|
|
10766
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10767
|
-
targetProfileId: trimmedNonEmptyStringSchema$
|
|
10847
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
10848
|
+
targetProfileId: trimmedNonEmptyStringSchema$1.optional()
|
|
10768
10849
|
});
|
|
10769
10850
|
strictObject({
|
|
10770
10851
|
files: spaceMessageFileReferencesSchema.optional(),
|
|
10771
10852
|
mentionProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
|
|
10772
10853
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
10773
10854
|
referenceProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
|
|
10774
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10855
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
10775
10856
|
text: string().trim().min(1).max(MAX_TEXT_LENGTH$1)
|
|
10776
10857
|
}).superRefine((value, context) => {
|
|
10777
10858
|
const referenceProfileIds = new Set(value.referenceProfileIds ?? []);
|
|
@@ -10783,19 +10864,19 @@ strictObject({
|
|
|
10783
10864
|
});
|
|
10784
10865
|
});
|
|
10785
10866
|
const centerAgentRemoteAgentExecutionPublicationSourceSchema = strictObject({
|
|
10786
|
-
executionId: trimmedNonEmptyStringSchema$
|
|
10867
|
+
executionId: trimmedNonEmptyStringSchema$1.max(512),
|
|
10787
10868
|
kind: literal("remote_agent_execution"),
|
|
10788
|
-
operationId: trimmedNonEmptyStringSchema$
|
|
10869
|
+
operationId: trimmedNonEmptyStringSchema$1.max(256).optional()
|
|
10789
10870
|
});
|
|
10790
10871
|
const centerAgentPublicationSourceSchema = discriminatedUnion("kind", [
|
|
10791
10872
|
strictObject({
|
|
10792
|
-
documentId: trimmedNonEmptyStringSchema$
|
|
10873
|
+
documentId: trimmedNonEmptyStringSchema$1.max(256),
|
|
10793
10874
|
kind: literal("organization_document")
|
|
10794
10875
|
}),
|
|
10795
10876
|
centerAgentRemoteAgentExecutionPublicationSourceSchema,
|
|
10796
10877
|
strictObject({
|
|
10797
10878
|
kind: literal("routine_run"),
|
|
10798
|
-
runId: trimmedNonEmptyStringSchema$
|
|
10879
|
+
runId: trimmedNonEmptyStringSchema$1.max(256)
|
|
10799
10880
|
})
|
|
10800
10881
|
]);
|
|
10801
10882
|
const centerAgentSlackMessageCommonBodyFields = {
|
|
@@ -10804,7 +10885,7 @@ const centerAgentSlackMessageCommonBodyFields = {
|
|
|
10804
10885
|
};
|
|
10805
10886
|
strictObject({
|
|
10806
10887
|
...centerAgentSlackMessageCommonBodyFields,
|
|
10807
|
-
channelName: trimmedNonEmptyStringSchema$
|
|
10888
|
+
channelName: trimmedNonEmptyStringSchema$1.max(80),
|
|
10808
10889
|
publicationSource: centerAgentPublicationSourceSchema.optional()
|
|
10809
10890
|
});
|
|
10810
10891
|
union([strictObject({
|
|
@@ -10813,18 +10894,18 @@ union([strictObject({
|
|
|
10813
10894
|
threadPermalink: slackThreadPublicationPermalinkSchema
|
|
10814
10895
|
}), strictObject({
|
|
10815
10896
|
...centerAgentSlackMessageCommonBodyFields,
|
|
10816
|
-
channelName: trimmedNonEmptyStringSchema$
|
|
10897
|
+
channelName: trimmedNonEmptyStringSchema$1.max(80),
|
|
10817
10898
|
publicationSource: centerAgentRemoteAgentExecutionPublicationSourceSchema,
|
|
10818
10899
|
threadTs: string().trim().regex(/^\d+\.\d+$/).max(32)
|
|
10819
10900
|
})]);
|
|
10820
10901
|
const centerAgentSlackFilePublicationCommonFields = {
|
|
10821
10902
|
contentBase64: string().max(CENTER_AGENT_SLACK_FILE_MAX_BASE64_CHARACTERS).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u),
|
|
10822
10903
|
contentSha256: string().regex(/^[0-9a-f]{64}$/u),
|
|
10823
|
-
fileName: trimmedNonEmptyStringSchema$
|
|
10904
|
+
fileName: trimmedNonEmptyStringSchema$1.max(255),
|
|
10824
10905
|
initialComment: string().trim().min(1).max(MAX_TEXT_LENGTH$1).optional(),
|
|
10825
10906
|
publicationSource: centerAgentRemoteAgentExecutionPublicationSourceSchema,
|
|
10826
10907
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
10827
|
-
title: trimmedNonEmptyStringSchema$
|
|
10908
|
+
title: trimmedNonEmptyStringSchema$1.max(255).optional()
|
|
10828
10909
|
};
|
|
10829
10910
|
union([
|
|
10830
10911
|
strictObject({
|
|
@@ -10833,7 +10914,7 @@ union([
|
|
|
10833
10914
|
}),
|
|
10834
10915
|
strictObject({
|
|
10835
10916
|
...centerAgentSlackFilePublicationCommonFields,
|
|
10836
|
-
channelName: trimmedNonEmptyStringSchema$
|
|
10917
|
+
channelName: trimmedNonEmptyStringSchema$1.max(80)
|
|
10837
10918
|
}),
|
|
10838
10919
|
strictObject({
|
|
10839
10920
|
...centerAgentSlackFilePublicationCommonFields,
|
|
@@ -10842,7 +10923,7 @@ union([
|
|
|
10842
10923
|
]);
|
|
10843
10924
|
strictObject({
|
|
10844
10925
|
includeBots: boolean().optional(),
|
|
10845
|
-
query: trimmedNonEmptyStringSchema$
|
|
10926
|
+
query: trimmedNonEmptyStringSchema$1.max(500),
|
|
10846
10927
|
searchAuthorization: remoteAgentSlackSearchAuthorizationSchema,
|
|
10847
10928
|
speakerMember: centerAgentToolSpeakerSchema
|
|
10848
10929
|
});
|
|
@@ -10860,7 +10941,7 @@ strictObject({
|
|
|
10860
10941
|
mentionProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
|
|
10861
10942
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
10862
10943
|
referenceProfileIds: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
|
|
10863
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10944
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
10864
10945
|
text: string().trim().min(1).max(MAX_TEXT_LENGTH$1)
|
|
10865
10946
|
}).superRefine((value, context) => {
|
|
10866
10947
|
const otherAddressingProfileIds = /* @__PURE__ */ new Set([
|
|
@@ -10910,19 +10991,19 @@ strictObject({
|
|
|
10910
10991
|
strictObject({
|
|
10911
10992
|
activationTargets: array(agentProfileIdSchema).min(1),
|
|
10912
10993
|
attribution: centerAgentAttributionSchema,
|
|
10913
|
-
clientMessageId: trimmedNonEmptyStringSchema$
|
|
10994
|
+
clientMessageId: trimmedNonEmptyStringSchema$1,
|
|
10914
10995
|
completionMode: centerAgentDelegationCompletionModeSchema,
|
|
10915
10996
|
context: openMeldRequestContextSchema,
|
|
10916
|
-
delegationId: trimmedNonEmptyStringSchema$
|
|
10997
|
+
delegationId: trimmedNonEmptyStringSchema$1,
|
|
10917
10998
|
fallbackAgentProfileId: agentProfileIdSchema.nullable(),
|
|
10918
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
10919
|
-
parentSubmissionId: trimmedNonEmptyStringSchema$
|
|
10999
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11000
|
+
parentSubmissionId: trimmedNonEmptyStringSchema$1,
|
|
10920
11001
|
profile: profileSchema,
|
|
10921
11002
|
mentionTargets: array(openMeldRuntimeProfileIdSchema).max(25).default([]),
|
|
10922
11003
|
referenceTargets: array(openMeldRuntimeProfileIdSchema).max(25).default([]),
|
|
10923
11004
|
spaceAddressingVersion: literal("1").optional(),
|
|
10924
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
10925
|
-
subscriptionIds: array(trimmedNonEmptyStringSchema$
|
|
11005
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11006
|
+
subscriptionIds: array(trimmedNonEmptyStringSchema$1).min(1),
|
|
10926
11007
|
text: string().trim().min(1).max(MAX_TEXT_LENGTH$1),
|
|
10927
11008
|
v: literal(1)
|
|
10928
11009
|
}).superRefine((value, context) => {
|
|
@@ -10952,7 +11033,7 @@ strictObject({
|
|
|
10952
11033
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
10953
11034
|
password: spacePasswordSchema.optional(),
|
|
10954
11035
|
purpose: string().optional(),
|
|
10955
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11036
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
10956
11037
|
}).superRefine((value, ctx) => {
|
|
10957
11038
|
if (value.accessMode === void 0 && value.guide === void 0 && value.purpose === void 0) ctx.addIssue({
|
|
10958
11039
|
code: "custom",
|
|
@@ -10992,24 +11073,24 @@ const centerAgentProductOperationStepSchema = strictObject({
|
|
|
10992
11073
|
"failed",
|
|
10993
11074
|
"skipped"
|
|
10994
11075
|
]),
|
|
10995
|
-
message: trimmedNonEmptyStringSchema$
|
|
10996
|
-
nextAction: trimmedNonEmptyStringSchema$
|
|
11076
|
+
message: trimmedNonEmptyStringSchema$1.optional(),
|
|
11077
|
+
nextAction: trimmedNonEmptyStringSchema$1.optional()
|
|
10997
11078
|
});
|
|
10998
11079
|
const centerAgentLocalAgentConnectionCandidateSchema = strictObject({
|
|
10999
|
-
agentControllerRef: trimmedNonEmptyStringSchema$
|
|
11000
|
-
agentDisplayName: trimmedNonEmptyStringSchema$
|
|
11001
|
-
candidateId: trimmedNonEmptyStringSchema$
|
|
11080
|
+
agentControllerRef: trimmedNonEmptyStringSchema$1,
|
|
11081
|
+
agentDisplayName: trimmedNonEmptyStringSchema$1,
|
|
11082
|
+
candidateId: trimmedNonEmptyStringSchema$1,
|
|
11002
11083
|
connectable: boolean(),
|
|
11003
|
-
deviceDisplayName: trimmedNonEmptyStringSchema$
|
|
11004
|
-
deviceId: trimmedNonEmptyStringSchema$
|
|
11084
|
+
deviceDisplayName: trimmedNonEmptyStringSchema$1,
|
|
11085
|
+
deviceId: trimmedNonEmptyStringSchema$1,
|
|
11005
11086
|
freshness: enumFactory([
|
|
11006
11087
|
"fresh",
|
|
11007
11088
|
"stale",
|
|
11008
11089
|
"unknown"
|
|
11009
11090
|
]),
|
|
11010
11091
|
lastObservedAtMs: number().int().nonnegative().nullable(),
|
|
11011
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
11012
|
-
runtimeLane: trimmedNonEmptyStringSchema$
|
|
11092
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$1),
|
|
11093
|
+
runtimeLane: trimmedNonEmptyStringSchema$1,
|
|
11013
11094
|
status: enumFactory([
|
|
11014
11095
|
"ready",
|
|
11015
11096
|
"not_ready",
|
|
@@ -11019,12 +11100,12 @@ const centerAgentLocalAgentConnectionCandidateSchema = strictObject({
|
|
|
11019
11100
|
openMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema
|
|
11020
11101
|
});
|
|
11021
11102
|
const centerAgentComputerSetupOptionSchema = strictObject({
|
|
11022
|
-
connectedComputerId: trimmedNonEmptyStringSchema$
|
|
11023
|
-
deviceDisplayName: trimmedNonEmptyStringSchema$
|
|
11024
|
-
deviceId: trimmedNonEmptyStringSchema$
|
|
11103
|
+
connectedComputerId: trimmedNonEmptyStringSchema$1.nullable(),
|
|
11104
|
+
deviceDisplayName: trimmedNonEmptyStringSchema$1,
|
|
11105
|
+
deviceId: trimmedNonEmptyStringSchema$1,
|
|
11025
11106
|
isCurrent: boolean(),
|
|
11026
11107
|
lastObservedAtMs: number().int().nonnegative().nullable(),
|
|
11027
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
11108
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$1),
|
|
11028
11109
|
recommendedMode: computerSetupModeSchema.nullable(),
|
|
11029
11110
|
status: enumFactory([
|
|
11030
11111
|
"connected",
|
|
@@ -11042,7 +11123,7 @@ const centerAgentComputerSetupOptionSchema = strictObject({
|
|
|
11042
11123
|
strictObject({});
|
|
11043
11124
|
strictObject({
|
|
11044
11125
|
candidates: array(centerAgentLocalAgentConnectionCandidateSchema),
|
|
11045
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11126
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
11046
11127
|
});
|
|
11047
11128
|
strictObject({
|
|
11048
11129
|
includeDiagnostics: boolean().optional(),
|
|
@@ -11052,11 +11133,11 @@ strictObject({
|
|
|
11052
11133
|
strictObject({
|
|
11053
11134
|
computers: array(centerAgentComputerSetupOptionSchema),
|
|
11054
11135
|
diagnostics: ownerComputerDiagnosticsSchema.optional(),
|
|
11055
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11136
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
11056
11137
|
});
|
|
11057
11138
|
strictObject({ speakerMember: centerAgentToolSpeakerSchema });
|
|
11058
11139
|
strictObject({
|
|
11059
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11140
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11060
11141
|
result: requestCurrentOpenMeldToolsUpdateResponseSchema
|
|
11061
11142
|
});
|
|
11062
11143
|
strictObject({
|
|
@@ -11064,26 +11145,26 @@ strictObject({
|
|
|
11064
11145
|
speakerMember: centerAgentToolSpeakerSchema
|
|
11065
11146
|
});
|
|
11066
11147
|
strictObject({
|
|
11067
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11148
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11068
11149
|
result: setCurrentOpenMeldToolsMaintenanceResponseSchema
|
|
11069
11150
|
});
|
|
11070
11151
|
strictObject({
|
|
11071
|
-
agentId: trimmedNonEmptyStringSchema$
|
|
11152
|
+
agentId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11072
11153
|
speakerMember: centerAgentToolSpeakerSchema
|
|
11073
11154
|
});
|
|
11074
|
-
currentLocalAgentInstallationsResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$
|
|
11155
|
+
currentLocalAgentInstallationsResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$1 });
|
|
11075
11156
|
strictObject({
|
|
11076
|
-
agentId: trimmedNonEmptyStringSchema$
|
|
11157
|
+
agentId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11077
11158
|
confirmed: literal(true),
|
|
11078
|
-
installationId: trimmedNonEmptyStringSchema$
|
|
11159
|
+
installationId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11079
11160
|
speakerMember: centerAgentToolSpeakerSchema
|
|
11080
11161
|
});
|
|
11081
|
-
selectCurrentLocalAgentInstallationResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$
|
|
11162
|
+
selectCurrentLocalAgentInstallationResponseSchema.extend({ organizationId: trimmedNonEmptyStringSchema$1 });
|
|
11082
11163
|
strictObject({
|
|
11083
11164
|
includeUsageLimits: literal("true").optional(),
|
|
11084
|
-
memberUserId: trimmedNonEmptyStringSchema$
|
|
11165
|
+
memberUserId: trimmedNonEmptyStringSchema$1
|
|
11085
11166
|
});
|
|
11086
|
-
organizationComputersResponseSchema.extend({ memberUserId: trimmedNonEmptyStringSchema$
|
|
11167
|
+
organizationComputersResponseSchema.extend({ memberUserId: trimmedNonEmptyStringSchema$1 }).superRefine((value, context) => {
|
|
11087
11168
|
value.computers.forEach((computer, index) => {
|
|
11088
11169
|
if (computer.ownerUserId !== value.memberUserId) context.addIssue({
|
|
11089
11170
|
code: "custom",
|
|
@@ -11100,20 +11181,20 @@ strictObject({
|
|
|
11100
11181
|
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11101
11182
|
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11102
11183
|
agentProfileId: agentProfileIdSchema,
|
|
11103
|
-
candidateId: trimmedNonEmptyStringSchema$
|
|
11104
|
-
modelId: trimmedNonEmptyStringSchema$
|
|
11184
|
+
candidateId: trimmedNonEmptyStringSchema$1,
|
|
11185
|
+
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11105
11186
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11106
11187
|
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11107
|
-
reasoningLevel: trimmedNonEmptyStringSchema$
|
|
11188
|
+
reasoningLevel: trimmedNonEmptyStringSchema$1.optional()
|
|
11108
11189
|
});
|
|
11109
11190
|
strictObject({
|
|
11110
11191
|
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11111
11192
|
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11112
11193
|
agentProfileId: agentProfileIdSchema,
|
|
11113
|
-
modelId: trimmedNonEmptyStringSchema$
|
|
11194
|
+
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11114
11195
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11115
11196
|
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11116
|
-
reasoningLevel: trimmedNonEmptyStringSchema$
|
|
11197
|
+
reasoningLevel: trimmedNonEmptyStringSchema$1.optional(),
|
|
11117
11198
|
workspaceMode: profileWorkspaceModeSchema.optional(),
|
|
11118
11199
|
workspacePath: profileWorkingDirectorySchema.optional()
|
|
11119
11200
|
}).superRefine((value, ctx) => {
|
|
@@ -11137,14 +11218,14 @@ strictObject({ onBehalfOf: centerAgentOnBehalfOfInputSchema.optional() });
|
|
|
11137
11218
|
strictObject({
|
|
11138
11219
|
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
11139
11220
|
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
11140
|
-
candidateId: trimmedNonEmptyStringSchema$
|
|
11221
|
+
candidateId: trimmedNonEmptyStringSchema$1,
|
|
11141
11222
|
configuration: agentProfileCreationPreferenceSelectionSchema.optional(),
|
|
11142
|
-
modelId: trimmedNonEmptyStringSchema$
|
|
11223
|
+
modelId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11143
11224
|
onBehalfOf: centerAgentOnBehalfOfInputSchema.optional(),
|
|
11144
11225
|
openCodePermission: agentProfileBindingOpenCodePermissionSchema.optional(),
|
|
11145
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
11146
|
-
reasoningLevel: trimmedNonEmptyStringSchema$
|
|
11147
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11226
|
+
profileName: trimmedNonEmptyStringSchema$1,
|
|
11227
|
+
reasoningLevel: trimmedNonEmptyStringSchema$1.optional(),
|
|
11228
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11148
11229
|
workspaceMode: profileWorkspaceModeSchema.optional(),
|
|
11149
11230
|
workspacePath: profileWorkingDirectorySchema.optional()
|
|
11150
11231
|
}).superRefine((value, ctx) => {
|
|
@@ -11162,13 +11243,13 @@ strictObject({
|
|
|
11162
11243
|
const centerAgentCheckAgentProfileReadinessResponseSchema = strictObject({
|
|
11163
11244
|
agentProfileId: agentProfileIdSchema,
|
|
11164
11245
|
blockers: array(strictObject({
|
|
11165
|
-
reasonCode: trimmedNonEmptyStringSchema$
|
|
11166
|
-
explanation: trimmedNonEmptyStringSchema$
|
|
11246
|
+
reasonCode: trimmedNonEmptyStringSchema$1,
|
|
11247
|
+
explanation: trimmedNonEmptyStringSchema$1
|
|
11167
11248
|
})),
|
|
11168
11249
|
canReply: boolean(),
|
|
11169
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11250
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11170
11251
|
readiness: getAgentExecutionReadinessResponseSchema,
|
|
11171
|
-
summary: trimmedNonEmptyStringSchema$
|
|
11252
|
+
summary: trimmedNonEmptyStringSchema$1
|
|
11172
11253
|
});
|
|
11173
11254
|
const centerAgentProductOperationStatusSchema = enumFactory(["completed", "blocked"]);
|
|
11174
11255
|
const centerAgentConnectAgentProfileToLocalAgentResponseSchema = strictObject({
|
|
@@ -11176,7 +11257,7 @@ const centerAgentConnectAgentProfileToLocalAgentResponseSchema = strictObject({
|
|
|
11176
11257
|
binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
|
|
11177
11258
|
canReply: boolean(),
|
|
11178
11259
|
candidate: centerAgentLocalAgentConnectionCandidateSchema.optional(),
|
|
11179
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11260
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11180
11261
|
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
11181
11262
|
status: centerAgentProductOperationStatusSchema,
|
|
11182
11263
|
steps: array(centerAgentProductOperationStepSchema)
|
|
@@ -11185,7 +11266,7 @@ strictObject({
|
|
|
11185
11266
|
agentProfileId: agentProfileIdSchema,
|
|
11186
11267
|
binding: ensureAgentProfilePrimaryBindingResponseSchema.optional(),
|
|
11187
11268
|
canReply: boolean(),
|
|
11188
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11269
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11189
11270
|
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
11190
11271
|
status: centerAgentProductOperationStatusSchema,
|
|
11191
11272
|
steps: array(centerAgentProductOperationStepSchema),
|
|
@@ -11195,22 +11276,22 @@ strictObject({
|
|
|
11195
11276
|
agentProfileId: agentProfileIdSchema.optional(),
|
|
11196
11277
|
canReply: boolean(),
|
|
11197
11278
|
connection: centerAgentConnectAgentProfileToLocalAgentResponseSchema.optional(),
|
|
11198
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11279
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11199
11280
|
profile: authProfileViewSchema.optional(),
|
|
11200
11281
|
readiness: centerAgentCheckAgentProfileReadinessResponseSchema.optional(),
|
|
11201
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11282
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11202
11283
|
status: centerAgentProductOperationStatusSchema,
|
|
11203
11284
|
steps: array(centerAgentProductOperationStepSchema),
|
|
11204
11285
|
workspace: setCurrentAgentProfileWorkspaceResponseSchema.optional()
|
|
11205
11286
|
});
|
|
11206
11287
|
const centerAgentConciergeActionResponseSchema = strictObject({
|
|
11207
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11288
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11208
11289
|
attribution: centerAgentAttributionSchema,
|
|
11209
11290
|
resource: centerAgentResourceSchema.nullable()
|
|
11210
11291
|
});
|
|
11211
11292
|
centerAgentConciergeActionResponseSchema.extend({
|
|
11212
11293
|
meta: spaceMetaSchema.optional(),
|
|
11213
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11294
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
11214
11295
|
});
|
|
11215
11296
|
centerAgentConciergeActionResponseSchema.extend({ profile: authProfileViewSchema });
|
|
11216
11297
|
centerAgentConciergeActionResponseSchema.extend({
|
|
@@ -11219,49 +11300,49 @@ centerAgentConciergeActionResponseSchema.extend({
|
|
|
11219
11300
|
});
|
|
11220
11301
|
centerAgentConciergeActionResponseSchema.extend({
|
|
11221
11302
|
agentProfileIds: array(agentProfileIdSchema),
|
|
11222
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11303
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11223
11304
|
membership: postSpaceMembersResponseSchema
|
|
11224
11305
|
});
|
|
11225
11306
|
const centerAgentAddMembersToSpaceResultSchema = discriminatedUnion("status", [strictObject({
|
|
11226
|
-
memberUserId: trimmedNonEmptyStringSchema$
|
|
11307
|
+
memberUserId: trimmedNonEmptyStringSchema$1,
|
|
11227
11308
|
profileId: openMeldRuntimeProfileIdSchema,
|
|
11228
11309
|
status: enumFactory(["added", "already_member"])
|
|
11229
11310
|
}), strictObject({
|
|
11230
11311
|
code: enumFactory(["not_organization_member", "active_human_profile_required"]),
|
|
11231
|
-
memberUserId: trimmedNonEmptyStringSchema$
|
|
11232
|
-
message: trimmedNonEmptyStringSchema$
|
|
11312
|
+
memberUserId: trimmedNonEmptyStringSchema$1,
|
|
11313
|
+
message: trimmedNonEmptyStringSchema$1,
|
|
11233
11314
|
status: literal("rejected")
|
|
11234
11315
|
})]);
|
|
11235
11316
|
centerAgentConciergeActionResponseSchema.extend({
|
|
11236
11317
|
membership: postSpaceMembersResponseSchema,
|
|
11237
11318
|
results: array(centerAgentAddMembersToSpaceResultSchema),
|
|
11238
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11319
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
11239
11320
|
});
|
|
11240
11321
|
centerAgentConciergeActionResponseSchema.extend({
|
|
11241
11322
|
agentProfileIds: array(agentProfileIdSchema),
|
|
11242
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11323
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11243
11324
|
membership: removeSpaceMembersResponseSchema
|
|
11244
11325
|
});
|
|
11245
11326
|
const centerAgentSpaceContextBaseResponseShape = {
|
|
11246
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11247
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11327
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11328
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
11248
11329
|
};
|
|
11249
11330
|
const centerAgentProgressiveSpaceContextSchema = discriminatedUnion("scope", [
|
|
11250
11331
|
strictObject({
|
|
11251
11332
|
scope: literal("source"),
|
|
11252
11333
|
signals: array(signalEnvelopeSchema).max(1),
|
|
11253
|
-
sourceSignalId: trimmedNonEmptyStringSchema$
|
|
11334
|
+
sourceSignalId: trimmedNonEmptyStringSchema$1,
|
|
11254
11335
|
threadContext: union([spaceThreadContextSchema, nullFactory()]),
|
|
11255
11336
|
truncated: literal(false)
|
|
11256
11337
|
}),
|
|
11257
11338
|
strictObject({
|
|
11258
11339
|
scope: literal("thread"),
|
|
11259
11340
|
signals: array(signalEnvelopeSchema).max(100),
|
|
11260
|
-
threadId: trimmedNonEmptyStringSchema$
|
|
11341
|
+
threadId: trimmedNonEmptyStringSchema$1,
|
|
11261
11342
|
truncated: boolean()
|
|
11262
11343
|
}),
|
|
11263
11344
|
strictObject({
|
|
11264
|
-
afterSignalId: trimmedNonEmptyStringSchema$
|
|
11345
|
+
afterSignalId: trimmedNonEmptyStringSchema$1,
|
|
11265
11346
|
scope: literal("delta"),
|
|
11266
11347
|
signals: array(signalEnvelopeSchema).max(100),
|
|
11267
11348
|
truncated: boolean()
|
|
@@ -11280,9 +11361,9 @@ union([strictObject({
|
|
|
11280
11361
|
context: centerAgentProgressiveSpaceContextSchema
|
|
11281
11362
|
})]);
|
|
11282
11363
|
const centerAgentDispatchHistoryLatestAttemptSchema = strictObject({
|
|
11283
|
-
attemptId: trimmedNonEmptyStringSchema$
|
|
11364
|
+
attemptId: trimmedNonEmptyStringSchema$1,
|
|
11284
11365
|
attemptNo: int().min(1),
|
|
11285
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
11366
|
+
createdAt: ISO_DATE_TIME_SCHEMA$1,
|
|
11286
11367
|
errorCode: nullableTrimmedStringSchema$1,
|
|
11287
11368
|
errorMessage: nullableDiagnosticTextSchema,
|
|
11288
11369
|
finishedAt: nullableIsoDateTimeSchema$1,
|
|
@@ -11292,20 +11373,20 @@ const centerAgentDispatchHistoryLatestAttemptSchema = strictObject({
|
|
|
11292
11373
|
strictObject({
|
|
11293
11374
|
entries: array(strictObject({
|
|
11294
11375
|
attemptCount: int().min(0),
|
|
11295
|
-
dispatchId: trimmedNonEmptyStringSchema$
|
|
11296
|
-
firstSeenAt: ISO_DATE_TIME_SCHEMA$
|
|
11297
|
-
lastAttemptAt: ISO_DATE_TIME_SCHEMA$
|
|
11376
|
+
dispatchId: trimmedNonEmptyStringSchema$1,
|
|
11377
|
+
firstSeenAt: ISO_DATE_TIME_SCHEMA$1,
|
|
11378
|
+
lastAttemptAt: ISO_DATE_TIME_SCHEMA$1,
|
|
11298
11379
|
latestAttempt: union([centerAgentDispatchHistoryLatestAttemptSchema, nullFactory()]),
|
|
11299
11380
|
status: spaceDispatchTraceDispatchStatusSchema,
|
|
11300
|
-
targetProfileId: trimmedNonEmptyStringSchema$
|
|
11381
|
+
targetProfileId: trimmedNonEmptyStringSchema$1
|
|
11301
11382
|
})),
|
|
11302
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11303
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11383
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11384
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
11304
11385
|
});
|
|
11305
11386
|
centerAgentConciergeActionResponseSchema.extend({
|
|
11306
11387
|
accessModeState: spaceAccessModeStateSchema.optional(),
|
|
11307
11388
|
meta: spaceMetaSchema.optional(),
|
|
11308
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11389
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
11309
11390
|
});
|
|
11310
11391
|
discriminatedUnion("addressingModel", [strictObject({
|
|
11311
11392
|
addressingModel: literal("wake_reference"),
|
|
@@ -11317,25 +11398,25 @@ discriminatedUnion("addressingModel", [strictObject({
|
|
|
11317
11398
|
})]);
|
|
11318
11399
|
centerAgentConciergeActionResponseSchema.extend({
|
|
11319
11400
|
signal: signalTextEnvelopeSchema,
|
|
11320
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11401
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
11321
11402
|
});
|
|
11322
11403
|
strictObject({
|
|
11323
11404
|
attribution: centerAgentAttributionSchema,
|
|
11324
|
-
channelName: trimmedNonEmptyStringSchema$
|
|
11405
|
+
channelName: trimmedNonEmptyStringSchema$1.max(80),
|
|
11325
11406
|
joinedChannel: boolean(),
|
|
11326
|
-
messageTs: trimmedNonEmptyStringSchema$
|
|
11327
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11407
|
+
messageTs: trimmedNonEmptyStringSchema$1,
|
|
11408
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
11328
11409
|
});
|
|
11329
11410
|
strictObject({
|
|
11330
11411
|
attribution: centerAgentAttributionSchema,
|
|
11331
|
-
channelName: trimmedNonEmptyStringSchema$
|
|
11412
|
+
channelName: trimmedNonEmptyStringSchema$1.max(80),
|
|
11332
11413
|
file: slackFileMetadataSchema,
|
|
11333
11414
|
joinedChannel: boolean(),
|
|
11334
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11415
|
+
organizationId: trimmedNonEmptyStringSchema$1
|
|
11335
11416
|
});
|
|
11336
11417
|
const centerAgentSlackSearchFailureSchema = strictObject({
|
|
11337
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11338
|
-
reason: trimmedNonEmptyStringSchema$
|
|
11418
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11419
|
+
reason: trimmedNonEmptyStringSchema$1.max(500),
|
|
11339
11420
|
retryAfterSeconds: number().int().nonnegative().optional(),
|
|
11340
11421
|
status: enumFactory([
|
|
11341
11422
|
"authorization_expired",
|
|
@@ -11345,36 +11426,36 @@ const centerAgentSlackSearchFailureSchema = strictObject({
|
|
|
11345
11426
|
])
|
|
11346
11427
|
});
|
|
11347
11428
|
const centerAgentSlackSearchEvidenceItemSchema = strictObject({
|
|
11348
|
-
authorName: trimmedNonEmptyStringSchema$
|
|
11349
|
-
authorUserId: trimmedNonEmptyStringSchema$
|
|
11350
|
-
channelId: trimmedNonEmptyStringSchema$
|
|
11351
|
-
channelName: trimmedNonEmptyStringSchema$
|
|
11352
|
-
content: trimmedNonEmptyStringSchema$
|
|
11429
|
+
authorName: trimmedNonEmptyStringSchema$1.max(256),
|
|
11430
|
+
authorUserId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11431
|
+
channelId: trimmedNonEmptyStringSchema$1.max(256),
|
|
11432
|
+
channelName: trimmedNonEmptyStringSchema$1.max(256),
|
|
11433
|
+
content: trimmedNonEmptyStringSchema$1.max(2e3),
|
|
11353
11434
|
isAuthorBot: boolean(),
|
|
11354
|
-
messageTs: trimmedNonEmptyStringSchema$
|
|
11435
|
+
messageTs: trimmedNonEmptyStringSchema$1.max(64),
|
|
11355
11436
|
permalink: slackMessagePermalinkSchema
|
|
11356
11437
|
});
|
|
11357
11438
|
discriminatedUnion("status", [strictObject({
|
|
11358
11439
|
messages: array(centerAgentSlackSearchEvidenceItemSchema.extend({ contextMessages: array(centerAgentSlackSearchEvidenceItemSchema).max(2) })).max(8),
|
|
11359
11440
|
moreResultsAvailable: boolean(),
|
|
11360
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11441
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11361
11442
|
status: literal("found")
|
|
11362
11443
|
}), centerAgentSlackSearchFailureSchema]);
|
|
11363
11444
|
const centerAgentWakeAgentProfilesInSpaceResponseBaseSchema = centerAgentConciergeActionResponseSchema.extend({
|
|
11364
11445
|
agentProfileIds: array(agentProfileIdSchema),
|
|
11365
11446
|
childTasks: array(strictObject({
|
|
11366
11447
|
completionCondition: literal("terminal"),
|
|
11367
|
-
subscriptionId: trimmedNonEmptyStringSchema$
|
|
11448
|
+
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11368
11449
|
task: spaceWakeAgentTaskHandleSchema
|
|
11369
11450
|
})).optional(),
|
|
11370
|
-
delegationId: trimmedNonEmptyStringSchema$
|
|
11451
|
+
delegationId: trimmedNonEmptyStringSchema$1.optional(),
|
|
11371
11452
|
fallbackTask: strictObject({
|
|
11372
|
-
activationSubscriptionId: trimmedNonEmptyStringSchema$
|
|
11453
|
+
activationSubscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11373
11454
|
completionCondition: literal("terminal"),
|
|
11374
|
-
subscriptionId: trimmedNonEmptyStringSchema$
|
|
11455
|
+
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11375
11456
|
task: spaceWakeAgentTaskHandleSchema
|
|
11376
11457
|
}).optional(),
|
|
11377
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11458
|
+
spaceId: trimmedNonEmptyStringSchema$1
|
|
11378
11459
|
});
|
|
11379
11460
|
union([centerAgentWakeAgentProfilesInSpaceResponseBaseSchema.extend({
|
|
11380
11461
|
publicationStatus: literal("accepted").optional(),
|
|
@@ -11423,9 +11504,9 @@ centerAgentConciergeActionResponseSchema.extend({
|
|
|
11423
11504
|
"condition_not_met"
|
|
11424
11505
|
]),
|
|
11425
11506
|
outcome: union([agentTaskCompletionObservationSchema, nullFactory()]),
|
|
11426
|
-
subscriptionId: trimmedNonEmptyStringSchema$
|
|
11507
|
+
subscriptionId: trimmedNonEmptyStringSchema$1,
|
|
11427
11508
|
task: agentTaskHandleSchema,
|
|
11428
|
-
watchId: trimmedNonEmptyStringSchema$
|
|
11509
|
+
watchId: trimmedNonEmptyStringSchema$1
|
|
11429
11510
|
});
|
|
11430
11511
|
const centerAgentListAgentTaskSchema = strictObject({
|
|
11431
11512
|
outcome: union([agentTaskTerminalOutcomeSchema, nullFactory()]),
|
|
@@ -11436,36 +11517,18 @@ const centerAgentListAgentTaskSchema = strictObject({
|
|
|
11436
11517
|
});
|
|
11437
11518
|
strictObject({
|
|
11438
11519
|
hasMore: boolean(),
|
|
11439
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11520
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11440
11521
|
tasks: array(centerAgentListAgentTaskSchema).max(20)
|
|
11441
11522
|
});
|
|
11442
11523
|
centerAgentConciergeActionResponseSchema.extend({ invited: literal(true) });
|
|
11443
11524
|
const openCenterAgentDirectMessageSpaceResponseSchema = strictObject({
|
|
11444
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
11525
|
+
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11445
11526
|
centerAgentProfileId: agentProfileIdSchema,
|
|
11446
11527
|
memberProfileId: openMeldRuntimeProfileIdSchema,
|
|
11447
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
11528
|
+
spaceId: trimmedNonEmptyStringSchema$1,
|
|
11448
11529
|
created: boolean()
|
|
11449
11530
|
});
|
|
11450
11531
|
//#endregion
|
|
11451
|
-
//#region ../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js
|
|
11452
|
-
const CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = "center_agent_direct_message_space";
|
|
11453
|
-
const ISO_DATE_TIME_SCHEMA$1 = z$1.iso.datetime({ offset: true });
|
|
11454
|
-
const trimmedNonEmptyStringSchema$1 = z$1.string().trim().min(1);
|
|
11455
|
-
const centerAgentDirectMessageSpaceProjectionSchema = z$1.strictObject({
|
|
11456
|
-
centerAgentProfileId: trimmedNonEmptyStringSchema$1,
|
|
11457
|
-
isCenterAgentDirectMessageSpace: z$1.literal(true),
|
|
11458
|
-
kind: z$1.literal(CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND),
|
|
11459
|
-
memberProfileId: trimmedNonEmptyStringSchema$1,
|
|
11460
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11461
|
-
spaceId: trimmedNonEmptyStringSchema$1
|
|
11462
|
-
});
|
|
11463
|
-
const getCenterAgentDirectMessageSpaceProjectionResponseSchema = z$1.strictObject({
|
|
11464
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$1,
|
|
11465
|
-
organizationId: trimmedNonEmptyStringSchema$1,
|
|
11466
|
-
projection: z$1.union([centerAgentDirectMessageSpaceProjectionSchema, z$1.null()])
|
|
11467
|
-
});
|
|
11468
|
-
//#endregion
|
|
11469
11532
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-memory.js
|
|
11470
11533
|
const boundedIdentifierSchema$1 = z$1.string().trim().min(1).max(256);
|
|
11471
11534
|
const CENTER_AGENT_ORGANIZATION_MEMORY_FACT_MAX_CHARS = 1200;
|
|
@@ -13588,6 +13651,7 @@ function buildAccountSpaceIndexPath(input) {
|
|
|
13588
13651
|
if (input.includeRecentlyDeletedItems === true) url.searchParams.set("includeRecentlyDeletedItems", "true");
|
|
13589
13652
|
if (input.includeDirectMessageProfileIds === true) url.searchParams.set("includeDirectMessageProfileIds", "true");
|
|
13590
13653
|
if (input.includePurposes === true) url.searchParams.set("includePurposes", "true");
|
|
13654
|
+
if (input.includeMemberPreviews === true) url.searchParams.set("includeMemberPreviews", "true");
|
|
13591
13655
|
return `${url.pathname}${url.search}`;
|
|
13592
13656
|
}
|
|
13593
13657
|
const createAccountSpaceIndexApi = (client) => {
|
|
@@ -13992,6 +14056,12 @@ function buildCenterAgentAuditJournalPath() {
|
|
|
13992
14056
|
function buildCenterAgentDirectMessageSpacePath() {
|
|
13993
14057
|
return "/v1/organizations/current/center-agent/dm-space";
|
|
13994
14058
|
}
|
|
14059
|
+
function buildCenterAgentSessionsPath() {
|
|
14060
|
+
return "/v1/organizations/current/center-agent/sessions";
|
|
14061
|
+
}
|
|
14062
|
+
function buildCenterAgentSessionPath(spaceId) {
|
|
14063
|
+
return `${buildCenterAgentSessionsPath()}/${encodeURIComponent(spaceId)}`;
|
|
14064
|
+
}
|
|
13995
14065
|
function buildCenterAgentContextManifestPath() {
|
|
13996
14066
|
return "/v1/organizations/current/center-agent/context-manifests";
|
|
13997
14067
|
}
|
|
@@ -14179,6 +14249,7 @@ const createCenterAgentApi = (client) => ({
|
|
|
14179
14249
|
const request = validateContextManifestInput(input);
|
|
14180
14250
|
return await client.requestJson({
|
|
14181
14251
|
body: JSON.stringify({
|
|
14252
|
+
...request.spaceId === void 0 ? {} : { spaceId: request.spaceId },
|
|
14182
14253
|
...request.cursor === void 0 ? {} : { cursor: request.cursor },
|
|
14183
14254
|
limit: request.limit,
|
|
14184
14255
|
maxContextTokens: request.maxContextTokens,
|
|
@@ -14214,6 +14285,55 @@ const createCenterAgentApi = (client) => ({
|
|
|
14214
14285
|
url: buildCenterAgentContextLoadReceiptPath(request.manifestId)
|
|
14215
14286
|
});
|
|
14216
14287
|
},
|
|
14288
|
+
createSession: async (input) => {
|
|
14289
|
+
const body = createCenterAgentSessionBodySchema.safeParse({ creationId: input.creationId });
|
|
14290
|
+
if (!body.success) throw new Error("Provide a valid session creation ID.");
|
|
14291
|
+
return await client.requestJson({
|
|
14292
|
+
url: buildCenterAgentSessionsPath(),
|
|
14293
|
+
operation: "center_agent.session.create",
|
|
14294
|
+
method: "POST",
|
|
14295
|
+
headers: { "content-type": "application/json" },
|
|
14296
|
+
body: JSON.stringify(body.data),
|
|
14297
|
+
requestContext: validateRequestInput$1(input).requestContext,
|
|
14298
|
+
signal: input.signal,
|
|
14299
|
+
timeoutMs: input.timeoutMs,
|
|
14300
|
+
schema: openCenterAgentDirectMessageSpaceResponseSchema,
|
|
14301
|
+
invalidMessage: "Invalid Center Agent session response."
|
|
14302
|
+
});
|
|
14303
|
+
},
|
|
14304
|
+
listSessions: async (input = {}) => {
|
|
14305
|
+
const parsed = listCenterAgentSessionsQuerySchema.safeParse({
|
|
14306
|
+
...input.cursor === void 0 ? {} : { cursor: input.cursor },
|
|
14307
|
+
...input.limit === void 0 ? {} : { limit: input.limit }
|
|
14308
|
+
});
|
|
14309
|
+
if (!parsed.success) throw new Error("Provide a valid chat-list cursor and limit.");
|
|
14310
|
+
const query = new URLSearchParams({ limit: String(parsed.data.limit) });
|
|
14311
|
+
if (parsed.data.cursor !== void 0) query.set("cursor", parsed.data.cursor);
|
|
14312
|
+
return await client.requestJson({
|
|
14313
|
+
url: `${buildCenterAgentSessionsPath()}?${query.toString()}`,
|
|
14314
|
+
operation: "center_agent.session.list",
|
|
14315
|
+
method: "GET",
|
|
14316
|
+
requestContext: validateRequestInput$1(input).requestContext,
|
|
14317
|
+
signal: input.signal,
|
|
14318
|
+
timeoutMs: input.timeoutMs,
|
|
14319
|
+
schema: listCenterAgentSessionsResponseSchema,
|
|
14320
|
+
invalidMessage: "Invalid Center Agent chat list."
|
|
14321
|
+
});
|
|
14322
|
+
},
|
|
14323
|
+
getSession: async (input) => {
|
|
14324
|
+
const selector = centerAgentSessionSelectorSchema.safeParse({ spaceId: input.spaceId });
|
|
14325
|
+
if (!selector.success) throw new Error("Provide a valid session ID.");
|
|
14326
|
+
return await client.requestJson({
|
|
14327
|
+
url: buildCenterAgentSessionPath(selector.data.spaceId),
|
|
14328
|
+
operation: "center_agent.session.read",
|
|
14329
|
+
method: "GET",
|
|
14330
|
+
requestContext: validateRequestInput$1(input).requestContext,
|
|
14331
|
+
signal: input.signal,
|
|
14332
|
+
timeoutMs: input.timeoutMs,
|
|
14333
|
+
schema: getCenterAgentDirectMessageSpaceProjectionResponseSchema,
|
|
14334
|
+
invalidMessage: "Invalid Center Agent session response."
|
|
14335
|
+
});
|
|
14336
|
+
},
|
|
14217
14337
|
openDirectMessageSpace: async (input = {}) => await client.requestJson({
|
|
14218
14338
|
url: buildCenterAgentDirectMessageSpacePath(),
|
|
14219
14339
|
operation: "center_agent.dm_space.open",
|
|
@@ -14241,6 +14361,7 @@ function validateRequestInput$1(input) {
|
|
|
14241
14361
|
}
|
|
14242
14362
|
function validateContextManifestInput(input) {
|
|
14243
14363
|
const parsed = createCenterAgentContextManifestBodySchema.safeParse({
|
|
14364
|
+
...input.spaceId === void 0 ? {} : { spaceId: input.spaceId },
|
|
14244
14365
|
...input.cursor === void 0 ? {} : { cursor: input.cursor },
|
|
14245
14366
|
...input.limit === void 0 ? {} : { limit: input.limit },
|
|
14246
14367
|
...input.maxContextTokens === void 0 ? {} : { maxContextTokens: input.maxContextTokens },
|
|
@@ -18237,6 +18358,6 @@ function composeAbortSignals(parent, timeout) {
|
|
|
18237
18358
|
};
|
|
18238
18359
|
}
|
|
18239
18360
|
//#endregion
|
|
18240
|
-
export {
|
|
18361
|
+
export { buildInboxItemReadPath as $, projectOwnerComputerLocalRuntimes as $n, spaceMemberDirectoryEntrySchema as $r, createOrganizationDocumentsApi as $t, buildComputerFileAccessReadPath as A, parseEnvelope as An, createCenterAgentRoutineResponseSchema as Ar, buildSpaceAttachmentDownloadPath as At, buildCurrentOrganizationMessageChannelPath as B, getSpaceUpdatesResponseSchema as Bn, agentActivityProviderSchema as Br, createCenterAgentTasksApi as Bt, buildCenterAgentSessionPath as C, toCompatibleSpaceAddressingRequestWireValue as Ci, updateSpaceFileEntry as Cn, authProfileKindSchema as Cr, buildProjectsPath as Ct, buildCenterAgentTaskRetryPath as D, DAEMON_STREAM_KEEPALIVE_PING as Dn, organizationComputersResponseSchema as Dr, buildRoutineRunsPath as Dt, buildCenterAgentTaskPath as E, uploadSpaceFile as En, profileErrorResponseSchema as Er, buildRoutineResumePath as Et, buildCurrentOrganizationDirectoryPath as F, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as Fn, resumeCenterAgentRoutineResponseSchema as Fr, createAccountSpaceIndexApi as Ft, buildCurrentOrganizationMessageChannelsPath as G, resolveSpaceDispatchTraceRootCause as Gn, localProjectControlDaemonFrameSchema as Gr, createFeedbackApi as Gt, buildCurrentOrganizationMessageChannelRegistrationPollPath as H, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Hn, agentActivitySnapshotQuerySchema as Hr, createConfigApi as Ht, buildCurrentOrganizationFeedbackReportingPolicyPath as I, OPENMELD_HEADER_REQUEST_ID as In, updateCenterAgentRoutineResponseSchema as Ir, createAgentActivityApi as It, buildDirectMessageConversionPath as J, spaceDispatchTraceResponseSchema as Jn, postSpaceMembersResponseSchema as Jr, createLocalFolderPickerApi as Jt, buildCurrentOrganizationSpacesPath as K, spaceDispatchTraceAttemptStatusSchema as Kn, localProjectControlDiscoverProjectsResponseSchema as Kr, createFetchTransport as Kt, buildCurrentOrganizationInformationProtectionPath as L, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Ln, AGENT_ACTIVITY_EVENT_MAX_BYTES as Lr, createAgentProfileBindingApi as Lt, buildCurrentAgentProfileSessionRoute as M, parseServerErrorFrame as Mn, listCenterAgentRoutineRunsResponseSchema as Mr, buildSpaceInboxReadThroughPath as Mt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as N, resolveCustomMentionAliasOverride as Nn, listCenterAgentRoutinesResponseSchema as Nr, buildSpaceInboxSummaryPath as Nt, buildCenterAgentTaskStopPath as O, DAEMON_STREAM_KEEPALIVE_PONG as On, submitFeedbackIssueRequestSchema as Or, buildRoutineTargetSpacesPath as Ot, buildCurrentOrganizationComputersPath as P, OPENMELD_HEADER_PROFILE_ID as Pn, pauseCenterAgentRoutineResponseSchema as Pr, buildSpaceInboxUnreadTargetsPath as Pt, buildInboxItemPath as Q, ownerComputerDiagnosticsSchema as Qn, spaceMemberDirectoryAllowedRelationsSchema as Qr, createOrganizationApi as Qt, buildCurrentOrganizationLogoPath as R, buildOpenMeldRequestContextHeaders as Rn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Rr, createAgentProfileWorkRecoveryApi as Rt, buildCenterAgentProfilePath as S, agentControllerCollaborationModeSchema as Si, updateSpaceFileContent as Sn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as Sr, buildProjectPath as St, buildCenterAgentTaskMessagesPath as T, uploadSpaceAttachment as Tn, profileCapabilitiesResponseSchema as Tr, buildRoutinePausePath as Tt, buildCurrentOrganizationMessageChannelRegistrationsPath as U, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as Un, agentActivitySnapshotResponseSchema as Ur, createCurrentDeviceApi as Ut, buildCurrentOrganizationMessageChannelRegistrationPath as V, spaceEntryTargetSchema as Vn, agentActivitySessionStatusSchema as Vr, createComputerFileAccessApi as Vt, buildCurrentOrganizationMessageChannelSetupRequestsPath as W, projectSpaceDispatchTraceFinalVisibleOutcome as Wn, localProjectControlConnectionSchema as Wr, createDirectMessageApi as Wt, buildFeedbackIssueSubmissionPath as X, projectObservabilityWakeCorrelation as Xn, resolvedSpaceMemberProfileSchema as Xr, createLocalRuntimeExpectedRoutesApi as Xt, buildDirectMessageSpacePath as Y, observabilityWakeTraceSelectorSchema as Yn, removeSpaceMembersResponseSchema as Yr, createLocalProjectControlApi as Yt, buildInboxItemDismissPath as Z, submitAgentControllerTaskLifecycleEventItemSchema as Zn, spaceMemberAgentWakeAvailabilitySchema as Zr, createOpenMeldApiClient as Zt, buildCenterAgentDirectMessageSpacePath as _, START_ISO_DATE_TIME_SCHEMA as _i, resolveAccountSpaceIndexGatewayHost as _n, organizationSkillReleaseSummarySchema as _r, buildOrganizationUsageOverviewPath as _t, buildAgentActivitySessionsPath as a, agentActivitySessionInventoryResponseSchema as ai, createProjectsApi as an, OPENMELD_RUNTIME_CAPABILITIES_HEADER as ar, buildLocalProjectControlPath as at, buildCenterAgentMemberResearchPath as b, localAgentCatalogSchema as bi, toStructuredApiClientFailure as bn, organizationDirectoryResponseSchema as br, buildProfileSpaceHistoryStatusPath as bt, buildAgentProfileCreationApprovalPreferencePath as c, archiveProjectResponseSchema as ci, createSpaceApi as cn, computerFileAccessPolicySchema as cr, buildOrganizationDocumentDiscardDraftPath as ct, buildAgentProfileCreationRequestDecisionPath as d, projectSchema as di, getModelCatalog as dn, resolveInitialSpaceAccessMode as dr, buildOrganizationSkillEnabledPath as dt, spaceMemberDirectorySchema as ei, createOrganizationSkillsApi as en, summarizeComputerFileAccessPolicy as er, buildInboxMarkAllReadPath as et, buildAgentProfileCreationRequestRetryPath as f, updateProjectResponseSchema as fi, getSpaceFile as fn, spaceCreatorSchema as fr, buildOrganizationSkillGitHubImportPath as ft, buildCenterAgentDesignationPath as g, START_BOUNDED_VERSION_SCHEMA as gi, publicSpaceUrls as gn, organizationSkillBundleSchema as gr, buildOrganizationSkillsPath as gt, buildCenterAgentAuditJournalPath as h, START_BOUNDED_ID_SCHEMA as hi, normalizeApiBaseUrl as hn, listOrganizationSkillsResponseSchema as hr, buildOrganizationSkillPath as ht, buildAccountSpaceIndexPath as i, agentActivitySessionInventoryQuerySchema as ii, createProfilesApi as in, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as ir, buildLocalFolderPickerPath as it, buildComputerFileAccessUpdatePath as j, parseIncoming as jn, deleteCenterAgentRoutineResponseSchema as jr, buildSpaceBootstrapReadPath as jt, buildCenterAgentTasksPath as k, MAX_TEXT_LENGTH as kn, submitFeedbackIssueResponseSchema as kr, buildRoutinesPath as kt, buildAgentProfileCreationDefaultsPath as l, createProjectResponseSchema as li, createSpaceFolder as ln, modelCatalogSchema as lr, buildOrganizationDocumentPath as lt, buildAgentProfileWorkRecoveryRoute as m, openCodePermissionConfigSchema as mi, listSpaceFiles as mn, getOrganizationSkillResponseSchema as mr, buildOrganizationSkillMaintainersPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivityInventorySessionOriginSchema as ni, createPrepareReadinessApi as nn, agentProfileCreationConfigurationSchema as nr, buildInboxPreferencesPath as nt, buildAgentActivitySnapshotPath as o, localAgentSessionProviderSchema as oi, createRoutinesApi as on, computerFileAccessDaemonFrameSchema as or, buildModelCatalogPath as ot, buildAgentProfileCreationRequestsPath as p, centerAgentToolSpeakerSchema as pi, listSpaceFileRevisions as pn, spaceMetaSchema as pr, buildOrganizationSkillGitHubPreviewPath as pt, buildCurrentOrganizationSpacesWithMemberCountsPath as q, spaceDispatchTraceDispatchStatusSchema as qn, leaveSpaceResponseSchema as qr, createInboxApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, agentActivityInventorySessionStatusSchema as ri, createProfileSpaceHistoryApi as rn, gatewayErrorEnvelopeSchema as rr, buildInboxSummaryPath as rt, buildAgentActivityStatsPath as s, observedLocalAgentSessionSchema as si, createRuntimeReportingApi as sn, computerFileAccessPolicyInputSchema as sr, buildOrganizationDocumentApproveDraftPath as st, OpenMeldApiClientHttpError as t, spaceMemberKindSchema as ti, createOrganizationUsageApi as tn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as tr, buildInboxPath as tt, buildAgentProfileCreationRequestCancelPath as u, listProjectsResponseSchema as ui, downloadSpaceFileContent as un, organizationSpaceDirectoryWithMemberCountsResponseSchema as ur, buildOrganizationDocumentsPath as ut, buildCenterAgentInboxReadThroughPath as v, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as vi, resolveProfileSpaceHistoryGatewayHost as vn, organizationSkillSummarySchema as vr, buildProfileRoute as vt, buildCenterAgentSessionsPath as w, updateSpaceMeta as wn, authProfileManagedRoleSchema as wr, buildRoutinePath as wt, buildCenterAgentOperatingStatePath as x, agentControllerPermissionModeSchema as xi, trashSpaceFileEntry as xn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as xr, buildProfileSpaceHistoryUpsertPath as xt, buildCenterAgentInboxSummaryPath as y, startReplyReadinessSummarySchema as yi, setSpaceAccessMode as yn, stringifyOrganizationSkillBundleCanonicalJson as yr, buildProfileSpaceHistoryListPath as yt, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as z, toErrorMessage$2 as zn, agentActivityEventSchema as zr, createCenterAgentApi as zt };
|
|
18241
18362
|
|
|
18242
|
-
//# sourceMappingURL=dist-
|
|
18363
|
+
//# sourceMappingURL=dist-DdoxYSxj.js.map
|