openmeld 0.3.75 → 0.3.77
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-QtGOjLOa.js → add-me-membership-DKxk_mJH.js} +2 -2
- package/dist/{add-me-membership-QtGOjLOa.js.map → add-me-membership-DKxk_mJH.js.map} +1 -1
- package/dist/{api-client-foundation-SDttHQRB.js → api-client-foundation-eEhPX63-.js} +3 -3
- package/dist/{api-client-foundation-SDttHQRB.js.map → api-client-foundation-eEhPX63-.js.map} +1 -1
- package/dist/{auth-session-zqpRQEFv.js → auth-session-BZgsNHJA.js} +2 -2
- package/dist/{auth-session-zqpRQEFv.js.map → auth-session-BZgsNHJA.js.map} +1 -1
- package/dist/{command-DJ77yEgh.js → command-DCsqEvt_.js} +10 -10
- package/dist/{command-DJ77yEgh.js.map → command-DCsqEvt_.js.map} +1 -1
- package/dist/{dist-D3kcxGqs.js → dist-k89N2rz0.js} +383 -162
- package/dist/dist-k89N2rz0.js.map +1 -0
- package/dist/openmeld.js +43 -11
- package/dist/openmeld.js.map +1 -1
- package/dist/{runtime-transport-BxhzIxn4.js → runtime-transport-Bs6YfTqj.js} +2 -1
- package/dist/runtime-transport-Bs6YfTqj.js.map +1 -0
- package/package.json +2 -2
- package/skills/openmeld-cli/SKILL.md +46 -0
- package/skills/openmeld-cli/references/commands.md +11 -0
- package/dist/dist-D3kcxGqs.js.map +0 -1
- package/dist/runtime-transport-BxhzIxn4.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { cn as agentControllerRefSchema, hn as __exportAll, tn as runtimeTransportModeSchema } from "./base-url-KfrIdedc.js";
|
|
4
|
-
import { $ as localFolderPickerResultSchema, $n as organizationInformationProtectionPolicyResponseSchema, At as spaceAttachmentDescriptorSchema, Bn as runtimeCoordinatorExecutionCreationDiagnosticSchema, Bt as localAgentInstallationOptionSchema, Ct as signalStatusDataSchema, Dr as openMeldNavigationTargetSchema, Er as computerSetupModeSchema, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema, Ft as spaceMessageAttachmentSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gn as spaceTraceExecutionIdentityProjectionSchema, Hn as runtimeCoordinatorExecutionRecordSchema, I as runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema, In as postSpaceWakeStopBodySchema, It as spaceMessageAttachmentsSchema, Jn as spacePasswordSchema, Jt as spaceThreadContextSchema, Kn as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, L as runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema, Ln as postSpaceWakeStopResponseSchema, Lt as conversationCompactionMarkerSchema, M as runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema, Mn as localComponentUpdatePolicySchema, Mt as spaceAttachmentFileNameSchema, N as runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema, Nn as localComponentUpdateProjectionSchema, Nt as spaceAttachmentMimeTypeSchema, Or as openMeldWebUrlSchema, P as runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema, Pn as localComponentUpdateStatusSchema, Pt as spaceAttachmentSizeBytesSchema, Q as localFolderPickerRequestSchema, Qn as spaceMentionLabelSourceSchema, R as runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema, Rn as clientMessageIdSchema$1, Sn as agentInteractionPendingSummarySchema, Tn as agentInteractionResponseSchema, Tt as signalTextDataSchema, Ut as openMeldDaemonSyncRouteCatalogPayloadSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vn as runtimeCoordinatorExecutionEventSchema, Xt as spaceThreadSchema, Yt as spaceThreadEventSchema, Zn as spaceMentionLabelSchema, Zt as spaceThreadSignalPlacementSchema, _n as spaceAgentStreamPartFrameSchema, _r as nonEmptyTrimmedStringFromUnknown, an as workingLanguageTagSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceAgentStreamTerminalFrameSchema, br as MAX_TEXT_LENGTH$1, cr as agentProfileIdSchema, ct as controllerAgentTaskHandleSchema, dn as messageEnvelopeSchema, dr as profileKindSchema, en as resultArchivePolicySchema, er as organizationProtectedInformationSchema, et as localFolderPathSchema, fr as profileSchema, gn as spaceAgentStreamDeltaFrameSchema, gr as finiteIntegerNumber, hn as agentStreamToolPartSchema, hr as uuidProfileIdSchema, in as workingLanguageGuidanceSchema, ir as inspectExecutionRecoveryResponseSchema, it as agentTaskHandleSchema, j as runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema, jt as spaceAttachmentDimensionSchema, lt as spaceWakeAgentTaskHandleSchema, mn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, mr as profileWorkspaceModeSchema, n as daemonExecutionCompatibilitySchema, nn as spacePublicationModeSchema, nr as executeExecutionRecoveryBodySchema, nt as agentTaskCompletionConditionSchema, on as targetWakeLifecycleIdentitySchema, or as openMeldRequestContextSchema, ot as areAgentTaskTerminalOutcomesEqual, pr as profileWorkingDirectorySchema, qn as normalizeSpacePasswordText, qt as dispatchExecutionSchema, rn as spaceDispatchPolicySchema, rr as executeExecutionRecoveryResponseSchema, rt as agentTaskCompletionObservationSchema, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceAllowedActionsSchema, tr as updateOrganizationInformationProtectionPolicyBodySchema, tt as agentDelegationSnapshotSchema, ur as openMeldRuntimeProfileIdSchema, vn as spaceAgentStreamPresenceSchema, vr as optionalBooleanQuerySchema, wt as signalSystemNoticeDataSchema, xt as centerAgentTaskReferenceSchema, yn as spaceAgentStreamSnapshotSchema, yr as trimmedStringFromUnknown, z as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, zt as centerAgentInteractionSourceSchema } from "./runtime-transport-
|
|
4
|
+
import { $ as localFolderPickerResultSchema, $n as organizationInformationProtectionPolicyResponseSchema, At as spaceAttachmentDescriptorSchema, Bn as runtimeCoordinatorExecutionCreationDiagnosticSchema, Bt as localAgentInstallationOptionSchema, Ct as signalStatusDataSchema, Dr as openMeldNavigationTargetSchema, Er as computerSetupModeSchema, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema, Ft as spaceMessageAttachmentSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gn as spaceTraceExecutionIdentityProjectionSchema, Hn as runtimeCoordinatorExecutionRecordSchema, I as runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema, In as postSpaceWakeStopBodySchema, It as spaceMessageAttachmentsSchema, Jn as spacePasswordSchema, Jt as spaceThreadContextSchema, Kn as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, L as runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema, Ln as postSpaceWakeStopResponseSchema, Lt as conversationCompactionMarkerSchema, M as runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema, Mn as localComponentUpdatePolicySchema, Mt as spaceAttachmentFileNameSchema, N as runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema, Nn as localComponentUpdateProjectionSchema, Nt as spaceAttachmentMimeTypeSchema, Or as openMeldWebUrlSchema, P as runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema, Pn as localComponentUpdateStatusSchema, Pt as spaceAttachmentSizeBytesSchema, Q as localFolderPickerRequestSchema, Qn as spaceMentionLabelSourceSchema, R as runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema, Rn as clientMessageIdSchema$1, Sn as agentInteractionPendingSummarySchema, Tn as agentInteractionResponseSchema, Tt as signalTextDataSchema, Ut as openMeldDaemonSyncRouteCatalogPayloadSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vn as runtimeCoordinatorExecutionEventSchema, Xt as spaceThreadSchema, Yt as spaceThreadEventSchema, Zn as spaceMentionLabelSchema, Zt as spaceThreadSignalPlacementSchema, _n as spaceAgentStreamPartFrameSchema, _r as nonEmptyTrimmedStringFromUnknown, an as workingLanguageTagSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceAgentStreamTerminalFrameSchema, br as MAX_TEXT_LENGTH$1, cr as agentProfileIdSchema, ct as controllerAgentTaskHandleSchema, dn as messageEnvelopeSchema, dr as profileKindSchema, en as resultArchivePolicySchema, er as organizationProtectedInformationSchema, et as localFolderPathSchema, fr as profileSchema, gn as spaceAgentStreamDeltaFrameSchema, gr as finiteIntegerNumber, hn as agentStreamToolPartSchema, hr as uuidProfileIdSchema, in as workingLanguageGuidanceSchema, ir as inspectExecutionRecoveryResponseSchema, it as agentTaskHandleSchema, j as runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema, jt as spaceAttachmentDimensionSchema, lt as spaceWakeAgentTaskHandleSchema, mn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, mr as profileWorkspaceModeSchema, n as daemonExecutionCompatibilitySchema, nn as spacePublicationModeSchema, nr as executeExecutionRecoveryBodySchema, nt as agentTaskCompletionConditionSchema, on as targetWakeLifecycleIdentitySchema, or as openMeldRequestContextSchema, ot as areAgentTaskTerminalOutcomesEqual, pr as profileWorkingDirectorySchema, qn as normalizeSpacePasswordText, qt as dispatchExecutionSchema, rn as spaceDispatchPolicySchema, rr as executeExecutionRecoveryResponseSchema, rt as agentTaskCompletionObservationSchema, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceAllowedActionsSchema, tr as updateOrganizationInformationProtectionPolicyBodySchema, tt as agentDelegationSnapshotSchema, ur as openMeldRuntimeProfileIdSchema, vn as spaceAgentStreamPresenceSchema, vr as optionalBooleanQuerySchema, wt as signalSystemNoticeDataSchema, xt as centerAgentTaskReferenceSchema, yn as spaceAgentStreamSnapshotSchema, yr as trimmedStringFromUnknown, z as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, zt as centerAgentInteractionSourceSchema } from "./runtime-transport-Bs6YfTqj.js";
|
|
5
5
|
import { r as daemonServiceLaneSchema } from "./service-contract-DZWQdPz5.js";
|
|
6
6
|
import { z } from "zod/v4";
|
|
7
7
|
//#region ../../packages/schemas/dist/agent-execution-readiness-impact-taxonomy.js
|
|
@@ -1950,8 +1950,29 @@ const MESSAGE_CHANNEL_MENTION_TYPES = [
|
|
|
1950
1950
|
const MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;
|
|
1951
1951
|
const nonEmptyStringSchema$4 = z.string().trim().min(1);
|
|
1952
1952
|
const providerIdSchema = nonEmptyStringSchema$4.max(512);
|
|
1953
|
+
const SLACK_MESSAGE_TIMESTAMP_PATTERN = /^\d+\.\d+$/u;
|
|
1954
|
+
const SLACK_THREAD_PERMALINK_PATH_PATTERN = /^\/archives\/([A-Za-z0-9_-]+)\/p(\d{10})(\d{1,6})\/?$/u;
|
|
1953
1955
|
const timestampMsSchema$5 = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
1954
1956
|
const slackMessagePermalinkSchema = z.url().max(2048).refine(isSlackMessagePermalink, { message: "Slack permalinks must use an HTTPS slack.com host." });
|
|
1957
|
+
const slackThreadPublicationPermalinkSchema = slackMessagePermalinkSchema.refine((value) => parseSlackThreadPublicationPermalink(value) !== null, { message: "Slack thread permalinks must identify an exact Slack channel message." });
|
|
1958
|
+
function parseSlackThreadPublicationPermalink(value) {
|
|
1959
|
+
if (!slackMessagePermalinkSchema.safeParse(value).success) return null;
|
|
1960
|
+
const url = new URL(value);
|
|
1961
|
+
const pathMatch = SLACK_THREAD_PERMALINK_PATH_PATTERN.exec(url.pathname);
|
|
1962
|
+
if (!pathMatch) return null;
|
|
1963
|
+
const channelId = pathMatch[1];
|
|
1964
|
+
const seconds = pathMatch[2];
|
|
1965
|
+
const fractional = pathMatch[3];
|
|
1966
|
+
if (!(channelId && seconds && fractional)) return null;
|
|
1967
|
+
const queryChannelId = url.searchParams.get("cid");
|
|
1968
|
+
if (queryChannelId && queryChannelId !== channelId) return null;
|
|
1969
|
+
const queryThreadTs = url.searchParams.get("thread_ts");
|
|
1970
|
+
if (queryThreadTs && !SLACK_MESSAGE_TIMESTAMP_PATTERN.test(queryThreadTs)) return null;
|
|
1971
|
+
return {
|
|
1972
|
+
channelId,
|
|
1973
|
+
threadTs: queryThreadTs ?? `${seconds}.${fractional}`
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1955
1976
|
function isSlackMessagePermalink(value) {
|
|
1956
1977
|
let url;
|
|
1957
1978
|
try {
|
|
@@ -2097,6 +2118,7 @@ const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
|
2097
2118
|
"openmeld_require_identity_for_action",
|
|
2098
2119
|
"openmeld_get_navigation_action",
|
|
2099
2120
|
"openmeld_read_organization_directory",
|
|
2121
|
+
"openmeld_read_member_computers",
|
|
2100
2122
|
"openmeld_read_member_openmeld_service_status",
|
|
2101
2123
|
"openmeld_read_org_documents",
|
|
2102
2124
|
"openmeld_read_organization_skills",
|
|
@@ -3244,6 +3266,7 @@ const organizationDirectoryHumanProfileSchema = z.strictObject({
|
|
|
3244
3266
|
status: z.enum(["active", "disabled"])
|
|
3245
3267
|
});
|
|
3246
3268
|
const organizationDirectoryMemberSchema = z.strictObject({
|
|
3269
|
+
lastActiveAt: z.union([ISO_DATE_TIME_SCHEMA$11, z.null()]).optional(),
|
|
3247
3270
|
memberId: trimmedNonEmptyStringSchema$12,
|
|
3248
3271
|
organizationId: trimmedNonEmptyStringSchema$12,
|
|
3249
3272
|
userId: trimmedNonEmptyStringSchema$12,
|
|
@@ -3905,7 +3928,7 @@ const boundedIdentifierSchema$4 = z.string().trim().min(1).max(512);
|
|
|
3905
3928
|
const OPENMELD_RUNTIME_CAPABILITIES_HEADER = "x-openmeld-runtime-capabilities";
|
|
3906
3929
|
const COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY = "computer-file-access-v1";
|
|
3907
3930
|
const computerFileAccessAbsolutePathSchema = localFolderPathSchema;
|
|
3908
|
-
z.enum([
|
|
3931
|
+
const computerFileAccessModeSchema = z.enum([
|
|
3909
3932
|
"local_agent_settings",
|
|
3910
3933
|
"only_selected_folders",
|
|
3911
3934
|
"block_selected_folders"
|
|
@@ -4270,6 +4293,7 @@ const MESSAGE_CHANNEL_ERROR_CODES = [
|
|
|
4270
4293
|
"message_channel.identity_already_linked",
|
|
4271
4294
|
"message_channel.identity_link_account_required",
|
|
4272
4295
|
"message_channel.identity_link_membership_required",
|
|
4296
|
+
"message_channel.identity_link_not_found",
|
|
4273
4297
|
"message_channel.identity_link_token_invalid",
|
|
4274
4298
|
"message_channel.organization_required",
|
|
4275
4299
|
"message_channel.provider_disabled",
|
|
@@ -4283,6 +4307,7 @@ const nonEmptyStringSchema$3 = z.string().trim().min(1);
|
|
|
4283
4307
|
const capabilityGroupSchema = nonEmptyStringSchema$3.max(64).regex(/^[a-z0-9][a-z0-9._-]*$/u);
|
|
4284
4308
|
const reasonCodeSchema$3 = nonEmptyStringSchema$3.max(128).regex(/^[a-z0-9][a-z0-9._-]*$/u);
|
|
4285
4309
|
const messageChannelConnectionStatusSchema = z.enum(MESSAGE_CHANNEL_CONNECTION_STATUSES);
|
|
4310
|
+
const messageChannelIdentityLinkIdSchema = nonEmptyStringSchema$3.max(82).regex(/^channel_identity_[0-9a-f]{64}$/u);
|
|
4286
4311
|
const larkPlatformProviderSchema = z.enum(["lark", "feishu"]);
|
|
4287
4312
|
const larkPlatformRegistrationBeginModeSchema = z.enum([
|
|
4288
4313
|
"resume",
|
|
@@ -4307,10 +4332,18 @@ const messageChannelConnectionProjectionSchema = z.strictObject({
|
|
|
4307
4332
|
path: ["grantedCapabilityGroups"]
|
|
4308
4333
|
});
|
|
4309
4334
|
});
|
|
4335
|
+
const messageChannelIdentityLinkProjectionSchema = z.strictObject({
|
|
4336
|
+
connectedAt: z.iso.datetime({ offset: true }),
|
|
4337
|
+
id: messageChannelIdentityLinkIdSchema,
|
|
4338
|
+
openMeldUserId: nonEmptyStringSchema$3.max(256),
|
|
4339
|
+
provider: messageChannelProviderSchema,
|
|
4340
|
+
providerAccountName: nonEmptyStringSchema$3.max(256).nullable()
|
|
4341
|
+
});
|
|
4310
4342
|
const messageChannelConnectionListResponseSchema = z.strictObject({
|
|
4311
4343
|
organizationId: nonEmptyStringSchema$3.max(256),
|
|
4312
4344
|
availableLarkPlatformProviders: z.array(larkPlatformProviderSchema).max(2),
|
|
4313
|
-
connections: z.array(messageChannelConnectionProjectionSchema).max(MESSAGE_CHANNEL_PROVIDERS.length)
|
|
4345
|
+
connections: z.array(messageChannelConnectionProjectionSchema).max(MESSAGE_CHANNEL_PROVIDERS.length),
|
|
4346
|
+
identityLinks: z.array(messageChannelIdentityLinkProjectionSchema).max(1e4).default([])
|
|
4314
4347
|
}).superRefine((response, context) => {
|
|
4315
4348
|
if (new Set(response.availableLarkPlatformProviders).size !== response.availableLarkPlatformProviders.length) context.addIssue({
|
|
4316
4349
|
code: "custom",
|
|
@@ -4439,7 +4472,8 @@ const messageChannelIdentityLinkPreviewResponseSchema = z.strictObject({
|
|
|
4439
4472
|
provider: larkPlatformProviderSchema,
|
|
4440
4473
|
providerUserDisplayName: nonEmptyStringSchema$3.max(256),
|
|
4441
4474
|
providerUserId: nonEmptyStringSchema$3.max(512),
|
|
4442
|
-
openMeldAccountEmail: nonEmptyStringSchema$3.max(320)
|
|
4475
|
+
openMeldAccountEmail: nonEmptyStringSchema$3.max(320),
|
|
4476
|
+
replacesExistingLink: z.boolean().default(false)
|
|
4443
4477
|
});
|
|
4444
4478
|
const messageChannelIdentityLinkConsumeBodySchema = z.strictObject({ token: messageChannelIdentityLinkTokenSchema });
|
|
4445
4479
|
const messageChannelIdentityLinkConsumeResponseSchema = z.strictObject({
|
|
@@ -4453,6 +4487,7 @@ const messageChannelIdentityLinkConsumeResponseSchema = z.strictObject({
|
|
|
4453
4487
|
provider: larkPlatformProviderSchema,
|
|
4454
4488
|
providerUserDisplayName: nonEmptyStringSchema$3.max(256),
|
|
4455
4489
|
providerUserId: nonEmptyStringSchema$3.max(512),
|
|
4490
|
+
replacedExistingLink: z.boolean().default(false),
|
|
4456
4491
|
openMeldUserId: nonEmptyStringSchema$3.max(256)
|
|
4457
4492
|
});
|
|
4458
4493
|
//#endregion
|
|
@@ -6393,6 +6428,251 @@ const currentLocalRuntimeReplyReadinessResponseSchema = z.strictObject({
|
|
|
6393
6428
|
localComponents: localComponentUpdateProjectionSchema
|
|
6394
6429
|
});
|
|
6395
6430
|
//#endregion
|
|
6431
|
+
//#region ../../packages/schemas/dist/schemas/http/organization-member-openmeld-service-status.js
|
|
6432
|
+
const BOUNDED_ID_SCHEMA$1 = z.string().trim().min(1).max(256);
|
|
6433
|
+
const ISO_DATE_TIME_SCHEMA$5 = z.iso.datetime({ offset: true });
|
|
6434
|
+
const organizationMemberOpenMeldServiceStateSchema = z.enum([
|
|
6435
|
+
"connected",
|
|
6436
|
+
"needs_attention",
|
|
6437
|
+
"not_connected",
|
|
6438
|
+
"unknown"
|
|
6439
|
+
]);
|
|
6440
|
+
const organizationMemberOpenMeldServiceStatusSchema = z.strictObject({
|
|
6441
|
+
state: organizationMemberOpenMeldServiceStateSchema,
|
|
6442
|
+
userId: BOUNDED_ID_SCHEMA$1
|
|
6443
|
+
});
|
|
6444
|
+
z.strictObject({ memberUserId: BOUNDED_ID_SCHEMA$1 });
|
|
6445
|
+
z.strictObject({
|
|
6446
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6447
|
+
member: organizationMemberOpenMeldServiceStatusSchema,
|
|
6448
|
+
organizationId: BOUNDED_ID_SCHEMA$1
|
|
6449
|
+
});
|
|
6450
|
+
const organizationMemberOpenMeldServiceStatusesResponseSchema = z.strictObject({
|
|
6451
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$5,
|
|
6452
|
+
members: z.array(organizationMemberOpenMeldServiceStatusSchema),
|
|
6453
|
+
organizationId: BOUNDED_ID_SCHEMA$1
|
|
6454
|
+
});
|
|
6455
|
+
//#endregion
|
|
6456
|
+
//#region ../../packages/schemas/dist/schemas/http/organization-computers.js
|
|
6457
|
+
const BOUNDED_ID_SCHEMA = z.string().trim().min(1).max(256);
|
|
6458
|
+
const ISO_DATE_TIME_SCHEMA$4 = z.iso.datetime({ offset: true });
|
|
6459
|
+
const REASON_CODES_SCHEMA = z.array(BOUNDED_ID_SCHEMA).max(64);
|
|
6460
|
+
const organizationComputerOpenMeldToolsSchema = z.strictObject({
|
|
6461
|
+
cli: z.strictObject({
|
|
6462
|
+
installedPackageVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
6463
|
+
latestPackageVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
6464
|
+
reasonCodes: REASON_CODES_SCHEMA,
|
|
6465
|
+
status: localComponentUpdateStatusSchema,
|
|
6466
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
6467
|
+
wakeBlocked: z.boolean()
|
|
6468
|
+
}),
|
|
6469
|
+
service: z.strictObject({
|
|
6470
|
+
installedVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
6471
|
+
latestVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
6472
|
+
reasonCodes: REASON_CODES_SCHEMA,
|
|
6473
|
+
requiredVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
6474
|
+
status: localComponentUpdateStatusSchema,
|
|
6475
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
6476
|
+
wakeBlocked: z.boolean()
|
|
6477
|
+
}),
|
|
6478
|
+
skills: z.strictObject({
|
|
6479
|
+
reasonCodes: REASON_CODES_SCHEMA,
|
|
6480
|
+
status: localComponentUpdateStatusSchema,
|
|
6481
|
+
targetCount: z.number().int().nonnegative().nullable(),
|
|
6482
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
6483
|
+
wakeBlocked: z.boolean()
|
|
6484
|
+
})
|
|
6485
|
+
});
|
|
6486
|
+
const organizationComputerLocalAgentDetailsSchema = z.strictObject({
|
|
6487
|
+
capabilities: agentControllerInterfaceCapabilitiesSchema,
|
|
6488
|
+
check: agentControllerInterfaceCheckSnapshotSchema.optional(),
|
|
6489
|
+
checkedAt: ISO_DATE_TIME_SCHEMA$4,
|
|
6490
|
+
launch: z.strictObject({
|
|
6491
|
+
installChoiceCount: z.number().int().nonnegative(),
|
|
6492
|
+
status: localAgentCatalogLaunchStatusSchema
|
|
6493
|
+
}),
|
|
6494
|
+
models: z.array(z.strictObject({ displayName: z.string().trim().min(1).max(256) })).max(256),
|
|
6495
|
+
nativeInterface: agentControllerInterfaceNativeInterfaceSchema,
|
|
6496
|
+
status: agentControllerInterfaceStatusSchema,
|
|
6497
|
+
version: BOUNDED_ID_SCHEMA.nullable(),
|
|
6498
|
+
versionAdvisory: z.strictObject({
|
|
6499
|
+
checkedAt: ISO_DATE_TIME_SCHEMA$4.nullable(),
|
|
6500
|
+
currentVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
6501
|
+
latestVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
6502
|
+
status: agentControllerInterfaceVersionAdvisoryStatusSchema
|
|
6503
|
+
}).optional()
|
|
6504
|
+
});
|
|
6505
|
+
function projectOrganizationComputerLocalAgentDetails(snapshot) {
|
|
6506
|
+
return {
|
|
6507
|
+
capabilities: snapshot.capabilities,
|
|
6508
|
+
...snapshot.check ? { check: snapshot.check } : {},
|
|
6509
|
+
checkedAt: snapshot.checkedAt,
|
|
6510
|
+
launch: {
|
|
6511
|
+
installChoiceCount: snapshot.launch.installChoiceCount,
|
|
6512
|
+
status: snapshot.launch.status
|
|
6513
|
+
},
|
|
6514
|
+
models: snapshot.models.map((model) => ({ displayName: model.displayName })),
|
|
6515
|
+
nativeInterface: snapshot.nativeInterface,
|
|
6516
|
+
status: snapshot.status,
|
|
6517
|
+
version: snapshot.version,
|
|
6518
|
+
...snapshot.versionAdvisory ? { versionAdvisory: {
|
|
6519
|
+
checkedAt: snapshot.versionAdvisory.checkedAt,
|
|
6520
|
+
currentVersion: snapshot.versionAdvisory.currentVersion,
|
|
6521
|
+
latestVersion: snapshot.versionAdvisory.latestVersion,
|
|
6522
|
+
status: snapshot.versionAdvisory.status
|
|
6523
|
+
} } : {}
|
|
6524
|
+
};
|
|
6525
|
+
}
|
|
6526
|
+
const organizationComputerLocalAgentSchema = z.strictObject({
|
|
6527
|
+
agentControllerRef: BOUNDED_ID_SCHEMA,
|
|
6528
|
+
details: organizationComputerLocalAgentDetailsSchema.nullable().optional(),
|
|
6529
|
+
enabled: z.boolean(),
|
|
6530
|
+
status: z.enum([
|
|
6531
|
+
"ready",
|
|
6532
|
+
"not_ready",
|
|
6533
|
+
"stale",
|
|
6534
|
+
"unknown"
|
|
6535
|
+
])
|
|
6536
|
+
});
|
|
6537
|
+
const organizationComputerSchema = z.strictObject({
|
|
6538
|
+
computerId: BOUNDED_ID_SCHEMA,
|
|
6539
|
+
deviceDisplayName: z.string().trim().min(1).max(256),
|
|
6540
|
+
deviceType: localRuntimeDeviceTypeSchema,
|
|
6541
|
+
lastSeenAtMs: z.number().int().nonnegative().nullable(),
|
|
6542
|
+
localAgents: z.array(organizationComputerLocalAgentSchema),
|
|
6543
|
+
openMeldTools: organizationComputerOpenMeldToolsSchema.nullable().optional(),
|
|
6544
|
+
osVersion: z.string().trim().min(1).max(120).nullable(),
|
|
6545
|
+
ownerUserId: BOUNDED_ID_SCHEMA,
|
|
6546
|
+
platformFamily: localRuntimePlatformFamilySchema,
|
|
6547
|
+
serviceState: organizationMemberOpenMeldServiceStateSchema
|
|
6548
|
+
});
|
|
6549
|
+
const organizationComputersResponseSchema = z.strictObject({
|
|
6550
|
+
computers: z.array(organizationComputerSchema),
|
|
6551
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$4,
|
|
6552
|
+
organizationId: BOUNDED_ID_SCHEMA
|
|
6553
|
+
});
|
|
6554
|
+
//#endregion
|
|
6555
|
+
//#region ../../packages/schemas/dist/schemas/http/owner-computer-diagnostics.js
|
|
6556
|
+
const boundedDiagnosticCodeSchema = z.string().trim().min(1).max(256);
|
|
6557
|
+
const boundedDiagnosticMessageSchema = z.string().trim().min(1).max(1024);
|
|
6558
|
+
const computerFileAccessSummarySchema = z.discriminatedUnion("status", [
|
|
6559
|
+
z.strictObject({
|
|
6560
|
+
deviceId: z.string().trim().min(1).max(512),
|
|
6561
|
+
folderCount: z.number().int().nonnegative(),
|
|
6562
|
+
mode: computerFileAccessModeSchema,
|
|
6563
|
+
revision: z.number().int().positive(),
|
|
6564
|
+
status: z.literal("available"),
|
|
6565
|
+
updatedAtMs: z.number().int().nonnegative()
|
|
6566
|
+
}),
|
|
6567
|
+
z.strictObject({ status: z.literal("unsupported") }),
|
|
6568
|
+
z.strictObject({
|
|
6569
|
+
code: boundedDiagnosticCodeSchema,
|
|
6570
|
+
message: boundedDiagnosticMessageSchema,
|
|
6571
|
+
status: z.literal("unavailable")
|
|
6572
|
+
})
|
|
6573
|
+
]);
|
|
6574
|
+
const ownerComputerLocalRuntimeCapabilitySchema = z.strictObject({
|
|
6575
|
+
agentControllerRef: boundedDiagnosticCodeSchema,
|
|
6576
|
+
details: organizationComputerLocalAgentDetailsSchema.nullable().optional(),
|
|
6577
|
+
displayName: z.string().trim().min(1).max(256).optional(),
|
|
6578
|
+
enabled: z.boolean(),
|
|
6579
|
+
reasonCodes: z.array(boundedDiagnosticCodeSchema),
|
|
6580
|
+
status: z.enum([
|
|
6581
|
+
"ready",
|
|
6582
|
+
"not_ready",
|
|
6583
|
+
"stale",
|
|
6584
|
+
"unknown"
|
|
6585
|
+
])
|
|
6586
|
+
});
|
|
6587
|
+
const ownerComputerLocalRuntimeExecutionTargetSchema = z.strictObject({
|
|
6588
|
+
capabilities: z.array(ownerComputerLocalRuntimeCapabilitySchema),
|
|
6589
|
+
deviceId: z.string().trim().min(1).max(256),
|
|
6590
|
+
isCurrent: z.boolean(),
|
|
6591
|
+
lastObservedAtMs: z.number().int().nonnegative().nullable(),
|
|
6592
|
+
openMeldServiceRuntimeId: prepareReadinessRuntimeIdSchema.nullable(),
|
|
6593
|
+
reasonCodes: z.array(boundedDiagnosticCodeSchema),
|
|
6594
|
+
runtimeLane: daemonServiceLaneSchema,
|
|
6595
|
+
status: localRuntimeExecutionTargetStatusSchema
|
|
6596
|
+
});
|
|
6597
|
+
const ownerComputerLocalRuntimeSchema = z.strictObject({
|
|
6598
|
+
computerFileAccess: z.strictObject({
|
|
6599
|
+
readPolicy: z.boolean(),
|
|
6600
|
+
updatePolicy: z.boolean()
|
|
6601
|
+
}).optional(),
|
|
6602
|
+
connectedComputerId: z.string().trim().min(1).max(256).optional(),
|
|
6603
|
+
connectionStatus: localRuntimeConnectionStatusSchema.optional(),
|
|
6604
|
+
deviceDisplayName: z.string().trim().min(1).max(256),
|
|
6605
|
+
deviceId: z.string().trim().min(1).max(256),
|
|
6606
|
+
deviceType: localRuntimeDeviceTypeSchema,
|
|
6607
|
+
executionTargets: z.array(ownerComputerLocalRuntimeExecutionTargetSchema),
|
|
6608
|
+
firstSeenAtMs: z.number().int().nonnegative(),
|
|
6609
|
+
isCurrent: z.boolean(),
|
|
6610
|
+
lastObservedAtMs: z.number().int().nonnegative().nullable(),
|
|
6611
|
+
osVersion: z.string().trim().min(1).max(120).nullable(),
|
|
6612
|
+
platformFamily: localRuntimePlatformFamilySchema
|
|
6613
|
+
});
|
|
6614
|
+
const ownerComputerLocalRuntimesSchema = z.strictObject({
|
|
6615
|
+
currentConnectedComputerId: z.string().trim().min(1).max(256).nullable().optional(),
|
|
6616
|
+
currentDeviceId: z.string().trim().min(1).max(256).nullable(),
|
|
6617
|
+
currentRuntimeLane: daemonServiceLaneSchema.nullable(),
|
|
6618
|
+
localRuntimes: z.array(ownerComputerLocalRuntimeSchema)
|
|
6619
|
+
});
|
|
6620
|
+
const ownerComputerDiagnosticsSchema = z.strictObject({
|
|
6621
|
+
currentComputerFileAccess: computerFileAccessSummarySchema,
|
|
6622
|
+
currentLocalRuntimeReplyReadiness: currentLocalRuntimeReplyReadinessResponseSchema,
|
|
6623
|
+
localRuntimes: ownerComputerLocalRuntimesSchema
|
|
6624
|
+
});
|
|
6625
|
+
function projectOwnerComputerLocalRuntimes(response) {
|
|
6626
|
+
return ownerComputerLocalRuntimesSchema.parse({
|
|
6627
|
+
...response.currentConnectedComputerId === void 0 ? {} : { currentConnectedComputerId: response.currentConnectedComputerId },
|
|
6628
|
+
currentDeviceId: response.currentDeviceId,
|
|
6629
|
+
currentRuntimeLane: response.currentRuntimeLane,
|
|
6630
|
+
localRuntimes: response.localRuntimes.map((computer) => ({
|
|
6631
|
+
...computer.computerFileAccess ? { computerFileAccess: computer.computerFileAccess } : {},
|
|
6632
|
+
...computer.connectedComputerId ? { connectedComputerId: computer.connectedComputerId } : {},
|
|
6633
|
+
...computer.connectionStatus ? { connectionStatus: computer.connectionStatus } : {},
|
|
6634
|
+
deviceDisplayName: computer.deviceDisplayName,
|
|
6635
|
+
deviceId: computer.deviceId,
|
|
6636
|
+
deviceType: computer.deviceType,
|
|
6637
|
+
executionTargets: computer.executionTargets.map((target) => ({
|
|
6638
|
+
capabilities: target.capabilities.map((capability) => {
|
|
6639
|
+
const snapshot = capability.agentControllerInterface;
|
|
6640
|
+
return {
|
|
6641
|
+
agentControllerRef: capability.agentControllerRef,
|
|
6642
|
+
...snapshot === void 0 ? {} : { details: snapshot === null ? null : projectOrganizationComputerLocalAgentDetails(snapshot) },
|
|
6643
|
+
...snapshot ? { displayName: snapshot.displayName } : {},
|
|
6644
|
+
enabled: capability.enabled,
|
|
6645
|
+
reasonCodes: capability.reasonCodes,
|
|
6646
|
+
status: capability.status
|
|
6647
|
+
};
|
|
6648
|
+
}),
|
|
6649
|
+
deviceId: target.deviceId,
|
|
6650
|
+
isCurrent: target.isCurrent,
|
|
6651
|
+
lastObservedAtMs: target.lastObservedAtMs,
|
|
6652
|
+
openMeldServiceRuntimeId: target.openMeldServiceRuntimeId,
|
|
6653
|
+
reasonCodes: target.reasonCodes,
|
|
6654
|
+
runtimeLane: target.runtimeLane,
|
|
6655
|
+
status: target.status
|
|
6656
|
+
})),
|
|
6657
|
+
firstSeenAtMs: computer.firstSeenAtMs,
|
|
6658
|
+
isCurrent: computer.isCurrent,
|
|
6659
|
+
lastObservedAtMs: computer.lastObservedAtMs,
|
|
6660
|
+
osVersion: computer.osVersion,
|
|
6661
|
+
platformFamily: computer.platformFamily
|
|
6662
|
+
}))
|
|
6663
|
+
});
|
|
6664
|
+
}
|
|
6665
|
+
function summarizeComputerFileAccessPolicy(response) {
|
|
6666
|
+
return {
|
|
6667
|
+
deviceId: response.deviceId,
|
|
6668
|
+
folderCount: "folders" in response.policy ? response.policy.folders.length : 0,
|
|
6669
|
+
mode: response.policy.mode,
|
|
6670
|
+
revision: response.policy.revision,
|
|
6671
|
+
status: "available",
|
|
6672
|
+
updatedAtMs: response.policy.updatedAtMs
|
|
6673
|
+
};
|
|
6674
|
+
}
|
|
6675
|
+
//#endregion
|
|
6396
6676
|
//#region ../../packages/schemas/dist/schemas/http/runtime-reporting.js
|
|
6397
6677
|
const boundedIdentifierSchema$2 = z.string().trim().min(1).max(256);
|
|
6398
6678
|
const reasonCodeSchema$1 = z.string().trim().min(1).max(256);
|
|
@@ -7709,7 +7989,7 @@ function normalizeOptionalClientMessageId(value) {
|
|
|
7709
7989
|
}
|
|
7710
7990
|
//#endregion
|
|
7711
7991
|
//#region ../../packages/schemas/dist/schemas/http/space-dispatch-trace.js
|
|
7712
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
7992
|
+
const ISO_DATE_TIME_SCHEMA$3 = z.iso.datetime({ offset: true });
|
|
7713
7993
|
const trimmedNonEmptyStringSchema$3 = z.string().trim().min(1);
|
|
7714
7994
|
const SPACE_DISPATCH_TRACE_TIMEOUT_POLICY_MAX_MS = 6048e5;
|
|
7715
7995
|
const SPACE_DISPATCH_TRACE_PROMPT_LENGTH_MAX = 1e6;
|
|
@@ -7718,7 +7998,7 @@ const SPACE_DISPATCH_TRACE_INVALID_OUTPUT_PREVIEW_MAX_CHARS = 180;
|
|
|
7718
7998
|
const boundedNullableTrimmedStringSchema = (maxLength) => z.union([trimmedNonEmptyStringSchema$3.max(maxLength), z.null()]);
|
|
7719
7999
|
const nullableTrimmedStringSchema$2 = boundedNullableTrimmedStringSchema(4096);
|
|
7720
8000
|
const nullableSignalTextSchema = boundedNullableTrimmedStringSchema(MAX_TEXT_LENGTH$1);
|
|
7721
|
-
const nullableIsoDateTimeSchema$2 = z.union([ISO_DATE_TIME_SCHEMA$
|
|
8001
|
+
const nullableIsoDateTimeSchema$2 = z.union([ISO_DATE_TIME_SCHEMA$3, z.null()]);
|
|
7722
8002
|
const nullableIntegerSchema = z.union([z.int(), z.null()]);
|
|
7723
8003
|
const boundedNullableNonNegativeIntegerSchema = (maxValue) => z.union([z.int().min(0).max(maxValue), z.null()]);
|
|
7724
8004
|
const nullableProfileKindSchema = z.union([z.enum([
|
|
@@ -7763,8 +8043,8 @@ const spaceDispatchTraceDispatchSchema = z.strictObject({
|
|
|
7763
8043
|
owner: z.union([dispatchTraceOwnerSchema, z.null()]),
|
|
7764
8044
|
targetProfileId: trimmedNonEmptyStringSchema$3,
|
|
7765
8045
|
status: spaceDispatchTraceDispatchStatusSchema,
|
|
7766
|
-
firstSeenAt: ISO_DATE_TIME_SCHEMA$
|
|
7767
|
-
lastAttemptAt: ISO_DATE_TIME_SCHEMA$
|
|
8046
|
+
firstSeenAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8047
|
+
lastAttemptAt: ISO_DATE_TIME_SCHEMA$3,
|
|
7768
8048
|
attemptCount: z.int().min(0),
|
|
7769
8049
|
latestAttemptId: nullableTrimmedStringSchema$2
|
|
7770
8050
|
});
|
|
@@ -7778,7 +8058,7 @@ const spaceDispatchTraceLatestAttemptSchema = z.strictObject({
|
|
|
7778
8058
|
daemonSessionId: nullableTrimmedStringSchema$2,
|
|
7779
8059
|
connectionGeneration: nullableIntegerSchema,
|
|
7780
8060
|
leaseEpoch: nullableIntegerSchema,
|
|
7781
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
8061
|
+
createdAt: ISO_DATE_TIME_SCHEMA$3,
|
|
7782
8062
|
startedAt: nullableIsoDateTimeSchema$2,
|
|
7783
8063
|
finishedAt: nullableIsoDateTimeSchema$2,
|
|
7784
8064
|
errorCode: nullableTrimmedStringSchema$2,
|
|
@@ -7826,8 +8106,8 @@ const spaceDispatchTraceNativeDeliverySchema = z.strictObject({
|
|
|
7826
8106
|
]),
|
|
7827
8107
|
bindingUpdatedAt: nullableIsoDateTimeSchema$2
|
|
7828
8108
|
}),
|
|
7829
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
7830
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
8109
|
+
createdAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8110
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$3
|
|
7831
8111
|
});
|
|
7832
8112
|
const spaceDispatchTraceOpsDecisionSchema = z.strictObject({
|
|
7833
8113
|
factSource: z.literal("ops_decision"),
|
|
@@ -7835,7 +8115,7 @@ const spaceDispatchTraceOpsDecisionSchema = z.strictObject({
|
|
|
7835
8115
|
decisionCode: trimmedNonEmptyStringSchema$3,
|
|
7836
8116
|
decidedBy: trimmedNonEmptyStringSchema$3,
|
|
7837
8117
|
source: trimmedNonEmptyStringSchema$3,
|
|
7838
|
-
decidedAt: ISO_DATE_TIME_SCHEMA$
|
|
8118
|
+
decidedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
7839
8119
|
correlationId: nullableTrimmedStringSchema$2,
|
|
7840
8120
|
expectedRecoveryCriteria: nullableTrimmedStringSchema$2
|
|
7841
8121
|
});
|
|
@@ -7846,7 +8126,7 @@ const spaceDispatchTraceReplySignalSchema = z.strictObject({
|
|
|
7846
8126
|
profileKind: nullableProfileKindSchema,
|
|
7847
8127
|
profileName: nullableTrimmedStringSchema$2,
|
|
7848
8128
|
text: trimmedNonEmptyStringSchema$3,
|
|
7849
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
8129
|
+
createdAt: ISO_DATE_TIME_SCHEMA$3
|
|
7850
8130
|
});
|
|
7851
8131
|
const spaceDispatchTraceFinalVisibleMessageFactSourceSchema = z.enum(["space_signal_by_published_signal_id", "space_final_reply_claim"]);
|
|
7852
8132
|
const spaceDispatchTraceFinalVisibleMessageSchema = z.strictObject({
|
|
@@ -7871,7 +8151,7 @@ const spaceDispatchTraceFinalVisibleMessageSchema = z.strictObject({
|
|
|
7871
8151
|
"wake_stopped"
|
|
7872
8152
|
]), z.null()]),
|
|
7873
8153
|
statusType: nullableTrimmedStringSchema$2,
|
|
7874
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
8154
|
+
createdAt: ISO_DATE_TIME_SCHEMA$3
|
|
7875
8155
|
});
|
|
7876
8156
|
const spaceDispatchTraceFinalVisibleMessageLinkageStatusSchema = z.enum([
|
|
7877
8157
|
"matched_published_signal",
|
|
@@ -7945,9 +8225,9 @@ const spaceDispatchTraceClaimLeaseSchema = z.strictObject({
|
|
|
7945
8225
|
"superseded"
|
|
7946
8226
|
]),
|
|
7947
8227
|
claimTraceReason: nullableTrimmedStringSchema$2,
|
|
7948
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
7949
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
7950
|
-
expiresAt: ISO_DATE_TIME_SCHEMA$
|
|
8228
|
+
createdAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8229
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8230
|
+
expiresAt: ISO_DATE_TIME_SCHEMA$3
|
|
7951
8231
|
});
|
|
7952
8232
|
const spaceDispatchTraceResultSchema = z.strictObject({
|
|
7953
8233
|
factSource: z.literal("dispatch_result"),
|
|
@@ -7957,7 +8237,7 @@ const spaceDispatchTraceResultSchema = z.strictObject({
|
|
|
7957
8237
|
publicOutcome: trimmedNonEmptyStringSchema$3,
|
|
7958
8238
|
publishedSignalId: nullableTrimmedStringSchema$2,
|
|
7959
8239
|
statusType: nullableTrimmedStringSchema$2,
|
|
7960
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
8240
|
+
createdAt: ISO_DATE_TIME_SCHEMA$3
|
|
7961
8241
|
});
|
|
7962
8242
|
const spaceDispatchTraceResultInboxPublishStateSchema = z.enum([
|
|
7963
8243
|
"result_accepted",
|
|
@@ -7982,8 +8262,8 @@ const spaceDispatchTraceResultInboxSchema = z.strictObject({
|
|
|
7982
8262
|
publishState: spaceDispatchTraceResultInboxPublishStateSchema,
|
|
7983
8263
|
publishedSignalId: nullableTrimmedStringSchema$2,
|
|
7984
8264
|
publicationErrorCode: nullableTrimmedStringSchema$2,
|
|
7985
|
-
acceptedAt: ISO_DATE_TIME_SCHEMA$
|
|
7986
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
8265
|
+
acceptedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8266
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$3
|
|
7987
8267
|
});
|
|
7988
8268
|
const spaceDispatchTraceStreamingSchema = z.strictObject({
|
|
7989
8269
|
streamingMode: z.enum(["final", "stream"]),
|
|
@@ -8042,7 +8322,7 @@ const spaceDispatchTraceRuntimeCoordinatorExecutionSchema = runtimeCoordinatorEx
|
|
|
8042
8322
|
const spaceDispatchTraceRuntimeCoordinatorCreationDiagnosticSchema = runtimeCoordinatorExecutionCreationDiagnosticSchema.extend({ factSource: z.literal("runtime_coordinator_projection") });
|
|
8043
8323
|
const spaceDispatchTraceRuntimeCoordinatorEventSchema = runtimeCoordinatorExecutionEventSchema.extend({ factSource: z.literal("runtime_coordinator_projection") });
|
|
8044
8324
|
const spaceDispatchTraceRuntimeCoordinatorHeadNoExecutionDecisionSchema = z.strictObject({
|
|
8045
|
-
decidedAt: ISO_DATE_TIME_SCHEMA$
|
|
8325
|
+
decidedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8046
8326
|
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
8047
8327
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
8048
8328
|
source: runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema,
|
|
@@ -8052,14 +8332,14 @@ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationIntentSchema = z.union(
|
|
|
8052
8332
|
intentId: trimmedNonEmptyStringSchema$3.max(4096),
|
|
8053
8333
|
kind: z.literal("no_execution_failure"),
|
|
8054
8334
|
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
8055
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
8335
|
+
readyAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8056
8336
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
8057
8337
|
status: z.literal("ready_for_phase_6"),
|
|
8058
8338
|
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
8059
8339
|
}), z.strictObject({
|
|
8060
8340
|
intentId: trimmedNonEmptyStringSchema$3.max(4096),
|
|
8061
8341
|
kind: z.literal("stopped_notice"),
|
|
8062
|
-
readyAt: ISO_DATE_TIME_SCHEMA$
|
|
8342
|
+
readyAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8063
8343
|
reasonCode: z.literal("runtime_coordinator.pre_agent_stop_requested"),
|
|
8064
8344
|
status: z.literal("ready_for_phase_6")
|
|
8065
8345
|
})]);
|
|
@@ -8071,7 +8351,7 @@ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationOutcomeSchema = z.stric
|
|
|
8071
8351
|
"success_reply",
|
|
8072
8352
|
"unknown"
|
|
8073
8353
|
]).nullable(),
|
|
8074
|
-
observedAt: ISO_DATE_TIME_SCHEMA$
|
|
8354
|
+
observedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8075
8355
|
publicationErrorCode: z.string().trim().min(1).max(160).nullable(),
|
|
8076
8356
|
publishedSignalId: trimmedNonEmptyStringSchema$3.nullable(),
|
|
8077
8357
|
status: z.enum([
|
|
@@ -8082,8 +8362,8 @@ const spaceDispatchTraceRuntimeCoordinatorHeadPublicationOutcomeSchema = z.stric
|
|
|
8082
8362
|
});
|
|
8083
8363
|
const spaceDispatchTraceRuntimeCoordinatorHeadPublicationExhaustionSchema = z.strictObject({
|
|
8084
8364
|
attemptCount: z.int().positive(),
|
|
8085
|
-
exhaustedAt: ISO_DATE_TIME_SCHEMA$
|
|
8086
|
-
lastFailureAt: ISO_DATE_TIME_SCHEMA$
|
|
8365
|
+
exhaustedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8366
|
+
lastFailureAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8087
8367
|
lastReasonCode: z.string().trim().min(1).max(160),
|
|
8088
8368
|
reasonCode: z.literal("runtime_coordinator.publication_retry_exhausted"),
|
|
8089
8369
|
status: z.literal("publication_exhausted")
|
|
@@ -8093,22 +8373,22 @@ const spaceDispatchTraceRuntimeCoordinatorHeadTargetDisplaySchema = z.strictObje
|
|
|
8093
8373
|
targetProfileName: z.string().min(1).max(64).nullable()
|
|
8094
8374
|
});
|
|
8095
8375
|
const spaceDispatchTraceRuntimeCoordinatorHeadWaitingBoundarySchema = z.strictObject({
|
|
8096
|
-
deadlineAt: ISO_DATE_TIME_SCHEMA$
|
|
8376
|
+
deadlineAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8097
8377
|
deadlineOutcome: z.literal("publication_intent_ready"),
|
|
8098
|
-
observedAt: ISO_DATE_TIME_SCHEMA$
|
|
8378
|
+
observedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8099
8379
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema,
|
|
8100
|
-
softDeadlineAt: ISO_DATE_TIME_SCHEMA$
|
|
8380
|
+
softDeadlineAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8101
8381
|
trigger: z.literal("openmeld_service_route_connected"),
|
|
8102
8382
|
triggerOwner: z.literal("runtime_coordinator"),
|
|
8103
8383
|
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema,
|
|
8104
8384
|
userVisibleState: z.literal("waiting_for_openmeld_service"),
|
|
8105
8385
|
waitingCategory: runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema,
|
|
8106
8386
|
waitingFor: z.literal("openmeld_service_route_connection"),
|
|
8107
|
-
waitingSince: ISO_DATE_TIME_SCHEMA$
|
|
8387
|
+
waitingSince: ISO_DATE_TIME_SCHEMA$3
|
|
8108
8388
|
});
|
|
8109
8389
|
const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleSchema = z.discriminatedUnion("readStatus", [
|
|
8110
8390
|
z.strictObject({
|
|
8111
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
8391
|
+
createdAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8112
8392
|
duplicateDispatchCount: z.int().min(0),
|
|
8113
8393
|
executionLinkedAt: nullableIsoDateTimeSchema$2,
|
|
8114
8394
|
factSource: z.literal("runtime_coordinator_head_lifecycle"),
|
|
@@ -8125,7 +8405,7 @@ const spaceDispatchTraceRuntimeCoordinatorHeadLifecycleSchema = z.discriminatedU
|
|
|
8125
8405
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema,
|
|
8126
8406
|
targetWakeLifecycleId: trimmedNonEmptyStringSchema$3.max(2048),
|
|
8127
8407
|
targetDisplay: spaceDispatchTraceRuntimeCoordinatorHeadTargetDisplaySchema.optional(),
|
|
8128
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$
|
|
8408
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$3,
|
|
8129
8409
|
waitingBoundary: z.union([spaceDispatchTraceRuntimeCoordinatorHeadWaitingBoundarySchema, z.null()])
|
|
8130
8410
|
}),
|
|
8131
8411
|
z.strictObject({
|
|
@@ -8891,10 +9171,10 @@ function expectNullTraceEvidence(context, actual, path) {
|
|
|
8891
9171
|
}
|
|
8892
9172
|
//#endregion
|
|
8893
9173
|
//#region ../../packages/schemas/dist/schemas/http/center-agent.js
|
|
8894
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
9174
|
+
const ISO_DATE_TIME_SCHEMA$2 = z.iso.datetime({ offset: true });
|
|
8895
9175
|
const trimmedNonEmptyStringSchema$2 = z.string().trim().min(1);
|
|
8896
9176
|
const nullableTrimmedStringSchema$1 = z.union([trimmedNonEmptyStringSchema$2, z.null()]);
|
|
8897
|
-
const nullableIsoDateTimeSchema$1 = z.union([ISO_DATE_TIME_SCHEMA$
|
|
9177
|
+
const nullableIsoDateTimeSchema$1 = z.union([ISO_DATE_TIME_SCHEMA$2, z.null()]);
|
|
8898
9178
|
const nullableDiagnosticTextSchema = z.union([trimmedNonEmptyStringSchema$2.max(512), z.null()]);
|
|
8899
9179
|
const CENTER_AGENT_REFERENCE_OVERLAP_MESSAGE = "A profile cannot be both a Wake target and a Reference target.";
|
|
8900
9180
|
function findCenterAgentReferenceOverlapIndex(input) {
|
|
@@ -8916,6 +9196,8 @@ const centerAgentActionSchema = z.enum([
|
|
|
8916
9196
|
"connect_slack_workspace",
|
|
8917
9197
|
"move_slack_workspace",
|
|
8918
9198
|
"disconnect_slack_workspace",
|
|
9199
|
+
"disconnect_message_channel_identity_link",
|
|
9200
|
+
"replace_message_channel_identity_link",
|
|
8919
9201
|
"start_shared_app_authorization",
|
|
8920
9202
|
"disconnect_shared_app",
|
|
8921
9203
|
"add_members_to_space",
|
|
@@ -8928,6 +9210,7 @@ const centerAgentActionSchema = z.enum([
|
|
|
8928
9210
|
"post_space_message",
|
|
8929
9211
|
"remove_agent_profiles_from_space",
|
|
8930
9212
|
"read_org_directory",
|
|
9213
|
+
"read_member_computers",
|
|
8931
9214
|
"read_member_openmeld_service_status",
|
|
8932
9215
|
"read_slack_workspace_directory",
|
|
8933
9216
|
"read_org_documents",
|
|
@@ -9062,7 +9345,7 @@ const centerAgentDesignationSchema = z.strictObject({
|
|
|
9062
9345
|
agentProfileId: agentProfileIdSchema,
|
|
9063
9346
|
duty: z.null(),
|
|
9064
9347
|
designatedBy: trimmedNonEmptyStringSchema$2,
|
|
9065
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9348
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2
|
|
9066
9349
|
});
|
|
9067
9350
|
const centerAgentModelConfigurationResponseSchema = z.strictObject({
|
|
9068
9351
|
canManage: z.boolean(),
|
|
@@ -9113,14 +9396,15 @@ const slackIdentityLinkPreviewBodySchema = z.strictObject({ token: slackIdentity
|
|
|
9113
9396
|
const slackIdentityLinkPreviewResponseSchema = z.strictObject({
|
|
9114
9397
|
alreadyMember: z.boolean().default(true),
|
|
9115
9398
|
continuesRequest: z.boolean().default(true),
|
|
9116
|
-
expiresAt: ISO_DATE_TIME_SCHEMA$
|
|
9399
|
+
expiresAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9117
9400
|
organizationId: trimmedNonEmptyStringSchema$2,
|
|
9118
9401
|
organizationName: trimmedNonEmptyStringSchema$2,
|
|
9119
9402
|
slackDisplayName: trimmedNonEmptyStringSchema$2,
|
|
9120
9403
|
slackTeamId: trimmedNonEmptyStringSchema$2,
|
|
9121
9404
|
slackUserId: trimmedNonEmptyStringSchema$2,
|
|
9122
9405
|
slackWorkspaceLabel: trimmedNonEmptyStringSchema$2,
|
|
9123
|
-
openMeldAccountEmail: trimmedNonEmptyStringSchema$2
|
|
9406
|
+
openMeldAccountEmail: trimmedNonEmptyStringSchema$2,
|
|
9407
|
+
replacesExistingLink: z.boolean().default(false)
|
|
9124
9408
|
});
|
|
9125
9409
|
const slackIdentityLinkConsumeBodySchema = z.strictObject({ token: slackIdentityLinkTokenSchema });
|
|
9126
9410
|
const slackIdentityLinkConsumeResponseSchema = z.strictObject({
|
|
@@ -9133,6 +9417,7 @@ const slackIdentityLinkConsumeResponseSchema = z.strictObject({
|
|
|
9133
9417
|
slackDisplayName: trimmedNonEmptyStringSchema$2,
|
|
9134
9418
|
slackTeamId: trimmedNonEmptyStringSchema$2,
|
|
9135
9419
|
slackUserId: trimmedNonEmptyStringSchema$2,
|
|
9420
|
+
replacedExistingLink: z.boolean().default(false),
|
|
9136
9421
|
openMeldUserId: trimmedNonEmptyStringSchema$2
|
|
9137
9422
|
});
|
|
9138
9423
|
z.strictObject({
|
|
@@ -9247,7 +9532,7 @@ const centerAgentAuditJournalEntrySchema = z.strictObject({
|
|
|
9247
9532
|
manifestId: trimmedNonEmptyStringSchema$2
|
|
9248
9533
|
}).optional(),
|
|
9249
9534
|
resource: centerAgentResourceSchema.nullable(),
|
|
9250
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
9535
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2
|
|
9251
9536
|
});
|
|
9252
9537
|
const listCenterAgentAuditJournalQuerySchema = z.strictObject({
|
|
9253
9538
|
actionSet: z.enum([
|
|
@@ -9267,7 +9552,8 @@ const listCenterAgentAuditJournalQuerySchema = z.strictObject({
|
|
|
9267
9552
|
"v15",
|
|
9268
9553
|
"v16",
|
|
9269
9554
|
"v17",
|
|
9270
|
-
"v18"
|
|
9555
|
+
"v18",
|
|
9556
|
+
"v19"
|
|
9271
9557
|
]).optional(),
|
|
9272
9558
|
limit: z.coerce.number().int().min(1).max(200).optional()
|
|
9273
9559
|
});
|
|
@@ -9382,20 +9668,25 @@ const centerAgentPublicationSourceSchema = z.discriminatedUnion("kind", [
|
|
|
9382
9668
|
runId: trimmedNonEmptyStringSchema$2.max(256)
|
|
9383
9669
|
})
|
|
9384
9670
|
]);
|
|
9385
|
-
const
|
|
9386
|
-
channelName: trimmedNonEmptyStringSchema$2.max(80),
|
|
9671
|
+
const centerAgentSlackMessageCommonBodyFields = {
|
|
9387
9672
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
9388
9673
|
text: z.string().trim().min(1).max(MAX_TEXT_LENGTH$1)
|
|
9389
9674
|
};
|
|
9390
9675
|
z.strictObject({
|
|
9391
|
-
...
|
|
9676
|
+
...centerAgentSlackMessageCommonBodyFields,
|
|
9677
|
+
channelName: trimmedNonEmptyStringSchema$2.max(80),
|
|
9392
9678
|
publicationSource: centerAgentPublicationSourceSchema.optional()
|
|
9393
9679
|
});
|
|
9394
|
-
z.strictObject({
|
|
9395
|
-
...
|
|
9680
|
+
z.union([z.strictObject({
|
|
9681
|
+
...centerAgentSlackMessageCommonBodyFields,
|
|
9682
|
+
publicationSource: centerAgentRemoteAgentExecutionPublicationSourceSchema,
|
|
9683
|
+
threadPermalink: slackThreadPublicationPermalinkSchema
|
|
9684
|
+
}), z.strictObject({
|
|
9685
|
+
...centerAgentSlackMessageCommonBodyFields,
|
|
9686
|
+
channelName: trimmedNonEmptyStringSchema$2.max(80),
|
|
9396
9687
|
publicationSource: centerAgentRemoteAgentExecutionPublicationSourceSchema,
|
|
9397
9688
|
threadTs: z.string().trim().regex(/^\d+\.\d+$/).max(32)
|
|
9398
|
-
});
|
|
9689
|
+
})]);
|
|
9399
9690
|
z.strictObject({
|
|
9400
9691
|
includeBots: z.boolean().optional(),
|
|
9401
9692
|
query: trimmedNonEmptyStringSchema$2.max(500),
|
|
@@ -9587,11 +9878,29 @@ z.strictObject({
|
|
|
9587
9878
|
candidates: z.array(centerAgentLocalAgentConnectionCandidateSchema),
|
|
9588
9879
|
organizationId: trimmedNonEmptyStringSchema$2
|
|
9589
9880
|
});
|
|
9590
|
-
z.strictObject({
|
|
9881
|
+
z.strictObject({
|
|
9882
|
+
includeDiagnostics: z.boolean().optional(),
|
|
9883
|
+
speakerMember: centerAgentToolSpeakerSchema
|
|
9884
|
+
});
|
|
9591
9885
|
z.strictObject({
|
|
9592
9886
|
computers: z.array(centerAgentComputerSetupOptionSchema),
|
|
9887
|
+
diagnostics: ownerComputerDiagnosticsSchema.optional(),
|
|
9593
9888
|
organizationId: trimmedNonEmptyStringSchema$2
|
|
9594
9889
|
});
|
|
9890
|
+
z.strictObject({ memberUserId: trimmedNonEmptyStringSchema$2 });
|
|
9891
|
+
organizationComputersResponseSchema.extend({ memberUserId: trimmedNonEmptyStringSchema$2 }).superRefine((value, context) => {
|
|
9892
|
+
value.computers.forEach((computer, index) => {
|
|
9893
|
+
if (computer.ownerUserId !== value.memberUserId) context.addIssue({
|
|
9894
|
+
code: "custom",
|
|
9895
|
+
message: "computer ownerUserId must match memberUserId",
|
|
9896
|
+
path: [
|
|
9897
|
+
"computers",
|
|
9898
|
+
index,
|
|
9899
|
+
"ownerUserId"
|
|
9900
|
+
]
|
|
9901
|
+
});
|
|
9902
|
+
});
|
|
9903
|
+
});
|
|
9595
9904
|
z.strictObject({
|
|
9596
9905
|
agentControllerCollaborationMode: agentProfileBindingAgentControllerCollaborationModeSchema.optional(),
|
|
9597
9906
|
agentControllerPermissionMode: agentProfileBindingAgentControllerPermissionModeSchema.optional(),
|
|
@@ -9777,7 +10086,7 @@ z.union([z.strictObject({
|
|
|
9777
10086
|
const centerAgentDispatchHistoryLatestAttemptSchema = z.strictObject({
|
|
9778
10087
|
attemptId: trimmedNonEmptyStringSchema$2,
|
|
9779
10088
|
attemptNo: z.int().min(1),
|
|
9780
|
-
createdAt: ISO_DATE_TIME_SCHEMA$
|
|
10089
|
+
createdAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9781
10090
|
errorCode: nullableTrimmedStringSchema$1,
|
|
9782
10091
|
errorMessage: nullableDiagnosticTextSchema,
|
|
9783
10092
|
finishedAt: nullableIsoDateTimeSchema$1,
|
|
@@ -9787,8 +10096,8 @@ const centerAgentDispatchHistoryLatestAttemptSchema = z.strictObject({
|
|
|
9787
10096
|
const centerAgentDispatchHistoryEntrySchema = z.strictObject({
|
|
9788
10097
|
attemptCount: z.int().min(0),
|
|
9789
10098
|
dispatchId: trimmedNonEmptyStringSchema$2,
|
|
9790
|
-
firstSeenAt: ISO_DATE_TIME_SCHEMA$
|
|
9791
|
-
lastAttemptAt: ISO_DATE_TIME_SCHEMA$
|
|
10099
|
+
firstSeenAt: ISO_DATE_TIME_SCHEMA$2,
|
|
10100
|
+
lastAttemptAt: ISO_DATE_TIME_SCHEMA$2,
|
|
9792
10101
|
latestAttempt: z.union([centerAgentDispatchHistoryLatestAttemptSchema, z.null()]),
|
|
9793
10102
|
status: spaceDispatchTraceDispatchStatusSchema,
|
|
9794
10103
|
targetProfileId: trimmedNonEmptyStringSchema$2
|
|
@@ -9837,7 +10146,7 @@ const centerAgentSlackSearchEvidenceItemSchema = z.strictObject({
|
|
|
9837
10146
|
content: trimmedNonEmptyStringSchema$2.max(2e3),
|
|
9838
10147
|
isAuthorBot: z.boolean(),
|
|
9839
10148
|
messageTs: trimmedNonEmptyStringSchema$2.max(64),
|
|
9840
|
-
permalink:
|
|
10149
|
+
permalink: slackMessagePermalinkSchema
|
|
9841
10150
|
});
|
|
9842
10151
|
const centerAgentSlackSearchMessageSchema = centerAgentSlackSearchEvidenceItemSchema.extend({ contextMessages: z.array(centerAgentSlackSearchEvidenceItemSchema).max(2) });
|
|
9843
10152
|
z.discriminatedUnion("status", [z.strictObject({
|
|
@@ -9938,7 +10247,7 @@ const openCenterAgentDirectMessageSpaceResponseSchema = z.strictObject({
|
|
|
9938
10247
|
//#endregion
|
|
9939
10248
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-direct-message-space.js
|
|
9940
10249
|
const CENTER_AGENT_DIRECT_MESSAGE_SPACE_KIND = "center_agent_direct_message_space";
|
|
9941
|
-
const ISO_DATE_TIME_SCHEMA$
|
|
10250
|
+
const ISO_DATE_TIME_SCHEMA$1 = z.iso.datetime({ offset: true });
|
|
9942
10251
|
const trimmedNonEmptyStringSchema$1 = z.string().trim().min(1);
|
|
9943
10252
|
const centerAgentDirectMessageSpaceProjectionSchema = z.strictObject({
|
|
9944
10253
|
centerAgentProfileId: trimmedNonEmptyStringSchema$1,
|
|
@@ -9949,7 +10258,7 @@ const centerAgentDirectMessageSpaceProjectionSchema = z.strictObject({
|
|
|
9949
10258
|
spaceId: trimmedNonEmptyStringSchema$1
|
|
9950
10259
|
});
|
|
9951
10260
|
const getCenterAgentDirectMessageSpaceProjectionResponseSchema = z.strictObject({
|
|
9952
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$
|
|
10261
|
+
generatedAt: ISO_DATE_TIME_SCHEMA$1,
|
|
9953
10262
|
organizationId: trimmedNonEmptyStringSchema$1,
|
|
9954
10263
|
projection: z.union([centerAgentDirectMessageSpaceProjectionSchema, z.null()])
|
|
9955
10264
|
});
|
|
@@ -10824,7 +11133,7 @@ listSignalsQueryInputSchema.superRefine((value, ctx) => {
|
|
|
10824
11133
|
const boundedIdentifierSchema = z.string().trim().min(1).max(256);
|
|
10825
11134
|
const runtimeIdentifierSchema = z.string().trim().min(1).max(512);
|
|
10826
11135
|
const reasonCodeSchema = z.string().trim().min(1).max(256);
|
|
10827
|
-
const ISO_DATE_TIME_SCHEMA
|
|
11136
|
+
const ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });
|
|
10828
11137
|
const getLocalRuntimeExpectedRoutesQuerySchema = z.strictObject({
|
|
10829
11138
|
contractVersion: z.enum(["v2", "v3"]).optional(),
|
|
10830
11139
|
deviceId: boundedIdentifierSchema,
|
|
@@ -10860,7 +11169,7 @@ const getLocalRuntimeExpectedRoutesResponseSchema = z.strictObject({
|
|
|
10860
11169
|
openMeldServiceRuntimeId: runtimeIdentifierSchema.nullable(),
|
|
10861
11170
|
excludedProfiles: z.array(localRuntimeExpectedRouteExclusionSchema).max(400),
|
|
10862
11171
|
expectedRoutes: z.array(localRuntimeExpectedRouteSchema).max(200),
|
|
10863
|
-
generatedAt: ISO_DATE_TIME_SCHEMA
|
|
11172
|
+
generatedAt: ISO_DATE_TIME_SCHEMA,
|
|
10864
11173
|
runtimeResolution: z.enum([
|
|
10865
11174
|
"resolved",
|
|
10866
11175
|
"missing",
|
|
@@ -10868,109 +11177,6 @@ const getLocalRuntimeExpectedRoutesResponseSchema = z.strictObject({
|
|
|
10868
11177
|
])
|
|
10869
11178
|
});
|
|
10870
11179
|
//#endregion
|
|
10871
|
-
//#region ../../packages/schemas/dist/schemas/http/organization-member-openmeld-service-status.js
|
|
10872
|
-
const BOUNDED_ID_SCHEMA$1 = z.string().trim().min(1).max(256);
|
|
10873
|
-
const ISO_DATE_TIME_SCHEMA$1 = z.iso.datetime({ offset: true });
|
|
10874
|
-
const organizationMemberOpenMeldServiceStateSchema = z.enum([
|
|
10875
|
-
"connected",
|
|
10876
|
-
"needs_attention",
|
|
10877
|
-
"not_connected",
|
|
10878
|
-
"unknown"
|
|
10879
|
-
]);
|
|
10880
|
-
const organizationMemberOpenMeldServiceStatusSchema = z.strictObject({
|
|
10881
|
-
state: organizationMemberOpenMeldServiceStateSchema,
|
|
10882
|
-
userId: BOUNDED_ID_SCHEMA$1
|
|
10883
|
-
});
|
|
10884
|
-
z.strictObject({ memberUserId: BOUNDED_ID_SCHEMA$1 });
|
|
10885
|
-
z.strictObject({
|
|
10886
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$1,
|
|
10887
|
-
member: organizationMemberOpenMeldServiceStatusSchema,
|
|
10888
|
-
organizationId: BOUNDED_ID_SCHEMA$1
|
|
10889
|
-
});
|
|
10890
|
-
const organizationMemberOpenMeldServiceStatusesResponseSchema = z.strictObject({
|
|
10891
|
-
generatedAt: ISO_DATE_TIME_SCHEMA$1,
|
|
10892
|
-
members: z.array(organizationMemberOpenMeldServiceStatusSchema),
|
|
10893
|
-
organizationId: BOUNDED_ID_SCHEMA$1
|
|
10894
|
-
});
|
|
10895
|
-
//#endregion
|
|
10896
|
-
//#region ../../packages/schemas/dist/schemas/http/organization-computers.js
|
|
10897
|
-
const BOUNDED_ID_SCHEMA = z.string().trim().min(1).max(256);
|
|
10898
|
-
const ISO_DATE_TIME_SCHEMA = z.iso.datetime({ offset: true });
|
|
10899
|
-
const REASON_CODES_SCHEMA = z.array(BOUNDED_ID_SCHEMA).max(64);
|
|
10900
|
-
const organizationComputerOpenMeldToolsSchema = z.strictObject({
|
|
10901
|
-
cli: z.strictObject({
|
|
10902
|
-
installedPackageVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
10903
|
-
latestPackageVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
10904
|
-
reasonCodes: REASON_CODES_SCHEMA,
|
|
10905
|
-
status: localComponentUpdateStatusSchema,
|
|
10906
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
10907
|
-
wakeBlocked: z.boolean()
|
|
10908
|
-
}),
|
|
10909
|
-
service: z.strictObject({
|
|
10910
|
-
installedVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
10911
|
-
latestVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
10912
|
-
reasonCodes: REASON_CODES_SCHEMA,
|
|
10913
|
-
requiredVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
10914
|
-
status: localComponentUpdateStatusSchema,
|
|
10915
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
10916
|
-
wakeBlocked: z.boolean()
|
|
10917
|
-
}),
|
|
10918
|
-
skills: z.strictObject({
|
|
10919
|
-
reasonCodes: REASON_CODES_SCHEMA,
|
|
10920
|
-
status: localComponentUpdateStatusSchema,
|
|
10921
|
-
targetCount: z.number().int().nonnegative().nullable(),
|
|
10922
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
10923
|
-
wakeBlocked: z.boolean()
|
|
10924
|
-
})
|
|
10925
|
-
});
|
|
10926
|
-
const organizationComputerLocalAgentDetailsSchema = z.strictObject({
|
|
10927
|
-
capabilities: agentControllerInterfaceCapabilitiesSchema,
|
|
10928
|
-
check: agentControllerInterfaceCheckSnapshotSchema.optional(),
|
|
10929
|
-
checkedAt: ISO_DATE_TIME_SCHEMA,
|
|
10930
|
-
launch: z.strictObject({
|
|
10931
|
-
installChoiceCount: z.number().int().nonnegative(),
|
|
10932
|
-
status: localAgentCatalogLaunchStatusSchema
|
|
10933
|
-
}),
|
|
10934
|
-
models: z.array(z.strictObject({ displayName: z.string().trim().min(1).max(256) })).max(256),
|
|
10935
|
-
nativeInterface: agentControllerInterfaceNativeInterfaceSchema,
|
|
10936
|
-
status: agentControllerInterfaceStatusSchema,
|
|
10937
|
-
version: BOUNDED_ID_SCHEMA.nullable(),
|
|
10938
|
-
versionAdvisory: z.strictObject({
|
|
10939
|
-
checkedAt: ISO_DATE_TIME_SCHEMA.nullable(),
|
|
10940
|
-
currentVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
10941
|
-
latestVersion: BOUNDED_ID_SCHEMA.nullable(),
|
|
10942
|
-
status: agentControllerInterfaceVersionAdvisoryStatusSchema
|
|
10943
|
-
}).optional()
|
|
10944
|
-
});
|
|
10945
|
-
const organizationComputerLocalAgentSchema = z.strictObject({
|
|
10946
|
-
agentControllerRef: BOUNDED_ID_SCHEMA,
|
|
10947
|
-
details: organizationComputerLocalAgentDetailsSchema.nullable().optional(),
|
|
10948
|
-
enabled: z.boolean(),
|
|
10949
|
-
status: z.enum([
|
|
10950
|
-
"ready",
|
|
10951
|
-
"not_ready",
|
|
10952
|
-
"stale",
|
|
10953
|
-
"unknown"
|
|
10954
|
-
])
|
|
10955
|
-
});
|
|
10956
|
-
const organizationComputerSchema = z.strictObject({
|
|
10957
|
-
computerId: BOUNDED_ID_SCHEMA,
|
|
10958
|
-
deviceDisplayName: z.string().trim().min(1).max(256),
|
|
10959
|
-
deviceType: localRuntimeDeviceTypeSchema,
|
|
10960
|
-
lastSeenAtMs: z.number().int().nonnegative().nullable(),
|
|
10961
|
-
localAgents: z.array(organizationComputerLocalAgentSchema),
|
|
10962
|
-
openMeldTools: organizationComputerOpenMeldToolsSchema.nullable().optional(),
|
|
10963
|
-
osVersion: z.string().trim().min(1).max(120).nullable(),
|
|
10964
|
-
ownerUserId: BOUNDED_ID_SCHEMA,
|
|
10965
|
-
platformFamily: localRuntimePlatformFamilySchema,
|
|
10966
|
-
serviceState: organizationMemberOpenMeldServiceStateSchema
|
|
10967
|
-
});
|
|
10968
|
-
const organizationComputersResponseSchema = z.strictObject({
|
|
10969
|
-
computers: z.array(organizationComputerSchema),
|
|
10970
|
-
generatedAt: ISO_DATE_TIME_SCHEMA,
|
|
10971
|
-
organizationId: BOUNDED_ID_SCHEMA
|
|
10972
|
-
});
|
|
10973
|
-
//#endregion
|
|
10974
11180
|
//#region ../../packages/schemas/dist/schemas/http/organization-logo.js
|
|
10975
11181
|
const ORGANIZATION_LOGO_MAX_SIZE_BYTES = IDENTITY_IMAGE_MAX_SIZE_BYTES;
|
|
10976
11182
|
const organizationLogoMimeTypeSchema = identityImageMimeTypeSchema;
|
|
@@ -11906,6 +12112,7 @@ function normalizeProfileIdList(value) {
|
|
|
11906
12112
|
return value.map((item) => normalize(item)).filter((item) => item.length > 0);
|
|
11907
12113
|
}
|
|
11908
12114
|
const toErrorMessage$2 = toErrorMessage$3;
|
|
12115
|
+
const ORGANIZATION_DIRECTORY_INCLUDE_MEMBER_LAST_ACTIVE_AT_QUERY_PARAMETER = "includeMemberLastActiveAt";
|
|
11909
12116
|
//#endregion
|
|
11910
12117
|
//#region ../../packages/protocol/dist/index.js
|
|
11911
12118
|
const MAX_TEXT_LENGTH = 1e5;
|
|
@@ -13992,8 +14199,9 @@ function createLocalRuntimeExpectedRoutesApi(client) {
|
|
|
13992
14199
|
url: buildExpectedRoutesUrl(input)
|
|
13993
14200
|
}) };
|
|
13994
14201
|
}
|
|
13995
|
-
function buildCurrentOrganizationDirectoryPath() {
|
|
13996
|
-
|
|
14202
|
+
function buildCurrentOrganizationDirectoryPath(input) {
|
|
14203
|
+
const path = "/v1/organizations/current/directory";
|
|
14204
|
+
return input?.includeMemberLastActiveAt === true ? `${path}?${ORGANIZATION_DIRECTORY_INCLUDE_MEMBER_LAST_ACTIVE_AT_QUERY_PARAMETER}=true` : path;
|
|
13997
14205
|
}
|
|
13998
14206
|
function buildCurrentOrganizationComputersPath() {
|
|
13999
14207
|
return "/v1/organizations/current/computers";
|
|
@@ -14010,6 +14218,9 @@ function buildCurrentOrganizationSpacesWithMemberCountsPath() {
|
|
|
14010
14218
|
function buildCurrentOrganizationMessageChannelsPath() {
|
|
14011
14219
|
return "/v1/organizations/current/message-channels";
|
|
14012
14220
|
}
|
|
14221
|
+
function buildCurrentOrganizationMessageChannelIdentityLinkPath(identityLinkId) {
|
|
14222
|
+
return `${buildCurrentOrganizationMessageChannelsPath()}/identity-links/${encodeURIComponent(identityLinkId)}`;
|
|
14223
|
+
}
|
|
14013
14224
|
function buildCurrentOrganizationMessageChannelRegistrationsPath() {
|
|
14014
14225
|
return `${buildCurrentOrganizationMessageChannelsPath()}/registrations`;
|
|
14015
14226
|
}
|
|
@@ -14130,7 +14341,7 @@ const createOrganizationApi = (client) => ({
|
|
|
14130
14341
|
invalidMessage: "invalid Organization Binding authorization profile list response"
|
|
14131
14342
|
}),
|
|
14132
14343
|
getCurrentDirectory: async (input = {}) => await client.requestJson({
|
|
14133
|
-
url: buildCurrentOrganizationDirectoryPath(),
|
|
14344
|
+
url: buildCurrentOrganizationDirectoryPath({ includeMemberLastActiveAt: input.includeMemberLastActiveAt }),
|
|
14134
14345
|
operation: "organization.directory.read",
|
|
14135
14346
|
method: "GET",
|
|
14136
14347
|
requestContext: input.requestContext,
|
|
@@ -14189,6 +14400,16 @@ const createOrganizationApi = (client) => ({
|
|
|
14189
14400
|
schema: messageChannelConnectionListResponseSchema,
|
|
14190
14401
|
invalidMessage: "invalid Organization Message Channels response"
|
|
14191
14402
|
}),
|
|
14403
|
+
disconnectMessageChannelIdentityLink: async (input) => await client.requestJson({
|
|
14404
|
+
url: buildCurrentOrganizationMessageChannelIdentityLinkPath(input.identityLinkId),
|
|
14405
|
+
operation: "organization.message_channel.identity_link.disconnect",
|
|
14406
|
+
method: "DELETE",
|
|
14407
|
+
requestContext: input.requestContext,
|
|
14408
|
+
signal: input.signal,
|
|
14409
|
+
timeoutMs: input.timeoutMs,
|
|
14410
|
+
schema: messageChannelConnectionListResponseSchema,
|
|
14411
|
+
invalidMessage: "invalid Message Channel identity link disconnect response"
|
|
14412
|
+
}),
|
|
14192
14413
|
listCurrentLarkPlatformRegistrations: async (input = {}) => await client.requestJson({
|
|
14193
14414
|
url: buildCurrentOrganizationMessageChannelRegistrationsPath(),
|
|
14194
14415
|
operation: "organization.message_channel_registrations.list",
|
|
@@ -16285,6 +16506,6 @@ function composeAbortSignals(parent, timeout) {
|
|
|
16285
16506
|
};
|
|
16286
16507
|
}
|
|
16287
16508
|
//#endregion
|
|
16288
|
-
export {
|
|
16509
|
+
export { projectOwnerComputerLocalRuntimes as $, spaceMemberDirectorySchema as $t, MAX_TEXT_LENGTH as A, pauseCenterAgentRoutineResponseSchema as At, sleep as B, centerAgentToolSpeakerSchema as Bt, createSpaceApi as C, profileErrorResponseSchema as Ct, toStructuredApiClientFailure as D, deleteCenterAgentRoutineResponseSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, createCenterAgentRoutineResponseSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, agentActivityEventSchema as Ft, resolveSpaceDispatchTraceRootCause as G, createProjectResponseSchema as Gt, getSpaceUpdatesResponseSchema as H, localProjectControlDaemonFrameSchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, agentActivityProviderSchema as It, spaceDispatchTraceResponseSchema as J, updateProjectResponseSchema as Jt, spaceDispatchTraceAttemptStatusSchema as K, listProjectsResponseSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, agentActivitySessionStatusSchema as Lt, parseIncoming as M, updateCenterAgentRoutineResponseSchema as Mt, parseServerErrorFrame as N, AGENT_ACTIVITY_EVENT_MAX_BYTES as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, listCenterAgentRoutineRunsResponseSchema as Ot, resolveCustomMentionAliasOverride as P, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Pt, ownerComputerDiagnosticsSchema as Q, spaceMemberDirectoryEntrySchema as Qt, buildOpenMeldRequestContextHeaders as R, agentActivitySnapshotQuerySchema as Rt, createRuntimeReportingApi as S, profileCapabilitiesResponseSchema as St, resolveAccountSpaceIndexGatewayHost as T, submitFeedbackIssueResponseSchema as Tt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as U, localProjectControlDiscoverProjectsResponseSchema as Ut, toErrorMessage$3 as V, localProjectControlConnectionSchema as Vt, projectSpaceDispatchTraceFinalVisibleOutcome as W, archiveProjectResponseSchema as Wt, projectObservabilityWakeCorrelation as X, postSpaceMembersResponseSchema as Xt, observabilityWakeTraceSelectorSchema as Y, leaveSpaceResponseSchema as Yt, submitAgentControllerTaskLifecycleEventItemSchema as Z, removeSpaceMembersResponseSchema as Zt, createOrganizationSkillsApi as _, organizationDirectoryResponseSchema as _t, buildSpaceAttachmentDownloadPath as a, startReplyReadinessSummarySchema as an, computerFileAccessPolicyInputSchema as at, createProjectsApi as b, authProfileKindSchema as bt, createAgentProfileBindingApi as c, agentControllerCollaborationModeSchema as cn, organizationSpaceDirectoryWithMemberCountsResponseSchema as ct, createCurrentDeviceApi as d, getOrganizationSkillResponseSchema as dt, openCodePermissionConfigSchema as en, summarizeComputerFileAccessPolicy as et, createFeedbackApi as f, listOrganizationSkillsResponseSchema as ft, createOrganizationApi as g, stringifyOrganizationSkillBundleCanonicalJson as gt, createOpenMeldApiClient as h, organizationSkillSummarySchema as ht, buildProfileSpaceHistoryUpsertPath as i, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as in, computerFileAccessDaemonFrameSchema as it, parseEnvelope as j, resumeCenterAgentRoutineResponseSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, listCenterAgentRoutinesResponseSchema as kt, createCenterAgentApi as l, toLegacySpaceAddressingWireValue as ln, spaceCreatorSchema as lt, createLocalRuntimeExpectedRoutesApi as m, organizationSkillReleaseSummarySchema as mt, OpenMeldApiClientInvalidResponseError as n, START_BOUNDED_VERSION_SCHEMA as nn, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as nt, createAccountSpaceIndexApi as o, localAgentCatalogSchema as on, computerFileAccessPolicySchema as ot, createFetchTransport as p, organizationSkillBundleSchema as pt, spaceDispatchTraceDispatchStatusSchema as q, projectSchema as qt, buildProfileSpaceHistoryStatusPath as r, START_ISO_DATE_TIME_SCHEMA as rn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as rt, createAgentActivityApi as s, agentControllerPermissionModeSchema as sn, modelCatalogSchema as st, OpenMeldApiClientHttpError as t, START_BOUNDED_ID_SCHEMA as tn, gatewayErrorEnvelopeSchema as tt, createComputerFileAccessApi as u, spaceMetaSchema as ut, createPrepareReadinessApi as v, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as vt, dist_exports as w, submitFeedbackIssueRequestSchema as wt, createRoutinesApi as x, authProfileManagedRoleSchema as xt, createProfileSpaceHistoryApi as y, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as yt, toErrorMessage$2 as z, agentActivitySnapshotResponseSchema as zt };
|
|
16289
16510
|
|
|
16290
|
-
//# sourceMappingURL=dist-
|
|
16511
|
+
//# sourceMappingURL=dist-k89N2rz0.js.map
|