@dxos/plugin-markdown 0.8.2-main.f11618f → 0.8.2-main.fbd8ed0

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 (176) hide show
  1. package/dist/lib/browser/{MarkdownContainer-5XV7K2NX.mjs → MarkdownContainer-KKWICAKV.mjs} +46 -62
  2. package/dist/lib/browser/MarkdownContainer-KKWICAKV.mjs.map +7 -0
  3. package/dist/lib/browser/{MarkdownPreview-DX5U5LCX.mjs → MarkdownPreview-FVSYVJGN.mjs} +7 -7
  4. package/dist/lib/browser/MarkdownPreview-FVSYVJGN.mjs.map +7 -0
  5. package/dist/lib/browser/{app-graph-serializer-OCXP7PCK.mjs → app-graph-serializer-MPJQUYTQ.mjs} +5 -6
  6. package/dist/lib/browser/app-graph-serializer-MPJQUYTQ.mjs.map +7 -0
  7. package/dist/lib/browser/{artifact-definition-XTVOUMMI.mjs → artifact-definition-DAF3YCVL.mjs} +10 -9
  8. package/dist/lib/browser/artifact-definition-DAF3YCVL.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-JJY5LKZS.mjs +20 -0
  10. package/dist/lib/browser/{chunk-QV6ZIXAD.mjs → chunk-S42YXFZ7.mjs} +4 -4
  11. package/dist/lib/browser/{chunk-QV6ZIXAD.mjs.map → chunk-S42YXFZ7.mjs.map} +3 -3
  12. package/dist/lib/browser/{chunk-LJ2UFBJ2.mjs → chunk-TUCSFCS5.mjs} +3 -4
  13. package/dist/lib/browser/chunk-TUCSFCS5.mjs.map +7 -0
  14. package/dist/lib/browser/chunk-XP2ZPCLI.mjs +87 -0
  15. package/dist/lib/browser/chunk-XP2ZPCLI.mjs.map +7 -0
  16. package/dist/lib/browser/index.mjs +6 -6
  17. package/dist/lib/browser/index.mjs.map +3 -3
  18. package/dist/lib/browser/{intent-resolver-H37L3DBD.mjs → intent-resolver-PVKVTAFF.mjs} +9 -14
  19. package/dist/lib/browser/intent-resolver-PVKVTAFF.mjs.map +7 -0
  20. package/dist/lib/browser/meta.json +1 -1
  21. package/dist/lib/browser/{react-surface-LBCMSLJ5.mjs → react-surface-EMQV3GVI.mjs} +9 -8
  22. package/dist/lib/browser/react-surface-EMQV3GVI.mjs.map +7 -0
  23. package/dist/lib/browser/{settings-EQSDBX6O.mjs → settings-GPB6WOIU.mjs} +2 -2
  24. package/dist/lib/browser/{state-AIN4J7N5.mjs → state-XTP5IP3W.mjs} +2 -2
  25. package/dist/lib/browser/state-XTP5IP3W.mjs.map +7 -0
  26. package/dist/lib/browser/{thread-MFKBUVCB.mjs → thread-KW43PJ53.mjs} +2 -2
  27. package/dist/lib/browser/types/index.mjs +1 -1
  28. package/dist/lib/node/{MarkdownContainer-5EQTBXV3.cjs → MarkdownContainer-LBI6ZESS.cjs} +52 -68
  29. package/dist/lib/node/MarkdownContainer-LBI6ZESS.cjs.map +7 -0
  30. package/dist/lib/node/{MarkdownPreview-W7QIN2KJ.cjs → MarkdownPreview-O3BR4PZW.cjs} +14 -14
  31. package/dist/lib/node/MarkdownPreview-O3BR4PZW.cjs.map +7 -0
  32. package/dist/lib/node/{app-graph-serializer-KBDLASRP.cjs → app-graph-serializer-Z7UJYSSL.cjs} +10 -11
  33. package/dist/lib/node/app-graph-serializer-Z7UJYSSL.cjs.map +7 -0
  34. package/dist/lib/node/{artifact-definition-ADEN2KD6.cjs → artifact-definition-UIZSL2AL.cjs} +15 -14
  35. package/dist/lib/node/artifact-definition-UIZSL2AL.cjs.map +7 -0
  36. package/dist/lib/node/{chunk-JO4SBK36.cjs → chunk-4525YF72.cjs} +6 -7
  37. package/dist/lib/node/chunk-4525YF72.cjs.map +7 -0
  38. package/dist/lib/node/{chunk-QRE5L6ZC.cjs → chunk-AJHB57YQ.cjs} +11 -11
  39. package/dist/lib/node/{chunk-WGMVEPB3.cjs → chunk-BWRBWEKN.cjs} +7 -7
  40. package/dist/lib/node/chunk-BWRBWEKN.cjs.map +7 -0
  41. package/dist/lib/node/{chunk-YHL4JSA6.cjs → chunk-EO5H4OZJ.cjs} +35 -32
  42. package/dist/lib/node/chunk-EO5H4OZJ.cjs.map +7 -0
  43. package/dist/lib/node/index.cjs +23 -23
  44. package/dist/lib/node/index.cjs.map +3 -3
  45. package/dist/lib/node/{intent-resolver-NX5QNRYF.cjs → intent-resolver-ND7PSRJX.cjs} +14 -19
  46. package/dist/lib/node/intent-resolver-ND7PSRJX.cjs.map +7 -0
  47. package/dist/lib/node/meta.json +1 -1
  48. package/dist/lib/node/{react-surface-DJIZSVMN.cjs → react-surface-REHX3ABQ.cjs} +13 -12
  49. package/dist/lib/node/react-surface-REHX3ABQ.cjs.map +7 -0
  50. package/dist/lib/node/{settings-2JXASSLU.cjs → settings-SF6JDJG6.cjs} +6 -6
  51. package/dist/lib/node/{state-PC7IVXFP.cjs → state-K4IPZTRO.cjs} +5 -5
  52. package/dist/lib/node/state-K4IPZTRO.cjs.map +7 -0
  53. package/dist/lib/node/{thread-MXEGV6HS.cjs → thread-NWBGBGOR.cjs} +6 -6
  54. package/dist/lib/node/types/index.cjs +7 -7
  55. package/dist/lib/node/types/index.cjs.map +1 -1
  56. package/dist/lib/node-esm/{MarkdownContainer-LONZOJJX.mjs → MarkdownContainer-62XZY5EP.mjs} +46 -62
  57. package/dist/lib/node-esm/MarkdownContainer-62XZY5EP.mjs.map +7 -0
  58. package/dist/lib/node-esm/{MarkdownPreview-T3OW2EN4.mjs → MarkdownPreview-KYWRMBRM.mjs} +7 -7
  59. package/dist/lib/node-esm/MarkdownPreview-KYWRMBRM.mjs.map +7 -0
  60. package/dist/lib/node-esm/{app-graph-serializer-67CO7ST3.mjs → app-graph-serializer-DDMFMNYI.mjs} +5 -6
  61. package/dist/lib/node-esm/app-graph-serializer-DDMFMNYI.mjs.map +7 -0
  62. package/dist/lib/node-esm/{artifact-definition-KTS5M2FW.mjs → artifact-definition-ER3446S7.mjs} +10 -9
  63. package/dist/lib/node-esm/artifact-definition-ER3446S7.mjs.map +7 -0
  64. package/dist/lib/node-esm/chunk-66XM3JMR.mjs +88 -0
  65. package/dist/lib/node-esm/chunk-66XM3JMR.mjs.map +7 -0
  66. package/dist/lib/node-esm/{chunk-VQA6BQGT.mjs → chunk-CXTVDT5U.mjs} +3 -4
  67. package/dist/lib/node-esm/chunk-CXTVDT5U.mjs.map +7 -0
  68. package/dist/lib/node-esm/{chunk-4U2F4EB7.mjs → chunk-PDD5B7EO.mjs} +4 -4
  69. package/dist/lib/node-esm/{chunk-4U2F4EB7.mjs.map → chunk-PDD5B7EO.mjs.map} +3 -3
  70. package/dist/lib/node-esm/{chunk-PALFXZBY.mjs → chunk-T5Z5BIOF.mjs} +8 -8
  71. package/dist/lib/node-esm/index.mjs +6 -6
  72. package/dist/lib/node-esm/index.mjs.map +3 -3
  73. package/dist/lib/node-esm/{intent-resolver-XES4ZCA6.mjs → intent-resolver-5BF5PLSN.mjs} +9 -14
  74. package/dist/lib/node-esm/intent-resolver-5BF5PLSN.mjs.map +7 -0
  75. package/dist/lib/node-esm/meta.json +1 -1
  76. package/dist/lib/node-esm/{react-surface-737EXAWT.mjs → react-surface-FA7JYF2A.mjs} +9 -8
  77. package/dist/lib/node-esm/react-surface-FA7JYF2A.mjs.map +7 -0
  78. package/dist/lib/node-esm/{settings-67RVIH3N.mjs → settings-2DT2C4RA.mjs} +2 -2
  79. package/dist/lib/node-esm/{state-PNOPM4TS.mjs → state-7VFYPF6Z.mjs} +2 -2
  80. package/dist/lib/node-esm/state-7VFYPF6Z.mjs.map +7 -0
  81. package/dist/lib/node-esm/{thread-5U4KSBED.mjs → thread-D2E6W44K.mjs} +2 -2
  82. package/dist/lib/node-esm/types/index.mjs +1 -1
  83. package/dist/types/src/capabilities/app-graph-serializer.d.ts +2 -2
  84. package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +1 -1
  85. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  86. package/dist/types/src/capabilities/index.d.ts +3 -3
  87. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  88. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
  89. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  90. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  91. package/dist/types/src/capabilities/state.d.ts +2 -2
  92. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  93. package/dist/types/src/components/MarkdownContainer.d.ts +2 -2
  94. package/dist/types/src/components/MarkdownContainer.d.ts.map +1 -1
  95. package/dist/types/src/components/MarkdownEditor/MarkdownEditor.d.ts +0 -15
  96. package/dist/types/src/components/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
  97. package/dist/types/src/components/MarkdownPreview/MarkdownPreview.d.ts +2 -2
  98. package/dist/types/src/components/MarkdownPreview/MarkdownPreview.d.ts.map +1 -1
  99. package/dist/types/src/components/MarkdownPreview/MarkdownPreview.stories.d.ts +53 -117
  100. package/dist/types/src/components/MarkdownPreview/MarkdownPreview.stories.d.ts.map +1 -1
  101. package/dist/types/src/components/MarkdownSettings/MarkdownSettings.d.ts.map +1 -1
  102. package/dist/types/src/components/Suggestions.stories.d.ts.map +1 -1
  103. package/dist/types/src/components/Toolbar.stories.d.ts.map +1 -1
  104. package/dist/types/src/components/index.d.ts +1 -1
  105. package/dist/types/src/components/index.d.ts.map +1 -1
  106. package/dist/types/src/extensions.d.ts +4 -4
  107. package/dist/types/src/extensions.d.ts.map +1 -1
  108. package/dist/types/src/hooks/useSelectCurrentThread.d.ts.map +1 -1
  109. package/dist/types/src/translations.d.ts +2 -46
  110. package/dist/types/src/translations.d.ts.map +1 -1
  111. package/dist/types/src/types/schema.d.ts +185 -376
  112. package/dist/types/src/types/schema.d.ts.map +1 -1
  113. package/dist/types/src/types/types.d.ts +92 -150
  114. package/dist/types/src/types/types.d.ts.map +1 -1
  115. package/dist/types/src/util.d.ts.map +1 -1
  116. package/dist/types/tsconfig.tsbuildinfo +1 -1
  117. package/package.json +40 -38
  118. package/src/MarkdownPlugin.tsx +2 -2
  119. package/src/capabilities/app-graph-serializer.ts +4 -5
  120. package/src/capabilities/artifact-definition.ts +6 -4
  121. package/src/capabilities/intent-resolver.ts +10 -10
  122. package/src/capabilities/react-surface.tsx +7 -6
  123. package/src/capabilities/state.ts +3 -3
  124. package/src/components/MarkdownContainer.tsx +3 -4
  125. package/src/components/MarkdownEditor/MarkdownEditor.stories.tsx +1 -1
  126. package/src/components/MarkdownEditor/MarkdownEditor.tsx +21 -42
  127. package/src/components/MarkdownPreview/MarkdownPreview.stories.tsx +9 -3
  128. package/src/components/MarkdownPreview/MarkdownPreview.tsx +8 -8
  129. package/src/components/Suggestions.stories.tsx +20 -13
  130. package/src/components/Toolbar.stories.tsx +14 -14
  131. package/src/extensions.tsx +5 -5
  132. package/src/hooks/useSelectCurrentThread.tsx +2 -2
  133. package/src/translations.ts +1 -3
  134. package/src/types/schema.ts +20 -12
  135. package/src/types/types.ts +23 -21
  136. package/src/util.tsx +3 -3
  137. package/dist/lib/browser/MarkdownContainer-5XV7K2NX.mjs.map +0 -7
  138. package/dist/lib/browser/MarkdownPreview-DX5U5LCX.mjs.map +0 -7
  139. package/dist/lib/browser/app-graph-serializer-OCXP7PCK.mjs.map +0 -7
  140. package/dist/lib/browser/artifact-definition-XTVOUMMI.mjs.map +0 -7
  141. package/dist/lib/browser/chunk-5QXYEKSX.mjs +0 -20
  142. package/dist/lib/browser/chunk-GVOEHF7E.mjs +0 -84
  143. package/dist/lib/browser/chunk-GVOEHF7E.mjs.map +0 -7
  144. package/dist/lib/browser/chunk-LJ2UFBJ2.mjs.map +0 -7
  145. package/dist/lib/browser/intent-resolver-H37L3DBD.mjs.map +0 -7
  146. package/dist/lib/browser/react-surface-LBCMSLJ5.mjs.map +0 -7
  147. package/dist/lib/browser/state-AIN4J7N5.mjs.map +0 -7
  148. package/dist/lib/node/MarkdownContainer-5EQTBXV3.cjs.map +0 -7
  149. package/dist/lib/node/MarkdownPreview-W7QIN2KJ.cjs.map +0 -7
  150. package/dist/lib/node/app-graph-serializer-KBDLASRP.cjs.map +0 -7
  151. package/dist/lib/node/artifact-definition-ADEN2KD6.cjs.map +0 -7
  152. package/dist/lib/node/chunk-JO4SBK36.cjs.map +0 -7
  153. package/dist/lib/node/chunk-WGMVEPB3.cjs.map +0 -7
  154. package/dist/lib/node/chunk-YHL4JSA6.cjs.map +0 -7
  155. package/dist/lib/node/intent-resolver-NX5QNRYF.cjs.map +0 -7
  156. package/dist/lib/node/react-surface-DJIZSVMN.cjs.map +0 -7
  157. package/dist/lib/node/state-PC7IVXFP.cjs.map +0 -7
  158. package/dist/lib/node-esm/MarkdownContainer-LONZOJJX.mjs.map +0 -7
  159. package/dist/lib/node-esm/MarkdownPreview-T3OW2EN4.mjs.map +0 -7
  160. package/dist/lib/node-esm/app-graph-serializer-67CO7ST3.mjs.map +0 -7
  161. package/dist/lib/node-esm/artifact-definition-KTS5M2FW.mjs.map +0 -7
  162. package/dist/lib/node-esm/chunk-NUZHKZSZ.mjs +0 -85
  163. package/dist/lib/node-esm/chunk-NUZHKZSZ.mjs.map +0 -7
  164. package/dist/lib/node-esm/chunk-VQA6BQGT.mjs.map +0 -7
  165. package/dist/lib/node-esm/intent-resolver-XES4ZCA6.mjs.map +0 -7
  166. package/dist/lib/node-esm/react-surface-737EXAWT.mjs.map +0 -7
  167. package/dist/lib/node-esm/state-PNOPM4TS.mjs.map +0 -7
  168. /package/dist/lib/browser/{chunk-5QXYEKSX.mjs.map → chunk-JJY5LKZS.mjs.map} +0 -0
  169. /package/dist/lib/browser/{settings-EQSDBX6O.mjs.map → settings-GPB6WOIU.mjs.map} +0 -0
  170. /package/dist/lib/browser/{thread-MFKBUVCB.mjs.map → thread-KW43PJ53.mjs.map} +0 -0
  171. /package/dist/lib/node/{chunk-QRE5L6ZC.cjs.map → chunk-AJHB57YQ.cjs.map} +0 -0
  172. /package/dist/lib/node/{settings-2JXASSLU.cjs.map → settings-SF6JDJG6.cjs.map} +0 -0
  173. /package/dist/lib/node/{thread-MXEGV6HS.cjs.map → thread-NWBGBGOR.cjs.map} +0 -0
  174. /package/dist/lib/node-esm/{chunk-PALFXZBY.mjs.map → chunk-T5Z5BIOF.mjs.map} +0 -0
  175. /package/dist/lib/node-esm/{settings-67RVIH3N.mjs.map → settings-2DT2C4RA.mjs.map} +0 -0
  176. /package/dist/lib/node-esm/{thread-5U4KSBED.mjs.map → thread-D2E6W44K.mjs.map} +0 -0
@@ -1,26 +1,29 @@
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$<{
1
+ import { Schema } from 'effect';
2
+ import { Expando, Ref } from '@dxos/echo-schema';
3
+ export declare const DocumentSchema: Schema.Struct<{
4
+ name: Schema.optional<typeof Schema.String>;
5
+ fallbackName: Schema.optional<typeof Schema.String>;
6
+ content: import("@dxos/echo-schema").Ref$<{
7
+ readonly id: string;
8
+ content: string;
9
+ }>;
10
+ threads: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
11
+ name: Schema.optional<typeof Schema.String>;
12
+ anchor: Schema.optional<typeof Schema.String>;
13
+ status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
14
+ messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
15
+ readonly id: string;
16
+ created: string;
17
+ sender: {
18
+ name?: string | undefined;
19
+ contact?: Ref<{
17
20
  readonly id: string;
18
21
  fields?: {
19
22
  readonly value: string;
20
23
  readonly label: string;
21
24
  readonly category?: string | undefined;
22
25
  }[] | undefined;
23
- organization?: Ref<{
26
+ organization?: import("@dxos/echo-schema").Ref<{
24
27
  readonly id: string;
25
28
  description?: string | undefined;
26
29
  name?: string | undefined;
@@ -63,140 +66,76 @@ export declare const DocumentSchema: S.Struct<{
63
66
  readonly value: string;
64
67
  readonly label?: string | undefined;
65
68
  }[] | undefined;
66
- birthday?: {
67
- toString: () => string;
68
- toDateString: () => string;
69
- toTimeString: () => string;
70
- toLocaleString: {
71
- (): string;
72
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
73
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
74
- };
75
- toLocaleDateString: {
76
- (): string;
77
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
78
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
79
- };
80
- toLocaleTimeString: {
81
- (): string;
82
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
83
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
84
- };
85
- valueOf: () => number;
86
- getTime: () => number;
87
- getFullYear: () => number;
88
- getUTCFullYear: () => number;
89
- getMonth: () => number;
90
- getUTCMonth: () => number;
91
- getDate: () => number;
92
- getUTCDate: () => number;
93
- getDay: () => number;
94
- getUTCDay: () => number;
95
- getHours: () => number;
96
- getUTCHours: () => number;
97
- getMinutes: () => number;
98
- getUTCMinutes: () => number;
99
- getSeconds: () => number;
100
- getUTCSeconds: () => number;
101
- getMilliseconds: () => number;
102
- getUTCMilliseconds: () => number;
103
- getTimezoneOffset: () => number;
104
- setTime: (time: number) => number;
105
- setMilliseconds: (ms: number) => number;
106
- setUTCMilliseconds: (ms: number) => number;
107
- setSeconds: (sec: number, ms?: number) => number;
108
- setUTCSeconds: (sec: number, ms?: number) => number;
109
- setMinutes: (min: number, sec?: number, ms?: number) => number;
110
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
111
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
112
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
113
- setDate: (date: number) => number;
114
- setUTCDate: (date: number) => number;
115
- setMonth: (month: number, date?: number) => number;
116
- setUTCMonth: (month: number, date?: number) => number;
117
- setFullYear: (year: number, month?: number, date?: number) => number;
118
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
119
- toUTCString: () => string;
120
- toISOString: () => string;
121
- toJSON: (key?: any) => string;
122
- [Symbol.toPrimitive]: {
123
- (hint: "default"): string;
124
- (hint: "string"): string;
125
- (hint: "number"): number;
126
- (hint: string): string | number;
127
- };
128
- } | undefined;
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>>>>;
69
+ birthday?: string | undefined;
70
+ }> | undefined;
71
+ identityDid?: string | undefined;
72
+ identityKey?: string | undefined;
73
+ email?: string | undefined;
74
+ role?: "user" | "assistant" | undefined;
75
+ };
76
+ blocks: ({
77
+ pending?: boolean | undefined;
78
+ type: "text";
79
+ disposition?: string | undefined;
80
+ text: string;
81
+ } | {
82
+ pending?: boolean | undefined;
83
+ type: "json";
84
+ disposition?: string | undefined;
85
+ data: string;
86
+ } | {
87
+ pending?: boolean | undefined;
88
+ id?: string | undefined;
89
+ type: "image";
90
+ source?: {
91
+ type: "base64";
92
+ data: string;
93
+ mediaType: string;
94
+ } | {
95
+ type: "http";
96
+ url: string;
97
+ } | undefined;
98
+ } | {
99
+ pending?: boolean | undefined;
100
+ type: "reference";
101
+ reference: Ref<Expando>;
102
+ } | {
103
+ pending?: boolean | undefined;
104
+ type: "transcription";
105
+ text: string;
106
+ started: string;
107
+ })[];
108
+ properties?: {
109
+ [x: string]: any;
110
+ } | undefined;
111
+ }>>>;
175
112
  }, import("@dxos/echo-schema").TypedObjectOptions>>>>;
176
- assistantChatQueue: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
113
+ assistantChatQueue: Schema.optional<import("@dxos/echo-schema").Ref$<Expando>>;
177
114
  }>;
178
- export declare const DocumentType: import("@dxos/echo-schema").EchoObjectSchema<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$<{
115
+ export declare const DocumentType: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
116
+ name: Schema.optional<typeof Schema.String>;
117
+ fallbackName: Schema.optional<typeof Schema.String>;
118
+ content: import("@dxos/echo-schema").Ref$<{
119
+ readonly id: string;
120
+ content: string;
121
+ }>;
122
+ threads: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
123
+ name: Schema.optional<typeof Schema.String>;
124
+ anchor: Schema.optional<typeof Schema.String>;
125
+ status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
126
+ messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
127
+ readonly id: string;
128
+ created: string;
129
+ sender: {
130
+ name?: string | undefined;
131
+ contact?: Ref<{
193
132
  readonly id: string;
194
133
  fields?: {
195
134
  readonly value: string;
196
135
  readonly label: string;
197
136
  readonly category?: string | undefined;
198
137
  }[] | undefined;
199
- organization?: Ref<{
138
+ organization?: import("@dxos/echo-schema").Ref<{
200
139
  readonly id: string;
201
140
  description?: string | undefined;
202
141
  name?: string | undefined;
@@ -239,119 +178,53 @@ export declare const DocumentType: import("@dxos/echo-schema").EchoObjectSchema<
239
178
  readonly value: string;
240
179
  readonly label?: string | undefined;
241
180
  }[] | undefined;
242
- birthday?: {
243
- toString: () => string;
244
- toDateString: () => string;
245
- toTimeString: () => string;
246
- toLocaleString: {
247
- (): string;
248
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
249
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
250
- };
251
- toLocaleDateString: {
252
- (): string;
253
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
254
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
255
- };
256
- toLocaleTimeString: {
257
- (): string;
258
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
259
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
260
- };
261
- valueOf: () => number;
262
- getTime: () => number;
263
- getFullYear: () => number;
264
- getUTCFullYear: () => number;
265
- getMonth: () => number;
266
- getUTCMonth: () => number;
267
- getDate: () => number;
268
- getUTCDate: () => number;
269
- getDay: () => number;
270
- getUTCDay: () => number;
271
- getHours: () => number;
272
- getUTCHours: () => number;
273
- getMinutes: () => number;
274
- getUTCMinutes: () => number;
275
- getSeconds: () => number;
276
- getUTCSeconds: () => number;
277
- getMilliseconds: () => number;
278
- getUTCMilliseconds: () => number;
279
- getTimezoneOffset: () => number;
280
- setTime: (time: number) => number;
281
- setMilliseconds: (ms: number) => number;
282
- setUTCMilliseconds: (ms: number) => number;
283
- setSeconds: (sec: number, ms?: number) => number;
284
- setUTCSeconds: (sec: number, ms?: number) => number;
285
- setMinutes: (min: number, sec?: number, ms?: number) => number;
286
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
287
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
288
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
289
- setDate: (date: number) => number;
290
- setUTCDate: (date: number) => number;
291
- setMonth: (month: number, date?: number) => number;
292
- setUTCMonth: (month: number, date?: number) => number;
293
- setFullYear: (year: number, month?: number, date?: number) => number;
294
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
295
- toUTCString: () => string;
296
- toISOString: () => string;
297
- toJSON: (key?: any) => string;
298
- [Symbol.toPrimitive]: {
299
- (hint: "default"): string;
300
- (hint: "string"): string;
301
- (hint: "number"): number;
302
- (hint: string): string | number;
303
- };
304
- } | undefined;
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>>>>;
181
+ birthday?: string | undefined;
182
+ }> | undefined;
183
+ identityDid?: string | undefined;
184
+ identityKey?: string | undefined;
185
+ email?: string | undefined;
186
+ role?: "user" | "assistant" | undefined;
187
+ };
188
+ blocks: ({
189
+ pending?: boolean | undefined;
190
+ type: "text";
191
+ disposition?: string | undefined;
192
+ text: string;
193
+ } | {
194
+ pending?: boolean | undefined;
195
+ type: "json";
196
+ disposition?: string | undefined;
197
+ data: string;
198
+ } | {
199
+ pending?: boolean | undefined;
200
+ id?: string | undefined;
201
+ type: "image";
202
+ source?: {
203
+ type: "base64";
204
+ data: string;
205
+ mediaType: string;
206
+ } | {
207
+ type: "http";
208
+ url: string;
209
+ } | undefined;
210
+ } | {
211
+ pending?: boolean | undefined;
212
+ type: "reference";
213
+ reference: Ref<Expando>;
214
+ } | {
215
+ pending?: boolean | undefined;
216
+ type: "transcription";
217
+ text: string;
218
+ started: string;
219
+ })[];
220
+ properties?: {
221
+ [x: string]: any;
222
+ } | undefined;
223
+ }>>>;
351
224
  }, import("@dxos/echo-schema").TypedObjectOptions>>>>;
352
- assistantChatQueue: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
353
- }>>;
354
- export type DocumentType = S.Schema.Type<typeof DocumentType>;
225
+ assistantChatQueue: Schema.optional<import("@dxos/echo-schema").Ref$<Expando>>;
226
+ }>, {}>;
227
+ export type DocumentType = Schema.Schema.Type<typeof DocumentType>;
355
228
  export declare const createDocument: ({ name, content }: {
356
229
  name: string;
357
230
  content: string;
@@ -359,25 +232,27 @@ export declare const createDocument: ({ name, content }: {
359
232
  readonly id: string;
360
233
  name?: string | undefined;
361
234
  fallbackName?: string | undefined;
362
- content: Ref<import("@dxos/echo-schema").TypedObjectFields<{
363
- content: typeof S.String;
364
- }, import("@dxos/echo-schema").TypedObjectOptions>>;
235
+ content: Ref<{
236
+ readonly id: string;
237
+ content: string;
238
+ }>;
365
239
  threads: Ref<import("@dxos/echo-schema").TypedObjectFields<{
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$<{
240
+ name: Schema.optional<typeof Schema.String>;
241
+ anchor: Schema.optional<typeof Schema.String>;
242
+ status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
243
+ messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
244
+ readonly id: string;
245
+ created: string;
246
+ sender: {
247
+ name?: string | undefined;
248
+ contact?: Ref<{
374
249
  readonly id: string;
375
250
  fields?: {
376
251
  readonly value: string;
377
252
  readonly label: string;
378
253
  readonly category?: string | undefined;
379
254
  }[] | undefined;
380
- organization?: Ref<{
255
+ organization?: import("@dxos/echo-schema").Ref<{
381
256
  readonly id: string;
382
257
  description?: string | undefined;
383
258
  name?: string | undefined;
@@ -420,115 +295,49 @@ export declare const createDocument: ({ name, content }: {
420
295
  readonly value: string;
421
296
  readonly label?: string | undefined;
422
297
  }[] | undefined;
423
- birthday?: {
424
- toString: () => string;
425
- toDateString: () => string;
426
- toTimeString: () => string;
427
- toLocaleString: {
428
- (): string;
429
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
430
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
431
- };
432
- toLocaleDateString: {
433
- (): string;
434
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
435
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
436
- };
437
- toLocaleTimeString: {
438
- (): string;
439
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
440
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
441
- };
442
- valueOf: () => number;
443
- getTime: () => number;
444
- getFullYear: () => number;
445
- getUTCFullYear: () => number;
446
- getMonth: () => number;
447
- getUTCMonth: () => number;
448
- getDate: () => number;
449
- getUTCDate: () => number;
450
- getDay: () => number;
451
- getUTCDay: () => number;
452
- getHours: () => number;
453
- getUTCHours: () => number;
454
- getMinutes: () => number;
455
- getUTCMinutes: () => number;
456
- getSeconds: () => number;
457
- getUTCSeconds: () => number;
458
- getMilliseconds: () => number;
459
- getUTCMilliseconds: () => number;
460
- getTimezoneOffset: () => number;
461
- setTime: (time: number) => number;
462
- setMilliseconds: (ms: number) => number;
463
- setUTCMilliseconds: (ms: number) => number;
464
- setSeconds: (sec: number, ms?: number) => number;
465
- setUTCSeconds: (sec: number, ms?: number) => number;
466
- setMinutes: (min: number, sec?: number, ms?: number) => number;
467
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
468
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
469
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
470
- setDate: (date: number) => number;
471
- setUTCDate: (date: number) => number;
472
- setMonth: (month: number, date?: number) => number;
473
- setUTCMonth: (month: number, date?: number) => number;
474
- setFullYear: (year: number, month?: number, date?: number) => number;
475
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
476
- toUTCString: () => string;
477
- toISOString: () => string;
478
- toJSON: (key?: any) => string;
479
- [Symbol.toPrimitive]: {
480
- (hint: "default"): string;
481
- (hint: "string"): string;
482
- (hint: "number"): number;
483
- (hint: string): string | number;
484
- };
485
- } | undefined;
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>>>>;
298
+ birthday?: string | undefined;
299
+ }> | undefined;
300
+ identityDid?: string | undefined;
301
+ identityKey?: string | undefined;
302
+ email?: string | undefined;
303
+ role?: "user" | "assistant" | undefined;
304
+ };
305
+ blocks: ({
306
+ pending?: boolean | undefined;
307
+ type: "text";
308
+ disposition?: string | undefined;
309
+ text: string;
310
+ } | {
311
+ pending?: boolean | undefined;
312
+ type: "json";
313
+ disposition?: string | undefined;
314
+ data: string;
315
+ } | {
316
+ pending?: boolean | undefined;
317
+ id?: string | undefined;
318
+ type: "image";
319
+ source?: {
320
+ type: "base64";
321
+ data: string;
322
+ mediaType: string;
323
+ } | {
324
+ type: "http";
325
+ url: string;
326
+ } | undefined;
327
+ } | {
328
+ pending?: boolean | undefined;
329
+ type: "reference";
330
+ reference: Ref<Expando>;
331
+ } | {
332
+ pending?: boolean | undefined;
333
+ type: "transcription";
334
+ text: string;
335
+ started: string;
336
+ })[];
337
+ properties?: {
338
+ [x: string]: any;
339
+ } | undefined;
340
+ }>>>;
532
341
  }, import("@dxos/echo-schema").TypedObjectOptions>>[];
533
342
  assistantChatQueue?: Ref<Expando> | undefined;
534
343
  }>;