openmeld 0.3.206 → 0.3.208
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-BkHWMxE4.js → add-me-membership-CZS8PbYL.js} +2 -2
- package/dist/{add-me-membership-BkHWMxE4.js.map → add-me-membership-CZS8PbYL.js.map} +1 -1
- package/dist/{agents-BOTlKiwS.js → agents-pHCyQoFw.js} +1327 -283
- package/dist/agents-pHCyQoFw.js.map +1 -0
- package/dist/{api-client-foundation-DpgDs0rw.js → api-client-foundation-BdBSoby4.js} +3 -3
- package/dist/{api-client-foundation-DpgDs0rw.js.map → api-client-foundation-BdBSoby4.js.map} +1 -1
- package/dist/{api-client-foundation-6ms5gSu8.js → api-client-foundation-JiKYZcZI.js} +1 -1
- package/dist/auth-session-DDsceN-R.js +4 -0
- package/dist/{auth-session-BjSqMLTz.js → auth-session-ijcuaSsZ.js} +266 -75
- package/dist/auth-session-ijcuaSsZ.js.map +1 -0
- package/dist/{base-url-CRAYNW-4.js → base-url-BE3pFiOZ.js} +1 -1
- package/dist/{base-url-9A557X2K.js → base-url-C6sHRNGu.js} +2 -2
- package/dist/{base-url-9A557X2K.js.map → base-url-C6sHRNGu.js.map} +1 -1
- package/dist/cli-binary-manifest-DiUulkp0.js +117 -0
- package/dist/cli-binary-manifest-DiUulkp0.js.map +1 -0
- package/dist/{command-CkbzbvXy.js → command-CewWTp57.js} +53 -12
- package/dist/command-CewWTp57.js.map +1 -0
- package/dist/computer-connection-DK6L1_LF.js +54 -0
- package/dist/computer-connection-DK6L1_LF.js.map +1 -0
- package/dist/computer-connection-review-Dx4svB-T.js +39 -0
- package/dist/computer-connection-review-Dx4svB-T.js.map +1 -0
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js → computer-setup-continuation-Bc0Tb7fi.js} +4 -4
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js.map → computer-setup-continuation-Bc0Tb7fi.js.map} +1 -1
- package/dist/control-plane-D9jDcbMZ.js +1211 -0
- package/dist/control-plane-D9jDcbMZ.js.map +1 -0
- package/dist/daemon-local-state-file-jOXuXrky.js +45 -0
- package/dist/daemon-local-state-file-jOXuXrky.js.map +1 -0
- package/dist/daemon-runtime-lease-Dd4hdHNo.js +50 -0
- package/dist/daemon-runtime-lease-Dd4hdHNo.js.map +1 -0
- package/dist/{daemon-runtime-lease-BG9g0a6Z.js → daemon-runtime-lease-y3n1K0-C.js} +1 -1
- package/dist/{daemon-service-manager-DqVtRLBY.js → daemon-service-manager-Bh0LoLed.js} +1 -1
- package/dist/{daemon-service-manager-BVipiZwK.js → daemon-service-manager-GiMCiTmu.js} +99 -85
- package/dist/daemon-service-manager-GiMCiTmu.js.map +1 -0
- package/dist/daemon-service-runtime-D0LhAIGx.js +3642 -0
- package/dist/daemon-service-runtime-D0LhAIGx.js.map +1 -0
- package/dist/{daemon-state-BwIoDq7_.js → daemon-state-C37ZtIZK.js} +11 -5
- package/dist/daemon-state-C37ZtIZK.js.map +1 -0
- package/dist/{dist-CxadJClH.js → dist-B8I8inkY.js} +768 -579
- package/dist/dist-B8I8inkY.js.map +1 -0
- package/dist/dist-Dtdw34oo.js +4 -0
- package/dist/distribution-DY2fBeSW.js +72 -0
- package/dist/distribution-DY2fBeSW.js.map +1 -0
- package/dist/{elapsed-time-C7P-nWIO.js → elapsed-time-DZLKdEno.js} +7 -4
- package/dist/{elapsed-time-C7P-nWIO.js.map → elapsed-time-DZLKdEno.js.map} +1 -1
- package/dist/{installation-inventory-P49sTjhe.js → installation-inventory-_fMZas6v.js} +7 -6
- package/dist/{installation-inventory-P49sTjhe.js.map → installation-inventory-_fMZas6v.js.map} +1 -1
- package/dist/{lock-CvBnBcFK.js → lock-Dxp6o_t_.js} +56 -7
- package/dist/lock-Dxp6o_t_.js.map +1 -0
- package/dist/{openmeld-ChOHuaqH.js → openmeld-DQNVH1jx.js} +468 -41
- package/dist/openmeld-DQNVH1jx.js.map +1 -0
- package/dist/openmeld-dev.js +1 -1
- package/dist/openmeld-environment-target-NtJYJe1D.js +256 -0
- package/dist/openmeld-environment-target-NtJYJe1D.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-C7WykyDt.js → openmeld-maintenance-worker-CgGOwbP4.js} +9 -8
- package/dist/{openmeld-maintenance-worker-C7WykyDt.js.map → openmeld-maintenance-worker-CgGOwbP4.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-BBZhGo1A.js → openmeld-tools-update-coordinator-D6uuBitR.js} +558 -4107
- package/dist/openmeld-tools-update-coordinator-D6uuBitR.js.map +1 -0
- package/dist/openmeld.js +3 -3
- package/dist/{prepare-session-executor-CLmDoHom.js → prepare-session-executor-DQqmhjGj.js} +15 -13
- package/dist/{prepare-session-executor-CLmDoHom.js.map → prepare-session-executor-DQqmhjGj.js.map} +1 -1
- package/dist/{profiles-BCecj4Pj.js → runtime-transport-DryoU4rm.js} +1041 -2096
- package/dist/runtime-transport-DryoU4rm.js.map +1 -0
- package/dist/service-account-authorization-BN2F75_x.js +56 -0
- package/dist/service-account-authorization-BN2F75_x.js.map +1 -0
- package/dist/service-control-capabilities-BqEr7J9H.js +4 -0
- package/dist/service-control-capabilities-CnG1E-e3.js +54 -0
- package/dist/service-control-capabilities-CnG1E-e3.js.map +1 -0
- package/dist/upgrade-B9gjUOgQ.js +4 -0
- package/dist/{upgrade-l_5Tge_z.js → upgrade-CNeTiYSS.js} +6 -4
- package/dist/upgrade-CNeTiYSS.js.map +1 -0
- package/package.json +2 -2
- package/dist/agents-BOTlKiwS.js.map +0 -1
- package/dist/auth-session-BjSqMLTz.js.map +0 -1
- package/dist/auth-session-ahQ5VXiF.js +0 -4
- package/dist/command-CkbzbvXy.js.map +0 -1
- package/dist/daemon-runtime-lease-CXlGR-iA.js +0 -87
- package/dist/daemon-runtime-lease-CXlGR-iA.js.map +0 -1
- package/dist/daemon-service-manager-BVipiZwK.js.map +0 -1
- package/dist/daemon-state-BwIoDq7_.js.map +0 -1
- package/dist/dist-0boZRalP.js +0 -4
- package/dist/dist-CxadJClH.js.map +0 -1
- package/dist/lock-CvBnBcFK.js.map +0 -1
- package/dist/openmeld-ChOHuaqH.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-BBZhGo1A.js.map +0 -1
- package/dist/profiles-BCecj4Pj.js.map +0 -1
- package/dist/upgrade-BKEAZKre.js +0 -4
- package/dist/upgrade-l_5Tge_z.js.map +0 -1
|
@@ -1,10 +1,46 @@
|
|
|
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 { $
|
|
4
|
+
import { $ as agentTaskHandleSchema, $n as spaceFileMimeTypeSchema, Ar as openMeldWebUrlSchema, At as spacePasswordSchema, Bn as listSpaceFileRevisionsResponseSchema, Ct as runtimeCoordinatorExecutionEventSchema, Dn as centerAgentInteractionSourceSchema, Dt as spaceTraceExecutionIdentityProjectionSchema, En as conversationCompactionMarkerSchema, Ft as executeExecutionRecoveryResponseSchema, Gn as restoreSpaceFileEntryResponseSchema, Gt as localFolderPathSchema, H as openMeldDaemonProviderAccessEvidenceProviderSchema, Hn as publishSpaceComposerUploadResponseSchema, Hr as authProfileManagedRoleSchema, In as createSpaceFolderResponseSchema, Ir as localAgentCatalogLaunchStatusSchema, It as inspectExecutionRecoveryResponseSchema, Jn as spaceComposerUploadIdSchema, Jr as updateProfileResponseSchema, Kn as restoreSpaceFileRevisionResponseSchema, Kr as updateAgentProfileDefaultProjectBodySchema, L as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Ln as discardSpaceComposerUploadResponseSchema, Lt as agentProfileWorkRecoveryActionKindSchema, Mn as spaceMentionLabelSourceSchema, Mt as organizationProtectedInformationSchema, Nn as SPACE_FILE_ERROR_CODES, Nt as updateOrganizationInformationProtectionPolicyBodySchema, Or as computerSetupModeSchema, Ot as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, Pn as SPACE_FILE_MAX_SIZE_BYTES, Pt as executeExecutionRecoveryBodySchema, Q as agentTaskCompletionObservationSchema, Qn as spaceFileEntryIdSchema, Rn as getSpaceFileResponseSchema, Rr as localAgentCatalogWithLifecycleSchema, Sr as spaceThreadSignalPlacementSchema, St as runtimeCoordinatorExecutionCreationDiagnosticSchema, Ur as authProfileViewSchema, Ut as localFolderPickerRequestSchema, V as openMeldDaemonOriginalErrorSchema, Vn as listSpaceFilesResponseSchema, Wt as localFolderPickerResultSchema, X as agentDelegationSnapshotSchema, Xn as spaceFileClientMutationIdSchema, Xr as openMeldRequestContextSchema, Y as spaceCallerContextSchema, Yn as spaceFileActorSchema, Z as agentTaskCompletionConditionSchema, Zn as spaceFileDescriptorSchema, Zr as MAX_TEXT_LENGTH$1, an as signalSystemNoticeDataSchema, ar as updateSpaceFileEntryResponseSchema, bn as messageEnvelopeSchema, br as spaceThreadEventSchema, bt as postSpaceWakeStopBodySchema, cn as wakeDeviceWaitTargetSchema, ct as spaceAllowedActionsSchema, dn as spaceAttachmentFileNameSchema, dr as spaceAgentStreamDeltaFrameSchema, dt as workingLanguageGuidanceSchema, er as spaceFileNameSchema, et as agentTaskTerminalOutcomeSchema, fn as spaceAttachmentMimeTypeSchema, fr as spaceAgentStreamPartFrameSchema, ft as workingLanguageTagSchema, gt as agentInteractionPendingSummarySchema, hn as spaceMessageAttachmentsSchema, hr as spaceAgentStreamTerminalFrameSchema, in as signalStatusDataSchema, ir as trashSpaceFileEntryResponseSchema, it as spaceWakeAgentTaskHandleSchema, jn as spaceMentionLabelSchema, jr as START_BOUNDED_ID_SCHEMA, jt as organizationInformationProtectionPolicyResponseSchema, kr as openMeldNavigationTargetSchema, kt as normalizeSpacePasswordText, ln as spaceAttachmentDescriptorSchema, lr as AGENT_STREAM_SNAPSHOT_MAX_CHARS, lt as spacePublicationModeSchema, mn as spaceMessageAttachmentSchema, mr as spaceAgentStreamSnapshotSchema, mt as targetWakeLifecycleIdentitySchema, n as daemonExecutionCompatibilitySchema, nr as spaceMessageFileReferencesSchema, nt as buildAgentTaskKey, on as signalTextDataSchema, or as uploadSpaceFileResponseSchema, pn as spaceAttachmentSizeBytesSchema, pr as spaceAgentStreamPresenceSchema, q as openMeldDaemonTaskResultProjectFailureContextSchema, qn as spaceComposerUploadDescriptorSchema, qr as updateAgentProfileDefaultProjectResponseSchema, rr as stageSpaceComposerUploadResponseSchema, rt as controllerAgentTaskHandleSchema, sn as signalTextSchema, sr as clientMessageIdSchema$1, st as resultArchivePolicySchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tt as areAgentTaskTerminalOutcomesEqual, un as spaceAttachmentDimensionSchema, ur as agentStreamToolPartSchema, ut as spaceDispatchPolicySchema, vr as localAgentReasoningPreferencesSchema, wt as runtimeCoordinatorExecutionRecordSchema, xr as spaceThreadSchema, xt as postSpaceWakeStopResponseSchema, yr as spaceThreadContextSchema, yt as agentInteractionResponseSchema } from "./runtime-transport-DryoU4rm.js";
|
|
5
|
+
import { n as cliBinaryManifestSchema } from "./cli-binary-manifest-DiUulkp0.js";
|
|
6
|
+
import { $ as literal, B as openMeldToolsUpdateRequestResultSchema, Ct as uuidProfileIdSchema, D as localComponentUpdatePolicySchema, Dt as trimmedStringFromUnknown, Et as optionalBooleanQuerySchema, F as openMeldToolsMaintenanceMutationResultSchema, G as boolean, H as NEVER, I as openMeldToolsMaintenanceProjectionSchema, J as email, K as coerce, O as localComponentUpdateProjectionSchema, Q as lazySchema, St as profileWorkspaceModeSchema, Tt as nonEmptyTrimmedStringFromUnknown, W as array, X as int, Y as enumFactory, Z as iso, at as record, b as dispatchExecutionSchema, bt as profileSchema, ct as tuple, dt as unknown, et as neverFactory, ft as url, gt as openMeldRuntimeProfileIdSchema, it as preprocess, k as localComponentUpdateStatusSchema, lt as undefinedFactory, m as openMeldDaemonSyncRouteCatalogPayloadSchema, mt as agentProfileIdSchema, nt as number, ot as strictObject, q as discriminatedUnion, rt as object, st as string, t as localAgentInstallationOptionSchema, tt as nullFactory, ut as union, vt as profileKindSchema, wt as finiteIntegerNumber, xt as profileWorkingDirectorySchema, z as openMeldToolsUpdateOperationSchema } from "./control-plane-D9jDcbMZ.js";
|
|
5
7
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
6
8
|
import { n as toErrorMessage$3 } from "./dist-o3UL1EGQ.js";
|
|
7
9
|
import * as z$1 from "zod/v4";
|
|
10
|
+
//#region ../../packages/schemas/dist/account-organization-context.js
|
|
11
|
+
const ACCOUNT_ORGANIZATION_CONTEXT_PATH = "/v1/account/organization-context";
|
|
12
|
+
const organizationSummarySchema = z$1.strictObject({
|
|
13
|
+
id: z$1.string().refine((value) => value.trim().length > 0),
|
|
14
|
+
name: z$1.string().refine((value) => value.trim().length > 0),
|
|
15
|
+
slug: z$1.string().refine((value) => value.trim().length > 0),
|
|
16
|
+
logo: z$1.string().nullable().optional(),
|
|
17
|
+
isPersonal: z$1.boolean().optional()
|
|
18
|
+
});
|
|
19
|
+
const accountOrganizationContextSchema = z$1.strictObject({
|
|
20
|
+
account: z$1.strictObject({
|
|
21
|
+
email: z$1.string().nullable(),
|
|
22
|
+
image: z$1.string().nullable(),
|
|
23
|
+
name: z$1.string().nullable()
|
|
24
|
+
}),
|
|
25
|
+
currentUserId: z$1.string().trim().min(1),
|
|
26
|
+
organizations: z$1.array(organizationSummarySchema),
|
|
27
|
+
defaultOrganizationId: z$1.string().min(1).nullable()
|
|
28
|
+
}).refine((value) => value.defaultOrganizationId === null ? value.organizations.length === 0 : value.organizations.some((organization) => organization.id === value.defaultOrganizationId));
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../../packages/schemas/dist/account-session.js
|
|
31
|
+
const ACCOUNT_SESSION_PATH = "/v1/account/session";
|
|
32
|
+
const accountSessionSchema = z$1.strictObject({
|
|
33
|
+
user: z$1.strictObject({
|
|
34
|
+
id: z$1.string().min(1),
|
|
35
|
+
email: z$1.string(),
|
|
36
|
+
name: z$1.string(),
|
|
37
|
+
image: z$1.string().nullable(),
|
|
38
|
+
emailVerified: z$1.boolean(),
|
|
39
|
+
createdAt: z$1.iso.datetime()
|
|
40
|
+
}),
|
|
41
|
+
session: z$1.strictObject({ id: z$1.string().min(1) })
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
8
44
|
//#region ../../packages/schemas/dist/agent-execution-readiness-impact-taxonomy.js
|
|
9
45
|
const AGENT_EXECUTION_READINESS_IMPACT_REASON_CODES = [
|
|
10
46
|
"controller.launch.choice_required",
|
|
@@ -31,6 +67,148 @@ z$1.enum(AGENT_EXECUTION_READINESS_IMPACT_EFFECTS);
|
|
|
31
67
|
z$1.enum(AGENT_EXECUTION_READINESS_IMPACT_SCOPES);
|
|
32
68
|
z$1.enum(AGENT_EXECUTION_READINESS_IMPACT_CLEARING_TRIGGERS);
|
|
33
69
|
//#endregion
|
|
70
|
+
//#region ../../packages/schemas/dist/cli-release.js
|
|
71
|
+
const CLI_RELEASE_PATH = "/v1/cli/release";
|
|
72
|
+
const cliReleaseSchema = z$1.strictObject({ version: cliBinaryManifestSchema.shape.channels.shape.stable.shape.version });
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ../../packages/schemas/dist/schemas/http/profile-space-history.js
|
|
75
|
+
const ISO_DATE_TIME_SCHEMA$15 = z$1.iso.datetime({ offset: true });
|
|
76
|
+
const GATEWAY_HOST_MAX_LENGTH = 255;
|
|
77
|
+
const PROFILE_SPACE_HISTORY_MAX_LIMIT = 500;
|
|
78
|
+
const NON_NEGATIVE_INT_RE$2 = /^\d+$/;
|
|
79
|
+
const GATEWAY_HOST_PATH_CHARS_RE = /[/?#]/;
|
|
80
|
+
const trimmedNonEmptyStringSchema$16 = z$1.string().trim().min(1);
|
|
81
|
+
const nullableTrimmedStringSchema$9 = z$1.union([trimmedNonEmptyStringSchema$16, z$1.null()]);
|
|
82
|
+
const nullableNonNegativeIntSchema$1 = z$1.union([z$1.number().int().min(0), z$1.null()]);
|
|
83
|
+
const nullableIsoDateTimeSchema$7 = z$1.union([ISO_DATE_TIME_SCHEMA$15, z$1.null()]);
|
|
84
|
+
const profileSpaceHistoryGatewayHostSchema = z$1.string().transform((value, ctx) => {
|
|
85
|
+
const normalized = value.trim().toLowerCase();
|
|
86
|
+
if (normalized.length === 0) {
|
|
87
|
+
ctx.addIssue({
|
|
88
|
+
code: "custom",
|
|
89
|
+
message: "gatewayHost is required"
|
|
90
|
+
});
|
|
91
|
+
return z$1.NEVER;
|
|
92
|
+
}
|
|
93
|
+
if (normalized.includes("://")) try {
|
|
94
|
+
const url = new URL(normalized);
|
|
95
|
+
if (url.pathname !== "/" || url.search.length > 0 || url.hash.length > 0) {
|
|
96
|
+
ctx.addIssue({
|
|
97
|
+
code: "custom",
|
|
98
|
+
message: "gatewayHost must not include path/query/hash"
|
|
99
|
+
});
|
|
100
|
+
return z$1.NEVER;
|
|
101
|
+
}
|
|
102
|
+
if (url.host.length === 0) {
|
|
103
|
+
ctx.addIssue({
|
|
104
|
+
code: "custom",
|
|
105
|
+
message: "gatewayHost is required"
|
|
106
|
+
});
|
|
107
|
+
return z$1.NEVER;
|
|
108
|
+
}
|
|
109
|
+
return url.host.toLowerCase();
|
|
110
|
+
} catch {
|
|
111
|
+
ctx.addIssue({
|
|
112
|
+
code: "custom",
|
|
113
|
+
message: "gatewayHost must be a valid host"
|
|
114
|
+
});
|
|
115
|
+
return z$1.NEVER;
|
|
116
|
+
}
|
|
117
|
+
if (GATEWAY_HOST_PATH_CHARS_RE.test(normalized)) {
|
|
118
|
+
ctx.addIssue({
|
|
119
|
+
code: "custom",
|
|
120
|
+
message: "gatewayHost must not include path/query/hash"
|
|
121
|
+
});
|
|
122
|
+
return z$1.NEVER;
|
|
123
|
+
}
|
|
124
|
+
return normalized;
|
|
125
|
+
}).pipe(z$1.string().max(GATEWAY_HOST_MAX_LENGTH));
|
|
126
|
+
const profileSpaceHistoryLimitSchema = z$1.preprocess((value) => {
|
|
127
|
+
if (typeof value === "number") return value;
|
|
128
|
+
if (typeof value !== "string") return value;
|
|
129
|
+
const normalized = value.trim();
|
|
130
|
+
if (!NON_NEGATIVE_INT_RE$2.test(normalized)) return NaN;
|
|
131
|
+
return Number.parseInt(normalized, 10);
|
|
132
|
+
}, z$1.number().int().min(1).max(PROFILE_SPACE_HISTORY_MAX_LIMIT)).optional();
|
|
133
|
+
const profileSpaceHistoryPinnedFilterSchema = z$1.union([z$1.boolean(), z$1.enum(["true", "false"])]).optional().transform((value) => {
|
|
134
|
+
if (value === void 0 || typeof value === "boolean") return value;
|
|
135
|
+
return value === "true";
|
|
136
|
+
});
|
|
137
|
+
const profileSpaceHistoryStatusSchema = z$1.enum([
|
|
138
|
+
"active",
|
|
139
|
+
"removed",
|
|
140
|
+
"inaccessible"
|
|
141
|
+
]);
|
|
142
|
+
const profileSpaceCreatorKindSchema = z$1.enum([
|
|
143
|
+
"human",
|
|
144
|
+
"agent",
|
|
145
|
+
"system"
|
|
146
|
+
]);
|
|
147
|
+
const profileSpaceHistoryStatusListSchema = z$1.union([profileSpaceHistoryStatusSchema, z$1.array(profileSpaceHistoryStatusSchema)]).optional().transform((value) => {
|
|
148
|
+
if (value === void 0) return;
|
|
149
|
+
return Array.isArray(value) ? value : [value];
|
|
150
|
+
});
|
|
151
|
+
const profileSpaceHistoryRecordSchema = z$1.strictObject({
|
|
152
|
+
profileId: trimmedNonEmptyStringSchema$16,
|
|
153
|
+
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
154
|
+
spaceId: trimmedNonEmptyStringSchema$16,
|
|
155
|
+
spaceName: nullableTrimmedStringSchema$9,
|
|
156
|
+
creatorProfileId: nullableTrimmedStringSchema$9,
|
|
157
|
+
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]),
|
|
158
|
+
spaceCreatedAt: nullableIsoDateTimeSchema$7,
|
|
159
|
+
spaceUpdatedAt: nullableIsoDateTimeSchema$7,
|
|
160
|
+
lastJoinedAt: ISO_DATE_TIME_SCHEMA$15,
|
|
161
|
+
lastSeenTs: nullableNonNegativeIntSchema$1,
|
|
162
|
+
pinnedAt: nullableIsoDateTimeSchema$7,
|
|
163
|
+
status: profileSpaceHistoryStatusSchema,
|
|
164
|
+
createdAt: ISO_DATE_TIME_SCHEMA$15,
|
|
165
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$15
|
|
166
|
+
});
|
|
167
|
+
z$1.strictObject({
|
|
168
|
+
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
169
|
+
status: profileSpaceHistoryStatusListSchema,
|
|
170
|
+
limit: profileSpaceHistoryLimitSchema,
|
|
171
|
+
pinned: profileSpaceHistoryPinnedFilterSchema
|
|
172
|
+
});
|
|
173
|
+
const listProfileSpaceHistoryResponseSchema = z$1.strictObject({ items: z$1.array(profileSpaceHistoryRecordSchema) });
|
|
174
|
+
const profileSpaceHistorySpaceIndexOverlaySchema = z$1.strictObject({
|
|
175
|
+
repairAttempted: z$1.boolean(),
|
|
176
|
+
status: z$1.enum([
|
|
177
|
+
"applied",
|
|
178
|
+
"degraded",
|
|
179
|
+
"pending"
|
|
180
|
+
]),
|
|
181
|
+
updated: z$1.boolean()
|
|
182
|
+
});
|
|
183
|
+
z$1.strictObject({
|
|
184
|
+
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
185
|
+
spaceName: nullableTrimmedStringSchema$9.optional(),
|
|
186
|
+
creatorProfileId: nullableTrimmedStringSchema$9.optional(),
|
|
187
|
+
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]).optional(),
|
|
188
|
+
spaceCreatedAt: nullableIsoDateTimeSchema$7.optional(),
|
|
189
|
+
spaceUpdatedAt: nullableIsoDateTimeSchema$7.optional(),
|
|
190
|
+
lastJoinedAt: ISO_DATE_TIME_SCHEMA$15.optional(),
|
|
191
|
+
lastSeenTs: nullableNonNegativeIntSchema$1.optional(),
|
|
192
|
+
pinnedAt: nullableIsoDateTimeSchema$7.optional(),
|
|
193
|
+
status: profileSpaceHistoryStatusSchema.optional()
|
|
194
|
+
});
|
|
195
|
+
const upsertProfileSpaceHistoryResponseSchema = z$1.strictObject({
|
|
196
|
+
item: profileSpaceHistoryRecordSchema,
|
|
197
|
+
spaceIndexOverlay: profileSpaceHistorySpaceIndexOverlaySchema
|
|
198
|
+
});
|
|
199
|
+
z$1.strictObject({
|
|
200
|
+
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
201
|
+
status: profileSpaceHistoryStatusSchema,
|
|
202
|
+
reason: z$1.string().trim().min(1).max(500).optional()
|
|
203
|
+
});
|
|
204
|
+
const patchProfileSpaceHistoryStatusResponseSchema = z$1.strictObject({
|
|
205
|
+
profileId: trimmedNonEmptyStringSchema$16,
|
|
206
|
+
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
207
|
+
spaceId: trimmedNonEmptyStringSchema$16,
|
|
208
|
+
status: profileSpaceHistoryStatusSchema,
|
|
209
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$15
|
|
210
|
+
});
|
|
211
|
+
//#endregion
|
|
34
212
|
//#region ../../packages/schemas/dist/compatibility/legacy-space-addressing-wire.js
|
|
35
213
|
const MESSAGE_ENVELOPE_WIRE_FIELD_NAMES = /* @__PURE__ */ new Set(["messageEnvelope", "sourceMessageEnvelope"]);
|
|
36
214
|
/**
|
|
@@ -1008,7 +1186,7 @@ const getPrepareReadinessResponseSchema = z$1.strictObject({
|
|
|
1008
1186
|
});
|
|
1009
1187
|
//#endregion
|
|
1010
1188
|
//#region ../../packages/schemas/dist/schemas/http/local-runtimes.js
|
|
1011
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
1189
|
+
const ISO_DATE_TIME_SCHEMA$14 = iso.datetime({ offset: true });
|
|
1012
1190
|
const reasonCodeSchema$4 = string().trim().min(1).max(256);
|
|
1013
1191
|
const localRuntimeDisplayNameSourceSchema = enumFactory([
|
|
1014
1192
|
"user",
|
|
@@ -1224,7 +1402,7 @@ const localRuntimeReplyReadinessNextActionSchema = enumFactory([
|
|
|
1224
1402
|
]);
|
|
1225
1403
|
const currentLocalRuntimeReplyReadinessResponseSchema = strictObject({
|
|
1226
1404
|
canReplyFromThisComputer: boolean(),
|
|
1227
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
1405
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$14,
|
|
1228
1406
|
message: string().trim().min(1).max(500),
|
|
1229
1407
|
nextAction: localRuntimeReplyReadinessNextActionSchema,
|
|
1230
1408
|
primaryBlocker: localRuntimeReplyReadinessPrimaryBlockerSchema,
|
|
@@ -2615,10 +2793,10 @@ function hasUnavailableBindingReadReason(reasonCodes) {
|
|
|
2615
2793
|
}
|
|
2616
2794
|
//#endregion
|
|
2617
2795
|
//#region ../../packages/schemas/dist/schemas/http/agent-execution-readiness.js
|
|
2618
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
2619
|
-
const trimmedNonEmptyStringSchema$
|
|
2620
|
-
const nullableTrimmedStringSchema$
|
|
2621
|
-
const nullableIsoDateTimeSchema$
|
|
2796
|
+
const ISO_DATE_TIME_SCHEMA$13 = iso.datetime({ offset: true });
|
|
2797
|
+
const trimmedNonEmptyStringSchema$15 = string().trim().min(1);
|
|
2798
|
+
const nullableTrimmedStringSchema$8 = union([trimmedNonEmptyStringSchema$15, nullFactory()]);
|
|
2799
|
+
const nullableIsoDateTimeSchema$6 = union([ISO_DATE_TIME_SCHEMA$13, nullFactory()]);
|
|
2622
2800
|
const agentExecutionReadinessRouteParamsSchema = strictObject({ agentProfileId: agentProfileIdSchema });
|
|
2623
2801
|
const agentExecutionReadinessTargetRuntimeSchema = discriminatedUnion("kind", [strictObject({ kind: literal("current_local_runtime") }), strictObject({
|
|
2624
2802
|
kind: literal("openmeld_service_runtime_id"),
|
|
@@ -2649,7 +2827,7 @@ const agentExecutionReadinessPrimaryActionPlanSchema = discriminatedUnion("actio
|
|
|
2649
2827
|
strictObject({
|
|
2650
2828
|
action: literal("reconnect_binding"),
|
|
2651
2829
|
target: union([strictObject({ kind: literal("choose_local_agent") }), strictObject({
|
|
2652
|
-
agentControllerRef: trimmedNonEmptyStringSchema$
|
|
2830
|
+
agentControllerRef: trimmedNonEmptyStringSchema$15,
|
|
2653
2831
|
kind: literal("local_agent_connection")
|
|
2654
2832
|
})])
|
|
2655
2833
|
}),
|
|
@@ -2676,8 +2854,8 @@ const agentExecutionReadinessPrimaryActionPlanSchema = discriminatedUnion("actio
|
|
|
2676
2854
|
const wakeRouteEvidenceSchema = daemonRouteObservationSummarySchema;
|
|
2677
2855
|
const wakeRouteStatusSchema = discriminatedUnion("status", [strictObject({
|
|
2678
2856
|
connectionGeneration: int().positive(),
|
|
2679
|
-
daemonSessionId: trimmedNonEmptyStringSchema$
|
|
2680
|
-
deviceId: trimmedNonEmptyStringSchema$
|
|
2857
|
+
daemonSessionId: trimmedNonEmptyStringSchema$15,
|
|
2858
|
+
deviceId: trimmedNonEmptyStringSchema$15,
|
|
2681
2859
|
lane: daemonServiceLaneSchema,
|
|
2682
2860
|
lastHeartbeatMs: int().nonnegative(),
|
|
2683
2861
|
leaseEpoch: int().positive(),
|
|
@@ -2696,12 +2874,12 @@ const agentWakeRouteRegistrationSchema = strictObject({
|
|
|
2696
2874
|
"expired",
|
|
2697
2875
|
"unavailable"
|
|
2698
2876
|
]),
|
|
2699
|
-
reasonCode: nullableTrimmedStringSchema$
|
|
2877
|
+
reasonCode: nullableTrimmedStringSchema$8,
|
|
2700
2878
|
reportedAtMs: number().int().nonnegative().nullable(),
|
|
2701
|
-
daemonSessionId: nullableTrimmedStringSchema$
|
|
2702
|
-
deviceId: nullableTrimmedStringSchema$
|
|
2879
|
+
daemonSessionId: nullableTrimmedStringSchema$8,
|
|
2880
|
+
deviceId: nullableTrimmedStringSchema$8,
|
|
2703
2881
|
lane: union([daemonServiceLaneSchema, nullFactory()]),
|
|
2704
|
-
serviceVersion: nullableTrimmedStringSchema$
|
|
2882
|
+
serviceVersion: nullableTrimmedStringSchema$8
|
|
2705
2883
|
});
|
|
2706
2884
|
const agentWakeAvailabilityStatusSchema = enumFactory([
|
|
2707
2885
|
"available_for_wake",
|
|
@@ -2731,15 +2909,15 @@ const agentWakeAvailabilityPhaseSchema = enumFactory([
|
|
|
2731
2909
|
]);
|
|
2732
2910
|
const agentWakeAvailabilitySchema = strictObject({
|
|
2733
2911
|
action: agentExecutionReadinessPrimaryActionSchema,
|
|
2734
|
-
badgeLabel: trimmedNonEmptyStringSchema$
|
|
2912
|
+
badgeLabel: trimmedNonEmptyStringSchema$15,
|
|
2735
2913
|
category: agentWakeAvailabilityCategorySchema,
|
|
2736
2914
|
isRefreshing: boolean(),
|
|
2737
|
-
label: trimmedNonEmptyStringSchema$
|
|
2915
|
+
label: trimmedNonEmptyStringSchema$15,
|
|
2738
2916
|
phase: agentWakeAvailabilityPhaseSchema,
|
|
2739
|
-
reasonCode: nullableTrimmedStringSchema$
|
|
2917
|
+
reasonCode: nullableTrimmedStringSchema$8,
|
|
2740
2918
|
status: agentWakeAvailabilityStatusSchema,
|
|
2741
|
-
summary: trimmedNonEmptyStringSchema$
|
|
2742
|
-
tooltip: trimmedNonEmptyStringSchema$
|
|
2919
|
+
summary: trimmedNonEmptyStringSchema$15,
|
|
2920
|
+
tooltip: trimmedNonEmptyStringSchema$15
|
|
2743
2921
|
});
|
|
2744
2922
|
const agentExecutionReadinessSchema = strictObject({
|
|
2745
2923
|
agentProfileId: agentProfileIdSchema,
|
|
@@ -2752,7 +2930,7 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2752
2930
|
facts: strictObject({
|
|
2753
2931
|
profile: strictObject({
|
|
2754
2932
|
active: boolean(),
|
|
2755
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
2933
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2756
2934
|
source: enumFactory([
|
|
2757
2935
|
"not_checked",
|
|
2758
2936
|
"profile_identity",
|
|
@@ -2760,7 +2938,7 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2760
2938
|
])
|
|
2761
2939
|
}),
|
|
2762
2940
|
binding: strictObject({
|
|
2763
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
2941
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2764
2942
|
routable: boolean(),
|
|
2765
2943
|
source: enumFactory([
|
|
2766
2944
|
"binding_truth",
|
|
@@ -2773,7 +2951,7 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2773
2951
|
claim: strictObject({
|
|
2774
2952
|
executionBlocked: boolean(),
|
|
2775
2953
|
grantsClaimSuccess: literal(false),
|
|
2776
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
2954
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2777
2955
|
source: enumFactory(["claim_diagnostics", "not_checked"])
|
|
2778
2956
|
}),
|
|
2779
2957
|
providerAccount: strictObject({
|
|
@@ -2781,20 +2959,20 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2781
2959
|
expiresAtMs: number().int().nonnegative().nullable(),
|
|
2782
2960
|
observedAtMs: number().int().nonnegative().nullable(),
|
|
2783
2961
|
provider: union([openMeldDaemonProviderAccessEvidenceProviderSchema, nullFactory()]),
|
|
2784
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
2962
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2785
2963
|
source: enumFactory(["not_checked", "wake_failure"])
|
|
2786
2964
|
}),
|
|
2787
2965
|
providerConversation: strictObject({
|
|
2788
|
-
agentControllerConversationId: nullableTrimmedStringSchema$
|
|
2789
|
-
errorCode: nullableTrimmedStringSchema$
|
|
2790
|
-
errorMessage: nullableTrimmedStringSchema$
|
|
2791
|
-
errorType: nullableTrimmedStringSchema$
|
|
2966
|
+
agentControllerConversationId: nullableTrimmedStringSchema$8,
|
|
2967
|
+
errorCode: nullableTrimmedStringSchema$8,
|
|
2968
|
+
errorMessage: nullableTrimmedStringSchema$8,
|
|
2969
|
+
errorType: nullableTrimmedStringSchema$8,
|
|
2792
2970
|
expiresAtMs: number().int().nonnegative().nullable(),
|
|
2793
2971
|
method: union([literal("codex_app_server_thread_resume"), nullFactory()]),
|
|
2794
2972
|
observedAtMs: number().int().nonnegative().nullable(),
|
|
2795
2973
|
provider: union([literal("codex"), nullFactory()]),
|
|
2796
2974
|
ready: boolean(),
|
|
2797
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
2975
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2798
2976
|
required: boolean(),
|
|
2799
2977
|
source: enumFactory([
|
|
2800
2978
|
"not_required",
|
|
@@ -2814,13 +2992,13 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2814
2992
|
expiresAtMs: number().int().nonnegative().nullable(),
|
|
2815
2993
|
impactKind: union([agentExecutionReadinessImpactKindSchema, nullFactory()]),
|
|
2816
2994
|
observedAtMs: number().int().nonnegative().nullable(),
|
|
2817
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
2995
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2818
2996
|
source: union([literal("not_checked"), agentExecutionReadinessImpactSourceSchema])
|
|
2819
2997
|
}),
|
|
2820
2998
|
localService: strictObject({
|
|
2821
2999
|
reachable: boolean(),
|
|
2822
3000
|
refreshable: boolean(),
|
|
2823
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
3001
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2824
3002
|
source: enumFactory([
|
|
2825
3003
|
"runtime_transport",
|
|
2826
3004
|
"not_checked",
|
|
@@ -2830,8 +3008,8 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2830
3008
|
service: strictObject({
|
|
2831
3009
|
executionCompatible: boolean(),
|
|
2832
3010
|
expectedEpoch: literal(CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH),
|
|
2833
|
-
observedEpoch: union([trimmedNonEmptyStringSchema$
|
|
2834
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
3011
|
+
observedEpoch: union([trimmedNonEmptyStringSchema$15, nullFactory()]),
|
|
3012
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2835
3013
|
source: enumFactory([
|
|
2836
3014
|
"runtime_transport",
|
|
2837
3015
|
"not_checked",
|
|
@@ -2839,11 +3017,11 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2839
3017
|
])
|
|
2840
3018
|
}),
|
|
2841
3019
|
route: strictObject({
|
|
2842
|
-
deviceId: nullableTrimmedStringSchema$
|
|
3020
|
+
deviceId: nullableTrimmedStringSchema$8,
|
|
2843
3021
|
lane: union([daemonServiceLaneSchema, nullFactory()]),
|
|
2844
|
-
observedAt: nullableIsoDateTimeSchema$
|
|
3022
|
+
observedAt: nullableIsoDateTimeSchema$6,
|
|
2845
3023
|
online: boolean(),
|
|
2846
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
3024
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2847
3025
|
source: enumFactory([
|
|
2848
3026
|
"daemon_route",
|
|
2849
3027
|
"hosted_route",
|
|
@@ -2853,7 +3031,7 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2853
3031
|
}),
|
|
2854
3032
|
runtime: strictObject({
|
|
2855
3033
|
ready: boolean(),
|
|
2856
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
3034
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15),
|
|
2857
3035
|
source: enumFactory([
|
|
2858
3036
|
"missing",
|
|
2859
3037
|
"native_runtime",
|
|
@@ -2863,41 +3041,42 @@ const agentExecutionReadinessSchema = strictObject({
|
|
|
2863
3041
|
})
|
|
2864
3042
|
}),
|
|
2865
3043
|
primaryAction: agentExecutionReadinessPrimaryActionSchema,
|
|
2866
|
-
reasonCodes: array(trimmedNonEmptyStringSchema$
|
|
3044
|
+
reasonCodes: array(trimmedNonEmptyStringSchema$15)
|
|
2867
3045
|
});
|
|
2868
3046
|
const getAgentExecutionReadinessResponseSchema = strictObject({
|
|
3047
|
+
usageLimits: agentControllerUsageLimitsSchema.optional(),
|
|
2869
3048
|
agentExecutionReadiness: agentExecutionReadinessSchema,
|
|
2870
3049
|
agentWakeAvailability: agentWakeAvailabilitySchema,
|
|
2871
3050
|
agentWakeRouteRegistration: agentWakeRouteRegistrationSchema,
|
|
2872
3051
|
agentProfileId: agentProfileIdSchema,
|
|
2873
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
2874
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
2875
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3052
|
+
agentControllerRef: nullableTrimmedStringSchema$8,
|
|
3053
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$13,
|
|
3054
|
+
ownerUserId: nullableTrimmedStringSchema$8,
|
|
2876
3055
|
primaryBinding: agentProfileBindingProjectionSchema.nullable().optional(),
|
|
2877
3056
|
primaryActionPlan: agentExecutionReadinessPrimaryActionPlanSchema,
|
|
2878
|
-
profileName: nullableTrimmedStringSchema$
|
|
3057
|
+
profileName: nullableTrimmedStringSchema$8,
|
|
2879
3058
|
publicProfileConfiguration: strictObject({
|
|
2880
3059
|
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.nullable(),
|
|
2881
3060
|
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.nullable(),
|
|
2882
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3061
|
+
agentControllerRef: nullableTrimmedStringSchema$8,
|
|
2883
3062
|
modelSelection: agentProfileBindingModelSelectionSchema.nullable()
|
|
2884
3063
|
}).optional(),
|
|
2885
|
-
routeDeviceId: nullableTrimmedStringSchema$
|
|
3064
|
+
routeDeviceId: nullableTrimmedStringSchema$8,
|
|
2886
3065
|
routeLane: union([daemonServiceLaneSchema, nullFactory()]),
|
|
2887
|
-
runtimeDeviceDisplayName: nullableTrimmedStringSchema$
|
|
3066
|
+
runtimeDeviceDisplayName: nullableTrimmedStringSchema$8,
|
|
2888
3067
|
wakeRouteEvidence: wakeRouteEvidenceSchema,
|
|
2889
3068
|
wakeRouteStatus: wakeRouteStatusSchema
|
|
2890
3069
|
});
|
|
2891
3070
|
const getAgentExecutionReadinessBatchResponseSchema = strictObject({ items: array(getAgentExecutionReadinessResponseSchema) });
|
|
2892
3071
|
//#endregion
|
|
2893
3072
|
//#region ../../packages/schemas/dist/schemas/http/space-members.js
|
|
2894
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
3073
|
+
const ISO_DATE_TIME_SCHEMA$12 = iso.datetime({ offset: true });
|
|
2895
3074
|
const MAX_SPACE_MEMBERS_BATCH_SIZE = 100;
|
|
2896
|
-
const trimmedNonEmptyStringSchema$
|
|
3075
|
+
const trimmedNonEmptyStringSchema$14 = string().trim().min(1);
|
|
2897
3076
|
const profileIdSchema = openMeldRuntimeProfileIdSchema;
|
|
2898
|
-
const nullableTrimmedStringSchema$
|
|
3077
|
+
const nullableTrimmedStringSchema$7 = union([trimmedNonEmptyStringSchema$14, nullFactory()]);
|
|
2899
3078
|
const nullableRuntimeProfileIdSchema = union([profileIdSchema, nullFactory()]);
|
|
2900
|
-
const nullableIsoDateTimeSchema$
|
|
3079
|
+
const nullableIsoDateTimeSchema$5 = union([ISO_DATE_TIME_SCHEMA$12, nullFactory()]);
|
|
2901
3080
|
const retiredAgentSnapshotKeys = /* @__PURE__ */ new Set([
|
|
2902
3081
|
"agentExecutionReadiness",
|
|
2903
3082
|
"daemonRouteObservation",
|
|
@@ -2950,33 +3129,33 @@ const spaceMemberAgentOwnerWakeDiagnosticsSchema = object({
|
|
|
2950
3129
|
});
|
|
2951
3130
|
const baseSpaceMemberSnapshotSchema = object({
|
|
2952
3131
|
profileId: profileIdSchema,
|
|
2953
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3132
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
2954
3133
|
profileKind: spaceMemberKindSchema,
|
|
2955
3134
|
status: spaceMemberStatusSchema,
|
|
2956
3135
|
memberSource: spaceMemberSourceSchema,
|
|
2957
|
-
memberSourceLabel: trimmedNonEmptyStringSchema$
|
|
2958
|
-
addedAt: ISO_DATE_TIME_SCHEMA$
|
|
2959
|
-
removedAt: nullableIsoDateTimeSchema$
|
|
2960
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
2961
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
3136
|
+
memberSourceLabel: trimmedNonEmptyStringSchema$14,
|
|
3137
|
+
addedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3138
|
+
removedAt: nullableIsoDateTimeSchema$5,
|
|
3139
|
+
createdAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3140
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
2962
3141
|
addedByProfileId: nullableRuntimeProfileIdSchema,
|
|
2963
|
-
addedByOwnerUserId: nullableTrimmedStringSchema$
|
|
2964
|
-
addedByDisplayName: nullableTrimmedStringSchema$
|
|
3142
|
+
addedByOwnerUserId: nullableTrimmedStringSchema$7,
|
|
3143
|
+
addedByDisplayName: nullableTrimmedStringSchema$7,
|
|
2965
3144
|
removedByProfileId: nullableRuntimeProfileIdSchema,
|
|
2966
|
-
removedByOwnerUserId: nullableTrimmedStringSchema$
|
|
2967
|
-
removalReason: nullableTrimmedStringSchema$
|
|
2968
|
-
firstEnteredAt: nullableIsoDateTimeSchema$
|
|
2969
|
-
lastEnteredAt: nullableIsoDateTimeSchema$
|
|
2970
|
-
lastSeenAt: nullableIsoDateTimeSchema$
|
|
2971
|
-
lastSeenLabel: nullableTrimmedStringSchema$
|
|
3145
|
+
removedByOwnerUserId: nullableTrimmedStringSchema$7,
|
|
3146
|
+
removalReason: nullableTrimmedStringSchema$7,
|
|
3147
|
+
firstEnteredAt: nullableIsoDateTimeSchema$5,
|
|
3148
|
+
lastEnteredAt: nullableIsoDateTimeSchema$5,
|
|
3149
|
+
lastSeenAt: nullableIsoDateTimeSchema$5,
|
|
3150
|
+
lastSeenLabel: nullableTrimmedStringSchema$7,
|
|
2972
3151
|
liveNow: boolean(),
|
|
2973
|
-
avatarUrl: nullableTrimmedStringSchema$
|
|
3152
|
+
avatarUrl: nullableTrimmedStringSchema$7.optional()
|
|
2974
3153
|
});
|
|
2975
3154
|
const spaceMemberHumanSnapshotSchema = baseSpaceMemberSnapshotSchema.extend({
|
|
2976
3155
|
profileKind: literal("human"),
|
|
2977
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
2978
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
2979
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3156
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3157
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3158
|
+
ownerName: nullableTrimmedStringSchema$7
|
|
2980
3159
|
}).superRefine((value, ctx) => {
|
|
2981
3160
|
validateRuntimeProfileIdForMemberKind({
|
|
2982
3161
|
profileId: value.profileId,
|
|
@@ -2987,14 +3166,14 @@ const spaceMemberHumanSnapshotSchema = baseSpaceMemberSnapshotSchema.extend({
|
|
|
2987
3166
|
});
|
|
2988
3167
|
const spaceMemberAgentSnapshotSchema = rejectRetiredAgentSnapshotKeysSchema.pipe(baseSpaceMemberSnapshotSchema.extend({
|
|
2989
3168
|
profileKind: literal("agent"),
|
|
2990
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
2991
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
2992
|
-
ownerName: nullableTrimmedStringSchema$
|
|
2993
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3169
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3170
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3171
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3172
|
+
agentControllerRef: nullableTrimmedStringSchema$7,
|
|
2994
3173
|
agentControllerPermissionMode: agentControllerPermissionModeSchema.optional(),
|
|
2995
|
-
runtimeDeviceDisplayName: nullableTrimmedStringSchema$
|
|
3174
|
+
runtimeDeviceDisplayName: nullableTrimmedStringSchema$7.optional(),
|
|
2996
3175
|
deviceWaitTarget: wakeDeviceWaitTargetSchema.optional(),
|
|
2997
|
-
agentControllerConversationId: nullableTrimmedStringSchema$
|
|
3176
|
+
agentControllerConversationId: nullableTrimmedStringSchema$7,
|
|
2998
3177
|
modelSelection: agentProfileBindingModelSelectionSchema.optional(),
|
|
2999
3178
|
workingDirectory: profileWorkingDirectorySchema.nullable().optional(),
|
|
3000
3179
|
agentWakeAvailability: spaceMemberAgentWakeAvailabilitySchema.optional(),
|
|
@@ -3018,8 +3197,8 @@ const spaceMembersSummarySchema = object({
|
|
|
3018
3197
|
unavailableAgentCount: number().int().min(0).optional()
|
|
3019
3198
|
});
|
|
3020
3199
|
const spaceMembersSnapshotSchema = object({
|
|
3021
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3022
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
3200
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3201
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3023
3202
|
summary: spaceMembersSummarySchema,
|
|
3024
3203
|
humans: array(spaceMemberHumanSnapshotSchema),
|
|
3025
3204
|
agents: array(spaceMemberAgentSnapshotSchema)
|
|
@@ -3088,26 +3267,26 @@ const spaceMembersSnapshotSchema = object({
|
|
|
3088
3267
|
});
|
|
3089
3268
|
});
|
|
3090
3269
|
const spaceViewerMembershipResponseSchema = strictObject({
|
|
3091
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3270
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3092
3271
|
activeMemberProfiles: array(strictObject({
|
|
3093
3272
|
profileId: profileIdSchema,
|
|
3094
3273
|
profileKind: spaceMemberKindSchema,
|
|
3095
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3096
|
-
lastEnteredAt: nullableIsoDateTimeSchema$
|
|
3274
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
3275
|
+
lastEnteredAt: nullableIsoDateTimeSchema$5
|
|
3097
3276
|
})),
|
|
3098
3277
|
preferredOpenProfileId: nullableRuntimeProfileIdSchema
|
|
3099
3278
|
});
|
|
3100
3279
|
const spaceIdentityDirectorySchema = strictObject({
|
|
3101
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3102
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
3280
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3281
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3103
3282
|
entries: array(strictObject({
|
|
3104
3283
|
profileId: profileIdSchema,
|
|
3105
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3284
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
3106
3285
|
profileKind: spaceMemberKindSchema,
|
|
3107
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
3108
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3109
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3110
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3286
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3287
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3288
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3289
|
+
agentControllerRef: nullableTrimmedStringSchema$7
|
|
3111
3290
|
}).superRefine((value, ctx) => {
|
|
3112
3291
|
validateRuntimeProfileIdForMemberKind({
|
|
3113
3292
|
profileId: value.profileId,
|
|
@@ -3134,23 +3313,23 @@ const spaceMemberDirectoryAllowedRelationsSchema = preprocess((value) => {
|
|
|
3134
3313
|
mention: boolean()
|
|
3135
3314
|
}));
|
|
3136
3315
|
const spaceMemberDirectoryCardSchema = strictObject({
|
|
3137
|
-
role: nullableTrimmedStringSchema$
|
|
3138
|
-
roleDescription: nullableTrimmedStringSchema$
|
|
3316
|
+
role: nullableTrimmedStringSchema$7,
|
|
3317
|
+
roleDescription: nullableTrimmedStringSchema$7
|
|
3139
3318
|
});
|
|
3140
3319
|
const spaceMemberDirectoryEntrySchema = strictObject({
|
|
3141
3320
|
profileId: profileIdSchema,
|
|
3142
3321
|
profileKind: spaceMemberKindSchema,
|
|
3143
|
-
displayName: trimmedNonEmptyStringSchema$
|
|
3322
|
+
displayName: trimmedNonEmptyStringSchema$14,
|
|
3144
3323
|
primaryMentionLabel: spaceMentionLabelSchema,
|
|
3145
3324
|
mentionLabels: array(spaceMentionLabelSchema).min(1),
|
|
3146
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
3325
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3147
3326
|
labelSource: spaceMentionLabelSourceSchema,
|
|
3148
|
-
lookupTokens: array(trimmedNonEmptyStringSchema$
|
|
3149
|
-
preferredLookupToken: trimmedNonEmptyStringSchema$
|
|
3150
|
-
profileIdShort: trimmedNonEmptyStringSchema$
|
|
3327
|
+
lookupTokens: array(trimmedNonEmptyStringSchema$14).min(1),
|
|
3328
|
+
preferredLookupToken: trimmedNonEmptyStringSchema$14,
|
|
3329
|
+
profileIdShort: trimmedNonEmptyStringSchema$14,
|
|
3151
3330
|
allowedRelations: spaceMemberDirectoryAllowedRelationsSchema,
|
|
3152
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3153
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3331
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3332
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3154
3333
|
agentCard: union([spaceMemberDirectoryCardSchema, nullFactory()]),
|
|
3155
3334
|
spaceRole: union([spaceMemberDirectoryCardSchema, nullFactory()])
|
|
3156
3335
|
}).superRefine((value, ctx) => {
|
|
@@ -3182,8 +3361,8 @@ const spaceMemberDirectoryEntrySchema = strictObject({
|
|
|
3182
3361
|
});
|
|
3183
3362
|
});
|
|
3184
3363
|
const spaceMemberDirectorySchema = strictObject({
|
|
3185
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3186
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
3364
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3365
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3187
3366
|
members: array(spaceMemberDirectoryEntrySchema)
|
|
3188
3367
|
});
|
|
3189
3368
|
const postSpaceMembersBodySchema = strictObject({ memberProfileIds: array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });
|
|
@@ -3206,11 +3385,11 @@ const addOrganizationDirectoryProfilesToSpaceBodySchema = strictObject({
|
|
|
3206
3385
|
const removeSpaceMembersBodySchema = strictObject({ memberProfileIds: array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });
|
|
3207
3386
|
const resolvedSpaceMemberProfileSchema = strictObject({
|
|
3208
3387
|
profileId: profileIdSchema,
|
|
3209
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3388
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
3210
3389
|
profileKind: spaceMemberKindSchema,
|
|
3211
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3212
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3213
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3390
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3391
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3392
|
+
agentControllerRef: nullableTrimmedStringSchema$7
|
|
3214
3393
|
}).superRefine((value, ctx) => {
|
|
3215
3394
|
validateRuntimeProfileIdForMemberKind({
|
|
3216
3395
|
profileId: value.profileId,
|
|
@@ -4206,7 +4385,7 @@ const updateFeedbackReportingPolicyBodySchema = z$1.strictObject({ reportingEnab
|
|
|
4206
4385
|
//#endregion
|
|
4207
4386
|
//#region ../../packages/schemas/dist/schemas/http/organization-member-openmeld-service-status.js
|
|
4208
4387
|
const BOUNDED_ID_SCHEMA$1 = z$1.string().trim().min(1).max(256);
|
|
4209
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4388
|
+
const ISO_DATE_TIME_SCHEMA$11 = z$1.iso.datetime({ offset: true });
|
|
4210
4389
|
const organizationMemberOpenMeldServiceStateSchema = z$1.enum([
|
|
4211
4390
|
"connected",
|
|
4212
4391
|
"needs_attention",
|
|
@@ -4219,19 +4398,19 @@ const organizationMemberOpenMeldServiceStatusSchema = z$1.strictObject({
|
|
|
4219
4398
|
});
|
|
4220
4399
|
z$1.strictObject({ memberUserId: BOUNDED_ID_SCHEMA$1 });
|
|
4221
4400
|
z$1.strictObject({
|
|
4222
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4401
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$11,
|
|
4223
4402
|
member: organizationMemberOpenMeldServiceStatusSchema,
|
|
4224
4403
|
organizationId: BOUNDED_ID_SCHEMA$1
|
|
4225
4404
|
});
|
|
4226
4405
|
const organizationMemberOpenMeldServiceStatusesResponseSchema = z$1.strictObject({
|
|
4227
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4406
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$11,
|
|
4228
4407
|
members: z$1.array(organizationMemberOpenMeldServiceStatusSchema),
|
|
4229
4408
|
organizationId: BOUNDED_ID_SCHEMA$1
|
|
4230
4409
|
});
|
|
4231
4410
|
//#endregion
|
|
4232
4411
|
//#region ../../packages/schemas/dist/schemas/http/organization-computers.js
|
|
4233
4412
|
const BOUNDED_ID_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
4234
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4413
|
+
const ISO_DATE_TIME_SCHEMA$10 = z$1.iso.datetime({ offset: true });
|
|
4235
4414
|
const REASON_CODES_SCHEMA = z$1.array(BOUNDED_ID_SCHEMA).max(64);
|
|
4236
4415
|
const organizationComputerOpenMeldToolsSchema = z$1.strictObject({
|
|
4237
4416
|
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
@@ -4264,7 +4443,7 @@ const organizationComputerOpenMeldToolsSchema = z$1.strictObject({
|
|
|
4264
4443
|
const organizationComputerLocalAgentDetailsSchema = z$1.strictObject({
|
|
4265
4444
|
capabilities: agentControllerInterfaceCapabilitiesSchema,
|
|
4266
4445
|
check: agentControllerInterfaceCheckSnapshotSchema.optional(),
|
|
4267
|
-
checkedAt: ISO_DATE_TIME_SCHEMA$
|
|
4446
|
+
checkedAt: ISO_DATE_TIME_SCHEMA$10,
|
|
4268
4447
|
conversationCapabilities: agentControllerConversationCapabilitySchema.optional(),
|
|
4269
4448
|
launch: z$1.strictObject({
|
|
4270
4449
|
installChoiceCount: z$1.number().int().nonnegative(),
|
|
@@ -4279,7 +4458,7 @@ const organizationComputerLocalAgentDetailsSchema = z$1.strictObject({
|
|
|
4279
4458
|
usageLimits: agentControllerUsageLimitsSchema.optional(),
|
|
4280
4459
|
version: BOUNDED_ID_SCHEMA.nullable(),
|
|
4281
4460
|
versionAdvisory: z$1.strictObject({
|
|
4282
|
-
checkedAt: ISO_DATE_TIME_SCHEMA$
|
|
4461
|
+
checkedAt: ISO_DATE_TIME_SCHEMA$10.nullable(),
|
|
4283
4462
|
currentVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
4284
4463
|
latestVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
4285
4464
|
status: agentControllerInterfaceVersionAdvisoryStatusSchema
|
|
@@ -4338,23 +4517,23 @@ const organizationComputerSchema = z$1.strictObject({
|
|
|
4338
4517
|
});
|
|
4339
4518
|
const organizationComputersResponseSchema = z$1.strictObject({
|
|
4340
4519
|
computers: z$1.array(organizationComputerSchema),
|
|
4341
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4520
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$10,
|
|
4342
4521
|
organizationId: BOUNDED_ID_SCHEMA
|
|
4343
4522
|
});
|
|
4344
4523
|
//#endregion
|
|
4345
4524
|
//#region ../../packages/schemas/dist/schemas/http/organization-directory.js
|
|
4346
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4347
|
-
const trimmedNonEmptyStringSchema$
|
|
4525
|
+
const ISO_DATE_TIME_SCHEMA$9 = iso.datetime({ offset: true });
|
|
4526
|
+
const trimmedNonEmptyStringSchema$13 = string().trim().min(1);
|
|
4348
4527
|
strictObject({
|
|
4349
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4350
|
-
userId: trimmedNonEmptyStringSchema$
|
|
4528
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4529
|
+
userId: trimmedNonEmptyStringSchema$13,
|
|
4351
4530
|
profileId: uuidProfileIdSchema,
|
|
4352
|
-
lastActiveAt: ISO_DATE_TIME_SCHEMA$
|
|
4531
|
+
lastActiveAt: ISO_DATE_TIME_SCHEMA$9
|
|
4353
4532
|
});
|
|
4354
|
-
const nullableTrimmedStringSchema$
|
|
4533
|
+
const nullableTrimmedStringSchema$6 = union([trimmedNonEmptyStringSchema$13, nullFactory()]);
|
|
4355
4534
|
const organizationDirectoryAgentProfileWorkLocationSchema = strictObject({
|
|
4356
4535
|
spaceId: string().trim().min(1).max(512),
|
|
4357
|
-
spaceName: trimmedNonEmptyStringSchema$
|
|
4536
|
+
spaceName: trimmedNonEmptyStringSchema$13
|
|
4358
4537
|
});
|
|
4359
4538
|
const organizationDirectoryAgentProfileOperationalContextSchema = discriminatedUnion("status", [
|
|
4360
4539
|
strictObject({ status: literal("checking") }),
|
|
@@ -4372,52 +4551,52 @@ const organizationDirectoryAgentProfileOperationalContextSchema = discriminatedU
|
|
|
4372
4551
|
currentWorkLocation: organizationDirectoryAgentProfileWorkLocationSchema.optional(),
|
|
4373
4552
|
queuedWorkLocations: array(organizationDirectoryAgentProfileWorkLocationSchema).max(50).optional(),
|
|
4374
4553
|
recoveryAction: agentProfileWorkRecoveryActionKindSchema.optional(),
|
|
4375
|
-
recoveryTargetWakeLifecycleId: trimmedNonEmptyStringSchema$
|
|
4554
|
+
recoveryTargetWakeLifecycleId: trimmedNonEmptyStringSchema$13.optional(),
|
|
4376
4555
|
status: literal("paused"),
|
|
4377
4556
|
waitingCount: number().int().min(0).max(50)
|
|
4378
4557
|
})
|
|
4379
4558
|
]);
|
|
4380
4559
|
const organizationDirectoryHumanProfileSchema = strictObject({
|
|
4381
|
-
lastUsedAt: union([ISO_DATE_TIME_SCHEMA$
|
|
4560
|
+
lastUsedAt: union([ISO_DATE_TIME_SCHEMA$9, nullFactory()]).optional(),
|
|
4382
4561
|
profileId: uuidProfileIdSchema,
|
|
4383
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
4384
|
-
profileHandle: trimmedNonEmptyStringSchema$
|
|
4562
|
+
profileName: trimmedNonEmptyStringSchema$13,
|
|
4563
|
+
profileHandle: trimmedNonEmptyStringSchema$13,
|
|
4385
4564
|
status: enumFactory(["active", "disabled"])
|
|
4386
4565
|
});
|
|
4387
4566
|
const organizationDirectoryMemberSchema = strictObject({
|
|
4388
|
-
lastActiveAt: union([ISO_DATE_TIME_SCHEMA$
|
|
4389
|
-
memberId: trimmedNonEmptyStringSchema$
|
|
4390
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4391
|
-
userId: trimmedNonEmptyStringSchema$
|
|
4392
|
-
role: trimmedNonEmptyStringSchema$
|
|
4393
|
-
joinedAt: ISO_DATE_TIME_SCHEMA$
|
|
4567
|
+
lastActiveAt: union([ISO_DATE_TIME_SCHEMA$9, nullFactory()]).optional(),
|
|
4568
|
+
memberId: trimmedNonEmptyStringSchema$13,
|
|
4569
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4570
|
+
userId: trimmedNonEmptyStringSchema$13,
|
|
4571
|
+
role: trimmedNonEmptyStringSchema$13,
|
|
4572
|
+
joinedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4394
4573
|
user: strictObject({
|
|
4395
|
-
id: trimmedNonEmptyStringSchema$
|
|
4396
|
-
name: trimmedNonEmptyStringSchema$
|
|
4397
|
-
email: trimmedNonEmptyStringSchema$
|
|
4398
|
-
image: nullableTrimmedStringSchema$
|
|
4574
|
+
id: trimmedNonEmptyStringSchema$13,
|
|
4575
|
+
name: trimmedNonEmptyStringSchema$13,
|
|
4576
|
+
email: trimmedNonEmptyStringSchema$13,
|
|
4577
|
+
image: nullableTrimmedStringSchema$6
|
|
4399
4578
|
}),
|
|
4400
4579
|
humanProfile: organizationDirectoryHumanProfileSchema.nullable()
|
|
4401
4580
|
});
|
|
4402
4581
|
const organizationDirectoryAgentProfileIdentitySchema = strictObject({
|
|
4403
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4582
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4404
4583
|
profileId: agentProfileIdSchema,
|
|
4405
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
4406
|
-
profileHandle: trimmedNonEmptyStringSchema$
|
|
4584
|
+
profileName: trimmedNonEmptyStringSchema$13,
|
|
4585
|
+
profileHandle: trimmedNonEmptyStringSchema$13,
|
|
4407
4586
|
profileKind: literal("agent"),
|
|
4408
4587
|
isDefault: literal(false),
|
|
4409
4588
|
status: enumFactory(["active", "disabled"]),
|
|
4410
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
4411
|
-
ownerName: trimmedNonEmptyStringSchema$
|
|
4412
|
-
avatarUrl: trimmedNonEmptyStringSchema$
|
|
4413
|
-
source: trimmedNonEmptyStringSchema$
|
|
4589
|
+
ownerUserId: nullableTrimmedStringSchema$6,
|
|
4590
|
+
ownerName: trimmedNonEmptyStringSchema$13.optional(),
|
|
4591
|
+
avatarUrl: trimmedNonEmptyStringSchema$13.optional(),
|
|
4592
|
+
source: trimmedNonEmptyStringSchema$13,
|
|
4414
4593
|
managedRole: union([authProfileManagedRoleSchema, nullFactory()]),
|
|
4415
|
-
createdByUserId: nullableTrimmedStringSchema$
|
|
4416
|
-
creatorProfileId: nullableTrimmedStringSchema$
|
|
4417
|
-
lastUsedAt: union([ISO_DATE_TIME_SCHEMA$
|
|
4418
|
-
lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$
|
|
4419
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
4420
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4594
|
+
createdByUserId: nullableTrimmedStringSchema$6,
|
|
4595
|
+
creatorProfileId: nullableTrimmedStringSchema$6,
|
|
4596
|
+
lastUsedAt: union([ISO_DATE_TIME_SCHEMA$9, nullFactory()]),
|
|
4597
|
+
lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$9.nullable().optional(),
|
|
4598
|
+
createdAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4599
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$9
|
|
4421
4600
|
});
|
|
4422
4601
|
const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
|
|
4423
4602
|
isCenterAgent: boolean().optional(),
|
|
@@ -4425,7 +4604,7 @@ const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfil
|
|
|
4425
4604
|
readiness: getAgentExecutionReadinessResponseSchema
|
|
4426
4605
|
});
|
|
4427
4606
|
const organizationProfileDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
|
|
4428
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
4607
|
+
agentControllerRef: nullableTrimmedStringSchema$6,
|
|
4429
4608
|
modelSelection: agentProfileBindingModelSelectionSchema.nullable().optional(),
|
|
4430
4609
|
isCenterAgent: boolean().optional()
|
|
4431
4610
|
});
|
|
@@ -4435,27 +4614,27 @@ strictObject({
|
|
|
4435
4614
|
includeModelSelection: boolean().optional()
|
|
4436
4615
|
});
|
|
4437
4616
|
strictObject({
|
|
4438
|
-
taskActivitySince: ISO_DATE_TIME_SCHEMA$
|
|
4439
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4440
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4617
|
+
taskActivitySince: ISO_DATE_TIME_SCHEMA$9.optional(),
|
|
4618
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4619
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4441
4620
|
members: array(organizationDirectoryMemberSchema),
|
|
4442
4621
|
agentProfiles: array(organizationProfileDirectoryAgentProfileSchema)
|
|
4443
4622
|
});
|
|
4444
4623
|
const organizationAgentRuntimeOverviewItemSchema = strictObject({
|
|
4445
4624
|
profileId: agentProfileIdSchema,
|
|
4446
|
-
lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$
|
|
4625
|
+
lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$9.nullable().optional(),
|
|
4447
4626
|
operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
|
|
4448
4627
|
readiness: getAgentExecutionReadinessResponseSchema
|
|
4449
4628
|
});
|
|
4450
4629
|
strictObject({
|
|
4451
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4452
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4453
|
-
taskActivitySince: ISO_DATE_TIME_SCHEMA$
|
|
4630
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4631
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4632
|
+
taskActivitySince: ISO_DATE_TIME_SCHEMA$9.optional(),
|
|
4454
4633
|
agentProfiles: array(organizationAgentRuntimeOverviewItemSchema)
|
|
4455
4634
|
});
|
|
4456
4635
|
const organizationDirectoryResponseSchema = strictObject({
|
|
4457
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4458
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4636
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4637
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4459
4638
|
members: array(organizationDirectoryMemberSchema),
|
|
4460
4639
|
agentProfiles: array(organizationDirectoryAgentProfileSchema)
|
|
4461
4640
|
});
|
|
@@ -4465,9 +4644,9 @@ organizationDirectoryResponseSchema.extend({
|
|
|
4465
4644
|
totalAgentProfiles: number().int().nonnegative()
|
|
4466
4645
|
});
|
|
4467
4646
|
strictObject({
|
|
4468
|
-
lastActiveAt: ISO_DATE_TIME_SCHEMA$
|
|
4469
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4470
|
-
userId: trimmedNonEmptyStringSchema$
|
|
4647
|
+
lastActiveAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4648
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4649
|
+
userId: trimmedNonEmptyStringSchema$13
|
|
4471
4650
|
});
|
|
4472
4651
|
strictObject({
|
|
4473
4652
|
cursor: string().trim().min(1).max(1024).optional(),
|
|
@@ -4477,10 +4656,10 @@ strictObject({
|
|
|
4477
4656
|
speakerMember: centerAgentToolSpeakerSchema.optional()
|
|
4478
4657
|
});
|
|
4479
4658
|
strictObject({
|
|
4480
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4659
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4481
4660
|
members: array(organizationDirectoryMemberSchema),
|
|
4482
4661
|
nextCursor: string().trim().min(1).max(1024).nullable(),
|
|
4483
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4662
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4484
4663
|
totalMembers: number().int().nonnegative()
|
|
4485
4664
|
});
|
|
4486
4665
|
//#endregion
|
|
@@ -4874,7 +5053,7 @@ const spaceAccessModeStateSchema = z$1.strictObject({
|
|
|
4874
5053
|
});
|
|
4875
5054
|
//#endregion
|
|
4876
5055
|
//#region ../../packages/schemas/dist/schemas/http/space-meta.js
|
|
4877
|
-
const trimmedNonEmptyStringSchema$
|
|
5056
|
+
const trimmedNonEmptyStringSchema$12 = z$1.string().trim().min(1);
|
|
4878
5057
|
const isoDateTimeSchema$6 = z$1.iso.datetime({ offset: true });
|
|
4879
5058
|
const MAX_SPACE_GUIDE_LENGTH = 4e3;
|
|
4880
5059
|
const spaceOrganizationVisibilitySchema = z$1.enum(["public", "private"]);
|
|
@@ -4883,11 +5062,11 @@ function resolveInitialSpaceAccessMode(_visibility) {
|
|
|
4883
5062
|
}
|
|
4884
5063
|
const spaceCreatorSchema = z$1.strictObject({
|
|
4885
5064
|
profileId: openMeldRuntimeProfileIdSchema,
|
|
4886
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
5065
|
+
profileName: trimmedNonEmptyStringSchema$12.optional(),
|
|
4887
5066
|
kind: profileKindSchema.optional(),
|
|
4888
|
-
profile: trimmedNonEmptyStringSchema$
|
|
4889
|
-
ownerUserId: trimmedNonEmptyStringSchema$
|
|
4890
|
-
ownerName: trimmedNonEmptyStringSchema$
|
|
5067
|
+
profile: trimmedNonEmptyStringSchema$12.optional(),
|
|
5068
|
+
ownerUserId: trimmedNonEmptyStringSchema$12.optional(),
|
|
5069
|
+
ownerName: trimmedNonEmptyStringSchema$12.optional()
|
|
4891
5070
|
}).superRefine((value, ctx) => {
|
|
4892
5071
|
if (!value.kind) return;
|
|
4893
5072
|
if ((value.kind === "agent" ? agentProfileIdSchema : uuidProfileIdSchema).safeParse(value.profileId).success) return;
|
|
@@ -4904,19 +5083,19 @@ const spaceStorageUsageSchema = z$1.strictObject({
|
|
|
4904
5083
|
});
|
|
4905
5084
|
const spaceDirectMessageMetaSchema = z$1.strictObject({
|
|
4906
5085
|
convertedAt: isoDateTimeSchema$6.optional(),
|
|
4907
|
-
pairKey: trimmedNonEmptyStringSchema$
|
|
5086
|
+
pairKey: trimmedNonEmptyStringSchema$12
|
|
4908
5087
|
});
|
|
4909
5088
|
const spaceMetaSchema = z$1.strictObject({
|
|
4910
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
4911
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5089
|
+
spaceId: trimmedNonEmptyStringSchema$12,
|
|
5090
|
+
organizationId: trimmedNonEmptyStringSchema$12,
|
|
4912
5091
|
visibility: spaceOrganizationVisibilitySchema,
|
|
4913
|
-
name: trimmedNonEmptyStringSchema$
|
|
4914
|
-
purpose: trimmedNonEmptyStringSchema$
|
|
5092
|
+
name: trimmedNonEmptyStringSchema$12.optional(),
|
|
5093
|
+
purpose: trimmedNonEmptyStringSchema$12.optional(),
|
|
4915
5094
|
directMessage: spaceDirectMessageMetaSchema.optional(),
|
|
4916
5095
|
creator: spaceCreatorSchema.optional(),
|
|
4917
|
-
ownerUserIds: z$1.array(trimmedNonEmptyStringSchema$
|
|
5096
|
+
ownerUserIds: z$1.array(trimmedNonEmptyStringSchema$12).optional(),
|
|
4918
5097
|
allowGuests: z$1.boolean().optional(),
|
|
4919
|
-
guide: trimmedNonEmptyStringSchema$
|
|
5098
|
+
guide: trimmedNonEmptyStringSchema$12.optional(),
|
|
4920
5099
|
accessMode: spaceAccessModeSchema.optional(),
|
|
4921
5100
|
passwordProtected: z$1.boolean().optional(),
|
|
4922
5101
|
createdAt: isoDateTimeSchema$6.optional(),
|
|
@@ -4928,7 +5107,7 @@ const patchSpaceMetaBodySchema = z$1.strictObject({
|
|
|
4928
5107
|
visibility: spaceOrganizationVisibilitySchema.optional(),
|
|
4929
5108
|
allowGuests: z$1.boolean().optional(),
|
|
4930
5109
|
ownership: z$1.strictObject({
|
|
4931
|
-
userId: trimmedNonEmptyStringSchema$
|
|
5110
|
+
userId: trimmedNonEmptyStringSchema$12,
|
|
4932
5111
|
role: z$1.enum(["owner", "member"])
|
|
4933
5112
|
}).optional(),
|
|
4934
5113
|
name: spaceNameSchema.optional(),
|
|
@@ -4950,29 +5129,29 @@ const patchSpaceMetaBodySchema = z$1.strictObject({
|
|
|
4950
5129
|
}));
|
|
4951
5130
|
//#endregion
|
|
4952
5131
|
//#region ../../packages/schemas/dist/schemas/http/organization-space-directory.js
|
|
4953
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4954
|
-
const trimmedNonEmptyStringSchema$
|
|
4955
|
-
const nullableIsoDateTimeSchema$
|
|
5132
|
+
const ISO_DATE_TIME_SCHEMA$8 = z$1.iso.datetime({ offset: true });
|
|
5133
|
+
const trimmedNonEmptyStringSchema$11 = z$1.string().trim().min(1);
|
|
5134
|
+
const nullableIsoDateTimeSchema$4 = z$1.union([ISO_DATE_TIME_SCHEMA$8, z$1.null()]);
|
|
4956
5135
|
const organizationSpaceDirectoryItemSchema = z$1.strictObject({
|
|
4957
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
4958
|
-
name: trimmedNonEmptyStringSchema$
|
|
4959
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5136
|
+
spaceId: trimmedNonEmptyStringSchema$11,
|
|
5137
|
+
name: trimmedNonEmptyStringSchema$11,
|
|
5138
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
4960
5139
|
visibility: spaceOrganizationVisibilitySchema,
|
|
4961
5140
|
joined: z$1.boolean(),
|
|
4962
|
-
lastJoinedAt: nullableIsoDateTimeSchema$
|
|
4963
|
-
spaceCreatedAt: nullableIsoDateTimeSchema$
|
|
4964
|
-
spaceUpdatedAt: nullableIsoDateTimeSchema$
|
|
4965
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5141
|
+
lastJoinedAt: nullableIsoDateTimeSchema$4,
|
|
5142
|
+
spaceCreatedAt: nullableIsoDateTimeSchema$4,
|
|
5143
|
+
spaceUpdatedAt: nullableIsoDateTimeSchema$4,
|
|
5144
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$8
|
|
4966
5145
|
});
|
|
4967
5146
|
const organizationSpaceDirectoryResponseSchema = z$1.strictObject({
|
|
4968
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4969
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5147
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5148
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$8,
|
|
4970
5149
|
spaces: z$1.array(organizationSpaceDirectoryItemSchema)
|
|
4971
5150
|
});
|
|
4972
5151
|
const organizationSpaceDirectoryWithMemberCountsItemSchema = organizationSpaceDirectoryItemSchema.extend({ activeMemberCount: z$1.number().int().nonnegative().nullable() });
|
|
4973
5152
|
const organizationSpaceDirectoryWithMemberCountsResponseSchema = z$1.strictObject({
|
|
4974
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4975
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5153
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5154
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$8,
|
|
4976
5155
|
spaces: z$1.array(organizationSpaceDirectoryWithMemberCountsItemSchema)
|
|
4977
5156
|
});
|
|
4978
5157
|
//#endregion
|
|
@@ -5163,6 +5342,7 @@ z$1.enum([
|
|
|
5163
5342
|
const postNormalMessageBodySchema = z$1.strictObject({
|
|
5164
5343
|
text: signalTextRequestDataSchema.shape.text,
|
|
5165
5344
|
deviceWait: signalTextRequestDataSchema.shape.deviceWait.optional(),
|
|
5345
|
+
contextSelection: signalTextRequestDataSchema.shape.contextSelection.optional(),
|
|
5166
5346
|
attachments: signalTextRequestDataSchema.shape.attachments.optional(),
|
|
5167
5347
|
files: signalTextRequestDataSchema.shape.files.optional(),
|
|
5168
5348
|
messageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),
|
|
@@ -5182,21 +5362,21 @@ const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
|
|
|
5182
5362
|
//#endregion
|
|
5183
5363
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js
|
|
5184
5364
|
const CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = "center_agent_direct_message_space";
|
|
5185
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
5186
|
-
const trimmedNonEmptyStringSchema$
|
|
5365
|
+
const ISO_DATE_TIME_SCHEMA$7 = z$1.iso.datetime({ offset: true });
|
|
5366
|
+
const trimmedNonEmptyStringSchema$10 = z$1.string().trim().min(1);
|
|
5187
5367
|
const createCenterAgentSessionBodySchema = z$1.strictObject({ creationId: z$1.uuid() });
|
|
5188
|
-
const centerAgentSessionSelectorSchema = z$1.strictObject({ spaceId: trimmedNonEmptyStringSchema$
|
|
5368
|
+
const centerAgentSessionSelectorSchema = z$1.strictObject({ spaceId: trimmedNonEmptyStringSchema$10.max(128) });
|
|
5189
5369
|
const centerAgentDirectMessageSpaceProjectionSchema = z$1.strictObject({
|
|
5190
|
-
centerAgentProfileId: trimmedNonEmptyStringSchema$
|
|
5370
|
+
centerAgentProfileId: trimmedNonEmptyStringSchema$10,
|
|
5191
5371
|
isCenterAgentDirectMessageSpace: z$1.literal(true),
|
|
5192
5372
|
kind: z$1.literal(CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND),
|
|
5193
|
-
memberProfileId: trimmedNonEmptyStringSchema$
|
|
5194
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5195
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
5373
|
+
memberProfileId: trimmedNonEmptyStringSchema$10,
|
|
5374
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5375
|
+
spaceId: trimmedNonEmptyStringSchema$10
|
|
5196
5376
|
});
|
|
5197
5377
|
const getCenterAgentDirectMessageSpaceProjectionResponseSchema = z$1.strictObject({
|
|
5198
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5199
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5378
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$7,
|
|
5379
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5200
5380
|
projection: z$1.union([centerAgentDirectMessageSpaceProjectionSchema, z$1.null()])
|
|
5201
5381
|
});
|
|
5202
5382
|
const listCenterAgentSessionsQuerySchema = z$1.strictObject({
|
|
@@ -5205,18 +5385,18 @@ const listCenterAgentSessionsQuerySchema = z$1.strictObject({
|
|
|
5205
5385
|
});
|
|
5206
5386
|
z$1.strictObject({
|
|
5207
5387
|
v: z$1.literal(1),
|
|
5208
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5209
|
-
pairKey: trimmedNonEmptyStringSchema$
|
|
5388
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5389
|
+
pairKey: trimmedNonEmptyStringSchema$10,
|
|
5210
5390
|
createdAtMs: z$1.number().int().nonnegative(),
|
|
5211
5391
|
spaceId: centerAgentSessionSelectorSchema.shape.spaceId
|
|
5212
5392
|
});
|
|
5213
5393
|
const centerAgentSessionListItemSchema = centerAgentDirectMessageSpaceProjectionSchema.extend({
|
|
5214
5394
|
name: z$1.string().nullable(),
|
|
5215
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
5395
|
+
createdAt: ISO_DATE_TIME_SCHEMA$7.nullable()
|
|
5216
5396
|
});
|
|
5217
5397
|
const listCenterAgentSessionsResponseSchema = z$1.strictObject({
|
|
5218
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5219
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5398
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$7,
|
|
5399
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5220
5400
|
sessions: z$1.array(centerAgentSessionListItemSchema).max(100),
|
|
5221
5401
|
nextCursor: z$1.string().min(1).max(1024).nullable()
|
|
5222
5402
|
});
|
|
@@ -5238,8 +5418,8 @@ const CENTER_AGENT_CONTEXT_ERROR_CODES = [
|
|
|
5238
5418
|
"center_agent.context_load_selection_duplicate",
|
|
5239
5419
|
"center_agent.context_load_selection_invalid"
|
|
5240
5420
|
];
|
|
5241
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
5242
|
-
const trimmedNonEmptyStringSchema$
|
|
5421
|
+
const ISO_DATE_TIME_SCHEMA$6 = iso.datetime({ offset: true });
|
|
5422
|
+
const trimmedNonEmptyStringSchema$9 = string().trim().min(1);
|
|
5243
5423
|
const contentHashSchema$1 = string().regex(/^sha256:[0-9a-f]{64}$/u);
|
|
5244
5424
|
const centerAgentContextManifestIdSchema = string().regex(/^center_agent_context_manifest_[0-9a-f-]{36}$/u);
|
|
5245
5425
|
const loadReceiptIdSchema = string().regex(/^center_agent_context_load_receipt_[0-9a-f-]{36}$/u);
|
|
@@ -5253,7 +5433,7 @@ const createCenterAgentContextManifestBodySchema = strictObject({
|
|
|
5253
5433
|
view: centerAgentContextManifestViewSchema.default("messages")
|
|
5254
5434
|
});
|
|
5255
5435
|
const centerAgentContextManifestSourceRefSchema = strictObject({
|
|
5256
|
-
id: trimmedNonEmptyStringSchema$
|
|
5436
|
+
id: trimmedNonEmptyStringSchema$9,
|
|
5257
5437
|
type: literal("space_signal"),
|
|
5258
5438
|
uri: string().regex(/^openmeld:\/\/spaces\/[^/]+\/signals\/[^/]+$/u),
|
|
5259
5439
|
version: contentHashSchema$1
|
|
@@ -5261,16 +5441,16 @@ const centerAgentContextManifestSourceRefSchema = strictObject({
|
|
|
5261
5441
|
const centerAgentContextManifestEntrySchema = strictObject({
|
|
5262
5442
|
reactions: spaceMessageReactionsSchema.optional(),
|
|
5263
5443
|
author: strictObject({
|
|
5264
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
5444
|
+
profileId: trimmedNonEmptyStringSchema$9,
|
|
5265
5445
|
profileKind: enumFactory([
|
|
5266
5446
|
"agent",
|
|
5267
5447
|
"human",
|
|
5268
5448
|
"system"
|
|
5269
5449
|
]),
|
|
5270
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
5450
|
+
profileName: trimmedNonEmptyStringSchema$9
|
|
5271
5451
|
}),
|
|
5272
5452
|
carrier: strictObject({
|
|
5273
|
-
client: trimmedNonEmptyStringSchema$
|
|
5453
|
+
client: trimmedNonEmptyStringSchema$9.max(80),
|
|
5274
5454
|
kind: literal("local_agent")
|
|
5275
5455
|
}).optional(),
|
|
5276
5456
|
content: strictObject({
|
|
@@ -5280,13 +5460,13 @@ const centerAgentContextManifestEntrySchema = strictObject({
|
|
|
5280
5460
|
type: literal("text")
|
|
5281
5461
|
}),
|
|
5282
5462
|
materializedContentHash: contentHashSchema$1,
|
|
5283
|
-
occurredAt: ISO_DATE_TIME_SCHEMA$
|
|
5463
|
+
occurredAt: ISO_DATE_TIME_SCHEMA$6,
|
|
5284
5464
|
redactions: array(enumFactory([
|
|
5285
5465
|
"attachments_not_in_messages_view",
|
|
5286
5466
|
"local_session_locator_omitted",
|
|
5287
5467
|
"message_content_budget"
|
|
5288
5468
|
])),
|
|
5289
|
-
replyToSignalId: trimmedNonEmptyStringSchema$
|
|
5469
|
+
replyToSignalId: trimmedNonEmptyStringSchema$9.optional(),
|
|
5290
5470
|
sourceRef: centerAgentContextManifestSourceRefSchema
|
|
5291
5471
|
});
|
|
5292
5472
|
strictObject({
|
|
@@ -5296,7 +5476,7 @@ strictObject({
|
|
|
5296
5476
|
});
|
|
5297
5477
|
const centerAgentContextLoadSelectedEntrySchema = strictObject({
|
|
5298
5478
|
materializedContentHash: contentHashSchema$1,
|
|
5299
|
-
sourceRefId: trimmedNonEmptyStringSchema$
|
|
5479
|
+
sourceRefId: trimmedNonEmptyStringSchema$9
|
|
5300
5480
|
});
|
|
5301
5481
|
const createCenterAgentContextLoadReceiptBodySchema = strictObject({
|
|
5302
5482
|
selection: discriminatedUnion("kind", [strictObject({ kind: literal("all_manifest_entries") }), strictObject({
|
|
@@ -5329,20 +5509,20 @@ const createCenterAgentContextManifestResponseSchema = strictObject({
|
|
|
5329
5509
|
hasMore: boolean()
|
|
5330
5510
|
}),
|
|
5331
5511
|
entries: array(centerAgentContextManifestEntrySchema),
|
|
5332
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5512
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$6,
|
|
5333
5513
|
manifestId: centerAgentContextManifestIdSchema,
|
|
5334
5514
|
provenance: strictObject({
|
|
5335
|
-
auditEntryId: trimmedNonEmptyStringSchema$
|
|
5515
|
+
auditEntryId: trimmedNonEmptyStringSchema$9,
|
|
5336
5516
|
contentProjection: literal("user_visible_space_signals")
|
|
5337
5517
|
}),
|
|
5338
5518
|
request: strictObject({ source: centerAgentInteractionSourceSchema }),
|
|
5339
5519
|
schemaVersion: literal(CENTER_AGENT_CONTEXT_MANIFEST_VERSION),
|
|
5340
5520
|
subject: strictObject({
|
|
5341
|
-
centerAgentProfileId: trimmedNonEmptyStringSchema$
|
|
5342
|
-
conversationId: trimmedNonEmptyStringSchema$
|
|
5521
|
+
centerAgentProfileId: trimmedNonEmptyStringSchema$9,
|
|
5522
|
+
conversationId: trimmedNonEmptyStringSchema$9,
|
|
5343
5523
|
kind: literal("center_agent_conversation"),
|
|
5344
|
-
memberProfileId: trimmedNonEmptyStringSchema$
|
|
5345
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5524
|
+
memberProfileId: trimmedNonEmptyStringSchema$9,
|
|
5525
|
+
organizationId: trimmedNonEmptyStringSchema$9
|
|
5346
5526
|
}),
|
|
5347
5527
|
view: centerAgentContextManifestViewSchema
|
|
5348
5528
|
});
|
|
@@ -5351,9 +5531,9 @@ const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
|
|
|
5351
5531
|
principal: literal("authenticated_member"),
|
|
5352
5532
|
scope: literal("requester_private")
|
|
5353
5533
|
}),
|
|
5354
|
-
provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$
|
|
5534
|
+
provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$9 }),
|
|
5355
5535
|
receipt: strictObject({
|
|
5356
|
-
client: trimmedNonEmptyStringSchema$
|
|
5536
|
+
client: trimmedNonEmptyStringSchema$9.max(80),
|
|
5357
5537
|
estimatedTokens: number().int().nonnegative(),
|
|
5358
5538
|
id: loadReceiptIdSchema,
|
|
5359
5539
|
includedMessages: number().int().min(1).max(50),
|
|
@@ -5361,7 +5541,7 @@ const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
|
|
|
5361
5541
|
selectedEntries: array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),
|
|
5362
5542
|
status: literal("loaded")
|
|
5363
5543
|
}),
|
|
5364
|
-
recordedAt: ISO_DATE_TIME_SCHEMA$
|
|
5544
|
+
recordedAt: ISO_DATE_TIME_SCHEMA$6,
|
|
5365
5545
|
schemaVersion: literal(CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION)
|
|
5366
5546
|
});
|
|
5367
5547
|
//#endregion
|
|
@@ -5606,7 +5786,7 @@ const messageChannelIdentityLinkConsumeResponseSchema = strictObject({
|
|
|
5606
5786
|
});
|
|
5607
5787
|
//#endregion
|
|
5608
5788
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-member-research.js
|
|
5609
|
-
const trimmedNonEmptyStringSchema$
|
|
5789
|
+
const trimmedNonEmptyStringSchema$8 = z$1.string().trim().min(1);
|
|
5610
5790
|
const isoDateTimeSchema$5 = z$1.iso.datetime({ offset: true });
|
|
5611
5791
|
const memberResearchTextSchema = z$1.string().trim().min(1).max(1e3);
|
|
5612
5792
|
const CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES = [
|
|
@@ -5633,8 +5813,8 @@ const centerAgentMemberResearchEvidenceSourceSchema = z$1.enum([
|
|
|
5633
5813
|
const centerAgentMemberResearchEvidenceItemSchema = z$1.strictObject({
|
|
5634
5814
|
date: z$1.iso.date(),
|
|
5635
5815
|
source: centerAgentMemberResearchEvidenceSourceSchema,
|
|
5636
|
-
sourceId: trimmedNonEmptyStringSchema$
|
|
5637
|
-
sourceName: trimmedNonEmptyStringSchema$
|
|
5816
|
+
sourceId: trimmedNonEmptyStringSchema$8.max(256),
|
|
5817
|
+
sourceName: trimmedNonEmptyStringSchema$8.max(120).optional(),
|
|
5638
5818
|
sourceUrl: z$1.url().max(2048).optional(),
|
|
5639
5819
|
text: memberResearchTextSchema
|
|
5640
5820
|
}).superRefine((item, context) => {
|
|
@@ -5673,7 +5853,7 @@ const centerAgentMemberResearchCoverageSchema = z$1.strictObject({
|
|
|
5673
5853
|
evidence: memberResearchTextSchema.max(500),
|
|
5674
5854
|
source: centerAgentMemberResearchCoverageSourceSchema,
|
|
5675
5855
|
status: centerAgentMemberResearchCoverageStatusSchema,
|
|
5676
|
-
timeRange: trimmedNonEmptyStringSchema$
|
|
5856
|
+
timeRange: trimmedNonEmptyStringSchema$8.max(120)
|
|
5677
5857
|
});
|
|
5678
5858
|
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) => {
|
|
5679
5859
|
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;
|
|
@@ -5722,12 +5902,12 @@ const centerAgentMemberResearchTaskStatusSchema = z$1.enum([
|
|
|
5722
5902
|
"failed"
|
|
5723
5903
|
]);
|
|
5724
5904
|
const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
5725
|
-
id: trimmedNonEmptyStringSchema$
|
|
5726
|
-
subjectUserId: trimmedNonEmptyStringSchema$
|
|
5727
|
-
subjectDisplayName: trimmedNonEmptyStringSchema$
|
|
5905
|
+
id: trimmedNonEmptyStringSchema$8,
|
|
5906
|
+
subjectUserId: trimmedNonEmptyStringSchema$8,
|
|
5907
|
+
subjectDisplayName: trimmedNonEmptyStringSchema$8,
|
|
5728
5908
|
position: z$1.number().int().positive(),
|
|
5729
5909
|
status: centerAgentMemberResearchTaskStatusSchema,
|
|
5730
|
-
failureCode: trimmedNonEmptyStringSchema$
|
|
5910
|
+
failureCode: trimmedNonEmptyStringSchema$8.nullable(),
|
|
5731
5911
|
startedAt: isoDateTimeSchema$5.nullable(),
|
|
5732
5912
|
finishedAt: isoDateTimeSchema$5.nullable()
|
|
5733
5913
|
}).superRefine((task, context) => {
|
|
@@ -5743,8 +5923,8 @@ const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
|
5743
5923
|
});
|
|
5744
5924
|
});
|
|
5745
5925
|
const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
5746
|
-
id: trimmedNonEmptyStringSchema$
|
|
5747
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5926
|
+
id: trimmedNonEmptyStringSchema$8,
|
|
5927
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
5748
5928
|
scope: centerAgentMemberResearchScopeSchema,
|
|
5749
5929
|
status: centerAgentMemberResearchBatchStatusSchema,
|
|
5750
5930
|
totalCount: z$1.number().int().positive(),
|
|
@@ -5806,11 +5986,11 @@ const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
|
5806
5986
|
});
|
|
5807
5987
|
});
|
|
5808
5988
|
const startCenterAgentMemberResearchBodySchema = z$1.discriminatedUnion("scope", [z$1.strictObject({
|
|
5809
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
5989
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$8,
|
|
5810
5990
|
scope: z$1.literal("member"),
|
|
5811
|
-
subjectUserId: trimmedNonEmptyStringSchema$
|
|
5991
|
+
subjectUserId: trimmedNonEmptyStringSchema$8
|
|
5812
5992
|
}), z$1.strictObject({
|
|
5813
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
5993
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$8,
|
|
5814
5994
|
scope: z$1.literal("all")
|
|
5815
5995
|
})]);
|
|
5816
5996
|
const startCenterAgentMemberResearchResponseSchema = z$1.strictObject({ batch: centerAgentMemberResearchBatchSchema });
|
|
@@ -5820,7 +6000,7 @@ z$1.strictObject({
|
|
|
5820
6000
|
speakerMember: centerAgentToolSpeakerSchema
|
|
5821
6001
|
});
|
|
5822
6002
|
const getCenterAgentMemberResearchStatusResponseSchema = z$1.strictObject({
|
|
5823
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6003
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
5824
6004
|
latestBatch: centerAgentMemberResearchBatchSchema.nullable()
|
|
5825
6005
|
});
|
|
5826
6006
|
z$1.strictObject({ context: openMeldRequestContextSchema });
|
|
@@ -6252,7 +6432,7 @@ const CONNECTOR_APP_REQUEST_STATUSES = [
|
|
|
6252
6432
|
"available",
|
|
6253
6433
|
"declined"
|
|
6254
6434
|
];
|
|
6255
|
-
const trimmedNonEmptyStringSchema$
|
|
6435
|
+
const trimmedNonEmptyStringSchema$7 = string().trim().min(1);
|
|
6256
6436
|
const timestampMsSchema$1 = number().int().nonnegative();
|
|
6257
6437
|
const connectorCredentialValueSchema = string().min(1).max(8192);
|
|
6258
6438
|
const connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();
|
|
@@ -6271,30 +6451,30 @@ const connectorConnectionSchema = strictObject({
|
|
|
6271
6451
|
connectionName: connectorConnectionNameSchema,
|
|
6272
6452
|
createdAtMs: timestampMsSchema$1,
|
|
6273
6453
|
disconnectedAtMs: timestampMsSchema$1.nullable(),
|
|
6274
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6275
|
-
ownerDisplayName: trimmedNonEmptyStringSchema$
|
|
6454
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6455
|
+
ownerDisplayName: trimmedNonEmptyStringSchema$7,
|
|
6276
6456
|
scope: connectorConnectionScopeSchema.default("member"),
|
|
6277
6457
|
service: connectorServiceSchema,
|
|
6278
6458
|
status: connectorConnectionStatusSchema,
|
|
6279
6459
|
updatedAtMs: timestampMsSchema$1,
|
|
6280
|
-
userId: trimmedNonEmptyStringSchema$
|
|
6460
|
+
userId: trimmedNonEmptyStringSchema$7
|
|
6281
6461
|
});
|
|
6282
6462
|
strictObject({
|
|
6283
6463
|
connections: array(connectorConnectionSchema),
|
|
6284
|
-
currentUserId: trimmedNonEmptyStringSchema$
|
|
6285
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6464
|
+
currentUserId: trimmedNonEmptyStringSchema$7,
|
|
6465
|
+
organizationId: trimmedNonEmptyStringSchema$7
|
|
6286
6466
|
});
|
|
6287
6467
|
const connectorAppRequestSchema = strictObject({
|
|
6288
6468
|
availableAtMs: timestampMsSchema$1.nullable(),
|
|
6289
6469
|
createdAtMs: timestampMsSchema$1,
|
|
6290
6470
|
id: string().trim().min(1).max(128),
|
|
6291
6471
|
notifiedAtMs: timestampMsSchema$1.nullable(),
|
|
6292
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6472
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6293
6473
|
providerId: string().trim().min(1).max(160).nullable(),
|
|
6294
6474
|
providerName: string().trim().min(1).max(120),
|
|
6295
6475
|
requestedCapabilities: connectorAppRequestedCapabilitiesSchema,
|
|
6296
|
-
requesterMemberId: trimmedNonEmptyStringSchema$
|
|
6297
|
-
requesterUserId: trimmedNonEmptyStringSchema$
|
|
6476
|
+
requesterMemberId: trimmedNonEmptyStringSchema$7.nullable(),
|
|
6477
|
+
requesterUserId: trimmedNonEmptyStringSchema$7.nullable(),
|
|
6298
6478
|
source: connectorAppRequestSourceSchema,
|
|
6299
6479
|
status: connectorAppRequestStatusSchema,
|
|
6300
6480
|
updatedAtMs: timestampMsSchema$1,
|
|
@@ -6320,12 +6500,12 @@ strictObject({
|
|
|
6320
6500
|
});
|
|
6321
6501
|
strictObject({ request: connectorAppRequestSchema });
|
|
6322
6502
|
strictObject({
|
|
6323
|
-
currentUserId: trimmedNonEmptyStringSchema$
|
|
6324
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6503
|
+
currentUserId: trimmedNonEmptyStringSchema$7,
|
|
6504
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6325
6505
|
requests: array(connectorAppRequestSchema).max(500)
|
|
6326
6506
|
});
|
|
6327
6507
|
strictObject({
|
|
6328
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6508
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6329
6509
|
providers: array(strictObject({
|
|
6330
6510
|
authTypes: array(string().trim().min(1).max(80)).max(12),
|
|
6331
6511
|
categories: array(strictObject({
|
|
@@ -6355,12 +6535,12 @@ strictObject({
|
|
|
6355
6535
|
});
|
|
6356
6536
|
discriminatedUnion("status", [
|
|
6357
6537
|
strictObject({
|
|
6358
|
-
actorProfileId: trimmedNonEmptyStringSchema$
|
|
6538
|
+
actorProfileId: trimmedNonEmptyStringSchema$7,
|
|
6359
6539
|
installationId: githubAppInstallationIdSchema,
|
|
6360
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6540
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6361
6541
|
status: literal("valid"),
|
|
6362
6542
|
targetConnectionName: connectorConnectionNameSchema,
|
|
6363
|
-
userId: trimmedNonEmptyStringSchema$
|
|
6543
|
+
userId: trimmedNonEmptyStringSchema$7,
|
|
6364
6544
|
verificationConnectionName: connectorConnectionNameSchema
|
|
6365
6545
|
}),
|
|
6366
6546
|
strictObject({ status: literal("expired") }),
|
|
@@ -6368,10 +6548,10 @@ discriminatedUnion("status", [
|
|
|
6368
6548
|
]);
|
|
6369
6549
|
strictObject({
|
|
6370
6550
|
installationId: githubAppInstallationIdSchema,
|
|
6371
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6551
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6372
6552
|
status: literal("verifying"),
|
|
6373
6553
|
targetConnectionName: connectorConnectionNameSchema,
|
|
6374
|
-
userId: trimmedNonEmptyStringSchema$
|
|
6554
|
+
userId: trimmedNonEmptyStringSchema$7,
|
|
6375
6555
|
verificationConnectionName: connectorConnectionNameSchema
|
|
6376
6556
|
}).nullable();
|
|
6377
6557
|
strictObject({
|
|
@@ -6380,10 +6560,10 @@ strictObject({
|
|
|
6380
6560
|
});
|
|
6381
6561
|
strictObject({ connection: connectorConnectionSchema });
|
|
6382
6562
|
strictObject({
|
|
6383
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
6563
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$7,
|
|
6384
6564
|
includeAuthorizationExpiry: literal("true").optional()
|
|
6385
6565
|
});
|
|
6386
|
-
strictObject({ userId: trimmedNonEmptyStringSchema$
|
|
6566
|
+
strictObject({ userId: trimmedNonEmptyStringSchema$7 });
|
|
6387
6567
|
strictObject({ connection: connectorConnectionSchema });
|
|
6388
6568
|
strictObject({
|
|
6389
6569
|
availableConnectionNames: array(connectorConnectionNameSchema).max(500),
|
|
@@ -6465,7 +6645,7 @@ const pluginAccessUpdateBodySchema = strictObject({
|
|
|
6465
6645
|
lazySchema(() => pluginAccessListRpcInputSchema.extend({ ...pluginAccessUpdateBodySchema.shape }));
|
|
6466
6646
|
//#endregion
|
|
6467
6647
|
//#region ../../packages/schemas/dist/schemas/http/gateway-error.js
|
|
6468
|
-
const trimmedNonEmptyStringSchema$
|
|
6648
|
+
const trimmedNonEmptyStringSchema$6 = z$1.string().trim().min(1);
|
|
6469
6649
|
const SPACE_ADDRESSING_TARGET_INVALID_ERROR_CODE = "space.addressing.target_invalid";
|
|
6470
6650
|
const gatewayErrorCodeSchema = z$1.enum([
|
|
6471
6651
|
"bad_request",
|
|
@@ -6586,8 +6766,8 @@ const gatewayErrorCodeSchema = z$1.enum([
|
|
|
6586
6766
|
]);
|
|
6587
6767
|
const gatewayErrorSchema = commonErrorSchema.extend({
|
|
6588
6768
|
code: gatewayErrorCodeSchema,
|
|
6589
|
-
requestId: trimmedNonEmptyStringSchema$
|
|
6590
|
-
upstreamCode: trimmedNonEmptyStringSchema$
|
|
6769
|
+
requestId: trimmedNonEmptyStringSchema$6,
|
|
6770
|
+
upstreamCode: trimmedNonEmptyStringSchema$6.optional()
|
|
6591
6771
|
});
|
|
6592
6772
|
const gatewayErrorEnvelopeSchema = z$1.strictObject({
|
|
6593
6773
|
ok: z$1.literal(false),
|
|
@@ -6602,144 +6782,6 @@ const identityImageMimeTypeSchema = z$1.enum([
|
|
|
6602
6782
|
"image/webp"
|
|
6603
6783
|
]);
|
|
6604
6784
|
//#endregion
|
|
6605
|
-
//#region ../../packages/schemas/dist/schemas/http/profile-space-history.js
|
|
6606
|
-
const ISO_DATE_TIME_SCHEMA$6 = z$1.iso.datetime({ offset: true });
|
|
6607
|
-
const GATEWAY_HOST_MAX_LENGTH = 255;
|
|
6608
|
-
const PROFILE_SPACE_HISTORY_MAX_LIMIT = 500;
|
|
6609
|
-
const NON_NEGATIVE_INT_RE$2 = /^\d+$/;
|
|
6610
|
-
const GATEWAY_HOST_PATH_CHARS_RE = /[/?#]/;
|
|
6611
|
-
const trimmedNonEmptyStringSchema$6 = z$1.string().trim().min(1);
|
|
6612
|
-
const nullableTrimmedStringSchema$6 = z$1.union([trimmedNonEmptyStringSchema$6, z$1.null()]);
|
|
6613
|
-
const nullableNonNegativeIntSchema$1 = z$1.union([z$1.number().int().min(0), z$1.null()]);
|
|
6614
|
-
const nullableIsoDateTimeSchema$4 = z$1.union([ISO_DATE_TIME_SCHEMA$6, z$1.null()]);
|
|
6615
|
-
const profileSpaceHistoryGatewayHostSchema = z$1.string().transform((value, ctx) => {
|
|
6616
|
-
const normalized = value.trim().toLowerCase();
|
|
6617
|
-
if (normalized.length === 0) {
|
|
6618
|
-
ctx.addIssue({
|
|
6619
|
-
code: "custom",
|
|
6620
|
-
message: "gatewayHost is required"
|
|
6621
|
-
});
|
|
6622
|
-
return z$1.NEVER;
|
|
6623
|
-
}
|
|
6624
|
-
if (normalized.includes("://")) try {
|
|
6625
|
-
const url = new URL(normalized);
|
|
6626
|
-
if (url.pathname !== "/" || url.search.length > 0 || url.hash.length > 0) {
|
|
6627
|
-
ctx.addIssue({
|
|
6628
|
-
code: "custom",
|
|
6629
|
-
message: "gatewayHost must not include path/query/hash"
|
|
6630
|
-
});
|
|
6631
|
-
return z$1.NEVER;
|
|
6632
|
-
}
|
|
6633
|
-
if (url.host.length === 0) {
|
|
6634
|
-
ctx.addIssue({
|
|
6635
|
-
code: "custom",
|
|
6636
|
-
message: "gatewayHost is required"
|
|
6637
|
-
});
|
|
6638
|
-
return z$1.NEVER;
|
|
6639
|
-
}
|
|
6640
|
-
return url.host.toLowerCase();
|
|
6641
|
-
} catch {
|
|
6642
|
-
ctx.addIssue({
|
|
6643
|
-
code: "custom",
|
|
6644
|
-
message: "gatewayHost must be a valid host"
|
|
6645
|
-
});
|
|
6646
|
-
return z$1.NEVER;
|
|
6647
|
-
}
|
|
6648
|
-
if (GATEWAY_HOST_PATH_CHARS_RE.test(normalized)) {
|
|
6649
|
-
ctx.addIssue({
|
|
6650
|
-
code: "custom",
|
|
6651
|
-
message: "gatewayHost must not include path/query/hash"
|
|
6652
|
-
});
|
|
6653
|
-
return z$1.NEVER;
|
|
6654
|
-
}
|
|
6655
|
-
return normalized;
|
|
6656
|
-
}).pipe(z$1.string().max(GATEWAY_HOST_MAX_LENGTH));
|
|
6657
|
-
const profileSpaceHistoryLimitSchema = z$1.preprocess((value) => {
|
|
6658
|
-
if (typeof value === "number") return value;
|
|
6659
|
-
if (typeof value !== "string") return value;
|
|
6660
|
-
const normalized = value.trim();
|
|
6661
|
-
if (!NON_NEGATIVE_INT_RE$2.test(normalized)) return NaN;
|
|
6662
|
-
return Number.parseInt(normalized, 10);
|
|
6663
|
-
}, z$1.number().int().min(1).max(PROFILE_SPACE_HISTORY_MAX_LIMIT)).optional();
|
|
6664
|
-
const profileSpaceHistoryPinnedFilterSchema = z$1.union([z$1.boolean(), z$1.enum(["true", "false"])]).optional().transform((value) => {
|
|
6665
|
-
if (value === void 0 || typeof value === "boolean") return value;
|
|
6666
|
-
return value === "true";
|
|
6667
|
-
});
|
|
6668
|
-
const profileSpaceHistoryStatusSchema = z$1.enum([
|
|
6669
|
-
"active",
|
|
6670
|
-
"removed",
|
|
6671
|
-
"inaccessible"
|
|
6672
|
-
]);
|
|
6673
|
-
const profileSpaceCreatorKindSchema = z$1.enum([
|
|
6674
|
-
"human",
|
|
6675
|
-
"agent",
|
|
6676
|
-
"system"
|
|
6677
|
-
]);
|
|
6678
|
-
const profileSpaceHistoryStatusListSchema = z$1.union([profileSpaceHistoryStatusSchema, z$1.array(profileSpaceHistoryStatusSchema)]).optional().transform((value) => {
|
|
6679
|
-
if (value === void 0) return;
|
|
6680
|
-
return Array.isArray(value) ? value : [value];
|
|
6681
|
-
});
|
|
6682
|
-
const profileSpaceHistoryRecordSchema = z$1.strictObject({
|
|
6683
|
-
profileId: trimmedNonEmptyStringSchema$6,
|
|
6684
|
-
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6685
|
-
spaceId: trimmedNonEmptyStringSchema$6,
|
|
6686
|
-
spaceName: nullableTrimmedStringSchema$6,
|
|
6687
|
-
creatorProfileId: nullableTrimmedStringSchema$6,
|
|
6688
|
-
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]),
|
|
6689
|
-
spaceCreatedAt: nullableIsoDateTimeSchema$4,
|
|
6690
|
-
spaceUpdatedAt: nullableIsoDateTimeSchema$4,
|
|
6691
|
-
lastJoinedAt: ISO_DATE_TIME_SCHEMA$6,
|
|
6692
|
-
lastSeenTs: nullableNonNegativeIntSchema$1,
|
|
6693
|
-
pinnedAt: nullableIsoDateTimeSchema$4,
|
|
6694
|
-
status: profileSpaceHistoryStatusSchema,
|
|
6695
|
-
createdAt: ISO_DATE_TIME_SCHEMA$6,
|
|
6696
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$6
|
|
6697
|
-
});
|
|
6698
|
-
z$1.strictObject({
|
|
6699
|
-
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6700
|
-
status: profileSpaceHistoryStatusListSchema,
|
|
6701
|
-
limit: profileSpaceHistoryLimitSchema,
|
|
6702
|
-
pinned: profileSpaceHistoryPinnedFilterSchema
|
|
6703
|
-
});
|
|
6704
|
-
const listProfileSpaceHistoryResponseSchema = z$1.strictObject({ items: z$1.array(profileSpaceHistoryRecordSchema) });
|
|
6705
|
-
const profileSpaceHistorySpaceIndexOverlaySchema = z$1.strictObject({
|
|
6706
|
-
repairAttempted: z$1.boolean(),
|
|
6707
|
-
status: z$1.enum([
|
|
6708
|
-
"applied",
|
|
6709
|
-
"degraded",
|
|
6710
|
-
"pending"
|
|
6711
|
-
]),
|
|
6712
|
-
updated: z$1.boolean()
|
|
6713
|
-
});
|
|
6714
|
-
z$1.strictObject({
|
|
6715
|
-
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6716
|
-
spaceName: nullableTrimmedStringSchema$6.optional(),
|
|
6717
|
-
creatorProfileId: nullableTrimmedStringSchema$6.optional(),
|
|
6718
|
-
creatorKind: z$1.union([profileSpaceCreatorKindSchema, z$1.null()]).optional(),
|
|
6719
|
-
spaceCreatedAt: nullableIsoDateTimeSchema$4.optional(),
|
|
6720
|
-
spaceUpdatedAt: nullableIsoDateTimeSchema$4.optional(),
|
|
6721
|
-
lastJoinedAt: ISO_DATE_TIME_SCHEMA$6.optional(),
|
|
6722
|
-
lastSeenTs: nullableNonNegativeIntSchema$1.optional(),
|
|
6723
|
-
pinnedAt: nullableIsoDateTimeSchema$4.optional(),
|
|
6724
|
-
status: profileSpaceHistoryStatusSchema.optional()
|
|
6725
|
-
});
|
|
6726
|
-
const upsertProfileSpaceHistoryResponseSchema = z$1.strictObject({
|
|
6727
|
-
item: profileSpaceHistoryRecordSchema,
|
|
6728
|
-
spaceIndexOverlay: profileSpaceHistorySpaceIndexOverlaySchema
|
|
6729
|
-
});
|
|
6730
|
-
z$1.strictObject({
|
|
6731
|
-
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6732
|
-
status: profileSpaceHistoryStatusSchema,
|
|
6733
|
-
reason: z$1.string().trim().min(1).max(500).optional()
|
|
6734
|
-
});
|
|
6735
|
-
const patchProfileSpaceHistoryStatusResponseSchema = z$1.strictObject({
|
|
6736
|
-
profileId: trimmedNonEmptyStringSchema$6,
|
|
6737
|
-
gatewayHost: profileSpaceHistoryGatewayHostSchema,
|
|
6738
|
-
spaceId: trimmedNonEmptyStringSchema$6,
|
|
6739
|
-
status: profileSpaceHistoryStatusSchema,
|
|
6740
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$6
|
|
6741
|
-
});
|
|
6742
|
-
//#endregion
|
|
6743
6785
|
//#region ../../packages/schemas/dist/schemas/http/account-space-index.js
|
|
6744
6786
|
const ISO_DATE_TIME_SCHEMA$5 = z$1.iso.datetime({ offset: true });
|
|
6745
6787
|
const trimmedNonEmptyStringSchema$5 = z$1.string().trim().min(1);
|
|
@@ -7067,6 +7109,25 @@ const setAgentProfileCreationApprovalPreferenceBodySchema = z$1.strictObject({
|
|
|
7067
7109
|
const getAgentProfileCreationApprovalPreferenceResponseSchema = agentProfileCreationApprovalPreferenceSchema;
|
|
7068
7110
|
const setAgentProfileCreationApprovalPreferenceResponseSchema = agentProfileCreationApprovalPreferenceSchema;
|
|
7069
7111
|
//#endregion
|
|
7112
|
+
//#region ../../packages/schemas/dist/schemas/http/agent-profile-execution-mode.js
|
|
7113
|
+
const agentProfileExecutionModeSchema = z$1.enum(["parallel", "serial"]);
|
|
7114
|
+
const updateAgentProfileExecutionModeBodySchema = z$1.object({ mode: agentProfileExecutionModeSchema }).strict();
|
|
7115
|
+
const agentProfileExecutionModeResponseSchema = z$1.object({
|
|
7116
|
+
agentProfileId: z$1.string().min(1),
|
|
7117
|
+
mode: agentProfileExecutionModeSchema,
|
|
7118
|
+
migration: z$1.enum([
|
|
7119
|
+
"legacy",
|
|
7120
|
+
"draining",
|
|
7121
|
+
"contexts"
|
|
7122
|
+
]),
|
|
7123
|
+
revision: z$1.number().int().nonnegative()
|
|
7124
|
+
}).strict();
|
|
7125
|
+
z$1.object({
|
|
7126
|
+
ownerUserId: z$1.string().min(1),
|
|
7127
|
+
targetProfileId: z$1.string().min(1),
|
|
7128
|
+
mode: agentProfileExecutionModeSchema.optional()
|
|
7129
|
+
}).strict();
|
|
7130
|
+
//#endregion
|
|
7070
7131
|
//#region ../../packages/schemas/dist/schemas/http/agent-profile-work-recovery.js
|
|
7071
7132
|
const agentProfileWorkRecoveryActionSchema = agentProfileWorkRecoveryActionKindSchema;
|
|
7072
7133
|
const agentProfileWorkRecoveryRouteParamsSchema = z$1.strictObject({ agentProfileId: agentProfileIdSchema });
|
|
@@ -7083,6 +7144,59 @@ const executeAgentProfileWorkRecoveryResponseSchema = z$1.strictObject({
|
|
|
7083
7144
|
status: z$1.literal("accepted")
|
|
7084
7145
|
});
|
|
7085
7146
|
//#endregion
|
|
7147
|
+
//#region ../../packages/schemas/dist/schemas/http/auth-device-authorization.js
|
|
7148
|
+
const BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
7149
|
+
const betterAuthDeviceAuthorizationCodeRequestSchema = z$1.object({
|
|
7150
|
+
client_id: z$1.string().min(1),
|
|
7151
|
+
scope: z$1.string().optional(),
|
|
7152
|
+
user_id: z$1.string().optional()
|
|
7153
|
+
});
|
|
7154
|
+
const betterAuthDeviceAuthorizationCodeResponseSchema = z$1.object({
|
|
7155
|
+
device_code: z$1.string().min(1),
|
|
7156
|
+
user_code: z$1.string().min(1),
|
|
7157
|
+
verification_uri: z$1.string().min(1),
|
|
7158
|
+
verification_uri_complete: z$1.string().min(1),
|
|
7159
|
+
expires_in: z$1.number().finite().positive(),
|
|
7160
|
+
interval: z$1.number().finite().positive()
|
|
7161
|
+
});
|
|
7162
|
+
const betterAuthDeviceAuthorizationStatusSchema = z$1.enum([
|
|
7163
|
+
"pending",
|
|
7164
|
+
"approved",
|
|
7165
|
+
"denied"
|
|
7166
|
+
]);
|
|
7167
|
+
const betterAuthDeviceAuthorizationClaimResponseSchema = z$1.object({
|
|
7168
|
+
user_code: z$1.string().min(1),
|
|
7169
|
+
status: betterAuthDeviceAuthorizationStatusSchema
|
|
7170
|
+
});
|
|
7171
|
+
const betterAuthDeviceAuthorizationDecisionRequestSchema = z$1.object({ userCode: z$1.string().min(1) });
|
|
7172
|
+
const betterAuthDeviceAuthorizationDecisionResponseSchema = z$1.object({ success: z$1.boolean() });
|
|
7173
|
+
const betterAuthDeviceAuthorizationTokenRequestSchema = z$1.object({
|
|
7174
|
+
grant_type: z$1.literal(BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE),
|
|
7175
|
+
device_code: z$1.string().min(1),
|
|
7176
|
+
client_id: z$1.string().min(1)
|
|
7177
|
+
});
|
|
7178
|
+
const betterAuthDeviceAuthorizationTokenResponseSchema = z$1.object({
|
|
7179
|
+
access_token: z$1.string().min(1),
|
|
7180
|
+
token_type: z$1.string().min(1),
|
|
7181
|
+
expires_in: z$1.number().finite().positive(),
|
|
7182
|
+
scope: z$1.string()
|
|
7183
|
+
});
|
|
7184
|
+
const betterAuthDeviceAuthorizationErrorResponseSchema = z$1.object({
|
|
7185
|
+
error: z$1.string().optional(),
|
|
7186
|
+
error_description: z$1.string().optional(),
|
|
7187
|
+
message: z$1.string().optional(),
|
|
7188
|
+
detail: z$1.string().optional()
|
|
7189
|
+
});
|
|
7190
|
+
const betterAuthSessionUserSnapshotSchema = z$1.object({
|
|
7191
|
+
id: z$1.string().optional(),
|
|
7192
|
+
email: z$1.string().optional(),
|
|
7193
|
+
name: z$1.string().optional()
|
|
7194
|
+
});
|
|
7195
|
+
const betterAuthSessionSnapshotResponseSchema = z$1.nullable(z$1.object({
|
|
7196
|
+
session: z$1.unknown().optional(),
|
|
7197
|
+
user: betterAuthSessionUserSnapshotSchema.nullable()
|
|
7198
|
+
}));
|
|
7199
|
+
//#endregion
|
|
7086
7200
|
//#region ../../packages/schemas/dist/schemas/http/catchup-response.js
|
|
7087
7201
|
/**
|
|
7088
7202
|
* Canonical catch-up response shape across Core/Gateway/CLI.
|
|
@@ -8228,6 +8342,7 @@ const postSpaceThreadSignalBodySchema = z$1.strictObject({
|
|
|
8228
8342
|
threadWakeContinuation: z$1.literal(true).optional(),
|
|
8229
8343
|
text: signalTextSchema.shape.data.shape.text,
|
|
8230
8344
|
deviceWait: signalTextSchema.shape.data.shape.deviceWait.optional(),
|
|
8345
|
+
contextSelection: signalTextSchema.shape.data.shape.contextSelection.optional(),
|
|
8231
8346
|
files: signalTextSchema.shape.data.shape.files.optional(),
|
|
8232
8347
|
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
8233
8348
|
clientMessageId: clientMessageIdSchema,
|
|
@@ -8988,6 +9103,7 @@ const remoteAgentCoreCallbackBodySchema = union([strictObject({
|
|
|
8988
9103
|
conversationCompaction: conversationCompactionMarkerSchema.optional(),
|
|
8989
9104
|
navigationTarget: openMeldNavigationTargetSchema.optional(),
|
|
8990
9105
|
status: literal("completed").optional(),
|
|
9106
|
+
mentionTargets: array(openMeldRuntimeProfileIdSchema).max(25).optional(),
|
|
8991
9107
|
text: nonEmptyStringSchema$1.max(MAX_TEXT_LENGTH$1),
|
|
8992
9108
|
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
8993
9109
|
files: spaceMessageFileReferencesSchema.optional()
|
|
@@ -10501,6 +10617,7 @@ function resolveRuntimeCoordinatorHeadLifecycleRootCause(trace) {
|
|
|
10501
10617
|
};
|
|
10502
10618
|
}
|
|
10503
10619
|
function resolveRuntimeCoordinatorHeadStatusRootCause(status) {
|
|
10620
|
+
if (status === "queued") return "runtime_coordinator.head_queued";
|
|
10504
10621
|
if (status === "accepted") return "runtime_coordinator.head_accepted";
|
|
10505
10622
|
if (status === "execution_linked") return "runtime_coordinator.head_execution_linked";
|
|
10506
10623
|
if (status === "waiting") return "runtime_coordinator.head_waiting";
|
|
@@ -13789,6 +13906,224 @@ function buildLegacyDefaultMentionAliasSeed(input) {
|
|
|
13789
13906
|
}
|
|
13790
13907
|
//#endregion
|
|
13791
13908
|
//#region ../../packages/api-client/dist/index.js
|
|
13909
|
+
const FALLBACK_GATEWAY_HTTP_ERROR_CODE = "gateway.http_error";
|
|
13910
|
+
const INVALID_RESPONSE_ERROR_CODE = "gateway.invalid_response";
|
|
13911
|
+
const GENERIC_NETWORK_ERROR_CODES = ["network.timeout", "network.request_failed"];
|
|
13912
|
+
const KNOWN_API_CLIENT_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
13913
|
+
...gatewayErrorCodeSchema.options,
|
|
13914
|
+
FALLBACK_GATEWAY_HTTP_ERROR_CODE,
|
|
13915
|
+
INVALID_RESPONSE_ERROR_CODE,
|
|
13916
|
+
...GENERIC_NETWORK_ERROR_CODES
|
|
13917
|
+
]);
|
|
13918
|
+
var OpenMeldApiClientHttpError = class extends Error {
|
|
13919
|
+
code;
|
|
13920
|
+
requestId;
|
|
13921
|
+
status;
|
|
13922
|
+
rawBody;
|
|
13923
|
+
upstreamCode;
|
|
13924
|
+
constructor(input) {
|
|
13925
|
+
super(input.message);
|
|
13926
|
+
this.name = "OpenMeldApiClientHttpError";
|
|
13927
|
+
this.code = input.code;
|
|
13928
|
+
this.requestId = normalizeOptionalText(input.requestId);
|
|
13929
|
+
this.status = input.status;
|
|
13930
|
+
this.rawBody = input.rawBody;
|
|
13931
|
+
this.upstreamCode = normalizeOptionalText(input.upstreamCode);
|
|
13932
|
+
}
|
|
13933
|
+
};
|
|
13934
|
+
var OpenMeldApiClientInvalidResponseError = class extends Error {
|
|
13935
|
+
code = INVALID_RESPONSE_ERROR_CODE;
|
|
13936
|
+
operation;
|
|
13937
|
+
requestId;
|
|
13938
|
+
status;
|
|
13939
|
+
rawBody;
|
|
13940
|
+
schemaIssueMessage;
|
|
13941
|
+
schemaIssuePath;
|
|
13942
|
+
upstreamCode = null;
|
|
13943
|
+
constructor(input) {
|
|
13944
|
+
super(input.message);
|
|
13945
|
+
this.name = "OpenMeldApiClientInvalidResponseError";
|
|
13946
|
+
this.operation = input.operation;
|
|
13947
|
+
this.requestId = normalizeOptionalText(input.requestId);
|
|
13948
|
+
this.status = input.status;
|
|
13949
|
+
this.rawBody = input.rawBody;
|
|
13950
|
+
this.schemaIssueMessage = normalizeOptionalText(input.schemaIssue?.message);
|
|
13951
|
+
this.schemaIssuePath = formatSchemaIssuePath(input.schemaIssue);
|
|
13952
|
+
}
|
|
13953
|
+
};
|
|
13954
|
+
function toStructuredApiClientFailure(error) {
|
|
13955
|
+
if (error instanceof OpenMeldApiClientHttpError) return {
|
|
13956
|
+
code: error.code,
|
|
13957
|
+
message: normalizeFailureMessage(error.message),
|
|
13958
|
+
requestId: error.requestId,
|
|
13959
|
+
status: error.status,
|
|
13960
|
+
upstreamCode: error.upstreamCode
|
|
13961
|
+
};
|
|
13962
|
+
if (error instanceof OpenMeldApiClientInvalidResponseError) return withInvalidResponseDiagnostics({
|
|
13963
|
+
code: error.code,
|
|
13964
|
+
message: normalizeFailureMessage(error.message),
|
|
13965
|
+
requestId: error.requestId,
|
|
13966
|
+
status: error.status,
|
|
13967
|
+
upstreamCode: null
|
|
13968
|
+
}, {
|
|
13969
|
+
schemaIssueMessage: error.schemaIssueMessage,
|
|
13970
|
+
schemaIssuePath: error.schemaIssuePath
|
|
13971
|
+
});
|
|
13972
|
+
return withInvalidResponseDiagnostics({
|
|
13973
|
+
code: readGenericErrorCode(error),
|
|
13974
|
+
message: normalizeFailureMessage(readFailureMessage(error)),
|
|
13975
|
+
requestId: readOptionalObjectTextField(error, "requestId"),
|
|
13976
|
+
status: readOptionalObjectStatus(error),
|
|
13977
|
+
upstreamCode: readOptionalObjectTextField(error, "upstreamCode")
|
|
13978
|
+
}, {
|
|
13979
|
+
schemaIssueMessage: readOptionalObjectTextField(error, "schemaIssueMessage"),
|
|
13980
|
+
schemaIssuePath: readOptionalObjectTextField(error, "schemaIssuePath")
|
|
13981
|
+
});
|
|
13982
|
+
}
|
|
13983
|
+
function readApiClientTextResponse(input) {
|
|
13984
|
+
return input.response.text().then((raw) => {
|
|
13985
|
+
assertApiClientResponseOk({
|
|
13986
|
+
response: input.response,
|
|
13987
|
+
raw
|
|
13988
|
+
});
|
|
13989
|
+
return raw;
|
|
13990
|
+
});
|
|
13991
|
+
}
|
|
13992
|
+
async function readApiClientJsonResponse(input) {
|
|
13993
|
+
let raw;
|
|
13994
|
+
try {
|
|
13995
|
+
raw = await input.response.text();
|
|
13996
|
+
} catch (error) {
|
|
13997
|
+
const bodyReadError = new Error(toErrorMessage$1(error), { cause: error });
|
|
13998
|
+
bodyReadError.code = "network.request_failed";
|
|
13999
|
+
bodyReadError.status = input.response.status;
|
|
14000
|
+
throw bodyReadError;
|
|
14001
|
+
}
|
|
14002
|
+
assertApiClientResponseOk({
|
|
14003
|
+
response: input.response,
|
|
14004
|
+
raw
|
|
14005
|
+
});
|
|
14006
|
+
const parsed = input.schema.safeParse(parseJsonResponse(raw));
|
|
14007
|
+
if (!parsed.success) throw new OpenMeldApiClientInvalidResponseError({
|
|
14008
|
+
message: input.invalidMessage,
|
|
14009
|
+
operation: input.operation,
|
|
14010
|
+
requestId: input.response.headers.get(OPENMELD_HEADER_REQUEST_ID),
|
|
14011
|
+
status: input.response.status,
|
|
14012
|
+
rawBody: raw,
|
|
14013
|
+
schemaIssue: parsed.error?.issues?.[0] ?? null
|
|
14014
|
+
});
|
|
14015
|
+
return parsed.data;
|
|
14016
|
+
}
|
|
14017
|
+
function assertApiClientResponseOk(input) {
|
|
14018
|
+
if (input.response.ok) return;
|
|
14019
|
+
throw parseApiClientErrorResponse(input);
|
|
14020
|
+
}
|
|
14021
|
+
function parseApiClientErrorResponse(input) {
|
|
14022
|
+
const parsed = gatewayErrorEnvelopeSchema.safeParse(parseJsonResponse(input.raw));
|
|
14023
|
+
const headerRequestId = normalizeOptionalText(input.response.headers.get(OPENMELD_HEADER_REQUEST_ID));
|
|
14024
|
+
if (parsed.success) return new OpenMeldApiClientHttpError({
|
|
14025
|
+
code: parsed.data.error.code,
|
|
14026
|
+
message: parsed.data.error.message,
|
|
14027
|
+
requestId: parsed.data.error.requestId || headerRequestId,
|
|
14028
|
+
status: input.response.status,
|
|
14029
|
+
rawBody: input.raw,
|
|
14030
|
+
upstreamCode: parsed.data.error.upstreamCode ?? null
|
|
14031
|
+
});
|
|
14032
|
+
return new OpenMeldApiClientHttpError({
|
|
14033
|
+
code: FALLBACK_GATEWAY_HTTP_ERROR_CODE,
|
|
14034
|
+
message: normalizeOptionalText(input.raw) ?? `Gateway request failed with HTTP ${input.response.status}.`,
|
|
14035
|
+
requestId: headerRequestId,
|
|
14036
|
+
status: input.response.status,
|
|
14037
|
+
rawBody: input.raw,
|
|
14038
|
+
upstreamCode: null
|
|
14039
|
+
});
|
|
14040
|
+
}
|
|
14041
|
+
function parseJsonResponse(raw) {
|
|
14042
|
+
if (!raw.trim()) return null;
|
|
14043
|
+
try {
|
|
14044
|
+
return JSON.parse(raw);
|
|
14045
|
+
} catch {
|
|
14046
|
+
return null;
|
|
14047
|
+
}
|
|
14048
|
+
}
|
|
14049
|
+
function normalizeOptionalText(value) {
|
|
14050
|
+
const normalized = String(value ?? "").trim();
|
|
14051
|
+
return normalized.length > 0 ? normalized : null;
|
|
14052
|
+
}
|
|
14053
|
+
function toErrorMessage$1(error) {
|
|
14054
|
+
if (error instanceof Error) return normalizeOptionalText(error.message) ?? error.name;
|
|
14055
|
+
return normalizeOptionalText(error) ?? "request failed";
|
|
14056
|
+
}
|
|
14057
|
+
function formatSchemaIssuePath(issue) {
|
|
14058
|
+
const path = issue?.path;
|
|
14059
|
+
if (!path || path.length === 0) return null;
|
|
14060
|
+
return path.map((part) => String(part)).join(".");
|
|
14061
|
+
}
|
|
14062
|
+
function withInvalidResponseDiagnostics(failure, diagnostics) {
|
|
14063
|
+
if (!(diagnostics.schemaIssueMessage || diagnostics.schemaIssuePath)) return failure;
|
|
14064
|
+
return {
|
|
14065
|
+
...failure,
|
|
14066
|
+
schemaIssueMessage: diagnostics.schemaIssueMessage,
|
|
14067
|
+
schemaIssuePath: diagnostics.schemaIssuePath
|
|
14068
|
+
};
|
|
14069
|
+
}
|
|
14070
|
+
function normalizeFailureMessage(value) {
|
|
14071
|
+
return normalizeOptionalText(value) ?? "Unknown error.";
|
|
14072
|
+
}
|
|
14073
|
+
function readFailureMessage(value) {
|
|
14074
|
+
if (value instanceof Error) return normalizeOptionalText(value.message);
|
|
14075
|
+
if (typeof value === "string") return normalizeOptionalText(value);
|
|
14076
|
+
if (value && typeof value === "object" && "message" in value) {
|
|
14077
|
+
const message = value.message;
|
|
14078
|
+
return typeof message === "string" ? normalizeOptionalText(message) : null;
|
|
14079
|
+
}
|
|
14080
|
+
if (value === null || value === void 0 || typeof value === "object") return null;
|
|
14081
|
+
return normalizeOptionalText(value);
|
|
14082
|
+
}
|
|
14083
|
+
function readOptionalObjectTextField(value, fieldName) {
|
|
14084
|
+
if (!value || typeof value !== "object" || !(fieldName in value)) return null;
|
|
14085
|
+
const fieldValue = value[fieldName];
|
|
14086
|
+
return typeof fieldValue === "string" ? normalizeOptionalText(fieldValue) : null;
|
|
14087
|
+
}
|
|
14088
|
+
function readOptionalObjectStatus(value) {
|
|
14089
|
+
if (!value || typeof value !== "object" || !("status" in value)) return null;
|
|
14090
|
+
const status = value.status;
|
|
14091
|
+
return typeof status === "number" && Number.isInteger(status) ? status : null;
|
|
14092
|
+
}
|
|
14093
|
+
function readGenericErrorCode(value) {
|
|
14094
|
+
if (!value || typeof value !== "object" || !("code" in value)) return null;
|
|
14095
|
+
const normalized = normalizeOptionalText(value.code ?? null);
|
|
14096
|
+
if (!(normalized && KNOWN_API_CLIENT_ERROR_CODES.has(normalized))) return null;
|
|
14097
|
+
return normalized;
|
|
14098
|
+
}
|
|
14099
|
+
async function readAccountOrganizationContext(client) {
|
|
14100
|
+
const response = await client.requestResponse({
|
|
14101
|
+
url: ACCOUNT_ORGANIZATION_CONTEXT_PATH,
|
|
14102
|
+
method: "GET",
|
|
14103
|
+
operation: "account.organizationContext.read"
|
|
14104
|
+
});
|
|
14105
|
+
if (response.status === 401) return null;
|
|
14106
|
+
return readApiClientJsonResponse({
|
|
14107
|
+
operation: "account.organizationContext.read",
|
|
14108
|
+
response,
|
|
14109
|
+
schema: accountOrganizationContextSchema,
|
|
14110
|
+
invalidMessage: "Invalid account Organization context response."
|
|
14111
|
+
});
|
|
14112
|
+
}
|
|
14113
|
+
async function readAccountSession(client) {
|
|
14114
|
+
const response = await client.requestResponse({
|
|
14115
|
+
url: ACCOUNT_SESSION_PATH,
|
|
14116
|
+
method: "GET",
|
|
14117
|
+
operation: "account.session.read"
|
|
14118
|
+
});
|
|
14119
|
+
if (response.status === 401) return null;
|
|
14120
|
+
return readApiClientJsonResponse({
|
|
14121
|
+
operation: "account.session.read",
|
|
14122
|
+
response,
|
|
14123
|
+
schema: accountSessionSchema,
|
|
14124
|
+
invalidMessage: "Invalid account session response."
|
|
14125
|
+
});
|
|
14126
|
+
}
|
|
13792
14127
|
const TRAILING_SLASHES_REGEX = /\/+$/;
|
|
13793
14128
|
const ROOT_PATH_REGEX = /^\/+$/;
|
|
13794
14129
|
function normalizeApiBaseUrl(baseUrl) {
|
|
@@ -14209,6 +14544,23 @@ const createAgentProfileBindingApi = (client) => {
|
|
|
14209
14544
|
}
|
|
14210
14545
|
};
|
|
14211
14546
|
};
|
|
14547
|
+
function createAgentProfileExecutionModeApi(client) {
|
|
14548
|
+
return { readOrUpdate(input) {
|
|
14549
|
+
const body = input.mode === void 0 ? void 0 : updateAgentProfileExecutionModeBodySchema.parse({ mode: input.mode });
|
|
14550
|
+
return client.requestJson({
|
|
14551
|
+
url: `/v1/agent-profiles/${encodeURIComponent(input.agentProfileId)}/execution-mode`,
|
|
14552
|
+
method: body ? "PATCH" : "GET",
|
|
14553
|
+
...body ? {
|
|
14554
|
+
body: JSON.stringify(body),
|
|
14555
|
+
headers: { "content-type": "application/json" }
|
|
14556
|
+
} : {},
|
|
14557
|
+
schema: agentProfileExecutionModeResponseSchema,
|
|
14558
|
+
requestContext: input.requestContext,
|
|
14559
|
+
operation: "agent_profile.execution_mode",
|
|
14560
|
+
invalidMessage: "Invalid Agent Profile execution mode response."
|
|
14561
|
+
});
|
|
14562
|
+
} };
|
|
14563
|
+
}
|
|
14212
14564
|
function buildAgentProfileWorkRecoveryRoute(agentProfileId) {
|
|
14213
14565
|
return `/v1/agent-profiles/${encodeURIComponent(agentProfileId)}/work-recovery`;
|
|
14214
14566
|
}
|
|
@@ -14650,196 +15002,18 @@ function buildAuditJournalUrl(input) {
|
|
|
14650
15002
|
if (input.actionSet !== void 0) url.searchParams.set("actionSet", input.actionSet);
|
|
14651
15003
|
return `${url.pathname}${url.search}`;
|
|
14652
15004
|
}
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
code;
|
|
14664
|
-
requestId;
|
|
14665
|
-
status;
|
|
14666
|
-
rawBody;
|
|
14667
|
-
upstreamCode;
|
|
14668
|
-
constructor(input) {
|
|
14669
|
-
super(input.message);
|
|
14670
|
-
this.name = "OpenMeldApiClientHttpError";
|
|
14671
|
-
this.code = input.code;
|
|
14672
|
-
this.requestId = normalizeOptionalText(input.requestId);
|
|
14673
|
-
this.status = input.status;
|
|
14674
|
-
this.rawBody = input.rawBody;
|
|
14675
|
-
this.upstreamCode = normalizeOptionalText(input.upstreamCode);
|
|
14676
|
-
}
|
|
14677
|
-
};
|
|
14678
|
-
var OpenMeldApiClientInvalidResponseError = class extends Error {
|
|
14679
|
-
code = INVALID_RESPONSE_ERROR_CODE;
|
|
14680
|
-
operation;
|
|
14681
|
-
requestId;
|
|
14682
|
-
status;
|
|
14683
|
-
rawBody;
|
|
14684
|
-
schemaIssueMessage;
|
|
14685
|
-
schemaIssuePath;
|
|
14686
|
-
upstreamCode = null;
|
|
14687
|
-
constructor(input) {
|
|
14688
|
-
super(input.message);
|
|
14689
|
-
this.name = "OpenMeldApiClientInvalidResponseError";
|
|
14690
|
-
this.operation = input.operation;
|
|
14691
|
-
this.requestId = normalizeOptionalText(input.requestId);
|
|
14692
|
-
this.status = input.status;
|
|
14693
|
-
this.rawBody = input.rawBody;
|
|
14694
|
-
this.schemaIssueMessage = normalizeOptionalText(input.schemaIssue?.message);
|
|
14695
|
-
this.schemaIssuePath = formatSchemaIssuePath(input.schemaIssue);
|
|
14696
|
-
}
|
|
14697
|
-
};
|
|
14698
|
-
function toStructuredApiClientFailure(error) {
|
|
14699
|
-
if (error instanceof OpenMeldApiClientHttpError) return {
|
|
14700
|
-
code: error.code,
|
|
14701
|
-
message: normalizeFailureMessage(error.message),
|
|
14702
|
-
requestId: error.requestId,
|
|
14703
|
-
status: error.status,
|
|
14704
|
-
upstreamCode: error.upstreamCode
|
|
14705
|
-
};
|
|
14706
|
-
if (error instanceof OpenMeldApiClientInvalidResponseError) return withInvalidResponseDiagnostics({
|
|
14707
|
-
code: error.code,
|
|
14708
|
-
message: normalizeFailureMessage(error.message),
|
|
14709
|
-
requestId: error.requestId,
|
|
14710
|
-
status: error.status,
|
|
14711
|
-
upstreamCode: null
|
|
14712
|
-
}, {
|
|
14713
|
-
schemaIssueMessage: error.schemaIssueMessage,
|
|
14714
|
-
schemaIssuePath: error.schemaIssuePath
|
|
14715
|
-
});
|
|
14716
|
-
return withInvalidResponseDiagnostics({
|
|
14717
|
-
code: readGenericErrorCode(error),
|
|
14718
|
-
message: normalizeFailureMessage(readFailureMessage(error)),
|
|
14719
|
-
requestId: readOptionalObjectTextField(error, "requestId"),
|
|
14720
|
-
status: readOptionalObjectStatus(error),
|
|
14721
|
-
upstreamCode: readOptionalObjectTextField(error, "upstreamCode")
|
|
14722
|
-
}, {
|
|
14723
|
-
schemaIssueMessage: readOptionalObjectTextField(error, "schemaIssueMessage"),
|
|
14724
|
-
schemaIssuePath: readOptionalObjectTextField(error, "schemaIssuePath")
|
|
14725
|
-
});
|
|
14726
|
-
}
|
|
14727
|
-
function readApiClientTextResponse(input) {
|
|
14728
|
-
return input.response.text().then((raw) => {
|
|
14729
|
-
assertApiClientResponseOk({
|
|
14730
|
-
response: input.response,
|
|
14731
|
-
raw
|
|
14732
|
-
});
|
|
14733
|
-
return raw;
|
|
14734
|
-
});
|
|
14735
|
-
}
|
|
14736
|
-
async function readApiClientJsonResponse(input) {
|
|
14737
|
-
let raw;
|
|
14738
|
-
try {
|
|
14739
|
-
raw = await input.response.text();
|
|
14740
|
-
} catch (error) {
|
|
14741
|
-
const bodyReadError = new Error(toErrorMessage$1(error), { cause: error });
|
|
14742
|
-
bodyReadError.code = "network.request_failed";
|
|
14743
|
-
bodyReadError.status = input.response.status;
|
|
14744
|
-
throw bodyReadError;
|
|
14745
|
-
}
|
|
14746
|
-
assertApiClientResponseOk({
|
|
14747
|
-
response: input.response,
|
|
14748
|
-
raw
|
|
14749
|
-
});
|
|
14750
|
-
const parsed = input.schema.safeParse(parseJsonResponse(raw));
|
|
14751
|
-
if (!parsed.success) throw new OpenMeldApiClientInvalidResponseError({
|
|
14752
|
-
message: input.invalidMessage,
|
|
14753
|
-
operation: input.operation,
|
|
14754
|
-
requestId: input.response.headers.get(OPENMELD_HEADER_REQUEST_ID),
|
|
14755
|
-
status: input.response.status,
|
|
14756
|
-
rawBody: raw,
|
|
14757
|
-
schemaIssue: parsed.error?.issues?.[0] ?? null
|
|
14758
|
-
});
|
|
14759
|
-
return parsed.data;
|
|
14760
|
-
}
|
|
14761
|
-
function assertApiClientResponseOk(input) {
|
|
14762
|
-
if (input.response.ok) return;
|
|
14763
|
-
throw parseApiClientErrorResponse(input);
|
|
14764
|
-
}
|
|
14765
|
-
function parseApiClientErrorResponse(input) {
|
|
14766
|
-
const parsed = gatewayErrorEnvelopeSchema.safeParse(parseJsonResponse(input.raw));
|
|
14767
|
-
const headerRequestId = normalizeOptionalText(input.response.headers.get(OPENMELD_HEADER_REQUEST_ID));
|
|
14768
|
-
if (parsed.success) return new OpenMeldApiClientHttpError({
|
|
14769
|
-
code: parsed.data.error.code,
|
|
14770
|
-
message: parsed.data.error.message,
|
|
14771
|
-
requestId: parsed.data.error.requestId || headerRequestId,
|
|
14772
|
-
status: input.response.status,
|
|
14773
|
-
rawBody: input.raw,
|
|
14774
|
-
upstreamCode: parsed.data.error.upstreamCode ?? null
|
|
14775
|
-
});
|
|
14776
|
-
return new OpenMeldApiClientHttpError({
|
|
14777
|
-
code: FALLBACK_GATEWAY_HTTP_ERROR_CODE,
|
|
14778
|
-
message: normalizeOptionalText(input.raw) ?? `Gateway request failed with HTTP ${input.response.status}.`,
|
|
14779
|
-
requestId: headerRequestId,
|
|
14780
|
-
status: input.response.status,
|
|
14781
|
-
rawBody: input.raw,
|
|
14782
|
-
upstreamCode: null
|
|
15005
|
+
async function readCliRelease(client) {
|
|
15006
|
+
return readApiClientJsonResponse({
|
|
15007
|
+
response: await client.requestResponse({
|
|
15008
|
+
url: CLI_RELEASE_PATH,
|
|
15009
|
+
method: "GET",
|
|
15010
|
+
operation: "cli.release.read"
|
|
15011
|
+
}),
|
|
15012
|
+
operation: "cli.release.read",
|
|
15013
|
+
schema: cliReleaseSchema,
|
|
15014
|
+
invalidMessage: "Invalid CLI release response."
|
|
14783
15015
|
});
|
|
14784
15016
|
}
|
|
14785
|
-
function parseJsonResponse(raw) {
|
|
14786
|
-
if (!raw.trim()) return null;
|
|
14787
|
-
try {
|
|
14788
|
-
return JSON.parse(raw);
|
|
14789
|
-
} catch {
|
|
14790
|
-
return null;
|
|
14791
|
-
}
|
|
14792
|
-
}
|
|
14793
|
-
function normalizeOptionalText(value) {
|
|
14794
|
-
const normalized = String(value ?? "").trim();
|
|
14795
|
-
return normalized.length > 0 ? normalized : null;
|
|
14796
|
-
}
|
|
14797
|
-
function toErrorMessage$1(error) {
|
|
14798
|
-
if (error instanceof Error) return normalizeOptionalText(error.message) ?? error.name;
|
|
14799
|
-
return normalizeOptionalText(error) ?? "request failed";
|
|
14800
|
-
}
|
|
14801
|
-
function formatSchemaIssuePath(issue) {
|
|
14802
|
-
const path = issue?.path;
|
|
14803
|
-
if (!path || path.length === 0) return null;
|
|
14804
|
-
return path.map((part) => String(part)).join(".");
|
|
14805
|
-
}
|
|
14806
|
-
function withInvalidResponseDiagnostics(failure, diagnostics) {
|
|
14807
|
-
if (!(diagnostics.schemaIssueMessage || diagnostics.schemaIssuePath)) return failure;
|
|
14808
|
-
return {
|
|
14809
|
-
...failure,
|
|
14810
|
-
schemaIssueMessage: diagnostics.schemaIssueMessage,
|
|
14811
|
-
schemaIssuePath: diagnostics.schemaIssuePath
|
|
14812
|
-
};
|
|
14813
|
-
}
|
|
14814
|
-
function normalizeFailureMessage(value) {
|
|
14815
|
-
return normalizeOptionalText(value) ?? "Unknown error.";
|
|
14816
|
-
}
|
|
14817
|
-
function readFailureMessage(value) {
|
|
14818
|
-
if (value instanceof Error) return normalizeOptionalText(value.message);
|
|
14819
|
-
if (typeof value === "string") return normalizeOptionalText(value);
|
|
14820
|
-
if (value && typeof value === "object" && "message" in value) {
|
|
14821
|
-
const message = value.message;
|
|
14822
|
-
return typeof message === "string" ? normalizeOptionalText(message) : null;
|
|
14823
|
-
}
|
|
14824
|
-
if (value === null || value === void 0 || typeof value === "object") return null;
|
|
14825
|
-
return normalizeOptionalText(value);
|
|
14826
|
-
}
|
|
14827
|
-
function readOptionalObjectTextField(value, fieldName) {
|
|
14828
|
-
if (!value || typeof value !== "object" || !(fieldName in value)) return null;
|
|
14829
|
-
const fieldValue = value[fieldName];
|
|
14830
|
-
return typeof fieldValue === "string" ? normalizeOptionalText(fieldValue) : null;
|
|
14831
|
-
}
|
|
14832
|
-
function readOptionalObjectStatus(value) {
|
|
14833
|
-
if (!value || typeof value !== "object" || !("status" in value)) return null;
|
|
14834
|
-
const status = value.status;
|
|
14835
|
-
return typeof status === "number" && Number.isInteger(status) ? status : null;
|
|
14836
|
-
}
|
|
14837
|
-
function readGenericErrorCode(value) {
|
|
14838
|
-
if (!value || typeof value !== "object" || !("code" in value)) return null;
|
|
14839
|
-
const normalized = normalizeOptionalText(value.code ?? null);
|
|
14840
|
-
if (!(normalized && KNOWN_API_CLIENT_ERROR_CODES.has(normalized))) return null;
|
|
14841
|
-
return normalized;
|
|
14842
|
-
}
|
|
14843
15017
|
const RESERVED_HEADERS = new Set([
|
|
14844
15018
|
"authorization",
|
|
14845
15019
|
OPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID,
|
|
@@ -14947,6 +15121,19 @@ function normalizeHeaderRecord(headers) {
|
|
|
14947
15121
|
}
|
|
14948
15122
|
return normalized;
|
|
14949
15123
|
}
|
|
15124
|
+
/** The authenticated client's explicit connection action approves an independent Computer session. */
|
|
15125
|
+
async function createComputerAuthorizationGrant(request) {
|
|
15126
|
+
const codeResult = betterAuthDeviceAuthorizationCodeResponseSchema.safeParse(await request("/device/code", "POST", betterAuthDeviceAuthorizationCodeRequestSchema.parse({ client_id: "openmeld-cli" })));
|
|
15127
|
+
if (!codeResult.success) throw new Error("Auth returned an invalid computer authorization response.");
|
|
15128
|
+
const code = codeResult.data;
|
|
15129
|
+
if (!betterAuthDeviceAuthorizationClaimResponseSchema.safeParse(await request(`/device?user_code=${encodeURIComponent(code.user_code)}`, "GET")).success) throw new Error("Auth returned an invalid computer authorization claim.");
|
|
15130
|
+
const approval = betterAuthDeviceAuthorizationDecisionResponseSchema.safeParse(await request("/device/approve", "POST", betterAuthDeviceAuthorizationDecisionRequestSchema.parse({ userCode: code.user_code })));
|
|
15131
|
+
if (!(approval.success && approval.data.success)) throw new Error("Auth did not approve this computer authorization.");
|
|
15132
|
+
return {
|
|
15133
|
+
deviceCode: code.device_code,
|
|
15134
|
+
expiresIn: code.expires_in
|
|
15135
|
+
};
|
|
15136
|
+
}
|
|
14950
15137
|
const CURRENT_COMPUTER_FILE_ACCESS_PATH = "/v1/local-runtimes/current/file-access";
|
|
14951
15138
|
function buildComputerFileAccessReadPath(expectedDeviceId) {
|
|
14952
15139
|
const searchParams = new URLSearchParams({ expectedDeviceId });
|
|
@@ -18501,6 +18688,7 @@ function buildPostNormalMessageBody(input) {
|
|
|
18501
18688
|
return {
|
|
18502
18689
|
text: input.text,
|
|
18503
18690
|
...input.deviceWait ? { deviceWait: input.deviceWait } : {},
|
|
18691
|
+
...input.contextSelection ? { contextSelection: input.contextSelection } : {},
|
|
18504
18692
|
...input.attachments ? { attachments: input.attachments } : {},
|
|
18505
18693
|
...input.files ? { files: input.files } : {},
|
|
18506
18694
|
...input.messageEnvelope ? { messageEnvelope: input.messageEnvelope } : {},
|
|
@@ -18868,13 +19056,14 @@ async function readOrUpdateSpaceMessagePins(client, input) {
|
|
|
18868
19056
|
}
|
|
18869
19057
|
function createFetchTransport(input) {
|
|
18870
19058
|
const defaultTimeoutMs = normalizeOptionalTimeoutMs(input.defaultTimeoutMs);
|
|
19059
|
+
const fetchImpl = input.fetch;
|
|
18871
19060
|
return async function fetchTransport(request) {
|
|
18872
19061
|
const timeoutMs = normalizeOptionalTimeoutMs(request.timeoutMs) ?? defaultTimeoutMs;
|
|
18873
19062
|
const timeoutSignal = timeoutMs === void 0 ? null : AbortSignal.timeout(timeoutMs);
|
|
18874
19063
|
const signals = [request.init?.signal, timeoutSignal].filter((signal) => signal != null);
|
|
18875
19064
|
const signal = signals.length > 1 ? AbortSignal.any(signals) : signals[0];
|
|
18876
19065
|
try {
|
|
18877
|
-
return await
|
|
19066
|
+
return await fetchImpl(request.url, {
|
|
18878
19067
|
...request.init,
|
|
18879
19068
|
signal
|
|
18880
19069
|
});
|
|
@@ -18929,6 +19118,6 @@ function shouldWrapNetworkRequestError(error) {
|
|
|
18929
19118
|
return message.includes("fetch failed") || message.includes("failed to fetch") || message.includes("network request failed");
|
|
18930
19119
|
}
|
|
18931
19120
|
//#endregion
|
|
18932
|
-
export { buildLocalFolderPickerPath as $,
|
|
19121
|
+
export { buildLocalFolderPickerPath as $, spaceDispatchTraceDispatchStatusSchema as $n, spaceMemberDirectoryEntrySchema as $r, createPrepareReadinessApi as $t, buildCurrentOrganizationDirectoryPath as A, uploadSpaceFile as An, organizationComputersResponseSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, OPENMELD_HEADER_REQUEST_ID as Bn, AGENT_ACTIVITY_EVENT_MAX_BYTES as Br, createDirectMessageApi as Bt, buildCenterAgentSessionPath as C, OPENMELD_RUNTIME_CAPABILITIES_HEADER as Ci, setSpaceAccessMode as Cn, getOrganizationSkillResponseSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, signalTextEnvelopeSchema as Di, updateSpaceFileEntry as Dn, organizationSkillSummarySchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, computerFileAccessPolicySchema as Ei, updateSpaceFileContent as En, organizationSkillReleaseSummarySchema as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, parseIncoming as Fn, listCenterAgentRoutineRunsResponseSchema as Fr, createCenterAgentApi as Ft, buildFeedbackIssueSubmissionPath as G, spaceEntryTargetSchema as Gn, agentActivitySnapshotQuerySchema as Gr, createLocalProjectControlApi as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, buildOpenMeldRequestContextHeaders as Hn, agentActivityEventSchema as Hr, createFetchTransport as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, parseServerErrorFrame as In, listCenterAgentRoutinesResponseSchema as Ir, createComputerAuthorizationGrant as It, buildInboxItemReadPath as J, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as Jn, postSpaceMembersResponseSchema as Jr, createOrganizationApi as Jt, buildInboxItemDismissPath as K, pluginActionRequestSchema as Kn, agentActivitySnapshotResponseSchema as Kr, createLocalRuntimeExpectedRoutesApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, resolveCustomMentionAliasOverride as Ln, pauseCenterAgentRoutineResponseSchema as Lr, createComputerFileAccessApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, DAEMON_STREAM_KEEPALIVE_PONG as Mn, submitFeedbackIssueResponseSchema as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, MAX_TEXT_LENGTH as Nn, createCenterAgentRoutineResponseSchema as Nr, createAgentProfileExecutionModeApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, toCompatibleSpaceAddressingRequestWireValue as Oi, updateSpaceMeta as On, stringifyOrganizationSkillBundleCanonicalJson as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, parseEnvelope as Pn, deleteCenterAgentRoutineResponseSchema as Pr, createAgentProfileWorkRecoveryApi as Pt, buildInboxSummaryPath as Q, spaceDispatchTraceAttemptStatusSchema as Qn, spaceMemberDirectoryAllowedRelationsSchema as Qr, createPluginsApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, OPENMELD_HEADER_PROFILE_ID as Rn, resumeCenterAgentRoutineResponseSchema as Rr, createConfigApi as Rt, buildCenterAgentProfilePath as S, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as Si, resolveProfileSpaceHistoryGatewayHost as Sn, spaceMetaSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, computerFileAccessPolicyInputSchema as Ti, trashSpaceFileEntry as Tn, organizationSkillBundleSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, toErrorMessage$2 as Un, agentActivityProviderSchema as Ur, createInboxApi as Ut, buildCurrentOrganizationSpacesPath as V, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Vn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Vr, createFeedbackApi as Vt, buildDirectMessageSpacePath as W, getSpaceUpdatesResponseSchema as Wn, agentActivitySessionStatusSchema as Wr, createLocalFolderPickerApi as Wt, buildInboxPath as X, resolveRuntimeCoordinatorHeadStatusRootCause as Xn, resolvedSpaceMemberProfileSchema as Xr, createOrganizationSkillsApi as Xt, buildInboxMarkAllReadPath as Y, projectSpaceDispatchTraceFinalVisibleOutcome as Yn, removeSpaceMembersResponseSchema as Yr, createOrganizationDocumentsApi as Yt, buildInboxPreferencesPath as Z, resolveSpaceDispatchTraceRootCause as Zn, spaceMemberAgentWakeAvailabilitySchema as Zr, createOrganizationUsageApi as Zt, buildCenterAgentDirectMessageSpacePath as _, archiveProjectResponseSchema as _i, readAccountSession as _n, gatewayErrorEnvelopeSchema as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, agentActivitySessionInventoryResponseSchema as ai, createRuntimeReportingApi as an, projectOwnerComputerLocalRuntimes as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, projectSchema as bi, readOrUpdateSpaceMessagePins as bn, resolveInitialSpaceAccessMode as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, centerAgentToolSpeakerSchema as ci, createSpaceFolder as cn, betterAuthDeviceAuthorizationCodeRequestSchema as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, agentControllerCollaborationModeSchema as di, getSpaceFile as dn, betterAuthDeviceAuthorizationTokenRequestSchema as dr, buildOrganizationSkillsPath as dt, spaceMemberDirectorySchema as ei, createProfileSpaceHistoryApi as en, spaceDispatchTraceResponseSchema as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, serviceConnectionEvidenceEventSchema as fi, listSpaceFileRevisions as fn, betterAuthDeviceAuthorizationTokenResponseSchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, localProjectControlDiscoverProjectsResponseSchema as gi, readAccountOrganizationContext as gn, createAgentProfileCreationRequestBodySchema as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, localProjectControlDaemonFrameSchema as hi, publicSpaceUrls as hn, agentProfileCreationConfigurationSchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, agentActivitySessionInventoryQuerySchema as ii, createRoutinesApi as in, ownerComputerDiagnosticsSchema as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, DAEMON_STREAM_KEEPALIVE_PING as jn, submitFeedbackIssueRequestSchema as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, uploadSpaceAttachment as kn, organizationDirectoryResponseSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, openCodePermissionConfigSchema as li, downloadSpaceFileContent as ln, betterAuthDeviceAuthorizationCodeResponseSchema as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, localProjectControlConnectionSchema as mi, normalizeApiBaseUrl as mn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivityInventorySessionOriginSchema as ni, createProjectsApi as nn, projectObservabilityWakeCorrelation as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, localAgentSessionProviderSchema as oi, createServiceConnectionEvidenceApi as on, summarizeComputerFileAccessPolicy as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, serviceConnectionEvidenceJournalSchema as pi, listSpaceFiles as pn, betterAuthSessionSnapshotResponseSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as qn, leaveSpaceResponseSchema as qr, createOpenMeldApiClient as qt, buildAccountSpaceActiveWakeSummaryPath as r, agentActivityInventorySessionStatusSchema as ri, createReasoningStreamApi as rn, submitAgentControllerTaskLifecycleEventItemSchema as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, observedLocalAgentSessionSchema as si, createSpaceApi as sn, BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, spaceMemberKindSchema as ti, createProfilesApi as tn, observabilityWakeTraceSelectorSchema as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, agentControllerPermissionModeSchema as ui, getModelCatalog as un, betterAuthDeviceAuthorizationErrorResponseSchema as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, createProjectResponseSchema as vi, readCliRelease as vn, modelCatalogSchema as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, computerFileAccessDaemonFrameSchema as wi, toStructuredApiClientFailure as wn, listOrganizationSkillsResponseSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, updateProjectResponseSchema as xi, resolveAccountSpaceIndexGatewayHost as xn, spaceCreatorSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, listProjectsResponseSchema as yi, readOrUpdateSpaceFilePins as yn, organizationSpaceDirectoryWithMemberCountsResponseSchema as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as zn, updateCenterAgentRoutineResponseSchema as zr, createCurrentDeviceApi as zt };
|
|
18933
19122
|
|
|
18934
|
-
//# sourceMappingURL=dist-
|
|
19123
|
+
//# sourceMappingURL=dist-B8I8inkY.js.map
|