openmeld 0.3.192 → 0.3.194
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-C47bzJH_.js → add-me-membership-BrHxuu0D.js} +2 -2
- package/dist/{add-me-membership-C47bzJH_.js.map → add-me-membership-BrHxuu0D.js.map} +1 -1
- package/dist/{api-client-foundation-DJYylh9O.js → api-client-foundation-B03xV55h.js} +1 -1
- package/dist/{api-client-foundation-CJxKcKjx.js → api-client-foundation-DirMc7yC.js} +3 -3
- package/dist/{api-client-foundation-CJxKcKjx.js.map → api-client-foundation-DirMc7yC.js.map} +1 -1
- package/dist/auth-session-LYElwqH0.js +4 -0
- package/dist/{auth-session-BBUxZl0r.js → auth-session-htN17VUu.js} +2 -2
- package/dist/{auth-session-BBUxZl0r.js.map → auth-session-htN17VUu.js.map} +1 -1
- package/dist/{command-BG-s6whz.js → command-HlwapdAa.js} +34 -12
- package/dist/command-HlwapdAa.js.map +1 -0
- package/dist/{dist-DrTg9_9E.js → dist-54I3Cb_o.js} +331 -116
- package/dist/dist-54I3Cb_o.js.map +1 -0
- package/dist/{dist-BWS7IyVX.js → dist-Caxd8CY9.js} +2 -2
- package/dist/{elapsed-time-CWidgsKt.js → elapsed-time-DXSSiJFy.js} +3 -3
- package/dist/{elapsed-time-CWidgsKt.js.map → elapsed-time-DXSSiJFy.js.map} +1 -1
- package/dist/{installer-B_RYaLD8.js → installer-DWvhHFqf.js} +3 -3
- package/dist/{installer-B_RYaLD8.js.map → installer-DWvhHFqf.js.map} +1 -1
- package/dist/{openmeld-C3EapSrF.js → openmeld-CVnd4tG7.js} +13 -13
- package/dist/openmeld-CVnd4tG7.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-DJz-lxZG.js → openmeld-maintenance-worker-8ClCE-oS.js} +3 -3
- package/dist/{openmeld-maintenance-worker-DJz-lxZG.js.map → openmeld-maintenance-worker-8ClCE-oS.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-MHxhBR8_.js → openmeld-tools-update-coordinator-CrG_qkrJ.js} +31 -11
- package/dist/openmeld-tools-update-coordinator-CrG_qkrJ.js.map +1 -0
- package/dist/openmeld.js +3 -3
- package/dist/{runtime-transport-DtOI3PNe.js → runtime-transport-CI8EZOgz.js} +3038 -3025
- package/dist/runtime-transport-CI8EZOgz.js.map +1 -0
- package/dist/upgrade-BTSbrqGP.js +4 -0
- package/dist/{upgrade-D-8UCiVo.js → upgrade-BaW-MYZ_.js} +4 -4
- package/dist/{upgrade-D-8UCiVo.js.map → upgrade-BaW-MYZ_.js.map} +1 -1
- package/package.json +3 -3
- package/dist/auth-session-AKRpcwRN.js +0 -4
- package/dist/command-BG-s6whz.js.map +0 -1
- package/dist/dist-DrTg9_9E.js.map +0 -1
- package/dist/openmeld-C3EapSrF.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-MHxhBR8_.js.map +0 -1
- package/dist/runtime-transport-DtOI3PNe.js.map +0 -1
- package/dist/upgrade-C2F1k7lc.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { C as resolveBuiltinAgentControllerConversationCapability, S as agentControllerConversationCapabilitySchema, b as normalizeKnownBuiltinAgentControllerId, h as agentControllerRefSchema, s as runtimeTransportModeSchema } from "./controller-contract-pe3_Re-c.js";
|
|
4
|
-
import { $ as localFolderPickerRequestSchema, $n as
|
|
4
|
+
import { $ as localFolderPickerRequestSchema, $n as SPACE_FILE_ERROR_CODES, $r as spaceAgentStreamSnapshotSchema, $t as runtimeCoordinatorExecutionEventSchema, An as signalTextDataSchema, Ar as iso, B as openMeldDaemonOriginalErrorSchema, Br as string, Bt as localComponentUpdateProjectionSchema, Cr as array, Ct as spacePublicationModeSchema, Dr as email, Dt as targetWakeLifecycleIdentitySchema, Ei as openMeldWebUrlSchema, Er as discriminatedUnion, Et as workingLanguageTagSchema, Fn as spaceAttachmentMimeTypeSchema, Fr as number, Gr as url, Hr as undefinedFactory, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAttachmentSizeBytesSchema, Ir as object, Jr as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Jt as openMeldToolsUpdateRequestResultSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kn as conversationCompactionMarkerSchema, Kr as clientMessageIdSchema$1, Ln as spaceMessageAttachmentSchema, Lr as preprocess, Mn as spaceAttachmentDescriptorSchema, Mr as literal, Mt as agentInteractionResponseSchema, Nn as spaceAttachmentDimensionSchema, Nr as neverFactory, On as signalStatusDataSchema, Or as enumFactory, Pn as spaceAttachmentFileNameSchema, Pr as nullFactory, Qn as spaceMentionLabelSourceSchema, Qr as spaceAgentStreamPresenceSchema, Qt as runtimeCoordinatorExecutionCreationDiagnosticSchema, Rn as spaceMessageAttachmentsSchema, Rr as record, Sr as NEVER, St as spaceAllowedActionsSchema, Ti as openMeldNavigationTargetSchema, Tr as coerce, Tt as workingLanguageGuidanceSchema, Un as messageEnvelopeSchema, Ur as union, Ut as openMeldToolsMaintenanceMutationResultSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vr as tuple, Vt as localComponentUpdateStatusSchema, Wr as unknown, Wt as openMeldToolsMaintenanceProjectionSchema, Xr as spaceAgentStreamDeltaFrameSchema, Xt as postSpaceWakeStopBodySchema, Yr as agentStreamToolPartSchema, Zn as spaceMentionLabelSchema, Zr as spaceAgentStreamPartFrameSchema, Zt as postSpaceWakeStopResponseSchema, _i as trimmedStringFromUnknown, _r as spaceMessageFileReferencesSchema, an as normalizeSpacePasswordText, ar as listSpaceFileRevisionsResponseSchema, at as agentTaskHandleSchema, br as updateSpaceFileEntryResponseSchema, ci as openMeldRuntimeProfileIdSchema, cn as organizationProtectedInformationSchema, ct as buildAgentTaskKey, di as profileWorkingDirectorySchema, dn as executeExecutionRecoveryResponseSchema, dr as restoreSpaceFileRevisionResponseSchema, dt as localAgentInstallationOptionSchema, ei as spaceAgentStreamTerminalFrameSchema, en as runtimeCoordinatorExecutionRecordSchema, er as SPACE_FILE_MAX_SIZE_BYTES, et as localFolderPickerResultSchema, fi as profileWorkspaceModeSchema, fn as inspectExecutionRecoveryResponseSchema, fr as spaceFileDescriptorSchema, gi as optionalBooleanQuerySchema, hi as nonEmptyTrimmedStringFromUnknown, hn as agentProfileWorkRecoveryActionKindSchema, ii as spaceThreadSignalPlacementSchema, in as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, it as agentTaskCompletionObservationSchema, jn as signalTextSchema, jr as lazySchema, kn as signalSystemNoticeDataSchema, kr as int, kt as agentInteractionPendingSummarySchema, li as profileKindSchema, ln as updateOrganizationInformationProtectionPolicyBodySchema, lt as controllerAgentTaskHandleSchema, mi as finiteIntegerNumber, mn as openMeldRequestContextSchema, mr as spaceFileMimeTypeSchema, mt as openMeldDaemonSyncRouteCatalogPayloadSchema, n as daemonExecutionCompatibilitySchema, ni as spaceThreadEventSchema, nr as discardSpaceComposerUploadResponseSchema, nt as agentDelegationSnapshotSchema, oi as agentProfileIdSchema, on as spacePasswordSchema, or as listSpaceFilesResponseSchema, ot as agentTaskTerminalOutcomeSchema, pi as uuidProfileIdSchema, qn as centerAgentInteractionSourceSchema, qt as openMeldToolsUpdateOperationSchema, ri as spaceThreadSchema, rn as spaceTraceExecutionIdentityProjectionSchema, rr as getSpaceFileResponseSchema, rt as agentTaskCompletionConditionSchema, sn as organizationInformationProtectionPolicyResponseSchema, sr as publishSpaceComposerUploadResponseSchema, st as areAgentTaskTerminalOutcomesEqual, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as spaceThreadContextSchema, tr as createSpaceFolderResponseSchema, tt as localFolderPathSchema, ui as profileSchema, un as executeExecutionRecoveryBodySchema, ur as restoreSpaceFileEntryResponseSchema, ut as spaceWakeAgentTaskHandleSchema, vi as MAX_TEXT_LENGTH$1, vr as stageSpaceComposerUploadResponseSchema, vt as dispatchExecutionSchema, wi as computerSetupModeSchema, wr as boolean, wt as spaceDispatchPolicySchema, xr as uploadSpaceFileResponseSchema, xt as resultArchivePolicySchema, yr as trashSpaceFileEntryResponseSchema, zr as strictObject, zt as localComponentUpdatePolicySchema } from "./runtime-transport-CI8EZOgz.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";
|
|
@@ -93,6 +93,169 @@ function omitJsonField(value, fieldName) {
|
|
|
93
93
|
return Object.fromEntries(Object.entries(value).filter(([key]) => key !== fieldName));
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/message-reaction.js
|
|
97
|
+
const spaceReactionActorSchema = z$1.object({
|
|
98
|
+
profileId: z$1.string().min(1),
|
|
99
|
+
displayName: z$1.string(),
|
|
100
|
+
profileKind: z$1.enum(["human", "agent"])
|
|
101
|
+
});
|
|
102
|
+
const spaceReactionGroupSchema = z$1.object({
|
|
103
|
+
emoji: z$1.string().min(1).max(64),
|
|
104
|
+
label: z$1.string(),
|
|
105
|
+
count: z$1.number().int().positive(),
|
|
106
|
+
reactedByMe: z$1.boolean(),
|
|
107
|
+
actors: z$1.array(spaceReactionActorSchema),
|
|
108
|
+
actorsHasMore: z$1.boolean()
|
|
109
|
+
});
|
|
110
|
+
const spaceMessageReactionsSchema = z$1.object({
|
|
111
|
+
version: z$1.number().int().nonnegative(),
|
|
112
|
+
groups: z$1.array(spaceReactionGroupSchema)
|
|
113
|
+
});
|
|
114
|
+
z$1.object({
|
|
115
|
+
spaceId: z$1.string().trim().min(1),
|
|
116
|
+
signalId: z$1.string().trim().min(1),
|
|
117
|
+
emoji: z$1.string().min(1).max(64).optional(),
|
|
118
|
+
afterProfileId: z$1.string().min(1).max(256).optional()
|
|
119
|
+
});
|
|
120
|
+
z$1.object({
|
|
121
|
+
spaceId: z$1.string().trim().min(1),
|
|
122
|
+
signalId: z$1.string().trim().min(1),
|
|
123
|
+
emoji: z$1.string().min(1).max(64),
|
|
124
|
+
active: z$1.boolean()
|
|
125
|
+
});
|
|
126
|
+
const getSpaceMessageReactionsResponseSchema = z$1.object({
|
|
127
|
+
signalId: z$1.string(),
|
|
128
|
+
reactions: spaceMessageReactionsSchema,
|
|
129
|
+
actors: z$1.array(spaceReactionActorSchema).optional(),
|
|
130
|
+
nextCursor: z$1.string().nullable().optional()
|
|
131
|
+
});
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region ../../packages/schemas/dist/schemas/protocol/hello.js
|
|
134
|
+
const helloCapabilitiesSchema = z$1.object({
|
|
135
|
+
liveSignalHistory: z$1.boolean().optional(),
|
|
136
|
+
spaceMessageAddressing: z$1.boolean().optional()
|
|
137
|
+
});
|
|
138
|
+
z$1.object({
|
|
139
|
+
type: z$1.literal("hello"),
|
|
140
|
+
profile: profileSchema,
|
|
141
|
+
capabilities: helloCapabilitiesSchema.optional()
|
|
142
|
+
});
|
|
143
|
+
const helloAckSchema = z$1.object({
|
|
144
|
+
type: z$1.literal("system.hello.ack"),
|
|
145
|
+
profile: profileSchema
|
|
146
|
+
});
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region ../../packages/schemas/dist/schemas/protocol/server-error.js
|
|
149
|
+
const serverErrorFrameSchema = z$1.object({
|
|
150
|
+
error: nonEmptyTrimmedStringFromUnknown,
|
|
151
|
+
requestId: nonEmptyTrimmedStringFromUnknown.optional(),
|
|
152
|
+
clientMessageId: clientMessageIdSchema$1.optional()
|
|
153
|
+
});
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region ../../packages/schemas/dist/schemas/protocol/envelope.js
|
|
156
|
+
const baseEnvelopeShape = {
|
|
157
|
+
v: z$1.literal(1),
|
|
158
|
+
id: nonEmptyTrimmedStringFromUnknown,
|
|
159
|
+
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
160
|
+
ts: finiteIntegerNumber,
|
|
161
|
+
profile: profileSchema
|
|
162
|
+
};
|
|
163
|
+
const presenceDataSchema = z$1.record(z$1.string(), z$1.unknown());
|
|
164
|
+
const presenceEnvelopeSchema = z$1.object({
|
|
165
|
+
...baseEnvelopeShape,
|
|
166
|
+
type: z$1.enum(["presence.join", "presence.quit"]),
|
|
167
|
+
data: presenceDataSchema
|
|
168
|
+
});
|
|
169
|
+
const signalTextEnvelopeSchema = z$1.object({
|
|
170
|
+
...baseEnvelopeShape,
|
|
171
|
+
type: z$1.literal("signal.text"),
|
|
172
|
+
data: signalTextDataSchema,
|
|
173
|
+
reactions: spaceMessageReactionsSchema.optional()
|
|
174
|
+
});
|
|
175
|
+
const signalStatusEnvelopeSchema = z$1.object({
|
|
176
|
+
...baseEnvelopeShape,
|
|
177
|
+
type: z$1.literal("signal.status"),
|
|
178
|
+
data: signalStatusDataSchema
|
|
179
|
+
});
|
|
180
|
+
const signalSystemNoticeEnvelopeSchema = z$1.object({
|
|
181
|
+
...baseEnvelopeShape,
|
|
182
|
+
type: z$1.literal("signal.system_notice"),
|
|
183
|
+
data: signalSystemNoticeDataSchema
|
|
184
|
+
});
|
|
185
|
+
const signalEnvelopeSchema = z$1.union([
|
|
186
|
+
presenceEnvelopeSchema,
|
|
187
|
+
signalTextEnvelopeSchema,
|
|
188
|
+
signalStatusEnvelopeSchema,
|
|
189
|
+
signalSystemNoticeEnvelopeSchema
|
|
190
|
+
]);
|
|
191
|
+
const spaceLiveSignalFrameSchema = z$1.strictObject({
|
|
192
|
+
type: z$1.literal("space.signal"),
|
|
193
|
+
signal: signalEnvelopeSchema,
|
|
194
|
+
history: z$1.strictObject({ persisted: z$1.boolean() }).optional(),
|
|
195
|
+
threadContext: spaceThreadContextSchema.optional(),
|
|
196
|
+
threadPlacement: spaceThreadSignalPlacementSchema.optional()
|
|
197
|
+
});
|
|
198
|
+
const spaceLiveInvalidationFrameSchema = z$1.strictObject({
|
|
199
|
+
type: z$1.enum([
|
|
200
|
+
"space.members.changed",
|
|
201
|
+
"space.meta.changed",
|
|
202
|
+
"space.files.changed",
|
|
203
|
+
"space.reactions.changed",
|
|
204
|
+
"agent.readiness.invalidated",
|
|
205
|
+
"wake.progress.changed"
|
|
206
|
+
]),
|
|
207
|
+
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
208
|
+
version: finiteIntegerNumber,
|
|
209
|
+
signalIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
210
|
+
profileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
211
|
+
agentProfileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
212
|
+
clientMessageIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
213
|
+
reason: nonEmptyTrimmedStringFromUnknown.optional()
|
|
214
|
+
});
|
|
215
|
+
const incomingServerMessageSchema = z$1.union([
|
|
216
|
+
signalEnvelopeSchema,
|
|
217
|
+
spaceLiveSignalFrameSchema,
|
|
218
|
+
spaceLiveInvalidationFrameSchema,
|
|
219
|
+
spaceAgentStreamDeltaFrameSchema,
|
|
220
|
+
spaceAgentStreamPartFrameSchema,
|
|
221
|
+
spaceAgentStreamTerminalFrameSchema,
|
|
222
|
+
helloAckSchema,
|
|
223
|
+
serverErrorFrameSchema
|
|
224
|
+
]);
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region ../../packages/schemas/dist/schemas/http/space-message-mutation.js
|
|
227
|
+
const spaceMessageMutationBodySchema = z$1.discriminatedUnion("action", [
|
|
228
|
+
z$1.strictObject({
|
|
229
|
+
action: z$1.literal("edit"),
|
|
230
|
+
expectedRevision: z$1.number().int().nonnegative(),
|
|
231
|
+
text: z$1.string().max(MAX_TEXT_LENGTH$1),
|
|
232
|
+
retainedFileIds: z$1.array(z$1.string().min(1)).optional(),
|
|
233
|
+
retainedAttachmentIds: z$1.array(z$1.string().min(1)).optional()
|
|
234
|
+
}),
|
|
235
|
+
z$1.strictObject({
|
|
236
|
+
action: z$1.literal("recall"),
|
|
237
|
+
expectedRevision: z$1.number().int().nonnegative()
|
|
238
|
+
}),
|
|
239
|
+
z$1.strictObject({ action: z$1.literal("restore_draft") })
|
|
240
|
+
]);
|
|
241
|
+
const spaceMessageMutationResponseSchema = z$1.strictObject({ message: signalTextEnvelopeSchema });
|
|
242
|
+
z$1.strictObject({
|
|
243
|
+
startSignalId: z$1.string().min(1).max(200).optional(),
|
|
244
|
+
endSignalId: z$1.string().min(1).max(200).optional()
|
|
245
|
+
});
|
|
246
|
+
const spaceHistoryNavigationSchema = z$1.object({
|
|
247
|
+
entries: z$1.array(z$1.object({
|
|
248
|
+
signalId: z$1.string(),
|
|
249
|
+
endSignalId: z$1.string(),
|
|
250
|
+
startAt: z$1.number(),
|
|
251
|
+
endAt: z$1.number(),
|
|
252
|
+
count: z$1.number().int().positive(),
|
|
253
|
+
author: z$1.string(),
|
|
254
|
+
preview: z$1.string().max(360)
|
|
255
|
+
})).max(48),
|
|
256
|
+
total: z$1.number().int().nonnegative()
|
|
257
|
+
});
|
|
258
|
+
//#endregion
|
|
96
259
|
//#region ../../packages/schemas/dist/schemas/agent-controller-collaboration-mode.js
|
|
97
260
|
const agentControllerCollaborationModeSchema = z$1.enum(["codex:default", "codex:plan"]);
|
|
98
261
|
//#endregion
|
|
@@ -579,6 +742,7 @@ const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
|
579
742
|
"openmeld_read_member_computers",
|
|
580
743
|
"openmeld_read_member_openmeld_service_status",
|
|
581
744
|
"openmeld_read_org_documents",
|
|
745
|
+
"openmeld_read_channel_file",
|
|
582
746
|
"openmeld_read_organization_skills",
|
|
583
747
|
"openmeld_list_spaces",
|
|
584
748
|
"openmeld_list_projects",
|
|
@@ -4004,7 +4168,8 @@ const authProfileViewSchema = strictObject({
|
|
|
4004
4168
|
profileKind: authProfileKindSchema,
|
|
4005
4169
|
isDefault: boolean(),
|
|
4006
4170
|
status: authProfileStatusSchema,
|
|
4007
|
-
ownerUserId: string().min(1),
|
|
4171
|
+
ownerUserId: string().min(1).nullable(),
|
|
4172
|
+
organizationId: string().min(1).nullable().optional(),
|
|
4008
4173
|
ownerName: string().min(1).optional(),
|
|
4009
4174
|
avatarUrl: string().min(1).optional(),
|
|
4010
4175
|
source: string().min(1),
|
|
@@ -4147,7 +4312,7 @@ const organizationDirectoryAgentProfileIdentitySchema = strictObject({
|
|
|
4147
4312
|
profileKind: literal("agent"),
|
|
4148
4313
|
isDefault: literal(false),
|
|
4149
4314
|
status: enumFactory(["active", "disabled"]),
|
|
4150
|
-
ownerUserId:
|
|
4315
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
4151
4316
|
ownerName: trimmedNonEmptyStringSchema$14.optional(),
|
|
4152
4317
|
avatarUrl: trimmedNonEmptyStringSchema$14.optional(),
|
|
4153
4318
|
source: trimmedNonEmptyStringSchema$14,
|
|
@@ -4974,96 +5139,6 @@ z$1.strictObject({
|
|
|
4974
5139
|
request: computerFileAccessUpdateRequestSchema
|
|
4975
5140
|
});
|
|
4976
5141
|
//#endregion
|
|
4977
|
-
//#region ../../packages/schemas/dist/schemas/protocol/hello.js
|
|
4978
|
-
const helloCapabilitiesSchema = z$1.object({
|
|
4979
|
-
liveSignalHistory: z$1.boolean().optional(),
|
|
4980
|
-
spaceMessageAddressing: z$1.boolean().optional()
|
|
4981
|
-
});
|
|
4982
|
-
z$1.object({
|
|
4983
|
-
type: z$1.literal("hello"),
|
|
4984
|
-
profile: profileSchema,
|
|
4985
|
-
capabilities: helloCapabilitiesSchema.optional()
|
|
4986
|
-
});
|
|
4987
|
-
const helloAckSchema = z$1.object({
|
|
4988
|
-
type: z$1.literal("system.hello.ack"),
|
|
4989
|
-
profile: profileSchema
|
|
4990
|
-
});
|
|
4991
|
-
//#endregion
|
|
4992
|
-
//#region ../../packages/schemas/dist/schemas/protocol/server-error.js
|
|
4993
|
-
const serverErrorFrameSchema = z$1.object({
|
|
4994
|
-
error: nonEmptyTrimmedStringFromUnknown,
|
|
4995
|
-
requestId: nonEmptyTrimmedStringFromUnknown.optional(),
|
|
4996
|
-
clientMessageId: clientMessageIdSchema$1.optional()
|
|
4997
|
-
});
|
|
4998
|
-
//#endregion
|
|
4999
|
-
//#region ../../packages/schemas/dist/schemas/protocol/envelope.js
|
|
5000
|
-
const baseEnvelopeShape = {
|
|
5001
|
-
v: z$1.literal(1),
|
|
5002
|
-
id: nonEmptyTrimmedStringFromUnknown,
|
|
5003
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
5004
|
-
ts: finiteIntegerNumber,
|
|
5005
|
-
profile: profileSchema
|
|
5006
|
-
};
|
|
5007
|
-
const presenceDataSchema = z$1.record(z$1.string(), z$1.unknown());
|
|
5008
|
-
const presenceEnvelopeSchema = z$1.object({
|
|
5009
|
-
...baseEnvelopeShape,
|
|
5010
|
-
type: z$1.enum(["presence.join", "presence.quit"]),
|
|
5011
|
-
data: presenceDataSchema
|
|
5012
|
-
});
|
|
5013
|
-
const signalTextEnvelopeSchema = z$1.object({
|
|
5014
|
-
...baseEnvelopeShape,
|
|
5015
|
-
type: z$1.literal("signal.text"),
|
|
5016
|
-
data: signalTextDataSchema
|
|
5017
|
-
});
|
|
5018
|
-
const signalStatusEnvelopeSchema = z$1.object({
|
|
5019
|
-
...baseEnvelopeShape,
|
|
5020
|
-
type: z$1.literal("signal.status"),
|
|
5021
|
-
data: signalStatusDataSchema
|
|
5022
|
-
});
|
|
5023
|
-
const signalSystemNoticeEnvelopeSchema = z$1.object({
|
|
5024
|
-
...baseEnvelopeShape,
|
|
5025
|
-
type: z$1.literal("signal.system_notice"),
|
|
5026
|
-
data: signalSystemNoticeDataSchema
|
|
5027
|
-
});
|
|
5028
|
-
const signalEnvelopeSchema = z$1.union([
|
|
5029
|
-
presenceEnvelopeSchema,
|
|
5030
|
-
signalTextEnvelopeSchema,
|
|
5031
|
-
signalStatusEnvelopeSchema,
|
|
5032
|
-
signalSystemNoticeEnvelopeSchema
|
|
5033
|
-
]);
|
|
5034
|
-
const spaceLiveSignalFrameSchema = z$1.strictObject({
|
|
5035
|
-
type: z$1.literal("space.signal"),
|
|
5036
|
-
signal: signalEnvelopeSchema,
|
|
5037
|
-
history: z$1.strictObject({ persisted: z$1.boolean() }).optional(),
|
|
5038
|
-
threadContext: spaceThreadContextSchema.optional(),
|
|
5039
|
-
threadPlacement: spaceThreadSignalPlacementSchema.optional()
|
|
5040
|
-
});
|
|
5041
|
-
const spaceLiveInvalidationFrameSchema = z$1.strictObject({
|
|
5042
|
-
type: z$1.enum([
|
|
5043
|
-
"space.members.changed",
|
|
5044
|
-
"space.meta.changed",
|
|
5045
|
-
"space.files.changed",
|
|
5046
|
-
"agent.readiness.invalidated",
|
|
5047
|
-
"wake.progress.changed"
|
|
5048
|
-
]),
|
|
5049
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
5050
|
-
version: finiteIntegerNumber,
|
|
5051
|
-
profileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
5052
|
-
agentProfileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
5053
|
-
clientMessageIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
5054
|
-
reason: nonEmptyTrimmedStringFromUnknown.optional()
|
|
5055
|
-
});
|
|
5056
|
-
const incomingServerMessageSchema = z$1.union([
|
|
5057
|
-
signalEnvelopeSchema,
|
|
5058
|
-
spaceLiveSignalFrameSchema,
|
|
5059
|
-
spaceLiveInvalidationFrameSchema,
|
|
5060
|
-
spaceAgentStreamDeltaFrameSchema,
|
|
5061
|
-
spaceAgentStreamPartFrameSchema,
|
|
5062
|
-
spaceAgentStreamTerminalFrameSchema,
|
|
5063
|
-
helloAckSchema,
|
|
5064
|
-
serverErrorFrameSchema
|
|
5065
|
-
]);
|
|
5066
|
-
//#endregion
|
|
5067
5142
|
//#region ../../packages/schemas/dist/schemas/http/space-signals.js
|
|
5068
5143
|
const signalTextRequestDataSchema = signalTextSchema.shape.data;
|
|
5069
5144
|
z$1.enum([
|
|
@@ -5169,6 +5244,7 @@ const centerAgentContextManifestSourceRefSchema = strictObject({
|
|
|
5169
5244
|
version: contentHashSchema$1
|
|
5170
5245
|
});
|
|
5171
5246
|
const centerAgentContextManifestEntrySchema = strictObject({
|
|
5247
|
+
reactions: spaceMessageReactionsSchema.optional(),
|
|
5172
5248
|
author: strictObject({
|
|
5173
5249
|
profileId: trimmedNonEmptyStringSchema$10,
|
|
5174
5250
|
profileKind: enumFactory([
|
|
@@ -5428,7 +5504,7 @@ const larkPlatformRegistrationAttemptProjectionSchema = strictObject({
|
|
|
5428
5504
|
registrationUrl: string().trim().max(16384).url().nullable(),
|
|
5429
5505
|
reasonCode: reasonCodeSchema$2.nullable()
|
|
5430
5506
|
}).superRefine((attempt, context) => {
|
|
5431
|
-
if (attempt.status === "pending_registration" && attempt.registrationUrl === null || attempt.registrationUrl !== null && attempt.status !== "pending_registration" && !(attempt.status === "configuring" && attempt.reasonCode === `${attempt.provider}.application_config_permission_required`)) context.addIssue({
|
|
5507
|
+
if (attempt.status === "pending_registration" && attempt.registrationUrl === null || attempt.registrationUrl !== null && attempt.status !== "pending_registration" && !(attempt.status === "configuring" && (attempt.reasonCode === `${attempt.provider}.application_config_permission_required` || attempt.reasonCode === `${attempt.provider}.authorization_update_required` || attempt.reasonCode === `${attempt.provider}.permission_bundle_mismatch`))) context.addIssue({
|
|
5432
5508
|
code: "custom",
|
|
5433
5509
|
message: "A registration URL is required for registration and may also be returned for explicit reauthorization.",
|
|
5434
5510
|
path: ["registrationUrl"]
|
|
@@ -7030,7 +7106,9 @@ const remoteAgentTurnEnvelopeTriggerSchema = discriminatedUnion("source", [
|
|
|
7030
7106
|
source: literal("message_channel"),
|
|
7031
7107
|
provider: messageChannelProviderSchema,
|
|
7032
7108
|
connectionId: nonEmptyStringSchema$1,
|
|
7033
|
-
conversationId: nonEmptyStringSchema$1
|
|
7109
|
+
conversationId: nonEmptyStringSchema$1,
|
|
7110
|
+
filePublicationSupported: literal(true).optional(),
|
|
7111
|
+
resources: array(messageChannelResourceDescriptorSchema).max(10).optional()
|
|
7034
7112
|
}),
|
|
7035
7113
|
strictObject({
|
|
7036
7114
|
authorizedActions: centerAgentRoutineAuthorizedActionsSchema.default([]),
|
|
@@ -8101,7 +8179,8 @@ const postSpaceThreadSignalBodySchema = z$1.strictObject({
|
|
|
8101
8179
|
files: signalTextSchema.shape.data.shape.files.optional(),
|
|
8102
8180
|
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
8103
8181
|
clientMessageId: clientMessageIdSchema,
|
|
8104
|
-
authorHasRead: signalTextSchema.shape.data.shape.meta.unwrap().shape.authorHasRead
|
|
8182
|
+
authorHasRead: signalTextSchema.shape.data.shape.meta.unwrap().shape.authorHasRead,
|
|
8183
|
+
restoredFromSignalId: signalTextSchema.shape.data.shape.meta.unwrap().shape.restoredFromSignalId
|
|
8105
8184
|
}).superRefine((value, ctx) => {
|
|
8106
8185
|
const parsed = signalTextSchema.shape.data.safeParse({
|
|
8107
8186
|
text: value.text,
|
|
@@ -8288,6 +8367,7 @@ const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
|
8288
8367
|
text: string().max(REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS * 2),
|
|
8289
8368
|
truncated: boolean()
|
|
8290
8369
|
}),
|
|
8370
|
+
reactions: spaceMessageReactionsSchema.optional(),
|
|
8291
8371
|
occurredAt: isoDateTimeSchema$1,
|
|
8292
8372
|
source: remoteAgentConversationContinuityEntrySourceSchema
|
|
8293
8373
|
}).superRefine((entry, context) => {
|
|
@@ -8438,7 +8518,7 @@ const remoteAgentWorkerSubmitTurnRequestShape = {
|
|
|
8438
8518
|
spaceId: nonEmptyStringSchema,
|
|
8439
8519
|
conversationId: optionalNonEmptyStringSchema,
|
|
8440
8520
|
agentProfileId: agentProfileIdSchema,
|
|
8441
|
-
agentProfileOwnerUserId: nonEmptyStringSchema,
|
|
8521
|
+
agentProfileOwnerUserId: nonEmptyStringSchema.nullable(),
|
|
8442
8522
|
bindingId: nonEmptyStringSchema,
|
|
8443
8523
|
triggerMessageId: nonEmptyStringSchema,
|
|
8444
8524
|
dispatchId: nonEmptyStringSchema,
|
|
@@ -10536,6 +10616,8 @@ const centerAgentActionSchema = enumFactory([
|
|
|
10536
10616
|
"read_slack_channel_members",
|
|
10537
10617
|
"read_slack_channel_history",
|
|
10538
10618
|
"read_slack_file",
|
|
10619
|
+
"read_channel_file",
|
|
10620
|
+
"post_channel_file",
|
|
10539
10621
|
"search_slack_messages",
|
|
10540
10622
|
"post_space_message",
|
|
10541
10623
|
"remove_agent_profiles_from_space",
|
|
@@ -10673,7 +10755,7 @@ const centerAgentDesignationSchema = strictObject({
|
|
|
10673
10755
|
organizationId: trimmedNonEmptyStringSchema$1,
|
|
10674
10756
|
agentProfileId: agentProfileIdSchema,
|
|
10675
10757
|
duty: nullFactory(),
|
|
10676
|
-
designatedBy: trimmedNonEmptyStringSchema$1,
|
|
10758
|
+
designatedBy: trimmedNonEmptyStringSchema$1.nullable(),
|
|
10677
10759
|
createdAt: ISO_DATE_TIME_SCHEMA$1
|
|
10678
10760
|
});
|
|
10679
10761
|
const centerAgentModelConfigurationResponseSchema = strictObject({
|
|
@@ -10892,7 +10974,8 @@ const listCenterAgentAuditJournalQuerySchema = strictObject({
|
|
|
10892
10974
|
"v18",
|
|
10893
10975
|
"v19",
|
|
10894
10976
|
"v20",
|
|
10895
|
-
"v21"
|
|
10977
|
+
"v21",
|
|
10978
|
+
"v22"
|
|
10896
10979
|
]).optional(),
|
|
10897
10980
|
limit: coerce.number().int().min(1).max(200).optional()
|
|
10898
10981
|
});
|
|
@@ -11159,11 +11242,13 @@ strictObject({
|
|
|
11159
11242
|
});
|
|
11160
11243
|
});
|
|
11161
11244
|
strictObject({
|
|
11245
|
+
speakerMember: centerAgentToolSpeakerSchema.optional(),
|
|
11162
11246
|
completionCondition: agentTaskCompletionConditionSchema,
|
|
11163
11247
|
instruction: string().trim().min(1).max(4e3),
|
|
11164
11248
|
task: agentTaskHandleSchema
|
|
11165
11249
|
});
|
|
11166
11250
|
strictObject({
|
|
11251
|
+
speakerMember: centerAgentToolSpeakerSchema.optional(),
|
|
11167
11252
|
agentControllerRef: agentControllerRefSchema.optional(),
|
|
11168
11253
|
limit: int().min(1).max(20).optional()
|
|
11169
11254
|
});
|
|
@@ -13062,6 +13147,30 @@ const getSpaceMessageDetailsResponseSchema = z$1.strictObject({
|
|
|
13062
13147
|
});
|
|
13063
13148
|
clientMessageIdSchema$1.nullable();
|
|
13064
13149
|
//#endregion
|
|
13150
|
+
//#region ../../packages/schemas/dist/schemas/http/space-message-pins.js
|
|
13151
|
+
const spaceFilePinMutationSchema = z$1.strictObject({
|
|
13152
|
+
fileId: z$1.string().trim().min(1).max(200),
|
|
13153
|
+
action: z$1.enum(["pin", "unpin"])
|
|
13154
|
+
});
|
|
13155
|
+
const spaceFilePinsResponseSchema = z$1.strictObject({ pins: z$1.array(z$1.strictObject({
|
|
13156
|
+
file: spaceFileDescriptorSchema,
|
|
13157
|
+
pinnedByProfileId: uuidProfileIdSchema,
|
|
13158
|
+
pinnedByName: z$1.string(),
|
|
13159
|
+
pinnedAt: z$1.string()
|
|
13160
|
+
})) });
|
|
13161
|
+
const spaceMessagePinMutationSchema = z$1.strictObject({
|
|
13162
|
+
signalId: z$1.string().trim().min(1).max(200),
|
|
13163
|
+
action: z$1.enum(["pin", "unpin"])
|
|
13164
|
+
});
|
|
13165
|
+
const spaceMessagePinsResponseSchema = z$1.strictObject({ pins: z$1.array(z$1.strictObject({
|
|
13166
|
+
signalId: z$1.string().min(1),
|
|
13167
|
+
pinnedByProfileId: uuidProfileIdSchema,
|
|
13168
|
+
pinnedByName: z$1.string(),
|
|
13169
|
+
pinnedAt: z$1.string(),
|
|
13170
|
+
authorName: z$1.string(),
|
|
13171
|
+
preview: z$1.string()
|
|
13172
|
+
})) });
|
|
13173
|
+
//#endregion
|
|
13065
13174
|
//#region ../../packages/schemas/dist/schemas/http/space-updates.js
|
|
13066
13175
|
const DECIMAL_INTEGER_REGEX = /^\d+$/u;
|
|
13067
13176
|
const updatesLimitSchema = z$1.preprocess((value) => {
|
|
@@ -17430,7 +17539,7 @@ async function executeSpaceExecutionRecovery(client, input) {
|
|
|
17430
17539
|
}
|
|
17431
17540
|
async function listSpaceFiles(client, input) {
|
|
17432
17541
|
const response = await client.requestJson({
|
|
17433
|
-
...requestFields(input),
|
|
17542
|
+
...requestFields$1(input),
|
|
17434
17543
|
url: buildSpaceFilesPath(input.spaceId, input.query),
|
|
17435
17544
|
operation: "space.files.list",
|
|
17436
17545
|
schema: listSpaceFilesResponseSchema,
|
|
@@ -17451,7 +17560,7 @@ async function listSpaceFiles(client, input) {
|
|
|
17451
17560
|
}
|
|
17452
17561
|
async function getSpaceFile(client, input) {
|
|
17453
17562
|
return await client.requestJson({
|
|
17454
|
-
...requestFields(input),
|
|
17563
|
+
...requestFields$1(input),
|
|
17455
17564
|
url: buildSpaceFileEntryPath(input.spaceId, input.fileId),
|
|
17456
17565
|
operation: "space.files.get",
|
|
17457
17566
|
schema: getSpaceFileResponseSchema,
|
|
@@ -17460,7 +17569,7 @@ async function getSpaceFile(client, input) {
|
|
|
17460
17569
|
}
|
|
17461
17570
|
async function listSpaceFileRevisions(client, input) {
|
|
17462
17571
|
return await client.requestJson({
|
|
17463
|
-
...requestFields(input),
|
|
17572
|
+
...requestFields$1(input),
|
|
17464
17573
|
url: buildSpaceFileRevisionsPath(input.spaceId, input.fileId),
|
|
17465
17574
|
operation: "space.files.revisions.list",
|
|
17466
17575
|
schema: listSpaceFileRevisionsResponseSchema,
|
|
@@ -17469,7 +17578,7 @@ async function listSpaceFileRevisions(client, input) {
|
|
|
17469
17578
|
}
|
|
17470
17579
|
async function createSpaceFolder(client, input) {
|
|
17471
17580
|
return await client.requestJson({
|
|
17472
|
-
...requestFields(input),
|
|
17581
|
+
...requestFields$1(input),
|
|
17473
17582
|
url: buildSpaceFileFoldersPath(input.spaceId),
|
|
17474
17583
|
operation: "space.files.folder.create",
|
|
17475
17584
|
method: "POST",
|
|
@@ -17481,7 +17590,7 @@ async function createSpaceFolder(client, input) {
|
|
|
17481
17590
|
}
|
|
17482
17591
|
async function updateSpaceFileEntry(client, input) {
|
|
17483
17592
|
return (await client.requestJson({
|
|
17484
|
-
...requestFields(input),
|
|
17593
|
+
...requestFields$1(input),
|
|
17485
17594
|
url: buildSpaceFileEntryPath(input.spaceId, input.entryId),
|
|
17486
17595
|
operation: "space.files.entry.update",
|
|
17487
17596
|
method: "PATCH",
|
|
@@ -17493,7 +17602,7 @@ async function updateSpaceFileEntry(client, input) {
|
|
|
17493
17602
|
}
|
|
17494
17603
|
async function trashSpaceFileEntry(client, input) {
|
|
17495
17604
|
return await client.requestJson({
|
|
17496
|
-
...requestFields(input),
|
|
17605
|
+
...requestFields$1(input),
|
|
17497
17606
|
url: buildSpaceFileEntryPath(input.spaceId, input.entryId),
|
|
17498
17607
|
operation: "space.files.entry.trash",
|
|
17499
17608
|
method: "DELETE",
|
|
@@ -17505,7 +17614,7 @@ async function trashSpaceFileEntry(client, input) {
|
|
|
17505
17614
|
}
|
|
17506
17615
|
async function restoreSpaceFileEntry(client, input) {
|
|
17507
17616
|
return (await client.requestJson({
|
|
17508
|
-
...requestFields(input),
|
|
17617
|
+
...requestFields$1(input),
|
|
17509
17618
|
url: buildSpaceFileRestorePath(input.spaceId, input.entryId),
|
|
17510
17619
|
operation: "space.files.entry.restore",
|
|
17511
17620
|
method: "POST",
|
|
@@ -17517,7 +17626,7 @@ async function restoreSpaceFileEntry(client, input) {
|
|
|
17517
17626
|
}
|
|
17518
17627
|
async function restoreSpaceFileRevision(client, input) {
|
|
17519
17628
|
return (await client.requestJson({
|
|
17520
|
-
...requestFields(input),
|
|
17629
|
+
...requestFields$1(input),
|
|
17521
17630
|
url: buildSpaceFileRevisionRestorePath(input.spaceId, input.fileId, input.revision),
|
|
17522
17631
|
operation: "space.files.revision.restore",
|
|
17523
17632
|
method: "POST",
|
|
@@ -17535,7 +17644,7 @@ async function uploadSpaceFile(client, input) {
|
|
|
17535
17644
|
validateSize(body);
|
|
17536
17645
|
const mimeType = parseMimeType(input.mimeType);
|
|
17537
17646
|
return (await client.requestJson({
|
|
17538
|
-
...requestFields(input),
|
|
17647
|
+
...requestFields$1(input),
|
|
17539
17648
|
url: buildSpaceFileUploadPath(input),
|
|
17540
17649
|
operation: "space.files.upload",
|
|
17541
17650
|
method: "POST",
|
|
@@ -17550,7 +17659,7 @@ async function stageSpaceComposerUpload(client, input) {
|
|
|
17550
17659
|
validateSize(body);
|
|
17551
17660
|
const mimeType = parseMimeType(input.mimeType);
|
|
17552
17661
|
return (await client.requestJson({
|
|
17553
|
-
...requestFields(input),
|
|
17662
|
+
...requestFields$1(input),
|
|
17554
17663
|
body,
|
|
17555
17664
|
headers: { "content-type": mimeType },
|
|
17556
17665
|
invalidMessage: "invalid Space Composer upload response",
|
|
@@ -17562,7 +17671,7 @@ async function stageSpaceComposerUpload(client, input) {
|
|
|
17562
17671
|
}
|
|
17563
17672
|
async function publishSpaceComposerUpload(client, input) {
|
|
17564
17673
|
return (await client.requestJson({
|
|
17565
|
-
...requestFields(input),
|
|
17674
|
+
...requestFields$1(input),
|
|
17566
17675
|
body: JSON.stringify({ clientMutationId: input.clientMutationId }),
|
|
17567
17676
|
headers: { "content-type": "application/json" },
|
|
17568
17677
|
invalidMessage: "invalid Space Composer upload publication response",
|
|
@@ -17574,7 +17683,7 @@ async function publishSpaceComposerUpload(client, input) {
|
|
|
17574
17683
|
}
|
|
17575
17684
|
async function discardSpaceComposerUpload(client, input) {
|
|
17576
17685
|
await client.requestJson({
|
|
17577
|
-
...requestFields(input),
|
|
17686
|
+
...requestFields$1(input),
|
|
17578
17687
|
invalidMessage: "invalid Space Composer upload discard response",
|
|
17579
17688
|
method: "DELETE",
|
|
17580
17689
|
operation: "space.composer_uploads.discard",
|
|
@@ -17587,7 +17696,7 @@ async function updateSpaceFileContent(client, input) {
|
|
|
17587
17696
|
validateSize(body);
|
|
17588
17697
|
const mimeType = parseMimeType(input.mimeType);
|
|
17589
17698
|
return (await client.requestJson({
|
|
17590
|
-
...requestFields(input),
|
|
17699
|
+
...requestFields$1(input),
|
|
17591
17700
|
url: buildSpaceFileContentPath(input.spaceId, input.fileId, {
|
|
17592
17701
|
baseRevision: input.baseRevision,
|
|
17593
17702
|
clientMutationId: input.clientMutationId
|
|
@@ -17602,7 +17711,7 @@ async function updateSpaceFileContent(client, input) {
|
|
|
17602
17711
|
}
|
|
17603
17712
|
async function downloadSpaceFileContent(client, input) {
|
|
17604
17713
|
const response = await client.requestResponse({
|
|
17605
|
-
...requestFields(input),
|
|
17714
|
+
...requestFields$1(input),
|
|
17606
17715
|
url: buildSpaceFileContentPath(input.spaceId, input.fileId, { revision: input.revision }),
|
|
17607
17716
|
operation: "space.files.content.download"
|
|
17608
17717
|
});
|
|
@@ -17619,7 +17728,7 @@ async function downloadSpaceFileContent(client, input) {
|
|
|
17619
17728
|
revision
|
|
17620
17729
|
};
|
|
17621
17730
|
}
|
|
17622
|
-
function requestFields(input) {
|
|
17731
|
+
function requestFields$1(input) {
|
|
17623
17732
|
return {
|
|
17624
17733
|
requestContext: input.requestContext,
|
|
17625
17734
|
signal: input.signal,
|
|
@@ -17641,6 +17750,21 @@ function toRequestBody(bytes) {
|
|
|
17641
17750
|
function validateSize(body) {
|
|
17642
17751
|
if ((body instanceof Blob ? body.size : body.byteLength) > 10485760) throw new Error("Space files must be 10 MiB or smaller");
|
|
17643
17752
|
}
|
|
17753
|
+
function getSpaceHistoryNavigation(client, input) {
|
|
17754
|
+
const query = new URLSearchParams();
|
|
17755
|
+
if (input.startSignalId) query.set("startSignalId", input.startSignalId);
|
|
17756
|
+
if (input.endSignalId) query.set("endSignalId", input.endSignalId);
|
|
17757
|
+
return client.requestJson({
|
|
17758
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/history-navigation?${query}`,
|
|
17759
|
+
operation: "space.history_navigation.read",
|
|
17760
|
+
requestContext: input.requestContext,
|
|
17761
|
+
signal: input.signal,
|
|
17762
|
+
timeoutMs: input.timeoutMs,
|
|
17763
|
+
...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },
|
|
17764
|
+
schema: spaceHistoryNavigationSchema,
|
|
17765
|
+
invalidMessage: "Invalid history navigation response"
|
|
17766
|
+
});
|
|
17767
|
+
}
|
|
17644
17768
|
async function leaveSpace(client, input) {
|
|
17645
17769
|
return await client.requestJson({
|
|
17646
17770
|
url: buildSpaceLeavePath(input.spaceId),
|
|
@@ -17769,6 +17893,44 @@ async function getSpaceMessageDetails(client, input) {
|
|
|
17769
17893
|
invalidMessage: "invalid message details response"
|
|
17770
17894
|
});
|
|
17771
17895
|
}
|
|
17896
|
+
function getSpaceMessageReactions(client, input) {
|
|
17897
|
+
const query = new URLSearchParams({ signalId: input.signalId });
|
|
17898
|
+
if (input.emoji) query.set("emoji", input.emoji);
|
|
17899
|
+
if (input.afterProfileId) query.set("afterProfileId", input.afterProfileId);
|
|
17900
|
+
return client.requestJson({
|
|
17901
|
+
...requestFields(input),
|
|
17902
|
+
url: `${path(input.spaceId)}?${query}`,
|
|
17903
|
+
method: "GET",
|
|
17904
|
+
operation: "space.reactions.read"
|
|
17905
|
+
});
|
|
17906
|
+
}
|
|
17907
|
+
function setSpaceMessageReaction(client, input) {
|
|
17908
|
+
return client.requestJson({
|
|
17909
|
+
...requestFields(input),
|
|
17910
|
+
url: path(input.spaceId),
|
|
17911
|
+
method: "PUT",
|
|
17912
|
+
operation: "space.reactions.set",
|
|
17913
|
+
headers: { "content-type": "application/json" },
|
|
17914
|
+
body: JSON.stringify({
|
|
17915
|
+
signalId: input.signalId,
|
|
17916
|
+
emoji: input.emoji,
|
|
17917
|
+
active: input.active
|
|
17918
|
+
})
|
|
17919
|
+
});
|
|
17920
|
+
}
|
|
17921
|
+
function path(spaceId) {
|
|
17922
|
+
return `/v1/spaces/${encodeURIComponent(spaceId)}/message-reactions`;
|
|
17923
|
+
}
|
|
17924
|
+
function requestFields(input) {
|
|
17925
|
+
return {
|
|
17926
|
+
requestContext: input.requestContext,
|
|
17927
|
+
signal: input.signal,
|
|
17928
|
+
timeoutMs: input.timeoutMs,
|
|
17929
|
+
...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },
|
|
17930
|
+
schema: getSpaceMessageReactionsResponseSchema,
|
|
17931
|
+
invalidMessage: "Invalid message reactions response"
|
|
17932
|
+
};
|
|
17933
|
+
}
|
|
17772
17934
|
async function updateSpaceMeta(client, input) {
|
|
17773
17935
|
const parsedBody = patchSpaceMetaBodySchema.safeParse({
|
|
17774
17936
|
...input.visibility === void 0 ? {} : { visibility: input.visibility },
|
|
@@ -17791,6 +17953,21 @@ async function updateSpaceMeta(client, input) {
|
|
|
17791
17953
|
invalidMessage: "invalid Space metadata response"
|
|
17792
17954
|
});
|
|
17793
17955
|
}
|
|
17956
|
+
function mutateSpaceMessage(client, input) {
|
|
17957
|
+
return client.requestJson({
|
|
17958
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/messages/${encodeURIComponent(input.signalId)}`,
|
|
17959
|
+
operation: "space.message.change",
|
|
17960
|
+
method: "POST",
|
|
17961
|
+
headers: { "content-type": "application/json" },
|
|
17962
|
+
body: JSON.stringify(spaceMessageMutationBodySchema.parse(input.body)),
|
|
17963
|
+
requestContext: input.requestContext,
|
|
17964
|
+
signal: input.signal,
|
|
17965
|
+
timeoutMs: input.timeoutMs,
|
|
17966
|
+
...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },
|
|
17967
|
+
schema: spaceMessageMutationResponseSchema,
|
|
17968
|
+
invalidMessage: "Invalid message change response"
|
|
17969
|
+
});
|
|
17970
|
+
}
|
|
17794
17971
|
async function postSpaceNormalMessage(client, input) {
|
|
17795
17972
|
const body = buildPostNormalMessageBody(input);
|
|
17796
17973
|
const parsedBody = postNormalMessageBodySchema.safeParse(body);
|
|
@@ -18116,6 +18293,7 @@ const createSpaceApi = (client) => {
|
|
|
18116
18293
|
resolveEntry: async (input) => await resolveSpaceEntry(client, input),
|
|
18117
18294
|
getMembersSnapshot: async (input) => await getSpaceMembersSnapshot(client, input),
|
|
18118
18295
|
getMemberDirectory: async (input) => await getSpaceMemberDirectory(client, input),
|
|
18296
|
+
getHistoryNavigation: async (input) => await getSpaceHistoryNavigation(client, input),
|
|
18119
18297
|
getIdentityDirectory: async (input) => await getSpaceIdentityDirectory(client, input),
|
|
18120
18298
|
getViewerMembership: async (input) => await getSpaceViewerMembership(client, input),
|
|
18121
18299
|
listSignals: async (input) => await listSpaceSignals(client, input),
|
|
@@ -18128,8 +18306,11 @@ const createSpaceApi = (client) => {
|
|
|
18128
18306
|
respondToAgentInteraction: async (input) => await respondToSpaceAgentInteraction(client, input),
|
|
18129
18307
|
getWakeProgress: async (input) => await getSpaceWakeProgress(client, input),
|
|
18130
18308
|
getWakeTraceWaterfall: async (input) => await getSpaceWakeTraceWaterfall(client, input),
|
|
18309
|
+
getMessageReactions: (input) => getSpaceMessageReactions(client, input),
|
|
18310
|
+
setMessageReaction: (input) => setSpaceMessageReaction(client, input),
|
|
18131
18311
|
getMessageDetails: async (input) => await getSpaceMessageDetails(client, input),
|
|
18132
18312
|
createDiagnosticReport: async (input) => await createSpaceDiagnosticReport(client, input),
|
|
18313
|
+
mutateMessage: (input) => mutateSpaceMessage(client, input),
|
|
18133
18314
|
postNormalMessage: async (input) => await postSpaceNormalMessage(client, input),
|
|
18134
18315
|
createThread: async (input) => await createSpaceThread(client, input),
|
|
18135
18316
|
listThreads: async (input) => await listSpaceThreads(client, input),
|
|
@@ -18139,6 +18320,40 @@ const createSpaceApi = (client) => {
|
|
|
18139
18320
|
postThreadSignal: async (input) => await postSpaceThreadSignal(client, input)
|
|
18140
18321
|
};
|
|
18141
18322
|
};
|
|
18323
|
+
async function readOrUpdateSpaceFilePins(client, input) {
|
|
18324
|
+
return await client.requestJson({
|
|
18325
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/file-pins`,
|
|
18326
|
+
operation: "space.file-pins",
|
|
18327
|
+
method: input.mutation ? "PATCH" : "GET",
|
|
18328
|
+
...input.mutation ? {
|
|
18329
|
+
headers: { "content-type": "application/json" },
|
|
18330
|
+
body: JSON.stringify(spaceFilePinMutationSchema.parse(input.mutation))
|
|
18331
|
+
} : {},
|
|
18332
|
+
requestContext: input.requestContext,
|
|
18333
|
+
signal: input.signal,
|
|
18334
|
+
timeoutMs: input.timeoutMs,
|
|
18335
|
+
spacePassword: input.spacePassword,
|
|
18336
|
+
schema: spaceFilePinsResponseSchema,
|
|
18337
|
+
invalidMessage: "Invalid pinned files response."
|
|
18338
|
+
});
|
|
18339
|
+
}
|
|
18340
|
+
async function readOrUpdateSpaceMessagePins(client, input) {
|
|
18341
|
+
return await client.requestJson({
|
|
18342
|
+
url: `/v1/spaces/${encodeURIComponent(input.spaceId)}/message-pins`,
|
|
18343
|
+
operation: "space.message-pins",
|
|
18344
|
+
method: input.mutation ? "PATCH" : "GET",
|
|
18345
|
+
...input.mutation ? {
|
|
18346
|
+
headers: { "content-type": "application/json" },
|
|
18347
|
+
body: JSON.stringify(spaceMessagePinMutationSchema.parse(input.mutation))
|
|
18348
|
+
} : {},
|
|
18349
|
+
requestContext: input.requestContext,
|
|
18350
|
+
signal: input.signal,
|
|
18351
|
+
timeoutMs: input.timeoutMs,
|
|
18352
|
+
spacePassword: input.spacePassword,
|
|
18353
|
+
schema: spaceMessagePinsResponseSchema,
|
|
18354
|
+
invalidMessage: "Invalid pinned messages response."
|
|
18355
|
+
});
|
|
18356
|
+
}
|
|
18142
18357
|
function createFetchTransport(input) {
|
|
18143
18358
|
const defaultTimeoutMs = normalizeOptionalTimeoutMs(input.defaultTimeoutMs);
|
|
18144
18359
|
return async function fetchTransport(request) {
|
|
@@ -18238,6 +18453,6 @@ function composeAbortSignals(parent, timeout) {
|
|
|
18238
18453
|
};
|
|
18239
18454
|
}
|
|
18240
18455
|
//#endregion
|
|
18241
|
-
export { buildLocalFolderPickerPath as $,
|
|
18456
|
+
export { buildLocalFolderPickerPath as $, createAgentProfileCreationRequestBodySchema as $n, agentActivityInventorySessionOriginSchema as $r, createProjectsApi as $t, buildCurrentOrganizationDirectoryPath as A, OPENMELD_HEADER_PROFILE_ID as An, listCenterAgentRoutinesResponseSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, projectSpaceDispatchTraceFinalVisibleOutcome as Bn, agentActivitySnapshotResponseSchema as Br, createFetchTransport as Bt, buildCenterAgentSessionPath as C, DAEMON_STREAM_KEEPALIVE_PING as Cn, profileErrorResponseSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, parseIncoming as Dn, createCenterAgentRoutineResponseSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, parseEnvelope as En, submitFeedbackIssueResponseSchema as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, toErrorMessage$2 as Fn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Fr, createComputerFileAccessApi as Ft, buildFeedbackIssueSubmissionPath as G, observabilityWakeTraceSelectorSchema as Gn, postSpaceMembersResponseSchema as Gr, createOpenMeldApiClient as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, spaceDispatchTraceAttemptStatusSchema as Hn, localProjectControlDaemonFrameSchema as Hr, createLocalFolderPickerApi as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, getSpaceUpdatesResponseSchema as In, agentActivityEventSchema as Ir, createConfigApi as It, buildInboxItemReadPath as J, ownerComputerDiagnosticsSchema as Jn, spaceMemberAgentWakeAvailabilitySchema as Jr, createOrganizationSkillsApi as Jt, buildInboxItemDismissPath as K, projectObservabilityWakeCorrelation as Kn, removeSpaceMembersResponseSchema as Kr, createOrganizationApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, spaceEntryTargetSchema as Ln, agentActivityProviderSchema as Lr, createCurrentDeviceApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, OPENMELD_HEADER_REQUEST_ID as Mn, resumeCenterAgentRoutineResponseSchema as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Nn, updateCenterAgentRoutineResponseSchema as Nr, createAgentProfileWorkRecoveryApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, parseServerErrorFrame as On, deleteCenterAgentRoutineResponseSchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, buildOpenMeldRequestContextHeaders as Pn, AGENT_ACTIVITY_EVENT_MAX_BYTES as Pr, createCenterAgentApi as Pt, buildInboxSummaryPath as Q, agentProfileCreationConfigurationSchema as Qn, spaceMemberKindSchema as Qr, createProfilesApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Rn, agentActivitySessionStatusSchema as Rr, createDirectMessageApi as Rt, buildCenterAgentProfilePath as S, uploadSpaceFile as Sn, profileCapabilitiesResponseSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, MAX_TEXT_LENGTH as Tn, submitFeedbackIssueRequestSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, spaceDispatchTraceDispatchStatusSchema as Un, localProjectControlDiscoverProjectsResponseSchema as Ur, createLocalProjectControlApi as Ut, buildCurrentOrganizationSpacesPath as V, resolveSpaceDispatchTraceRootCause as Vn, localProjectControlConnectionSchema as Vr, createInboxApi as Vt, buildDirectMessageSpacePath as W, spaceDispatchTraceResponseSchema as Wn, leaveSpaceResponseSchema as Wr, createLocalRuntimeExpectedRoutesApi as Wt, buildInboxPath as X, summarizeComputerFileAccessPolicy as Xn, spaceMemberDirectoryEntrySchema as Xr, createPrepareReadinessApi as Xt, buildInboxMarkAllReadPath as Y, projectOwnerComputerLocalRuntimes as Yn, spaceMemberDirectoryAllowedRelationsSchema as Yr, createOrganizationUsageApi as Yt, buildInboxPreferencesPath as Z, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as Zn, spaceMemberDirectorySchema as Zr, createProfileSpaceHistoryApi as Zt, buildCenterAgentDirectMessageSpacePath as _, localAgentCatalogSchema as _i, trashSpaceFileEntry as _n, organizationDirectoryResponseSchema as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, archiveProjectResponseSchema as ai, getModelCatalog as an, computerFileAccessPolicySchema as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, toCompatibleSpaceAddressingRequestWireValue as bi, updateSpaceMeta as bn, authProfileKindSchema as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, projectSchema as ci, listSpaceFiles as cn, resolveInitialSpaceAccessMode as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, openCodePermissionConfigSchema as di, readOrUpdateSpaceFilePins as dn, getOrganizationSkillResponseSchema as dr, buildOrganizationSkillsPath as dt, agentActivityInventorySessionStatusSchema as ei, createRoutinesApi as en, gatewayErrorEnvelopeSchema as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, START_BOUNDED_ID_SCHEMA as fi, readOrUpdateSpaceMessagePins as fn, listOrganizationSkillsResponseSchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, startReplyReadinessSummarySchema as gi, toStructuredApiClientFailure as gn, stringifyOrganizationSkillBundleCanonicalJson as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as hi, setSpaceAccessMode as hn, organizationSkillSummarySchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, observedLocalAgentSessionSchema as ii, downloadSpaceFileContent as in, computerFileAccessPolicyInputSchema as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as jn, pauseCenterAgentRoutineResponseSchema as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, resolveCustomMentionAliasOverride as kn, listCenterAgentRoutineRunsResponseSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, updateProjectResponseSchema as li, normalizeApiBaseUrl as ln, spaceCreatorSchema as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, START_ISO_DATE_TIME_SCHEMA as mi, resolveProfileSpaceHistoryGatewayHost as mn, organizationSkillReleaseSummarySchema as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivitySessionInventoryResponseSchema as ni, createSpaceApi as nn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, createProjectResponseSchema as oi, getSpaceFile as on, modelCatalogSchema as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, START_BOUNDED_VERSION_SCHEMA as pi, resolveAccountSpaceIndexGatewayHost as pn, organizationSkillBundleSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, submitAgentControllerTaskLifecycleEventItemSchema as qn, resolvedSpaceMemberProfileSchema as qr, createOrganizationDocumentsApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, localAgentSessionProviderSchema as ri, createSpaceFolder as rn, computerFileAccessDaemonFrameSchema as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, listProjectsResponseSchema as si, listSpaceFileRevisions as sn, organizationSpaceDirectoryWithMemberCountsResponseSchema as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, agentActivitySessionInventoryQuerySchema as ti, createRuntimeReportingApi as tn, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, centerAgentToolSpeakerSchema as ui, publicSpaceUrls as un, spaceMetaSchema as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, agentControllerPermissionModeSchema as vi, updateSpaceFileContent as vn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, DAEMON_STREAM_KEEPALIVE_PONG as wn, organizationComputersResponseSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, uploadSpaceAttachment as xn, authProfileManagedRoleSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, agentControllerCollaborationModeSchema as yi, updateSpaceFileEntry as yn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as zn, agentActivitySnapshotQuerySchema as zr, createFeedbackApi as zt };
|
|
18242
18457
|
|
|
18243
|
-
//# sourceMappingURL=dist-
|
|
18458
|
+
//# sourceMappingURL=dist-54I3Cb_o.js.map
|