@requence/service 0.7.1 → 0.8.1

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 (87) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +15 -0
  3. package/build/{chunk-6w7td62p.js → chunk-8r349zge.js} +46 -3
  4. package/build/chunk-8r349zge.js.map +11 -0
  5. package/build/cli.js +17 -7
  6. package/build/cli.js.map +3 -3
  7. package/build/index.js +1261 -446
  8. package/build/index.js.map +28 -14
  9. package/build/types/helpers/src/index.d.ts +8 -2
  10. package/build/types/helpers/src/index.d.ts.map +1 -1
  11. package/build/types/helpers/src/jsonschema/validate.d.ts +1 -5
  12. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  13. package/build/types/helpers/src/jsonschema/zod.d.ts +11 -1
  14. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  15. package/build/types/helpers/src/protocol/NodeTree.d.ts +450 -144
  16. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  17. package/build/types/helpers/src/protocol/command.d.ts +364 -142
  18. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  19. package/build/types/helpers/src/protocol/configurationScript.d.ts +10 -0
  20. package/build/types/helpers/src/protocol/configurationScript.d.ts.map +1 -0
  21. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -1
  22. package/build/types/helpers/src/protocol/index.d.ts +4 -0
  23. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  24. package/build/types/helpers/src/protocol/logicLanguages.d.ts +19 -0
  25. package/build/types/helpers/src/protocol/logicLanguages.d.ts.map +1 -0
  26. package/build/types/helpers/src/protocol/loopDetection.d.ts +23 -0
  27. package/build/types/helpers/src/protocol/loopDetection.d.ts.map +1 -0
  28. package/build/types/helpers/src/protocol/nodeType.d.ts +73 -27
  29. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  30. package/build/types/helpers/src/protocol/taskOptions.d.ts +4 -1
  31. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  32. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +36 -20
  33. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
  34. package/build/types/helpers/src/protocol/treeNodes.d.ts +476 -164
  35. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  36. package/build/types/helpers/src/protocol/update.d.ts +22 -22
  37. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts +22 -0
  38. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts.map +1 -0
  39. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts +3 -0
  40. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts.map +1 -0
  41. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +5 -0
  42. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -0
  43. package/build/types/helpers/src/utils/claimCheckObject.d.ts +40 -0
  44. package/build/types/helpers/src/utils/claimCheckObject.d.ts.map +1 -0
  45. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -1
  46. package/build/types/helpers/src/{files → utils}/fileObject.d.ts.map +1 -1
  47. package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts.map +1 -1
  48. package/build/types/helpers/src/utils/mapData.d.ts +1 -1
  49. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  50. package/build/types/helpers/src/{files → utils}/streamObject.d.ts.map +1 -1
  51. package/build/types/helpers/src/utils/variableRef.d.ts +19 -0
  52. package/build/types/helpers/src/utils/variableRef.d.ts.map +1 -0
  53. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts +125 -0
  54. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts.map +1 -0
  55. package/build/types/service/src/boundary.d.ts +75 -0
  56. package/build/types/service/src/boundary.d.ts.map +1 -0
  57. package/build/types/service/src/createAmqpConnection.d.ts +21 -4
  58. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  59. package/build/types/service/src/errors.d.ts +31 -0
  60. package/build/types/service/src/errors.d.ts.map +1 -1
  61. package/build/types/service/src/helpers.d.ts +59 -56
  62. package/build/types/service/src/helpers.d.ts.map +1 -1
  63. package/build/types/service/src/index.d.ts +7 -1
  64. package/build/types/service/src/index.d.ts.map +1 -1
  65. package/build/types/service/src/transformer.d.ts +16 -0
  66. package/build/types/service/src/transformer.d.ts.map +1 -0
  67. package/package.json +6 -3
  68. package/build/chunk-6w7td62p.js.map +0 -10
  69. package/build/types/helpers/src/files/RequenceFile.d.ts +0 -40
  70. package/build/types/helpers/src/files/RequenceFile.d.ts.map +0 -1
  71. package/build/types/helpers/src/files/RequenceStream.d.ts +0 -32
  72. package/build/types/helpers/src/files/RequenceStream.d.ts.map +0 -1
  73. package/build/types/helpers/src/files/index.d.ts +0 -7
  74. package/build/types/helpers/src/files/index.d.ts.map +0 -1
  75. package/build/types/helpers/src/files/mapOutput.d.ts +0 -10
  76. package/build/types/helpers/src/files/mapOutput.d.ts.map +0 -1
  77. package/build/types/helpers/src/files/types.d.ts +0 -4
  78. package/build/types/helpers/src/files/types.d.ts.map +0 -1
  79. package/build/types/helpers/src/utils/createObjectProxy.d.ts +0 -2
  80. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +0 -1
  81. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +0 -8
  82. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +0 -1
  83. package/build/types/service/src/mapInput.d.ts +0 -2
  84. package/build/types/service/src/mapInput.d.ts.map +0 -1
  85. /package/build/types/helpers/src/{files → utils}/fileObject.d.ts +0 -0
  86. /package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts +0 -0
  87. /package/build/types/helpers/src/{files → utils}/streamObject.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA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AAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ export type ConfigurationScriptField = {
2
+ key: string;
3
+ body: string;
4
+ };
5
+ /**
6
+ * The single generator both sides use. `javascript`/`typescript` share the JS
7
+ * guest; only `python` differs.
8
+ */
9
+ export declare function generateConfigurationScript(language: string, fields: ConfigurationScriptField[]): string;
10
+ //# sourceMappingURL=configurationScript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurationScript.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/configurationScript.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,wBAAwB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AA8DpE;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,wBAAwB,EAAE,GACjC,MAAM,CAIR"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE/B,qBAAa,kBAAmB,SAAQ,KAAK;aAGzB,MAAM,CAAC,EAAE,MAAM;gBAD/B,OAAO,EAAE,MAAM,EACC,MAAM,CAAC,EAAE,MAAM,YAAA;CAIlC;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,EAC/C,GAAG,EAAE,CAAC,CAAC,aAAa,EACpB,OAAO,EAAE,CAAC,GACT,UAAU,CAAC,CAAC,CAAC,CAkBf"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE/B,qBAAa,kBAAmB,SAAQ,KAAK;aAGzB,MAAM,CAAC,EAAE,MAAM;IAFjC,YACE,OAAO,EAAE,MAAM,EACC,MAAM,CAAC,EAAE,MAAM,YAAA,EAGhC;CACF;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,EAC/C,GAAG,EAAE,CAAC,CAAC,aAAa,EACpB,OAAO,EAAE,CAAC,GACT,UAAU,CAAC,CAAC,CAAC,CAkBf"}
@@ -1,7 +1,11 @@
1
1
  export * from './command.ts';
2
+ export * from './configurationScript.ts';
3
+ export * from './logicLanguages.ts';
4
+ export * from './loopDetection.ts';
2
5
  export * from './nodeType.ts';
3
6
  export * from './update.ts';
4
7
  export * from './treeNodes.ts';
8
+ export * from './validateTreeStructure.ts';
5
9
  export * from './NodeTree.ts';
6
10
  export * from './taskOptions.ts';
7
11
  export * from './templateNodeTypes.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,19 @@
1
+ export declare const LOGIC_LANGUAGES: readonly ['javascript', 'python', 'typescript'];
2
+ export type LogicLanguage = (typeof LOGIC_LANGUAGES)[number];
3
+ export declare const EXECUTABLE_LOGIC_LANGUAGES: readonly ["javascript", "python", "typescript"];
4
+ export type ExecutableLogicLanguage = (typeof EXECUTABLE_LOGIC_LANGUAGES)[number];
5
+ export declare const LOGIC_TOOLCHAINS: readonly ['node', 'python'];
6
+ export type LogicToolchain = (typeof LOGIC_TOOLCHAINS)[number];
7
+ export declare const TOOLCHAIN_LANGUAGES: {
8
+ readonly node: readonly ["javascript", "typescript"];
9
+ readonly python: readonly ["python"];
10
+ };
11
+ export declare function languagesForToolchains(toolchains: readonly LogicToolchain[]): readonly ExecutableLogicLanguage[];
12
+ export declare const DEFAULT_LOGIC_SCRIPTS: {
13
+ javascript: string;
14
+ typescript: string;
15
+ python: string;
16
+ };
17
+ export declare function getDefaultLogicScript(language: LogicLanguage): string;
18
+ export declare function isDefaultLogicScript(script: string): boolean;
19
+ //# sourceMappingURL=logicLanguages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logicLanguages.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/logicLanguages.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,YAAI,YAAY,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAA;AAC9E,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAQ5D,eAAO,MAAM,0BAA0B,iDAIM,CAAA;AAC7C,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAA;AAK7C,eAAO,MAAM,gBAAgB,YAAI,MAAM,EAAE,QAAQ,CAAU,CAAA;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAS9D,eAAO,MAAM,mBAAmB;;;CAG+C,CAAA;AAQ/E,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,SAAS,cAAc,EAAE,GACpC,SAAS,uBAAuB,EAAE,CAKpC;AAID,eAAO,MAAM,qBAAqB;;;;CAIO,CAAA;AAEzC,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAErE;AAQD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE5D"}
@@ -0,0 +1,23 @@
1
+ export declare const UNCONDITIONAL_LOOP_MESSAGE = "unconditional infinite loop detected";
2
+ interface LoopDetectionNode {
3
+ id: string;
4
+ }
5
+ interface LoopDetectionEdge {
6
+ source: string;
7
+ target: string;
8
+ sourceHandle?: string | null;
9
+ }
10
+ /**
11
+ * Detects an unconditional infinite loop: a cycle formed exclusively by edges
12
+ * that leave their source through its *default* output, where that source has
13
+ * no named outputs at all. A node with any named output treats its default as a
14
+ * conditional fallback, so all of its edges are excluded from the cycle search.
15
+ * Returns the id of the node where the back-edge closes the cycle (matching the
16
+ * traversal order of the array), or `null` when there is none.
17
+ *
18
+ * Single source of truth shared by the backend save-time tree validation
19
+ * (`validatedTreeSchema`) and the frontend's live structural check.
20
+ */
21
+ export declare function findUnconditionalLoop(nodes: ReadonlyArray<LoopDetectionNode>, edges: ReadonlyArray<LoopDetectionEdge>): string | null;
22
+ export {};
23
+ //# sourceMappingURL=loopDetection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loopDetection.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/loopDetection.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,yCAAyC,CAAA;AAEhF,UAAU,iBAAiB;IACzB,EAAE,EAAE,MAAM,CAAA;CACX;AAED,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,EACvC,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,GACtC,MAAM,GAAG,IAAI,CAyDf"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod/v4';
2
+ export declare const RESERVED_OUTPUT_NAMES: ReadonlyArray<string>;
2
3
  export declare const entryNodeSchema: z.ZodObject<{
3
4
  id: z.ZodDefault<z.ZodUUID>;
4
5
  type: z.ZodLiteral<"entry">;
@@ -6,7 +7,20 @@ export declare const entryNodeSchema: z.ZodObject<{
6
7
  inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
7
8
  }, z.core.$strict>;
8
9
  export type EntryNode = z.output<typeof entryNodeSchema>;
10
+ export declare const configurationFunctionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
11
+ language: z.ZodDefault<z.ZodEnum<{
12
+ javascript: "javascript";
13
+ python: "python";
14
+ typescript: "typescript";
15
+ }>>;
16
+ body: z.ZodString;
17
+ }, z.core.$strict>>;
18
+ export type ConfigurationFunctions = z.output<typeof configurationFunctionsSchema>;
9
19
  export declare const serviceNodeSchema: z.ZodObject<{
20
+ outputs: z.ZodArray<z.ZodObject<{
21
+ name: z.ZodNullable<z.ZodString>;
22
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
23
+ }, z.core.$strip>>;
10
24
  id: z.ZodDefault<z.ZodUUID>;
11
25
  type: z.ZodLiteral<"service">;
12
26
  alias: z.ZodOptional<z.ZodString>;
@@ -16,31 +30,41 @@ export declare const serviceNodeSchema: z.ZodObject<{
16
30
  type: z.ZodLiteral<"null">;
17
31
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
18
32
  $ref: z.ZodString;
33
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodIntersection<z.ZodObject<{
34
+ oneOf: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
35
+ type: z.ZodLiteral<"object">;
36
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
37
+ type: z.ZodLiteral<"null">;
38
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
39
+ $ref: z.ZodString;
40
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
19
41
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
20
42
  name: z.ZodString;
21
43
  version: z.ZodString;
22
44
  configuration: z.ZodOptional<z.ZodAny>;
23
45
  configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
24
46
  ttl: z.ZodOptional<z.ZodNumber>;
25
- retry: z.ZodOptional<z.ZodNumber>;
47
+ retry: z.ZodDefault<z.ZodNumber>;
26
48
  retryDelay: z.ZodOptional<z.ZodNumber>;
27
49
  mode: z.ZodDefault<z.ZodEnum<{
28
- LINEAR: "LINEAR";
29
50
  CONTINUOUS: "CONTINUOUS";
51
+ LINEAR: "LINEAR";
30
52
  }>>;
31
- outputs: z.ZodArray<z.ZodObject<{
32
- name: z.ZodNullable<z.ZodString>;
33
- schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
34
- }, z.core.$strip>>;
53
+ privileged: z.ZodDefault<z.ZodBoolean>;
54
+ configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
35
55
  }, z.core.$strict>;
36
56
  export type ServiceNode = z.output<typeof serviceNodeSchema>;
37
- /** No retry, 10s retry delay, infinite TTL */
57
+ /** No retry (0 attempts), 10s retry delay, infinite TTL */
38
58
  export declare const SERVICE_SETTINGS_GLOBAL_DEFAULTS: {
39
- readonly retry: undefined;
59
+ readonly retry: 0;
40
60
  readonly retryDelay: 10000;
41
61
  readonly ttl: undefined;
42
62
  };
43
63
  export declare const logicNodeSchema: z.ZodObject<{
64
+ outputs: z.ZodArray<z.ZodObject<{
65
+ name: z.ZodNullable<z.ZodString>;
66
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
67
+ }, z.core.$strip>>;
44
68
  id: z.ZodDefault<z.ZodUUID>;
45
69
  type: z.ZodLiteral<"logic">;
46
70
  alias: z.ZodOptional<z.ZodString>;
@@ -52,10 +76,6 @@ export declare const logicNodeSchema: z.ZodObject<{
52
76
  typescript: "typescript";
53
77
  }>>;
54
78
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
55
- outputs: z.ZodArray<z.ZodObject<{
56
- name: z.ZodNullable<z.ZodString>;
57
- schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
58
- }, z.core.$strip>>;
59
79
  }, z.core.$strict>;
60
80
  export type LogicNode = z.output<typeof logicNodeSchema>;
61
81
  export declare const orNodeSchema: z.ZodObject<{
@@ -65,6 +85,10 @@ export declare const orNodeSchema: z.ZodObject<{
65
85
  }, z.core.$strict>;
66
86
  export type OrNode = z.output<typeof orNodeSchema>;
67
87
  export declare const referenceNodeSchema: z.ZodObject<{
88
+ outputs: z.ZodArray<z.ZodObject<{
89
+ name: z.ZodNullable<z.ZodString>;
90
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
91
+ }, z.core.$strip>>;
68
92
  id: z.ZodDefault<z.ZodUUID>;
69
93
  type: z.ZodLiteral<"reference">;
70
94
  alias: z.ZodOptional<z.ZodString>;
@@ -76,11 +100,15 @@ export declare const referenceNodeSchema: z.ZodObject<{
76
100
  type: z.ZodLiteral<"null">;
77
101
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
78
102
  $ref: z.ZodString;
103
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodIntersection<z.ZodObject<{
104
+ oneOf: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
105
+ type: z.ZodLiteral<"object">;
106
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
107
+ type: z.ZodLiteral<"null">;
108
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
109
+ $ref: z.ZodString;
110
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
79
111
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
80
- outputs: z.ZodArray<z.ZodObject<{
81
- name: z.ZodNullable<z.ZodString>;
82
- schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
83
- }, z.core.$strip>>;
84
112
  }, z.core.$strict>;
85
113
  export type ReferenceNode = z.output<typeof referenceNodeSchema>;
86
114
  export declare const exitNodeSchema: z.ZodObject<{
@@ -103,6 +131,10 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
103
131
  alias: z.ZodOptional<z.ZodString>;
104
132
  inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
105
133
  }, z.core.$strict>, z.ZodObject<{
134
+ outputs: z.ZodArray<z.ZodObject<{
135
+ name: z.ZodNullable<z.ZodString>;
136
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
137
+ }, z.core.$strip>>;
106
138
  id: z.ZodDefault<z.ZodUUID>;
107
139
  type: z.ZodLiteral<"service">;
108
140
  alias: z.ZodOptional<z.ZodString>;
@@ -112,23 +144,33 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
112
144
  type: z.ZodLiteral<"null">;
113
145
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
114
146
  $ref: z.ZodString;
147
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodIntersection<z.ZodObject<{
148
+ oneOf: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
149
+ type: z.ZodLiteral<"object">;
150
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
151
+ type: z.ZodLiteral<"null">;
152
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
153
+ $ref: z.ZodString;
154
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
115
155
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
116
156
  name: z.ZodString;
117
157
  version: z.ZodString;
118
158
  configuration: z.ZodOptional<z.ZodAny>;
119
159
  configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
120
160
  ttl: z.ZodOptional<z.ZodNumber>;
121
- retry: z.ZodOptional<z.ZodNumber>;
161
+ retry: z.ZodDefault<z.ZodNumber>;
122
162
  retryDelay: z.ZodOptional<z.ZodNumber>;
123
163
  mode: z.ZodDefault<z.ZodEnum<{
124
- LINEAR: "LINEAR";
125
164
  CONTINUOUS: "CONTINUOUS";
165
+ LINEAR: "LINEAR";
126
166
  }>>;
167
+ privileged: z.ZodDefault<z.ZodBoolean>;
168
+ configurationServices: z.ZodOptional<z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strict>>>;
169
+ }, z.core.$strict>, z.ZodObject<{
127
170
  outputs: z.ZodArray<z.ZodObject<{
128
171
  name: z.ZodNullable<z.ZodString>;
129
172
  schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
130
173
  }, z.core.$strip>>;
131
- }, z.core.$strict>, z.ZodObject<{
132
174
  id: z.ZodDefault<z.ZodUUID>;
133
175
  type: z.ZodLiteral<"logic">;
134
176
  alias: z.ZodOptional<z.ZodString>;
@@ -140,15 +182,15 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
182
  typescript: "typescript";
141
183
  }>>;
142
184
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
143
- outputs: z.ZodArray<z.ZodObject<{
144
- name: z.ZodNullable<z.ZodString>;
145
- schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
146
- }, z.core.$strip>>;
147
185
  }, z.core.$strict>, z.ZodObject<{
148
186
  id: z.ZodDefault<z.ZodUUID>;
149
187
  type: z.ZodLiteral<"or">;
150
188
  alias: z.ZodOptional<z.ZodString>;
151
189
  }, z.core.$strict>, z.ZodObject<{
190
+ outputs: z.ZodArray<z.ZodObject<{
191
+ name: z.ZodNullable<z.ZodString>;
192
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
193
+ }, z.core.$strip>>;
152
194
  id: z.ZodDefault<z.ZodUUID>;
153
195
  type: z.ZodLiteral<"reference">;
154
196
  alias: z.ZodOptional<z.ZodString>;
@@ -160,11 +202,15 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
160
202
  type: z.ZodLiteral<"null">;
161
203
  }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
162
204
  $ref: z.ZodString;
205
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodIntersection<z.ZodObject<{
206
+ oneOf: z.ZodArray<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
207
+ type: z.ZodLiteral<"object">;
208
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
209
+ type: z.ZodLiteral<"null">;
210
+ }, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
211
+ $ref: z.ZodString;
212
+ }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
163
213
  }, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>]>>;
164
- outputs: z.ZodArray<z.ZodObject<{
165
- name: z.ZodNullable<z.ZodString>;
166
- schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
167
- }, z.core.$strip>>;
168
214
  }, z.core.$strict>, z.ZodObject<{
169
215
  id: z.ZodDefault<z.ZodUUID>;
170
216
  type: z.ZodLiteral<"exit">;
@@ -1 +1 @@
1
- {"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/nodeType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAkC1B,eAAO,MAAM,eAAe;;;;;kBAK1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAExD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqBF,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE5D,8CAA8C;AAC9C,eAAO,MAAM,gCAAgC;;;;CAInC,CAAA;AAEV,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;kBAYA,CAAA;AAC5B,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAExD,eAAO,MAAM,YAAY;;;;kBAIvB,CAAA;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA;AAElD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;kBAeJ,CAAA;AAC5B,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC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ional<z.ZodNumber>>;
4
4
  mode: z.ZodDefault<z.ZodEnum<{
5
- LINEAR: "LINEAR";
6
5
  CONTINUOUS: "CONTINUOUS";
6
+ LINEAR: "LINEAR";
7
7
  }>>;
8
8
  priority: z.ZodDefault<z.ZodInt>;
9
9
  uploadUrl: z.ZodOptional<z.ZodString>;
10
10
  streamUrl: z.ZodOptional<z.ZodString>;
11
+ maxPayloadSize: z.ZodOptional<z.ZodNumber>;
12
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
11
13
  continuous: z.ZodDefault<z.ZodObject<{
12
14
  maxReconnects: z.ZodDefault<z.ZodNumber>;
13
15
  }, z.core.$strip>>;
@@ -16,6 +18,7 @@ export declare const taskOptionsSchema: z.ZodObject<{
16
18
  taskId: z.ZodUUID;
17
19
  nodeId: z.ZodUUID;
18
20
  messageId: z.ZodUUID;
21
+ epoch: z.ZodOptional<z.ZodUUID>;
19
22
  }, z.core.$strip>>;
20
23
  }, z.core.$strip>;
21
24
  export type TaskOptions = z.output<typeof taskOptionsSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"taskOptions.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/taskOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;iBAmB5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
1
+ {"version":3,"file":"taskOptions.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/taskOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iBA4B5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
@@ -16,15 +16,12 @@ export declare const templateEntryNodeSchema: z.ZodObject<{
16
16
  }, z.core.$strip>;
17
17
  export type TemplateEntryNode = z.output<typeof templateEntryNodeSchema>;
18
18
  export declare const templateServiceNodeSchema: z.ZodObject<{
19
- type: z.ZodLiteral<"service">;
20
19
  id: z.ZodDefault<z.ZodUUID>;
20
+ type: z.ZodLiteral<"service">;
21
21
  alias: z.ZodOptional<z.ZodString>;
22
22
  configuration: z.ZodOptional<z.ZodAny>;
23
23
  ttl: z.ZodOptional<z.ZodNumber>;
24
- retry: z.ZodOptional<z.ZodNumber>;
25
24
  retryDelay: z.ZodOptional<z.ZodNumber>;
26
- serviceVersion: z.ZodNullable<z.ZodUUID>;
27
- localInvocation: z.ZodOptional<z.ZodUUID>;
28
25
  position: z.ZodObject<{
29
26
  x: z.ZodNumber;
30
27
  y: z.ZodNumber;
@@ -34,9 +31,24 @@ export declare const templateServiceNodeSchema: z.ZodObject<{
34
31
  height: z.ZodOptional<z.ZodNumber>;
35
32
  }, z.core.$strip>>;
36
33
  flipped: z.ZodOptional<z.ZodBoolean>;
34
+ serviceVersion: z.ZodNullable<z.ZodUUID>;
35
+ localInvocation: z.ZodOptional<z.ZodUUID>;
36
+ retry: z.ZodOptional<z.ZodNumber>;
37
+ configurationFunctions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
38
+ language: z.ZodDefault<z.ZodEnum<{
39
+ javascript: "javascript";
40
+ python: "python";
41
+ typescript: "typescript";
42
+ }>>;
43
+ body: z.ZodString;
44
+ }, z.core.$strict>>>;
37
45
  }, z.core.$strip>;
38
46
  export type TemplateServiceNode = z.output<typeof templateServiceNodeSchema>;
39
47
  export declare const templateLogicNodeSchema: z.ZodObject<{
48
+ outputs: z.ZodArray<z.ZodObject<{
49
+ name: z.ZodNullable<z.ZodString>;
50
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
51
+ }, z.core.$strip>>;
40
52
  id: z.ZodDefault<z.ZodUUID>;
41
53
  type: z.ZodLiteral<"logic">;
42
54
  alias: z.ZodOptional<z.ZodString>;
@@ -48,10 +60,6 @@ export declare const templateLogicNodeSchema: z.ZodObject<{
48
60
  typescript: "typescript";
49
61
  }>>;
50
62
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
51
- outputs: z.ZodArray<z.ZodObject<{
52
- name: z.ZodNullable<z.ZodString>;
53
- schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
54
- }, z.core.$strip>>;
55
63
  position: z.ZodObject<{
56
64
  x: z.ZodNumber;
57
65
  y: z.ZodNumber;
@@ -79,10 +87,9 @@ export declare const templateOrNodeSchema: z.ZodObject<{
79
87
  }, z.core.$strip>;
80
88
  export type TemplateOrNode = z.output<typeof templateOrNodeSchema>;
81
89
  export declare const templateReferenceNodeSchema: z.ZodObject<{
82
- type: z.ZodLiteral<"reference">;
83
90
  id: z.ZodDefault<z.ZodUUID>;
91
+ type: z.ZodLiteral<"reference">;
84
92
  alias: z.ZodOptional<z.ZodString>;
85
- reference: z.ZodNullable<z.ZodUUID>;
86
93
  position: z.ZodObject<{
87
94
  x: z.ZodNumber;
88
95
  y: z.ZodNumber;
@@ -92,6 +99,7 @@ export declare const templateReferenceNodeSchema: z.ZodObject<{
92
99
  height: z.ZodOptional<z.ZodNumber>;
93
100
  }, z.core.$strip>>;
94
101
  flipped: z.ZodOptional<z.ZodBoolean>;
102
+ reference: z.ZodNullable<z.ZodUUID>;
95
103
  }, z.core.$strip>;
96
104
  export type TemplateReferenceNode = z.output<typeof templateReferenceNodeSchema>;
97
105
  export declare const templateExitNodeSchema: z.ZodObject<{
@@ -162,15 +170,12 @@ export declare const templateTreeSchema: z.ZodObject<{
162
170
  }, z.core.$strip>>;
163
171
  flipped: z.ZodOptional<z.ZodBoolean>;
164
172
  }, z.core.$strip>, z.ZodObject<{
165
- type: z.ZodLiteral<"service">;
166
173
  id: z.ZodDefault<z.ZodUUID>;
174
+ type: z.ZodLiteral<"service">;
167
175
  alias: z.ZodOptional<z.ZodString>;
168
176
  configuration: z.ZodOptional<z.ZodAny>;
169
177
  ttl: z.ZodOptional<z.ZodNumber>;
170
- retry: z.ZodOptional<z.ZodNumber>;
171
178
  retryDelay: z.ZodOptional<z.ZodNumber>;
172
- serviceVersion: z.ZodNullable<z.ZodUUID>;
173
- localInvocation: z.ZodOptional<z.ZodUUID>;
174
179
  position: z.ZodObject<{
175
180
  x: z.ZodNumber;
176
181
  y: z.ZodNumber;
@@ -180,7 +185,22 @@ export declare const templateTreeSchema: z.ZodObject<{
180
185
  height: z.ZodOptional<z.ZodNumber>;
181
186
  }, z.core.$strip>>;
182
187
  flipped: z.ZodOptional<z.ZodBoolean>;
188
+ serviceVersion: z.ZodNullable<z.ZodUUID>;
189
+ localInvocation: z.ZodOptional<z.ZodUUID>;
190
+ retry: z.ZodOptional<z.ZodNumber>;
191
+ configurationFunctions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
192
+ language: z.ZodDefault<z.ZodEnum<{
193
+ javascript: "javascript";
194
+ python: "python";
195
+ typescript: "typescript";
196
+ }>>;
197
+ body: z.ZodString;
198
+ }, z.core.$strict>>>;
183
199
  }, z.core.$strip>, z.ZodObject<{
200
+ outputs: z.ZodArray<z.ZodObject<{
201
+ name: z.ZodNullable<z.ZodString>;
202
+ schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
203
+ }, z.core.$strip>>;
184
204
  id: z.ZodDefault<z.ZodUUID>;
185
205
  type: z.ZodLiteral<"logic">;
186
206
  alias: z.ZodOptional<z.ZodString>;
@@ -192,10 +212,6 @@ export declare const templateTreeSchema: z.ZodObject<{
192
212
  typescript: "typescript";
193
213
  }>>;
194
214
  maxExecutionTime: z.ZodDefault<z.ZodNumber>;
195
- outputs: z.ZodArray<z.ZodObject<{
196
- name: z.ZodNullable<z.ZodString>;
197
- schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
198
- }, z.core.$strip>>;
199
215
  position: z.ZodObject<{
200
216
  x: z.ZodNumber;
201
217
  y: z.ZodNumber;
@@ -219,10 +235,9 @@ export declare const templateTreeSchema: z.ZodObject<{
219
235
  }, z.core.$strip>>;
220
236
  flipped: z.ZodOptional<z.ZodBoolean>;
221
237
  }, z.core.$strip>, z.ZodObject<{
222
- type: z.ZodLiteral<"reference">;
223
238
  id: z.ZodDefault<z.ZodUUID>;
239
+ type: z.ZodLiteral<"reference">;
224
240
  alias: z.ZodOptional<z.ZodString>;
225
- reference: z.ZodNullable<z.ZodUUID>;
226
241
  position: z.ZodObject<{
227
242
  x: z.ZodNumber;
228
243
  y: z.ZodNumber;
@@ -232,6 +247,7 @@ export declare const templateTreeSchema: z.ZodObject<{
232
247
  height: z.ZodOptional<z.ZodNumber>;
233
248
  }, z.core.$strip>>;
234
249
  flipped: z.ZodOptional<z.ZodBoolean>;
250
+ reference: z.ZodNullable<z.ZodUUID>;
235
251
  }, z.core.$strip>, z.ZodObject<{
236
252
  id: z.ZodDefault<z.ZodUUID>;
237
253
  type: z.ZodLiteral<"exit">;
@@ -1 +1 @@
1
- {"version":3,"file":"templateNodeTypes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/templateNodeTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AA2B1B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAEP,CAAA;AAC7B,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAExE,eAAO,MAAM,yBAAyB;;;;;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