sailfork / t3code-github / .repos/ alchemy-effect/ packages/ gcp/ src/ ContactCenterInsights/ Conversation.ts

import * as cci from "@distilled.cloud/gcp/contactcenterinsights_v1";
import { unownedUnlessPrevious } from "alchemy/AdoptPolicy";
import { isResolved } from "alchemy/Diff";
import * as Provider from "alchemy/Provider";
import { Resource } from "alchemy/Resource";
import { tagRecord } from "alchemy/Tags";
import * as Data from "effect/Data";
import * as Effect from "effect/Effect";
import * as Stream from "effect/Stream";
import { GcpEnvironment } from "../Environment.ts";
import {
  createInternalLabels,
  diffLabels,
  hasAlchemyLabels,
  stripInternalLabels,
  toLabels,
} from "../Labels.ts";
import type { Providers } from "../Providers.ts";
import {
  lastSegment,
  locationOf,
  locationParent,
  normalizeLocation,
  sameText,
  toResourceId,
  updateMaskOf,
} from "./ownership.ts";

export type ConversationMedium = "MEDIUM_UNSPECIFIED" | "PHONE_CALL" | "CHAT";

export type GcsSource = {
  /** Cloud Storage URI of conversation audio. */
  audioUri?: string;
  /** Cloud Storage URI of the conversation transcript. Immutable. */
  transcriptUri?: string;
};

export type ConversationDataSource = {
  /** Cloud Storage audio and/or transcript. */
  gcsSource?: GcsSource;
  /** Cloud Storage URI of conversation metadata. */
  metadataUri?: string;
};

export type CallMetadata = {
  /** Audio channel that contains the customer. */
  customerChannel?: number;
  /** Audio channel that contains the agent. */
  agentChannel?: number;
};

export type ConversationProps = {
  /**
   * Conversation id (the `{conversation}` segment of
   * `projects/{project}/locations/{location}/conversations/{conversation}`).
   * If omitted, a unique id is generated. Must match `^[a-z0-9-]{4,64}

	
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	.repos/alchemy-effect/packages/gcp/src/ContactCenterInsights/Conversation.ts at main · sailfork/t3code-github · Sailfork
	
		
. * Immutable — changing it replaces the conversation. */ conversationId?: string; /** * Location (`us-central1`, …). Immutable — changing it replaces the * conversation. `US-CENTRAL1` is accepted and normalized to * `us-central1`. * @default the stack's GCP region (`GCP.Region`, else the profile region, else `us-central1`) */ location?: string; /** * Conversation medium. Immutable — changing it replaces the * conversation. * @default "CHAT" */ medium?: ConversationMedium | (string & {}); /** * User labels. Alchemy ownership labels are merged in automatically. * At most 100 labels, 256 characters per entry. */ labels?: Record<string, string>; /** Opaque id of the human agent who handled the conversation. */ agentId?: string; /** BCP-47 language code. */ languageCode?: string; /** RFC3339 conversation start time. */ startTime?: string; /** * RFC3339 expiry. After this time the conversation and its analyses * are deleted. */ expireTime?: string; /** * Input-only TTL used to compute `expireTime` (e.g. `"86400s"`). */ ttl?: string; /** Audio and transcript source. */ dataSource?: ConversationDataSource; /** Call-specific channel metadata. */ callMetadata?: CallMetadata; /** Telephony-system JSON metadata. */ metadataJson?: string; /** Obfuscated end-user id. */ obfuscatedUserId?: string; /** * Delete analyses together with the conversation. * @default true */ forceDestroy?: boolean; }; export type Conversation = Resource< "GCP.ContactCenterInsights.Conversation", ConversationProps, { /** Full resource name `projects/{project}/locations/{location}/conversations/{conversation}`. */ name: string; /** Conversation id (last path segment). */ conversationId: string; /** Location id. */ location: string; /** Project id. */ project: string; /** Conversation medium. */ medium: string | undefined; /** User labels (Alchemy ownership labels stripped). */ labels: Record<string, string>; /** Agent id. */ agentId: string | undefined; /** Language code. */ languageCode: string | undefined; /** RFC3339 start time. */ startTime: string | undefined; /** RFC3339 expiry. */ expireTime: string | undefined; /** Data source. */ dataSource: ConversationDataSource | undefined; /** Call metadata. */ callMetadata: CallMetadata | undefined; /** Duration of the conversation. */ duration: string | undefined; /** Number of turns. */ turnCount: number | undefined; /** RFC3339 creation timestamp. */ createTime: string | undefined; /** RFC3339 last-update timestamp. */ updateTime: string | undefined; }, never, Providers >; /** * A Contact Center AI Insights conversation (chat or phone call). * * `create` does not transcribe or redact audio — use `conversations.upload` * for that. Location, id, and medium are immutable. Labels, agent id, * language, and expiry update in place. * * ### Creating a Conversation * **Example:** Chat conversation with labels * ```typescript * const conversation = yield* GCP.ContactCenterInsights.Conversation( * "Chat", * { * medium: "CHAT", * languageCode: "en-US", * agentId: "agent-1", * labels: { env: "test" }, * }, * ); * ``` * * **Example:** Transcript from Cloud Storage * ```typescript * const conversation = yield* GCP.ContactCenterInsights.Conversation( * "Chat", * { * medium: "CHAT", * dataSource: { * gcsSource: { transcriptUri: "gs://bucket/transcript.json" }, * }, * }, * ); * ``` * * @resource * @category ContactCenterInsights */ export const Conversation = Resource<Conversation>("GCP.ContactCenterInsights.Conversation"); export class ConversationNotResolved extends Data.TaggedError( "GCP.ContactCenterInsights.ConversationNotResolved", )<{ resourceName: string; }> {} const DEFAULT_MEDIUM = "CHAT"; const userLabels = ( labels: Record<string, string | undefined> | null | undefined, ): Record<string, string> => stripInternalLabels(tagRecord(labels)); const resourceName = (project: string, location: string, conversationId: string) => `${locationParent(project, location)}/conversations/${conversationId}`; const dataSourceOf = ( source: cci.GoogleCloudContactcenterinsightsV1ConversationDataSource | undefined, ): ConversationDataSource | undefined => { if (source === undefined) return undefined; return { gcsSource: source.gcsSource ? { audioUri: source.gcsSource.audioUri, transcriptUri: source.gcsSource.transcriptUri, } : undefined, metadataUri: source.metadataUri, }; }; const callMetadataOf = ( metadata: cci.GoogleCloudContactcenterinsightsV1ConversationCallMetadata | undefined, ): CallMetadata | undefined => { if (metadata === undefined) return undefined; return { customerChannel: metadata.customerChannel, agentChannel: metadata.agentChannel, }; }; const toAttrs = ( conversation: cci.GoogleCloudContactcenterinsightsV1Conversation, project: string, ) => { const name = conversation.name ?? ""; return { name, conversationId: lastSegment(name), location: locationOf(name), project, medium: conversation.medium, labels: userLabels(conversation.labels), agentId: conversation.agentId, languageCode: conversation.languageCode, startTime: conversation.startTime, expireTime: conversation.expireTime, dataSource: dataSourceOf(conversation.dataSource), callMetadata: callMetadataOf(conversation.callMetadata), duration: conversation.duration, turnCount: conversation.turnCount, createTime: conversation.createTime, updateTime: conversation.updateTime, }; }; const getByName = (name: string) => name.length === 0 ? Effect.undefined : cci .getProjectsLocationsConversations({ name, view: "BASIC" }) .pipe(Effect.catchTag("NotFound", () => Effect.undefined)); const listAt = (parent: string, project: string) => cci.listProjectsLocationsConversations.pages({ parent, pageSize: 100, view: "BASIC" }).pipe( Stream.flatMap((page) => Stream.fromIterable(page.conversations ?? [])), Stream.filter((conversation) => Object.keys(conversation.labels ?? {}).some((key) => key.startsWith("alchemy-")), ), Stream.map((conversation) => toAttrs(conversation, project)), Stream.runCollect, Effect.map((chunk) => Array.from(chunk)), Effect.catchTag("NotFound", () => Effect.succeed([])), ); export const ConversationProvider = () => Provider.succeed(Conversation, { stables: ["name", "conversationId", "location", "project", "medium", "createTime"], diff: Effect.fn(function* ({ news, olds, output }) { if (!isResolved(news)) return undefined; const previousLocation = olds?.location ?? output?.location; if ( previousLocation !== undefined && news.location !== undefined && normalizeLocation(previousLocation) !== normalizeLocation(news.location) ) { return { action: "replace" as const, deleteFirst: false }; } const previousId = olds?.conversationId ?? output?.conversationId; if ( previousId !== undefined && news.conversationId !== undefined && news.conversationId !== previousId ) { return { action: "replace" as const, deleteFirst: false }; } const previousMedium = olds?.medium ?? output?.medium; const nextMedium = news.medium ?? DEFAULT_MEDIUM; if (previousMedium !== undefined && previousMedium !== nextMedium) { return { action: "replace" as const, deleteFirst: true }; } return undefined; }), read: Effect.fn(function* ({ id, olds, output, previous }) { const env = yield* GcpEnvironment.current; const conversationId = yield* toResourceId(id, olds?.conversationId, output?.conversationId); const location = normalizeLocation(olds?.location ?? output?.location ?? env.region); const name = output?.name ?? resourceName(env.project, location, conversationId); const existing = yield* getByName(name); if (existing === undefined) return undefined; const attrs = toAttrs(existing, env.project); return (yield* hasAlchemyLabels(id, tagRecord(existing.labels))) ? attrs : unownedUnlessPrevious(attrs, previous, "name"); }), list: () => Effect.gen(function* () { const env = yield* GcpEnvironment.current; return yield* listAt(locationParent(env.project, env.region), env.project); }), reconcile: Effect.fn(function* ({ id, news, output }) { const env = yield* GcpEnvironment.current; const location = normalizeLocation(news.location ?? output?.location ?? env.region); const parent = locationParent(env.project, location); const conversationId = yield* toResourceId(id, news.conversationId, output?.conversationId); const name = resourceName(env.project, location, conversationId); const desiredLabels = { ...toLabels(news.labels), ...(yield* createInternalLabels(id)), }; const medium = news.medium ?? DEFAULT_MEDIUM; let current = yield* getByName(output?.name ?? name); if (current === undefined) { const created = yield* cci .createProjectsLocationsConversations({ parent, conversationId, body: { medium, labels: desiredLabels, agentId: news.agentId, languageCode: news.languageCode, startTime: news.startTime, expireTime: news.expireTime, ttl: news.ttl, dataSource: news.dataSource, callMetadata: news.callMetadata, metadataJson: news.metadataJson, obfuscatedUserId: news.obfuscatedUserId, }, }) .pipe(Effect.catchTag("Conflict", () => getByName(name))); current = created ?? undefined; } if (current === undefined) { return yield* new ConversationNotResolved({ resourceName: name }); } const currentName = current.name ?? name; const observedLabels = tagRecord(current.labels); const { upsert, removed } = diffLabels(observedLabels, desiredLabels); const labelsChanged = upsert.length > 0 || removed.length > 0; const agentChanged = !sameText(current.agentId, news.agentId); const languageChanged = !sameText(current.languageCode, news.languageCode); // Insights assigns a start time when none is given; only a // caller-supplied one can be updated. const startChanged = news.startTime !== undefined && !sameText(current.startTime, news.startTime); const expireChanged = news.expireTime !== undefined && !sameText(current.expireTime, news.expireTime); const callChanged = news.callMetadata !== undefined && ((current.callMetadata?.customerChannel ?? undefined) !== news.callMetadata.customerChannel || (current.callMetadata?.agentChannel ?? undefined) !== news.callMetadata.agentChannel); if ( labelsChanged || agentChanged || languageChanged || startChanged || expireChanged || callChanged ) { current = yield* cci.patchProjectsLocationsConversations({ name: currentName, updateMask: updateMaskOf( labelsChanged ? "labels" : undefined, agentChanged ? "agent_id" : undefined, languageChanged ? "language_code" : undefined, startChanged ? "start_time" : undefined, expireChanged ? "expire_time" : undefined, callChanged ? "call_metadata" : undefined, ), body: { name: currentName, labels: desiredLabels, agentId: news.agentId, languageCode: news.languageCode, startTime: news.startTime, expireTime: news.expireTime, callMetadata: news.callMetadata, }, }); } return toAttrs(current, env.project); }), delete: Effect.fn(function* ({ output, olds }) { yield* cci .deleteProjectsLocationsConversations({ name: output.name, force: olds?.forceDestroy !== false, }) .pipe(Effect.catchTag("NotFound", () => Effect.void)); }), });
.repos/alchemy-effect/packages/gcp/src/ContactCenterInsights/Conversation.ts at main · sailfork/t3code-github · Sailfork
.\n * Immutable — changing it replaces the conversation.\n */\n conversationId?: string;\n /**\n * Location (`us-central1`, …). Immutable — changing it replaces the\n * conversation. `US-CENTRAL1` is accepted and normalized to\n * `us-central1`.\n * @default the stack's GCP region (`GCP.Region`, else the profile region, else `us-central1`)\n */\n location?: string;\n /**\n * Conversation medium. Immutable — changing it replaces the\n * conversation.\n * @default \"CHAT\"\n */\n medium?: ConversationMedium | (string & {});\n /**\n * User labels. Alchemy ownership labels are merged in automatically.\n * At most 100 labels, 256 characters per entry.\n */\n labels?: Record\u003cstring, string>;\n /** Opaque id of the human agent who handled the conversation. */\n agentId?: string;\n /** BCP-47 language code. */\n languageCode?: string;\n /** RFC3339 conversation start time. */\n startTime?: string;\n /**\n * RFC3339 expiry. After this time the conversation and its analyses\n * are deleted.\n */\n expireTime?: string;\n /**\n * Input-only TTL used to compute `expireTime` (e.g. `\"86400s\"`).\n */\n ttl?: string;\n /** Audio and transcript source. */\n dataSource?: ConversationDataSource;\n /** Call-specific channel metadata. */\n callMetadata?: CallMetadata;\n /** Telephony-system JSON metadata. */\n metadataJson?: string;\n /** Obfuscated end-user id. */\n obfuscatedUserId?: string;\n /**\n * Delete analyses together with the conversation.\n * @default true\n */\n forceDestroy?: boolean;\n};\n\nexport type Conversation = Resource\u003c\n \"GCP.ContactCenterInsights.Conversation\",\n ConversationProps,\n {\n /** Full resource name `projects/{project}/locations/{location}/conversations/{conversation}`. */\n name: string;\n /** Conversation id (last path segment). */\n conversationId: string;\n /** Location id. */\n location: string;\n /** Project id. */\n project: string;\n /** Conversation medium. */\n medium: string | undefined;\n /** User labels (Alchemy ownership labels stripped). */\n labels: Record\u003cstring, string>;\n /** Agent id. */\n agentId: string | undefined;\n /** Language code. */\n languageCode: string | undefined;\n /** RFC3339 start time. */\n startTime: string | undefined;\n /** RFC3339 expiry. */\n expireTime: string | undefined;\n /** Data source. */\n dataSource: ConversationDataSource | undefined;\n /** Call metadata. */\n callMetadata: CallMetadata | undefined;\n /** Duration of the conversation. */\n duration: string | undefined;\n /** Number of turns. */\n turnCount: number | undefined;\n /** RFC3339 creation timestamp. */\n createTime: string | undefined;\n /** RFC3339 last-update timestamp. */\n updateTime: string | undefined;\n },\n never,\n Providers\n>;\n\n/**\n * A Contact Center AI Insights conversation (chat or phone call).\n *\n * `create` does not transcribe or redact audio — use `conversations.upload`\n * for that. Location, id, and medium are immutable. Labels, agent id,\n * language, and expiry update in place.\n *\n * ### Creating a Conversation\n * **Example:** Chat conversation with labels\n * ```typescript\n * const conversation = yield* GCP.ContactCenterInsights.Conversation(\n * \"Chat\",\n * {\n * medium: \"CHAT\",\n * languageCode: \"en-US\",\n * agentId: \"agent-1\",\n * labels: { env: \"test\" },\n * },\n * );\n * ```\n *\n * **Example:** Transcript from Cloud Storage\n * ```typescript\n * const conversation = yield* GCP.ContactCenterInsights.Conversation(\n * \"Chat\",\n * {\n * medium: \"CHAT\",\n * dataSource: {\n * gcsSource: { transcriptUri: \"gs://bucket/transcript.json\" },\n * },\n * },\n * );\n * ```\n *\n * @resource\n * @category ContactCenterInsights\n */\nexport const Conversation = Resource\u003cConversation>(\"GCP.ContactCenterInsights.Conversation\");\n\nexport class ConversationNotResolved extends Data.TaggedError(\n \"GCP.ContactCenterInsights.ConversationNotResolved\",\n)\u003c{\n resourceName: string;\n}> {}\n\nconst DEFAULT_MEDIUM = \"CHAT\";\n\nconst userLabels = (\n labels: Record\u003cstring, string | undefined> | null | undefined,\n): Record\u003cstring, string> => stripInternalLabels(tagRecord(labels));\n\nconst resourceName = (project: string, location: string, conversationId: string) =>\n `${locationParent(project, location)}/conversations/${conversationId}`;\n\nconst dataSourceOf = (\n source: cci.GoogleCloudContactcenterinsightsV1ConversationDataSource | undefined,\n): ConversationDataSource | undefined => {\n if (source === undefined) return undefined;\n return {\n gcsSource: source.gcsSource\n ? {\n audioUri: source.gcsSource.audioUri,\n transcriptUri: source.gcsSource.transcriptUri,\n }\n : undefined,\n metadataUri: source.metadataUri,\n };\n};\n\nconst callMetadataOf = (\n metadata: cci.GoogleCloudContactcenterinsightsV1ConversationCallMetadata | undefined,\n): CallMetadata | undefined => {\n if (metadata === undefined) return undefined;\n return {\n customerChannel: metadata.customerChannel,\n agentChannel: metadata.agentChannel,\n };\n};\n\nconst toAttrs = (\n conversation: cci.GoogleCloudContactcenterinsightsV1Conversation,\n project: string,\n) => {\n const name = conversation.name ?? \"\";\n return {\n name,\n conversationId: lastSegment(name),\n location: locationOf(name),\n project,\n medium: conversation.medium,\n labels: userLabels(conversation.labels),\n agentId: conversation.agentId,\n languageCode: conversation.languageCode,\n startTime: conversation.startTime,\n expireTime: conversation.expireTime,\n dataSource: dataSourceOf(conversation.dataSource),\n callMetadata: callMetadataOf(conversation.callMetadata),\n duration: conversation.duration,\n turnCount: conversation.turnCount,\n createTime: conversation.createTime,\n updateTime: conversation.updateTime,\n };\n};\n\nconst getByName = (name: string) =>\n name.length === 0\n ? Effect.undefined\n : cci\n .getProjectsLocationsConversations({ name, view: \"BASIC\" })\n .pipe(Effect.catchTag(\"NotFound\", () => Effect.undefined));\n\nconst listAt = (parent: string, project: string) =>\n cci.listProjectsLocationsConversations.pages({ parent, pageSize: 100, view: \"BASIC\" }).pipe(\n Stream.flatMap((page) => Stream.fromIterable(page.conversations ?? [])),\n Stream.filter((conversation) =>\n Object.keys(conversation.labels ?? {}).some((key) => key.startsWith(\"alchemy-\")),\n ),\n Stream.map((conversation) => toAttrs(conversation, project)),\n Stream.runCollect,\n Effect.map((chunk) => Array.from(chunk)),\n Effect.catchTag(\"NotFound\", () => Effect.succeed([])),\n );\n\nexport const ConversationProvider = () =>\n Provider.succeed(Conversation, {\n stables: [\"name\", \"conversationId\", \"location\", \"project\", \"medium\", \"createTime\"],\n\n diff: Effect.fn(function* ({ news, olds, output }) {\n if (!isResolved(news)) return undefined;\n const previousLocation = olds?.location ?? output?.location;\n if (\n previousLocation !== undefined &&\n news.location !== undefined &&\n normalizeLocation(previousLocation) !== normalizeLocation(news.location)\n ) {\n return { action: \"replace\" as const, deleteFirst: false };\n }\n const previousId = olds?.conversationId ?? output?.conversationId;\n if (\n previousId !== undefined &&\n news.conversationId !== undefined &&\n news.conversationId !== previousId\n ) {\n return { action: \"replace\" as const, deleteFirst: false };\n }\n const previousMedium = olds?.medium ?? output?.medium;\n const nextMedium = news.medium ?? DEFAULT_MEDIUM;\n if (previousMedium !== undefined && previousMedium !== nextMedium) {\n return { action: \"replace\" as const, deleteFirst: true };\n }\n return undefined;\n }),\n\n read: Effect.fn(function* ({ id, olds, output, previous }) {\n const env = yield* GcpEnvironment.current;\n const conversationId = yield* toResourceId(id, olds?.conversationId, output?.conversationId);\n const location = normalizeLocation(olds?.location ?? output?.location ?? env.region);\n const name = output?.name ?? resourceName(env.project, location, conversationId);\n const existing = yield* getByName(name);\n if (existing === undefined) return undefined;\n const attrs = toAttrs(existing, env.project);\n return (yield* hasAlchemyLabels(id, tagRecord(existing.labels)))\n ? attrs\n : unownedUnlessPrevious(attrs, previous, \"name\");\n }),\n\n list: () =>\n Effect.gen(function* () {\n const env = yield* GcpEnvironment.current;\n return yield* listAt(locationParent(env.project, env.region), env.project);\n }),\n\n reconcile: Effect.fn(function* ({ id, news, output }) {\n const env = yield* GcpEnvironment.current;\n const location = normalizeLocation(news.location ?? output?.location ?? env.region);\n const parent = locationParent(env.project, location);\n const conversationId = yield* toResourceId(id, news.conversationId, output?.conversationId);\n const name = resourceName(env.project, location, conversationId);\n const desiredLabels = {\n ...toLabels(news.labels),\n ...(yield* createInternalLabels(id)),\n };\n const medium = news.medium ?? DEFAULT_MEDIUM;\n\n let current = yield* getByName(output?.name ?? name);\n\n if (current === undefined) {\n const created = yield* cci\n .createProjectsLocationsConversations({\n parent,\n conversationId,\n body: {\n medium,\n labels: desiredLabels,\n agentId: news.agentId,\n languageCode: news.languageCode,\n startTime: news.startTime,\n expireTime: news.expireTime,\n ttl: news.ttl,\n dataSource: news.dataSource,\n callMetadata: news.callMetadata,\n metadataJson: news.metadataJson,\n obfuscatedUserId: news.obfuscatedUserId,\n },\n })\n .pipe(Effect.catchTag(\"Conflict\", () => getByName(name)));\n current = created ?? undefined;\n }\n\n if (current === undefined) {\n return yield* new ConversationNotResolved({ resourceName: name });\n }\n\n const currentName = current.name ?? name;\n const observedLabels = tagRecord(current.labels);\n const { upsert, removed } = diffLabels(observedLabels, desiredLabels);\n const labelsChanged = upsert.length > 0 || removed.length > 0;\n const agentChanged = !sameText(current.agentId, news.agentId);\n const languageChanged = !sameText(current.languageCode, news.languageCode);\n // Insights assigns a start time when none is given; only a\n // caller-supplied one can be updated.\n const startChanged =\n news.startTime !== undefined && !sameText(current.startTime, news.startTime);\n const expireChanged =\n news.expireTime !== undefined && !sameText(current.expireTime, news.expireTime);\n const callChanged =\n news.callMetadata !== undefined &&\n ((current.callMetadata?.customerChannel ?? undefined) !==\n news.callMetadata.customerChannel ||\n (current.callMetadata?.agentChannel ?? undefined) !== news.callMetadata.agentChannel);\n\n if (\n labelsChanged ||\n agentChanged ||\n languageChanged ||\n startChanged ||\n expireChanged ||\n callChanged\n ) {\n current = yield* cci.patchProjectsLocationsConversations({\n name: currentName,\n updateMask: updateMaskOf(\n labelsChanged ? \"labels\" : undefined,\n agentChanged ? \"agent_id\" : undefined,\n languageChanged ? \"language_code\" : undefined,\n startChanged ? \"start_time\" : undefined,\n expireChanged ? \"expire_time\" : undefined,\n callChanged ? \"call_metadata\" : undefined,\n ),\n body: {\n name: currentName,\n labels: desiredLabels,\n agentId: news.agentId,\n languageCode: news.languageCode,\n startTime: news.startTime,\n expireTime: news.expireTime,\n callMetadata: news.callMetadata,\n },\n });\n }\n\n return toAttrs(current, env.project);\n }),\n\n delete: Effect.fn(function* ({ output, olds }) {\n yield* cci\n .deleteProjectsLocationsConversations({\n name: output.name,\n force: olds?.forceDestroy !== false,\n })\n .pipe(Effect.catchTag(\"NotFound\", () => Effect.void));\n }),\n });\n","preview":null,"history":null,"version":"ff2976082304a134973532eb5b8f89a178502ef8"},"/_session?shell=1":null}