@dxos/plugin-thread 0.8.3-main.7f5a14c → 0.8.3

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 (120) hide show
  1. package/dist/lib/browser/{ChannelContainer-KWXUKR5Q.mjs → ChannelContainer-PKFBVENP.mjs} +3 -3
  2. package/dist/lib/browser/{app-graph-builder-CBWNZCXB.mjs → app-graph-builder-OY7R7EJP.mjs} +2 -2
  3. package/dist/lib/browser/chunk-6NBVNXTM.mjs +21 -0
  4. package/dist/lib/browser/{chunk-WDOQXTI2.mjs → chunk-AEXWNS6Z.mjs} +5 -3
  5. package/dist/lib/browser/chunk-AEXWNS6Z.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-3EYX6CV7.mjs → chunk-PG5CTFKK.mjs} +47 -43
  7. package/dist/lib/browser/chunk-PG5CTFKK.mjs.map +7 -0
  8. package/dist/lib/browser/{chunk-5IRYNA5K.mjs → chunk-XZKBN3NS.mjs} +30 -30
  9. package/dist/lib/browser/chunk-XZKBN3NS.mjs.map +7 -0
  10. package/dist/lib/browser/index.mjs +33 -7
  11. package/dist/lib/browser/index.mjs.map +3 -3
  12. package/dist/lib/browser/{intent-resolver-I37YU7K3.mjs → intent-resolver-FK2MDVDT.mjs} +19 -22
  13. package/dist/lib/browser/intent-resolver-FK2MDVDT.mjs.map +7 -0
  14. package/dist/lib/browser/{markdown-LS3XO2KB.mjs → markdown-TE5SWWNJ.mjs} +7 -8
  15. package/dist/lib/browser/markdown-TE5SWWNJ.mjs.map +7 -0
  16. package/dist/lib/browser/meta.json +1 -1
  17. package/dist/lib/browser/{react-root-KNCKPHGS.mjs → react-root-NK3A4VG7.mjs} +5 -5
  18. package/dist/lib/browser/{react-surface-ASWIBD7H.mjs → react-surface-VXUJKSOG.mjs} +5 -5
  19. package/dist/lib/browser/{settings-ZUY7OX24.mjs → settings-RB2RSLXV.mjs} +2 -2
  20. package/dist/lib/browser/types/index.mjs +1 -1
  21. package/dist/lib/node/{ChannelContainer-MA5CFESJ.cjs → ChannelContainer-YS5YT2ML.cjs} +8 -8
  22. package/dist/lib/node/{ChannelContainer-MA5CFESJ.cjs.map → ChannelContainer-YS5YT2ML.cjs.map} +2 -2
  23. package/dist/lib/node/{app-graph-builder-K5OAVYI6.cjs → app-graph-builder-PBHJNDQY.cjs} +9 -9
  24. package/dist/lib/node/{chunk-3YYSLZE4.cjs → chunk-ERG7G6FF.cjs} +10 -10
  25. package/dist/lib/node/{chunk-WCQKISL5.cjs → chunk-IP533AMV.cjs} +64 -60
  26. package/dist/lib/node/chunk-IP533AMV.cjs.map +7 -0
  27. package/dist/lib/node/{chunk-U4SZUERU.cjs → chunk-UM36TPCT.cjs} +33 -33
  28. package/dist/lib/node/chunk-UM36TPCT.cjs.map +7 -0
  29. package/dist/lib/node/{chunk-TKHJVC2C.cjs → chunk-ZGDN3XBR.cjs} +8 -6
  30. package/dist/lib/node/chunk-ZGDN3XBR.cjs.map +7 -0
  31. package/dist/lib/node/index.cjs +42 -16
  32. package/dist/lib/node/index.cjs.map +3 -3
  33. package/dist/lib/node/{intent-resolver-2TX6HSOL.cjs → intent-resolver-SYSJ5SJG.cjs} +36 -39
  34. package/dist/lib/node/intent-resolver-SYSJ5SJG.cjs.map +7 -0
  35. package/dist/lib/node/{markdown-GNFW2XDO.cjs → markdown-GQIPJS2F.cjs} +13 -14
  36. package/dist/lib/node/markdown-GQIPJS2F.cjs.map +7 -0
  37. package/dist/lib/node/meta.json +1 -1
  38. package/dist/lib/node/{react-root-BKOXG5AC.cjs → react-root-6HHDMULJ.cjs} +9 -9
  39. package/dist/lib/node/{react-surface-Q5DWX3UO.cjs → react-surface-NBH42NN2.cjs} +18 -18
  40. package/dist/lib/node/{settings-5O5V2NOE.cjs → settings-4LQSFEDK.cjs} +6 -6
  41. package/dist/lib/node/types/index.cjs +6 -6
  42. package/dist/lib/node/types/index.cjs.map +1 -1
  43. package/dist/lib/node-esm/{ChannelContainer-VGVEAUAQ.mjs → ChannelContainer-O4QJII2P.mjs} +3 -3
  44. package/dist/lib/node-esm/{app-graph-builder-UWJQE534.mjs → app-graph-builder-BAHBHYWI.mjs} +2 -2
  45. package/dist/lib/node-esm/{chunk-KP2JBSWF.mjs → chunk-2RNIPFDA.mjs} +30 -30
  46. package/dist/lib/node-esm/chunk-2RNIPFDA.mjs.map +7 -0
  47. package/dist/lib/node-esm/{chunk-EHDXOE5R.mjs → chunk-O63QJPQX.mjs} +7 -7
  48. package/dist/lib/node-esm/{chunk-J323VQ4P.mjs → chunk-UJMPYKT3.mjs} +5 -3
  49. package/dist/lib/node-esm/chunk-UJMPYKT3.mjs.map +7 -0
  50. package/dist/lib/node-esm/{chunk-6EGLDARC.mjs → chunk-UZWVVFT3.mjs} +47 -43
  51. package/dist/lib/node-esm/chunk-UZWVVFT3.mjs.map +7 -0
  52. package/dist/lib/node-esm/index.mjs +33 -7
  53. package/dist/lib/node-esm/index.mjs.map +3 -3
  54. package/dist/lib/node-esm/{intent-resolver-FHRK77IS.mjs → intent-resolver-BU73VYW3.mjs} +19 -22
  55. package/dist/lib/node-esm/intent-resolver-BU73VYW3.mjs.map +7 -0
  56. package/dist/lib/node-esm/{markdown-HBGB3UPJ.mjs → markdown-HJUWNBLS.mjs} +7 -8
  57. package/dist/lib/node-esm/markdown-HJUWNBLS.mjs.map +7 -0
  58. package/dist/lib/node-esm/meta.json +1 -1
  59. package/dist/lib/node-esm/{react-root-UPDDCRBV.mjs → react-root-RUXOAQNW.mjs} +5 -5
  60. package/dist/lib/node-esm/{react-surface-LU3CZDC4.mjs → react-surface-ELXFYKP6.mjs} +5 -5
  61. package/dist/lib/node-esm/{settings-KFEFSAYG.mjs → settings-EA7DFSM6.mjs} +2 -2
  62. package/dist/lib/node-esm/types/index.mjs +1 -1
  63. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  64. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  65. package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
  66. package/dist/types/src/components/CommentsContainer.d.ts +1 -1
  67. package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
  68. package/dist/types/src/components/ThreadComplementary.d.ts.map +1 -1
  69. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  70. package/dist/types/src/translations.d.ts +128 -2
  71. package/dist/types/src/translations.d.ts.map +1 -1
  72. package/dist/types/src/types/schema.d.ts +117 -301
  73. package/dist/types/src/types/schema.d.ts.map +1 -1
  74. package/dist/types/src/types/types.d.ts +153 -828
  75. package/dist/types/src/types/types.d.ts.map +1 -1
  76. package/package.json +42 -42
  77. package/src/ThreadPlugin.tsx +26 -3
  78. package/src/capabilities/intent-resolver.ts +17 -18
  79. package/src/components/Call/Toolbar.tsx +1 -1
  80. package/src/components/ChannelContainer.tsx +18 -22
  81. package/src/components/CommentContainer.tsx +2 -2
  82. package/src/components/Comments.stories.tsx +12 -3
  83. package/src/components/CommentsContainer.tsx +21 -24
  84. package/src/components/ThreadComplementary.tsx +15 -16
  85. package/src/extensions/threads.ts +5 -6
  86. package/src/translations.ts +7 -2
  87. package/src/types/schema.ts +8 -4
  88. package/dist/lib/browser/chunk-3EYX6CV7.mjs.map +0 -7
  89. package/dist/lib/browser/chunk-5IRYNA5K.mjs.map +0 -7
  90. package/dist/lib/browser/chunk-FWBJHKRW.mjs +0 -21
  91. package/dist/lib/browser/chunk-WDOQXTI2.mjs.map +0 -7
  92. package/dist/lib/browser/intent-resolver-I37YU7K3.mjs.map +0 -7
  93. package/dist/lib/browser/markdown-LS3XO2KB.mjs.map +0 -7
  94. package/dist/lib/node/chunk-TKHJVC2C.cjs.map +0 -7
  95. package/dist/lib/node/chunk-U4SZUERU.cjs.map +0 -7
  96. package/dist/lib/node/chunk-WCQKISL5.cjs.map +0 -7
  97. package/dist/lib/node/intent-resolver-2TX6HSOL.cjs.map +0 -7
  98. package/dist/lib/node/markdown-GNFW2XDO.cjs.map +0 -7
  99. package/dist/lib/node-esm/chunk-6EGLDARC.mjs.map +0 -7
  100. package/dist/lib/node-esm/chunk-J323VQ4P.mjs.map +0 -7
  101. package/dist/lib/node-esm/chunk-KP2JBSWF.mjs.map +0 -7
  102. package/dist/lib/node-esm/intent-resolver-FHRK77IS.mjs.map +0 -7
  103. package/dist/lib/node-esm/markdown-HBGB3UPJ.mjs.map +0 -7
  104. /package/dist/lib/browser/{ChannelContainer-KWXUKR5Q.mjs.map → ChannelContainer-PKFBVENP.mjs.map} +0 -0
  105. /package/dist/lib/browser/{app-graph-builder-CBWNZCXB.mjs.map → app-graph-builder-OY7R7EJP.mjs.map} +0 -0
  106. /package/dist/lib/browser/{chunk-FWBJHKRW.mjs.map → chunk-6NBVNXTM.mjs.map} +0 -0
  107. /package/dist/lib/browser/{react-root-KNCKPHGS.mjs.map → react-root-NK3A4VG7.mjs.map} +0 -0
  108. /package/dist/lib/browser/{react-surface-ASWIBD7H.mjs.map → react-surface-VXUJKSOG.mjs.map} +0 -0
  109. /package/dist/lib/browser/{settings-ZUY7OX24.mjs.map → settings-RB2RSLXV.mjs.map} +0 -0
  110. /package/dist/lib/node/{app-graph-builder-K5OAVYI6.cjs.map → app-graph-builder-PBHJNDQY.cjs.map} +0 -0
  111. /package/dist/lib/node/{chunk-3YYSLZE4.cjs.map → chunk-ERG7G6FF.cjs.map} +0 -0
  112. /package/dist/lib/node/{react-root-BKOXG5AC.cjs.map → react-root-6HHDMULJ.cjs.map} +0 -0
  113. /package/dist/lib/node/{react-surface-Q5DWX3UO.cjs.map → react-surface-NBH42NN2.cjs.map} +0 -0
  114. /package/dist/lib/node/{settings-5O5V2NOE.cjs.map → settings-4LQSFEDK.cjs.map} +0 -0
  115. /package/dist/lib/node-esm/{ChannelContainer-VGVEAUAQ.mjs.map → ChannelContainer-O4QJII2P.mjs.map} +0 -0
  116. /package/dist/lib/node-esm/{app-graph-builder-UWJQE534.mjs.map → app-graph-builder-BAHBHYWI.mjs.map} +0 -0
  117. /package/dist/lib/node-esm/{chunk-EHDXOE5R.mjs.map → chunk-O63QJPQX.mjs.map} +0 -0
  118. /package/dist/lib/node-esm/{react-root-UPDDCRBV.mjs.map → react-root-RUXOAQNW.mjs.map} +0 -0
  119. /package/dist/lib/node-esm/{react-surface-LU3CZDC4.mjs.map → react-surface-ELXFYKP6.mjs.map} +0 -0
  120. /package/dist/lib/node-esm/{settings-KFEFSAYG.mjs.map → settings-EA7DFSM6.mjs.map} +0 -0
@@ -1,317 +1,133 @@
1
1
  import { Schema } from 'effect';
2
2
  import { Type } from '@dxos/echo';
3
3
  export declare const ThreadStatus: Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>;
4
- export declare const ThreadType: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
4
+ declare const _ThreadType: Type.obj<Schema.Struct<{
5
5
  name: Schema.optional<typeof Schema.String>;
6
6
  status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
7
- messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
8
- readonly id: string;
9
- created: string;
10
- sender: {
11
- name?: string | undefined;
12
- email?: string | undefined;
13
- contact?: import("@dxos/echo-schema").Ref<{
14
- readonly id: string;
15
- fields?: {
16
- readonly value: string;
17
- readonly label: string;
18
- readonly category?: string | undefined;
19
- }[] | undefined;
20
- organization?: import("@dxos/echo-schema").Ref<{
21
- readonly id: string;
7
+ messages: Schema.mutable<Schema.Array$<Type.ref<Type.obj<Schema.Struct<{
8
+ id: import("@dxos/keys").ObjectIdClass;
9
+ created: import("effect/Schema").SchemaClass<string, string, never>;
10
+ sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
11
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
12
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
14
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
15
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
16
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
22
17
  description?: string | undefined;
18
+ id: string;
23
19
  name?: string | undefined;
24
20
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
25
21
  image?: string | undefined;
26
22
  website?: string | undefined;
27
- }> | undefined;
28
- image?: string | undefined;
29
- fullName?: string | undefined;
30
- preferredName?: string | undefined;
31
- nickname?: string | undefined;
32
- jobTitle?: string | undefined;
33
- department?: string | undefined;
34
- notes?: string | undefined;
35
- emails?: {
36
- readonly value: string;
37
- readonly label?: string | undefined;
38
- }[] | undefined;
39
- identities?: {
40
- readonly value: string;
41
- readonly label?: string | undefined;
42
- }[] | undefined;
43
- phoneNumbers?: {
44
- readonly value: string;
45
- readonly label?: string | undefined;
46
- }[] | undefined;
47
- addresses?: {
48
- readonly value: {
49
- readonly street?: string | undefined;
50
- readonly extended?: string | undefined;
51
- readonly locality?: string | undefined;
52
- readonly region?: string | undefined;
53
- readonly postalCode?: string | undefined;
54
- readonly postOfficeBoxNumber?: string | undefined;
55
- readonly country?: string | undefined;
56
- };
57
- readonly label?: string | undefined;
58
- }[] | undefined;
59
- urls?: {
60
- readonly value: string;
61
- readonly label?: string | undefined;
62
- }[] | undefined;
63
- birthday?: string | undefined;
64
- }> | undefined;
65
- identityDid?: string | undefined;
66
- identityKey?: string | undefined;
67
- role?: "user" | "assistant" | undefined;
68
- };
69
- blocks: ({
70
- pending?: boolean | undefined;
71
- text: string;
72
- type: "text";
73
- disposition?: string | undefined;
74
- } | {
75
- pending?: boolean | undefined;
76
- data: string;
77
- type: "json";
78
- disposition?: string | undefined;
79
- } | {
80
- pending?: boolean | undefined;
81
- id?: string | undefined;
82
- source?: {
83
- data: string;
84
- type: "base64";
85
- mediaType: string;
86
- } | {
87
- url: string;
88
- type: "http";
89
- } | undefined;
90
- type: "image";
91
- } | {
92
- pending?: boolean | undefined;
93
- type: "reference";
94
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
95
- } | {
96
- pending?: boolean | undefined;
97
- text: string;
98
- type: "transcription";
99
- started: string;
100
- })[];
101
- properties?: {
102
- [x: string]: any;
103
- } | undefined;
104
- }>>>;
105
- }>, {}>;
106
- export type ThreadType = Schema.Schema.Type<typeof ThreadType>;
107
- export declare const ChannelType: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
23
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
24
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
25
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
26
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
27
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
28
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
29
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
30
+ }>>>>;
31
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
32
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
33
+ value: typeof import("effect/Schema").String;
34
+ }>>>>;
35
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
36
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
37
+ value: typeof import("effect/Schema").String;
38
+ }>>>>;
39
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
40
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
41
+ value: import("effect/Schema").Struct<{
42
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
45
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
46
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
47
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
48
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
49
+ }>;
50
+ }>>>>;
51
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
52
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
53
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
54
+ }>>>>;
55
+ birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
56
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
57
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
58
+ label: typeof import("effect/Schema").String;
59
+ value: typeof import("effect/Schema").String;
60
+ }>>>>;
61
+ }>>>>;
62
+ identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
+ identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
64
+ email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
65
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
66
+ role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
67
+ }>>;
68
+ 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<{
69
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
70
+ }>, import("effect/Schema").Struct<{
71
+ type: import("effect/Schema").Literal<["text"]>;
72
+ disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
73
+ text: typeof import("effect/Schema").String;
74
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
75
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
76
+ }>, import("effect/Schema").Struct<{
77
+ type: import("effect/Schema").Literal<["json"]>;
78
+ disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
79
+ data: typeof import("effect/Schema").String;
80
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
81
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
82
+ }>, import("effect/Schema").Struct<{
83
+ type: import("effect/Schema").Literal<["image"]>;
84
+ id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
85
+ source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
86
+ type: import("effect/Schema").Literal<["base64"]>;
87
+ mediaType: typeof import("effect/Schema").String;
88
+ data: typeof import("effect/Schema").String;
89
+ }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
90
+ type: import("effect/Schema").Literal<["http"]>;
91
+ url: typeof import("effect/Schema").String;
92
+ }>>]>>;
93
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
94
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
95
+ }>, import("effect/Schema").Struct<{
96
+ type: import("effect/Schema").Literal<["reference"]>;
97
+ reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
98
+ [x: string]: any;
99
+ id: string;
100
+ }, never>>;
101
+ }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
102
+ pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
103
+ }>, import("effect/Schema").Struct<{
104
+ type: import("effect/Schema").Literal<["transcription"]>;
105
+ started: typeof import("effect/Schema").String;
106
+ text: typeof import("effect/Schema").String;
107
+ }>>>]>>>;
108
+ properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
109
+ }>>>>>;
110
+ }>>;
111
+ export interface ThreadType extends Schema.Schema.Type<typeof _ThreadType> {
112
+ }
113
+ export declare const ThreadType: Type.obj<Schema.Schema<ThreadType, Schema.Schema.Encoded<typeof _ThreadType>, never>>;
114
+ declare const _ChannelType: Type.obj<Schema.Struct<{
108
115
  name: Schema.optional<typeof Schema.String>;
109
- defaultThread: import("@dxos/echo-schema").Ref$<{
110
- readonly id: string;
116
+ defaultThread: Type.ref<Type.obj<Schema.Schema<ThreadType, {
117
+ id: string;
118
+ messages: import("@dxos/echo-protocol").EncodedReference[];
111
119
  name?: string | undefined;
112
120
  status?: "staged" | "active" | "resolved" | undefined;
113
- messages: import("@dxos/echo-schema").Ref<{
114
- readonly id: string;
115
- created: string;
116
- sender: {
117
- name?: string | undefined;
118
- email?: string | undefined;
119
- contact?: import("@dxos/echo-schema").Ref<{
120
- readonly id: string;
121
- fields?: {
122
- readonly value: string;
123
- readonly label: string;
124
- readonly category?: string | undefined;
125
- }[] | undefined;
126
- organization?: import("@dxos/echo-schema").Ref<{
127
- readonly id: string;
128
- description?: string | undefined;
129
- name?: string | undefined;
130
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
131
- image?: string | undefined;
132
- website?: string | undefined;
133
- }> | undefined;
134
- image?: string | undefined;
135
- fullName?: string | undefined;
136
- preferredName?: string | undefined;
137
- nickname?: string | undefined;
138
- jobTitle?: string | undefined;
139
- department?: string | undefined;
140
- notes?: string | undefined;
141
- emails?: {
142
- readonly value: string;
143
- readonly label?: string | undefined;
144
- }[] | undefined;
145
- identities?: {
146
- readonly value: string;
147
- readonly label?: string | undefined;
148
- }[] | undefined;
149
- phoneNumbers?: {
150
- readonly value: string;
151
- readonly label?: string | undefined;
152
- }[] | undefined;
153
- addresses?: {
154
- readonly value: {
155
- readonly street?: string | undefined;
156
- readonly extended?: string | undefined;
157
- readonly locality?: string | undefined;
158
- readonly region?: string | undefined;
159
- readonly postalCode?: string | undefined;
160
- readonly postOfficeBoxNumber?: string | undefined;
161
- readonly country?: string | undefined;
162
- };
163
- readonly label?: string | undefined;
164
- }[] | undefined;
165
- urls?: {
166
- readonly value: string;
167
- readonly label?: string | undefined;
168
- }[] | undefined;
169
- birthday?: string | undefined;
170
- }> | undefined;
171
- identityDid?: string | undefined;
172
- identityKey?: string | undefined;
173
- role?: "user" | "assistant" | undefined;
174
- };
175
- blocks: ({
176
- pending?: boolean | undefined;
177
- text: string;
178
- type: "text";
179
- disposition?: string | undefined;
180
- } | {
181
- pending?: boolean | undefined;
182
- data: string;
183
- type: "json";
184
- disposition?: string | undefined;
185
- } | {
186
- pending?: boolean | undefined;
187
- id?: string | undefined;
188
- source?: {
189
- data: string;
190
- type: "base64";
191
- mediaType: string;
192
- } | {
193
- url: string;
194
- type: "http";
195
- } | undefined;
196
- type: "image";
197
- } | {
198
- pending?: boolean | undefined;
199
- type: "reference";
200
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
201
- } | {
202
- pending?: boolean | undefined;
203
- text: string;
204
- type: "transcription";
205
- started: string;
206
- })[];
207
- properties?: {
208
- [x: string]: any;
209
- } | undefined;
210
- }>[];
211
- }>;
212
- threads: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
213
- readonly id: string;
121
+ }, never>>>;
122
+ threads: Schema.mutable<Schema.Array$<Type.ref<Type.obj<Schema.Schema<ThreadType, {
123
+ id: string;
124
+ messages: import("@dxos/echo-protocol").EncodedReference[];
214
125
  name?: string | undefined;
215
126
  status?: "staged" | "active" | "resolved" | undefined;
216
- messages: import("@dxos/echo-schema").Ref<{
217
- readonly id: string;
218
- created: string;
219
- sender: {
220
- name?: string | undefined;
221
- email?: string | undefined;
222
- contact?: import("@dxos/echo-schema").Ref<{
223
- readonly id: string;
224
- fields?: {
225
- readonly value: string;
226
- readonly label: string;
227
- readonly category?: string | undefined;
228
- }[] | undefined;
229
- organization?: import("@dxos/echo-schema").Ref<{
230
- readonly id: string;
231
- description?: string | undefined;
232
- name?: string | undefined;
233
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
234
- image?: string | undefined;
235
- website?: string | undefined;
236
- }> | undefined;
237
- image?: string | undefined;
238
- fullName?: string | undefined;
239
- preferredName?: string | undefined;
240
- nickname?: string | undefined;
241
- jobTitle?: string | undefined;
242
- department?: string | undefined;
243
- notes?: string | undefined;
244
- emails?: {
245
- readonly value: string;
246
- readonly label?: string | undefined;
247
- }[] | undefined;
248
- identities?: {
249
- readonly value: string;
250
- readonly label?: string | undefined;
251
- }[] | undefined;
252
- phoneNumbers?: {
253
- readonly value: string;
254
- readonly label?: string | undefined;
255
- }[] | undefined;
256
- addresses?: {
257
- readonly value: {
258
- readonly street?: string | undefined;
259
- readonly extended?: string | undefined;
260
- readonly locality?: string | undefined;
261
- readonly region?: string | undefined;
262
- readonly postalCode?: string | undefined;
263
- readonly postOfficeBoxNumber?: string | undefined;
264
- readonly country?: string | undefined;
265
- };
266
- readonly label?: string | undefined;
267
- }[] | undefined;
268
- urls?: {
269
- readonly value: string;
270
- readonly label?: string | undefined;
271
- }[] | undefined;
272
- birthday?: string | undefined;
273
- }> | undefined;
274
- identityDid?: string | undefined;
275
- identityKey?: string | undefined;
276
- role?: "user" | "assistant" | undefined;
277
- };
278
- blocks: ({
279
- pending?: boolean | undefined;
280
- text: string;
281
- type: "text";
282
- disposition?: string | undefined;
283
- } | {
284
- pending?: boolean | undefined;
285
- data: string;
286
- type: "json";
287
- disposition?: string | undefined;
288
- } | {
289
- pending?: boolean | undefined;
290
- id?: string | undefined;
291
- source?: {
292
- data: string;
293
- type: "base64";
294
- mediaType: string;
295
- } | {
296
- url: string;
297
- type: "http";
298
- } | undefined;
299
- type: "image";
300
- } | {
301
- pending?: boolean | undefined;
302
- type: "reference";
303
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
304
- } | {
305
- pending?: boolean | undefined;
306
- text: string;
307
- type: "transcription";
308
- started: string;
309
- })[];
310
- properties?: {
311
- [x: string]: any;
312
- } | undefined;
313
- }>[];
314
- }>>>;
315
- }>, {}>;
316
- export type ChannelType = Schema.Schema.Type<typeof ChannelType>;
127
+ }, never>>>>>;
128
+ }>>;
129
+ export interface ChannelType extends Schema.Schema.Type<typeof _ChannelType> {
130
+ }
131
+ export declare const ChannelType: Type.obj<Schema.Schema<ChannelType, Schema.Schema.Encoded<typeof _ChannelType>, never>>;
132
+ export {};
317
133
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,eAAO,MAAM,YAAY,sGAIxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;qCAc05T,CAAC;;;;+BAAgM,CAAC;wBAA8C,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;kCAAye,CAAC;;;;kCAAoK,CAAC;;;;kCAAsK,CAAC;;;;uCAAkK,CAAC;yCAA+D,CAAC;yCAA+D,CAAC;uCAA6D,CAAC;2CAAiE,CAAC;oDAA0E,CAAC;wCAA8D,CAAC;;kCAA+E,CAAC;;;;kCAA8J,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAVj3X,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;yCAOy5T,CAAC;;;;mCAAgM,CAAC;4BAA8C,CAAC;8BAAgD,CAAC;6BAAkG,CAAC;+BAAiD,CAAC;;;;;;;;;;;sCAAye,CAAC;;;;sCAAoK,CAAC;;;;sCAAsK,CAAC;;;;2CAAkK,CAAC;6CAA+D,CAAC;6CAA+D,CAAC;2CAA6D,CAAC;+CAAiE,CAAC;wDAA0E,CAAC;4CAA8D,CAAC;;sCAA+E,CAAC;;;;sCAA8J,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAAzgE,CAAC;;;;mCAAgM,CAAC;4BAA8C,CAAC;8BAAgD,CAAC;6BAAkG,CAAC;+BAAiD,CAAC;;;;;;;;;;;sCAAye,CAAC;;;;sCAAoK,CAAC;;;;sCAAsK,CAAC;;;;2CAAkK,CAAC;6CAA+D,CAAC;6CAA+D,CAAC;2CAA6D,CAAC;+CAAiE,CAAC;wDAA0E,CAAC;4CAA8D,CAAC;;sCAA+E,CAAC;;;;sCAA8J,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAFh3X,CAAC;AAC3E,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,eAAO,MAAM,YAAY,sGAIxB,CAAC;AAEF,QAAA,MAAM,WAAW;;;;;;;;;;;;;+BAkBw2kB,CAAC;;wBAA8E,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAdtklB,CAAC;AAC1E,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC;CAAG;AAC7E,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,EAAE,KAAK,CAAC,CAChG,CAAC;AAEd,QAAA,MAAM,YAAY;;;;;;;;;;;;;;GAKwD,CAAC;AAC3E,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC;CAAG;AAC/E,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,YAAY,CAAC,EAAE,KAAK,CAAC,CAClG,CAAC"}