@blue-labs/document-processor 1.21.1 → 1.23.0

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 (103) hide show
  1. package/dist/BlueDocumentProcessor.d.ts +2 -6
  2. package/dist/BlueDocumentProcessor.d.ts.map +1 -1
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/index.js +5 -5
  5. package/dist/index.mjs +483 -533
  6. package/dist/mocks/blueIds.d.ts +5 -0
  7. package/dist/mocks/blueIds.d.ts.map +1 -0
  8. package/dist/processors/BaseChannelProcessor.d.ts +0 -5
  9. package/dist/processors/BaseChannelProcessor.d.ts.map +1 -1
  10. package/dist/processors/ChannelEventCheckpointProcessor.d.ts +1 -2
  11. package/dist/processors/ChannelEventCheckpointProcessor.d.ts.map +1 -1
  12. package/dist/processors/CompositeTimelineChannelProcessor.d.ts +1 -1
  13. package/dist/processors/CompositeTimelineChannelProcessor.d.ts.map +1 -1
  14. package/dist/processors/DocumentUpdateChannelProcessor.d.ts +1 -1
  15. package/dist/processors/DocumentUpdateChannelProcessor.d.ts.map +1 -1
  16. package/dist/processors/EmbeddedNodeChannelProcessor.d.ts +1 -1
  17. package/dist/processors/EmbeddedNodeChannelProcessor.d.ts.map +1 -1
  18. package/dist/processors/InitializedMarkerProcessor.d.ts +9 -0
  19. package/dist/processors/InitializedMarkerProcessor.d.ts.map +1 -0
  20. package/dist/processors/LifecycleEventChannelProcessor.d.ts +33 -0
  21. package/dist/processors/LifecycleEventChannelProcessor.d.ts.map +1 -0
  22. package/dist/processors/MyOSAgentChannelProcessor.d.ts +1 -1
  23. package/dist/processors/MyOSAgentChannelProcessor.d.ts.map +1 -1
  24. package/dist/processors/MyOSTimelineChannelProcessor.d.ts +1 -1
  25. package/dist/processors/MyOSTimelineChannelProcessor.d.ts.map +1 -1
  26. package/dist/processors/OperationProcessor.d.ts +1 -2
  27. package/dist/processors/OperationProcessor.d.ts.map +1 -1
  28. package/dist/processors/ProcessEmbeddedProcessor.d.ts +1 -2
  29. package/dist/processors/ProcessEmbeddedProcessor.d.ts.map +1 -1
  30. package/dist/processors/SequentialWorkflowOperationProcessor.d.ts +1 -1
  31. package/dist/processors/SequentialWorkflowOperationProcessor.d.ts.map +1 -1
  32. package/dist/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts +1 -2
  33. package/dist/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts.map +1 -1
  34. package/dist/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts.map +1 -1
  35. package/dist/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts +2 -1
  36. package/dist/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts.map +1 -1
  37. package/dist/processors/TimelineChannelProcessor.d.ts +1 -1
  38. package/dist/processors/TimelineChannelProcessor.d.ts.map +1 -1
  39. package/dist/processors/index.d.ts +2 -0
  40. package/dist/processors/index.d.ts.map +1 -1
  41. package/dist/routing/EventRouter.d.ts.map +1 -1
  42. package/dist/types.d.ts +1 -2
  43. package/dist/types.d.ts.map +1 -1
  44. package/dist/utils/checkpoint.d.ts.map +1 -1
  45. package/dist/utils/eventFactories.d.ts +37 -0
  46. package/dist/utils/eventFactories.d.ts.map +1 -0
  47. package/dist/utils/initialized.d.ts +4 -0
  48. package/dist/utils/initialized.d.ts.map +1 -0
  49. package/package.json +5 -6
  50. package/dist/repo/core/blue-ids/index.d.ts +0 -21
  51. package/dist/repo/core/blue-ids/index.d.ts.map +0 -1
  52. package/dist/repo/core/index.d.ts +0 -199
  53. package/dist/repo/core/index.d.ts.map +0 -1
  54. package/dist/repo/core/schema/Channel.d.ts +0 -13
  55. package/dist/repo/core/schema/Channel.d.ts.map +0 -1
  56. package/dist/repo/core/schema/CompositeTimelineChannel.d.ts +0 -17
  57. package/dist/repo/core/schema/CompositeTimelineChannel.d.ts.map +0 -1
  58. package/dist/repo/core/schema/DocumentUpdateChannel.d.ts +0 -17
  59. package/dist/repo/core/schema/DocumentUpdateChannel.d.ts.map +0 -1
  60. package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts +0 -17
  61. package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts.map +0 -1
  62. package/dist/repo/core/schema/JavaScriptCode.d.ts +0 -10
  63. package/dist/repo/core/schema/JavaScriptCode.d.ts.map +0 -1
  64. package/dist/repo/core/schema/JsonPatchEntry.d.ts +0 -22
  65. package/dist/repo/core/schema/JsonPatchEntry.d.ts.map +0 -1
  66. package/dist/repo/core/schema/Operation.d.ts +0 -16
  67. package/dist/repo/core/schema/Operation.d.ts.map +0 -1
  68. package/dist/repo/core/schema/OperationRequest.d.ts +0 -29
  69. package/dist/repo/core/schema/OperationRequest.d.ts.map +0 -1
  70. package/dist/repo/core/schema/ProcessEmbedded.d.ts +0 -10
  71. package/dist/repo/core/schema/ProcessEmbedded.d.ts.map +0 -1
  72. package/dist/repo/core/schema/SequentialWorkflow.d.ts +0 -13
  73. package/dist/repo/core/schema/SequentialWorkflow.d.ts.map +0 -1
  74. package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts +0 -15
  75. package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts.map +0 -1
  76. package/dist/repo/core/schema/SequentialWorkflowStep.d.ts +0 -13
  77. package/dist/repo/core/schema/SequentialWorkflowStep.d.ts.map +0 -1
  78. package/dist/repo/core/schema/TimelineChannel.d.ts +0 -17
  79. package/dist/repo/core/schema/TimelineChannel.d.ts.map +0 -1
  80. package/dist/repo/core/schema/TimelineEntry.d.ts +0 -25
  81. package/dist/repo/core/schema/TimelineEntry.d.ts.map +0 -1
  82. package/dist/repo/core/schema/TriggerEvent.d.ts +0 -10
  83. package/dist/repo/core/schema/TriggerEvent.d.ts.map +0 -1
  84. package/dist/repo/core/schema/UpdateDocument.d.ts +0 -40
  85. package/dist/repo/core/schema/UpdateDocument.d.ts.map +0 -1
  86. package/dist/repo/core/schema/index.d.ts +0 -15
  87. package/dist/repo/core/schema/index.d.ts.map +0 -1
  88. package/dist/repo/myos/blue-ids/index.d.ts +0 -8
  89. package/dist/repo/myos/blue-ids/index.d.ts.map +0 -1
  90. package/dist/repo/myos/index.d.ts +0 -101
  91. package/dist/repo/myos/index.d.ts.map +0 -1
  92. package/dist/repo/myos/schema/MyOSAgent.d.ts +0 -10
  93. package/dist/repo/myos/schema/MyOSAgent.d.ts.map +0 -1
  94. package/dist/repo/myos/schema/MyOSAgentChannel.d.ts +0 -30
  95. package/dist/repo/myos/schema/MyOSAgentChannel.d.ts.map +0 -1
  96. package/dist/repo/myos/schema/MyOSAgentEvent.d.ts +0 -19
  97. package/dist/repo/myos/schema/MyOSAgentEvent.d.ts.map +0 -1
  98. package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts +0 -24
  99. package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts.map +0 -1
  100. package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts +0 -32
  101. package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts.map +0 -1
  102. package/dist/repo/myos/schema/index.d.ts +0 -6
  103. package/dist/repo/myos/schema/index.d.ts.map +0 -1
@@ -1,101 +0,0 @@
1
- import { BlueRepository } from '@blue-labs/language';
2
- export * from './schema';
3
- export { blueIds } from './blue-ids';
4
- export declare const allSchemas: (import('zod').ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
5
- name: import('zod').ZodOptional<import('zod').ZodString>;
6
- description: import('zod').ZodOptional<import('zod').ZodString>;
7
- }, {
8
- timelineId: import('zod').ZodOptional<import('zod').ZodString>;
9
- }>, {
10
- account: import('zod').ZodOptional<import('zod').ZodString>;
11
- email: import('zod').ZodOptional<import('zod').ZodString>;
12
- }>, "strip", import('zod').ZodTypeAny, {
13
- name?: string | undefined;
14
- description?: string | undefined;
15
- timelineId?: string | undefined;
16
- account?: string | undefined;
17
- email?: string | undefined;
18
- }, {
19
- name?: string | undefined;
20
- description?: string | undefined;
21
- timelineId?: string | undefined;
22
- account?: string | undefined;
23
- email?: string | undefined;
24
- }> | import('zod').ZodObject<import("zod").objectUtil.extendShape<{
25
- timelineId: import('zod').ZodOptional<import('zod').ZodString>;
26
- timelinePrev: import('zod').ZodOptional<import('zod').ZodString>;
27
- thread: import('zod').ZodOptional<import('zod').ZodString>;
28
- threadPrev: import('zod').ZodOptional<import('zod').ZodString>;
29
- message: import('zod').ZodOptional<import('zod').ZodType<import('@blue-labs/language').BlueNode, import('zod').ZodTypeDef, import('@blue-labs/language').BlueNode>>;
30
- signature: import('zod').ZodOptional<import('zod').ZodString>;
31
- }, {
32
- account: import('zod').ZodOptional<import('zod').ZodString>;
33
- email: import('zod').ZodOptional<import('zod').ZodString>;
34
- }>, "strip", import('zod').ZodTypeAny, {
35
- message?: import('@blue-labs/language').BlueNode | undefined;
36
- timelineId?: string | undefined;
37
- timelinePrev?: string | undefined;
38
- thread?: string | undefined;
39
- threadPrev?: string | undefined;
40
- signature?: string | undefined;
41
- account?: string | undefined;
42
- email?: string | undefined;
43
- }, {
44
- message?: import('@blue-labs/language').BlueNode | undefined;
45
- timelineId?: string | undefined;
46
- timelinePrev?: string | undefined;
47
- thread?: string | undefined;
48
- threadPrev?: string | undefined;
49
- signature?: string | undefined;
50
- account?: string | undefined;
51
- email?: string | undefined;
52
- }> | import('zod').ZodObject<{
53
- agentId: import('zod').ZodOptional<import('zod').ZodString>;
54
- }, "strip", import('zod').ZodTypeAny, {
55
- agentId?: string | undefined;
56
- }, {
57
- agentId?: string | undefined;
58
- }> | import('zod').ZodObject<import("zod").objectUtil.extendShape<{
59
- name: import('zod').ZodOptional<import('zod').ZodString>;
60
- description: import('zod').ZodOptional<import('zod').ZodString>;
61
- }, {
62
- agent: import('zod').ZodOptional<import('zod').ZodObject<{
63
- agentId: import('zod').ZodOptional<import('zod').ZodString>;
64
- }, "strip", import('zod').ZodTypeAny, {
65
- agentId?: string | undefined;
66
- }, {
67
- agentId?: string | undefined;
68
- }>>;
69
- event: import('zod').ZodOptional<import('zod').ZodType<import('@blue-labs/language').BlueNode, import('zod').ZodTypeDef, import('@blue-labs/language').BlueNode>>;
70
- }>, "strip", import('zod').ZodTypeAny, {
71
- event?: import('@blue-labs/language').BlueNode | undefined;
72
- name?: string | undefined;
73
- description?: string | undefined;
74
- agent?: {
75
- agentId?: string | undefined;
76
- } | undefined;
77
- }, {
78
- event?: import('@blue-labs/language').BlueNode | undefined;
79
- name?: string | undefined;
80
- description?: string | undefined;
81
- agent?: {
82
- agentId?: string | undefined;
83
- } | undefined;
84
- }> | import('zod').ZodObject<{
85
- agentId: import('zod').ZodOptional<import('zod').ZodString>;
86
- id: import('zod').ZodOptional<import('zod').ZodNumber>;
87
- timestamp: import('zod').ZodOptional<import('zod').ZodNumber>;
88
- event: import('zod').ZodOptional<import('zod').ZodType<import('@blue-labs/language').BlueNode, import('zod').ZodTypeDef, import('@blue-labs/language').BlueNode>>;
89
- }, "strip", import('zod').ZodTypeAny, {
90
- event?: import('@blue-labs/language').BlueNode | undefined;
91
- agentId?: string | undefined;
92
- id?: number | undefined;
93
- timestamp?: number | undefined;
94
- }, {
95
- event?: import('@blue-labs/language').BlueNode | undefined;
96
- agentId?: string | undefined;
97
- id?: number | undefined;
98
- timestamp?: number | undefined;
99
- }>)[];
100
- export declare const repository: BlueRepository;
101
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/repo/myos/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAyB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,cAGxB,CAAC"}
@@ -1,10 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const MyOSAgentSchema: z.ZodObject<{
3
- agentId: z.ZodOptional<z.ZodString>;
4
- }, "strip", z.ZodTypeAny, {
5
- agentId?: string | undefined;
6
- }, {
7
- agentId?: string | undefined;
8
- }>;
9
- export type MyOSAgent = z.infer<typeof MyOSAgentSchema>;
10
- //# sourceMappingURL=MyOSAgent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyOSAgent.d.ts","sourceRoot":"","sources":["../../../../src/repo/myos/schema/MyOSAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;EAI3B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,30 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const MyOSAgentChannelSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- name: z.ZodOptional<z.ZodString>;
4
- description: z.ZodOptional<z.ZodString>;
5
- }, {
6
- agent: z.ZodOptional<z.ZodObject<{
7
- agentId: z.ZodOptional<z.ZodString>;
8
- }, "strip", z.ZodTypeAny, {
9
- agentId?: string | undefined;
10
- }, {
11
- agentId?: string | undefined;
12
- }>>;
13
- event: z.ZodOptional<z.ZodType<import('@blue-labs/language').BlueNode, z.ZodTypeDef, import('@blue-labs/language').BlueNode>>;
14
- }>, "strip", z.ZodTypeAny, {
15
- event?: import('@blue-labs/language').BlueNode | undefined;
16
- name?: string | undefined;
17
- description?: string | undefined;
18
- agent?: {
19
- agentId?: string | undefined;
20
- } | undefined;
21
- }, {
22
- event?: import('@blue-labs/language').BlueNode | undefined;
23
- name?: string | undefined;
24
- description?: string | undefined;
25
- agent?: {
26
- agentId?: string | undefined;
27
- } | undefined;
28
- }>;
29
- export type MyOSAgentChannel = z.infer<typeof MyOSAgentChannelSchema>;
30
- //# sourceMappingURL=MyOSAgentChannel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyOSAgentChannel.d.ts","sourceRoot":"","sources":["../../../../src/repo/myos/schema/MyOSAgentChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const MyOSAgentEventSchema: z.ZodObject<{
3
- agentId: z.ZodOptional<z.ZodString>;
4
- id: z.ZodOptional<z.ZodNumber>;
5
- timestamp: z.ZodOptional<z.ZodNumber>;
6
- event: z.ZodOptional<z.ZodType<import('@blue-labs/language').BlueNode, z.ZodTypeDef, import('@blue-labs/language').BlueNode>>;
7
- }, "strip", z.ZodTypeAny, {
8
- event?: import('@blue-labs/language').BlueNode | undefined;
9
- agentId?: string | undefined;
10
- id?: number | undefined;
11
- timestamp?: number | undefined;
12
- }, {
13
- event?: import('@blue-labs/language').BlueNode | undefined;
14
- agentId?: string | undefined;
15
- id?: number | undefined;
16
- timestamp?: number | undefined;
17
- }>;
18
- export type MyOSAgentEvent = z.infer<typeof MyOSAgentEventSchema>;
19
- //# sourceMappingURL=MyOSAgentEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyOSAgentEvent.d.ts","sourceRoot":"","sources":["../../../../src/repo/myos/schema/MyOSAgentEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAOhC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const MyOSTimelineChannelSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
- name: z.ZodOptional<z.ZodString>;
4
- description: z.ZodOptional<z.ZodString>;
5
- }, {
6
- timelineId: z.ZodOptional<z.ZodString>;
7
- }>, {
8
- account: z.ZodOptional<z.ZodString>;
9
- email: z.ZodOptional<z.ZodString>;
10
- }>, "strip", z.ZodTypeAny, {
11
- name?: string | undefined;
12
- description?: string | undefined;
13
- timelineId?: string | undefined;
14
- account?: string | undefined;
15
- email?: string | undefined;
16
- }, {
17
- name?: string | undefined;
18
- description?: string | undefined;
19
- timelineId?: string | undefined;
20
- account?: string | undefined;
21
- email?: string | undefined;
22
- }>;
23
- export type MyOSTimelineChannel = z.infer<typeof MyOSTimelineChannelSchema>;
24
- //# sourceMappingURL=MyOSTimelineChannel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyOSTimelineChannel.d.ts","sourceRoot":"","sources":["../../../../src/repo/myos/schema/MyOSTimelineChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -1,32 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const MyOSTimelineEntrySchema: z.ZodObject<z.objectUtil.extendShape<{
3
- timelineId: z.ZodOptional<z.ZodString>;
4
- timelinePrev: z.ZodOptional<z.ZodString>;
5
- thread: z.ZodOptional<z.ZodString>;
6
- threadPrev: z.ZodOptional<z.ZodString>;
7
- message: z.ZodOptional<z.ZodType<import('@blue-labs/language').BlueNode, z.ZodTypeDef, import('@blue-labs/language').BlueNode>>;
8
- signature: z.ZodOptional<z.ZodString>;
9
- }, {
10
- account: z.ZodOptional<z.ZodString>;
11
- email: z.ZodOptional<z.ZodString>;
12
- }>, "strip", z.ZodTypeAny, {
13
- message?: import('@blue-labs/language').BlueNode | undefined;
14
- timelineId?: string | undefined;
15
- timelinePrev?: string | undefined;
16
- thread?: string | undefined;
17
- threadPrev?: string | undefined;
18
- signature?: string | undefined;
19
- account?: string | undefined;
20
- email?: string | undefined;
21
- }, {
22
- message?: import('@blue-labs/language').BlueNode | undefined;
23
- timelineId?: string | undefined;
24
- timelinePrev?: string | undefined;
25
- thread?: string | undefined;
26
- threadPrev?: string | undefined;
27
- signature?: string | undefined;
28
- account?: string | undefined;
29
- email?: string | undefined;
30
- }>;
31
- export type MyOSTimelineEntry = z.infer<typeof MyOSTimelineEntrySchema>;
32
- //# sourceMappingURL=MyOSTimelineEntry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyOSTimelineEntry.d.ts","sourceRoot":"","sources":["../../../../src/repo/myos/schema/MyOSTimelineEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export * from './MyOSTimelineChannel';
2
- export * from './MyOSTimelineEntry';
3
- export * from './MyOSAgent';
4
- export * from './MyOSAgentChannel';
5
- export * from './MyOSAgentEvent';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/repo/myos/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}