@dxos/assistant-toolkit 0.8.4-main.ae835ea → 0.8.4-main.bc674ce

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 (204) hide show
  1. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  2. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +1091 -692
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/testing/index.mjs +43 -0
  7. package/dist/lib/browser/testing/index.mjs.map +7 -0
  8. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  9. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +1090 -692
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/testing/index.mjs +44 -0
  14. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  15. package/dist/types/src/blueprints/design/design-blueprint.d.ts +17 -3
  16. package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +1 -1
  17. package/dist/types/src/blueprints/design/index.d.ts +1 -1
  18. package/dist/types/src/blueprints/design/index.d.ts.map +1 -1
  19. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +13 -13
  20. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +1 -1
  21. package/dist/types/src/blueprints/discord/index.d.ts +1 -1
  22. package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
  23. package/dist/types/src/blueprints/linear/index.d.ts +1 -1
  24. package/dist/types/src/blueprints/linear/index.d.ts.map +1 -1
  25. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +13 -13
  26. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +1 -1
  27. package/dist/types/src/blueprints/planning/index.d.ts +1 -1
  28. package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
  29. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +17 -3
  30. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +1 -1
  31. package/dist/types/src/blueprints/research/index.d.ts +1 -1
  32. package/dist/types/src/blueprints/research/index.d.ts.map +1 -1
  33. package/dist/types/src/blueprints/research/research-blueprint.d.ts +17 -3
  34. package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +1 -1
  35. package/dist/types/src/blueprints/testing.d.ts +2 -2
  36. package/dist/types/src/blueprints/testing.d.ts.map +1 -1
  37. package/dist/types/src/blueprints/websearch/index.d.ts +1 -1
  38. package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
  39. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +17 -3
  40. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +1 -1
  41. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts +1 -0
  42. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +1 -1
  43. package/dist/types/src/{functions/research → crud}/graph.d.ts +14 -11
  44. package/dist/types/src/crud/graph.d.ts.map +1 -0
  45. package/dist/types/src/crud/graph.test.d.ts.map +1 -0
  46. package/dist/types/src/crud/index.d.ts +2 -0
  47. package/dist/types/src/crud/index.d.ts.map +1 -0
  48. package/dist/types/src/functions/agent/prompt.d.ts +73 -8
  49. package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
  50. package/dist/types/src/functions/discord/fetch-messages.d.ts +1 -1
  51. package/dist/types/src/functions/discord/index.d.ts +1 -1
  52. package/dist/types/src/functions/discord/index.d.ts.map +1 -1
  53. package/dist/types/src/functions/document/index.d.ts +3 -2
  54. package/dist/types/src/functions/document/index.d.ts.map +1 -1
  55. package/dist/types/src/functions/document/read.d.ts +1 -1
  56. package/dist/types/src/functions/document/read.d.ts.map +1 -1
  57. package/dist/types/src/functions/document/update.d.ts +1 -1
  58. package/dist/types/src/functions/document/update.d.ts.map +1 -1
  59. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +126 -125
  60. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
  61. package/dist/types/src/functions/entity-extraction/index.d.ts +126 -125
  62. package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
  63. package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +1 -0
  64. package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +1 -0
  65. package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +1 -0
  66. package/dist/types/src/functions/exa/data/index.d.ts.map +1 -0
  67. package/dist/types/src/functions/exa/exa.d.ts +1 -1
  68. package/dist/types/src/functions/exa/mock.d.ts +1 -1
  69. package/dist/types/src/functions/github/fetch-prs.d.ts +1 -1
  70. package/dist/types/src/functions/github/fetch-prs.d.ts.map +1 -1
  71. package/dist/types/src/functions/linear/index.d.ts +2 -2
  72. package/dist/types/src/functions/linear/index.d.ts.map +1 -1
  73. package/dist/types/src/functions/linear/sync-issues.d.ts +2 -2
  74. package/dist/types/src/functions/linear/sync-issues.d.ts.map +1 -1
  75. package/dist/types/src/functions/research/document-create.d.ts +9 -0
  76. package/dist/types/src/functions/research/document-create.d.ts.map +1 -0
  77. package/dist/types/src/functions/research/index.d.ts +8 -6
  78. package/dist/types/src/functions/research/index.d.ts.map +1 -1
  79. package/dist/types/src/functions/research/research-graph.d.ts +9 -8
  80. package/dist/types/src/functions/research/research-graph.d.ts.map +1 -1
  81. package/dist/types/src/functions/research/research.d.ts +4 -3
  82. package/dist/types/src/functions/research/research.d.ts.map +1 -1
  83. package/dist/types/src/functions/research/types.d.ts +2 -380
  84. package/dist/types/src/functions/research/types.d.ts.map +1 -1
  85. package/dist/types/src/functions/tasks/index.d.ts +2 -2
  86. package/dist/types/src/functions/tasks/index.d.ts.map +1 -1
  87. package/dist/types/src/functions/tasks/read.d.ts +1 -1
  88. package/dist/types/src/functions/tasks/read.d.ts.map +1 -1
  89. package/dist/types/src/functions/tasks/update.d.ts +1 -1
  90. package/dist/types/src/functions/tasks/update.d.ts.map +1 -1
  91. package/dist/types/src/index.d.ts +2 -1
  92. package/dist/types/src/index.d.ts.map +1 -1
  93. package/dist/types/src/initiative/Initiative.d.ts +84 -0
  94. package/dist/types/src/initiative/Initiative.d.ts.map +1 -0
  95. package/dist/types/src/initiative/InitiativeSchema.d.ts +19 -0
  96. package/dist/types/src/initiative/InitiativeSchema.d.ts.map +1 -0
  97. package/dist/types/src/initiative/functions/agent.d.ts +37 -0
  98. package/dist/types/src/initiative/functions/agent.d.ts.map +1 -0
  99. package/dist/types/src/initiative/functions/getContext.d.ts +17 -0
  100. package/dist/types/src/initiative/functions/getContext.d.ts.map +1 -0
  101. package/dist/types/src/initiative/functions/index.d.ts +4 -0
  102. package/dist/types/src/initiative/functions/index.d.ts.map +1 -0
  103. package/dist/types/src/{functions/research/create-document.d.ts → initiative/functions/update.d.ts} +3 -3
  104. package/dist/types/src/initiative/functions/update.d.ts.map +1 -0
  105. package/dist/types/src/initiative/index.d.ts +1 -0
  106. package/dist/types/src/initiative/index.d.ts.map +1 -0
  107. package/dist/types/src/initiative/initiative.test.d.ts +2 -0
  108. package/dist/types/src/initiative/initiative.test.d.ts.map +1 -0
  109. package/dist/types/src/sync/sync.d.ts +3 -3
  110. package/dist/types/src/sync/sync.d.ts.map +1 -1
  111. package/dist/types/src/testing/index.d.ts +1 -1
  112. package/dist/types/src/testing/index.d.ts.map +1 -1
  113. package/dist/types/src/testing/plugins.d.ts +19 -0
  114. package/dist/types/src/testing/plugins.d.ts.map +1 -0
  115. package/dist/types/src/toolkits/AssistantToolkit.d.ts +43 -0
  116. package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +1 -0
  117. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +2 -0
  118. package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +1 -0
  119. package/dist/types/src/toolkits/SystemToolkit.d.ts +99 -0
  120. package/dist/types/src/toolkits/SystemToolkit.d.ts.map +1 -0
  121. package/dist/types/src/toolkits/index.d.ts +3 -0
  122. package/dist/types/src/toolkits/index.d.ts.map +1 -0
  123. package/dist/types/tsconfig.tsbuildinfo +1 -1
  124. package/package.json +49 -33
  125. package/src/blueprints/design/design-blueprint.test.ts +17 -20
  126. package/src/blueprints/design/design-blueprint.ts +4 -6
  127. package/src/blueprints/design/index.ts +1 -1
  128. package/src/blueprints/discord/discord-blueprint.ts +4 -6
  129. package/src/blueprints/discord/index.ts +1 -1
  130. package/src/blueprints/linear/index.ts +1 -1
  131. package/src/blueprints/linear/linear-blueprint.ts +4 -6
  132. package/src/blueprints/planning/index.ts +1 -1
  133. package/src/blueprints/planning/planning-blueprint.test.ts +17 -20
  134. package/src/blueprints/planning/planning-blueprint.ts +4 -6
  135. package/src/blueprints/research/index.ts +1 -1
  136. package/src/blueprints/research/research-blueprint.ts +25 -19
  137. package/src/blueprints/testing.ts +2 -2
  138. package/src/blueprints/websearch/index.ts +2 -1
  139. package/src/blueprints/websearch/websearch-blueprint.ts +4 -6
  140. package/src/crud/graph.test.ts +46 -0
  141. package/src/{functions/research → crud}/graph.ts +32 -40
  142. package/src/crud/index.ts +5 -0
  143. package/src/experimental/feed.test.ts +12 -9
  144. package/src/functions/agent/prompt.ts +39 -22
  145. package/src/functions/discord/fetch-messages.test.ts +6 -7
  146. package/src/functions/discord/fetch-messages.ts +11 -10
  147. package/src/functions/document/index.ts +1 -0
  148. package/src/functions/document/read.ts +4 -3
  149. package/src/functions/document/update.ts +7 -4
  150. package/src/functions/entity-extraction/entity-extraction.conversations.json +6597 -1
  151. package/src/functions/entity-extraction/entity-extraction.test.ts +16 -23
  152. package/src/functions/entity-extraction/entity-extraction.ts +51 -31
  153. package/src/functions/exa/mock.ts +1 -1
  154. package/src/functions/github/fetch-prs.ts +3 -2
  155. package/src/functions/linear/linear.test.ts +18 -20
  156. package/src/functions/linear/sync-issues.ts +14 -12
  157. package/src/functions/research/document-create.ts +76 -0
  158. package/src/functions/research/index.ts +1 -2
  159. package/src/functions/research/research-graph.ts +13 -11
  160. package/src/functions/research/{instructions-research.tpl → research-instructions.tpl} +14 -6
  161. package/src/functions/research/research.conversations.json +1 -10714
  162. package/src/functions/research/research.test.ts +92 -161
  163. package/src/functions/research/research.ts +88 -54
  164. package/src/functions/research/types.ts +14 -12
  165. package/src/functions/tasks/read.ts +4 -3
  166. package/src/functions/tasks/update.ts +4 -3
  167. package/src/index.ts +2 -1
  168. package/src/initiative/Initiative.ts +99 -0
  169. package/src/initiative/InitiativeSchema.ts +37 -0
  170. package/src/initiative/functions/agent.ts +57 -0
  171. package/src/initiative/functions/getContext.ts +74 -0
  172. package/src/initiative/functions/index.ts +7 -0
  173. package/src/initiative/functions/update.ts +63 -0
  174. package/src/initiative/index.ts +3 -0
  175. package/src/initiative/initiative.conversations.json +1 -0
  176. package/src/initiative/initiative.test.ts +485 -0
  177. package/src/sync/sync.ts +38 -30
  178. package/src/testing/index.ts +1 -1
  179. package/src/{plugins.tsx → testing/plugins.tsx} +15 -15
  180. package/src/toolkits/AssistantToolkit.conversations.json +1 -0
  181. package/src/toolkits/AssistantToolkit.test.ts +94 -0
  182. package/src/toolkits/AssistantToolkit.ts +70 -0
  183. package/src/toolkits/SystemToolkit.ts +299 -0
  184. package/src/toolkits/index.ts +6 -0
  185. package/dist/types/src/functions/research/create-document.d.ts.map +0 -1
  186. package/dist/types/src/functions/research/graph.d.ts.map +0 -1
  187. package/dist/types/src/functions/research/graph.test.d.ts.map +0 -1
  188. package/dist/types/src/plugins.d.ts +0 -19
  189. package/dist/types/src/plugins.d.ts.map +0 -1
  190. package/dist/types/src/testing/data/exa-search-1748337321991.d.ts.map +0 -1
  191. package/dist/types/src/testing/data/exa-search-1748337331526.d.ts.map +0 -1
  192. package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +0 -1
  193. package/dist/types/src/testing/data/index.d.ts.map +0 -1
  194. package/src/functions/research/create-document.ts +0 -69
  195. package/src/functions/research/graph.test.ts +0 -69
  196. /package/dist/types/src/{functions/research → crud}/graph.test.d.ts +0 -0
  197. /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337321991.d.ts +0 -0
  198. /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337331526.d.ts +0 -0
  199. /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337344119.d.ts +0 -0
  200. /package/dist/types/src/{testing → functions/exa}/data/index.d.ts +0 -0
  201. /package/src/{testing → functions/exa}/data/exa-search-1748337321991.ts +0 -0
  202. /package/src/{testing → functions/exa}/data/exa-search-1748337331526.ts +0 -0
  203. /package/src/{testing → functions/exa}/data/exa-search-1748337344119.ts +0 -0
  204. /package/src/{testing → functions/exa}/data/index.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly query: string;
3
- }, unknown>;
3
+ }, unknown, import("@dxos/functions").FunctionServices>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=mock.d.ts.map
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("@dxos/functions").FunctionDefinition<{
2
2
  readonly owner: string;
3
3
  readonly repo: string;
4
- }, any>;
4
+ }, any, import("@dxos/functions").FunctionServices>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=fetch-prs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-prs.d.ts","sourceRoot":"","sources":["../../../../../src/functions/github/fetch-prs.ts"],"names":[],"mappings":";;;;AAUA,wBAmBG"}
1
+ {"version":3,"file":"fetch-prs.d.ts","sourceRoot":"","sources":["../../../../../src/functions/github/fetch-prs.ts"],"names":[],"mappings":";;;;AAUA,wBAoBG"}
@@ -2,8 +2,8 @@ export declare namespace Linear {
2
2
  const sync: import("@dxos/functions").FunctionDefinition<{
3
3
  readonly team: string;
4
4
  }, {
5
- objects: import("@dxos/echo/Obj").Any[];
5
+ objects: import("@dxos/echo/Obj").Unknown[];
6
6
  syncComplete: boolean;
7
- }>;
7
+ }, import("@dxos/functions").FunctionServices>;
8
8
  }
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,MAAM,CAAC;IACf,MAAM,IAAI;;;;;MAAQ,CAAC;CAC3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/index.ts"],"names":[],"mappings":"AAMA,yBAAiB,MAAM,CAAC;IACf,MAAM,IAAI;;;;;kDAAQ,CAAC;CAC3B"}
@@ -5,8 +5,8 @@ export declare const LINEAR_UPDATED_AT_KEY = "linear.app/updatedAt";
5
5
  declare const _default: import("@dxos/functions").FunctionDefinition<{
6
6
  readonly team: string;
7
7
  }, {
8
- objects: Obj.Any[];
8
+ objects: Obj.Unknown[];
9
9
  syncComplete: boolean;
10
- }>;
10
+ }, import("@dxos/functions").FunctionServices>;
11
11
  export default _default;
12
12
  //# sourceMappingURL=sync-issues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-issues.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/sync-issues.ts"],"names":[],"mappings":"AAWA,OAAO,EAAU,GAAG,EAAyB,MAAM,YAAY,CAAC;AA6DhE,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;;;;;;;AAE5D,wBAmCG"}
1
+ {"version":3,"file":"sync-issues.d.ts","sourceRoot":"","sources":["../../../../../src/functions/linear/sync-issues.ts"],"names":[],"mappings":"AAWA,OAAO,EAAU,GAAG,EAAyB,MAAM,YAAY,CAAC;AA8DhE,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;;;;;;;AAE5D,wBAoCG"}
@@ -0,0 +1,9 @@
1
+ declare const _default: import("@dxos/functions").FunctionDefinition<{
2
+ readonly name: string;
3
+ readonly content: string;
4
+ readonly subject: string;
5
+ }, {
6
+ readonly document: string;
7
+ }, import("@dxos/functions").FunctionServices>;
8
+ export default _default;
9
+ //# sourceMappingURL=document-create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-create.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/document-create.ts"],"names":[],"mappings":";;;;;;;AAgBA,wBA2DG"}
@@ -1,19 +1,21 @@
1
- export * from './graph';
2
1
  export * from './research-graph';
3
2
  export * from './types';
4
3
  export declare namespace Research {
5
4
  const create: import("@dxos/functions").FunctionDefinition<{
6
5
  readonly name: string;
7
6
  readonly content: string;
8
- readonly target: string;
9
- }, {}>;
7
+ readonly subject: string;
8
+ }, {
9
+ readonly document: string;
10
+ }, import("@dxos/functions").FunctionServices>;
10
11
  const research: import("@dxos/functions").FunctionDefinition<{
12
+ readonly instructions?: string | undefined;
11
13
  readonly query: string;
12
- readonly researchInstructions?: string | undefined;
13
14
  readonly mockSearch?: boolean | undefined;
15
+ readonly entityExtraction?: boolean | undefined;
14
16
  }, {
15
17
  readonly objects: readonly unknown[];
16
- readonly note?: string | undefined;
17
- }>;
18
+ readonly document?: string | undefined;
19
+ }, import("@dxos/functions").FunctionServices>;
18
20
  }
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AAExB,yBAAiB,QAAQ,CAAC;IACjB,MAAM,MAAM;;;;UAAU,CAAC;IACvB,MAAM,QAAQ;;;;;;;MAAY,CAAC;CACnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/index.ts"],"names":[],"mappings":"AAOA,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AAExB,yBAAiB,QAAQ,CAAC;IACjB,MAAM,MAAM;;;;;;kDAAU,CAAC;IACvB,MAAM,QAAQ;;;;;;;;kDAAY,CAAC;CACnC"}
@@ -1,18 +1,19 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import * as Layer from 'effect/Layer';
3
3
  import * as Schema from 'effect/Schema';
4
- import { Obj, Type } from '@dxos/echo';
4
+ import { Type } from '@dxos/echo';
5
+ import { Database } from '@dxos/echo';
5
6
  import { Queue } from '@dxos/echo-db';
6
- import { ContextQueueService, DatabaseService, QueueService } from '@dxos/functions';
7
+ import { ContextQueueService, QueueService } from '@dxos/functions';
7
8
  /**
8
9
  * Container for a set of ephemeral research results.
9
10
  */
10
- export declare const ResearchGraph: Type.obj<Schema.Struct<{
11
- queue: Type.ref<Schema.Schema<Queue<Obj.Any | import("@dxos/echo/Relation").Any>, Queue<Obj.Any | import("@dxos/echo/Relation").Any>, never>>;
12
- }>>;
11
+ export declare const ResearchGraph: Type.Obj<{
12
+ readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
13
+ }, Schema.Struct.Fields>;
13
14
  export interface ResearchGraph extends Schema.Schema.Type<typeof ResearchGraph> {
14
15
  }
15
- export declare const queryResearchGraph: () => Effect.Effect<ResearchGraph | undefined, never, DatabaseService>;
16
- export declare const createResearchGraph: () => Effect.Effect<ResearchGraph, never, DatabaseService | QueueService>;
17
- export declare const contextQueueLayerFromResearchGraph: Layer.Layer<ContextQueueService, import("@dxos/echo").ObjectNotFoundError, DatabaseService | QueueService>;
16
+ export declare const queryResearchGraph: () => Effect.Effect<ResearchGraph | undefined, never, Database.Service>;
17
+ export declare const createResearchGraph: () => Effect.Effect<ResearchGraph, never, Database.Service | QueueService>;
18
+ export declare const contextQueueLayerFromResearchGraph: Layer.Layer<ContextQueueService, import("@dxos/echo/Err").ObjectNotFoundError, Database.Service | QueueService>;
18
19
  //# sourceMappingURL=research-graph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"research-graph.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research-graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,GAAG,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,aAAa;;GAOzB,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC;CAAG;AAElF,eAAO,MAAM,kBAAkB,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,GAAG,SAAS,EAAE,KAAK,EAAE,eAAe,CAKpG,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,EAAE,eAAe,GAAG,YAAY,CAKxG,CAAC;AAEH,eAAO,MAAM,kCAAkC,4GAM9C,CAAC"}
1
+ {"version":3,"file":"research-graph.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research-graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,IAAI,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,aAAa;;wBAQzB,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC;CAAG;AAElF,eAAO,MAAM,kBAAkB,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAKrG,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,GAAG,YAAY,CAIvG,CAAC;AAEL,eAAO,MAAM,kCAAkC,iHAM9C,CAAC"}
@@ -2,12 +2,13 @@
2
2
  * Exec external service and return the results as a Subgraph.
3
3
  */
4
4
  declare const _default: import("@dxos/functions").FunctionDefinition<{
5
+ readonly instructions?: string | undefined;
5
6
  readonly query: string;
6
- readonly researchInstructions?: string | undefined;
7
7
  readonly mockSearch?: boolean | undefined;
8
+ readonly entityExtraction?: boolean | undefined;
8
9
  }, {
9
10
  readonly objects: readonly unknown[];
10
- readonly note?: string | undefined;
11
- }>;
11
+ readonly document?: string | undefined;
12
+ }, import("@dxos/functions").FunctionServices>;
12
13
  export default _default;
13
14
  //# sourceMappingURL=research.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research.ts"],"names":[],"mappings":"AAgCA;;GAEG;;;;;;;;;AACH,wBAuHG"}
1
+ {"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/research.ts"],"names":[],"mappings":"AAqCA;;GAEG;;;;;;;;;;AACH,wBAyHG"}
@@ -1,384 +1,6 @@
1
- import { DataType } from '@dxos/schema';
1
+ import { type Type } from '@dxos/echo';
2
2
  /**
3
3
  * Data types for research.
4
4
  */
5
- export declare const ResearchDataTypes: (import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
6
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
7
- owner: import("effect/Schema").Struct<{
8
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
9
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
10
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
11
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
12
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
14
- id: string;
15
- description?: string | undefined;
16
- name?: string | undefined;
17
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
18
- image?: string | undefined;
19
- website?: string | undefined;
20
- location?: readonly [number, number, (number | undefined)?] | undefined;
21
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
22
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
23
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
24
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
25
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
26
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
27
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
28
- }>>>>;
29
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
30
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
31
- value: typeof import("effect/Schema").String;
32
- }>>>>;
33
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
34
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
35
- value: typeof import("effect/Schema").String;
36
- }>>>>;
37
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
38
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
39
- value: import("effect/Schema").Struct<{
40
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
41
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
42
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
45
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
46
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
47
- }>;
48
- }>>>>;
49
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
50
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
51
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
52
- }>>>>;
53
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
54
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
55
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
56
- label: typeof import("effect/Schema").String;
57
- value: typeof import("effect/Schema").String;
58
- }>>>>;
59
- }>, import("effect/Schema").Struct<{
60
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
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", "tool"]>>;
67
- }>;
68
- attendees: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
69
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
70
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
71
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
72
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
73
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
74
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
75
- id: string;
76
- description?: string | undefined;
77
- name?: string | undefined;
78
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
79
- image?: string | undefined;
80
- website?: string | undefined;
81
- location?: readonly [number, number, (number | undefined)?] | undefined;
82
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
83
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
84
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
85
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
86
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
87
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
88
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
89
- }>>>>;
90
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
91
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
92
- value: typeof import("effect/Schema").String;
93
- }>>>>;
94
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
95
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
96
- value: typeof import("effect/Schema").String;
97
- }>>>>;
98
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
99
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
100
- value: import("effect/Schema").Struct<{
101
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
102
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
103
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
104
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
105
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
106
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
107
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
108
- }>;
109
- }>>>>;
110
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
111
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
112
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
113
- }>>>>;
114
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
115
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
116
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
117
- label: typeof import("effect/Schema").String;
118
- value: typeof import("effect/Schema").String;
119
- }>>>>;
120
- }>, import("effect/Schema").Struct<{
121
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
122
- }>>>>>;
123
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
124
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
125
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
126
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
127
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant", "tool"]>>;
128
- }>>>;
129
- startDate: typeof import("effect/Schema").String;
130
- endDate: typeof import("effect/Schema").String;
131
- links: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
132
- [x: string]: any;
133
- id: string;
134
- }, never>>>>;
135
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
136
- id: import("@dxos/keys").ObjectIdClass;
137
- name: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
138
- description: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
139
- status: import("effect/Schema").optional<import("effect/Schema").Literal<["prospect", "qualified", "active", "commit", "reject"]>>;
140
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
141
- website: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
142
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
143
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
144
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
145
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
146
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
147
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
148
- id: string;
149
- description?: string | undefined;
150
- name?: string | undefined;
151
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
152
- image?: string | undefined;
153
- website?: string | undefined;
154
- location?: readonly [number, number, (number | undefined)?] | undefined;
155
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
156
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
157
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
158
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
159
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
160
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
161
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
162
- }>>>>;
163
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
164
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
165
- value: typeof import("effect/Schema").String;
166
- }>>>>;
167
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
168
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
169
- value: typeof import("effect/Schema").String;
170
- }>>>>;
171
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
172
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
- value: import("effect/Schema").Struct<{
174
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
175
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
176
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
177
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
178
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
179
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
180
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
181
- }>;
182
- }>>>>;
183
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
184
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
185
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
186
- }>>>>;
187
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
188
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
189
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
190
- label: typeof import("effect/Schema").String;
191
- value: typeof import("effect/Schema").String;
192
- }>>>>;
193
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
194
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
195
- description: import("effect/Schema").optional<typeof import("effect/Schema").String>;
196
- image: import("effect/Schema").optional<import("effect/Schema").refine<string, typeof import("effect/Schema").String>>;
197
- collections: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
198
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
199
- objects: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
200
- [x: string]: any;
201
- id: string;
202
- }, never>>>>;
203
- }>>>, import("@dxos/echo/Type").ref<import("effect/Schema").Schema<DataType.View, import("@dxos/schema").ViewEncoded, never>>]>>>;
204
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
205
- title: import("effect/Schema").SchemaClass<string, string, never>;
206
- priority: import("effect/Schema").optional<import("effect/Schema").Literal<["none", "low", "medium", "high", "urgent"]>>;
207
- status: import("effect/Schema").optional<import("effect/Schema").Literal<["todo", "in-progress", "done"]>>;
208
- assigned: import("effect/Schema").optional<import("effect/Schema").SchemaClass<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
209
- fields?: {
210
- readonly value: string;
211
- readonly label: string;
212
- readonly category?: string | undefined;
213
- }[] | undefined;
214
- organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
215
- id: string;
216
- description?: string | undefined;
217
- name?: string | undefined;
218
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
219
- image?: string | undefined;
220
- website?: string | undefined;
221
- location?: readonly [number, number, (number | undefined)?] | undefined;
222
- }> | undefined;
223
- image?: string | undefined;
224
- fullName?: string | undefined;
225
- preferredName?: string | undefined;
226
- nickname?: string | undefined;
227
- jobTitle?: string | undefined;
228
- department?: string | undefined;
229
- notes?: string | undefined;
230
- emails?: {
231
- readonly value: string;
232
- readonly label?: string | undefined;
233
- }[] | undefined;
234
- identities?: {
235
- readonly value: string;
236
- readonly label?: string | undefined;
237
- }[] | undefined;
238
- phoneNumbers?: {
239
- readonly value: string;
240
- readonly label?: string | undefined;
241
- }[] | undefined;
242
- addresses?: {
243
- readonly value: {
244
- readonly street?: string | undefined;
245
- readonly extended?: string | undefined;
246
- readonly locality?: string | undefined;
247
- readonly region?: string | undefined;
248
- readonly postalCode?: string | undefined;
249
- readonly postOfficeBoxNumber?: string | undefined;
250
- readonly country?: string | undefined;
251
- };
252
- readonly label?: string | undefined;
253
- }[] | undefined;
254
- urls?: {
255
- readonly value: string;
256
- readonly label?: string | undefined;
257
- }[] | undefined;
258
- birthday?: string | undefined;
259
- location?: readonly [number, number, (number | undefined)?] | undefined;
260
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
261
- estimate: import("effect/Schema").optional<import("effect/Schema").SchemaClass<number, number, never>>;
262
- description: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
263
- project: import("effect/Schema").optional<import("effect/Schema").SchemaClass<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
264
- description?: string | undefined;
265
- name?: string | undefined;
266
- image?: string | undefined;
267
- collections: (import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
268
- name?: string | undefined;
269
- objects: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>[];
270
- }> | import("@dxos/echo/internal").Ref<DataType.View>)[];
271
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
272
- }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
273
- content: typeof import("effect/Schema").String;
274
- }>> | import("@dxos/echo/Type").relation<import("effect/Schema").Struct<{
275
- id: import("@dxos/keys").ObjectIdClass;
276
- kind: import("effect/Schema").SchemaClass<string, string, never>;
277
- }>, import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
278
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
279
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
280
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
281
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
282
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
283
- id: string;
284
- description?: string | undefined;
285
- name?: string | undefined;
286
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
287
- image?: string | undefined;
288
- website?: string | undefined;
289
- location?: readonly [number, number, (number | undefined)?] | undefined;
290
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
291
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
292
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
293
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
294
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
295
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
296
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
297
- }>>>>;
298
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
299
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
300
- value: typeof import("effect/Schema").String;
301
- }>>>>;
302
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
303
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
304
- value: typeof import("effect/Schema").String;
305
- }>>>>;
306
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
307
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
308
- value: import("effect/Schema").Struct<{
309
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
310
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
311
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
312
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
313
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
314
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
315
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
316
- }>;
317
- }>>>>;
318
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
319
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
320
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
321
- }>>>>;
322
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
323
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
324
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
325
- label: typeof import("effect/Schema").String;
326
- value: typeof import("effect/Schema").String;
327
- }>>>>;
328
- }>, import("effect/Schema").Struct<{
329
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
330
- }>>>, import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
331
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
332
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
333
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
334
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
335
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
336
- id: string;
337
- description?: string | undefined;
338
- name?: string | undefined;
339
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
340
- image?: string | undefined;
341
- website?: string | undefined;
342
- location?: readonly [number, number, (number | undefined)?] | undefined;
343
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
344
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
345
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
346
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
347
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
348
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
349
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
350
- }>>>>;
351
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
352
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
353
- value: typeof import("effect/Schema").String;
354
- }>>>>;
355
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
356
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
357
- value: typeof import("effect/Schema").String;
358
- }>>>>;
359
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
360
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
361
- value: import("effect/Schema").Struct<{
362
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
363
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
364
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
365
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
366
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
367
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
368
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
369
- }>;
370
- }>>>>;
371
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
372
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
373
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
374
- }>>>>;
375
- birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
376
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
377
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
378
- label: typeof import("effect/Schema").String;
379
- value: typeof import("effect/Schema").String;
380
- }>>>>;
381
- }>, import("effect/Schema").Struct<{
382
- location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
383
- }>>>>)[];
5
+ export declare const ResearchDataTypes: Type.Entity.Any[];
384
6
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;2BAewS,CAAC;oBAA0C,CAAC;sBAA4C,CAAC;qBAA8F,CAAC;uBAA6C,CAAC;wBAA8C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA2xH,CAAC;oBAA0C,CAAC;sBAA4C,CAAC;qBAA8F,CAAC;uBAA6C,CAAC;wBAA8C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA/wC,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA3lH,CAAC;;;6BAAyG,CAAC;;oBAAmE,CAAC;;uBAAoJ,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;iBAA0F,CAAC;mBAAyC,CAAC;oBAA0C,CAAC;;aAAqG,CAAC;gBAAsC,CAAC;qBAA2C,CAAC;gBAAsC,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;aAAmC,CAAC;cAAoC,CAAC;;0BAAkE,CAAC;;kBAAiE,CAAC;;0BAAkE,CAAC;;oBAAmE,CAAC;;0BAAkE,CAAC;;iBAAgE,CAAC;;+BAAiE,CAAC;iCAAuD,CAAC;iCAAuD,CAAC;+BAAqD,CAAC;mCAAyD,CAAC;4CAAkE,CAAC;gCAAsD,CAAC;;0BAA+D,CAAC;;YAA2D,CAAC;;0BAAkE,CAAC;;gBAA+D,CAAC;gBAAsC,CAAC;;;;;mBAA8b,CAAC;YAAkC,CAAC;aAAmC,CAAC;;gBAA+J,CAAC;;;;;;;;;;;;;;;;mBAAs1I,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA0/F,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAD5+U,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAc9C,CAAC"}
@@ -3,13 +3,13 @@ export declare namespace Tasks {
3
3
  readonly id: string;
4
4
  }, {
5
5
  readonly content: string;
6
- }>;
6
+ }, import("@dxos/functions").FunctionServices>;
7
7
  const update: import("@dxos/functions").FunctionDefinition<{
8
8
  readonly id: string;
9
9
  readonly operations?: readonly any[] | undefined;
10
10
  }, {
11
11
  readonly content: string;
12
12
  readonly numberedContent: string;
13
- }>;
13
+ }, import("@dxos/functions").FunctionServices>;
14
14
  }
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,KAAK,CAAC;IACd,MAAM,IAAI;;;;MAAQ,CAAC;IACnB,MAAM,MAAM;;;;;;MAAU,CAAC;CAC/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,KAAK,CAAC;IACd,MAAM,IAAI;;;;kDAAQ,CAAC;IACnB,MAAM,MAAM;;;;;;kDAAU,CAAC;CAC/B"}