@dxos/plugin-markdown 0.8.2-main.2f9c567 → 0.8.2-main.5885341
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/lib/browser/{MarkdownContainer-JKHGKEWX.mjs → MarkdownContainer-5XV7K2NX.mjs} +8 -8
- package/dist/lib/browser/MarkdownContainer-5XV7K2NX.mjs.map +7 -0
- package/dist/lib/browser/{MarkdownPreview-AXRXM2VS.mjs → MarkdownPreview-DX5U5LCX.mjs} +7 -7
- package/dist/lib/browser/MarkdownPreview-DX5U5LCX.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-serializer-6SMW5SL3.mjs → app-graph-serializer-OCXP7PCK.mjs} +3 -3
- package/dist/lib/browser/{artifact-definition-BEV7S3Q2.mjs → artifact-definition-XTVOUMMI.mjs} +8 -9
- package/dist/lib/browser/artifact-definition-XTVOUMMI.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6D6EOKIT.mjs → chunk-5QXYEKSX.mjs} +7 -7
- package/dist/lib/browser/chunk-GVOEHF7E.mjs +84 -0
- package/dist/lib/browser/chunk-GVOEHF7E.mjs.map +7 -0
- package/dist/lib/browser/{chunk-JD72ICHV.mjs → chunk-LJ2UFBJ2.mjs} +2 -2
- package/dist/lib/browser/{chunk-H2ACKZFL.mjs → chunk-QV6ZIXAD.mjs} +4 -4
- package/dist/lib/browser/{chunk-H2ACKZFL.mjs.map → chunk-QV6ZIXAD.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +6 -6
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-K7GY2J5W.mjs → intent-resolver-H37L3DBD.mjs} +4 -4
- package/dist/lib/browser/intent-resolver-H37L3DBD.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-G5QRPPGT.mjs → react-surface-LBCMSLJ5.mjs} +7 -7
- package/dist/lib/browser/react-surface-LBCMSLJ5.mjs.map +7 -0
- package/dist/lib/browser/{settings-QBFZJW2H.mjs → settings-EQSDBX6O.mjs} +2 -2
- package/dist/lib/browser/{thread-VUUBSXA5.mjs → thread-MFKBUVCB.mjs} +2 -2
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/{MarkdownContainer-KLCUCM5O.cjs → MarkdownContainer-5EQTBXV3.cjs} +13 -13
- package/dist/lib/node/MarkdownContainer-5EQTBXV3.cjs.map +7 -0
- package/dist/lib/node/{MarkdownPreview-YEFCEKYA.cjs → MarkdownPreview-W7QIN2KJ.cjs} +14 -14
- package/dist/lib/node/MarkdownPreview-W7QIN2KJ.cjs.map +7 -0
- package/dist/lib/node/{app-graph-serializer-4VZJUDTL.cjs → app-graph-serializer-KBDLASRP.cjs} +9 -9
- package/dist/lib/node/{artifact-definition-HNSTQ7SX.cjs → artifact-definition-ADEN2KD6.cjs} +14 -15
- package/dist/lib/node/artifact-definition-ADEN2KD6.cjs.map +7 -0
- package/dist/lib/node/{chunk-ETVG2GKL.cjs → chunk-JO4SBK36.cjs} +6 -6
- package/dist/lib/node/{chunk-6KAGLDQY.cjs → chunk-QRE5L6ZC.cjs} +10 -10
- package/dist/lib/node/{chunk-AVTID2BC.cjs → chunk-WGMVEPB3.cjs} +7 -7
- package/dist/lib/node/{chunk-AVTID2BC.cjs.map → chunk-WGMVEPB3.cjs.map} +3 -3
- package/dist/lib/node/{chunk-2HGBN655.cjs → chunk-YHL4JSA6.cjs} +32 -34
- package/dist/lib/node/chunk-YHL4JSA6.cjs.map +7 -0
- package/dist/lib/node/index.cjs +23 -23
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-FGBVXI7L.cjs → intent-resolver-NX5QNRYF.cjs} +10 -10
- package/dist/lib/node/intent-resolver-NX5QNRYF.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-DJFEQ4EN.cjs → react-surface-DJIZSVMN.cjs} +11 -11
- package/dist/lib/node/react-surface-DJIZSVMN.cjs.map +7 -0
- package/dist/lib/node/{settings-I3Z64YPE.cjs → settings-2JXASSLU.cjs} +6 -6
- package/dist/lib/node/{thread-NHTJKFC4.cjs → thread-MXEGV6HS.cjs} +6 -6
- package/dist/lib/node/types/index.cjs +7 -7
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{MarkdownContainer-IRHSOSGC.mjs → MarkdownContainer-LONZOJJX.mjs} +8 -8
- package/dist/lib/node-esm/MarkdownContainer-LONZOJJX.mjs.map +7 -0
- package/dist/lib/node-esm/{MarkdownPreview-JWPTJG2V.mjs → MarkdownPreview-T3OW2EN4.mjs} +7 -7
- package/dist/lib/node-esm/MarkdownPreview-T3OW2EN4.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-serializer-QH2FE7FH.mjs → app-graph-serializer-67CO7ST3.mjs} +3 -3
- package/dist/lib/node-esm/{artifact-definition-GA7NQ3X5.mjs → artifact-definition-KTS5M2FW.mjs} +8 -9
- package/dist/lib/node-esm/artifact-definition-KTS5M2FW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-64TMVBTT.mjs → chunk-4U2F4EB7.mjs} +4 -4
- package/dist/lib/node-esm/{chunk-64TMVBTT.mjs.map → chunk-4U2F4EB7.mjs.map} +3 -3
- package/dist/lib/node-esm/chunk-NUZHKZSZ.mjs +85 -0
- package/dist/lib/node-esm/chunk-NUZHKZSZ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-VBEBX5EB.mjs → chunk-PALFXZBY.mjs} +7 -7
- package/dist/lib/node-esm/{chunk-6TXN2UXT.mjs → chunk-VQA6BQGT.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +6 -6
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-3STR3645.mjs → intent-resolver-XES4ZCA6.mjs} +4 -4
- package/dist/lib/node-esm/intent-resolver-XES4ZCA6.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-75OU2AJX.mjs → react-surface-737EXAWT.mjs} +7 -7
- package/dist/lib/node-esm/react-surface-737EXAWT.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-G7QIMIEK.mjs → settings-67RVIH3N.mjs} +2 -2
- package/dist/lib/node-esm/{thread-72RI26KD.mjs → thread-5U4KSBED.mjs} +2 -2
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/components/MarkdownContainer.d.ts +2 -2
- package/dist/types/src/components/MarkdownContainer.d.ts.map +1 -1
- package/dist/types/src/components/MarkdownPreview/MarkdownPreview.d.ts +2 -2
- package/dist/types/src/components/MarkdownPreview/MarkdownPreview.d.ts.map +1 -1
- package/dist/types/src/components/MarkdownPreview/MarkdownPreview.stories.d.ts +54 -52
- package/dist/types/src/components/MarkdownPreview/MarkdownPreview.stories.d.ts.map +1 -1
- package/dist/types/src/components/Suggestions.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/extensions.d.ts +2 -2
- package/dist/types/src/extensions.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +186 -181
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +86 -84
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/package.json +37 -39
- package/src/MarkdownPlugin.tsx +2 -2
- package/src/capabilities/artifact-definition.ts +3 -5
- package/src/capabilities/intent-resolver.ts +2 -2
- package/src/capabilities/react-surface.tsx +5 -5
- package/src/components/MarkdownContainer.tsx +3 -3
- package/src/components/MarkdownPreview/MarkdownPreview.stories.tsx +2 -2
- package/src/components/MarkdownPreview/MarkdownPreview.tsx +8 -8
- package/src/components/Suggestions.stories.tsx +9 -16
- package/src/components/Toolbar.stories.tsx +2 -2
- package/src/extensions.tsx +2 -2
- package/src/hooks/useSelectCurrentThread.tsx +2 -2
- package/src/types/schema.ts +12 -20
- package/src/types/types.ts +21 -22
- package/src/util.tsx +2 -2
- package/dist/lib/browser/MarkdownContainer-JKHGKEWX.mjs.map +0 -7
- package/dist/lib/browser/MarkdownPreview-AXRXM2VS.mjs.map +0 -7
- package/dist/lib/browser/artifact-definition-BEV7S3Q2.mjs.map +0 -7
- package/dist/lib/browser/chunk-FJ5P5CGA.mjs +0 -86
- package/dist/lib/browser/chunk-FJ5P5CGA.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-K7GY2J5W.mjs.map +0 -7
- package/dist/lib/browser/react-surface-G5QRPPGT.mjs.map +0 -7
- package/dist/lib/node/MarkdownContainer-KLCUCM5O.cjs.map +0 -7
- package/dist/lib/node/MarkdownPreview-YEFCEKYA.cjs.map +0 -7
- package/dist/lib/node/artifact-definition-HNSTQ7SX.cjs.map +0 -7
- package/dist/lib/node/chunk-2HGBN655.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-FGBVXI7L.cjs.map +0 -7
- package/dist/lib/node/react-surface-DJFEQ4EN.cjs.map +0 -7
- package/dist/lib/node-esm/MarkdownContainer-IRHSOSGC.mjs.map +0 -7
- package/dist/lib/node-esm/MarkdownPreview-JWPTJG2V.mjs.map +0 -7
- package/dist/lib/node-esm/artifact-definition-GA7NQ3X5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-I6RIVFIP.mjs +0 -87
- package/dist/lib/node-esm/chunk-I6RIVFIP.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-3STR3645.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-75OU2AJX.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-serializer-6SMW5SL3.mjs.map → app-graph-serializer-OCXP7PCK.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-6D6EOKIT.mjs.map → chunk-5QXYEKSX.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-JD72ICHV.mjs.map → chunk-LJ2UFBJ2.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-QBFZJW2H.mjs.map → settings-EQSDBX6O.mjs.map} +0 -0
- /package/dist/lib/browser/{thread-VUUBSXA5.mjs.map → thread-MFKBUVCB.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-serializer-4VZJUDTL.cjs.map → app-graph-serializer-KBDLASRP.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-ETVG2GKL.cjs.map → chunk-JO4SBK36.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-6KAGLDQY.cjs.map → chunk-QRE5L6ZC.cjs.map} +0 -0
- /package/dist/lib/node/{settings-I3Z64YPE.cjs.map → settings-2JXASSLU.cjs.map} +0 -0
- /package/dist/lib/node/{thread-NHTJKFC4.cjs.map → thread-MXEGV6HS.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-serializer-QH2FE7FH.mjs.map → app-graph-serializer-67CO7ST3.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-VBEBX5EB.mjs.map → chunk-PALFXZBY.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-6TXN2UXT.mjs.map → chunk-VQA6BQGT.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-G7QIMIEK.mjs.map → settings-67RVIH3N.mjs.map} +0 -0
- /package/dist/lib/node-esm/{thread-72RI26KD.mjs.map → thread-5U4KSBED.mjs.map} +0 -0
|
@@ -9,20 +9,18 @@ export declare const Default: {
|
|
|
9
9
|
readonly id: string;
|
|
10
10
|
name?: string | undefined;
|
|
11
11
|
fallbackName?: string | undefined;
|
|
12
|
-
content: import("@dxos/echo-schema").Ref<{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}>;
|
|
12
|
+
content: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").TypedObjectFields<{
|
|
13
|
+
content: typeof import("effect/Schema").String;
|
|
14
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>;
|
|
16
15
|
threads: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").TypedObjectFields<{
|
|
17
16
|
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
18
17
|
anchor: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
19
18
|
status: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").Literal<["staged"]>, import("effect/Schema").Literal<["active"]>, import("effect/Schema").Literal<["resolved"]>]>>;
|
|
20
|
-
messages: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo-schema").Ref$<{
|
|
21
|
-
|
|
22
|
-
created: string
|
|
23
|
-
sender: {
|
|
24
|
-
|
|
25
|
-
contact?: import("@dxos/echo-schema").Ref<{
|
|
19
|
+
messages: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
20
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
21
|
+
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
22
|
+
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
23
|
+
contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
|
|
26
24
|
readonly id: string;
|
|
27
25
|
fields?: {
|
|
28
26
|
readonly value: string;
|
|
@@ -135,48 +133,52 @@ export declare const Default: {
|
|
|
135
133
|
(hint: string): string | number;
|
|
136
134
|
};
|
|
137
135
|
} | undefined;
|
|
138
|
-
}
|
|
139
|
-
identityDid
|
|
140
|
-
identityKey
|
|
141
|
-
email
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
type: "
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
pending
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
})
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
136
|
+
}>>;
|
|
137
|
+
identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
138
|
+
identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
139
|
+
email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
140
|
+
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
141
|
+
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
142
|
+
}>>;
|
|
143
|
+
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
144
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
145
|
+
}>, import("effect/Schema").Struct<{
|
|
146
|
+
type: import("effect/Schema").Literal<["text"]>;
|
|
147
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
148
|
+
text: typeof import("effect/Schema").String;
|
|
149
|
+
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
150
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
151
|
+
}>, import("effect/Schema").Struct<{
|
|
152
|
+
type: import("effect/Schema").Literal<["json"]>;
|
|
153
|
+
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
154
|
+
data: typeof import("effect/Schema").String;
|
|
155
|
+
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
156
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
157
|
+
}>, import("effect/Schema").Struct<{
|
|
158
|
+
type: import("effect/Schema").Literal<["image"]>;
|
|
159
|
+
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
160
|
+
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
161
|
+
type: import("effect/Schema").Literal<["base64"]>;
|
|
162
|
+
mediaType: typeof import("effect/Schema").String;
|
|
163
|
+
data: typeof import("effect/Schema").String;
|
|
164
|
+
}>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
165
|
+
type: import("effect/Schema").Literal<["http"]>;
|
|
166
|
+
url: typeof import("effect/Schema").String;
|
|
167
|
+
}>>]>>;
|
|
168
|
+
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
169
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
170
|
+
}>, import("effect/Schema").Struct<{
|
|
171
|
+
type: import("effect/Schema").Literal<["reference"]>;
|
|
172
|
+
reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
|
|
173
|
+
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
174
|
+
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
175
|
+
}>, import("effect/Schema").Struct<{
|
|
176
|
+
type: import("effect/Schema").Literal<["transcription"]>;
|
|
177
|
+
started: typeof import("effect/Schema").String;
|
|
178
|
+
text: typeof import("effect/Schema").String;
|
|
179
|
+
}>>>]>>>;
|
|
180
|
+
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
181
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
180
182
|
}, import("@dxos/echo-schema").TypedObjectOptions>>[];
|
|
181
183
|
assistantChatQueue?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando> | undefined;
|
|
182
184
|
}, "id"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownPreview.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkdownPreview/MarkdownPreview.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAa7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAqBtC,CAAC;AAEF,eAAe,IAAI,CAAC;AAgBpB,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"MarkdownPreview.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkdownPreview/MarkdownPreview.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAa7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAqBtC,CAAC;AAEF,eAAe,IAAI,CAAC;AAgBpB,eAAO,MAAM,OAAO;;;;;;;;;;;;;gGA9Ca,mBAAmB,cAElD,mBAAmB;+BACZ,mBAAmB;;;yEAMf,mBACZ;;kCAGO,CAAN;;;iDAGY,CAAC;;wCAE8B,CAAC;;2CAKrC,CAAC;oCAA8C,CAAC;sCAAgD,CAAC;qCASpG,CAAC;uCAC2B,CAAC;;iCAGrB,CAAC;oCACqB,CAAC;yCAMlC,CAAC;oCAGiB,CAAA;oCAEW,CAAC;sCAGV,CAAC;iCAA2C,CAAC;kCAA4C,CAAC;;8CAAkF,CAAC;;sCAAiF,CAAC;;8CAAkF,CAAC;;wCAAmF,CAAC;;8CAAkF,CAAC;;qCAAgF,CAAC;;mDAAiF,CAAC;qDAA+D,CAAC;qDAA+D,CAAC;mDAA6D,CAAC;uDAAiE,CAAC;gEAA0E,CAAC;oDAA8D,CAAC;;8CAA+E,CAAC;;gCAA2E,CAAC;;8CAAkF,CAAC;;oCAA+E,CAAC;;;;;;4CAA0P,CAAC,4BAA4B,CAAC,EAAC,KAAM,qBAAqB;4CAA2C,CAAC,EAAC,KAAM,eAAe,SAAS,CAAC,EAAC,KAAM,qBAAqB;;;;4CAAgJ,CAAC,4BAA4B,CAAC,EAAC,KAAM,qBAAqB;4CAA2C,CAAC,EAAC,KAAM,eAAe,SAAS,CAAC,EAAC,KAAM,qBAAqB;;;;4CAAgJ,CAAC,4BAA4B,CAAC,EAAC,KAAM,qBAAqB;4CAA2C,CAAC,EAAC,KAAM,eAAe,SAAS,CAAC,EAAC,KAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;4DAA+nC,CAAC;+DAAwE,CAAC;6DAAsE,CAAC,YAAY,CAAC;gEAAyE,CAAC,YAAY,CAAC;6DAAsE,CAAC,aAAa,CAAC,YAAY,CAAC;gEAAyE,CAAC,aAAa,CAAC,YAAY,CAAC;;;8DAAwL,CAAC;iEAA0E,CAAC;iEAA0E,CAAC,cAAc,CAAC;oEAA6E,CAAC,cAAc,CAAC;;;4CAAmJ,CAAC;iCAAuC,OAAO,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAAixD,mBAAmB;;;;;;;;;0BAAqX,mBAAmB;;;;;;;;;CAD1uN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Suggestions.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Suggestions.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAgD,MAAM,OAAO,CAAC;AA2FrE,QAAA,MAAM,YAAY,uBAAwB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,sBAoC3E,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CA2BnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './MarkdownSettings';
|
|
2
2
|
export declare const MarkdownContainer: import("react").LazyExoticComponent<({ id, role, object, settings, viewMode, editorStateStore, onViewModeChange, }: import("./MarkdownContainer").MarkdownContainerProps) => import("react").JSX.Element>;
|
|
3
|
-
export declare const MarkdownPreview: import("react").LazyExoticComponent<({ classNames, subject, role }: import("@dxos/plugin-preview").PreviewProps<import("../types").DocumentType | import("@dxos/schema").
|
|
3
|
+
export declare const MarkdownPreview: import("react").LazyExoticComponent<({ classNames, subject, role }: import("@dxos/plugin-preview").PreviewProps<import("../types").DocumentType | import("@dxos/schema").TextType>) => import("react").JSX.Element>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,oBAAoB,CAAC;AAEnC,eAAO,MAAM,iBAAiB,2MAA4C,CAAC;AAC3E,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,oBAAoB,CAAC;AAEnC,eAAO,MAAM,iBAAiB,2MAA4C,CAAC;AAC3E,eAAO,MAAM,eAAe,qNAA0C,CAAC"}
|
|
@@ -2,12 +2,12 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import { type PromiseIntentDispatcher } from '@dxos/app-framework';
|
|
3
3
|
import { type Query } from '@dxos/react-client/echo';
|
|
4
4
|
import { type EditorStateStore, type EditorViewMode, type Extension } from '@dxos/react-ui-editor';
|
|
5
|
-
import { type
|
|
5
|
+
import { type TextType } from '@dxos/schema';
|
|
6
6
|
import { type DocumentType, type MarkdownSettingsProps } from './types';
|
|
7
7
|
type ExtensionsOptions = {
|
|
8
8
|
document?: DocumentType;
|
|
9
9
|
id?: string;
|
|
10
|
-
text?:
|
|
10
|
+
text?: TextType;
|
|
11
11
|
dispatch?: PromiseIntentDispatcher;
|
|
12
12
|
query?: Query<DocumentType>;
|
|
13
13
|
settings: MarkdownSettingsProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/extensions.tsx"],"names":[],"mappings":"AAIA,OAAc,EAA6B,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAGlF,OAAO,EAGL,KAAK,uBAAuB,EAG7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAiD,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGpG,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,SAAS,EAaf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGxE,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/extensions.tsx"],"names":[],"mappings":"AAIA,OAAc,EAA6B,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAGlF,OAAO,EAGL,KAAK,uBAAuB,EAG7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAiD,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGpG,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,SAAS,EAaf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGxE,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,uBAAuB,CAAC;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC5B,QAAQ,EAAE,qBAAqB,CAAC;IAChC,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAGF,eAAO,MAAM,aAAa,kEAOvB,iBAAiB,KAAG,SAAS,EAqF/B,CAAC;AAyIF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,OAAO,QAAQ,CAAC,QAAQ,SAAS,KAAG,CAGxE,CAAC"}
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
sender: {
|
|
18
|
-
name?: string | undefined;
|
|
19
|
-
contact?: Ref<{
|
|
1
|
+
import { Expando, Ref, S } from '@dxos/echo-schema';
|
|
2
|
+
export declare const DocumentSchema: S.Struct<{
|
|
3
|
+
name: S.optional<typeof S.String>;
|
|
4
|
+
fallbackName: S.optional<typeof S.String>;
|
|
5
|
+
content: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
6
|
+
content: typeof S.String;
|
|
7
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>;
|
|
8
|
+
threads: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
9
|
+
name: S.optional<typeof S.String>;
|
|
10
|
+
anchor: S.optional<typeof S.String>;
|
|
11
|
+
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
12
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
13
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
14
|
+
created: S.SchemaClass<string, string, never>;
|
|
15
|
+
sender: S.mutable<S.Struct<{
|
|
16
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<{
|
|
20
17
|
readonly id: string;
|
|
21
18
|
fields?: {
|
|
22
19
|
readonly value: string;
|
|
23
20
|
readonly label: string;
|
|
24
21
|
readonly category?: string | undefined;
|
|
25
22
|
}[] | undefined;
|
|
26
|
-
organization?:
|
|
23
|
+
organization?: Ref<{
|
|
27
24
|
readonly id: string;
|
|
28
25
|
description?: string | undefined;
|
|
29
26
|
name?: string | undefined;
|
|
@@ -129,75 +126,77 @@ export declare const DocumentSchema: Schema.Struct<{
|
|
|
129
126
|
(hint: string): string | number;
|
|
130
127
|
};
|
|
131
128
|
} | undefined;
|
|
132
|
-
}
|
|
133
|
-
identityDid
|
|
134
|
-
identityKey
|
|
135
|
-
email
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
type: "
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
pending
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
129
|
+
}>>;
|
|
130
|
+
identityDid: S.optional<typeof S.String>;
|
|
131
|
+
identityKey: S.optional<typeof S.String>;
|
|
132
|
+
email: S.optional<typeof S.String>;
|
|
133
|
+
name: S.optional<typeof S.String>;
|
|
134
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
135
|
+
}>>;
|
|
136
|
+
blocks: S.mutable<S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
137
|
+
pending: S.optional<typeof S.Boolean>;
|
|
138
|
+
}>, S.Struct<{
|
|
139
|
+
type: S.Literal<["text"]>;
|
|
140
|
+
disposition: S.optional<typeof S.String>;
|
|
141
|
+
text: typeof S.String;
|
|
142
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
143
|
+
pending: S.optional<typeof S.Boolean>;
|
|
144
|
+
}>, S.Struct<{
|
|
145
|
+
type: S.Literal<["json"]>;
|
|
146
|
+
disposition: S.optional<typeof S.String>;
|
|
147
|
+
data: typeof S.String;
|
|
148
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
149
|
+
pending: S.optional<typeof S.Boolean>;
|
|
150
|
+
}>, S.Struct<{
|
|
151
|
+
type: S.Literal<["image"]>;
|
|
152
|
+
id: S.optional<typeof S.String>;
|
|
153
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
154
|
+
type: S.Literal<["base64"]>;
|
|
155
|
+
mediaType: typeof S.String;
|
|
156
|
+
data: typeof S.String;
|
|
157
|
+
}>>, S.mutable<S.Struct<{
|
|
158
|
+
type: S.Literal<["http"]>;
|
|
159
|
+
url: typeof S.String;
|
|
160
|
+
}>>]>>;
|
|
161
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
162
|
+
pending: S.optional<typeof S.Boolean>;
|
|
163
|
+
}>, S.Struct<{
|
|
164
|
+
type: S.Literal<["reference"]>;
|
|
165
|
+
reference: import("@dxos/echo-schema").Ref$<Expando>;
|
|
166
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
167
|
+
pending: S.optional<typeof S.Boolean>;
|
|
168
|
+
}>, S.Struct<{
|
|
169
|
+
type: S.Literal<["transcription"]>;
|
|
170
|
+
started: typeof S.String;
|
|
171
|
+
text: typeof S.String;
|
|
172
|
+
}>>>]>>>;
|
|
173
|
+
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
174
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
174
175
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
175
|
-
assistantChatQueue:
|
|
176
|
+
assistantChatQueue: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
|
|
176
177
|
}>;
|
|
177
|
-
export declare const DocumentType: import("@dxos/echo-schema").EchoTypeSchema<
|
|
178
|
-
name:
|
|
179
|
-
fallbackName:
|
|
180
|
-
content: import("@dxos/echo-schema").Ref$<{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
name?: string | undefined;
|
|
193
|
-
contact?: Ref<{
|
|
178
|
+
export declare const DocumentType: import("@dxos/echo-schema").EchoTypeSchema<S.Struct<{
|
|
179
|
+
name: S.optional<typeof S.String>;
|
|
180
|
+
fallbackName: S.optional<typeof S.String>;
|
|
181
|
+
content: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
182
|
+
content: typeof S.String;
|
|
183
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>;
|
|
184
|
+
threads: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
185
|
+
name: S.optional<typeof S.String>;
|
|
186
|
+
anchor: S.optional<typeof S.String>;
|
|
187
|
+
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
188
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
189
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
190
|
+
created: S.SchemaClass<string, string, never>;
|
|
191
|
+
sender: S.mutable<S.Struct<{
|
|
192
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<{
|
|
194
193
|
readonly id: string;
|
|
195
194
|
fields?: {
|
|
196
195
|
readonly value: string;
|
|
197
196
|
readonly label: string;
|
|
198
197
|
readonly category?: string | undefined;
|
|
199
198
|
}[] | undefined;
|
|
200
|
-
organization?:
|
|
199
|
+
organization?: Ref<{
|
|
201
200
|
readonly id: string;
|
|
202
201
|
description?: string | undefined;
|
|
203
202
|
name?: string | undefined;
|
|
@@ -303,52 +302,56 @@ export declare const DocumentType: import("@dxos/echo-schema").EchoTypeSchema<Sc
|
|
|
303
302
|
(hint: string): string | number;
|
|
304
303
|
};
|
|
305
304
|
} | undefined;
|
|
306
|
-
}
|
|
307
|
-
identityDid
|
|
308
|
-
identityKey
|
|
309
|
-
email
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
type: "
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}
|
|
339
|
-
pending
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
305
|
+
}>>;
|
|
306
|
+
identityDid: S.optional<typeof S.String>;
|
|
307
|
+
identityKey: S.optional<typeof S.String>;
|
|
308
|
+
email: S.optional<typeof S.String>;
|
|
309
|
+
name: S.optional<typeof S.String>;
|
|
310
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
311
|
+
}>>;
|
|
312
|
+
blocks: S.mutable<S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
313
|
+
pending: S.optional<typeof S.Boolean>;
|
|
314
|
+
}>, S.Struct<{
|
|
315
|
+
type: S.Literal<["text"]>;
|
|
316
|
+
disposition: S.optional<typeof S.String>;
|
|
317
|
+
text: typeof S.String;
|
|
318
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
319
|
+
pending: S.optional<typeof S.Boolean>;
|
|
320
|
+
}>, S.Struct<{
|
|
321
|
+
type: S.Literal<["json"]>;
|
|
322
|
+
disposition: S.optional<typeof S.String>;
|
|
323
|
+
data: typeof S.String;
|
|
324
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
325
|
+
pending: S.optional<typeof S.Boolean>;
|
|
326
|
+
}>, S.Struct<{
|
|
327
|
+
type: S.Literal<["image"]>;
|
|
328
|
+
id: S.optional<typeof S.String>;
|
|
329
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
330
|
+
type: S.Literal<["base64"]>;
|
|
331
|
+
mediaType: typeof S.String;
|
|
332
|
+
data: typeof S.String;
|
|
333
|
+
}>>, S.mutable<S.Struct<{
|
|
334
|
+
type: S.Literal<["http"]>;
|
|
335
|
+
url: typeof S.String;
|
|
336
|
+
}>>]>>;
|
|
337
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
338
|
+
pending: S.optional<typeof S.Boolean>;
|
|
339
|
+
}>, S.Struct<{
|
|
340
|
+
type: S.Literal<["reference"]>;
|
|
341
|
+
reference: import("@dxos/echo-schema").Ref$<Expando>;
|
|
342
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
343
|
+
pending: S.optional<typeof S.Boolean>;
|
|
344
|
+
}>, S.Struct<{
|
|
345
|
+
type: S.Literal<["transcription"]>;
|
|
346
|
+
started: typeof S.String;
|
|
347
|
+
text: typeof S.String;
|
|
348
|
+
}>>>]>>>;
|
|
349
|
+
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
350
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
348
351
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
349
|
-
assistantChatQueue:
|
|
352
|
+
assistantChatQueue: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
|
|
350
353
|
}>, {}>;
|
|
351
|
-
export type DocumentType =
|
|
354
|
+
export type DocumentType = S.Schema.Type<typeof DocumentType>;
|
|
352
355
|
export declare const createDocument: ({ name, content }: {
|
|
353
356
|
name: string;
|
|
354
357
|
content: string;
|
|
@@ -356,27 +359,25 @@ export declare const createDocument: ({ name, content }: {
|
|
|
356
359
|
readonly id: string;
|
|
357
360
|
name?: string | undefined;
|
|
358
361
|
fallbackName?: string | undefined;
|
|
359
|
-
content: Ref<{
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}>;
|
|
362
|
+
content: Ref<import("@dxos/echo-schema").TypedObjectFields<{
|
|
363
|
+
content: typeof S.String;
|
|
364
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>;
|
|
363
365
|
threads: Ref<import("@dxos/echo-schema").TypedObjectFields<{
|
|
364
|
-
name:
|
|
365
|
-
anchor:
|
|
366
|
-
status:
|
|
367
|
-
messages:
|
|
368
|
-
|
|
369
|
-
created: string
|
|
370
|
-
sender: {
|
|
371
|
-
|
|
372
|
-
contact?: Ref<{
|
|
366
|
+
name: S.optional<typeof S.String>;
|
|
367
|
+
anchor: S.optional<typeof S.String>;
|
|
368
|
+
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
369
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
370
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
371
|
+
created: S.SchemaClass<string, string, never>;
|
|
372
|
+
sender: S.mutable<S.Struct<{
|
|
373
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<{
|
|
373
374
|
readonly id: string;
|
|
374
375
|
fields?: {
|
|
375
376
|
readonly value: string;
|
|
376
377
|
readonly label: string;
|
|
377
378
|
readonly category?: string | undefined;
|
|
378
379
|
}[] | undefined;
|
|
379
|
-
organization?:
|
|
380
|
+
organization?: Ref<{
|
|
380
381
|
readonly id: string;
|
|
381
382
|
description?: string | undefined;
|
|
382
383
|
name?: string | undefined;
|
|
@@ -482,48 +483,52 @@ export declare const createDocument: ({ name, content }: {
|
|
|
482
483
|
(hint: string): string | number;
|
|
483
484
|
};
|
|
484
485
|
} | undefined;
|
|
485
|
-
}
|
|
486
|
-
identityDid
|
|
487
|
-
identityKey
|
|
488
|
-
email
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
type: "
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
}
|
|
518
|
-
pending
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
486
|
+
}>>;
|
|
487
|
+
identityDid: S.optional<typeof S.String>;
|
|
488
|
+
identityKey: S.optional<typeof S.String>;
|
|
489
|
+
email: S.optional<typeof S.String>;
|
|
490
|
+
name: S.optional<typeof S.String>;
|
|
491
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
492
|
+
}>>;
|
|
493
|
+
blocks: S.mutable<S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
494
|
+
pending: S.optional<typeof S.Boolean>;
|
|
495
|
+
}>, S.Struct<{
|
|
496
|
+
type: S.Literal<["text"]>;
|
|
497
|
+
disposition: S.optional<typeof S.String>;
|
|
498
|
+
text: typeof S.String;
|
|
499
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
500
|
+
pending: S.optional<typeof S.Boolean>;
|
|
501
|
+
}>, S.Struct<{
|
|
502
|
+
type: S.Literal<["json"]>;
|
|
503
|
+
disposition: S.optional<typeof S.String>;
|
|
504
|
+
data: typeof S.String;
|
|
505
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
506
|
+
pending: S.optional<typeof S.Boolean>;
|
|
507
|
+
}>, S.Struct<{
|
|
508
|
+
type: S.Literal<["image"]>;
|
|
509
|
+
id: S.optional<typeof S.String>;
|
|
510
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
511
|
+
type: S.Literal<["base64"]>;
|
|
512
|
+
mediaType: typeof S.String;
|
|
513
|
+
data: typeof S.String;
|
|
514
|
+
}>>, S.mutable<S.Struct<{
|
|
515
|
+
type: S.Literal<["http"]>;
|
|
516
|
+
url: typeof S.String;
|
|
517
|
+
}>>]>>;
|
|
518
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
519
|
+
pending: S.optional<typeof S.Boolean>;
|
|
520
|
+
}>, S.Struct<{
|
|
521
|
+
type: S.Literal<["reference"]>;
|
|
522
|
+
reference: import("@dxos/echo-schema").Ref$<Expando>;
|
|
523
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
524
|
+
pending: S.optional<typeof S.Boolean>;
|
|
525
|
+
}>, S.Struct<{
|
|
526
|
+
type: S.Literal<["transcription"]>;
|
|
527
|
+
started: typeof S.String;
|
|
528
|
+
text: typeof S.String;
|
|
529
|
+
}>>>]>>>;
|
|
530
|
+
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
531
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
527
532
|
}, import("@dxos/echo-schema").TypedObjectOptions>>[];
|
|
528
533
|
assistantChatQueue?: Ref<Expando> | undefined;
|
|
529
534
|
}>;
|