openmeld 0.3.206 → 0.3.207
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-1JHMjZoR.js} +2 -2
- package/dist/{add-me-membership-BkHWMxE4.js.map → add-me-membership-1JHMjZoR.js.map} +1 -1
- package/dist/{agents-BOTlKiwS.js → agents-CIDsThyG.js} +150 -108
- package/dist/agents-CIDsThyG.js.map +1 -0
- package/dist/{api-client-foundation-6ms5gSu8.js → api-client-foundation-D6_NXHPV.js} +1 -1
- package/dist/{api-client-foundation-DpgDs0rw.js → api-client-foundation-DSurenul.js} +3 -3
- package/dist/{api-client-foundation-DpgDs0rw.js.map → api-client-foundation-DSurenul.js.map} +1 -1
- package/dist/auth-session-B7QMhHwh.js +4 -0
- package/dist/{auth-session-BjSqMLTz.js → auth-session-CO5XtFaq.js} +266 -75
- package/dist/auth-session-CO5XtFaq.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-Bzt9zgnI.js} +13 -11
- package/dist/{command-CkbzbvXy.js.map → command-Bzt9zgnI.js.map} +1 -1
- package/dist/computer-connection-BOl79Ftf.js +54 -0
- package/dist/computer-connection-BOl79Ftf.js.map +1 -0
- package/dist/computer-connection-review-BTOvbJYL.js +39 -0
- package/dist/computer-connection-review-BTOvbJYL.js.map +1 -0
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js → computer-setup-continuation-DmKdhR5u.js} +4 -4
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js.map → computer-setup-continuation-DmKdhR5u.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-DQW9gSLT.js +3642 -0
- package/dist/daemon-service-runtime-DQW9gSLT.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-D-kJdWZE.js} +726 -579
- package/dist/dist-D-kJdWZE.js.map +1 -0
- package/dist/dist-DTG_Vqc7.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-CcoM2R3N.js} +7 -4
- package/dist/{elapsed-time-C7P-nWIO.js.map → elapsed-time-CcoM2R3N.js.map} +1 -1
- package/dist/{installation-inventory-P49sTjhe.js → installation-inventory-DJlwXa1q.js} +7 -6
- package/dist/{installation-inventory-P49sTjhe.js.map → installation-inventory-DJlwXa1q.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-CiL4AiB0.js} +226 -21
- package/dist/openmeld-CiL4AiB0.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-DjdmRASI.js} +9 -8
- package/dist/{openmeld-maintenance-worker-C7WykyDt.js.map → openmeld-maintenance-worker-DjdmRASI.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-BBZhGo1A.js → openmeld-tools-update-coordinator-D9Skj8IE.js} +52 -4013
- package/dist/openmeld-tools-update-coordinator-D9Skj8IE.js.map +1 -0
- package/dist/openmeld.js +3 -3
- package/dist/{prepare-session-executor-CLmDoHom.js → prepare-session-executor-B0NtjHEL.js} +15 -13
- package/dist/{prepare-session-executor-CLmDoHom.js.map → prepare-session-executor-B0NtjHEL.js.map} +1 -1
- package/dist/{profiles-BCecj4Pj.js → runtime-transport-QIZmAo4-.js} +936 -2127
- package/dist/runtime-transport-QIZmAo4-.js.map +1 -0
- package/dist/service-account-authorization-Dt8kGvq8.js +56 -0
- package/dist/service-account-authorization-Dt8kGvq8.js.map +1 -0
- package/dist/service-control-capabilities-BU5F75zi.js +54 -0
- package/dist/service-control-capabilities-BU5F75zi.js.map +1 -0
- package/dist/service-control-capabilities-CzUB1ovW.js +4 -0
- package/dist/upgrade-DLECkjMt.js +4 -0
- package/dist/{upgrade-l_5Tge_z.js → upgrade-NxpTydHp.js} +6 -4
- package/dist/upgrade-NxpTydHp.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/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 stageSpaceComposerUploadResponseSchema, An as SPACE_FILE_MAX_SIZE_BYTES, At as organizationInformationProtectionPolicyResponseSchema, Cn as centerAgentInteractionSourceSchema, Ct as runtimeCoordinatorExecutionRecordSchema, Dn as spaceMentionLabelSchema, Dr as START_BOUNDED_ID_SCHEMA, Dt as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, Er as openMeldWebUrlSchema, Et as spaceTraceExecutionIdentityProjectionSchema, Ft as inspectExecutionRecoveryResponseSchema, Gn as spaceFileActorSchema, H as openMeldDaemonProviderAccessEvidenceProviderSchema, Hn as restoreSpaceFileRevisionResponseSchema, Hr as updateAgentProfileDefaultProjectBodySchema, Ht as localFolderPickerRequestSchema, In as listSpaceFileRevisionsResponseSchema, It as agentProfileWorkRecoveryActionKindSchema, Jn as spaceFileEntryIdSchema, Kn as spaceFileClientMutationIdSchema, Kr as openMeldRequestContextSchema, L as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Ln as listSpaceFilesResponseSchema, Mn as createSpaceFolderResponseSchema, Mr as localAgentCatalogLaunchStatusSchema, Mt as updateOrganizationInformationProtectionPolicyBodySchema, Nn as discardSpaceComposerUploadResponseSchema, Nt as executeExecutionRecoveryBodySchema, On as spaceMentionLabelSourceSchema, Ot as normalizeSpacePasswordText, Pn as getSpaceFileResponseSchema, Pr as localAgentCatalogWithLifecycleSchema, Pt as executeExecutionRecoveryResponseSchema, Q as agentTaskCompletionObservationSchema, Qn as spaceMessageFileReferencesSchema, Rn as publishSpaceComposerUploadResponseSchema, Rr as authProfileManagedRoleSchema, Sn as conversationCompactionMarkerSchema, St as runtimeCoordinatorExecutionEventSchema, Tr as openMeldNavigationTargetSchema, Un as spaceComposerUploadDescriptorSchema, Ur as updateAgentProfileDefaultProjectResponseSchema, Ut as localFolderPickerResultSchema, V as openMeldDaemonOriginalErrorSchema, Vn as restoreSpaceFileEntryResponseSchema, Wn as spaceComposerUploadIdSchema, Wr as updateProfileResponseSchema, Wt as localFolderPathSchema, X as agentDelegationSnapshotSchema, Xn as spaceFileNameSchema, Y as spaceCallerContextSchema, Yn as spaceFileMimeTypeSchema, Z as agentTaskCompletionConditionSchema, _r as spaceThreadSchema, an as signalTextDataSchema, ar as AGENT_STREAM_SNAPSHOT_MAX_CHARS, bt as postSpaceWakeStopResponseSchema, cn as spaceAttachmentDescriptorSchema, cr as spaceAgentStreamPartFrameSchema, ct as spaceAllowedActionsSchema, dn as spaceAttachmentMimeTypeSchema, dr as spaceAgentStreamTerminalFrameSchema, dt as workingLanguageGuidanceSchema, er as trashSpaceFileEntryResponseSchema, et as agentTaskTerminalOutcomeSchema, fn as spaceAttachmentSizeBytesSchema, ft as workingLanguageTagSchema, gr as spaceThreadEventSchema, hr as spaceThreadContextSchema, ht as agentInteractionPendingSummarySchema, in as signalSystemNoticeDataSchema, it as spaceWakeAgentTaskHandleSchema, jt as organizationProtectedInformationSchema, kn as SPACE_FILE_ERROR_CODES, kt as spacePasswordSchema, ln as spaceAttachmentDimensionSchema, lr as spaceAgentStreamPresenceSchema, lt as spacePublicationModeSchema, mn as spaceMessageAttachmentsSchema, mr as localAgentReasoningPreferencesSchema, n as daemonExecutionCompatibilitySchema, nr as uploadSpaceFileResponseSchema, nt as buildAgentTaskKey, on as signalTextSchema, or as agentStreamToolPartSchema, pn as spaceMessageAttachmentSchema, pt as targetWakeLifecycleIdentitySchema, q as openMeldDaemonTaskResultProjectFailureContextSchema, qn as spaceFileDescriptorSchema, qr as MAX_TEXT_LENGTH$1, rn as signalStatusDataSchema, rr as clientMessageIdSchema$1, rt as controllerAgentTaskHandleSchema, sn as wakeDeviceWaitTargetSchema, sr as spaceAgentStreamDeltaFrameSchema, st as resultArchivePolicySchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tr as updateSpaceFileEntryResponseSchema, tt as areAgentTaskTerminalOutcomesEqual, un as spaceAttachmentFileNameSchema, ur as spaceAgentStreamSnapshotSchema, ut as spaceDispatchPolicySchema, vr as spaceThreadSignalPlacementSchema, vt as agentInteractionResponseSchema, wr as computerSetupModeSchema, xt as runtimeCoordinatorExecutionCreationDiagnosticSchema, yn as messageEnvelopeSchema, yt as postSpaceWakeStopBodySchema, zr as authProfileViewSchema } from "./runtime-transport-QIZmAo4-.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,41 @@ 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({
|
|
2869
3047
|
agentExecutionReadiness: agentExecutionReadinessSchema,
|
|
2870
3048
|
agentWakeAvailability: agentWakeAvailabilitySchema,
|
|
2871
3049
|
agentWakeRouteRegistration: agentWakeRouteRegistrationSchema,
|
|
2872
3050
|
agentProfileId: agentProfileIdSchema,
|
|
2873
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
2874
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
2875
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3051
|
+
agentControllerRef: nullableTrimmedStringSchema$8,
|
|
3052
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$13,
|
|
3053
|
+
ownerUserId: nullableTrimmedStringSchema$8,
|
|
2876
3054
|
primaryBinding: agentProfileBindingProjectionSchema.nullable().optional(),
|
|
2877
3055
|
primaryActionPlan: agentExecutionReadinessPrimaryActionPlanSchema,
|
|
2878
|
-
profileName: nullableTrimmedStringSchema$
|
|
3056
|
+
profileName: nullableTrimmedStringSchema$8,
|
|
2879
3057
|
publicProfileConfiguration: strictObject({
|
|
2880
3058
|
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.nullable(),
|
|
2881
3059
|
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.nullable(),
|
|
2882
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3060
|
+
agentControllerRef: nullableTrimmedStringSchema$8,
|
|
2883
3061
|
modelSelection: agentProfileBindingModelSelectionSchema.nullable()
|
|
2884
3062
|
}).optional(),
|
|
2885
|
-
routeDeviceId: nullableTrimmedStringSchema$
|
|
3063
|
+
routeDeviceId: nullableTrimmedStringSchema$8,
|
|
2886
3064
|
routeLane: union([daemonServiceLaneSchema, nullFactory()]),
|
|
2887
|
-
runtimeDeviceDisplayName: nullableTrimmedStringSchema$
|
|
3065
|
+
runtimeDeviceDisplayName: nullableTrimmedStringSchema$8,
|
|
2888
3066
|
wakeRouteEvidence: wakeRouteEvidenceSchema,
|
|
2889
3067
|
wakeRouteStatus: wakeRouteStatusSchema
|
|
2890
3068
|
});
|
|
2891
3069
|
const getAgentExecutionReadinessBatchResponseSchema = strictObject({ items: array(getAgentExecutionReadinessResponseSchema) });
|
|
2892
3070
|
//#endregion
|
|
2893
3071
|
//#region ../../packages/schemas/dist/schemas/http/space-members.js
|
|
2894
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
3072
|
+
const ISO_DATE_TIME_SCHEMA$12 = iso.datetime({ offset: true });
|
|
2895
3073
|
const MAX_SPACE_MEMBERS_BATCH_SIZE = 100;
|
|
2896
|
-
const trimmedNonEmptyStringSchema$
|
|
3074
|
+
const trimmedNonEmptyStringSchema$14 = string().trim().min(1);
|
|
2897
3075
|
const profileIdSchema = openMeldRuntimeProfileIdSchema;
|
|
2898
|
-
const nullableTrimmedStringSchema$
|
|
3076
|
+
const nullableTrimmedStringSchema$7 = union([trimmedNonEmptyStringSchema$14, nullFactory()]);
|
|
2899
3077
|
const nullableRuntimeProfileIdSchema = union([profileIdSchema, nullFactory()]);
|
|
2900
|
-
const nullableIsoDateTimeSchema$
|
|
3078
|
+
const nullableIsoDateTimeSchema$5 = union([ISO_DATE_TIME_SCHEMA$12, nullFactory()]);
|
|
2901
3079
|
const retiredAgentSnapshotKeys = /* @__PURE__ */ new Set([
|
|
2902
3080
|
"agentExecutionReadiness",
|
|
2903
3081
|
"daemonRouteObservation",
|
|
@@ -2950,33 +3128,33 @@ const spaceMemberAgentOwnerWakeDiagnosticsSchema = object({
|
|
|
2950
3128
|
});
|
|
2951
3129
|
const baseSpaceMemberSnapshotSchema = object({
|
|
2952
3130
|
profileId: profileIdSchema,
|
|
2953
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3131
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
2954
3132
|
profileKind: spaceMemberKindSchema,
|
|
2955
3133
|
status: spaceMemberStatusSchema,
|
|
2956
3134
|
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$
|
|
3135
|
+
memberSourceLabel: trimmedNonEmptyStringSchema$14,
|
|
3136
|
+
addedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3137
|
+
removedAt: nullableIsoDateTimeSchema$5,
|
|
3138
|
+
createdAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3139
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
2962
3140
|
addedByProfileId: nullableRuntimeProfileIdSchema,
|
|
2963
|
-
addedByOwnerUserId: nullableTrimmedStringSchema$
|
|
2964
|
-
addedByDisplayName: nullableTrimmedStringSchema$
|
|
3141
|
+
addedByOwnerUserId: nullableTrimmedStringSchema$7,
|
|
3142
|
+
addedByDisplayName: nullableTrimmedStringSchema$7,
|
|
2965
3143
|
removedByProfileId: nullableRuntimeProfileIdSchema,
|
|
2966
|
-
removedByOwnerUserId: nullableTrimmedStringSchema$
|
|
2967
|
-
removalReason: nullableTrimmedStringSchema$
|
|
2968
|
-
firstEnteredAt: nullableIsoDateTimeSchema$
|
|
2969
|
-
lastEnteredAt: nullableIsoDateTimeSchema$
|
|
2970
|
-
lastSeenAt: nullableIsoDateTimeSchema$
|
|
2971
|
-
lastSeenLabel: nullableTrimmedStringSchema$
|
|
3144
|
+
removedByOwnerUserId: nullableTrimmedStringSchema$7,
|
|
3145
|
+
removalReason: nullableTrimmedStringSchema$7,
|
|
3146
|
+
firstEnteredAt: nullableIsoDateTimeSchema$5,
|
|
3147
|
+
lastEnteredAt: nullableIsoDateTimeSchema$5,
|
|
3148
|
+
lastSeenAt: nullableIsoDateTimeSchema$5,
|
|
3149
|
+
lastSeenLabel: nullableTrimmedStringSchema$7,
|
|
2972
3150
|
liveNow: boolean(),
|
|
2973
|
-
avatarUrl: nullableTrimmedStringSchema$
|
|
3151
|
+
avatarUrl: nullableTrimmedStringSchema$7.optional()
|
|
2974
3152
|
});
|
|
2975
3153
|
const spaceMemberHumanSnapshotSchema = baseSpaceMemberSnapshotSchema.extend({
|
|
2976
3154
|
profileKind: literal("human"),
|
|
2977
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
2978
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
2979
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3155
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3156
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3157
|
+
ownerName: nullableTrimmedStringSchema$7
|
|
2980
3158
|
}).superRefine((value, ctx) => {
|
|
2981
3159
|
validateRuntimeProfileIdForMemberKind({
|
|
2982
3160
|
profileId: value.profileId,
|
|
@@ -2987,14 +3165,14 @@ const spaceMemberHumanSnapshotSchema = baseSpaceMemberSnapshotSchema.extend({
|
|
|
2987
3165
|
});
|
|
2988
3166
|
const spaceMemberAgentSnapshotSchema = rejectRetiredAgentSnapshotKeysSchema.pipe(baseSpaceMemberSnapshotSchema.extend({
|
|
2989
3167
|
profileKind: literal("agent"),
|
|
2990
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
2991
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
2992
|
-
ownerName: nullableTrimmedStringSchema$
|
|
2993
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3168
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3169
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3170
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3171
|
+
agentControllerRef: nullableTrimmedStringSchema$7,
|
|
2994
3172
|
agentControllerPermissionMode: agentControllerPermissionModeSchema.optional(),
|
|
2995
|
-
runtimeDeviceDisplayName: nullableTrimmedStringSchema$
|
|
3173
|
+
runtimeDeviceDisplayName: nullableTrimmedStringSchema$7.optional(),
|
|
2996
3174
|
deviceWaitTarget: wakeDeviceWaitTargetSchema.optional(),
|
|
2997
|
-
agentControllerConversationId: nullableTrimmedStringSchema$
|
|
3175
|
+
agentControllerConversationId: nullableTrimmedStringSchema$7,
|
|
2998
3176
|
modelSelection: agentProfileBindingModelSelectionSchema.optional(),
|
|
2999
3177
|
workingDirectory: profileWorkingDirectorySchema.nullable().optional(),
|
|
3000
3178
|
agentWakeAvailability: spaceMemberAgentWakeAvailabilitySchema.optional(),
|
|
@@ -3018,8 +3196,8 @@ const spaceMembersSummarySchema = object({
|
|
|
3018
3196
|
unavailableAgentCount: number().int().min(0).optional()
|
|
3019
3197
|
});
|
|
3020
3198
|
const spaceMembersSnapshotSchema = object({
|
|
3021
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3022
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
3199
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3200
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3023
3201
|
summary: spaceMembersSummarySchema,
|
|
3024
3202
|
humans: array(spaceMemberHumanSnapshotSchema),
|
|
3025
3203
|
agents: array(spaceMemberAgentSnapshotSchema)
|
|
@@ -3088,26 +3266,26 @@ const spaceMembersSnapshotSchema = object({
|
|
|
3088
3266
|
});
|
|
3089
3267
|
});
|
|
3090
3268
|
const spaceViewerMembershipResponseSchema = strictObject({
|
|
3091
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3269
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3092
3270
|
activeMemberProfiles: array(strictObject({
|
|
3093
3271
|
profileId: profileIdSchema,
|
|
3094
3272
|
profileKind: spaceMemberKindSchema,
|
|
3095
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3096
|
-
lastEnteredAt: nullableIsoDateTimeSchema$
|
|
3273
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
3274
|
+
lastEnteredAt: nullableIsoDateTimeSchema$5
|
|
3097
3275
|
})),
|
|
3098
3276
|
preferredOpenProfileId: nullableRuntimeProfileIdSchema
|
|
3099
3277
|
});
|
|
3100
3278
|
const spaceIdentityDirectorySchema = strictObject({
|
|
3101
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3102
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
3279
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3280
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3103
3281
|
entries: array(strictObject({
|
|
3104
3282
|
profileId: profileIdSchema,
|
|
3105
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3283
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
3106
3284
|
profileKind: spaceMemberKindSchema,
|
|
3107
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
3108
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3109
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3110
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3285
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3286
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3287
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3288
|
+
agentControllerRef: nullableTrimmedStringSchema$7
|
|
3111
3289
|
}).superRefine((value, ctx) => {
|
|
3112
3290
|
validateRuntimeProfileIdForMemberKind({
|
|
3113
3291
|
profileId: value.profileId,
|
|
@@ -3134,23 +3312,23 @@ const spaceMemberDirectoryAllowedRelationsSchema = preprocess((value) => {
|
|
|
3134
3312
|
mention: boolean()
|
|
3135
3313
|
}));
|
|
3136
3314
|
const spaceMemberDirectoryCardSchema = strictObject({
|
|
3137
|
-
role: nullableTrimmedStringSchema$
|
|
3138
|
-
roleDescription: nullableTrimmedStringSchema$
|
|
3315
|
+
role: nullableTrimmedStringSchema$7,
|
|
3316
|
+
roleDescription: nullableTrimmedStringSchema$7
|
|
3139
3317
|
});
|
|
3140
3318
|
const spaceMemberDirectoryEntrySchema = strictObject({
|
|
3141
3319
|
profileId: profileIdSchema,
|
|
3142
3320
|
profileKind: spaceMemberKindSchema,
|
|
3143
|
-
displayName: trimmedNonEmptyStringSchema$
|
|
3321
|
+
displayName: trimmedNonEmptyStringSchema$14,
|
|
3144
3322
|
primaryMentionLabel: spaceMentionLabelSchema,
|
|
3145
3323
|
mentionLabels: array(spaceMentionLabelSchema).min(1),
|
|
3146
|
-
mentionAlias: nullableTrimmedStringSchema$
|
|
3324
|
+
mentionAlias: nullableTrimmedStringSchema$7,
|
|
3147
3325
|
labelSource: spaceMentionLabelSourceSchema,
|
|
3148
|
-
lookupTokens: array(trimmedNonEmptyStringSchema$
|
|
3149
|
-
preferredLookupToken: trimmedNonEmptyStringSchema$
|
|
3150
|
-
profileIdShort: trimmedNonEmptyStringSchema$
|
|
3326
|
+
lookupTokens: array(trimmedNonEmptyStringSchema$14).min(1),
|
|
3327
|
+
preferredLookupToken: trimmedNonEmptyStringSchema$14,
|
|
3328
|
+
profileIdShort: trimmedNonEmptyStringSchema$14,
|
|
3151
3329
|
allowedRelations: spaceMemberDirectoryAllowedRelationsSchema,
|
|
3152
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3153
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3330
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3331
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3154
3332
|
agentCard: union([spaceMemberDirectoryCardSchema, nullFactory()]),
|
|
3155
3333
|
spaceRole: union([spaceMemberDirectoryCardSchema, nullFactory()])
|
|
3156
3334
|
}).superRefine((value, ctx) => {
|
|
@@ -3182,8 +3360,8 @@ const spaceMemberDirectoryEntrySchema = strictObject({
|
|
|
3182
3360
|
});
|
|
3183
3361
|
});
|
|
3184
3362
|
const spaceMemberDirectorySchema = strictObject({
|
|
3185
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
3186
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
3363
|
+
spaceId: trimmedNonEmptyStringSchema$14,
|
|
3364
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$12,
|
|
3187
3365
|
members: array(spaceMemberDirectoryEntrySchema)
|
|
3188
3366
|
});
|
|
3189
3367
|
const postSpaceMembersBodySchema = strictObject({ memberProfileIds: array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });
|
|
@@ -3206,11 +3384,11 @@ const addOrganizationDirectoryProfilesToSpaceBodySchema = strictObject({
|
|
|
3206
3384
|
const removeSpaceMembersBodySchema = strictObject({ memberProfileIds: array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });
|
|
3207
3385
|
const resolvedSpaceMemberProfileSchema = strictObject({
|
|
3208
3386
|
profileId: profileIdSchema,
|
|
3209
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
3387
|
+
profileName: trimmedNonEmptyStringSchema$14,
|
|
3210
3388
|
profileKind: spaceMemberKindSchema,
|
|
3211
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
3212
|
-
ownerName: nullableTrimmedStringSchema$
|
|
3213
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
3389
|
+
ownerUserId: nullableTrimmedStringSchema$7,
|
|
3390
|
+
ownerName: nullableTrimmedStringSchema$7,
|
|
3391
|
+
agentControllerRef: nullableTrimmedStringSchema$7
|
|
3214
3392
|
}).superRefine((value, ctx) => {
|
|
3215
3393
|
validateRuntimeProfileIdForMemberKind({
|
|
3216
3394
|
profileId: value.profileId,
|
|
@@ -4206,7 +4384,7 @@ const updateFeedbackReportingPolicyBodySchema = z$1.strictObject({ reportingEnab
|
|
|
4206
4384
|
//#endregion
|
|
4207
4385
|
//#region ../../packages/schemas/dist/schemas/http/organization-member-openmeld-service-status.js
|
|
4208
4386
|
const BOUNDED_ID_SCHEMA$1 = z$1.string().trim().min(1).max(256);
|
|
4209
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4387
|
+
const ISO_DATE_TIME_SCHEMA$11 = z$1.iso.datetime({ offset: true });
|
|
4210
4388
|
const organizationMemberOpenMeldServiceStateSchema = z$1.enum([
|
|
4211
4389
|
"connected",
|
|
4212
4390
|
"needs_attention",
|
|
@@ -4219,19 +4397,19 @@ const organizationMemberOpenMeldServiceStatusSchema = z$1.strictObject({
|
|
|
4219
4397
|
});
|
|
4220
4398
|
z$1.strictObject({ memberUserId: BOUNDED_ID_SCHEMA$1 });
|
|
4221
4399
|
z$1.strictObject({
|
|
4222
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4400
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$11,
|
|
4223
4401
|
member: organizationMemberOpenMeldServiceStatusSchema,
|
|
4224
4402
|
organizationId: BOUNDED_ID_SCHEMA$1
|
|
4225
4403
|
});
|
|
4226
4404
|
const organizationMemberOpenMeldServiceStatusesResponseSchema = z$1.strictObject({
|
|
4227
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4405
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$11,
|
|
4228
4406
|
members: z$1.array(organizationMemberOpenMeldServiceStatusSchema),
|
|
4229
4407
|
organizationId: BOUNDED_ID_SCHEMA$1
|
|
4230
4408
|
});
|
|
4231
4409
|
//#endregion
|
|
4232
4410
|
//#region ../../packages/schemas/dist/schemas/http/organization-computers.js
|
|
4233
4411
|
const BOUNDED_ID_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
4234
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4412
|
+
const ISO_DATE_TIME_SCHEMA$10 = z$1.iso.datetime({ offset: true });
|
|
4235
4413
|
const REASON_CODES_SCHEMA = z$1.array(BOUNDED_ID_SCHEMA).max(64);
|
|
4236
4414
|
const organizationComputerOpenMeldToolsSchema = z$1.strictObject({
|
|
4237
4415
|
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
@@ -4264,7 +4442,7 @@ const organizationComputerOpenMeldToolsSchema = z$1.strictObject({
|
|
|
4264
4442
|
const organizationComputerLocalAgentDetailsSchema = z$1.strictObject({
|
|
4265
4443
|
capabilities: agentControllerInterfaceCapabilitiesSchema,
|
|
4266
4444
|
check: agentControllerInterfaceCheckSnapshotSchema.optional(),
|
|
4267
|
-
checkedAt: ISO_DATE_TIME_SCHEMA$
|
|
4445
|
+
checkedAt: ISO_DATE_TIME_SCHEMA$10,
|
|
4268
4446
|
conversationCapabilities: agentControllerConversationCapabilitySchema.optional(),
|
|
4269
4447
|
launch: z$1.strictObject({
|
|
4270
4448
|
installChoiceCount: z$1.number().int().nonnegative(),
|
|
@@ -4279,7 +4457,7 @@ const organizationComputerLocalAgentDetailsSchema = z$1.strictObject({
|
|
|
4279
4457
|
usageLimits: agentControllerUsageLimitsSchema.optional(),
|
|
4280
4458
|
version: BOUNDED_ID_SCHEMA.nullable(),
|
|
4281
4459
|
versionAdvisory: z$1.strictObject({
|
|
4282
|
-
checkedAt: ISO_DATE_TIME_SCHEMA$
|
|
4460
|
+
checkedAt: ISO_DATE_TIME_SCHEMA$10.nullable(),
|
|
4283
4461
|
currentVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
4284
4462
|
latestVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
4285
4463
|
status: agentControllerInterfaceVersionAdvisoryStatusSchema
|
|
@@ -4338,23 +4516,23 @@ const organizationComputerSchema = z$1.strictObject({
|
|
|
4338
4516
|
});
|
|
4339
4517
|
const organizationComputersResponseSchema = z$1.strictObject({
|
|
4340
4518
|
computers: z$1.array(organizationComputerSchema),
|
|
4341
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4519
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$10,
|
|
4342
4520
|
organizationId: BOUNDED_ID_SCHEMA
|
|
4343
4521
|
});
|
|
4344
4522
|
//#endregion
|
|
4345
4523
|
//#region ../../packages/schemas/dist/schemas/http/organization-directory.js
|
|
4346
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4347
|
-
const trimmedNonEmptyStringSchema$
|
|
4524
|
+
const ISO_DATE_TIME_SCHEMA$9 = iso.datetime({ offset: true });
|
|
4525
|
+
const trimmedNonEmptyStringSchema$13 = string().trim().min(1);
|
|
4348
4526
|
strictObject({
|
|
4349
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4350
|
-
userId: trimmedNonEmptyStringSchema$
|
|
4527
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4528
|
+
userId: trimmedNonEmptyStringSchema$13,
|
|
4351
4529
|
profileId: uuidProfileIdSchema,
|
|
4352
|
-
lastActiveAt: ISO_DATE_TIME_SCHEMA$
|
|
4530
|
+
lastActiveAt: ISO_DATE_TIME_SCHEMA$9
|
|
4353
4531
|
});
|
|
4354
|
-
const nullableTrimmedStringSchema$
|
|
4532
|
+
const nullableTrimmedStringSchema$6 = union([trimmedNonEmptyStringSchema$13, nullFactory()]);
|
|
4355
4533
|
const organizationDirectoryAgentProfileWorkLocationSchema = strictObject({
|
|
4356
4534
|
spaceId: string().trim().min(1).max(512),
|
|
4357
|
-
spaceName: trimmedNonEmptyStringSchema$
|
|
4535
|
+
spaceName: trimmedNonEmptyStringSchema$13
|
|
4358
4536
|
});
|
|
4359
4537
|
const organizationDirectoryAgentProfileOperationalContextSchema = discriminatedUnion("status", [
|
|
4360
4538
|
strictObject({ status: literal("checking") }),
|
|
@@ -4372,52 +4550,52 @@ const organizationDirectoryAgentProfileOperationalContextSchema = discriminatedU
|
|
|
4372
4550
|
currentWorkLocation: organizationDirectoryAgentProfileWorkLocationSchema.optional(),
|
|
4373
4551
|
queuedWorkLocations: array(organizationDirectoryAgentProfileWorkLocationSchema).max(50).optional(),
|
|
4374
4552
|
recoveryAction: agentProfileWorkRecoveryActionKindSchema.optional(),
|
|
4375
|
-
recoveryTargetWakeLifecycleId: trimmedNonEmptyStringSchema$
|
|
4553
|
+
recoveryTargetWakeLifecycleId: trimmedNonEmptyStringSchema$13.optional(),
|
|
4376
4554
|
status: literal("paused"),
|
|
4377
4555
|
waitingCount: number().int().min(0).max(50)
|
|
4378
4556
|
})
|
|
4379
4557
|
]);
|
|
4380
4558
|
const organizationDirectoryHumanProfileSchema = strictObject({
|
|
4381
|
-
lastUsedAt: union([ISO_DATE_TIME_SCHEMA$
|
|
4559
|
+
lastUsedAt: union([ISO_DATE_TIME_SCHEMA$9, nullFactory()]).optional(),
|
|
4382
4560
|
profileId: uuidProfileIdSchema,
|
|
4383
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
4384
|
-
profileHandle: trimmedNonEmptyStringSchema$
|
|
4561
|
+
profileName: trimmedNonEmptyStringSchema$13,
|
|
4562
|
+
profileHandle: trimmedNonEmptyStringSchema$13,
|
|
4385
4563
|
status: enumFactory(["active", "disabled"])
|
|
4386
4564
|
});
|
|
4387
4565
|
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$
|
|
4566
|
+
lastActiveAt: union([ISO_DATE_TIME_SCHEMA$9, nullFactory()]).optional(),
|
|
4567
|
+
memberId: trimmedNonEmptyStringSchema$13,
|
|
4568
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4569
|
+
userId: trimmedNonEmptyStringSchema$13,
|
|
4570
|
+
role: trimmedNonEmptyStringSchema$13,
|
|
4571
|
+
joinedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4394
4572
|
user: strictObject({
|
|
4395
|
-
id: trimmedNonEmptyStringSchema$
|
|
4396
|
-
name: trimmedNonEmptyStringSchema$
|
|
4397
|
-
email: trimmedNonEmptyStringSchema$
|
|
4398
|
-
image: nullableTrimmedStringSchema$
|
|
4573
|
+
id: trimmedNonEmptyStringSchema$13,
|
|
4574
|
+
name: trimmedNonEmptyStringSchema$13,
|
|
4575
|
+
email: trimmedNonEmptyStringSchema$13,
|
|
4576
|
+
image: nullableTrimmedStringSchema$6
|
|
4399
4577
|
}),
|
|
4400
4578
|
humanProfile: organizationDirectoryHumanProfileSchema.nullable()
|
|
4401
4579
|
});
|
|
4402
4580
|
const organizationDirectoryAgentProfileIdentitySchema = strictObject({
|
|
4403
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4581
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4404
4582
|
profileId: agentProfileIdSchema,
|
|
4405
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
4406
|
-
profileHandle: trimmedNonEmptyStringSchema$
|
|
4583
|
+
profileName: trimmedNonEmptyStringSchema$13,
|
|
4584
|
+
profileHandle: trimmedNonEmptyStringSchema$13,
|
|
4407
4585
|
profileKind: literal("agent"),
|
|
4408
4586
|
isDefault: literal(false),
|
|
4409
4587
|
status: enumFactory(["active", "disabled"]),
|
|
4410
|
-
ownerUserId: nullableTrimmedStringSchema$
|
|
4411
|
-
ownerName: trimmedNonEmptyStringSchema$
|
|
4412
|
-
avatarUrl: trimmedNonEmptyStringSchema$
|
|
4413
|
-
source: trimmedNonEmptyStringSchema$
|
|
4588
|
+
ownerUserId: nullableTrimmedStringSchema$6,
|
|
4589
|
+
ownerName: trimmedNonEmptyStringSchema$13.optional(),
|
|
4590
|
+
avatarUrl: trimmedNonEmptyStringSchema$13.optional(),
|
|
4591
|
+
source: trimmedNonEmptyStringSchema$13,
|
|
4414
4592
|
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$
|
|
4593
|
+
createdByUserId: nullableTrimmedStringSchema$6,
|
|
4594
|
+
creatorProfileId: nullableTrimmedStringSchema$6,
|
|
4595
|
+
lastUsedAt: union([ISO_DATE_TIME_SCHEMA$9, nullFactory()]),
|
|
4596
|
+
lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$9.nullable().optional(),
|
|
4597
|
+
createdAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4598
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$9
|
|
4421
4599
|
});
|
|
4422
4600
|
const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
|
|
4423
4601
|
isCenterAgent: boolean().optional(),
|
|
@@ -4425,7 +4603,7 @@ const organizationDirectoryAgentProfileSchema = organizationDirectoryAgentProfil
|
|
|
4425
4603
|
readiness: getAgentExecutionReadinessResponseSchema
|
|
4426
4604
|
});
|
|
4427
4605
|
const organizationProfileDirectoryAgentProfileSchema = organizationDirectoryAgentProfileIdentitySchema.extend({
|
|
4428
|
-
agentControllerRef: nullableTrimmedStringSchema$
|
|
4606
|
+
agentControllerRef: nullableTrimmedStringSchema$6,
|
|
4429
4607
|
modelSelection: agentProfileBindingModelSelectionSchema.nullable().optional(),
|
|
4430
4608
|
isCenterAgent: boolean().optional()
|
|
4431
4609
|
});
|
|
@@ -4435,27 +4613,27 @@ strictObject({
|
|
|
4435
4613
|
includeModelSelection: boolean().optional()
|
|
4436
4614
|
});
|
|
4437
4615
|
strictObject({
|
|
4438
|
-
taskActivitySince: ISO_DATE_TIME_SCHEMA$
|
|
4439
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4440
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4616
|
+
taskActivitySince: ISO_DATE_TIME_SCHEMA$9.optional(),
|
|
4617
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4618
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4441
4619
|
members: array(organizationDirectoryMemberSchema),
|
|
4442
4620
|
agentProfiles: array(organizationProfileDirectoryAgentProfileSchema)
|
|
4443
4621
|
});
|
|
4444
4622
|
const organizationAgentRuntimeOverviewItemSchema = strictObject({
|
|
4445
4623
|
profileId: agentProfileIdSchema,
|
|
4446
|
-
lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$
|
|
4624
|
+
lastTaskActivityAt: ISO_DATE_TIME_SCHEMA$9.nullable().optional(),
|
|
4447
4625
|
operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
|
|
4448
4626
|
readiness: getAgentExecutionReadinessResponseSchema
|
|
4449
4627
|
});
|
|
4450
4628
|
strictObject({
|
|
4451
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4452
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4453
|
-
taskActivitySince: ISO_DATE_TIME_SCHEMA$
|
|
4629
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4630
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4631
|
+
taskActivitySince: ISO_DATE_TIME_SCHEMA$9.optional(),
|
|
4454
4632
|
agentProfiles: array(organizationAgentRuntimeOverviewItemSchema)
|
|
4455
4633
|
});
|
|
4456
4634
|
const organizationDirectoryResponseSchema = strictObject({
|
|
4457
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4458
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4635
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4636
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4459
4637
|
members: array(organizationDirectoryMemberSchema),
|
|
4460
4638
|
agentProfiles: array(organizationDirectoryAgentProfileSchema)
|
|
4461
4639
|
});
|
|
@@ -4465,9 +4643,9 @@ organizationDirectoryResponseSchema.extend({
|
|
|
4465
4643
|
totalAgentProfiles: number().int().nonnegative()
|
|
4466
4644
|
});
|
|
4467
4645
|
strictObject({
|
|
4468
|
-
lastActiveAt: ISO_DATE_TIME_SCHEMA$
|
|
4469
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4470
|
-
userId: trimmedNonEmptyStringSchema$
|
|
4646
|
+
lastActiveAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4647
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4648
|
+
userId: trimmedNonEmptyStringSchema$13
|
|
4471
4649
|
});
|
|
4472
4650
|
strictObject({
|
|
4473
4651
|
cursor: string().trim().min(1).max(1024).optional(),
|
|
@@ -4477,10 +4655,10 @@ strictObject({
|
|
|
4477
4655
|
speakerMember: centerAgentToolSpeakerSchema.optional()
|
|
4478
4656
|
});
|
|
4479
4657
|
strictObject({
|
|
4480
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
4658
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$9,
|
|
4481
4659
|
members: array(organizationDirectoryMemberSchema),
|
|
4482
4660
|
nextCursor: string().trim().min(1).max(1024).nullable(),
|
|
4483
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4661
|
+
organizationId: trimmedNonEmptyStringSchema$13,
|
|
4484
4662
|
totalMembers: number().int().nonnegative()
|
|
4485
4663
|
});
|
|
4486
4664
|
//#endregion
|
|
@@ -4874,7 +5052,7 @@ const spaceAccessModeStateSchema = z$1.strictObject({
|
|
|
4874
5052
|
});
|
|
4875
5053
|
//#endregion
|
|
4876
5054
|
//#region ../../packages/schemas/dist/schemas/http/space-meta.js
|
|
4877
|
-
const trimmedNonEmptyStringSchema$
|
|
5055
|
+
const trimmedNonEmptyStringSchema$12 = z$1.string().trim().min(1);
|
|
4878
5056
|
const isoDateTimeSchema$6 = z$1.iso.datetime({ offset: true });
|
|
4879
5057
|
const MAX_SPACE_GUIDE_LENGTH = 4e3;
|
|
4880
5058
|
const spaceOrganizationVisibilitySchema = z$1.enum(["public", "private"]);
|
|
@@ -4883,11 +5061,11 @@ function resolveInitialSpaceAccessMode(_visibility) {
|
|
|
4883
5061
|
}
|
|
4884
5062
|
const spaceCreatorSchema = z$1.strictObject({
|
|
4885
5063
|
profileId: openMeldRuntimeProfileIdSchema,
|
|
4886
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
5064
|
+
profileName: trimmedNonEmptyStringSchema$12.optional(),
|
|
4887
5065
|
kind: profileKindSchema.optional(),
|
|
4888
|
-
profile: trimmedNonEmptyStringSchema$
|
|
4889
|
-
ownerUserId: trimmedNonEmptyStringSchema$
|
|
4890
|
-
ownerName: trimmedNonEmptyStringSchema$
|
|
5066
|
+
profile: trimmedNonEmptyStringSchema$12.optional(),
|
|
5067
|
+
ownerUserId: trimmedNonEmptyStringSchema$12.optional(),
|
|
5068
|
+
ownerName: trimmedNonEmptyStringSchema$12.optional()
|
|
4891
5069
|
}).superRefine((value, ctx) => {
|
|
4892
5070
|
if (!value.kind) return;
|
|
4893
5071
|
if ((value.kind === "agent" ? agentProfileIdSchema : uuidProfileIdSchema).safeParse(value.profileId).success) return;
|
|
@@ -4904,19 +5082,19 @@ const spaceStorageUsageSchema = z$1.strictObject({
|
|
|
4904
5082
|
});
|
|
4905
5083
|
const spaceDirectMessageMetaSchema = z$1.strictObject({
|
|
4906
5084
|
convertedAt: isoDateTimeSchema$6.optional(),
|
|
4907
|
-
pairKey: trimmedNonEmptyStringSchema$
|
|
5085
|
+
pairKey: trimmedNonEmptyStringSchema$12
|
|
4908
5086
|
});
|
|
4909
5087
|
const spaceMetaSchema = z$1.strictObject({
|
|
4910
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
4911
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5088
|
+
spaceId: trimmedNonEmptyStringSchema$12,
|
|
5089
|
+
organizationId: trimmedNonEmptyStringSchema$12,
|
|
4912
5090
|
visibility: spaceOrganizationVisibilitySchema,
|
|
4913
|
-
name: trimmedNonEmptyStringSchema$
|
|
4914
|
-
purpose: trimmedNonEmptyStringSchema$
|
|
5091
|
+
name: trimmedNonEmptyStringSchema$12.optional(),
|
|
5092
|
+
purpose: trimmedNonEmptyStringSchema$12.optional(),
|
|
4915
5093
|
directMessage: spaceDirectMessageMetaSchema.optional(),
|
|
4916
5094
|
creator: spaceCreatorSchema.optional(),
|
|
4917
|
-
ownerUserIds: z$1.array(trimmedNonEmptyStringSchema$
|
|
5095
|
+
ownerUserIds: z$1.array(trimmedNonEmptyStringSchema$12).optional(),
|
|
4918
5096
|
allowGuests: z$1.boolean().optional(),
|
|
4919
|
-
guide: trimmedNonEmptyStringSchema$
|
|
5097
|
+
guide: trimmedNonEmptyStringSchema$12.optional(),
|
|
4920
5098
|
accessMode: spaceAccessModeSchema.optional(),
|
|
4921
5099
|
passwordProtected: z$1.boolean().optional(),
|
|
4922
5100
|
createdAt: isoDateTimeSchema$6.optional(),
|
|
@@ -4928,7 +5106,7 @@ const patchSpaceMetaBodySchema = z$1.strictObject({
|
|
|
4928
5106
|
visibility: spaceOrganizationVisibilitySchema.optional(),
|
|
4929
5107
|
allowGuests: z$1.boolean().optional(),
|
|
4930
5108
|
ownership: z$1.strictObject({
|
|
4931
|
-
userId: trimmedNonEmptyStringSchema$
|
|
5109
|
+
userId: trimmedNonEmptyStringSchema$12,
|
|
4932
5110
|
role: z$1.enum(["owner", "member"])
|
|
4933
5111
|
}).optional(),
|
|
4934
5112
|
name: spaceNameSchema.optional(),
|
|
@@ -4950,29 +5128,29 @@ const patchSpaceMetaBodySchema = z$1.strictObject({
|
|
|
4950
5128
|
}));
|
|
4951
5129
|
//#endregion
|
|
4952
5130
|
//#region ../../packages/schemas/dist/schemas/http/organization-space-directory.js
|
|
4953
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
4954
|
-
const trimmedNonEmptyStringSchema$
|
|
4955
|
-
const nullableIsoDateTimeSchema$
|
|
5131
|
+
const ISO_DATE_TIME_SCHEMA$8 = z$1.iso.datetime({ offset: true });
|
|
5132
|
+
const trimmedNonEmptyStringSchema$11 = z$1.string().trim().min(1);
|
|
5133
|
+
const nullableIsoDateTimeSchema$4 = z$1.union([ISO_DATE_TIME_SCHEMA$8, z$1.null()]);
|
|
4956
5134
|
const organizationSpaceDirectoryItemSchema = z$1.strictObject({
|
|
4957
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
4958
|
-
name: trimmedNonEmptyStringSchema$
|
|
4959
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5135
|
+
spaceId: trimmedNonEmptyStringSchema$11,
|
|
5136
|
+
name: trimmedNonEmptyStringSchema$11,
|
|
5137
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
4960
5138
|
visibility: spaceOrganizationVisibilitySchema,
|
|
4961
5139
|
joined: z$1.boolean(),
|
|
4962
|
-
lastJoinedAt: nullableIsoDateTimeSchema$
|
|
4963
|
-
spaceCreatedAt: nullableIsoDateTimeSchema$
|
|
4964
|
-
spaceUpdatedAt: nullableIsoDateTimeSchema$
|
|
4965
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5140
|
+
lastJoinedAt: nullableIsoDateTimeSchema$4,
|
|
5141
|
+
spaceCreatedAt: nullableIsoDateTimeSchema$4,
|
|
5142
|
+
spaceUpdatedAt: nullableIsoDateTimeSchema$4,
|
|
5143
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$8
|
|
4966
5144
|
});
|
|
4967
5145
|
const organizationSpaceDirectoryResponseSchema = z$1.strictObject({
|
|
4968
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4969
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5146
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5147
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$8,
|
|
4970
5148
|
spaces: z$1.array(organizationSpaceDirectoryItemSchema)
|
|
4971
5149
|
});
|
|
4972
5150
|
const organizationSpaceDirectoryWithMemberCountsItemSchema = organizationSpaceDirectoryItemSchema.extend({ activeMemberCount: z$1.number().int().nonnegative().nullable() });
|
|
4973
5151
|
const organizationSpaceDirectoryWithMemberCountsResponseSchema = z$1.strictObject({
|
|
4974
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
4975
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5152
|
+
organizationId: trimmedNonEmptyStringSchema$11,
|
|
5153
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$8,
|
|
4976
5154
|
spaces: z$1.array(organizationSpaceDirectoryWithMemberCountsItemSchema)
|
|
4977
5155
|
});
|
|
4978
5156
|
//#endregion
|
|
@@ -5182,21 +5360,21 @@ const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
|
|
|
5182
5360
|
//#endregion
|
|
5183
5361
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js
|
|
5184
5362
|
const CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = "center_agent_direct_message_space";
|
|
5185
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
5186
|
-
const trimmedNonEmptyStringSchema$
|
|
5363
|
+
const ISO_DATE_TIME_SCHEMA$7 = z$1.iso.datetime({ offset: true });
|
|
5364
|
+
const trimmedNonEmptyStringSchema$10 = z$1.string().trim().min(1);
|
|
5187
5365
|
const createCenterAgentSessionBodySchema = z$1.strictObject({ creationId: z$1.uuid() });
|
|
5188
|
-
const centerAgentSessionSelectorSchema = z$1.strictObject({ spaceId: trimmedNonEmptyStringSchema$
|
|
5366
|
+
const centerAgentSessionSelectorSchema = z$1.strictObject({ spaceId: trimmedNonEmptyStringSchema$10.max(128) });
|
|
5189
5367
|
const centerAgentDirectMessageSpaceProjectionSchema = z$1.strictObject({
|
|
5190
|
-
centerAgentProfileId: trimmedNonEmptyStringSchema$
|
|
5368
|
+
centerAgentProfileId: trimmedNonEmptyStringSchema$10,
|
|
5191
5369
|
isCenterAgentDirectMessageSpace: z$1.literal(true),
|
|
5192
5370
|
kind: z$1.literal(CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND),
|
|
5193
|
-
memberProfileId: trimmedNonEmptyStringSchema$
|
|
5194
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5195
|
-
spaceId: trimmedNonEmptyStringSchema$
|
|
5371
|
+
memberProfileId: trimmedNonEmptyStringSchema$10,
|
|
5372
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5373
|
+
spaceId: trimmedNonEmptyStringSchema$10
|
|
5196
5374
|
});
|
|
5197
5375
|
const getCenterAgentDirectMessageSpaceProjectionResponseSchema = z$1.strictObject({
|
|
5198
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5199
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5376
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$7,
|
|
5377
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5200
5378
|
projection: z$1.union([centerAgentDirectMessageSpaceProjectionSchema, z$1.null()])
|
|
5201
5379
|
});
|
|
5202
5380
|
const listCenterAgentSessionsQuerySchema = z$1.strictObject({
|
|
@@ -5205,18 +5383,18 @@ const listCenterAgentSessionsQuerySchema = z$1.strictObject({
|
|
|
5205
5383
|
});
|
|
5206
5384
|
z$1.strictObject({
|
|
5207
5385
|
v: z$1.literal(1),
|
|
5208
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5209
|
-
pairKey: trimmedNonEmptyStringSchema$
|
|
5386
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5387
|
+
pairKey: trimmedNonEmptyStringSchema$10,
|
|
5210
5388
|
createdAtMs: z$1.number().int().nonnegative(),
|
|
5211
5389
|
spaceId: centerAgentSessionSelectorSchema.shape.spaceId
|
|
5212
5390
|
});
|
|
5213
5391
|
const centerAgentSessionListItemSchema = centerAgentDirectMessageSpaceProjectionSchema.extend({
|
|
5214
5392
|
name: z$1.string().nullable(),
|
|
5215
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
5393
|
+
createdAt: ISO_DATE_TIME_SCHEMA$7.nullable()
|
|
5216
5394
|
});
|
|
5217
5395
|
const listCenterAgentSessionsResponseSchema = z$1.strictObject({
|
|
5218
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5219
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5396
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$7,
|
|
5397
|
+
organizationId: trimmedNonEmptyStringSchema$10,
|
|
5220
5398
|
sessions: z$1.array(centerAgentSessionListItemSchema).max(100),
|
|
5221
5399
|
nextCursor: z$1.string().min(1).max(1024).nullable()
|
|
5222
5400
|
});
|
|
@@ -5238,8 +5416,8 @@ const CENTER_AGENT_CONTEXT_ERROR_CODES = [
|
|
|
5238
5416
|
"center_agent.context_load_selection_duplicate",
|
|
5239
5417
|
"center_agent.context_load_selection_invalid"
|
|
5240
5418
|
];
|
|
5241
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
5242
|
-
const trimmedNonEmptyStringSchema$
|
|
5419
|
+
const ISO_DATE_TIME_SCHEMA$6 = iso.datetime({ offset: true });
|
|
5420
|
+
const trimmedNonEmptyStringSchema$9 = string().trim().min(1);
|
|
5243
5421
|
const contentHashSchema$1 = string().regex(/^sha256:[0-9a-f]{64}$/u);
|
|
5244
5422
|
const centerAgentContextManifestIdSchema = string().regex(/^center_agent_context_manifest_[0-9a-f-]{36}$/u);
|
|
5245
5423
|
const loadReceiptIdSchema = string().regex(/^center_agent_context_load_receipt_[0-9a-f-]{36}$/u);
|
|
@@ -5253,7 +5431,7 @@ const createCenterAgentContextManifestBodySchema = strictObject({
|
|
|
5253
5431
|
view: centerAgentContextManifestViewSchema.default("messages")
|
|
5254
5432
|
});
|
|
5255
5433
|
const centerAgentContextManifestSourceRefSchema = strictObject({
|
|
5256
|
-
id: trimmedNonEmptyStringSchema$
|
|
5434
|
+
id: trimmedNonEmptyStringSchema$9,
|
|
5257
5435
|
type: literal("space_signal"),
|
|
5258
5436
|
uri: string().regex(/^openmeld:\/\/spaces\/[^/]+\/signals\/[^/]+$/u),
|
|
5259
5437
|
version: contentHashSchema$1
|
|
@@ -5261,16 +5439,16 @@ const centerAgentContextManifestSourceRefSchema = strictObject({
|
|
|
5261
5439
|
const centerAgentContextManifestEntrySchema = strictObject({
|
|
5262
5440
|
reactions: spaceMessageReactionsSchema.optional(),
|
|
5263
5441
|
author: strictObject({
|
|
5264
|
-
profileId: trimmedNonEmptyStringSchema$
|
|
5442
|
+
profileId: trimmedNonEmptyStringSchema$9,
|
|
5265
5443
|
profileKind: enumFactory([
|
|
5266
5444
|
"agent",
|
|
5267
5445
|
"human",
|
|
5268
5446
|
"system"
|
|
5269
5447
|
]),
|
|
5270
|
-
profileName: trimmedNonEmptyStringSchema$
|
|
5448
|
+
profileName: trimmedNonEmptyStringSchema$9
|
|
5271
5449
|
}),
|
|
5272
5450
|
carrier: strictObject({
|
|
5273
|
-
client: trimmedNonEmptyStringSchema$
|
|
5451
|
+
client: trimmedNonEmptyStringSchema$9.max(80),
|
|
5274
5452
|
kind: literal("local_agent")
|
|
5275
5453
|
}).optional(),
|
|
5276
5454
|
content: strictObject({
|
|
@@ -5280,13 +5458,13 @@ const centerAgentContextManifestEntrySchema = strictObject({
|
|
|
5280
5458
|
type: literal("text")
|
|
5281
5459
|
}),
|
|
5282
5460
|
materializedContentHash: contentHashSchema$1,
|
|
5283
|
-
occurredAt: ISO_DATE_TIME_SCHEMA$
|
|
5461
|
+
occurredAt: ISO_DATE_TIME_SCHEMA$6,
|
|
5284
5462
|
redactions: array(enumFactory([
|
|
5285
5463
|
"attachments_not_in_messages_view",
|
|
5286
5464
|
"local_session_locator_omitted",
|
|
5287
5465
|
"message_content_budget"
|
|
5288
5466
|
])),
|
|
5289
|
-
replyToSignalId: trimmedNonEmptyStringSchema$
|
|
5467
|
+
replyToSignalId: trimmedNonEmptyStringSchema$9.optional(),
|
|
5290
5468
|
sourceRef: centerAgentContextManifestSourceRefSchema
|
|
5291
5469
|
});
|
|
5292
5470
|
strictObject({
|
|
@@ -5296,7 +5474,7 @@ strictObject({
|
|
|
5296
5474
|
});
|
|
5297
5475
|
const centerAgentContextLoadSelectedEntrySchema = strictObject({
|
|
5298
5476
|
materializedContentHash: contentHashSchema$1,
|
|
5299
|
-
sourceRefId: trimmedNonEmptyStringSchema$
|
|
5477
|
+
sourceRefId: trimmedNonEmptyStringSchema$9
|
|
5300
5478
|
});
|
|
5301
5479
|
const createCenterAgentContextLoadReceiptBodySchema = strictObject({
|
|
5302
5480
|
selection: discriminatedUnion("kind", [strictObject({ kind: literal("all_manifest_entries") }), strictObject({
|
|
@@ -5329,20 +5507,20 @@ const createCenterAgentContextManifestResponseSchema = strictObject({
|
|
|
5329
5507
|
hasMore: boolean()
|
|
5330
5508
|
}),
|
|
5331
5509
|
entries: array(centerAgentContextManifestEntrySchema),
|
|
5332
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
5510
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$6,
|
|
5333
5511
|
manifestId: centerAgentContextManifestIdSchema,
|
|
5334
5512
|
provenance: strictObject({
|
|
5335
|
-
auditEntryId: trimmedNonEmptyStringSchema$
|
|
5513
|
+
auditEntryId: trimmedNonEmptyStringSchema$9,
|
|
5336
5514
|
contentProjection: literal("user_visible_space_signals")
|
|
5337
5515
|
}),
|
|
5338
5516
|
request: strictObject({ source: centerAgentInteractionSourceSchema }),
|
|
5339
5517
|
schemaVersion: literal(CENTER_AGENT_CONTEXT_MANIFEST_VERSION),
|
|
5340
5518
|
subject: strictObject({
|
|
5341
|
-
centerAgentProfileId: trimmedNonEmptyStringSchema$
|
|
5342
|
-
conversationId: trimmedNonEmptyStringSchema$
|
|
5519
|
+
centerAgentProfileId: trimmedNonEmptyStringSchema$9,
|
|
5520
|
+
conversationId: trimmedNonEmptyStringSchema$9,
|
|
5343
5521
|
kind: literal("center_agent_conversation"),
|
|
5344
|
-
memberProfileId: trimmedNonEmptyStringSchema$
|
|
5345
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5522
|
+
memberProfileId: trimmedNonEmptyStringSchema$9,
|
|
5523
|
+
organizationId: trimmedNonEmptyStringSchema$9
|
|
5346
5524
|
}),
|
|
5347
5525
|
view: centerAgentContextManifestViewSchema
|
|
5348
5526
|
});
|
|
@@ -5351,9 +5529,9 @@ const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
|
|
|
5351
5529
|
principal: literal("authenticated_member"),
|
|
5352
5530
|
scope: literal("requester_private")
|
|
5353
5531
|
}),
|
|
5354
|
-
provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$
|
|
5532
|
+
provenance: strictObject({ auditEntryId: trimmedNonEmptyStringSchema$9 }),
|
|
5355
5533
|
receipt: strictObject({
|
|
5356
|
-
client: trimmedNonEmptyStringSchema$
|
|
5534
|
+
client: trimmedNonEmptyStringSchema$9.max(80),
|
|
5357
5535
|
estimatedTokens: number().int().nonnegative(),
|
|
5358
5536
|
id: loadReceiptIdSchema,
|
|
5359
5537
|
includedMessages: number().int().min(1).max(50),
|
|
@@ -5361,7 +5539,7 @@ const createCenterAgentContextLoadReceiptResponseSchema = strictObject({
|
|
|
5361
5539
|
selectedEntries: array(centerAgentContextLoadSelectedEntrySchema).min(1).max(50),
|
|
5362
5540
|
status: literal("loaded")
|
|
5363
5541
|
}),
|
|
5364
|
-
recordedAt: ISO_DATE_TIME_SCHEMA$
|
|
5542
|
+
recordedAt: ISO_DATE_TIME_SCHEMA$6,
|
|
5365
5543
|
schemaVersion: literal(CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION)
|
|
5366
5544
|
});
|
|
5367
5545
|
//#endregion
|
|
@@ -5606,7 +5784,7 @@ const messageChannelIdentityLinkConsumeResponseSchema = strictObject({
|
|
|
5606
5784
|
});
|
|
5607
5785
|
//#endregion
|
|
5608
5786
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-member-research.js
|
|
5609
|
-
const trimmedNonEmptyStringSchema$
|
|
5787
|
+
const trimmedNonEmptyStringSchema$8 = z$1.string().trim().min(1);
|
|
5610
5788
|
const isoDateTimeSchema$5 = z$1.iso.datetime({ offset: true });
|
|
5611
5789
|
const memberResearchTextSchema = z$1.string().trim().min(1).max(1e3);
|
|
5612
5790
|
const CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES = [
|
|
@@ -5633,8 +5811,8 @@ const centerAgentMemberResearchEvidenceSourceSchema = z$1.enum([
|
|
|
5633
5811
|
const centerAgentMemberResearchEvidenceItemSchema = z$1.strictObject({
|
|
5634
5812
|
date: z$1.iso.date(),
|
|
5635
5813
|
source: centerAgentMemberResearchEvidenceSourceSchema,
|
|
5636
|
-
sourceId: trimmedNonEmptyStringSchema$
|
|
5637
|
-
sourceName: trimmedNonEmptyStringSchema$
|
|
5814
|
+
sourceId: trimmedNonEmptyStringSchema$8.max(256),
|
|
5815
|
+
sourceName: trimmedNonEmptyStringSchema$8.max(120).optional(),
|
|
5638
5816
|
sourceUrl: z$1.url().max(2048).optional(),
|
|
5639
5817
|
text: memberResearchTextSchema
|
|
5640
5818
|
}).superRefine((item, context) => {
|
|
@@ -5673,7 +5851,7 @@ const centerAgentMemberResearchCoverageSchema = z$1.strictObject({
|
|
|
5673
5851
|
evidence: memberResearchTextSchema.max(500),
|
|
5674
5852
|
source: centerAgentMemberResearchCoverageSourceSchema,
|
|
5675
5853
|
status: centerAgentMemberResearchCoverageStatusSchema,
|
|
5676
|
-
timeRange: trimmedNonEmptyStringSchema$
|
|
5854
|
+
timeRange: trimmedNonEmptyStringSchema$8.max(120)
|
|
5677
5855
|
});
|
|
5678
5856
|
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
5857
|
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 +5900,12 @@ const centerAgentMemberResearchTaskStatusSchema = z$1.enum([
|
|
|
5722
5900
|
"failed"
|
|
5723
5901
|
]);
|
|
5724
5902
|
const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
5725
|
-
id: trimmedNonEmptyStringSchema$
|
|
5726
|
-
subjectUserId: trimmedNonEmptyStringSchema$
|
|
5727
|
-
subjectDisplayName: trimmedNonEmptyStringSchema$
|
|
5903
|
+
id: trimmedNonEmptyStringSchema$8,
|
|
5904
|
+
subjectUserId: trimmedNonEmptyStringSchema$8,
|
|
5905
|
+
subjectDisplayName: trimmedNonEmptyStringSchema$8,
|
|
5728
5906
|
position: z$1.number().int().positive(),
|
|
5729
5907
|
status: centerAgentMemberResearchTaskStatusSchema,
|
|
5730
|
-
failureCode: trimmedNonEmptyStringSchema$
|
|
5908
|
+
failureCode: trimmedNonEmptyStringSchema$8.nullable(),
|
|
5731
5909
|
startedAt: isoDateTimeSchema$5.nullable(),
|
|
5732
5910
|
finishedAt: isoDateTimeSchema$5.nullable()
|
|
5733
5911
|
}).superRefine((task, context) => {
|
|
@@ -5743,8 +5921,8 @@ const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
|
5743
5921
|
});
|
|
5744
5922
|
});
|
|
5745
5923
|
const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
5746
|
-
id: trimmedNonEmptyStringSchema$
|
|
5747
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
5924
|
+
id: trimmedNonEmptyStringSchema$8,
|
|
5925
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
5748
5926
|
scope: centerAgentMemberResearchScopeSchema,
|
|
5749
5927
|
status: centerAgentMemberResearchBatchStatusSchema,
|
|
5750
5928
|
totalCount: z$1.number().int().positive(),
|
|
@@ -5806,11 +5984,11 @@ const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
|
5806
5984
|
});
|
|
5807
5985
|
});
|
|
5808
5986
|
const startCenterAgentMemberResearchBodySchema = z$1.discriminatedUnion("scope", [z$1.strictObject({
|
|
5809
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
5987
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$8,
|
|
5810
5988
|
scope: z$1.literal("member"),
|
|
5811
|
-
subjectUserId: trimmedNonEmptyStringSchema$
|
|
5989
|
+
subjectUserId: trimmedNonEmptyStringSchema$8
|
|
5812
5990
|
}), z$1.strictObject({
|
|
5813
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
5991
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$8,
|
|
5814
5992
|
scope: z$1.literal("all")
|
|
5815
5993
|
})]);
|
|
5816
5994
|
const startCenterAgentMemberResearchResponseSchema = z$1.strictObject({ batch: centerAgentMemberResearchBatchSchema });
|
|
@@ -5820,7 +5998,7 @@ z$1.strictObject({
|
|
|
5820
5998
|
speakerMember: centerAgentToolSpeakerSchema
|
|
5821
5999
|
});
|
|
5822
6000
|
const getCenterAgentMemberResearchStatusResponseSchema = z$1.strictObject({
|
|
5823
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6001
|
+
organizationId: trimmedNonEmptyStringSchema$8,
|
|
5824
6002
|
latestBatch: centerAgentMemberResearchBatchSchema.nullable()
|
|
5825
6003
|
});
|
|
5826
6004
|
z$1.strictObject({ context: openMeldRequestContextSchema });
|
|
@@ -6252,7 +6430,7 @@ const CONNECTOR_APP_REQUEST_STATUSES = [
|
|
|
6252
6430
|
"available",
|
|
6253
6431
|
"declined"
|
|
6254
6432
|
];
|
|
6255
|
-
const trimmedNonEmptyStringSchema$
|
|
6433
|
+
const trimmedNonEmptyStringSchema$7 = string().trim().min(1);
|
|
6256
6434
|
const timestampMsSchema$1 = number().int().nonnegative();
|
|
6257
6435
|
const connectorCredentialValueSchema = string().min(1).max(8192);
|
|
6258
6436
|
const connectorAppRequestOptionalTextSchema = string().trim().min(1).max(2e3).nullable();
|
|
@@ -6271,30 +6449,30 @@ const connectorConnectionSchema = strictObject({
|
|
|
6271
6449
|
connectionName: connectorConnectionNameSchema,
|
|
6272
6450
|
createdAtMs: timestampMsSchema$1,
|
|
6273
6451
|
disconnectedAtMs: timestampMsSchema$1.nullable(),
|
|
6274
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6275
|
-
ownerDisplayName: trimmedNonEmptyStringSchema$
|
|
6452
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6453
|
+
ownerDisplayName: trimmedNonEmptyStringSchema$7,
|
|
6276
6454
|
scope: connectorConnectionScopeSchema.default("member"),
|
|
6277
6455
|
service: connectorServiceSchema,
|
|
6278
6456
|
status: connectorConnectionStatusSchema,
|
|
6279
6457
|
updatedAtMs: timestampMsSchema$1,
|
|
6280
|
-
userId: trimmedNonEmptyStringSchema$
|
|
6458
|
+
userId: trimmedNonEmptyStringSchema$7
|
|
6281
6459
|
});
|
|
6282
6460
|
strictObject({
|
|
6283
6461
|
connections: array(connectorConnectionSchema),
|
|
6284
|
-
currentUserId: trimmedNonEmptyStringSchema$
|
|
6285
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6462
|
+
currentUserId: trimmedNonEmptyStringSchema$7,
|
|
6463
|
+
organizationId: trimmedNonEmptyStringSchema$7
|
|
6286
6464
|
});
|
|
6287
6465
|
const connectorAppRequestSchema = strictObject({
|
|
6288
6466
|
availableAtMs: timestampMsSchema$1.nullable(),
|
|
6289
6467
|
createdAtMs: timestampMsSchema$1,
|
|
6290
6468
|
id: string().trim().min(1).max(128),
|
|
6291
6469
|
notifiedAtMs: timestampMsSchema$1.nullable(),
|
|
6292
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6470
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6293
6471
|
providerId: string().trim().min(1).max(160).nullable(),
|
|
6294
6472
|
providerName: string().trim().min(1).max(120),
|
|
6295
6473
|
requestedCapabilities: connectorAppRequestedCapabilitiesSchema,
|
|
6296
|
-
requesterMemberId: trimmedNonEmptyStringSchema$
|
|
6297
|
-
requesterUserId: trimmedNonEmptyStringSchema$
|
|
6474
|
+
requesterMemberId: trimmedNonEmptyStringSchema$7.nullable(),
|
|
6475
|
+
requesterUserId: trimmedNonEmptyStringSchema$7.nullable(),
|
|
6298
6476
|
source: connectorAppRequestSourceSchema,
|
|
6299
6477
|
status: connectorAppRequestStatusSchema,
|
|
6300
6478
|
updatedAtMs: timestampMsSchema$1,
|
|
@@ -6320,12 +6498,12 @@ strictObject({
|
|
|
6320
6498
|
});
|
|
6321
6499
|
strictObject({ request: connectorAppRequestSchema });
|
|
6322
6500
|
strictObject({
|
|
6323
|
-
currentUserId: trimmedNonEmptyStringSchema$
|
|
6324
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6501
|
+
currentUserId: trimmedNonEmptyStringSchema$7,
|
|
6502
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6325
6503
|
requests: array(connectorAppRequestSchema).max(500)
|
|
6326
6504
|
});
|
|
6327
6505
|
strictObject({
|
|
6328
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6506
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6329
6507
|
providers: array(strictObject({
|
|
6330
6508
|
authTypes: array(string().trim().min(1).max(80)).max(12),
|
|
6331
6509
|
categories: array(strictObject({
|
|
@@ -6355,12 +6533,12 @@ strictObject({
|
|
|
6355
6533
|
});
|
|
6356
6534
|
discriminatedUnion("status", [
|
|
6357
6535
|
strictObject({
|
|
6358
|
-
actorProfileId: trimmedNonEmptyStringSchema$
|
|
6536
|
+
actorProfileId: trimmedNonEmptyStringSchema$7,
|
|
6359
6537
|
installationId: githubAppInstallationIdSchema,
|
|
6360
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6538
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6361
6539
|
status: literal("valid"),
|
|
6362
6540
|
targetConnectionName: connectorConnectionNameSchema,
|
|
6363
|
-
userId: trimmedNonEmptyStringSchema$
|
|
6541
|
+
userId: trimmedNonEmptyStringSchema$7,
|
|
6364
6542
|
verificationConnectionName: connectorConnectionNameSchema
|
|
6365
6543
|
}),
|
|
6366
6544
|
strictObject({ status: literal("expired") }),
|
|
@@ -6368,10 +6546,10 @@ discriminatedUnion("status", [
|
|
|
6368
6546
|
]);
|
|
6369
6547
|
strictObject({
|
|
6370
6548
|
installationId: githubAppInstallationIdSchema,
|
|
6371
|
-
organizationId: trimmedNonEmptyStringSchema$
|
|
6549
|
+
organizationId: trimmedNonEmptyStringSchema$7,
|
|
6372
6550
|
status: literal("verifying"),
|
|
6373
6551
|
targetConnectionName: connectorConnectionNameSchema,
|
|
6374
|
-
userId: trimmedNonEmptyStringSchema$
|
|
6552
|
+
userId: trimmedNonEmptyStringSchema$7,
|
|
6375
6553
|
verificationConnectionName: connectorConnectionNameSchema
|
|
6376
6554
|
}).nullable();
|
|
6377
6555
|
strictObject({
|
|
@@ -6380,10 +6558,10 @@ strictObject({
|
|
|
6380
6558
|
});
|
|
6381
6559
|
strictObject({ connection: connectorConnectionSchema });
|
|
6382
6560
|
strictObject({
|
|
6383
|
-
expectedOrganizationId: trimmedNonEmptyStringSchema$
|
|
6561
|
+
expectedOrganizationId: trimmedNonEmptyStringSchema$7,
|
|
6384
6562
|
includeAuthorizationExpiry: literal("true").optional()
|
|
6385
6563
|
});
|
|
6386
|
-
strictObject({ userId: trimmedNonEmptyStringSchema$
|
|
6564
|
+
strictObject({ userId: trimmedNonEmptyStringSchema$7 });
|
|
6387
6565
|
strictObject({ connection: connectorConnectionSchema });
|
|
6388
6566
|
strictObject({
|
|
6389
6567
|
availableConnectionNames: array(connectorConnectionNameSchema).max(500),
|
|
@@ -6465,7 +6643,7 @@ const pluginAccessUpdateBodySchema = strictObject({
|
|
|
6465
6643
|
lazySchema(() => pluginAccessListRpcInputSchema.extend({ ...pluginAccessUpdateBodySchema.shape }));
|
|
6466
6644
|
//#endregion
|
|
6467
6645
|
//#region ../../packages/schemas/dist/schemas/http/gateway-error.js
|
|
6468
|
-
const trimmedNonEmptyStringSchema$
|
|
6646
|
+
const trimmedNonEmptyStringSchema$6 = z$1.string().trim().min(1);
|
|
6469
6647
|
const SPACE_ADDRESSING_TARGET_INVALID_ERROR_CODE = "space.addressing.target_invalid";
|
|
6470
6648
|
const gatewayErrorCodeSchema = z$1.enum([
|
|
6471
6649
|
"bad_request",
|
|
@@ -6586,8 +6764,8 @@ const gatewayErrorCodeSchema = z$1.enum([
|
|
|
6586
6764
|
]);
|
|
6587
6765
|
const gatewayErrorSchema = commonErrorSchema.extend({
|
|
6588
6766
|
code: gatewayErrorCodeSchema,
|
|
6589
|
-
requestId: trimmedNonEmptyStringSchema$
|
|
6590
|
-
upstreamCode: trimmedNonEmptyStringSchema$
|
|
6767
|
+
requestId: trimmedNonEmptyStringSchema$6,
|
|
6768
|
+
upstreamCode: trimmedNonEmptyStringSchema$6.optional()
|
|
6591
6769
|
});
|
|
6592
6770
|
const gatewayErrorEnvelopeSchema = z$1.strictObject({
|
|
6593
6771
|
ok: z$1.literal(false),
|
|
@@ -6602,144 +6780,6 @@ const identityImageMimeTypeSchema = z$1.enum([
|
|
|
6602
6780
|
"image/webp"
|
|
6603
6781
|
]);
|
|
6604
6782
|
//#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
6783
|
//#region ../../packages/schemas/dist/schemas/http/account-space-index.js
|
|
6744
6784
|
const ISO_DATE_TIME_SCHEMA$5 = z$1.iso.datetime({ offset: true });
|
|
6745
6785
|
const trimmedNonEmptyStringSchema$5 = z$1.string().trim().min(1);
|
|
@@ -7083,6 +7123,59 @@ const executeAgentProfileWorkRecoveryResponseSchema = z$1.strictObject({
|
|
|
7083
7123
|
status: z$1.literal("accepted")
|
|
7084
7124
|
});
|
|
7085
7125
|
//#endregion
|
|
7126
|
+
//#region ../../packages/schemas/dist/schemas/http/auth-device-authorization.js
|
|
7127
|
+
const BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
7128
|
+
const betterAuthDeviceAuthorizationCodeRequestSchema = z$1.object({
|
|
7129
|
+
client_id: z$1.string().min(1),
|
|
7130
|
+
scope: z$1.string().optional(),
|
|
7131
|
+
user_id: z$1.string().optional()
|
|
7132
|
+
});
|
|
7133
|
+
const betterAuthDeviceAuthorizationCodeResponseSchema = z$1.object({
|
|
7134
|
+
device_code: z$1.string().min(1),
|
|
7135
|
+
user_code: z$1.string().min(1),
|
|
7136
|
+
verification_uri: z$1.string().min(1),
|
|
7137
|
+
verification_uri_complete: z$1.string().min(1),
|
|
7138
|
+
expires_in: z$1.number().finite().positive(),
|
|
7139
|
+
interval: z$1.number().finite().positive()
|
|
7140
|
+
});
|
|
7141
|
+
const betterAuthDeviceAuthorizationStatusSchema = z$1.enum([
|
|
7142
|
+
"pending",
|
|
7143
|
+
"approved",
|
|
7144
|
+
"denied"
|
|
7145
|
+
]);
|
|
7146
|
+
const betterAuthDeviceAuthorizationClaimResponseSchema = z$1.object({
|
|
7147
|
+
user_code: z$1.string().min(1),
|
|
7148
|
+
status: betterAuthDeviceAuthorizationStatusSchema
|
|
7149
|
+
});
|
|
7150
|
+
const betterAuthDeviceAuthorizationDecisionRequestSchema = z$1.object({ userCode: z$1.string().min(1) });
|
|
7151
|
+
const betterAuthDeviceAuthorizationDecisionResponseSchema = z$1.object({ success: z$1.boolean() });
|
|
7152
|
+
const betterAuthDeviceAuthorizationTokenRequestSchema = z$1.object({
|
|
7153
|
+
grant_type: z$1.literal(BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE),
|
|
7154
|
+
device_code: z$1.string().min(1),
|
|
7155
|
+
client_id: z$1.string().min(1)
|
|
7156
|
+
});
|
|
7157
|
+
const betterAuthDeviceAuthorizationTokenResponseSchema = z$1.object({
|
|
7158
|
+
access_token: z$1.string().min(1),
|
|
7159
|
+
token_type: z$1.string().min(1),
|
|
7160
|
+
expires_in: z$1.number().finite().positive(),
|
|
7161
|
+
scope: z$1.string()
|
|
7162
|
+
});
|
|
7163
|
+
const betterAuthDeviceAuthorizationErrorResponseSchema = z$1.object({
|
|
7164
|
+
error: z$1.string().optional(),
|
|
7165
|
+
error_description: z$1.string().optional(),
|
|
7166
|
+
message: z$1.string().optional(),
|
|
7167
|
+
detail: z$1.string().optional()
|
|
7168
|
+
});
|
|
7169
|
+
const betterAuthSessionUserSnapshotSchema = z$1.object({
|
|
7170
|
+
id: z$1.string().optional(),
|
|
7171
|
+
email: z$1.string().optional(),
|
|
7172
|
+
name: z$1.string().optional()
|
|
7173
|
+
});
|
|
7174
|
+
const betterAuthSessionSnapshotResponseSchema = z$1.nullable(z$1.object({
|
|
7175
|
+
session: z$1.unknown().optional(),
|
|
7176
|
+
user: betterAuthSessionUserSnapshotSchema.nullable()
|
|
7177
|
+
}));
|
|
7178
|
+
//#endregion
|
|
7086
7179
|
//#region ../../packages/schemas/dist/schemas/http/catchup-response.js
|
|
7087
7180
|
/**
|
|
7088
7181
|
* Canonical catch-up response shape across Core/Gateway/CLI.
|
|
@@ -13789,6 +13882,224 @@ function buildLegacyDefaultMentionAliasSeed(input) {
|
|
|
13789
13882
|
}
|
|
13790
13883
|
//#endregion
|
|
13791
13884
|
//#region ../../packages/api-client/dist/index.js
|
|
13885
|
+
const FALLBACK_GATEWAY_HTTP_ERROR_CODE = "gateway.http_error";
|
|
13886
|
+
const INVALID_RESPONSE_ERROR_CODE = "gateway.invalid_response";
|
|
13887
|
+
const GENERIC_NETWORK_ERROR_CODES = ["network.timeout", "network.request_failed"];
|
|
13888
|
+
const KNOWN_API_CLIENT_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
13889
|
+
...gatewayErrorCodeSchema.options,
|
|
13890
|
+
FALLBACK_GATEWAY_HTTP_ERROR_CODE,
|
|
13891
|
+
INVALID_RESPONSE_ERROR_CODE,
|
|
13892
|
+
...GENERIC_NETWORK_ERROR_CODES
|
|
13893
|
+
]);
|
|
13894
|
+
var OpenMeldApiClientHttpError = class extends Error {
|
|
13895
|
+
code;
|
|
13896
|
+
requestId;
|
|
13897
|
+
status;
|
|
13898
|
+
rawBody;
|
|
13899
|
+
upstreamCode;
|
|
13900
|
+
constructor(input) {
|
|
13901
|
+
super(input.message);
|
|
13902
|
+
this.name = "OpenMeldApiClientHttpError";
|
|
13903
|
+
this.code = input.code;
|
|
13904
|
+
this.requestId = normalizeOptionalText(input.requestId);
|
|
13905
|
+
this.status = input.status;
|
|
13906
|
+
this.rawBody = input.rawBody;
|
|
13907
|
+
this.upstreamCode = normalizeOptionalText(input.upstreamCode);
|
|
13908
|
+
}
|
|
13909
|
+
};
|
|
13910
|
+
var OpenMeldApiClientInvalidResponseError = class extends Error {
|
|
13911
|
+
code = INVALID_RESPONSE_ERROR_CODE;
|
|
13912
|
+
operation;
|
|
13913
|
+
requestId;
|
|
13914
|
+
status;
|
|
13915
|
+
rawBody;
|
|
13916
|
+
schemaIssueMessage;
|
|
13917
|
+
schemaIssuePath;
|
|
13918
|
+
upstreamCode = null;
|
|
13919
|
+
constructor(input) {
|
|
13920
|
+
super(input.message);
|
|
13921
|
+
this.name = "OpenMeldApiClientInvalidResponseError";
|
|
13922
|
+
this.operation = input.operation;
|
|
13923
|
+
this.requestId = normalizeOptionalText(input.requestId);
|
|
13924
|
+
this.status = input.status;
|
|
13925
|
+
this.rawBody = input.rawBody;
|
|
13926
|
+
this.schemaIssueMessage = normalizeOptionalText(input.schemaIssue?.message);
|
|
13927
|
+
this.schemaIssuePath = formatSchemaIssuePath(input.schemaIssue);
|
|
13928
|
+
}
|
|
13929
|
+
};
|
|
13930
|
+
function toStructuredApiClientFailure(error) {
|
|
13931
|
+
if (error instanceof OpenMeldApiClientHttpError) return {
|
|
13932
|
+
code: error.code,
|
|
13933
|
+
message: normalizeFailureMessage(error.message),
|
|
13934
|
+
requestId: error.requestId,
|
|
13935
|
+
status: error.status,
|
|
13936
|
+
upstreamCode: error.upstreamCode
|
|
13937
|
+
};
|
|
13938
|
+
if (error instanceof OpenMeldApiClientInvalidResponseError) return withInvalidResponseDiagnostics({
|
|
13939
|
+
code: error.code,
|
|
13940
|
+
message: normalizeFailureMessage(error.message),
|
|
13941
|
+
requestId: error.requestId,
|
|
13942
|
+
status: error.status,
|
|
13943
|
+
upstreamCode: null
|
|
13944
|
+
}, {
|
|
13945
|
+
schemaIssueMessage: error.schemaIssueMessage,
|
|
13946
|
+
schemaIssuePath: error.schemaIssuePath
|
|
13947
|
+
});
|
|
13948
|
+
return withInvalidResponseDiagnostics({
|
|
13949
|
+
code: readGenericErrorCode(error),
|
|
13950
|
+
message: normalizeFailureMessage(readFailureMessage(error)),
|
|
13951
|
+
requestId: readOptionalObjectTextField(error, "requestId"),
|
|
13952
|
+
status: readOptionalObjectStatus(error),
|
|
13953
|
+
upstreamCode: readOptionalObjectTextField(error, "upstreamCode")
|
|
13954
|
+
}, {
|
|
13955
|
+
schemaIssueMessage: readOptionalObjectTextField(error, "schemaIssueMessage"),
|
|
13956
|
+
schemaIssuePath: readOptionalObjectTextField(error, "schemaIssuePath")
|
|
13957
|
+
});
|
|
13958
|
+
}
|
|
13959
|
+
function readApiClientTextResponse(input) {
|
|
13960
|
+
return input.response.text().then((raw) => {
|
|
13961
|
+
assertApiClientResponseOk({
|
|
13962
|
+
response: input.response,
|
|
13963
|
+
raw
|
|
13964
|
+
});
|
|
13965
|
+
return raw;
|
|
13966
|
+
});
|
|
13967
|
+
}
|
|
13968
|
+
async function readApiClientJsonResponse(input) {
|
|
13969
|
+
let raw;
|
|
13970
|
+
try {
|
|
13971
|
+
raw = await input.response.text();
|
|
13972
|
+
} catch (error) {
|
|
13973
|
+
const bodyReadError = new Error(toErrorMessage$1(error), { cause: error });
|
|
13974
|
+
bodyReadError.code = "network.request_failed";
|
|
13975
|
+
bodyReadError.status = input.response.status;
|
|
13976
|
+
throw bodyReadError;
|
|
13977
|
+
}
|
|
13978
|
+
assertApiClientResponseOk({
|
|
13979
|
+
response: input.response,
|
|
13980
|
+
raw
|
|
13981
|
+
});
|
|
13982
|
+
const parsed = input.schema.safeParse(parseJsonResponse(raw));
|
|
13983
|
+
if (!parsed.success) throw new OpenMeldApiClientInvalidResponseError({
|
|
13984
|
+
message: input.invalidMessage,
|
|
13985
|
+
operation: input.operation,
|
|
13986
|
+
requestId: input.response.headers.get(OPENMELD_HEADER_REQUEST_ID),
|
|
13987
|
+
status: input.response.status,
|
|
13988
|
+
rawBody: raw,
|
|
13989
|
+
schemaIssue: parsed.error?.issues?.[0] ?? null
|
|
13990
|
+
});
|
|
13991
|
+
return parsed.data;
|
|
13992
|
+
}
|
|
13993
|
+
function assertApiClientResponseOk(input) {
|
|
13994
|
+
if (input.response.ok) return;
|
|
13995
|
+
throw parseApiClientErrorResponse(input);
|
|
13996
|
+
}
|
|
13997
|
+
function parseApiClientErrorResponse(input) {
|
|
13998
|
+
const parsed = gatewayErrorEnvelopeSchema.safeParse(parseJsonResponse(input.raw));
|
|
13999
|
+
const headerRequestId = normalizeOptionalText(input.response.headers.get(OPENMELD_HEADER_REQUEST_ID));
|
|
14000
|
+
if (parsed.success) return new OpenMeldApiClientHttpError({
|
|
14001
|
+
code: parsed.data.error.code,
|
|
14002
|
+
message: parsed.data.error.message,
|
|
14003
|
+
requestId: parsed.data.error.requestId || headerRequestId,
|
|
14004
|
+
status: input.response.status,
|
|
14005
|
+
rawBody: input.raw,
|
|
14006
|
+
upstreamCode: parsed.data.error.upstreamCode ?? null
|
|
14007
|
+
});
|
|
14008
|
+
return new OpenMeldApiClientHttpError({
|
|
14009
|
+
code: FALLBACK_GATEWAY_HTTP_ERROR_CODE,
|
|
14010
|
+
message: normalizeOptionalText(input.raw) ?? `Gateway request failed with HTTP ${input.response.status}.`,
|
|
14011
|
+
requestId: headerRequestId,
|
|
14012
|
+
status: input.response.status,
|
|
14013
|
+
rawBody: input.raw,
|
|
14014
|
+
upstreamCode: null
|
|
14015
|
+
});
|
|
14016
|
+
}
|
|
14017
|
+
function parseJsonResponse(raw) {
|
|
14018
|
+
if (!raw.trim()) return null;
|
|
14019
|
+
try {
|
|
14020
|
+
return JSON.parse(raw);
|
|
14021
|
+
} catch {
|
|
14022
|
+
return null;
|
|
14023
|
+
}
|
|
14024
|
+
}
|
|
14025
|
+
function normalizeOptionalText(value) {
|
|
14026
|
+
const normalized = String(value ?? "").trim();
|
|
14027
|
+
return normalized.length > 0 ? normalized : null;
|
|
14028
|
+
}
|
|
14029
|
+
function toErrorMessage$1(error) {
|
|
14030
|
+
if (error instanceof Error) return normalizeOptionalText(error.message) ?? error.name;
|
|
14031
|
+
return normalizeOptionalText(error) ?? "request failed";
|
|
14032
|
+
}
|
|
14033
|
+
function formatSchemaIssuePath(issue) {
|
|
14034
|
+
const path = issue?.path;
|
|
14035
|
+
if (!path || path.length === 0) return null;
|
|
14036
|
+
return path.map((part) => String(part)).join(".");
|
|
14037
|
+
}
|
|
14038
|
+
function withInvalidResponseDiagnostics(failure, diagnostics) {
|
|
14039
|
+
if (!(diagnostics.schemaIssueMessage || diagnostics.schemaIssuePath)) return failure;
|
|
14040
|
+
return {
|
|
14041
|
+
...failure,
|
|
14042
|
+
schemaIssueMessage: diagnostics.schemaIssueMessage,
|
|
14043
|
+
schemaIssuePath: diagnostics.schemaIssuePath
|
|
14044
|
+
};
|
|
14045
|
+
}
|
|
14046
|
+
function normalizeFailureMessage(value) {
|
|
14047
|
+
return normalizeOptionalText(value) ?? "Unknown error.";
|
|
14048
|
+
}
|
|
14049
|
+
function readFailureMessage(value) {
|
|
14050
|
+
if (value instanceof Error) return normalizeOptionalText(value.message);
|
|
14051
|
+
if (typeof value === "string") return normalizeOptionalText(value);
|
|
14052
|
+
if (value && typeof value === "object" && "message" in value) {
|
|
14053
|
+
const message = value.message;
|
|
14054
|
+
return typeof message === "string" ? normalizeOptionalText(message) : null;
|
|
14055
|
+
}
|
|
14056
|
+
if (value === null || value === void 0 || typeof value === "object") return null;
|
|
14057
|
+
return normalizeOptionalText(value);
|
|
14058
|
+
}
|
|
14059
|
+
function readOptionalObjectTextField(value, fieldName) {
|
|
14060
|
+
if (!value || typeof value !== "object" || !(fieldName in value)) return null;
|
|
14061
|
+
const fieldValue = value[fieldName];
|
|
14062
|
+
return typeof fieldValue === "string" ? normalizeOptionalText(fieldValue) : null;
|
|
14063
|
+
}
|
|
14064
|
+
function readOptionalObjectStatus(value) {
|
|
14065
|
+
if (!value || typeof value !== "object" || !("status" in value)) return null;
|
|
14066
|
+
const status = value.status;
|
|
14067
|
+
return typeof status === "number" && Number.isInteger(status) ? status : null;
|
|
14068
|
+
}
|
|
14069
|
+
function readGenericErrorCode(value) {
|
|
14070
|
+
if (!value || typeof value !== "object" || !("code" in value)) return null;
|
|
14071
|
+
const normalized = normalizeOptionalText(value.code ?? null);
|
|
14072
|
+
if (!(normalized && KNOWN_API_CLIENT_ERROR_CODES.has(normalized))) return null;
|
|
14073
|
+
return normalized;
|
|
14074
|
+
}
|
|
14075
|
+
async function readAccountOrganizationContext(client) {
|
|
14076
|
+
const response = await client.requestResponse({
|
|
14077
|
+
url: ACCOUNT_ORGANIZATION_CONTEXT_PATH,
|
|
14078
|
+
method: "GET",
|
|
14079
|
+
operation: "account.organizationContext.read"
|
|
14080
|
+
});
|
|
14081
|
+
if (response.status === 401) return null;
|
|
14082
|
+
return readApiClientJsonResponse({
|
|
14083
|
+
operation: "account.organizationContext.read",
|
|
14084
|
+
response,
|
|
14085
|
+
schema: accountOrganizationContextSchema,
|
|
14086
|
+
invalidMessage: "Invalid account Organization context response."
|
|
14087
|
+
});
|
|
14088
|
+
}
|
|
14089
|
+
async function readAccountSession(client) {
|
|
14090
|
+
const response = await client.requestResponse({
|
|
14091
|
+
url: ACCOUNT_SESSION_PATH,
|
|
14092
|
+
method: "GET",
|
|
14093
|
+
operation: "account.session.read"
|
|
14094
|
+
});
|
|
14095
|
+
if (response.status === 401) return null;
|
|
14096
|
+
return readApiClientJsonResponse({
|
|
14097
|
+
operation: "account.session.read",
|
|
14098
|
+
response,
|
|
14099
|
+
schema: accountSessionSchema,
|
|
14100
|
+
invalidMessage: "Invalid account session response."
|
|
14101
|
+
});
|
|
14102
|
+
}
|
|
13792
14103
|
const TRAILING_SLASHES_REGEX = /\/+$/;
|
|
13793
14104
|
const ROOT_PATH_REGEX = /^\/+$/;
|
|
13794
14105
|
function normalizeApiBaseUrl(baseUrl) {
|
|
@@ -14650,196 +14961,18 @@ function buildAuditJournalUrl(input) {
|
|
|
14650
14961
|
if (input.actionSet !== void 0) url.searchParams.set("actionSet", input.actionSet);
|
|
14651
14962
|
return `${url.pathname}${url.search}`;
|
|
14652
14963
|
}
|
|
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
|
|
14964
|
+
async function readCliRelease(client) {
|
|
14965
|
+
return readApiClientJsonResponse({
|
|
14966
|
+
response: await client.requestResponse({
|
|
14967
|
+
url: CLI_RELEASE_PATH,
|
|
14968
|
+
method: "GET",
|
|
14969
|
+
operation: "cli.release.read"
|
|
14970
|
+
}),
|
|
14971
|
+
operation: "cli.release.read",
|
|
14972
|
+
schema: cliReleaseSchema,
|
|
14973
|
+
invalidMessage: "Invalid CLI release response."
|
|
14783
14974
|
});
|
|
14784
14975
|
}
|
|
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
14976
|
const RESERVED_HEADERS = new Set([
|
|
14844
14977
|
"authorization",
|
|
14845
14978
|
OPENMELD_HEADER_AGENT_CONTROLLER_CONVERSATION_ID,
|
|
@@ -14947,6 +15080,19 @@ function normalizeHeaderRecord(headers) {
|
|
|
14947
15080
|
}
|
|
14948
15081
|
return normalized;
|
|
14949
15082
|
}
|
|
15083
|
+
/** The authenticated client's explicit connection action approves an independent Computer session. */
|
|
15084
|
+
async function createComputerAuthorizationGrant(request) {
|
|
15085
|
+
const codeResult = betterAuthDeviceAuthorizationCodeResponseSchema.safeParse(await request("/device/code", "POST", betterAuthDeviceAuthorizationCodeRequestSchema.parse({ client_id: "openmeld-cli" })));
|
|
15086
|
+
if (!codeResult.success) throw new Error("Auth returned an invalid computer authorization response.");
|
|
15087
|
+
const code = codeResult.data;
|
|
15088
|
+
if (!betterAuthDeviceAuthorizationClaimResponseSchema.safeParse(await request(`/device?user_code=${encodeURIComponent(code.user_code)}`, "GET")).success) throw new Error("Auth returned an invalid computer authorization claim.");
|
|
15089
|
+
const approval = betterAuthDeviceAuthorizationDecisionResponseSchema.safeParse(await request("/device/approve", "POST", betterAuthDeviceAuthorizationDecisionRequestSchema.parse({ userCode: code.user_code })));
|
|
15090
|
+
if (!(approval.success && approval.data.success)) throw new Error("Auth did not approve this computer authorization.");
|
|
15091
|
+
return {
|
|
15092
|
+
deviceCode: code.device_code,
|
|
15093
|
+
expiresIn: code.expires_in
|
|
15094
|
+
};
|
|
15095
|
+
}
|
|
14950
15096
|
const CURRENT_COMPUTER_FILE_ACCESS_PATH = "/v1/local-runtimes/current/file-access";
|
|
14951
15097
|
function buildComputerFileAccessReadPath(expectedDeviceId) {
|
|
14952
15098
|
const searchParams = new URLSearchParams({ expectedDeviceId });
|
|
@@ -18868,13 +19014,14 @@ async function readOrUpdateSpaceMessagePins(client, input) {
|
|
|
18868
19014
|
}
|
|
18869
19015
|
function createFetchTransport(input) {
|
|
18870
19016
|
const defaultTimeoutMs = normalizeOptionalTimeoutMs(input.defaultTimeoutMs);
|
|
19017
|
+
const fetchImpl = input.fetch;
|
|
18871
19018
|
return async function fetchTransport(request) {
|
|
18872
19019
|
const timeoutMs = normalizeOptionalTimeoutMs(request.timeoutMs) ?? defaultTimeoutMs;
|
|
18873
19020
|
const timeoutSignal = timeoutMs === void 0 ? null : AbortSignal.timeout(timeoutMs);
|
|
18874
19021
|
const signals = [request.init?.signal, timeoutSignal].filter((signal) => signal != null);
|
|
18875
19022
|
const signal = signals.length > 1 ? AbortSignal.any(signals) : signals[0];
|
|
18876
19023
|
try {
|
|
18877
|
-
return await
|
|
19024
|
+
return await fetchImpl(request.url, {
|
|
18878
19025
|
...request.init,
|
|
18879
19026
|
signal
|
|
18880
19027
|
});
|
|
@@ -18929,6 +19076,6 @@ function shouldWrapNetworkRequestError(error) {
|
|
|
18929
19076
|
return message.includes("fetch failed") || message.includes("failed to fetch") || message.includes("network request failed");
|
|
18930
19077
|
}
|
|
18931
19078
|
//#endregion
|
|
18932
|
-
export { buildLocalFolderPickerPath as $,
|
|
19079
|
+
export { buildLocalFolderPickerPath as $, observabilityWakeTraceSelectorSchema as $n, spaceMemberKindSchema as $r, createProfileSpaceHistoryApi as $t, buildCurrentOrganizationDirectoryPath as A, DAEMON_STREAM_KEEPALIVE_PING as An, submitFeedbackIssueResponseSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Bn, agentActivityEventSchema as Br, createFeedbackApi as Bt, buildCenterAgentSessionPath as C, computerFileAccessPolicyInputSchema as Ci, toStructuredApiClientFailure as Cn, organizationSkillBundleSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, updateSpaceMeta as Dn, organizationDirectoryResponseSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, updateSpaceFileEntry as En, stringifyOrganizationSkillBundleCanonicalJson as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, parseServerErrorFrame as Fn, pauseCenterAgentRoutineResponseSchema as Fr, createComputerAuthorizationGrant as Ft, buildFeedbackIssueSubmissionPath as G, pluginActionRequestSchema as Gn, leaveSpaceResponseSchema as Gr, createLocalRuntimeExpectedRoutesApi as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, toErrorMessage$2 as Hn, agentActivitySessionStatusSchema as Hr, createInboxApi as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, resolveCustomMentionAliasOverride as In, resumeCenterAgentRoutineResponseSchema as Ir, createComputerFileAccessApi as It, buildInboxItemReadPath as J, projectSpaceDispatchTraceFinalVisibleOutcome as Jn, resolvedSpaceMemberProfileSchema as Jr, createOrganizationDocumentsApi as Jt, buildInboxItemDismissPath as K, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Kn, postSpaceMembersResponseSchema as Kr, createOpenMeldApiClient as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, OPENMELD_HEADER_PROFILE_ID as Ln, updateCenterAgentRoutineResponseSchema as Lr, createConfigApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, MAX_TEXT_LENGTH as Mn, deleteCenterAgentRoutineResponseSchema as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, parseEnvelope as Nn, listCenterAgentRoutineRunsResponseSchema as Nr, createAgentProfileWorkRecoveryApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, uploadSpaceAttachment as On, organizationComputersResponseSchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, parseIncoming as Pn, listCenterAgentRoutinesResponseSchema as Pr, createCenterAgentApi as Pt, buildInboxSummaryPath as Q, spaceDispatchTraceResponseSchema as Qn, spaceMemberDirectorySchema as Qr, createPrepareReadinessApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as Rn, AGENT_ACTIVITY_EVENT_MAX_BYTES as Rr, createCurrentDeviceApi as Rt, buildCenterAgentProfilePath as S, computerFileAccessDaemonFrameSchema as Si, setSpaceAccessMode as Sn, listOrganizationSkillsResponseSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, toCompatibleSpaceAddressingRequestWireValue as Ti, updateSpaceFileContent as Tn, organizationSkillSummarySchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, getSpaceUpdatesResponseSchema as Un, agentActivitySnapshotQuerySchema as Ur, createLocalFolderPickerApi as Ut, buildCurrentOrganizationSpacesPath as V, buildOpenMeldRequestContextHeaders as Vn, agentActivityProviderSchema as Vr, createFetchTransport as Vt, buildDirectMessageSpacePath as W, spaceEntryTargetSchema as Wn, agentActivitySnapshotResponseSchema as Wr, createLocalProjectControlApi as Wt, buildInboxPath as X, spaceDispatchTraceAttemptStatusSchema as Xn, spaceMemberDirectoryAllowedRelationsSchema as Xr, createOrganizationUsageApi as Xt, buildInboxMarkAllReadPath as Y, resolveSpaceDispatchTraceRootCause as Yn, spaceMemberAgentWakeAvailabilitySchema as Yr, createOrganizationSkillsApi as Yt, buildInboxPreferencesPath as Z, spaceDispatchTraceDispatchStatusSchema as Zn, spaceMemberDirectoryEntrySchema as Zr, createPluginsApi as Zt, buildCenterAgentDirectMessageSpacePath as _, listProjectsResponseSchema as _i, readCliRelease as _n, organizationSpaceDirectoryWithMemberCountsResponseSchema as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, observedLocalAgentSessionSchema as ai, createServiceConnectionEvidenceApi as an, BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as bi, resolveAccountSpaceIndexGatewayHost as bn, spaceMetaSchema as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, agentControllerPermissionModeSchema as ci, downloadSpaceFileContent as cn, betterAuthDeviceAuthorizationErrorResponseSchema as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, serviceConnectionEvidenceJournalSchema as di, listSpaceFileRevisions as dn, betterAuthSessionSnapshotResponseSchema as dr, buildOrganizationSkillsPath as dt, agentActivityInventorySessionOriginSchema as ei, createProfilesApi as en, projectObservabilityWakeCorrelation as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, localProjectControlConnectionSchema as fi, listSpaceFiles as fn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, createProjectResponseSchema as gi, readAccountSession as gn, modelCatalogSchema as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, archiveProjectResponseSchema as hi, readAccountOrganizationContext as hn, gatewayErrorEnvelopeSchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, localAgentSessionProviderSchema as ii, createRuntimeReportingApi as in, summarizeComputerFileAccessPolicy as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, DAEMON_STREAM_KEEPALIVE_PONG as jn, createCenterAgentRoutineResponseSchema as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, uploadSpaceFile as kn, submitFeedbackIssueRequestSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, agentControllerCollaborationModeSchema as li, getModelCatalog as ln, betterAuthDeviceAuthorizationTokenRequestSchema as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, localProjectControlDiscoverProjectsResponseSchema as mi, publicSpaceUrls as mn, createAgentProfileCreationRequestBodySchema as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivitySessionInventoryQuerySchema as ni, createReasoningStreamApi as nn, ownerComputerDiagnosticsSchema as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, centerAgentToolSpeakerSchema as oi, createSpaceApi as on, betterAuthDeviceAuthorizationCodeRequestSchema as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, localProjectControlDaemonFrameSchema as pi, normalizeApiBaseUrl as pn, agentProfileCreationConfigurationSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as qn, removeSpaceMembersResponseSchema as qr, createOrganizationApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, agentActivitySessionInventoryResponseSchema as ri, createRoutinesApi as rn, projectOwnerComputerLocalRuntimes as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, openCodePermissionConfigSchema as si, createSpaceFolder as sn, betterAuthDeviceAuthorizationCodeResponseSchema as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, agentActivityInventorySessionStatusSchema as ti, createProjectsApi as tn, submitAgentControllerTaskLifecycleEventItemSchema as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, serviceConnectionEvidenceEventSchema as ui, getSpaceFile as un, betterAuthDeviceAuthorizationTokenResponseSchema as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, projectSchema as vi, readOrUpdateSpaceFilePins as vn, resolveInitialSpaceAccessMode as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, computerFileAccessPolicySchema as wi, trashSpaceFileEntry as wn, organizationSkillReleaseSummarySchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, OPENMELD_RUNTIME_CAPABILITIES_HEADER as xi, resolveProfileSpaceHistoryGatewayHost as xn, getOrganizationSkillResponseSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, updateProjectResponseSchema as yi, readOrUpdateSpaceMessagePins as yn, spaceCreatorSchema as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, OPENMELD_HEADER_REQUEST_ID as zn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as zr, createDirectMessageApi as zt };
|
|
18933
19080
|
|
|
18934
|
-
//# sourceMappingURL=dist-
|
|
19081
|
+
//# sourceMappingURL=dist-D-kJdWZE.js.map
|