@requence/task 0.7.1 → 0.8.2-edge.1149

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 (95) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +5 -5
  3. package/build/{chunk-b4h2we9a.js → chunk-f7g9gsa0.js} +33 -3
  4. package/build/chunk-f7g9gsa0.js.map +11 -0
  5. package/build/cli.js +18 -8
  6. package/build/cli.js.map +3 -3
  7. package/build/index.js +1062 -502
  8. package/build/index.js.map +27 -16
  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 +532 -148
  16. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  17. package/build/types/helpers/src/protocol/clientProperties.d.ts +66 -0
  18. package/build/types/helpers/src/protocol/clientProperties.d.ts.map +1 -0
  19. package/build/types/helpers/src/protocol/command.d.ts +372 -142
  20. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  21. package/build/types/helpers/src/protocol/configurationScript.d.ts +10 -0
  22. package/build/types/helpers/src/protocol/configurationScript.d.ts.map +1 -0
  23. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -1
  24. package/build/types/helpers/src/protocol/index.d.ts +5 -0
  25. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/protocol/logicLanguages.d.ts +19 -0
  27. package/build/types/helpers/src/protocol/logicLanguages.d.ts.map +1 -0
  28. package/build/types/helpers/src/protocol/loopDetection.d.ts +23 -0
  29. package/build/types/helpers/src/protocol/loopDetection.d.ts.map +1 -0
  30. package/build/types/helpers/src/protocol/nodeType.d.ts +81 -27
  31. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  32. package/build/types/helpers/src/protocol/taskOptions.d.ts +4 -1
  33. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  34. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +36 -20
  35. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
  36. package/build/types/helpers/src/protocol/treeNodes.d.ts +508 -164
  37. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  38. package/build/types/helpers/src/protocol/update.d.ts +40 -24
  39. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  40. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts +22 -0
  41. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts.map +1 -0
  42. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts +3 -0
  43. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts.map +1 -0
  44. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +45 -0
  45. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -0
  46. package/build/types/helpers/src/utils/claimCheckObject.d.ts +40 -0
  47. package/build/types/helpers/src/utils/claimCheckObject.d.ts.map +1 -0
  48. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -1
  49. package/build/types/helpers/src/{files → utils}/fileObject.d.ts.map +1 -1
  50. package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts.map +1 -1
  51. package/build/types/helpers/src/utils/mapData.d.ts +1 -1
  52. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  53. package/build/types/helpers/src/{files → utils}/streamObject.d.ts.map +1 -1
  54. package/build/types/helpers/src/utils/variableRef.d.ts +19 -0
  55. package/build/types/helpers/src/utils/variableRef.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts +125 -0
  57. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts.map +1 -0
  58. package/build/types/task/src/abortTask.d.ts.map +1 -1
  59. package/build/types/task/src/ackTask.d.ts.map +1 -1
  60. package/build/types/task/src/createTask.d.ts +0 -1
  61. package/build/types/task/src/createTask.d.ts.map +1 -1
  62. package/build/types/task/src/errors.d.ts +27 -0
  63. package/build/types/task/src/errors.d.ts.map +1 -0
  64. package/build/types/task/src/getTask.d.ts +4 -4
  65. package/build/types/task/src/getTask.d.ts.map +1 -1
  66. package/build/types/task/src/index.d.ts +2 -1
  67. package/build/types/task/src/index.d.ts.map +1 -1
  68. package/build/types/task/src/ingress.d.ts +26 -0
  69. package/build/types/task/src/ingress.d.ts.map +1 -0
  70. package/build/types/task/src/protectTask.d.ts.map +1 -1
  71. package/build/types/task/src/recreateTask.d.ts +1 -1
  72. package/build/types/task/src/recreateTask.d.ts.map +1 -1
  73. package/build/types/task/src/types.d.ts +10 -10
  74. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  75. package/build/types/task/src/watchTasks.d.ts +2 -0
  76. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  77. package/package.json +7 -3
  78. package/build/chunk-b4h2we9a.js.map +0 -10
  79. package/build/types/helpers/src/files/RequenceFile.d.ts +0 -40
  80. package/build/types/helpers/src/files/RequenceFile.d.ts.map +0 -1
  81. package/build/types/helpers/src/files/RequenceStream.d.ts +0 -32
  82. package/build/types/helpers/src/files/RequenceStream.d.ts.map +0 -1
  83. package/build/types/helpers/src/files/index.d.ts +0 -7
  84. package/build/types/helpers/src/files/index.d.ts.map +0 -1
  85. package/build/types/helpers/src/files/mapOutput.d.ts +0 -10
  86. package/build/types/helpers/src/files/mapOutput.d.ts.map +0 -1
  87. package/build/types/helpers/src/files/types.d.ts +0 -4
  88. package/build/types/helpers/src/files/types.d.ts.map +0 -1
  89. package/build/types/helpers/src/utils/createObjectProxy.d.ts +0 -2
  90. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +0 -1
  91. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +0 -8
  92. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +0 -1
  93. /package/build/types/helpers/src/{files → utils}/fileObject.d.ts +0 -0
  94. /package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts +0 -0
  95. /package/build/types/helpers/src/{files → utils}/streamObject.d.ts +0 -0
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Signals that the requence system could not be reached — e.g. during a
3
+ * maintenance window or deploy, when the ui backend is unreachable (connection
4
+ * refused / timeout / DNS failure) or an ingress returns a gateway error
5
+ * (502/503/504). Callers should treat this as transient and retry later.
6
+ */
7
+ export declare class RequenceUnreachableError extends Error {
8
+ readonly status?: number | undefined;
9
+ constructor(status?: number | undefined, options?: {
10
+ cause?: unknown;
11
+ });
12
+ }
13
+ export declare function isUnreachableStatus(status: number): boolean;
14
+ /**
15
+ * Throws a {@link RequenceUnreachableError} when the response carries a gateway
16
+ * status indicating the system is unreachable. Call right after a fetch, before
17
+ * inspecting `response.ok`.
18
+ */
19
+ export declare function assertReachable(response: Response): void;
20
+ /**
21
+ * Wraps `fetch` so a transport-level failure (connection refused, DNS failure,
22
+ * timeout) surfaces as a {@link RequenceUnreachableError} instead of a raw
23
+ * TypeError, and gateway statuses (502/503/504) do the same. The returned
24
+ * response is guaranteed not to be a gateway-error response.
25
+ */
26
+ export declare function reachableFetch(input: Parameters<typeof fetch>[0], init?: Parameters<typeof fetch>[1]): Promise<Response>;
27
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/errors.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aAE/B,MAAM,CAAC,EAAE,MAAM;IADjC,YACkB,MAAM,CAAC,EAAE,MAAM,YAAA,EAC/B,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAO9B;CACF;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAIxD;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,KAAK,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAClC,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,GACjC,OAAO,CAAC,QAAQ,CAAC,CASnB"}
@@ -3,21 +3,21 @@ interface GetTaskOptions {
3
3
  taskId: string;
4
4
  }
5
5
  export declare function getTask(taskIdOrOptions: string | GetTaskOptions): Promise<{
6
- status: "SUCCESSFUL" | "FAILED" | "IDLE" | "PENDING" | "RUNNING" | "STOPPED" | "AWAITING_DELIVERY";
6
+ status: "AWAITING_DELIVERY" | "FAILED" | "IDLE" | "PENDING" | "RUNNING" | "STOPPED" | "SUCCESSFUL";
7
7
  statusText: string | null;
8
8
  taskTemplate: string;
9
9
  name: string;
10
- branch: (string & {}) | "live";
10
+ branch: "live" | (string & {});
11
11
  context: {
12
12
  input: unknown;
13
- taskId: string;
14
13
  result: unknown;
14
+ taskId: string;
15
15
  getNodeData: <A extends string>(alias: A) => unknown;
16
16
  getNodeError: (alias: string) => string | null;
17
17
  } | {
18
18
  input: unknown;
19
- taskId: string;
20
19
  result: unknown;
20
+ taskId: string;
21
21
  getNodeData: <A extends string>(alias: A) => unknown;
22
22
  getNodeError: (alias: string) => string | null;
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getTask.d.ts","sourceRoot":"","sources":["../../../../src/getTask.ts"],"names":[],"mappings":"AA4BA,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,wBAAsB,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,cAAc;;;;;;;;;;;;;;;;;;;GA+CrE"}
1
+ {"version":3,"file":"getTask.d.ts","sourceRoot":"","sources":["../../../../src/getTask.ts"],"names":[],"mappings":"AA6BA,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,wBAAsB,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,cAAc;;;;;;;;;;;;;;;;;;;GA0DrE"}
@@ -1,9 +1,10 @@
1
1
  export { createTask, TaskError } from './createTask.ts';
2
+ export { RequenceUnreachableError } from './errors.ts';
2
3
  export { watchTasks } from './watchTasks.ts';
3
4
  export { abortTask } from './abortTask.ts';
4
5
  export { protectTask } from './protectTask.ts';
5
6
  export { getTask } from './getTask.ts';
6
- export { RequenceFile, RequenceStream } from '../../helpers/src/files/index.js';
7
+ export { RequenceFile, RequenceStream } from '@requence/files';
7
8
  export { type RequenceCallback } from '../../helpers/src/index.js';
8
9
  export { recreateTask } from './recreateTask.ts';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC9D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { CallbackIngressContext } from '@requence/callbacks';
2
+ /**
3
+ * The task SDK's composed transformer and its single inbound boundary
4
+ * (issue 07): every reference arriving from the API or the task EventSource
5
+ * rehydrates through `inbound`, so the SDK's ingress cancellation/timeout
6
+ * policy lives here, once — none is applied today, and adding one later is a
7
+ * one-line change. Egress (the task input in `createTask`) uses the same
8
+ * instance via `transformer.outbound`.
9
+ */
10
+ export declare const transformer: import("@requence/transformer").Transformer<import("@requence/files").FileEgressContext & import("@requence/files").StreamEgressContext & import("@requence/callbacks").CallbackEgressContext & object & import("@requence/files").ClaimCheckEgressContext, CallbackIngressContext & object>;
11
+ export declare const inbound: (data: unknown, opts?: CallbackIngressContext) => Promise<unknown>;
12
+ /** Task inputs echo back to their creator; a callback there is a bug. */
13
+ export declare const forbidCallbacks: {
14
+ onCallbackInvoke: () => never;
15
+ };
16
+ /**
17
+ * Watched node data and results are read-only observations: a callback in
18
+ * them may be perfectly legitimate (service-to-service), but the task client
19
+ * has no transport to carry an invocation back. Reconstruct the value so the
20
+ * rest of the payload stays usable — invoking the callback throws instead of
21
+ * silently doing nothing.
22
+ */
23
+ export declare const observeOnlyCallbacks: {
24
+ onCallbackInvoke: () => never;
25
+ };
26
+ //# sourceMappingURL=ingress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingress.d.ts","sourceRoot":"","sources":["../../../../src/ingress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AASjE;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,8RAIiB,CAAA;AAEzC,eAAO,MAAM,OAAO,SACZ,OAAO,SACP,sBAAsB,KAC3B,OAAO,CAAC,OAAO,CAId,CAAA;AAEJ,yEAAyE;AACzE,eAAO,MAAM,eAAe;IAC1B,gBAAgB;CAGjB,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;IAC/B,gBAAgB;CAKjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"protectTask.d.ts","sourceRoot":"","sources":["../../../../src/protectTask.ts"],"names":[],"mappings":"AAWA,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;CACf;AACD,wBAAsB,WAAW,CAAC,OAAO,EAAE,kBAAkB,iBAe5D"}
1
+ {"version":3,"file":"protectTask.d.ts","sourceRoot":"","sources":["../../../../src/protectTask.ts"],"names":[],"mappings":"AAYA,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;CACf;AACD,wBAAsB,WAAW,CAAC,OAAO,EAAE,kBAAkB,iBAe5D"}
@@ -5,6 +5,6 @@ interface RecreateTaskOptions {
5
5
  accessToken?: string;
6
6
  priority?: number;
7
7
  }
8
- export declare function recreateTask(options: RecreateTaskOptions, onUpdate?: Parameters<typeof createTask>[1]): Promise<import("./types.ts").Result<string & {}>>;
8
+ export declare function recreateTask(options: RecreateTaskOptions, onUpdate?: Parameters<typeof createTask>[1]): Promise<import("./types.ts").Result<string>>;
9
9
  export {};
10
10
  //# sourceMappingURL=recreateTask.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recreateTask.d.ts","sourceRoot":"","sources":["../../../../src/recreateTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG5C,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AACD,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,qDAa5C"}
1
+ {"version":3,"file":"recreateTask.d.ts","sourceRoot":"","sources":["../../../../src/recreateTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG5C,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AACD,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,gDAa5C"}
@@ -70,7 +70,7 @@ declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
70
70
  type: z.ZodLiteral<"nodeStart">;
71
71
  node: z.ZodObject<{
72
72
  id: z.ZodUUID;
73
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
73
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
74
74
  alias: z.ZodOptional<z.ZodString>;
75
75
  }, z.core.$strip>;
76
76
  }, z.core.$strip>, z.ZodObject<{
@@ -81,7 +81,7 @@ declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
81
81
  type: z.ZodLiteral<"nodeUpdate">;
82
82
  node: z.ZodObject<{
83
83
  id: z.ZodUUID;
84
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
84
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
85
85
  alias: z.ZodOptional<z.ZodString>;
86
86
  }, z.core.$strip>;
87
87
  data: z.ZodUnknown;
@@ -94,7 +94,7 @@ declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
94
94
  type: z.ZodLiteral<"nodeError">;
95
95
  node: z.ZodObject<{
96
96
  id: z.ZodUUID;
97
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
97
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
98
98
  alias: z.ZodOptional<z.ZodString>;
99
99
  }, z.core.$strip>;
100
100
  error: z.ZodString;
@@ -106,7 +106,7 @@ declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
106
106
  type: z.ZodLiteral<"nodeDefer">;
107
107
  node: z.ZodObject<{
108
108
  id: z.ZodUUID;
109
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
109
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
110
110
  alias: z.ZodOptional<z.ZodString>;
111
111
  }, z.core.$strip>;
112
112
  reason: z.ZodOptional<z.ZodString>;
@@ -118,7 +118,7 @@ declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
118
118
  type: z.ZodLiteral<"nodeEnd">;
119
119
  node: z.ZodObject<{
120
120
  id: z.ZodUUID;
121
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
121
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
122
122
  alias: z.ZodOptional<z.ZodString>;
123
123
  }, z.core.$strip>;
124
124
  }, z.core.$strip>], "type">;
@@ -186,7 +186,7 @@ export declare const eventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
186
186
  type: z.ZodLiteral<"nodeStart">;
187
187
  node: z.ZodObject<{
188
188
  id: z.ZodUUID;
189
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
189
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
190
190
  alias: z.ZodOptional<z.ZodString>;
191
191
  }, z.core.$strip>;
192
192
  }, z.core.$strip>, z.ZodObject<{
@@ -197,7 +197,7 @@ export declare const eventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
197
197
  type: z.ZodLiteral<"nodeUpdate">;
198
198
  node: z.ZodObject<{
199
199
  id: z.ZodUUID;
200
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
200
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
201
201
  alias: z.ZodOptional<z.ZodString>;
202
202
  }, z.core.$strip>;
203
203
  data: z.ZodUnknown;
@@ -210,7 +210,7 @@ export declare const eventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
210
210
  type: z.ZodLiteral<"nodeError">;
211
211
  node: z.ZodObject<{
212
212
  id: z.ZodUUID;
213
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
213
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
214
214
  alias: z.ZodOptional<z.ZodString>;
215
215
  }, z.core.$strip>;
216
216
  error: z.ZodString;
@@ -222,7 +222,7 @@ export declare const eventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
222
222
  type: z.ZodLiteral<"nodeDefer">;
223
223
  node: z.ZodObject<{
224
224
  id: z.ZodUUID;
225
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
225
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
226
226
  alias: z.ZodOptional<z.ZodString>;
227
227
  }, z.core.$strip>;
228
228
  reason: z.ZodOptional<z.ZodString>;
@@ -234,7 +234,7 @@ export declare const eventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
234
234
  type: z.ZodLiteral<"nodeEnd">;
235
235
  node: z.ZodObject<{
236
236
  id: z.ZodUUID;
237
- type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
237
+ type: z.ZodLiteral<"logic" | "or" | "reference" | "service">;
238
238
  alias: z.ZodOptional<z.ZodString>;
239
239
  }, z.core.$strip>;
240
240
  }, z.core.$strip>], "type">>;
@@ -1 +1 @@
1
- {"version":3,"file":"getAccessToken.d.ts","sourceRoot":"","sources":["../../../../../src/utils/getAccessToken.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM;;;EA0B1D"}
1
+ {"version":3,"file":"getAccessToken.d.ts","sourceRoot":"","sources":["../../../../../src/utils/getAccessToken.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM;IAuBvD,KAAK;IACL,UAAU;EAEb"}
@@ -1,3 +1,4 @@
1
+ import { RequenceUnreachableError } from './errors.ts';
1
2
  import { type Update } from './types.ts';
2
3
  type WatchUpdate = Update<unknown> & {
3
4
  incomplete: boolean;
@@ -13,6 +14,7 @@ interface WatchTasksOptions {
13
14
  };
14
15
  onUpdate?: TaskUpdateHandler;
15
16
  onError?: (status: number, reason?: string) => void;
17
+ onUnreachable?: (error: RequenceUnreachableError) => void;
16
18
  onConnect?: () => void;
17
19
  onReconnecting?: () => void;
18
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"watchTasks.d.ts","sourceRoot":"","sources":["../../../../src/watchTasks.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,YAAY,CAAA;AAGrD,KAAK,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG;IACnC,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAA;AAED,KAAK,iBAAiB,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAA;AAEtD,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,CAAA;KACjC,CAAA;IACD,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,6CA8KpD"}
1
+ {"version":3,"file":"watchTasks.d.ts","sourceRoot":"","sources":["../../../../src/watchTasks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAuB,MAAM,aAAa,CAAA;AAE3E,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,YAAY,CAAA;AAGrD,KAAK,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG;IACnC,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAA;AAED,KAAK,iBAAiB,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAA;AAEtD,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,CAAA;KACjC,CAAA;IACD,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAKnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAA;IACzD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,6CAkMpD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@requence/task",
3
3
  "type": "module",
4
- "version": "0.7.1",
4
+ "version": "0.8.2-edge.1149",
5
5
  "bin": {
6
6
  "requence-task": "build/cli.js"
7
7
  },
@@ -14,9 +14,9 @@
14
14
  "scripts": {
15
15
  "check-format": "oxfmt --check",
16
16
  "fix-format": "oxfmt --write",
17
- "check-types": "tsc",
17
+ "check-types": "tsgo",
18
18
  "lint": "oxlint --deny-warnings",
19
- "build-declaration": "tsc -p tsconfig.declaration.json && tsc-alias -p tsconfig.declaration.json 2>/dev/null",
19
+ "build-declaration": "tsgo -p tsconfig.declaration.json && tsc-alias -p tsconfig.declaration.json 2>/dev/null",
20
20
  "build": "ADD_ENTRYPOINT=src/cli.ts bun -e \"import('@requence/utils/build-package.mts')\" && bun build-declaration "
21
21
  },
22
22
  "dependencies": {
@@ -28,8 +28,12 @@
28
28
  "zod": "^4.3.6"
29
29
  },
30
30
  "devDependencies": {
31
+ "@requence/callbacks": "workspace:*",
32
+ "@requence/files": "workspace:*",
31
33
  "@requence/helpers": "workspace:*",
34
+ "@requence/transformer": "workspace:*",
32
35
  "@requence/utils": "workspace:*",
36
+ "@types/bun": "^1.2.23",
33
37
  "@types/yargs": "^17.0.33",
34
38
  "tsc-alias": "^1.8.16"
35
39
  }
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../helpers/src/utils/obfuscate.ts"],
4
- "sourcesContent": [
5
- "const separator = '\\u{f6ee}'\n\nconst base65Chars =\n 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$'\n\nconst base65CharToIndex: Record<string, number> = {}\nfor (let i = 0; i < base65Chars.length; i++) {\n base65CharToIndex[base65Chars[i]] = i\n}\n\nexport function obfuscate(...parts: Array<string>) {\n const str = parts.join(separator)\n let binaryString = ''\n\n for (let i = 0; i < str.length; i++) {\n const charCode = str.charCodeAt(i)\n binaryString += charCode.toString(2).padStart(16, '0')\n }\n\n let encodedString = ''\n const chunkSize = 6\n let paddingCount = 0\n\n for (let i = 0; i < binaryString.length; i += chunkSize) {\n let chunk = binaryString.substring(i, i + chunkSize)\n\n if (chunk.length < chunkSize) {\n paddingCount = chunkSize - chunk.length\n chunk = chunk.padEnd(chunkSize, '0')\n }\n\n const decimalValue = parseInt(chunk, 2)\n encodedString += base65Chars[decimalValue]\n }\n\n return encodedString + paddingCount.toString()\n}\n\nexport function randomString(length: number) {\n const randomValues = new Uint8Array(length)\n crypto.getRandomValues(randomValues)\n\n let randomString = ''\n for (let i = 0; i < length; i++) {\n randomString += base65Chars[randomValues[i] % base65Chars.length]\n }\n\n return randomString\n}\n\nexport function deobfuscate(str: string) {\n const paddingCount = parseInt(str.slice(-1), 10)\n str = str.slice(0, -1)\n\n let binaryString = ''\n\n for (let i = 0; i < str.length; i++) {\n const decimalValue = base65CharToIndex[str[i]]\n const binaryChunk = decimalValue.toString(2).padStart(6, '0')\n binaryString += binaryChunk\n }\n\n if (paddingCount > 0) {\n binaryString = binaryString.slice(0, -paddingCount)\n }\n\n let decodedString = ''\n const charSize = 16\n\n for (let i = 0; i < binaryString.length; i += charSize) {\n const byte = binaryString.substring(i, i + charSize)\n if (byte.length === 16) {\n const charCode = parseInt(byte, 2)\n decodedString += String.fromCharCode(charCode)\n }\n }\n\n return decodedString.split(separator)\n}\n"
6
- ],
7
- "mappings": ";AAAA,IAAM,YAAY;AAElB,IAAM,cACJ;AAEF,IAAM,oBAA4C,CAAC;AACnD,SAAS,IAAI,EAAG,IAAI,YAAY,QAAQ,KAAK;AAAA,EAC3C,kBAAkB,YAAY,MAAM;AACtC;AA0CO,SAAS,WAAW,CAAC,KAAa;AAAA,EACvC,MAAM,eAAe,SAAS,IAAI,MAAM,EAAE,GAAG,EAAE;AAAA,EAC/C,MAAM,IAAI,MAAM,GAAG,EAAE;AAAA,EAErB,IAAI,eAAe;AAAA,EAEnB,SAAS,IAAI,EAAG,IAAI,IAAI,QAAQ,KAAK;AAAA,IACnC,MAAM,eAAe,kBAAkB,IAAI;AAAA,IAC3C,MAAM,cAAc,aAAa,SAAS,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,IAC5D,gBAAgB;AAAA,EAClB;AAAA,EAEA,IAAI,eAAe,GAAG;AAAA,IACpB,eAAe,aAAa,MAAM,IAAI,YAAY;AAAA,EACpD;AAAA,EAEA,IAAI,gBAAgB;AAAA,EACpB,MAAM,WAAW;AAAA,EAEjB,SAAS,IAAI,EAAG,IAAI,aAAa,QAAQ,KAAK,UAAU;AAAA,IACtD,MAAM,OAAO,aAAa,UAAU,GAAG,IAAI,QAAQ;AAAA,IACnD,IAAI,KAAK,WAAW,IAAI;AAAA,MACtB,MAAM,WAAW,SAAS,MAAM,CAAC;AAAA,MACjC,iBAAiB,OAAO,aAAa,QAAQ;AAAA,IAC/C;AAAA,EACF;AAAA,EAEA,OAAO,cAAc,MAAM,SAAS;AAAA;",
8
- "debugId": "58DA2BE245CFC84464756E2164756E21",
9
- "names": []
10
- }
@@ -1,40 +0,0 @@
1
- import type { FileObject } from './index.ts';
2
- import type { MainMimeType, SubMimeType, ValidMimeType } from './types.ts';
3
- interface RequenceFilePropertyBag<T> extends Omit<BlobPropertyBag, 'type'> {
4
- type: T;
5
- }
6
- export interface RequenceFileType<A, B> {
7
- size: number;
8
- mimeType: string;
9
- mainMimeType: A;
10
- subMimeType: B;
11
- text(): Promise<string>;
12
- json(): Promise<unknown>;
13
- blob(): Promise<Blob>;
14
- arrayBuffer(): Promise<ArrayBuffer>;
15
- }
16
- export declare class RequenceFile<T extends `${string}/${string}` = '*/*', A = MainMimeType<T>, B = SubMimeType<T>> implements RequenceFileType<A, B> {
17
- #private;
18
- constructor(blobParts: BlobPart[], options?: RequenceFilePropertyBag<ValidMimeType<T>>);
19
- /** @internal */
20
- static fromFileObject<T extends `${string}/${string}`>(file: FileObject): RequenceFile<T>;
21
- /** @internal */
22
- get fileObject(): {
23
- size: number;
24
- mime: string;
25
- url: string;
26
- __REQUENCE_type: "RequenceFile";
27
- } | null;
28
- get size(): number;
29
- get mimeType(): string;
30
- get mainMimeType(): A;
31
- get subMimeType(): B;
32
- text(): Promise<string>;
33
- json(): Promise<any>;
34
- blob(): Promise<Blob>;
35
- arrayBuffer(): Promise<ArrayBuffer>;
36
- toString(): string;
37
- toJSON(): string;
38
- }
39
- export {};
40
- //# sourceMappingURL=RequenceFile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequenceFile.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/RequenceFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1E,UAAU,uBAAuB,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IACxE,IAAI,EAAE,CAAC,CAAA;CACR;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,EAAE,CAAC;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,CAAC,CAAA;IACf,WAAW,EAAE,CAAC,CAAA;IACd,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACvB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACrB,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,CAAA;CACpC;AAED,qBAAa,YAAY,CACvB,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,EAAE,GAAG,KAAK,EACvC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,EACnB,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAClB,YAAW,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;;gBAI/B,SAAS,EAAE,QAAQ,EAAE,EACrB,OAAO,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAKrD,gBAAgB;IAChB,MAAM,CAAC,cAAc,CAAC,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,GAGlD,YAAY,CAAC,CAAC,CAAC;IAGpC,gBAAgB;IAChB,IAAI,UAAU;;;;;aAEb;IAED,IAAI,IAAI,WAEP;IAED,IAAI,QAAQ,WAEX;IAED,IAAI,YAAY,IACwB,CAAC,CACxC;IAED,IAAI,WAAW,IACyB,CAAC,CACxC;IAEK,IAAI;IAOJ,IAAI;IAOJ,IAAI;IAOJ,WAAW;IAOjB,QAAQ;IAIR,MAAM;CAGP"}
@@ -1,32 +0,0 @@
1
- import type { StreamObject } from './index.ts';
2
- import type { MainMimeType, SubMimeType, ValidMimeType } from './types.ts';
3
- export interface RequenceStreamType<A, B> {
4
- mimeType: string;
5
- mainMimeType: A;
6
- subMimeType: B;
7
- stream(): ReadableStream;
8
- }
9
- interface RequenceStreamOptions<T> {
10
- type: T;
11
- }
12
- export declare class RequenceStream<T extends `${string}/${string}` = '*/*', A = MainMimeType<T>, B = SubMimeType<T>> implements RequenceStreamType<A, B> {
13
- #private;
14
- constructor(stream: ReadableStream, options: RequenceStreamOptions<ValidMimeType<T>>);
15
- /** @internal */
16
- static fromStreamObject<T extends `${string}/${string}`>(stream: StreamObject): RequenceStream<T>;
17
- /** @internal */
18
- get streamObject(): {
19
- mime: string;
20
- url: string;
21
- __REQUENCE_type: "RequenceStream";
22
- } | null;
23
- get mimeType(): any;
24
- get mainMimeType(): A;
25
- get subMimeType(): B;
26
- stream(): ReadableStream<any>;
27
- asyncIterable(): AsyncIterable<Uint8Array>;
28
- toString(): string;
29
- toJSON(): string;
30
- }
31
- export {};
32
- //# sourceMappingURL=RequenceStream.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequenceStream.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/RequenceStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1E,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,CAAC,CAAA;IACf,WAAW,EAAE,CAAC,CAAA;IACd,MAAM,IAAI,cAAc,CAAA;CACzB;AAED,UAAU,qBAAqB,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAA;CACR;AAED,qBAAa,cAAc,CACzB,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,EAAE,GAAG,KAAK,EACvC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,EACnB,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAClB,YAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC;;gBAMjC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAMlD,gBAAgB;IAChB,MAAM,CAAC,gBAAgB,CAAC,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,EAAE,EACrD,MAAM,EAAE,YAAY,GAMU,cAAc,CAAC,CAAC,CAAC;IAGjD,gBAAgB;IAChB,IAAI,YAAY;;;;aAEf;IAED,IAAI,QAAQ,QAEX;IAED,IAAI,YAAY,IACwB,CAAC,CACxC;IAED,IAAI,WAAW,IACyB,CAAC,CACxC;IAED,MAAM;IAaN,aAAa,IAAI,aAAa,CAAC,UAAU,CAAC;IAmB1C,QAAQ;IAIR,MAAM;CAGP"}
@@ -1,7 +0,0 @@
1
- export * from './mapOutput.ts';
2
- export * from './isValidMimeType.ts';
3
- export * from './RequenceFile.ts';
4
- export * from './RequenceStream.ts';
5
- export * from './streamObject.ts';
6
- export * from './fileObject.ts';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { TaskOptions } from '../protocol/taskOptions.ts';
2
- export declare function mapOutput(params: {
3
- value: unknown;
4
- options: Pick<TaskOptions, 'uploadUrl' | 'streamUrl'>;
5
- onFail?: (error: Error) => void;
6
- onSkip?: () => void;
7
- onDone?: () => void;
8
- signal?: AbortSignal;
9
- }): Promise<unknown>;
10
- //# sourceMappingURL=mapOutput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapOutput.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/mapOutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AA2E7D,wBAAsB,SAAS,CAAC,MAAM,EAAE;IACtC,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAAC,CAAA;IACrD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,oBAwFA"}
@@ -1,4 +0,0 @@
1
- export type MainMimeType<T extends string> = T extends `${infer V}/${string}` ? V extends '*' ? any : V : any;
2
- export type SubMimeType<T extends string> = T extends `${string}/${infer V}` ? V extends '*' ? any : V : any;
3
- export type ValidMimeType<T extends `${string}/${string}`> = T extends `${infer A}/${infer B}` ? A extends '*' | '' | '/' ? never : B extends '*' | '' | '/' ? never : T : never;
4
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE,GACzE,CAAC,SAAS,GAAG,GACX,GAAG,GACH,CAAC,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC,EAAE,GACxE,CAAC,SAAS,GAAG,GACX,GAAG,GACH,CAAC,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,EAAE,IACvD,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAC7B,CAAC,SAAS,GAAG,GAAG,EAAE,GAAG,GAAG,GACtB,KAAK,GACL,CAAC,SAAS,GAAG,GAAG,EAAE,GAAG,GAAG,GACtB,KAAK,GACL,CAAC,GACL,KAAK,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare function createObjectProxy(obj: Record<string, unknown>, onChange: (newObj: Record<string, unknown>) => void): Record<string, unknown>;
2
- //# sourceMappingURL=createObjectProxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createObjectProxy.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/createObjectProxy.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,2BA2BpD"}
@@ -1,8 +0,0 @@
1
- export declare function resolveRequenceTypes(data: any, onCallback?: (params: {
2
- sourceId: string;
3
- callbackId: string;
4
- outputName: string | null;
5
- propertyPath: (string | number)[];
6
- arg: unknown;
7
- }) => void): any;
8
- //# sourceMappingURL=resolveRequenceTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveRequenceTypes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/resolveRequenceTypes.ts"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,EACT,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IACjC,GAAG,EAAE,OAAO,CAAA;CACb,KAAK,IAAI,OAmBX"}