@makaio/framework 1.0.0-dev-1789056039016 → 1.0.0-dev-1789118938035
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/{account-identity-CNdiLYaM.mjs → account-identity-BdGGjBuZ.mjs} +1 -1
- package/dist/{adapter-BdMny6vw.mjs → adapter-BLivHuUi.mjs} +1 -1
- package/dist/artifact-B9wVswQv.mjs +1 -0
- package/dist/bus/index.mjs +4 -4
- package/dist/{canonical-model-BMnzRhG_.mjs → canonical-model-yXnm9QTn.mjs} +1 -1
- package/dist/{client-C0HcPzvw.mjs → client-BsY0rMlE.mjs} +1 -1
- package/dist/{compression-DvPXSBWS.mjs → compression-odwEUBWb.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.d.mts +2 -2
- package/dist/contracts/automation-trigger/index.d.mts +2 -2
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/code-execution/index.d.mts +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +25 -25
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +3 -3
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{contribution-BWanQHUz.d.mts → contribution-Cdz5WTYk.d.mts} +1 -1
- package/dist/{definition-DSOXLpQj.d.mts → definition-DQNFO-Qz.d.mts} +1 -1
- package/dist/{extension-GQEL-NCV.mjs → extension-DYBu49NH.mjs} +1 -1
- package/dist/{index-CVP9K9-a2.d.mts → index-B7VWSBm72.d.mts} +4 -4
- package/dist/{index-CO6ADD43.d.mts → index-BFnIC2b0.d.mts} +49 -49
- package/dist/{index-CAURP-Tl2.d.mts → index-BUoIGZmF2.d.mts} +2 -2
- package/dist/{index-CgYGg-Ne2.d.mts → index-BZrlHkpM2.d.mts} +41 -2
- package/dist/{index-CKvliyuY.d.mts → index-C7XS5mvZ.d.mts} +842 -8
- package/dist/{index-CLmjrH8K.d.mts → index-D6_5slJp.d.mts} +1 -1
- package/dist/{index-Dp3UZQv_.d.mts → index-DS1mI9GP.d.mts} +1 -1
- package/dist/{index-H2NL2OwF2.d.mts → index-D__FyAg62.d.mts} +7 -7
- package/dist/{index-B4KCyY6J.d.mts → index-Den1hqEo.d.mts} +7 -7
- package/dist/{index-CU9xmTkP.d.mts → index-OLGGmjgd.d.mts} +1 -1
- package/dist/{index-C0jn5nKJ.d.mts → index-WhgPewY4.d.mts} +11 -11
- package/dist/{index-Dtc5UYJG.d.mts → index-l_yo-7aV.d.mts} +48 -48
- package/dist/kind-registration-CyMf-vey.mjs +1 -0
- package/dist/{materialization--bg6ZwQd.mjs → materialization-DRr6CSXV.mjs} +1 -1
- package/dist/{namespace-DyWNxLt1.d.mts → namespace-BHkEHrUG.d.mts} +6 -6
- package/dist/package.json +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/schemas-BhkprYU1.mjs +1 -0
- package/dist/{schemas-BGcAiQE0.d.mts → schemas-COQUToGQ.d.mts} +4 -4
- package/dist/{schemas-_NrySTmN.d.mts → schemas-CXCdmM5K.d.mts} +13 -1
- package/dist/{schemas-pHboaOxJ.mjs → schemas-D9_OPuLB.mjs} +1 -1
- package/dist/{schemas-Fn-eeay32.d.mts → schemas-DNvDh0eE2.d.mts} +7 -7
- package/dist/{schemas-FkLOBJgq.d.mts → schemas-DYtUc2WA.d.mts} +4 -4
- package/dist/{schemas-QEr2LI43.mjs → schemas-pBrUJEN6.mjs} +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +1 -1
- package/dist/services/index.d.mts +13 -13
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/{session-CODDwsGa.mjs → session-BsQst2fC.mjs} +1 -1
- package/dist/{session-lineage-CoNs4WZy.d.mts → session-lineage-DQLXk5jZ.d.mts} +1 -1
- package/dist/shared-m6jgT2a3.mjs +1 -0
- package/dist/{storage-namespace-BUSNKZLw.d.mts → storage-namespace-DITavhRL.d.mts} +10 -10
- package/dist/{transition-D2VKNtv6.d.mts → transition-B8XDvfD7.d.mts} +2 -2
- package/dist/{types-DyXXIK4c.d.mts → types-HFQQoeAz.d.mts} +2 -2
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{view-builder-BFEvUe6n.d.mts → view-builder--qgYM35J.d.mts} +1 -1
- package/dist/{worker-L8vWpbYa.mjs → worker-nbwkoIfH.mjs} +1 -1
- package/dist/{workflow-DNks09Ip.mjs → workflow-Ba8qlWwV.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +39 -39
- package/package.json +1 -1
- package/dist/artifact--nbPrvm5.mjs +0 -1
- package/dist/kind-registration-BanX_UAF.mjs +0 -1
- package/dist/schemas-NKlV5jqJ.mjs +0 -1
- package/dist/shared-CkCrHz66.mjs +0 -1
- /package/dist/{adapter-binding-CTssGlH_.d.mts → adapter-binding-CZTWlcp9.d.mts} +0 -0
- /package/dist/{index-CrvTRZqh.d.mts → index-BNgNBDuW2.d.mts} +0 -0
- /package/dist/{json-value-Bjl8jzom.d.mts → json-value-DyMQrwGz.d.mts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as ArtifactRevision$1 } from "./schemas-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { x as ArtifactRevision$1 } from "./schemas-CXCdmM5K.mjs";
|
|
2
|
+
import { a as JsonObjectContractSchema, l as JsonValue$1 } from "./json-value-DyMQrwGz.mjs";
|
|
3
|
+
import { n as AutomationTriggerBinding$1, o as AutomationTriggerParams, u as DefinedAutomationTrigger } from "./definition-DQNFO-Qz.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
6
6
|
import { ExtractSubjectPayload, PayloadFilter, SubjectDefinition, TypedPayloadFilter } from "@makaio/framework/core";
|
|
@@ -145,10 +145,10 @@ type WorkflowSourceLocation = z.infer<typeof WorkflowSourceLocationSchema>;
|
|
|
145
145
|
* - `sequence` — ordered list of child nodes (the structural container)
|
|
146
146
|
*/
|
|
147
147
|
declare const WorkflowNodeTypeSchema: z.ZodEnum<{
|
|
148
|
-
sequence: "sequence";
|
|
149
148
|
station: "station";
|
|
150
149
|
"delegate-agent": "delegate-agent";
|
|
151
150
|
"delegate-role": "delegate-role";
|
|
151
|
+
sequence: "sequence";
|
|
152
152
|
parallel: "parallel";
|
|
153
153
|
gate: "gate";
|
|
154
154
|
iterate: "iterate";
|
|
@@ -814,8 +814,8 @@ declare const ExecutionStatusSchema$1: z.ZodEnum<{
|
|
|
814
814
|
completed: "completed";
|
|
815
815
|
cancelled: "cancelled";
|
|
816
816
|
failed: "failed";
|
|
817
|
-
paused: "paused";
|
|
818
817
|
running: "running";
|
|
818
|
+
paused: "paused";
|
|
819
819
|
finalizing: "finalizing";
|
|
820
820
|
}>;
|
|
821
821
|
type ExecutionStatus = z.infer<typeof ExecutionStatusSchema$1>;
|
|
@@ -831,8 +831,8 @@ declare const WorkflowExecutionSchema$1: z.ZodObject<{
|
|
|
831
831
|
completed: "completed";
|
|
832
832
|
cancelled: "cancelled";
|
|
833
833
|
failed: "failed";
|
|
834
|
-
paused: "paused";
|
|
835
834
|
running: "running";
|
|
835
|
+
paused: "paused";
|
|
836
836
|
finalizing: "finalizing";
|
|
837
837
|
}>;
|
|
838
838
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -872,10 +872,10 @@ declare const WorkflowFrameStateSchema$1: z.ZodObject<{
|
|
|
872
872
|
frameId: z.ZodString;
|
|
873
873
|
nodeId: z.ZodString;
|
|
874
874
|
nodeType: z.ZodEnum<{
|
|
875
|
-
sequence: "sequence";
|
|
876
875
|
station: "station";
|
|
877
876
|
"delegate-agent": "delegate-agent";
|
|
878
877
|
"delegate-role": "delegate-role";
|
|
878
|
+
sequence: "sequence";
|
|
879
879
|
parallel: "parallel";
|
|
880
880
|
gate: "gate";
|
|
881
881
|
iterate: "iterate";
|
|
@@ -1227,8 +1227,8 @@ declare const ExecutionListQuerySchema$1: z.ZodObject<{
|
|
|
1227
1227
|
completed: "completed";
|
|
1228
1228
|
cancelled: "cancelled";
|
|
1229
1229
|
failed: "failed";
|
|
1230
|
-
paused: "paused";
|
|
1231
1230
|
running: "running";
|
|
1231
|
+
paused: "paused";
|
|
1232
1232
|
finalizing: "finalizing";
|
|
1233
1233
|
}>>;
|
|
1234
1234
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -3716,8 +3716,8 @@ declare const WorkflowSchemas: {
|
|
|
3716
3716
|
completed: "completed";
|
|
3717
3717
|
cancelled: "cancelled";
|
|
3718
3718
|
failed: "failed";
|
|
3719
|
-
paused: "paused";
|
|
3720
3719
|
running: "running";
|
|
3720
|
+
paused: "paused";
|
|
3721
3721
|
finalizing: "finalizing";
|
|
3722
3722
|
}>;
|
|
3723
3723
|
}, z.core.$strip>;
|
|
@@ -3795,8 +3795,8 @@ declare const WorkflowSchemas: {
|
|
|
3795
3795
|
completed: "completed";
|
|
3796
3796
|
cancelled: "cancelled";
|
|
3797
3797
|
failed: "failed";
|
|
3798
|
-
paused: "paused";
|
|
3799
3798
|
running: "running";
|
|
3799
|
+
paused: "paused";
|
|
3800
3800
|
finalizing: "finalizing";
|
|
3801
3801
|
}>;
|
|
3802
3802
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -3853,8 +3853,8 @@ declare const WorkflowSchemas: {
|
|
|
3853
3853
|
completed: "completed";
|
|
3854
3854
|
cancelled: "cancelled";
|
|
3855
3855
|
failed: "failed";
|
|
3856
|
-
paused: "paused";
|
|
3857
3856
|
running: "running";
|
|
3857
|
+
paused: "paused";
|
|
3858
3858
|
finalizing: "finalizing";
|
|
3859
3859
|
}>>;
|
|
3860
3860
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -3877,8 +3877,8 @@ declare const WorkflowSchemas: {
|
|
|
3877
3877
|
completed: "completed";
|
|
3878
3878
|
cancelled: "cancelled";
|
|
3879
3879
|
failed: "failed";
|
|
3880
|
-
paused: "paused";
|
|
3881
3880
|
running: "running";
|
|
3881
|
+
paused: "paused";
|
|
3882
3882
|
finalizing: "finalizing";
|
|
3883
3883
|
}>;
|
|
3884
3884
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -3934,8 +3934,8 @@ declare const WorkflowSchemas: {
|
|
|
3934
3934
|
completed: "completed";
|
|
3935
3935
|
cancelled: "cancelled";
|
|
3936
3936
|
failed: "failed";
|
|
3937
|
-
paused: "paused";
|
|
3938
3937
|
running: "running";
|
|
3938
|
+
paused: "paused";
|
|
3939
3939
|
finalizing: "finalizing";
|
|
3940
3940
|
}>;
|
|
3941
3941
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -4115,10 +4115,10 @@ declare const WorkflowSchemas: {
|
|
|
4115
4115
|
frameId: z.ZodString;
|
|
4116
4116
|
nodeId: z.ZodString;
|
|
4117
4117
|
nodeType: z.ZodEnum<{
|
|
4118
|
-
sequence: "sequence";
|
|
4119
4118
|
station: "station";
|
|
4120
4119
|
"delegate-agent": "delegate-agent";
|
|
4121
4120
|
"delegate-role": "delegate-role";
|
|
4121
|
+
sequence: "sequence";
|
|
4122
4122
|
parallel: "parallel";
|
|
4123
4123
|
gate: "gate";
|
|
4124
4124
|
iterate: "iterate";
|
|
@@ -4694,8 +4694,8 @@ declare const WorkflowSchemas: {
|
|
|
4694
4694
|
"exit-and-resume": "exit-and-resume";
|
|
4695
4695
|
}>>;
|
|
4696
4696
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
4697
|
-
worker: "worker";
|
|
4698
4697
|
authority: "authority";
|
|
4698
|
+
worker: "worker";
|
|
4699
4699
|
}>>;
|
|
4700
4700
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4701
4701
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -4933,10 +4933,10 @@ declare const WorkflowSchemas: {
|
|
|
4933
4933
|
frameId: z.ZodString;
|
|
4934
4934
|
nodeId: z.ZodString;
|
|
4935
4935
|
nodeType: z.ZodEnum<{
|
|
4936
|
-
sequence: "sequence";
|
|
4937
4936
|
station: "station";
|
|
4938
4937
|
"delegate-agent": "delegate-agent";
|
|
4939
4938
|
"delegate-role": "delegate-role";
|
|
4939
|
+
sequence: "sequence";
|
|
4940
4940
|
parallel: "parallel";
|
|
4941
4941
|
gate: "gate";
|
|
4942
4942
|
iterate: "iterate";
|
|
@@ -5063,8 +5063,8 @@ declare const WorkflowSchemas: {
|
|
|
5063
5063
|
completed: "completed";
|
|
5064
5064
|
cancelled: "cancelled";
|
|
5065
5065
|
failed: "failed";
|
|
5066
|
-
paused: "paused";
|
|
5067
5066
|
running: "running";
|
|
5067
|
+
paused: "paused";
|
|
5068
5068
|
finalizing: "finalizing";
|
|
5069
5069
|
}>;
|
|
5070
5070
|
startedAt: z.ZodNumber;
|
|
@@ -5094,10 +5094,10 @@ declare const WorkflowSchemas: {
|
|
|
5094
5094
|
frameId: z.ZodString;
|
|
5095
5095
|
nodeId: z.ZodString;
|
|
5096
5096
|
nodeType: z.ZodEnum<{
|
|
5097
|
-
sequence: "sequence";
|
|
5098
5097
|
station: "station";
|
|
5099
5098
|
"delegate-agent": "delegate-agent";
|
|
5100
5099
|
"delegate-role": "delegate-role";
|
|
5100
|
+
sequence: "sequence";
|
|
5101
5101
|
parallel: "parallel";
|
|
5102
5102
|
gate: "gate";
|
|
5103
5103
|
iterate: "iterate";
|
|
@@ -5141,8 +5141,8 @@ declare const WorkflowSchemas: {
|
|
|
5141
5141
|
completed: "completed";
|
|
5142
5142
|
cancelled: "cancelled";
|
|
5143
5143
|
failed: "failed";
|
|
5144
|
-
paused: "paused";
|
|
5145
5144
|
running: "running";
|
|
5145
|
+
paused: "paused";
|
|
5146
5146
|
finalizing: "finalizing";
|
|
5147
5147
|
}>>;
|
|
5148
5148
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5158,8 +5158,8 @@ declare const WorkflowSchemas: {
|
|
|
5158
5158
|
completed: "completed";
|
|
5159
5159
|
cancelled: "cancelled";
|
|
5160
5160
|
failed: "failed";
|
|
5161
|
-
paused: "paused";
|
|
5162
5161
|
running: "running";
|
|
5162
|
+
paused: "paused";
|
|
5163
5163
|
finalizing: "finalizing";
|
|
5164
5164
|
}>;
|
|
5165
5165
|
startedAt: z.ZodNumber;
|
|
@@ -6683,8 +6683,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
6683
6683
|
completed: "completed";
|
|
6684
6684
|
cancelled: "cancelled";
|
|
6685
6685
|
failed: "failed";
|
|
6686
|
-
paused: "paused";
|
|
6687
6686
|
running: "running";
|
|
6687
|
+
paused: "paused";
|
|
6688
6688
|
finalizing: "finalizing";
|
|
6689
6689
|
}>;
|
|
6690
6690
|
}, z.core.$strip>;
|
|
@@ -6762,8 +6762,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
6762
6762
|
completed: "completed";
|
|
6763
6763
|
cancelled: "cancelled";
|
|
6764
6764
|
failed: "failed";
|
|
6765
|
-
paused: "paused";
|
|
6766
6765
|
running: "running";
|
|
6766
|
+
paused: "paused";
|
|
6767
6767
|
finalizing: "finalizing";
|
|
6768
6768
|
}>;
|
|
6769
6769
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -6820,8 +6820,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
6820
6820
|
completed: "completed";
|
|
6821
6821
|
cancelled: "cancelled";
|
|
6822
6822
|
failed: "failed";
|
|
6823
|
-
paused: "paused";
|
|
6824
6823
|
running: "running";
|
|
6824
|
+
paused: "paused";
|
|
6825
6825
|
finalizing: "finalizing";
|
|
6826
6826
|
}>>;
|
|
6827
6827
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -6844,8 +6844,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
6844
6844
|
completed: "completed";
|
|
6845
6845
|
cancelled: "cancelled";
|
|
6846
6846
|
failed: "failed";
|
|
6847
|
-
paused: "paused";
|
|
6848
6847
|
running: "running";
|
|
6848
|
+
paused: "paused";
|
|
6849
6849
|
finalizing: "finalizing";
|
|
6850
6850
|
}>;
|
|
6851
6851
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -6901,8 +6901,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
6901
6901
|
completed: "completed";
|
|
6902
6902
|
cancelled: "cancelled";
|
|
6903
6903
|
failed: "failed";
|
|
6904
|
-
paused: "paused";
|
|
6905
6904
|
running: "running";
|
|
6905
|
+
paused: "paused";
|
|
6906
6906
|
finalizing: "finalizing";
|
|
6907
6907
|
}>;
|
|
6908
6908
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -7082,10 +7082,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
7082
7082
|
frameId: z.ZodString;
|
|
7083
7083
|
nodeId: z.ZodString;
|
|
7084
7084
|
nodeType: z.ZodEnum<{
|
|
7085
|
-
sequence: "sequence";
|
|
7086
7085
|
station: "station";
|
|
7087
7086
|
"delegate-agent": "delegate-agent";
|
|
7088
7087
|
"delegate-role": "delegate-role";
|
|
7088
|
+
sequence: "sequence";
|
|
7089
7089
|
parallel: "parallel";
|
|
7090
7090
|
gate: "gate";
|
|
7091
7091
|
iterate: "iterate";
|
|
@@ -7661,8 +7661,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
7661
7661
|
"exit-and-resume": "exit-and-resume";
|
|
7662
7662
|
}>>;
|
|
7663
7663
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
7664
|
-
worker: "worker";
|
|
7665
7664
|
authority: "authority";
|
|
7665
|
+
worker: "worker";
|
|
7666
7666
|
}>>;
|
|
7667
7667
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7668
7668
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -7900,10 +7900,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
7900
7900
|
frameId: z.ZodString;
|
|
7901
7901
|
nodeId: z.ZodString;
|
|
7902
7902
|
nodeType: z.ZodEnum<{
|
|
7903
|
-
sequence: "sequence";
|
|
7904
7903
|
station: "station";
|
|
7905
7904
|
"delegate-agent": "delegate-agent";
|
|
7906
7905
|
"delegate-role": "delegate-role";
|
|
7906
|
+
sequence: "sequence";
|
|
7907
7907
|
parallel: "parallel";
|
|
7908
7908
|
gate: "gate";
|
|
7909
7909
|
iterate: "iterate";
|
|
@@ -8030,8 +8030,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
8030
8030
|
completed: "completed";
|
|
8031
8031
|
cancelled: "cancelled";
|
|
8032
8032
|
failed: "failed";
|
|
8033
|
-
paused: "paused";
|
|
8034
8033
|
running: "running";
|
|
8034
|
+
paused: "paused";
|
|
8035
8035
|
finalizing: "finalizing";
|
|
8036
8036
|
}>;
|
|
8037
8037
|
startedAt: z.ZodNumber;
|
|
@@ -8061,10 +8061,10 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
8061
8061
|
frameId: z.ZodString;
|
|
8062
8062
|
nodeId: z.ZodString;
|
|
8063
8063
|
nodeType: z.ZodEnum<{
|
|
8064
|
-
sequence: "sequence";
|
|
8065
8064
|
station: "station";
|
|
8066
8065
|
"delegate-agent": "delegate-agent";
|
|
8067
8066
|
"delegate-role": "delegate-role";
|
|
8067
|
+
sequence: "sequence";
|
|
8068
8068
|
parallel: "parallel";
|
|
8069
8069
|
gate: "gate";
|
|
8070
8070
|
iterate: "iterate";
|
|
@@ -8108,8 +8108,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
8108
8108
|
completed: "completed";
|
|
8109
8109
|
cancelled: "cancelled";
|
|
8110
8110
|
failed: "failed";
|
|
8111
|
-
paused: "paused";
|
|
8112
8111
|
running: "running";
|
|
8112
|
+
paused: "paused";
|
|
8113
8113
|
finalizing: "finalizing";
|
|
8114
8114
|
}>>;
|
|
8115
8115
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8125,8 +8125,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
8125
8125
|
completed: "completed";
|
|
8126
8126
|
cancelled: "cancelled";
|
|
8127
8127
|
failed: "failed";
|
|
8128
|
-
paused: "paused";
|
|
8129
8128
|
running: "running";
|
|
8129
|
+
paused: "paused";
|
|
8130
8130
|
finalizing: "finalizing";
|
|
8131
8131
|
}>;
|
|
8132
8132
|
startedAt: z.ZodNumber;
|
|
@@ -9650,8 +9650,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
9650
9650
|
completed: "completed";
|
|
9651
9651
|
cancelled: "cancelled";
|
|
9652
9652
|
failed: "failed";
|
|
9653
|
-
paused: "paused";
|
|
9654
9653
|
running: "running";
|
|
9654
|
+
paused: "paused";
|
|
9655
9655
|
finalizing: "finalizing";
|
|
9656
9656
|
}>;
|
|
9657
9657
|
}, z.core.$strip>;
|
|
@@ -9729,8 +9729,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
9729
9729
|
completed: "completed";
|
|
9730
9730
|
cancelled: "cancelled";
|
|
9731
9731
|
failed: "failed";
|
|
9732
|
-
paused: "paused";
|
|
9733
9732
|
running: "running";
|
|
9733
|
+
paused: "paused";
|
|
9734
9734
|
finalizing: "finalizing";
|
|
9735
9735
|
}>;
|
|
9736
9736
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -9787,8 +9787,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
9787
9787
|
completed: "completed";
|
|
9788
9788
|
cancelled: "cancelled";
|
|
9789
9789
|
failed: "failed";
|
|
9790
|
-
paused: "paused";
|
|
9791
9790
|
running: "running";
|
|
9791
|
+
paused: "paused";
|
|
9792
9792
|
finalizing: "finalizing";
|
|
9793
9793
|
}>>;
|
|
9794
9794
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -9811,8 +9811,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
9811
9811
|
completed: "completed";
|
|
9812
9812
|
cancelled: "cancelled";
|
|
9813
9813
|
failed: "failed";
|
|
9814
|
-
paused: "paused";
|
|
9815
9814
|
running: "running";
|
|
9815
|
+
paused: "paused";
|
|
9816
9816
|
finalizing: "finalizing";
|
|
9817
9817
|
}>;
|
|
9818
9818
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -9868,8 +9868,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
9868
9868
|
completed: "completed";
|
|
9869
9869
|
cancelled: "cancelled";
|
|
9870
9870
|
failed: "failed";
|
|
9871
|
-
paused: "paused";
|
|
9872
9871
|
running: "running";
|
|
9872
|
+
paused: "paused";
|
|
9873
9873
|
finalizing: "finalizing";
|
|
9874
9874
|
}>;
|
|
9875
9875
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, _$_makaio_contracts0.JsonValue>>;
|
|
@@ -10049,10 +10049,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
10049
10049
|
frameId: z.ZodString;
|
|
10050
10050
|
nodeId: z.ZodString;
|
|
10051
10051
|
nodeType: z.ZodEnum<{
|
|
10052
|
-
sequence: "sequence";
|
|
10053
10052
|
station: "station";
|
|
10054
10053
|
"delegate-agent": "delegate-agent";
|
|
10055
10054
|
"delegate-role": "delegate-role";
|
|
10055
|
+
sequence: "sequence";
|
|
10056
10056
|
parallel: "parallel";
|
|
10057
10057
|
gate: "gate";
|
|
10058
10058
|
iterate: "iterate";
|
|
@@ -10628,8 +10628,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
10628
10628
|
"exit-and-resume": "exit-and-resume";
|
|
10629
10629
|
}>>;
|
|
10630
10630
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
10631
|
-
worker: "worker";
|
|
10632
10631
|
authority: "authority";
|
|
10632
|
+
worker: "worker";
|
|
10633
10633
|
}>>;
|
|
10634
10634
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10635
10635
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -10867,10 +10867,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
10867
10867
|
frameId: z.ZodString;
|
|
10868
10868
|
nodeId: z.ZodString;
|
|
10869
10869
|
nodeType: z.ZodEnum<{
|
|
10870
|
-
sequence: "sequence";
|
|
10871
10870
|
station: "station";
|
|
10872
10871
|
"delegate-agent": "delegate-agent";
|
|
10873
10872
|
"delegate-role": "delegate-role";
|
|
10873
|
+
sequence: "sequence";
|
|
10874
10874
|
parallel: "parallel";
|
|
10875
10875
|
gate: "gate";
|
|
10876
10876
|
iterate: "iterate";
|
|
@@ -10997,8 +10997,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
10997
10997
|
completed: "completed";
|
|
10998
10998
|
cancelled: "cancelled";
|
|
10999
10999
|
failed: "failed";
|
|
11000
|
-
paused: "paused";
|
|
11001
11000
|
running: "running";
|
|
11001
|
+
paused: "paused";
|
|
11002
11002
|
finalizing: "finalizing";
|
|
11003
11003
|
}>;
|
|
11004
11004
|
startedAt: z.ZodNumber;
|
|
@@ -11028,10 +11028,10 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
11028
11028
|
frameId: z.ZodString;
|
|
11029
11029
|
nodeId: z.ZodString;
|
|
11030
11030
|
nodeType: z.ZodEnum<{
|
|
11031
|
-
sequence: "sequence";
|
|
11032
11031
|
station: "station";
|
|
11033
11032
|
"delegate-agent": "delegate-agent";
|
|
11034
11033
|
"delegate-role": "delegate-role";
|
|
11034
|
+
sequence: "sequence";
|
|
11035
11035
|
parallel: "parallel";
|
|
11036
11036
|
gate: "gate";
|
|
11037
11037
|
iterate: "iterate";
|
|
@@ -11075,8 +11075,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
11075
11075
|
completed: "completed";
|
|
11076
11076
|
cancelled: "cancelled";
|
|
11077
11077
|
failed: "failed";
|
|
11078
|
-
paused: "paused";
|
|
11079
11078
|
running: "running";
|
|
11079
|
+
paused: "paused";
|
|
11080
11080
|
finalizing: "finalizing";
|
|
11081
11081
|
}>>;
|
|
11082
11082
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -11092,8 +11092,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
11092
11092
|
completed: "completed";
|
|
11093
11093
|
cancelled: "cancelled";
|
|
11094
11094
|
failed: "failed";
|
|
11095
|
-
paused: "paused";
|
|
11096
11095
|
running: "running";
|
|
11096
|
+
paused: "paused";
|
|
11097
11097
|
finalizing: "finalizing";
|
|
11098
11098
|
}>;
|
|
11099
11099
|
startedAt: z.ZodNumber;
|
|
@@ -11411,8 +11411,8 @@ declare const WorkflowRunContextSchema$1: z.ZodObject<{
|
|
|
11411
11411
|
"exit-and-resume": "exit-and-resume";
|
|
11412
11412
|
}>>;
|
|
11413
11413
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
11414
|
-
worker: "worker";
|
|
11415
11414
|
authority: "authority";
|
|
11415
|
+
worker: "worker";
|
|
11416
11416
|
}>>;
|
|
11417
11417
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11418
11418
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -12062,8 +12062,8 @@ declare const WorkflowWorkerConfigSchema$1: z.ZodObject<{
|
|
|
12062
12062
|
"exit-and-resume": "exit-and-resume";
|
|
12063
12063
|
}>>;
|
|
12064
12064
|
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
12065
|
-
worker: "worker";
|
|
12066
12065
|
authority: "authority";
|
|
12066
|
+
worker: "worker";
|
|
12067
12067
|
}>>;
|
|
12068
12068
|
materializationSpec: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12069
12069
|
kind: z.ZodLiteral<"local-directory">;
|
|
@@ -12656,8 +12656,8 @@ declare const WorkLogExecutionSummarySchema: z.ZodObject<{
|
|
|
12656
12656
|
completed: "completed";
|
|
12657
12657
|
cancelled: "cancelled";
|
|
12658
12658
|
failed: "failed";
|
|
12659
|
-
paused: "paused";
|
|
12660
12659
|
running: "running";
|
|
12660
|
+
paused: "paused";
|
|
12661
12661
|
finalizing: "finalizing";
|
|
12662
12662
|
}>;
|
|
12663
12663
|
startedAt: z.ZodNumber;
|
|
@@ -12683,10 +12683,10 @@ declare const WorkLogFrameEntrySchema$1: z.ZodObject<{
|
|
|
12683
12683
|
frameId: z.ZodString;
|
|
12684
12684
|
nodeId: z.ZodString;
|
|
12685
12685
|
nodeType: z.ZodEnum<{
|
|
12686
|
-
sequence: "sequence";
|
|
12687
12686
|
station: "station";
|
|
12688
12687
|
"delegate-agent": "delegate-agent";
|
|
12689
12688
|
"delegate-role": "delegate-role";
|
|
12689
|
+
sequence: "sequence";
|
|
12690
12690
|
parallel: "parallel";
|
|
12691
12691
|
gate: "gate";
|
|
12692
12692
|
iterate: "iterate";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./json-value-DM-EjTC1.mjs";import{z as t}from"zod";function n(e){return r(e)?e:void 0}function r(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const i=`[]`;function a(e,t){return Object.keys(t).length===0?e:e?t:!1}function o(e,t){if(t===`#`)return e;if(!t.startsWith(`#/`))return;let r=e;for(let e of t.slice(2).split(`/`)){let t=n(r),i=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(!t||!Object.hasOwn(t,i))return;r=t[i]}return r}function s(e,t){let r=t.$ref;if(typeof r!=`string`)return;let i=o(e,r);if(typeof i==`boolean`){if(e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return i;let{$ref:n,...r}=t;return a(i,r)}let s=n(i);if(!s||e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return s;let{$ref:c,...l}=t;return Object.keys(l).length===0?s:{...s,allOf:[l,...Array.isArray(s.allOf)?s.allOf:[]]}}function c(e,t){for(let[n,r]of Object.entries(t))e[n]=Object.hasOwn(e,n)?{allOf:[e[n],r]}:r}function l(e){return Array.isArray(e.required)?e.required.filter(e=>typeof e==`string`):[]}function u(e,t){let r=n(e.properties);if(!r||!Object.hasOwn(r,t))return;let i=r[t];return typeof i==`boolean`?i:n(i)}function d(e,t,i){if(typeof t.$ref==`string`){if(i.has(t.$ref))return;let n=s(e,t);return r(n)?d(e,n,new Set([...i,t.$ref])):void 0}if(!Array.isArray(t.allOf))return t;let{allOf:a,...o}=t,u={},f={},p=new Set;for(let t of[o,...a]){let r=n(t),a=r?d(e,r,i):void 0;if(!a||a.anyOf||a.oneOf)return;if(a.type!==void 0){if(u.type!==void 0&&u.type!==a.type)return;u.type=a.type}if(a.items!==void 0){if(u.items!==void 0)return;u.items=a.items}c(f,n(a.properties)??{});for(let e of l(a))p.add(e)}return{...u,properties:f,required:[...p]}}function f(e,t,n,r,i,a,o){if(a.has(n))return;let c=s(e,t);return typeof c==`boolean`?r.length===0?[c]:void 0:c?m(e,c,r,i,new Set([...a,n]),o):void 0}function p(e,t,r){if(t.type!==`array`)return;let i=t.items;if(typeof i==`boolean`)return r.length===0?[i]:void 0;let a=n(i);return a?m(e,a,r,!1):void 0}function m(e,t,r,i,a=new Set,o=!1){if(typeof t.$ref==`string`)return f(e,t,t.$ref,r,i,a,o);let s=Array.isArray(t.anyOf)?`anyOf`:`oneOf`,c=t[s];if(Array.isArray(c)){let{[s]:l,...u}=t,d=c.map(t=>{let s=n(t);if(s)return m(e,typeof s.$ref==`string`?{allOf:[u,s]}:{...s,allOf:[u,...Array.isArray(s.allOf)?s.allOf:[]]},r,i,a,o)});return d.every(e=>e!==void 0)?d.flatMap(e=>e??[]):void 0}if(Array.isArray(t.allOf)){let n=d(e,t,a);return n?m(e,n,r,i,a,o):void 0}if(r.length===0)return[t];let[h,...g]=r;if(h===`[]`)return p(e,t,g);if(t.type!==`object`&&!(t.type===void 0&&o)||!h||i&&!l(t).includes(h))return;let _=u(t,h);return typeof _==`boolean`?g.length===0?[_]:void 0:_?m(e,_,g,i):void 0}function h(e,t){return m(e,e,[...t],!1,new Set,!0)}function g(e,t){return h(e,t.split(`.`))!==void 0}function _(e){let t=[],r=(e,r)=>{let i=n(e);i&&t.push({node:i,path:r})};for(let t of[`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`])for(let[i,a]of Object.entries(n(e[t])??{}))r(a,[t,i]);for(let t of[`allOf`,`anyOf`,`oneOf`,`prefixItems`,`items`]){let n=e[t];Array.isArray(n)&&n.forEach((e,n)=>r(e,[t,n]))}for(let t of[`items`,`additionalItems`,`additionalProperties`,`unevaluatedItems`,`unevaluatedProperties`,`propertyNames`,`contains`,`not`,`if`,`then`,`else`,`contentSchema`])r(e[t],[t]);return t}function v(e,t=[`dataSchema`]){if(Array.isArray(e.prefixItems)||Array.isArray(e.items))throw Error(`Unsupported tuple serialization at ${t.join(`.`)}: use an array schema or an explicit JSON Schema registration`);for(let n of _(e))v(n.node,[...t,...n.path])}function y(e,t,n=new Set){if(t.additionalProperties===!1)return!0;if(typeof t.$ref==`string`&&!n.has(t.$ref)){let i=s(e,t);if(i===void 0||r(i)&&y(e,i,new Set([...n,t.$ref])))return!0}return _(t).some(t=>y(e,t.node,n))}function b(e,t,r,i){if(Object.hasOwn(t,`$ref`)&&typeof t.$ref!=`string`&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Schema reference must be a string`}),typeof t.$ref==`string`&&!t.$ref.startsWith(`#`)&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Only fragment schema references are supported; absolute and document-relative references are outside the artifact registration profile`}),Object.hasOwn(t,`$anchor`)&&r.addIssue({code:`custom`,path:[...i,`$anchor`],message:`Named schema anchors are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&t.$ref.startsWith(`#`)&&t.$ref.length>1&&!t.$ref.startsWith(`#/`)&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Named schema references are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&(t.$ref===`#`||t.$ref.startsWith(`#/`))){let a=o(e,t.$ref);!n(a)&&typeof a!=`boolean`&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Fragment schema reference must resolve to an existing object or boolean schema`})}}function x(e,t,n,r=[`dataSchema`]){Object.hasOwn(t,`$async`)&&t.$async!==!1&&n.addIssue({code:`custom`,path:[...r,`$async`],message:`Asynchronous artifact schemas are not supported`}),b(e,t,n,r);for(let e of[`anyOf`,`oneOf`]){let i=t[e];Array.isArray(i)&&i.some(e=>typeof e==`boolean`)&&n.addIssue({code:`custom`,path:[...r,e],message:`Unsupported boolean union alternative: use object schema declarations`})}Array.isArray(t.allOf)&&(y(e,t)||!d(e,t,new Set))&&n.addIssue({code:`custom`,path:[...r,`allOf`],message:`Unsupported intersection: use open compatible conjuncts or a single closed object schema`});for(let i of _(t))x(e,i.node,n,[...r,...i.path])}function S(e,t){x(e.dataSchema,e.dataSchema,t);let n=m(e.dataSchema,e.dataSchema,e.titlePath.split(`.`),!0,new Set,!0);(!n?.length||n.some(e=>!r(e)||e.type!==`string`))&&t.addIssue({code:`custom`,path:[`titlePath`],message:`titlePath must select a required string in every data schema variant`});let i=[...(e.indexedFields??[]).map((e,t)=>({path:e,location:[`indexedFields`,t]})),...(e.searchableFields??[]).map((e,t)=>({path:e,location:[`searchableFields`,t]})),...(e.uniqueness??[]).flatMap((e,t)=>e.by.flatMap((e,n)=>e.kind===`data`?[{path:e.path,location:[`uniqueness`,t,`by`,n,`path`]}]:[])),...Object.entries(e.views??{}).flatMap(([e,t])=>t.fields.map((t,n)=>({path:t,location:[`views`,e,`fields`,n]})))];for(let{path:n,location:r}of i)g(e.dataSchema,n)||t.addIssue({code:`custom`,path:r,message:`Data path ${n} must select a declared field`})}function C(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n||Array.isArray(n)||!Object.hasOwn(n,e))throw Error(`Artifact title is missing at ${t}`);n=Reflect.get(n,e)}if(typeof n!=`string`||n.trim().length===0)throw Error(`Artifact title at ${t} must be a nonblank string`);return n}const w=t.number().int().positive(),T=t.enum([`knowledge`,`commitment`,`interaction`,`record`]),E=t.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),D=t.strictObject({fields:t.array(E).min(1)}),O=new Set([`full`]),k={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},A=t.enum([...k.knowledge,...k.commitment,...k.interaction]),j=t.strictObject({relationType:t.string().trim().min(1),targetKinds:t.array(t.string().trim().min(1)).min(1).optional(),minItems:t.number().int().nonnegative(),maxItems:t.number().int().nonnegative().optional()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),M=t.discriminatedUnion(`kind`,[t.strictObject({kind:t.literal(`data`),path:E}),t.strictObject({kind:t.literal(`relation-target`),relationType:t.string().trim().min(1)})]),N=t.strictObject({by:t.array(M).min(1),lifecycleStates:t.array(A).min(1).optional()}),P=t.strictObject({minItems:t.number().int().nonnegative()}),F=t.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),I=t.strictObject({kind:t.string().trim().min(1),description:t.string().trim().min(1),schemaVersion:w,category:T,dataSchema:e,titlePath:E,relations:t.array(j).optional(),uniqueness:t.array(N).optional(),evidenceRequirements:P.optional(),indexedFields:t.array(E).optional(),searchableFields:t.array(E).optional(),views:t.record(t.string().trim().min(1),D).optional()}).superRefine((e,t)=>{F.safeParse(e.dataSchema.$schema).success||t.addIssue({code:`custom`,path:[`dataSchema`,`$schema`],message:`Unsupported data schema dialect: omit $schema for draft-7 or declare the supported draft-7 or 2020-12 URI`});let n=k[e.category];e.uniqueness?.forEach((r,i)=>{r.lifecycleStates?.some(e=>!n.includes(e))&&t.addIssue({code:`custom`,path:[`uniqueness`,i,`lifecycleStates`],message:`Lifecycle conditions are incompatible with category ${e.category}`})}),Object.keys(e.views??{}).forEach(e=>{O.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),S(e,t)});export{I as a,j as c,M as d,i as f,C as g,g as h,P as i,w as l,h as m,T as n,D as o,v as p,E as r,A as s,k as t,N as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{w as n}from"./schemas-BhkprYU1.mjs";import{z as r}from"zod";import{createBusNamespace as i}from"@makaio/framework/core";const a=r.enum([`link`,`summary`,`full`]),o=r.object({artifactId:r.string().min(1).optional(),url:r.string().min(1).optional(),label:r.string().min(1)}),s=r.object({id:r.string().min(1),kind:r.string().min(1),revision:r.string().min(1),status:r.string().min(1).optional()}),c=r.object({breadcrumbs:r.array(o),related:r.array(o)}),l=r.object({dashboard:r.string().min(1).optional(),materialized:r.string().min(1).optional()}),u=r.object({type:r.literal(`summary`),title:r.string().min(1),text:r.string().min(1)}),d=r.object({type:r.literal(`properties`),title:r.string().min(1),rows:r.array(r.object({label:r.string().min(1),value:r.string()}))}),f=r.object({type:r.literal(`table`),title:r.string().min(1),columns:r.array(r.string().min(1)),rows:r.array(r.object({cells:r.array(r.string()),link:o.optional()}))}),p=r.object({type:r.literal(`relations`),title:r.string().min(1),groups:r.array(r.object({type:r.string().min(1),items:r.array(o)}))}),m=r.object({type:r.literal(`evidence`),title:r.string().min(1),items:r.array(r.object({kind:r.string().min(1),id:r.string().min(1),locator:r.string().min(1).optional()}))}),h=r.object({type:r.literal(`raw`),title:r.string().min(1),json:t}),g=r.object({type:r.literal(`code`),title:r.string().min(1),language:r.string().min(1),content:r.string()}),_=r.object({type:r.literal(`diagram`),title:r.string().min(1),notation:r.literal(`mermaid`),source:r.string().min(1)}),v=r.discriminatedUnion(`type`,[u,d,f,p,m,h,g,_]),y=r.object({title:r.string().min(1),artifact:s,navigation:c,sections:r.array(v),links:l}),b=e,x=r.object({level:a,params:b.optional()}),S=r.object({kind:r.literal(`entry`),via:r.string().min(1).optional(),collection:r.string().min(1).optional()});function C(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:r.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const w=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1),as:a.optional()}),S.extend({title:r.string().min(1).optional(),hostRelation:r.string().min(1).optional()}).superRefine(C(`affordance`))]),T=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1)}),S.superRefine(C(`request`))]);function E(e){return e}const D=r.enum([`title`,`summary`]),O=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`label`),prefix:r.string().min(1).optional()}),r.object({kind:r.literal(`field`),name:r.string().min(1),fieldId:r.string().min(1).optional()}),r.object({kind:r.literal(`issue-type`),name:r.string().min(1),typeId:r.string().min(1).optional()}),r.object({kind:r.literal(`body-fragment`),slot:r.string().min(1)}),r.object({kind:r.literal(`comment`),template:r.string().min(1)})]),k=r.object({id:r.string().min(1),provider:r.string().min(1),namespace:r.string().min(1),target:O,appliesTo:r.array(r.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:r.record(r.string(),r.string()).optional(),description:r.string().min(1).optional(),params:e.optional()}),A=r.enum([`status`,`workflow`,`priority`]),j=r.object({path:r.string().min(1),semantic:A.optional(),fromLevel:a.optional(),viewRole:D.optional()}),M=r.object({mode:r.enum([`none`,`surface`,`comment`]),defaultRole:r.enum([`workpiece`,`artifact`]).optional(),semanticEvents:r.array(r.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:r.array(j).optional(),affordances:r.array(w).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,i=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&i++;n>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),i>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),N=r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),externalUrl:r.string().optional(),surfaceRole:r.enum([`workpiece`,`artifact`]),lastSyncedRevision:r.string().optional(),metadata:r.record(r.string(),r.unknown()).optional()}),P=x.extend({ref:n,affordance:T}),F=r.discriminatedUnion(`status`,[r.object({status:r.literal(`ok`),view:y,builderVersion:r.number().int().positive(),sourceRevision:r.string().min(1)}),r.object({status:r.literal(`artifact-not-found`),view:r.null()}),r.object({status:r.literal(`not-rendered`),view:r.null()})]),I={"surfaceBinding.register":{request:k,response:r.object({registered:r.boolean()})},"surfaceBinding.list":{request:r.object({id:r.string().min(1).optional(),provider:r.string().min(1).optional(),namespace:r.string().min(1).optional()}),response:r.object({bindings:r.array(k)})},"surfaceBinding.changed":r.object({id:r.string().min(1),provider:r.string().min(1)}),"ref.changed":r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),operation:r.enum([`upserted`,`deleted`]),origin:r.enum([`factory`,`external`]).optional()}),"capability.resolved":r.object({provider:r.string().min(1),surface:r.string().min(1),capabilities:r.record(r.string().min(1),r.boolean()),degraded:r.boolean()}),"artifact.view.resolve":{request:P,response:F}},L=i(`materialization`,I),R=L.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}export{v as A,a as C,d as D,c as E,l as M,f as N,h as O,s as S,y as T,x as _,I as a,_ as b,M as c,D as d,k as f,b as g,T as h,L as i,u as j,p as k,j as l,w as m,P as n,R as o,O as p,F as r,N as s,z as t,A as u,E as v,o as w,m as x,g as y};
|
|
@@ -15,8 +15,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
15
15
|
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
16
16
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
17
17
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
18
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
19
18
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
19
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
20
20
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
21
21
|
label: _$zod.ZodString;
|
|
22
22
|
url: _$zod.ZodString;
|
|
@@ -40,8 +40,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
40
40
|
configs: _$zod.ZodArray<_$zod.ZodObject<{
|
|
41
41
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
42
42
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
43
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
44
43
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
44
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
45
45
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
46
46
|
label: _$zod.ZodString;
|
|
47
47
|
url: _$zod.ZodString;
|
|
@@ -1651,8 +1651,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
|
|
|
1651
1651
|
config: _$zod.ZodObject<{
|
|
1652
1652
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1653
1653
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1654
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1655
1654
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1655
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1656
1656
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1657
1657
|
label: _$zod.ZodString;
|
|
1658
1658
|
url: _$zod.ZodString;
|
|
@@ -1876,8 +1876,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
1876
1876
|
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
1877
1877
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1878
1878
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1879
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1880
1879
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1880
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1881
1881
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1882
1882
|
label: _$zod.ZodString;
|
|
1883
1883
|
url: _$zod.ZodString;
|
|
@@ -1901,8 +1901,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
1901
1901
|
configs: _$zod.ZodArray<_$zod.ZodObject<{
|
|
1902
1902
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1903
1903
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1904
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1905
1904
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1905
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1906
1906
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1907
1907
|
label: _$zod.ZodString;
|
|
1908
1908
|
url: _$zod.ZodString;
|
|
@@ -3512,8 +3512,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
|
|
|
3512
3512
|
config: _$zod.ZodObject<{
|
|
3513
3513
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3514
3514
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3515
|
-
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3516
3515
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3516
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3517
3517
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
3518
3518
|
label: _$zod.ZodString;
|
|
3519
3519
|
url: _$zod.ZodString;
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{randomBytes as e}from"node:crypto";import{getFullSubjectForSubjectDefinition as t}from"@makaio/framework/core";import{ArtifactSubjects as n,ExecutionAttemptSubjects as r,SubagentSubjects as i,WorkerSubjects as a,WorkflowSubjects as o}from"@makaio/framework/contracts";import{captureHmacIdentitySecretCleanup as s,registerHmacIdentitySecret as c,resolveHmacIdentityPeer as l,resolveHmacIdentitySecret as u,rotateHmacIdentitySecret as d}from"@makaio/framework/node/transports";import{AdapterSubsystemSubjects as f}from"@makaio/framework/services/adapter-subsystem";import{WorkflowStorageSubjects as p}from"@makaio/framework/workflow-engine";const m=[r.runtime.register,r.bootstrap.awaitStart,r.instruction.get,r.operation.admit,r.operation.report,r.operation.deliver,r.outcome.submit,r.control.deliver,r.control.report,a.runtime.inputs.get,a.control.outcome.submit,o.getRunContext,f.listAdapters,o.bootstrapAuthorityState,o.finalizeDelegateResult,p.getExecution,p.setFrame,p.setSpan,p.listFrames,p.getGateInstance,p.setGateInstance,o.frame.started,o.frame.completed,o.frame.failed,o.frame.sessionLinked,o.execution.progress,o.gate.suspended,o.gate.resumed,o.gate.resolved,o.gate.respond,o.state.get,o.state.patch,o.resolveAgent,o.resolveRole,n.kind.list,n.query,n.resolve,n.create,n.revise,o.artifact.updated,i.spawn,i.await,i.getStatus,i.kill];function h(e){return[...m.map(t),`workflow.${e}.cancel`]}function g(e){let{executionAttemptId:t,executionId:n,secret:r}=e,i=e.allowedSubjects??h(n);return{secret:r,cleanup:c(t,r,{peerKind:`workflow-execution-attempt`,claims:{executionId:n},allowedSubjects:i})}}function _(t){let n=e(32).toString(`hex`);return g({...t,secret:n})}function v(t){let{executionAttemptId:n,executionId:r}=t,i=l(n);if(i?.kind!==`workflow-execution-attempt`||i.claims?.executionId!==r)throw Error(`Cannot rotate workflow execution bus secret: attempt "${n}" is not registered for execution "${r}"`);let a=e(32).toString(`hex`);return{secret:a,cleanup:d(n,a)}}function y(e){return u(e.executionAttemptId)===null?_(e):v(e)}function b(e){let{executionAttemptId:t,executionId:n}=e,r=l(t);if(r!==null){if(r.kind!==`workflow-execution-attempt`||r.claims?.executionId!==n)throw Error(`Cannot capture workflow execution bus secret cleanup: attempt "${t}" is not registered for execution "${n}"`);return s(t)}}function x(e){return u(e)??void 0}export{h as buildExecutionAttemptAllowedSubjects,b as captureWorkflowExecutionBusSecretCleanup,y as mintOrRotateWorkflowExecutionBusSecret,_ as mintWorkflowExecutionBusSecret,g as registerWorkflowExecutionBusSecret,x as resolveWorkflowExecutionBusSecret,v as rotateWorkflowExecutionBusSecret};
|
|
1
|
+
import{randomBytes as e}from"node:crypto";import{getFullSubjectForSubjectDefinition as t}from"@makaio/framework/core";import{ArtifactSubjects as n,ExecutionAttemptSubjects as r,SubagentSubjects as i,WorkerSubjects as a,WorkflowSubjects as o}from"@makaio/framework/contracts";import{captureHmacIdentitySecretCleanup as s,registerHmacIdentitySecret as c,resolveHmacIdentityPeer as l,resolveHmacIdentitySecret as u,rotateHmacIdentitySecret as d}from"@makaio/framework/node/transports";import{AdapterSubsystemSubjects as f}from"@makaio/framework/services/adapter-subsystem";import{WorkflowStorageSubjects as p}from"@makaio/framework/workflow-engine";const m=[r.runtime.register,r.bootstrap.awaitStart,r.instruction.get,r.operation.admit,r.operation.report,r.operation.deliver,r.outcome.submit,r.control.deliver,r.control.report,a.runtime.inputs.get,a.control.outcome.submit,o.getRunContext,f.listAdapters,o.bootstrapAuthorityState,o.finalizeDelegateResult,p.getExecution,p.setFrame,p.setSpan,p.listFrames,p.getGateInstance,p.setGateInstance,o.frame.started,o.frame.completed,o.frame.failed,o.frame.sessionLinked,o.execution.progress,o.gate.suspended,o.gate.resumed,o.gate.resolved,o.gate.respond,o.state.get,o.state.patch,o.resolveAgent,o.resolveRole,n.kind.list,n.query,n.resolve,n.create,n.revise,n.patch,o.artifact.updated,i.spawn,i.await,i.getStatus,i.kill];function h(e){return[...m.map(t),`workflow.${e}.cancel`]}function g(e){let{executionAttemptId:t,executionId:n,secret:r}=e,i=e.allowedSubjects??h(n);return{secret:r,cleanup:c(t,r,{peerKind:`workflow-execution-attempt`,claims:{executionId:n},allowedSubjects:i})}}function _(t){let n=e(32).toString(`hex`);return g({...t,secret:n})}function v(t){let{executionAttemptId:n,executionId:r}=t,i=l(n);if(i?.kind!==`workflow-execution-attempt`||i.claims?.executionId!==r)throw Error(`Cannot rotate workflow execution bus secret: attempt "${n}" is not registered for execution "${r}"`);let a=e(32).toString(`hex`);return{secret:a,cleanup:d(n,a)}}function y(e){return u(e.executionAttemptId)===null?_(e):v(e)}function b(e){let{executionAttemptId:t,executionId:n}=e,r=l(t);if(r!==null){if(r.kind!==`workflow-execution-attempt`||r.claims?.executionId!==n)throw Error(`Cannot capture workflow execution bus secret cleanup: attempt "${t}" is not registered for execution "${n}"`);return s(t)}}function x(e){return u(e)??void 0}export{h as buildExecutionAttemptAllowedSubjects,b as captureWorkflowExecutionBusSecretCleanup,y as mintOrRotateWorkflowExecutionBusSecret,_ as mintWorkflowExecutionBusSecret,g as registerWorkflowExecutionBusSecret,x as resolveWorkflowExecutionBusSecret,v as rotateWorkflowExecutionBusSecret};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{l as n,r}from"./kind-registration-CyMf-vey.mjs";import{t as i}from"./repo-context-Dy6eE9cg.mjs";import{z as a}from"zod";const o=a.string().min(1).regex(/\S/),s=a.strictObject({refClass:a.literal(`artifact`),kind:o,id:o,revision:o}),c=`x-makaio-value-type`,l=`evidence/v1`,u=a.string().min(1).regex(/\S/),d=a.strictObject({kind:a.literal(`whole-source`)}),f=a.strictObject({kind:a.literal(`lines`),startLine:a.number().int().positive(),lineCount:a.number().int().positive()}),p=a.strictObject({kind:a.literal(`data-path`),path:r}),m=a.strictObject({kind:a.literal(`git-file`),repository:i.strict(),path:u,commit:a.string().regex(/^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64})$/)}),h=a.strictObject({kind:a.literal(`confluence-page`),site:u,pageId:u,version:a.number().int().positive()}),g=a.strictObject({kind:a.literal(`artifact`),reference:s}),_=a.union([a.strictObject({source:m,location:a.union([d,f]),excerpt:a.string().optional()}),a.strictObject({source:h,location:d,excerpt:a.string().optional()}),a.strictObject({source:g,location:a.union([d,p]),excerpt:a.string().optional()})]).meta({title:`EvidenceValue`,description:`An immutable, directly cited source and its source-specific location.`,[c]:l}),v=a.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`),y=a.object({kind:a.string().min(1),id:a.string().min(1),displayName:a.string().optional()}),b=a.object({level:a.string().min(1),ids:a.record(a.string().min(1),a.string().min(1)).optional()}).superRefine((e,t)=>{e.level!==`global`&&(!e.ids||Object.keys(e.ids).length===0)&&t.addIssue({code:a.ZodIssueCode.custom,path:[`ids`],message:`ids is required when scope level is not 'global'`})}),x=a.object({level:a.string().min(1),ids:a.record(a.string().min(1),a.string().min(1)).optional()}),S=a.object({refClass:a.literal(`local`).default(`local`),artifact:s,localId:a.string().min(1)}),C=a.object({refClass:a.literal(`evidence`).default(`evidence`),kind:a.string().min(1),id:a.string().min(1),revision:a.string().min(1).optional(),locator:a.string().min(1).optional()}),w=a.strictObject({refClass:a.literal(`entity`),entityType:a.string().min(1),id:a.string().min(1)}),T=a.discriminatedUnion(`refClass`,[s,S,C,w]);function E(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e||!(`revision`in e)?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const D=a.preprocess(E,T),O=a.discriminatedUnion(`refClass`,[s.extend({revision:s.shape.revision.optional()}),S,C,w]);function k(e){return!e||typeof e!=`object`||Array.isArray(e)||`refClass`in e?e:`artifact`in e&&`localId`in e?{...e,refClass:`local`}:`locator`in e?{...e,refClass:`evidence`}:{...e,refClass:`artifact`}}const A=a.preprocess(k,O),j=a.object({type:a.string().min(1),target:D}),M=a.enum([`assumed`,`inferred`,`stated`,`confirmed`,`verified`]),N=a.object({kind:a.string().min(1),actor:y,timestamp:a.number().int().nonnegative(),detail:a.string().optional(),evidenceRef:D.optional()}),P=a.object({level:M,basis:a.array(N)}),F=a.object({id:a.string().min(1),kind:a.string().min(1),summary:a.string().min(1),detail:a.string().optional(),severity:a.enum([`info`,`warning`,`blocker`]).optional(),tags:a.array(a.string().min(1)).optional(),regarding:a.union([s,S]).optional(),evidence:a.union([s,C]).optional(),actor:y,timestamp:a.number().int().nonnegative()}),I=a.object({markdown:a.string().optional(),summary:a.string().optional(),plaintext:a.string().optional()}),L=a.object({kind:s.shape.kind,id:s.shape.id,revision:s.shape.revision,scope:b,schemaVersion:n,data:e,relations:a.array(j),evidence:a.array(_).optional(),confidence:P.optional(),representations:I.optional(),actor:y,timestamp:a.number().int().nonnegative(),createdAt:a.number().int().nonnegative().optional()}),R=a.object({type:a.string().min(1),symmetry:a.enum([`asymmetric`,`symmetric`]),implication:a.string().min(1).optional(),sourceKinds:a.array(a.string().min(1)).optional(),targetKinds:a.array(a.string().min(1)).optional(),targetRefClasses:a.array(a.enum([`artifact`,`local`,`evidence`,`entity`])).optional()}),z=a.object({kind:a.string().min(1).optional(),scope:x.optional(),ids:a.array(a.string().min(1)).optional(),currentOnly:a.boolean().optional(),search:a.string().optional(),relation:a.object({type:a.string().min(1).optional(),target:A.optional()}).optional(),confidence:a.object({maxLevel:M.optional(),minLevel:M.optional()}).optional(),indexed:a.record(a.string(),t).optional(),limit:a.number().int().min(1).optional()}),B=a.object({base:s,target:s}),V=a.object({base:L,target:L,changedPaths:a.array(a.string())});export{_ as C,l as S,w as _,z as a,R as b,j as c,L as d,b as f,P as g,M as h,F as i,D as l,N as m,B as n,x as o,v as p,V as r,A as s,y as t,I as u,C as v,s as w,c as x,S as y};
|
|
@@ -18,8 +18,8 @@ declare const AdapterSubsystemSchemas: {
|
|
|
18
18
|
config: z.ZodNullable<z.ZodObject<{
|
|
19
19
|
description: z.ZodOptional<z.ZodString>;
|
|
20
20
|
displayName: z.ZodOptional<z.ZodString>;
|
|
21
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
22
21
|
protocol: z.ZodOptional<z.ZodString>;
|
|
22
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
23
23
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
24
|
label: z.ZodString;
|
|
25
25
|
url: z.ZodString;
|
|
@@ -46,8 +46,8 @@ declare const AdapterSubsystemSchemas: {
|
|
|
46
46
|
configs: z.ZodArray<z.ZodObject<{
|
|
47
47
|
description: z.ZodOptional<z.ZodString>;
|
|
48
48
|
displayName: z.ZodOptional<z.ZodString>;
|
|
49
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
50
49
|
protocol: z.ZodOptional<z.ZodString>;
|
|
50
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
51
51
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
52
|
label: z.ZodString;
|
|
53
53
|
url: z.ZodString;
|
|
@@ -1717,8 +1717,8 @@ declare const AdapterSubsystemSchemas: {
|
|
|
1717
1717
|
config: z.ZodObject<{
|
|
1718
1718
|
description: z.ZodOptional<z.ZodString>;
|
|
1719
1719
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1720
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
1721
1720
|
protocol: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
1722
1722
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1723
1723
|
label: z.ZodString;
|
|
1724
1724
|
url: z.ZodString;
|
|
@@ -3122,8 +3122,8 @@ type BindingRecord = z.infer<typeof BindingRecordSchema>;
|
|
|
3122
3122
|
declare const AdapterFileConfigSchema: z.ZodObject<{
|
|
3123
3123
|
description: z.ZodOptional<z.ZodString>;
|
|
3124
3124
|
displayName: z.ZodOptional<z.ZodString>;
|
|
3125
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
3126
3125
|
protocol: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
3127
3127
|
helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3128
3128
|
label: z.ZodString;
|
|
3129
3129
|
url: z.ZodString;
|