@powerhousedao/reactor-browser 6.2.3-dev.4 → 6.2.3-dev.40

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.
Files changed (86) hide show
  1. package/dist/{attachment-service-D3EhiAJ7.d.ts → attachment-service-B2UAo7sA.d.ts} +169 -59
  2. package/dist/attachment-service-B2UAo7sA.d.ts.map +1 -0
  3. package/dist/{client-BIHN_UyR.d.ts → client-BYd9eNbA.d.ts} +3 -3
  4. package/dist/client-BYd9eNbA.d.ts.map +1 -0
  5. package/dist/{client-D66jVnot.js → client-CSOLwWU9.js} +141 -20
  6. package/dist/client-CSOLwWU9.js.map +1 -0
  7. package/dist/{client-DjK30EQ-.js → client-Cq5avLW5.js} +35 -22
  8. package/dist/client-Cq5avLW5.js.map +1 -0
  9. package/dist/{document-by-id-B4FIzG1w.js → dispatch-t-XkZYGh.js} +393 -54
  10. package/dist/dispatch-t-XkZYGh.js.map +1 -0
  11. package/dist/document-by-id-CQZMsJ9I.js +16 -0
  12. package/dist/document-by-id-CQZMsJ9I.js.map +1 -0
  13. package/dist/{document-model-modules-bTP87nyr.js → document-model-modules-Bfi0VEWy.js} +32 -65
  14. package/dist/document-model-modules-Bfi0VEWy.js.map +1 -0
  15. package/dist/{document-operations-WeE6wIDt.js → document-operations-DJxHHfWq.js} +147 -120
  16. package/dist/document-operations-DJxHHfWq.js.map +1 -0
  17. package/dist/{global-OuINvEGT.d.ts → global-B0ewjXaM.d.ts} +50 -13
  18. package/dist/global-B0ewjXaM.d.ts.map +1 -0
  19. package/dist/{index-B33TKEqp.d.ts → index-Be363bAF.d.ts} +19 -98
  20. package/dist/index-Be363bAF.d.ts.map +1 -0
  21. package/dist/{index-BIVDXw3K.d.ts → index-rtDmzViP.d.ts} +3 -3
  22. package/dist/index-rtDmzViP.d.ts.map +1 -0
  23. package/dist/index.d.ts +383 -370
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +114 -39
  26. package/dist/index.js.map +1 -1
  27. package/dist/{inspector-proxy-6h5VKAwt.d.ts → inspector-proxy-DCowaeeH.d.ts} +11 -4
  28. package/dist/inspector-proxy-DCowaeeH.d.ts.map +1 -0
  29. package/dist/{make-ph-event-functions-DBq3iWYn.js → make-ph-event-functions-FzpvQtj6.js} +1 -1
  30. package/dist/{make-ph-event-functions-DBq3iWYn.js.map → make-ph-event-functions-FzpvQtj6.js.map} +1 -1
  31. package/dist/{pglite-CntadC_p-9NDG14dS.d.ts → pglite-CntadC_p-DTkdF8sr.d.ts} +11 -33
  32. package/dist/pglite-CntadC_p-DTkdF8sr.d.ts.map +1 -0
  33. package/dist/{relational-D1RB45sA.js → relational-ChC_AWAK.js} +3 -2
  34. package/dist/{relational-D1RB45sA.js.map → relational-ChC_AWAK.js.map} +1 -1
  35. package/dist/{renown-rqK8sokh.js → renown-C9pYZRqf.js} +7 -8
  36. package/dist/{renown-rqK8sokh.js.map → renown-C9pYZRqf.js.map} +1 -1
  37. package/dist/{renown-BHxwP7xU.js → renown-Def5iO8k.js} +2 -2
  38. package/dist/{renown-BHxwP7xU.js.map → renown-Def5iO8k.js.map} +1 -1
  39. package/dist/src/ai/index.d.ts +51 -62
  40. package/dist/src/ai/index.d.ts.map +1 -1
  41. package/dist/src/ai/index.js +5 -8
  42. package/dist/src/ai/index.js.map +1 -1
  43. package/dist/src/analytics/index.d.ts +36 -44
  44. package/dist/src/analytics/index.d.ts.map +1 -1
  45. package/dist/src/analytics/index.js +2 -2
  46. package/dist/src/analytics/index.js.map +1 -1
  47. package/dist/src/document-model.d.ts +3 -4
  48. package/dist/src/document-model.d.ts.map +1 -1
  49. package/dist/src/document-model.js.map +1 -1
  50. package/dist/src/graphql/client.d.ts +4 -3
  51. package/dist/src/graphql/client.js +1 -1
  52. package/dist/src/graphql-client/entry.d.ts +5 -4
  53. package/dist/src/graphql-client/entry.js +4 -4
  54. package/dist/src/relational/index.d.ts +8 -9
  55. package/dist/src/relational/index.d.ts.map +1 -1
  56. package/dist/src/relational/index.js +1 -1
  57. package/dist/src/renown/index.d.ts +3 -2
  58. package/dist/src/renown/index.js +2 -2
  59. package/dist/src/rpc/index.d.ts +52 -32
  60. package/dist/src/rpc/index.d.ts.map +1 -1
  61. package/dist/src/rpc/index.js +58 -9
  62. package/dist/src/rpc/index.js.map +1 -1
  63. package/dist/{store-BJYcr_FL.js → store-DInXcjal.js} +1 -1
  64. package/dist/{store-BJYcr_FL.js.map → store-DInXcjal.js.map} +1 -1
  65. package/dist/{switchboard-CaXQ4-5Q.js → switchboard-kKDuDWxY.js} +58 -6
  66. package/dist/switchboard-kKDuDWxY.js.map +1 -0
  67. package/dist/{types-6vDzbRRS.d.ts → types-520nWrB3.d.ts} +2 -2
  68. package/dist/types-520nWrB3.d.ts.map +1 -0
  69. package/dist/{types-Dcv1ZLoW.d.ts → types-Cww0HJmz.d.ts} +102 -17
  70. package/dist/types-Cww0HJmz.d.ts.map +1 -0
  71. package/package.json +15 -16
  72. package/dist/attachment-service-D3EhiAJ7.d.ts.map +0 -1
  73. package/dist/client-BIHN_UyR.d.ts.map +0 -1
  74. package/dist/client-D66jVnot.js.map +0 -1
  75. package/dist/client-DjK30EQ-.js.map +0 -1
  76. package/dist/document-by-id-B4FIzG1w.js.map +0 -1
  77. package/dist/document-model-modules-bTP87nyr.js.map +0 -1
  78. package/dist/document-operations-WeE6wIDt.js.map +0 -1
  79. package/dist/global-OuINvEGT.d.ts.map +0 -1
  80. package/dist/index-B33TKEqp.d.ts.map +0 -1
  81. package/dist/index-BIVDXw3K.d.ts.map +0 -1
  82. package/dist/inspector-proxy-6h5VKAwt.d.ts.map +0 -1
  83. package/dist/pglite-CntadC_p-9NDG14dS.d.ts.map +0 -1
  84. package/dist/switchboard-CaXQ4-5Q.js.map +0 -1
  85. package/dist/types-6vDzbRRS.d.ts.map +0 -1
  86. package/dist/types-Dcv1ZLoW.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switchboard-kKDuDWxY.js","names":[],"sources":["../src/utils/nodes.ts","../src/hooks/items-in-selected-drive.ts","../src/hooks/selected-node.ts","../src/hooks/document-of-type.ts","../src/hooks/selected-document.ts","../src/ai/switchboard.ts"],"sourcesContent":["import type {\n FileNode,\n FolderNode,\n Node,\n} from \"@powerhousedao/shared/document-drive\";\n\n/** Sorts nodes by name. */\nexport function sortNodesByName<T extends Node>(nodes: T[]) {\n return nodes.toSorted((a, b) => a.name.localeCompare(b.name));\n}\n\n/** Returns whether a node is a file. */\nexport function isFileNodeKind(\n node: Node | null | undefined,\n): node is FileNode {\n if (!node) return false;\n return node.kind.toUpperCase() === \"FILE\";\n}\n\n/** Returns whether a node is a folder. */\nexport function isFolderNodeKind(\n node: Node | null | undefined,\n): node is FolderNode {\n if (!node) return false;\n return node.kind.toUpperCase() === \"FOLDER\";\n}\n","import type {\n FileNode,\n FolderNode,\n} from \"@powerhousedao/shared/document-drive\";\nimport type {\n DocumentModelDocument,\n PHDocument,\n} from \"@powerhousedao/shared/document-model\";\nimport { isFileNodeKind, isFolderNodeKind } from \"../utils/nodes.js\";\nimport { useDocumentsByIds } from \"./document-by-id.js\";\nimport { useSelectedDriveSafe } from \"./selected-drive.js\";\n\n/** Returns the nodes in the selected drive. */\nexport function useNodesInSelectedDrive() {\n const [selectedDrive] = useSelectedDriveSafe();\n return selectedDrive?.state.global.nodes;\n}\n\n/** Returns the file nodes in the selected drive. */\nexport function useFileNodesInSelectedDrive(): FileNode[] | undefined {\n const nodes = useNodesInSelectedDrive();\n return nodes?.filter((n) => isFileNodeKind(n));\n}\n\n/** Returns the folder nodes in the selected drive. */\nexport function useFolderNodesInSelectedDrive(): FolderNode[] | undefined {\n const nodes = useNodesInSelectedDrive();\n return nodes?.filter((n) => isFolderNodeKind(n));\n}\n\n/** Returns the documents in the selected drive. */\nexport function useDocumentsInSelectedDrive(): PHDocument[] | undefined {\n const fileNodes = useFileNodesInSelectedDrive();\n const fileNodeIds = fileNodes?.map((node) => node.id);\n return useDocumentsByIds(fileNodeIds);\n}\n\n/** Returns the document types supported by the selected drive, as defined by the document model documents present in the drive */\nexport function useDocumentTypesInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n const documentModelDocumentsInSelectedDrive =\n documentsInSelectedDrive?.filter(isDocumentModelDocument);\n const documentTypesFromDocumentModelDocuments =\n documentModelDocumentsInSelectedDrive?.map((doc) => doc.state.global.id);\n return documentTypesFromDocumentModelDocuments;\n}\n\nfunction isDocumentModelDocument(\n document: PHDocument,\n): document is DocumentModelDocument {\n return document.header.documentType === \"powerhouse/document-model\";\n}\n","import type { Node } from \"@powerhousedao/shared/document-drive\";\nimport { useNodesInSelectedDrive } from \"./items-in-selected-drive.js\";\nimport { useSelectedNodeId } from \"./set-selected-node.js\";\n\nexport {\n addResetSelectedNodeEventHandler,\n addSelectedNodeIdEventHandler,\n addSetSelectedNodeOnPopStateEventHandler,\n setSelectedNode,\n} from \"./set-selected-node.js\";\n\n/** Returns the selected node. */\nexport function useSelectedNode(): Node | undefined {\n const selectedNodeId = useSelectedNodeId();\n const nodes = useNodesInSelectedDrive();\n return nodes?.find((n) => n.id === selectedNodeId);\n}\n","import { ModuleNotFoundError } from \"@powerhousedao/reactor\";\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport type { Action, PHDocument } from \"@powerhousedao/shared/document-model\";\nimport { DocumentTypeMismatchError } from \"../errors.js\";\nimport { useDocumentById } from \"./document-by-id.js\";\nimport { useDocumentModelModuleById } from \"./document-model-modules.js\";\n\n/** Returns a document of a specific type, throws an error if the found document has a different type */\nexport function useDocumentOfType<\n TDocument extends PHDocument,\n TAction extends Action,\n>(\n documentId: string | null | undefined,\n documentType: string | null | undefined,\n) {\n const [document, dispatch] = useDocumentById(documentId);\n const documentModelModule = useDocumentModelModuleById(documentType);\n\n if (!documentId || !documentType) return [];\n\n if (!document) {\n throw new Error(`Document not found: ${documentId}`);\n }\n if (!documentModelModule) {\n throw new ModuleNotFoundError(documentType);\n }\n\n if (document.header.documentType !== documentType) {\n throw new DocumentTypeMismatchError(\n documentId,\n documentType,\n document.header.documentType,\n );\n }\n\n return [document, dispatch] as [TDocument, DocumentDispatch<TAction>];\n}\n","import type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport { isFileNode } from \"@powerhousedao/shared/document-drive\";\nimport type { Action, PHDocument } from \"@powerhousedao/shared/document-model\";\nimport { NoSelectedDocumentError } from \"../errors.js\";\nimport type { DispatchFn, UseDispatchResult } from \"./dispatch.js\";\nimport { useDocumentById } from \"./document-by-id.js\";\nimport { useDocumentOfType } from \"./document-of-type.js\";\nimport { useSelectedNode } from \"./selected-node.js\";\n\n/** Returns the selected document id */\nexport function useSelectedDocumentId(): string | undefined {\n const selectedNode = useSelectedNode();\n return selectedNode && isFileNode(selectedNode) ? selectedNode.id : undefined;\n}\n\n/** Returns the selected document. */\nexport function useSelectedDocument(): readonly [\n PHDocument,\n DispatchFn<Action>,\n] {\n const selectedDocumentId = useSelectedDocumentId();\n const [document, dispatch] = useDocumentById(selectedDocumentId);\n if (!document) {\n throw new NoSelectedDocumentError();\n }\n return [document, dispatch] as const;\n}\n\n/** Returns the selected document. */\nexport function useSelectedDocumentSafe(): UseDispatchResult<\n PHDocument,\n Action\n> {\n const selectedDocumentId = useSelectedDocumentId();\n return useDocumentById(selectedDocumentId);\n}\n\n/** Returns the selected document of a specific type, throws an error if the found document has a different type */\nexport function useSelectedDocumentOfType(\n documentType: null | undefined,\n): never[];\nexport function useSelectedDocumentOfType<\n TDocument extends PHDocument,\n TAction extends Action,\n>(documentType: string): [TDocument, DocumentDispatch<TAction>];\nexport function useSelectedDocumentOfType<\n TDocument extends PHDocument,\n TAction extends Action,\n>(\n documentType: string | null | undefined,\n): never[] | [TDocument, DocumentDispatch<TAction>] {\n const documentId = useSelectedDocumentId();\n\n if (!documentType) {\n return [];\n }\n if (!documentId) {\n throw new NoSelectedDocumentError();\n }\n return useDocumentOfType<TDocument, TAction>(documentId, documentType);\n}\n","import { DriveCollectionId, type ISyncManager } from \"@powerhousedao/reactor\";\nimport { z } from \"zod\";\nimport { ambientRenownTokenProvider } from \"../graphql-client/auth.js\";\nimport type { AiToolDescriptor } from \"./types.js\";\n\n/**\n * The switchboard serving a remote drive: the base URL the browser talks to\n * and its GraphQL supergraph endpoint.\n */\nexport interface DriveSwitchboard {\n /** Switchboard base URL (e.g. `http://localhost:4001`). */\n switchboardUrl: string;\n /** GraphQL supergraph endpoint (`<base>/graphql`). */\n graphqlUrl: string;\n}\n\n/**\n * Reads the tab-side sync manager from the browser global. Returns\n * `undefined` in non-browser environments or before the reactor client\n * module is initialized.\n */\nexport function getBrowserSyncManager(): ISyncManager | undefined {\n if (typeof window === \"undefined\") {\n return undefined;\n }\n return window.ph?.reactorClientModule?.reactorModule?.syncModule?.syncManager;\n}\n\n/** Suffix of the per-drive GraphQL channel endpoint the switchboard serves. */\nexport const GQL_CHANNEL_SUFFIX = \"/graphql/r\";\n\n/**\n * Resolves the switchboard that serves a drive, if any.\n *\n * Every remote drive stores its switchboard's exact GraphQL channel\n * endpoint in its sync remote — `channelConfig = { type: \"gql\",\n * parameters: { url: \"<origin>/graphql/r\" } }` — and the switchboard base\n * is that URL minus the `/graphql/r` suffix. Deriving it per drive (rather\n * than from a global setting) is what keeps multi-switchboard deployments\n * correct. Drives that are not synced to a remote switchboard (local\n * drives, other channel types, unexpected shapes) return `undefined`.\n */\nexport function resolveDriveSwitchboard(\n driveId: string | undefined,\n syncManager?: ISyncManager,\n): DriveSwitchboard | undefined {\n const manager = syncManager ?? getBrowserSyncManager();\n if (!driveId || !manager) {\n return undefined;\n }\n const collectionId = DriveCollectionId.forDrive(driveId);\n const remote = manager\n .list()\n .find((r) => r.meta.collectionId.equals(collectionId));\n if (!remote) {\n return undefined;\n }\n const { channelConfig } = remote.meta;\n if (channelConfig.type !== \"gql\") {\n return undefined;\n }\n const url = channelConfig.parameters.url;\n if (typeof url !== \"string\" || !url.endsWith(GQL_CHANNEL_SUFFIX)) {\n return undefined;\n }\n const switchboardUrl = url.slice(0, -GQL_CHANNEL_SUFFIX.length);\n return { switchboardUrl, graphqlUrl: `${switchboardUrl}/graphql` };\n}\n\n/** A bounded introspected GraphQL type reference (see the query below). */\ntype IntrospectedTypeRef = {\n kind: string;\n name: string | null;\n ofType?: IntrospectedTypeRef | null;\n};\n\ntype IntrospectedField = {\n name: string;\n description: string | null;\n args: Array<{ name: string; type: IntrospectedTypeRef }>;\n type: IntrospectedTypeRef;\n};\n\ntype IntrospectedRootType = {\n fields: IntrospectedField[] | null;\n} | null;\n\ntype IntrospectedSchema = {\n queryType?: IntrospectedRootType;\n mutationType?: IntrospectedRootType;\n};\n\n/**\n * Introspection over the switchboard supergraph's root query and mutation\n * fields. Types are requested with three levels of `ofType` nesting so\n * that common shapes like `[X!]!` (LIST(NON_NULL(LIST(X)))) render fully.\n */\nexport const SWITCHBOARD_INTROSPECTION_QUERY: string = /* GraphQL */ `\n query SwitchboardIntrospection {\n __schema {\n queryType {\n fields {\n name\n description\n args {\n name\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n mutationType {\n fields {\n name\n description\n args {\n name\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n`;\n\n/**\n * Renders an introspected type reference as a GraphQL type string.\n * Recursion is bounded by the `ofType` nesting of the query, so it always\n * terminates.\n */\nfunction renderTypeRef(type: IntrospectedTypeRef | null | undefined): string {\n if (!type) {\n return \"Unknown\";\n }\n switch (type.kind) {\n case \"NON_NULL\":\n return `${renderTypeRef(type.ofType)}!`;\n case \"LIST\":\n return `[${renderTypeRef(type.ofType)}]`;\n default:\n return type.name ?? \"Unknown\";\n }\n}\n\n/** One root query or mutation field, reduced to a prompt-friendly line. */\nexport type SchemaFieldSummary = {\n name: string;\n description?: string;\n args: string;\n returns: string;\n};\n\n/** Cap on the number of fields reported per root type. */\nconst MAX_FIELDS_PER_ROOT = 200;\n\nfunction summarizeFields(fields: IntrospectedField[] | null | undefined): {\n fields: SchemaFieldSummary[];\n truncated: boolean;\n} {\n const list = fields ?? [];\n return {\n fields: list.slice(0, MAX_FIELDS_PER_ROOT).map((field) => ({\n name: field.name,\n ...(field.description ? { description: field.description } : {}),\n args: field.args\n .map((arg) => `${arg.name}: ${renderTypeRef(arg.type)}`)\n .join(\", \"),\n returns: renderTypeRef(field.type),\n })),\n truncated: list.length > MAX_FIELDS_PER_ROOT,\n };\n}\n\n/**\n * Reduces a GraphQL `__schema` introspection payload (the `data.__schema`\n * object) to a compact summary of its root query and mutation fields.\n * Accepts `unknown` because the payload arrives over the wire.\n */\nexport function summarizeIntrospectionSchema(schema: unknown): {\n queries: SchemaFieldSummary[];\n mutations: SchemaFieldSummary[];\n truncated: boolean;\n} {\n const introspection = (schema ?? {}) as IntrospectedSchema;\n const queries = summarizeFields(introspection.queryType?.fields);\n const mutations = summarizeFields(introspection.mutationType?.fields);\n return {\n queries: queries.fields,\n mutations: mutations.fields,\n truncated: queries.truncated || mutations.truncated,\n };\n}\n\nexport const SWITCHBOARD_SCHEMA_TOOL_NAME = \"getSwitchboardSchema\";\n\n/** Test seams for {@link createSwitchboardSchemaTool}. */\nexport interface SwitchboardToolDeps {\n getSyncManager?: () => ISyncManager | undefined;\n getSelectedDriveId?: () => string | undefined;\n tokenProvider?: () => Promise<string | undefined>;\n fetchImpl?: typeof fetch;\n timeoutMs?: number;\n}\n\n/**\n * Creates the read-only `getSwitchboardSchema` tool: it introspects the\n * GraphQL supergraph of the switchboard serving a drive and returns a\n * summary of its root queries and mutations. It reads the schema only and\n * never modifies data.\n */\nexport function createSwitchboardSchemaTool(\n deps?: SwitchboardToolDeps,\n): AiToolDescriptor {\n const getSyncManager = deps?.getSyncManager ?? getBrowserSyncManager;\n const getSelectedDriveId =\n deps?.getSelectedDriveId ??\n ((): string | undefined =>\n typeof window === \"undefined\" ? undefined : window.ph?.selectedDriveId);\n const tokenProvider = deps?.tokenProvider ?? ambientRenownTokenProvider;\n const fetchImpl = deps?.fetchImpl ?? fetch;\n const timeoutMs = deps?.timeoutMs ?? 10_000;\n\n return {\n name: SWITCHBOARD_SCHEMA_TOOL_NAME,\n description:\n \"Introspect the GraphQL endpoint of the switchboard serving a drive and list the queries and mutations it exposes (reactor operations, document-model read models, package subgraphs). Read-only: it reads the schema only and never modifies data. Omit driveId to introspect the currently selected drive.\",\n inputSchema: {\n driveId: z\n .string()\n .describe(\n \"Drive to introspect. Omit to use the currently selected drive.\",\n )\n .optional(),\n },\n annotations: { readOnlyHint: true },\n callback: async (input: { driveId?: string } | undefined) => {\n const driveId = input?.driveId ?? getSelectedDriveId();\n const sb = resolveDriveSwitchboard(driveId, getSyncManager());\n if (!sb) {\n throw new Error(\n driveId\n ? `Drive \"${driveId}\" has no switchboard: it is not synced to a remote switchboard.`\n : \"No drive is currently selected and no driveId was given.\",\n );\n }\n\n const token = await tokenProvider();\n let response: Response;\n try {\n response = await fetchImpl(sb.graphqlUrl, {\n method: \"POST\",\n headers: {\n \"content-type\": \"application/json\",\n ...(token ? { authorization: `Bearer ${token}` } : {}),\n },\n body: JSON.stringify({ query: SWITCHBOARD_INTROSPECTION_QUERY }),\n signal: AbortSignal.timeout(timeoutMs),\n });\n } catch (error) {\n throw new Error(\n `Switchboard at ${sb.graphqlUrl} is not reachable: ${\n error instanceof Error ? error.message : String(error)\n }`,\n { cause: error },\n );\n }\n\n if (response.status === 401 || response.status === 403) {\n throw new Error(\n `Switchboard at ${sb.graphqlUrl} refused the request (HTTP ${response.status}). Sign in to the switchboard (Renown) and try again.`,\n );\n }\n if (!response.ok) {\n throw new Error(\n `Switchboard introspection failed: HTTP ${response.status} ${response.statusText} from ${sb.graphqlUrl}`,\n );\n }\n\n const body = (await response.json()) as {\n errors?: Array<{ message?: string }>;\n data?: { __schema?: unknown } | null;\n } | null;\n const schemaErrors = body?.errors;\n if (schemaErrors && schemaErrors.length > 0) {\n throw new Error(\n schemaErrors.map((e) => e.message ?? \"unknown error\").join(\"; \"),\n );\n }\n const schema = body?.data?.__schema as\n | IntrospectedSchema\n | null\n | undefined;\n if (!schema?.queryType) {\n throw new Error(\n `Switchboard at ${sb.graphqlUrl} did not return a GraphQL schema.`,\n );\n }\n\n const summary = summarizeIntrospectionSchema(schema);\n return {\n switchboardUrl: sb.switchboardUrl,\n graphqlUrl: sb.graphqlUrl,\n ...summary,\n };\n },\n };\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,gBAAgC,OAAY;CAC1D,OAAO,MAAM,UAAU,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,IAAI,CAAC;AAC9D;;AAGA,SAAgB,eACd,MACkB;CAClB,IAAI,CAAC,MAAM,OAAO;CAClB,OAAO,KAAK,KAAK,YAAY,MAAM;AACrC;;AAGA,SAAgB,iBACd,MACoB;CACpB,IAAI,CAAC,MAAM,OAAO;CAClB,OAAO,KAAK,KAAK,YAAY,MAAM;AACrC;;;;ACZA,SAAgB,0BAA0B;CACxC,MAAM,CAAC,iBAAiB,qBAAqB;CAC7C,OAAO,eAAe,MAAM,OAAO;AACrC;;AAGA,SAAgB,8BAAsD;CAEpE,OADc,wBACH,CAAC,EAAE,QAAQ,MAAM,eAAe,CAAC,CAAC;AAC/C;;AAGA,SAAgB,gCAA0D;CAExE,OADc,wBACH,CAAC,EAAE,QAAQ,MAAM,iBAAiB,CAAC,CAAC;AACjD;;AAGA,SAAgB,8BAAwD;CAEtE,MAAM,cADY,4BACU,CAAC,EAAE,KAAK,SAAS,KAAK,EAAE;CACpD,OAAO,kBAAkB,WAAW;AACtC;;AAGA,SAAgB,kCAAkC;CAMhD,QALiC,4BAER,CAAC,EAAE,OAAO,uBAAuB,E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;KAC/D,QAAQ,YAAY,QAAQ,SAAS;IACvC,CAAC;GACH,SAAS,OAAO;IACd,MAAM,IAAI,MACR,kBAAkB,GAAG,WAAW,qBAC9B,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,KAEvD,EAAE,OAAO,MAAM,CACjB;GACF;GAEA,IAAI,SAAS,WAAW,OAAO,SAAS,WAAW,KACjD,MAAM,IAAI,MACR,kBAAkB,GAAG,WAAW,6BAA6B,SAAS,OAAO,sDAC/E;GAEF,IAAI,CAAC,SAAS,IACZ,MAAM,IAAI,MACR,0CAA0C,SAAS,OAAO,GAAG,SAAS,WAAW,QAAQ,GAAG,YAC9F;GAGF,MAAM,OAAQ,MAAM,SAAS,KAAK;GAIlC,MAAM,eAAe,MAAM;GAC3B,IAAI,gBAAgB,aAAa,SAAS,GACxC,MAAM,IAAI,MACR,aAAa,KAAK,MAAM,EAAE,WAAW,eAAe,CAAC,CAAC,KAAK,IAAI,CACjE;GAEF,MAAM,SAAS,MAAM,MAAM;GAI3B,IAAI,CAAC,QAAQ,WACX,MAAM,IAAI,MACR,kBAAkB,GAAG,WAAW,kCAClC;GAGF,MAAM,UAAU,6BAA6B,MAAM;GACnD,OAAO;IACL,gBAAgB,GAAG;IACnB,YAAY,GAAG;IACf,GAAG;GACL;EACF;CACF;AACF"}
@@ -1,6 +1,5 @@
1
1
  import { BrowserAnalyticsStore, BrowserAnalyticsStoreOptions } from "@powerhousedao/analytics-engine-browser";
2
2
  import { AnalyticsQueryEngine, IAnalyticsStore } from "@powerhousedao/analytics-engine-core";
3
-
4
3
  //#region src/analytics/store.d.ts
5
4
  type CreateStoreOptions = BrowserAnalyticsStoreOptions;
6
5
  declare function createAnalyticsStore(options: CreateStoreOptions): Promise<{
@@ -19,4 +18,5 @@ type IPowerhouseAnalytics = {
19
18
  };
20
19
  //#endregion
21
20
  export { getAnalyticsStore as a, createAnalyticsStore as i, IPowerhouseAnalytics as n, CreateStoreOptions as r, IAnalyticsStoreOptions as t };
22
- //# sourceMappingURL=types-6vDzbRRS.d.ts.map
21
+ export {};
22
+ //# sourceMappingURL=types-520nWrB3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-520nWrB3.d.ts","names":[],"sources":["../src/analytics/store.ts","../src/analytics/types.ts"],"mappings":";;;KAMY,qBAAqB;iBAEX,qBAAqB,SAAS,qBAAkB;;;;;iBAYhD,qBAAqB,QAAQ;;;KCfvC,yBAAyB;KAEzB;EACV,OAAO;EACP,QAAQ;EACR,SAAS"}
@@ -1,11 +1,10 @@
1
1
  import { GraphQLClient, RequestDocument, RequestOptions, Variables } from "graphql-request";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/graphql/gen/schema.d.ts
5
4
  type InputMaybe<T> = T | null | undefined;
6
5
  type Exact<T extends {
7
6
  [key: string]: unknown;
8
- }> = { [K in keyof T]: T[K] };
7
+ }> = { [K in keyof T]: T[K]; };
9
8
  type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
10
9
  /** All built-in and custom scalars, mapped to their actual values */
11
10
  type Scalars = {
@@ -63,8 +62,11 @@ type ActionCandidateInput = {
63
62
  * the params carried in its own tuple, which do not include them.
64
63
  */
65
64
  type ActionContextInput = {
66
- /** Covers replay of an operation that would otherwise be a no-op. */readonly nonce?: InputMaybe<Scalars["String"]["input"]>; /** The hash of the state the action applies to. */
67
- readonly prevOpHash?: InputMaybe<Scalars["String"]["input"]>; /** The index of the last operation in the scope the action applies to. */
65
+ /** Covers replay of an operation that would otherwise be a no-op. */
66
+ readonly nonce?: InputMaybe<Scalars["String"]["input"]>;
67
+ /** The hash of the state the action applies to. */
68
+ readonly prevOpHash?: InputMaybe<Scalars["String"]["input"]>;
69
+ /** The index of the last operation in the scope the action applies to. */
68
70
  readonly prevOpIndex?: InputMaybe<Scalars["Int"]["input"]>;
69
71
  readonly signer?: InputMaybe<ReactorSignerInput>;
70
72
  };
@@ -124,7 +126,9 @@ type OperationWithContextInput = {
124
126
  type OperationsFilterInput = {
125
127
  readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
126
128
  readonly branch?: InputMaybe<Scalars["String"]["input"]>;
127
- readonly documentId: Scalars["String"]["input"];
129
+ /** @deprecated Use documentIdOrSlug. */
130
+ readonly documentId?: InputMaybe<Scalars["String"]["input"]>;
131
+ readonly documentIdOrSlug?: InputMaybe<Scalars["String"]["input"]>;
128
132
  readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
129
133
  readonly sinceRevision?: InputMaybe<Scalars["Int"]["input"]>;
130
134
  readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
@@ -164,6 +168,7 @@ type RemoteFilterInput = {
164
168
  readonly scope: ReadonlyArray<Scalars["String"]["input"]>;
165
169
  };
166
170
  type SearchFilterInput = {
171
+ /** @deprecated Ignored. Filter by type or parentId. */
167
172
  readonly identifiers?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
168
173
  readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
169
174
  readonly type?: InputMaybe<Scalars["String"]["input"]>;
@@ -180,10 +185,16 @@ declare enum SyncEnvelopeType {
180
185
  Ack = "ACK",
181
186
  Operations = "OPERATIONS"
182
187
  }
188
+ type SyncRefusalInput = {
189
+ readonly branch: Scalars["String"]["input"];
190
+ readonly documentId: Scalars["String"]["input"];
191
+ readonly kind?: InputMaybe<Scalars["String"]["input"]>;
192
+ };
183
193
  type TouchChannelInput = {
184
194
  readonly collectionId: Scalars["String"]["input"];
185
195
  readonly filter: RemoteFilterInput;
186
196
  readonly id: Scalars["String"]["input"];
197
+ readonly manifest?: InputMaybe<Scalars["JSONObject"]["input"]>;
187
198
  readonly name: Scalars["String"]["input"];
188
199
  readonly sinceTimestampUtcMs: Scalars["String"]["input"];
189
200
  };
@@ -210,7 +221,6 @@ type GetDocumentModelsQueryVariables = Exact<{
210
221
  }>;
211
222
  type GetDocumentModelsQuery = {
212
223
  readonly documentModels: {
213
- readonly totalCount: number;
214
224
  readonly hasNextPage: boolean;
215
225
  readonly hasPreviousPage: boolean;
216
226
  readonly cursor?: string | null | undefined;
@@ -263,7 +273,6 @@ type GetDocumentWithOperationsQuery = {
263
273
  readonly createdAtUtcIso: string | Date;
264
274
  readonly lastModifiedAtUtcIso: string | Date;
265
275
  readonly operations?: {
266
- readonly totalCount: number;
267
276
  readonly hasNextPage: boolean;
268
277
  readonly hasPreviousPage: boolean;
269
278
  readonly cursor?: string | null | undefined;
@@ -313,7 +322,6 @@ type GetDocumentOutgoingRelationshipsQueryVariables = Exact<{
313
322
  }>;
314
323
  type GetDocumentOutgoingRelationshipsQuery = {
315
324
  readonly documentOutgoingRelationships: {
316
- readonly totalCount: number;
317
325
  readonly hasNextPage: boolean;
318
326
  readonly hasPreviousPage: boolean;
319
327
  readonly cursor?: string | null | undefined;
@@ -340,7 +348,6 @@ type GetDocumentIncomingRelationshipsQueryVariables = Exact<{
340
348
  }>;
341
349
  type GetDocumentIncomingRelationshipsQuery = {
342
350
  readonly documentIncomingRelationships: {
343
- readonly totalCount: number;
344
351
  readonly hasNextPage: boolean;
345
352
  readonly hasPreviousPage: boolean;
346
353
  readonly cursor?: string | null | undefined;
@@ -359,6 +366,48 @@ type GetDocumentIncomingRelationshipsQuery = {
359
366
  }>;
360
367
  };
361
368
  };
369
+ type GetDocumentOutgoingRelationshipEdgesQueryVariables = Exact<{
370
+ sourceIdentifier: Scalars["String"]["input"];
371
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
372
+ view?: InputMaybe<ViewFilterInput>;
373
+ paging?: InputMaybe<PagingInput>;
374
+ }>;
375
+ type GetDocumentOutgoingRelationshipEdgesQuery = {
376
+ readonly documentOutgoingRelationshipEdges: {
377
+ readonly hasNextPage: boolean;
378
+ readonly hasPreviousPage: boolean;
379
+ readonly cursor?: string | null | undefined;
380
+ readonly items: ReadonlyArray<{
381
+ readonly sourceId: string;
382
+ readonly targetId: string;
383
+ readonly relationshipType: string;
384
+ readonly metadata?: NonNullable<unknown> | null | undefined;
385
+ readonly createdAt: string | Date;
386
+ readonly updatedAt: string | Date;
387
+ }>;
388
+ };
389
+ };
390
+ type GetDocumentIncomingRelationshipEdgesQueryVariables = Exact<{
391
+ targetIdentifier: Scalars["String"]["input"];
392
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
393
+ view?: InputMaybe<ViewFilterInput>;
394
+ paging?: InputMaybe<PagingInput>;
395
+ }>;
396
+ type GetDocumentIncomingRelationshipEdgesQuery = {
397
+ readonly documentIncomingRelationshipEdges: {
398
+ readonly hasNextPage: boolean;
399
+ readonly hasPreviousPage: boolean;
400
+ readonly cursor?: string | null | undefined;
401
+ readonly items: ReadonlyArray<{
402
+ readonly sourceId: string;
403
+ readonly targetId: string;
404
+ readonly relationshipType: string;
405
+ readonly metadata?: NonNullable<unknown> | null | undefined;
406
+ readonly createdAt: string | Date;
407
+ readonly updatedAt: string | Date;
408
+ }>;
409
+ };
410
+ };
362
411
  type FindDocumentsQueryVariables = Exact<{
363
412
  search?: InputMaybe<SearchFilterInput>;
364
413
  view?: InputMaybe<ViewFilterInput>;
@@ -366,7 +415,6 @@ type FindDocumentsQueryVariables = Exact<{
366
415
  }>;
367
416
  type FindDocumentsQuery = {
368
417
  readonly findDocuments: {
369
- readonly totalCount: number;
370
418
  readonly hasNextPage: boolean;
371
419
  readonly hasPreviousPage: boolean;
372
420
  readonly cursor?: string | null | undefined;
@@ -391,7 +439,6 @@ type GetDocumentOperationsQueryVariables = Exact<{
391
439
  }>;
392
440
  type GetDocumentOperationsQuery = {
393
441
  readonly documentOperations: {
394
- readonly totalCount: number;
395
442
  readonly hasNextPage: boolean;
396
443
  readonly hasPreviousPage: boolean;
397
444
  readonly cursor?: string | null | undefined;
@@ -574,6 +621,7 @@ type AddRelationshipMutationVariables = Exact<{
574
621
  sourceIdentifier: Scalars["String"]["input"];
575
622
  targetIdentifier: Scalars["String"]["input"];
576
623
  relationshipType: Scalars["String"]["input"];
624
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
577
625
  branch?: InputMaybe<Scalars["String"]["input"]>;
578
626
  }>;
579
627
  type AddRelationshipMutation = {
@@ -591,6 +639,28 @@ type AddRelationshipMutation = {
591
639
  }>;
592
640
  };
593
641
  };
642
+ type UpdateRelationshipMutationVariables = Exact<{
643
+ sourceIdentifier: Scalars["String"]["input"];
644
+ targetIdentifier: Scalars["String"]["input"];
645
+ relationshipType: Scalars["String"]["input"];
646
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
647
+ branch?: InputMaybe<Scalars["String"]["input"]>;
648
+ }>;
649
+ type UpdateRelationshipMutation = {
650
+ readonly updateRelationship: {
651
+ readonly id: string;
652
+ readonly slug?: string | null | undefined;
653
+ readonly name: string;
654
+ readonly documentType: string;
655
+ readonly state: NonNullable<unknown>;
656
+ readonly createdAtUtcIso: string | Date;
657
+ readonly lastModifiedAtUtcIso: string | Date;
658
+ readonly revisionsList: ReadonlyArray<{
659
+ readonly scope: string;
660
+ readonly revision: number;
661
+ }>;
662
+ };
663
+ };
594
664
  type RemoveRelationshipMutationVariables = Exact<{
595
665
  sourceIdentifier: Scalars["String"]["input"];
596
666
  targetIdentifier: Scalars["String"]["input"];
@@ -696,7 +766,7 @@ type JobChangesSubscription = {
696
766
  readonly jobChanges: {
697
767
  readonly jobId: string;
698
768
  readonly status: string;
699
- readonly result: NonNullable<unknown>;
769
+ readonly result?: NonNullable<unknown> | null | undefined;
700
770
  readonly error?: string | null | undefined;
701
771
  };
702
772
  };
@@ -704,11 +774,15 @@ type PollSyncEnvelopesQueryVariables = Exact<{
704
774
  channelId: Scalars["String"]["input"];
705
775
  outboxAck: Scalars["Int"]["input"];
706
776
  outboxLatest: Scalars["Int"]["input"];
777
+ manifestRevision?: InputMaybe<Scalars["String"]["input"]>;
778
+ refusals?: InputMaybe<ReadonlyArray<SyncRefusalInput>>;
707
779
  }>;
708
780
  type PollSyncEnvelopesQuery = {
709
781
  readonly pollSyncEnvelopes: {
710
782
  readonly ackOrdinal: number;
711
783
  readonly hasMore: boolean;
784
+ readonly manifestRevision?: string | null | undefined;
785
+ readonly peerManifestRevision?: string | null | undefined;
712
786
  readonly envelopes: ReadonlyArray<{
713
787
  readonly type: SyncEnvelopeType;
714
788
  readonly key?: string | null | undefined;
@@ -774,10 +848,12 @@ type TouchChannelMutation = {
774
848
  readonly touchChannel: {
775
849
  readonly success: boolean;
776
850
  readonly ackOrdinal: number;
851
+ readonly manifest?: NonNullable<unknown> | null | undefined;
777
852
  };
778
853
  };
779
854
  type PushSyncEnvelopesMutationVariables = Exact<{
780
855
  envelopes: ReadonlyArray<SyncEnvelopeInput>;
856
+ peerManifestRevision?: InputMaybe<Scalars["String"]["input"]>;
781
857
  }>;
782
858
  type PushSyncEnvelopesMutation = {
783
859
  readonly pushSyncEnvelopes: boolean;
@@ -789,6 +865,8 @@ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper)
789
865
  GetDocumentWithOperations(variables: GetDocumentWithOperationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentWithOperationsQuery>;
790
866
  GetDocumentOutgoingRelationships(variables: GetDocumentOutgoingRelationshipsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentOutgoingRelationshipsQuery>;
791
867
  GetDocumentIncomingRelationships(variables: GetDocumentIncomingRelationshipsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentIncomingRelationshipsQuery>;
868
+ GetDocumentOutgoingRelationshipEdges(variables: GetDocumentOutgoingRelationshipEdgesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentOutgoingRelationshipEdgesQuery>;
869
+ GetDocumentIncomingRelationshipEdges(variables: GetDocumentIncomingRelationshipEdgesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentIncomingRelationshipEdgesQuery>;
792
870
  FindDocuments(variables?: FindDocumentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindDocumentsQuery>;
793
871
  GetDocumentOperations(variables: GetDocumentOperationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentOperationsQuery>;
794
872
  GetJobStatus(variables: GetJobStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetJobStatusQuery>;
@@ -800,6 +878,7 @@ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper)
800
878
  RenameDocument(variables: RenameDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<RenameDocumentMutation>;
801
879
  SetPreferredEditor(variables: SetPreferredEditorMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<SetPreferredEditorMutation>;
802
880
  AddRelationship(variables: AddRelationshipMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<AddRelationshipMutation>;
881
+ UpdateRelationship(variables: UpdateRelationshipMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateRelationshipMutation>;
803
882
  RemoveRelationship(variables: RemoveRelationshipMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<RemoveRelationshipMutation>;
804
883
  MoveRelationship(variables: MoveRelationshipMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<MoveRelationshipMutation>;
805
884
  DeleteDocument(variables: DeleteDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<DeleteDocumentMutation>;
@@ -824,8 +903,11 @@ type DocumentOperationsPage = GetDocumentOperationsQuery["documentOperations"];
824
903
  type DocumentResult = NonNullable<GetDocumentQuery["document"]>;
825
904
  /** Arguments for running a hand-authored GraphQL document through the SDK. */
826
905
  type RunDocumentOptions = {
827
- /** Operation name reported to the middleware (auth, logging, tracing). */operationName: string; /** Operation type reported to the middleware. Defaults to `"query"`. */
828
- operationType?: string; /** The document to run: a source string or a parsed `DocumentNode`. */
906
+ /** Operation name reported to the middleware (auth, logging, tracing). */
907
+ operationName: string;
908
+ /** Operation type reported to the middleware. Defaults to `"query"`. */
909
+ operationType?: string;
910
+ /** The document to run: a source string or a parsed `DocumentNode`. */
829
911
  document: RequestDocument;
830
912
  variables?: Variables;
831
913
  requestHeaders?: Record<string, string>;
@@ -838,8 +920,10 @@ type ReactorGraphQLClient = Sdk & {
838
920
  * generator cannot express, such as a mutation that also returns the
839
921
  * operations it produced.
840
922
  */
841
- RunDocument: <TData>(options: RunDocumentOptions) => Promise<TData>; /** Fetch multiple documentOperations in a single request via aliases. */
842
- BatchGetDocumentOperations?: (filters: OperationsFilterInput[], pagings: (PagingInput | undefined | null)[]) => Promise<DocumentOperationsPage[]>; /** Fetch a document and multiple documentOperations in a single request. */
923
+ RunDocument: <TData>(options: RunDocumentOptions) => Promise<TData>;
924
+ /** Fetch multiple documentOperations in a single request via aliases. */
925
+ BatchGetDocumentOperations?: (filters: OperationsFilterInput[], pagings: (PagingInput | undefined | null)[]) => Promise<DocumentOperationsPage[]>;
926
+ /** Fetch a document and multiple documentOperations in a single request. */
843
927
  BatchGetDocumentWithOperations?: (identifier: string, view: ViewFilterInput | undefined, filters: OperationsFilterInput[], pagings: (PagingInput | undefined)[]) => Promise<{
844
928
  document: DocumentResult | null;
845
929
  operations: DocumentOperationsPage[];
@@ -861,4 +945,5 @@ type TStateSchemaZodObject = z.ZodObject<{
861
945
  }>;
862
946
  //#endregion
863
947
  export { ViewFilterInput as A, GetDocumentQuery as C, PropagationMode as D, PhDocumentFieldsFragment as E, Scalars as O, GetDocumentOperationsQuery as S, MutateDocumentMutation as T, CreateDocumentMutation as _, GraphQLDocumentEvents as a, DocumentChangesSubscription as b, ReactorGraphQLClient as c, DEFAULT_DRIVE_ID as d, DEFAULT_SWITCHBOARD_URL as f, ActionInput as g, graphqlEventsToSyncDrive as h, GraphQLDocumentEventOperationName as i, SdkFunctionWrapper as k, RunDocumentOptions as l, graphqlDocumentsEvents as m, GraphQLClientDocumentsEvent as n, GraphQLDocumentEventsOperationName as o, graphqlDocumentEvents as p, GraphQLClientWindowEvents as r, GraphQLDocumentsEvents as s, GraphQLClientDocumentEvent as t, TStateSchemaZodObject as u, DeleteDocumentMutation as v, GetDocumentWithOperationsQuery as w, FindDocumentsQuery as x, DeleteDocumentsMutation as y };
864
- //# sourceMappingURL=types-Dcv1ZLoW.d.ts.map
948
+ export {};
949
+ //# sourceMappingURL=types-Cww0HJmz.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-Cww0HJmz.d.ts","names":[],"sources":["../src/graphql/gen/schema.ts","../src/graphql/constants.ts","../src/graphql/types.ts"],"mappings":";;;KAGY,WAAW,KAAK;KAChB,MAAM;GAAa;QAC5B,WAAW,IAAI,EAAE;KAiBf,8BAA8B;;KAEvB;EACV;IAAM;IAAe;;EACrB;IAAU;IAAe;;EACzB;IAAW;IAAgB;;EAC3B;IAAO;IAAe;;EACtB;IAAS;IAAe;;EACxB;IAAY,gBAAgB;IAAM,iBAAiB;;EACnD;IAAc,OAAO;IAAsB,QAAQ;;;;;;;;;;KAmBzC;WACD,QAAQ,WAAW;WACnB,OAAO;WACP,MAAM;;;;;;;;;;;;;;KAmBL;;WAED,QAAQ,WAAW;;WAEnB,aAAa,WAAW;;WAExB,cAAc,WAAW;WACzB,SAAS,WAAW;;KA6BnB;WACD,UAAU,WAAW;WACrB,IAAI;WACJ,OAAO;WACP,OAAO;WACP,gBAAgB;WAChB,MAAM;;aAGL;EACV;EACA;;KAOU;WACD,IAAI;;aA6BH;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;KAkBU;WACD,cAAc,WAAW,cAAc;WACvC,SAAS,WAAW;WACpB,SAAS,WAAW,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4",
3
+ "version": "6.2.3-dev.40",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "repository": {
@@ -64,17 +64,17 @@
64
64
  "sideEffects": false,
65
65
  "dependencies": {
66
66
  "@ai-sdk/openai-compatible": "3.0.37",
67
- "@powerhousedao/analytics-engine-browser": "6.2.3-dev.4",
68
- "@powerhousedao/analytics-engine-core": "6.2.3-dev.4",
69
- "@powerhousedao/reactor": "6.2.3-dev.4",
70
- "@powerhousedao/reactor-attachments": "6.2.3-dev.4",
71
- "@powerhousedao/reactor-drive": "6.2.3-dev.4",
72
- "@powerhousedao/shared": "6.2.3-dev.4",
73
- "@renown/sdk": "6.2.3-dev.4",
67
+ "@powerhousedao/analytics-engine-browser": "6.2.3-dev.40",
68
+ "@powerhousedao/analytics-engine-core": "6.2.3-dev.40",
69
+ "@powerhousedao/reactor": "6.2.3-dev.40",
70
+ "@powerhousedao/reactor-attachments": "6.2.3-dev.40",
71
+ "@powerhousedao/reactor-drive": "6.2.3-dev.40",
72
+ "@powerhousedao/shared": "6.2.3-dev.40",
73
+ "@renown/sdk": "6.2.3-dev.40",
74
74
  "@tanstack/react-query": "^5.49.2",
75
75
  "ai": "7.0.83",
76
76
  "change-case": "5.4.4",
77
- "document-model": "6.2.3-dev.4",
77
+ "document-model": "6.2.3-dev.40",
78
78
  "graphql-request": "7.4.0",
79
79
  "graphql-ws": "6.0.7",
80
80
  "kysely": "0.28.16",
@@ -88,7 +88,6 @@
88
88
  "react-markdown": "^10.1.0",
89
89
  "remark-gfm": "^4.0.1",
90
90
  "slug": "^11.0.0",
91
- "usehooks-ts": "^3.1.1",
92
91
  "zod": "4.3.6"
93
92
  },
94
93
  "devDependencies": {
@@ -102,8 +101,8 @@
102
101
  "@types/react": "19.2.14",
103
102
  "@types/react-dom": "19.2.3",
104
103
  "@types/slug": "^5.0.9",
105
- "@types/wicg-file-system-access": "^2020.9.8",
106
- "@vitejs/plugin-react": "6.0.1",
104
+ "@types/wicg-file-system-access": "^2023.10.7",
105
+ "@vitejs/plugin-react": "6.1.1",
107
106
  "@vitest/browser": "4.1.1",
108
107
  "@vitest/browser-playwright": "4.1.1",
109
108
  "fast-deep-equal": "3.1.3",
@@ -113,10 +112,10 @@
113
112
  "playwright": "1.60.0",
114
113
  "react": "19.2.6",
115
114
  "react-dom": "19.2.6",
116
- "tsdown": "0.21.1",
115
+ "tsdown": "0.23.0",
117
116
  "type-fest": "5.6.0",
118
117
  "viem": "~2.50.4",
119
- "vite": "8.0.10",
118
+ "vite": "8.3.0",
120
119
  "vitest": "4.1.1",
121
120
  "vitest-browser-react": "^1.0.1"
122
121
  },
@@ -143,10 +142,10 @@
143
142
  "homepage": "https://academy.vetra.io/academy/Reference/Reactor/ReactorClient",
144
143
  "scripts": {
145
144
  "tsc": "tsc",
146
- "lint": "eslint",
145
+ "lint": "cd ../.. && oxlint packages/reactor-browser",
147
146
  "build": "tsdown",
148
147
  "test": "vitest --run",
149
148
  "install:playwright": "playwright install",
150
- "codegen": "graphql-codegen --config codegen.ts && prettier --write src/graphql/gen/*.ts && eslint --fix src/graphql/gen/*.ts --no-warn-ignored"
149
+ "codegen": "graphql-codegen --config codegen.ts && oxlint --fix src/graphql/gen/*.ts && oxfmt src/graphql/gen/*.ts"
151
150
  }
152
151
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachment-service-D3EhiAJ7.d.ts","names":[],"sources":["../src/document-cache.ts","../src/remote-controller/types.ts","../src/graphql-client/adapter.ts","../src/graphql-client/auth.ts","../src/graphql-client/subgraph.ts","../src/graphql-client/graphql-reactor-client.ts","../src/graphql-client/graphql-reactor-provider.tsx","../src/graphql-client/operations.ts","../src/graphql-client/signing.ts","../src/graphql-client/static-package-manager.ts","../src/graphql-client/subscriptions.ts","../src/hooks/document-cache.ts","../src/hooks/reactor.ts","../src/hooks/dispatch.ts","../src/hooks/document-model-modules.ts","../src/hooks/document-operations.ts","../src/hooks/attachment-service.ts"],"mappings":";;;;;;;;;;;;;;;;;;iBA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