openmeld 0.3.155 → 0.3.156

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.
@@ -7749,7 +7749,7 @@ z$1.union([slackFileReadResponseSchema, slackReadUnavailableResponseSchema]);
7749
7749
  //#endregion
7750
7750
  //#region ../../packages/schemas/dist/schemas/http/space-status.js
7751
7751
  const isoDateTimeSchema$3 = z$1.iso.datetime({ offset: true });
7752
- const optionalTrimmedStringSchema = z$1.preprocess((value) => {
7752
+ const optionalTrimmedStringSchema$1 = z$1.preprocess((value) => {
7753
7753
  const normalized = String(value ?? "").trim();
7754
7754
  return normalized.length > 0 ? normalized : void 0;
7755
7755
  }, z$1.string().min(1).optional());
@@ -7769,7 +7769,7 @@ const spaceStatusLatestVisibleUpdateSchema = z$1.object({
7769
7769
  ]),
7770
7770
  createdAt: isoDateTimeSchema$3,
7771
7771
  actorProfileId: openMeldRuntimeProfileIdSchema,
7772
- actorName: optionalTrimmedStringSchema,
7772
+ actorName: optionalTrimmedStringSchema$1,
7773
7773
  previewText: nonEmptyTrimmedStringFromUnknown.transform(boundSpaceStatusPreviewText)
7774
7774
  });
7775
7775
  const spaceStatusMembersSummarySchema = spaceMembersSummarySchema.extend({
@@ -7780,8 +7780,8 @@ const getSpaceStatusResponseSchema = z$1.object({
7780
7780
  spaceId: nonEmptyTrimmedStringFromUnknown,
7781
7781
  generatedAt: isoDateTimeSchema$3,
7782
7782
  centerAgentProfileId: agentProfileIdSchema.optional(),
7783
- name: optionalTrimmedStringSchema,
7784
- spacePurpose: optionalTrimmedStringSchema,
7783
+ name: optionalTrimmedStringSchema$1,
7784
+ spacePurpose: optionalTrimmedStringSchema$1,
7785
7785
  directMessageConvertedAt: isoDateTimeSchema$3.optional(),
7786
7786
  organizationVisibility: spaceOrganizationVisibilitySchema.optional(),
7787
7787
  accessMode: spaceAccessModeSchema,
@@ -12588,6 +12588,57 @@ const convertDirectMessageToSpaceResponseSchema = z$1.strictObject({
12588
12588
  spaceId: trimmedNonEmptyStringSchema
12589
12589
  });
12590
12590
  //#endregion
12591
+ //#region ../../packages/schemas/dist/schemas/http/space-entry.js
12592
+ const optionalTrimmedStringSchema = z$1.preprocess((value) => {
12593
+ const normalized = String(value ?? "").trim();
12594
+ return normalized.length > 0 ? normalized : void 0;
12595
+ }, z$1.string().min(1).optional());
12596
+ const spaceEntryTargetSchema = z$1.strictObject({
12597
+ spaceId: nonEmptyTrimmedStringFromUnknown,
12598
+ signalId: optionalTrimmedStringSchema,
12599
+ threadRootSignalId: optionalTrimmedStringSchema
12600
+ });
12601
+ const spaceEntryAllowedViewSchema = z$1.strictObject({
12602
+ state: z$1.literal("allowed"),
12603
+ experience: z$1.enum(["member", "public"])
12604
+ });
12605
+ const spaceEntryBlockedViewSchema = z$1.discriminatedUnion("state", [
12606
+ z$1.strictObject({ state: z$1.literal("sign_in_required") }),
12607
+ z$1.strictObject({ state: z$1.literal("password_required") }),
12608
+ z$1.strictObject({ state: z$1.literal("membership_required") }),
12609
+ z$1.strictObject({ state: z$1.literal("unavailable") })
12610
+ ]);
12611
+ const spaceEntryViewSchema = z$1.union([spaceEntryAllowedViewSchema, spaceEntryBlockedViewSchema]);
12612
+ const spaceEntryParticipationSchema = z$1.discriminatedUnion("state", [
12613
+ z$1.strictObject({ state: z$1.literal("active_member") }),
12614
+ z$1.strictObject({ state: z$1.literal("self_join_available") }),
12615
+ z$1.strictObject({ state: z$1.literal("password_required") }),
12616
+ z$1.strictObject({ state: z$1.literal("owner_add_required") }),
12617
+ z$1.strictObject({ state: z$1.literal("unavailable") })
12618
+ ]);
12619
+ const spaceEntryOwnerSchema = z$1.strictObject({
12620
+ profileId: openMeldRuntimeProfileIdSchema,
12621
+ displayName: optionalTrimmedStringSchema
12622
+ });
12623
+ const spaceEntrySafeContextSchema = z$1.strictObject({
12624
+ organizationId: optionalTrimmedStringSchema,
12625
+ organizationSlug: optionalTrimmedStringSchema,
12626
+ spaceName: optionalTrimmedStringSchema,
12627
+ owner: spaceEntryOwnerSchema.optional()
12628
+ });
12629
+ const spaceEntryRecoverySchema = z$1.union([
12630
+ z$1.strictObject({ kind: z$1.literal("sign_in") }),
12631
+ z$1.strictObject({ kind: z$1.literal("provide_password") }),
12632
+ z$1.strictObject({ kind: z$1.literal("contact_space_owner") })
12633
+ ]);
12634
+ const getSpaceEntryResolutionResponseSchema = z$1.strictObject({
12635
+ target: spaceEntryTargetSchema,
12636
+ view: spaceEntryViewSchema,
12637
+ participation: spaceEntryParticipationSchema,
12638
+ safeContext: spaceEntrySafeContextSchema,
12639
+ recovery: spaceEntryRecoverySchema.nullable()
12640
+ });
12641
+ //#endregion
12591
12642
  //#region ../../packages/schemas/dist/schemas/http/space-wake-trace-waterfall.js
12592
12643
  const optionalSelectorSchema$1 = z$1.preprocess((value) => {
12593
12644
  const normalized = String(value ?? "").trim();
@@ -16954,6 +17005,14 @@ function buildSpaceDeletePath(spaceId) {
16954
17005
  function buildSpaceStatusPath(spaceId) {
16955
17006
  return buildSpaceRoutePath(spaceId, "status");
16956
17007
  }
17008
+ function buildSpaceEntryResolutionPath(input) {
17009
+ const path = buildSpaceRoutePath(input.spaceId, "entry-resolution");
17010
+ const searchParams = new URLSearchParams();
17011
+ if (input.signalId !== void 0) searchParams.set("signalId", input.signalId);
17012
+ if (input.threadRootSignalId !== void 0) searchParams.set("threadRootSignalId", input.threadRootSignalId);
17013
+ const queryString = searchParams.toString();
17014
+ return queryString ? `${path}?${queryString}` : path;
17015
+ }
16957
17016
  function buildSpaceMetaPath(spaceId) {
16958
17017
  return buildSpaceRoutePath(spaceId, "meta");
16959
17018
  }
@@ -17390,6 +17449,18 @@ async function createSpaceDiagnosticReport(client, input) {
17390
17449
  invalidMessage: "invalid diagnostic report response"
17391
17450
  });
17392
17451
  }
17452
+ async function resolveSpaceEntry(client, input) {
17453
+ return await client.requestJson({
17454
+ url: buildSpaceEntryResolutionPath(input),
17455
+ operation: "space.entry.resolve",
17456
+ requestContext: input.requestContext,
17457
+ signal: input.signal,
17458
+ timeoutMs: input.timeoutMs,
17459
+ ...input.spacePassword === void 0 ? {} : { spacePassword: input.spacePassword },
17460
+ schema: getSpaceEntryResolutionResponseSchema,
17461
+ invalidMessage: "invalid Space entry resolution response"
17462
+ });
17463
+ }
17393
17464
  async function inspectSpaceExecutionRecovery(client, input) {
17394
17465
  return await client.requestJson({
17395
17466
  invalidMessage: "invalid execution recovery response",
@@ -18102,6 +18173,7 @@ const createSpaceApi = (client) => {
18102
18173
  leaveSpace: async (input) => await leaveSpace(client, input),
18103
18174
  getBootstrap: async (input) => await getSpaceBootstrap(client, input),
18104
18175
  getStatus: async (input) => await getSpaceStatus(client, input),
18176
+ resolveEntry: async (input) => await resolveSpaceEntry(client, input),
18105
18177
  getMembersSnapshot: async (input) => await getSpaceMembersSnapshot(client, input),
18106
18178
  getMemberDirectory: async (input) => await getSpaceMemberDirectory(client, input),
18107
18179
  getIdentityDirectory: async (input) => await getSpaceIdentityDirectory(client, input),
@@ -18228,4 +18300,4 @@ function composeAbortSignals(parent, timeout) {
18228
18300
  //#endregion
18229
18301
  export { submitAgentControllerTaskLifecycleEventItemSchema as $, spaceMemberDirectoryAllowedRelationsSchema as $t, MAX_TEXT_LENGTH as A, submitFeedbackIssueRequestSchema as At, toErrorMessage$2 as B, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Bt, createSpaceApi as C, agentControllerCollaborationModeSchema as Cn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as Ct, toStructuredApiClientFailure as D, profileCapabilitiesResponseSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, authProfileManagedRoleSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, listCenterAgentRoutinesResponseSchema as Ft, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as G, agentActivitySnapshotResponseSchema as Gt, toErrorMessage$3 as H, agentActivityProviderSchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, pauseCenterAgentRoutineResponseSchema as It, spaceDispatchTraceAttemptStatusSchema as J, localProjectControlDiscoverProjectsResponseSchema as Jt, projectSpaceDispatchTraceFinalVisibleOutcome as K, localProjectControlConnectionSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, resumeCenterAgentRoutineResponseSchema as Lt, parseIncoming as M, createCenterAgentRoutineResponseSchema as Mt, parseServerErrorFrame as N, deleteCenterAgentRoutineResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, profileErrorResponseSchema as Ot, resolveCustomMentionAliasOverride as P, listCenterAgentRoutineRunsResponseSchema as Pt, projectObservabilityWakeCorrelation as Q, spaceMemberAgentWakeAvailabilitySchema as Qt, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as R, updateCenterAgentRoutineResponseSchema as Rt, createRuntimeReportingApi as S, agentControllerPermissionModeSchema as Sn, organizationDirectoryResponseSchema as St, resolveAccountSpaceIndexGatewayHost as T, authProfileKindSchema as Tt, getSpaceUpdatesResponseSchema as U, agentActivitySessionStatusSchema as Ut, sleep as V, agentActivityEventSchema as Vt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as W, agentActivitySnapshotQuerySchema as Wt, spaceDispatchTraceResponseSchema as X, postSpaceMembersResponseSchema as Xt, spaceDispatchTraceDispatchStatusSchema as Y, leaveSpaceResponseSchema as Yt, observabilityWakeTraceSelectorSchema as Z, removeSpaceMembersResponseSchema as Zt, createOrganizationSkillsApi as _, START_BOUNDED_VERSION_SCHEMA as _n, listOrganizationSkillsResponseSchema as _t, buildSpaceAttachmentDownloadPath as a, agentActivitySessionInventoryQuerySchema as an, gatewayErrorEnvelopeSchema as at, createProjectsApi as b, startReplyReadinessSummarySchema as bn, organizationSkillSummarySchema as bt, createAgentProfileBindingApi as c, observedLocalAgentSessionSchema as cn, computerFileAccessDaemonFrameSchema as ct, createCurrentDeviceApi as d, listProjectsResponseSchema as dn, modelCatalogSchema as dt, spaceMemberDirectoryEntrySchema as en, ownerComputerDiagnosticsSchema as et, createFeedbackApi as f, projectSchema as fn, organizationSpaceDirectoryWithMemberCountsResponseSchema as ft, createOrganizationApi as g, START_BOUNDED_ID_SCHEMA as gn, getOrganizationSkillResponseSchema as gt, createOpenMeldApiClient as h, openCodePermissionConfigSchema as hn, spaceMetaSchema as ht, buildProfileSpaceHistoryUpsertPath as i, agentActivityInventorySessionStatusSchema as in, agentProfileCreationConfigurationSchema as it, parseEnvelope as j, submitFeedbackIssueResponseSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, organizationComputersResponseSchema as kt, createCenterAgentApi as l, archiveProjectResponseSchema as ln, computerFileAccessPolicyInputSchema as lt, createLocalRuntimeExpectedRoutesApi as m, centerAgentToolSpeakerSchema as mn, spaceCreatorSchema as mt, OpenMeldApiClientInvalidResponseError as n, spaceMemberKindSchema as nn, summarizeComputerFileAccessPolicy as nt, createAccountSpaceIndexApi as o, agentActivitySessionInventoryResponseSchema as on, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as ot, createFetchTransport as p, updateProjectResponseSchema as pn, resolveInitialSpaceAccessMode as pt, resolveSpaceDispatchTraceRootCause as q, localProjectControlDaemonFrameSchema as qt, buildProfileSpaceHistoryStatusPath as r, agentActivityInventorySessionOriginSchema as rn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as rt, createAgentActivityApi as s, localAgentSessionProviderSchema as sn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as st, OpenMeldApiClientHttpError as t, spaceMemberDirectorySchema as tn, projectOwnerComputerLocalRuntimes as tt, createComputerFileAccessApi as u, createProjectResponseSchema as un, computerFileAccessPolicySchema as ut, createPrepareReadinessApi as v, START_ISO_DATE_TIME_SCHEMA as vn, organizationSkillBundleSchema as vt, dist_exports as w, toCompatibleSpaceAddressingRequestWireValue as wn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as wt, createRoutinesApi as x, localAgentCatalogSchema as xn, stringifyOrganizationSkillBundleCanonicalJson as xt, createProfileSpaceHistoryApi as y, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as yn, organizationSkillReleaseSummarySchema as yt, buildOpenMeldRequestContextHeaders as z, AGENT_ACTIVITY_EVENT_MAX_BYTES as zt };
18230
18302
 
18231
- //# sourceMappingURL=dist-CUeqTNJi.js.map
18303
+ //# sourceMappingURL=dist-BkbTq1JP.js.map