@trigger.dev/core 0.0.0-v3-trigger-dirs-20240423091017 → 0.0.0-v3-trigger-dirs-20240423123825

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 (33) hide show
  1. package/dist/{consoleInterceptor-pKvaiAI6.d.ts → catalog-e2OUDZEa.d.mts} +52 -84
  2. package/dist/{consoleInterceptor-tCKb2R0l.d.mts → catalog-ndN7py2b.d.ts} +52 -84
  3. package/dist/{messages-oFuHKbi4.d.mts → messages-AriaDDm0.d.mts} +48 -48
  4. package/dist/{messages-oFuHKbi4.d.ts → messages-AriaDDm0.d.ts} +48 -48
  5. package/dist/v3/dev/index.d.mts +1 -1
  6. package/dist/v3/dev/index.d.ts +1 -1
  7. package/dist/v3/index.d.mts +99 -313
  8. package/dist/v3/index.d.ts +99 -313
  9. package/dist/v3/index.js +2045 -2595
  10. package/dist/v3/index.js.map +1 -1
  11. package/dist/v3/index.mjs +2065 -2603
  12. package/dist/v3/index.mjs.map +1 -1
  13. package/dist/v3/otel/index.d.mts +34 -6
  14. package/dist/v3/otel/index.d.ts +34 -6
  15. package/dist/v3/otel/index.js +62 -38
  16. package/dist/v3/otel/index.js.map +1 -1
  17. package/dist/v3/otel/index.mjs +62 -38
  18. package/dist/v3/otel/index.mjs.map +1 -1
  19. package/dist/v3/prod/index.d.mts +2 -2
  20. package/dist/v3/prod/index.d.ts +2 -2
  21. package/dist/v3/prod/index.js.map +1 -1
  22. package/dist/v3/prod/index.mjs.map +1 -1
  23. package/dist/v3/workers/index.d.mts +57 -12
  24. package/dist/v3/workers/index.d.ts +57 -12
  25. package/dist/v3/workers/index.js +728 -124
  26. package/dist/v3/workers/index.js.map +1 -1
  27. package/dist/v3/workers/index.mjs +718 -125
  28. package/dist/v3/workers/index.mjs.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/tracingSDK-XMTLzw35.d.mts +0 -35
  31. package/dist/tracingSDK-XMTLzw35.d.ts +0 -35
  32. package/dist/{manager-KhqZOMNe.d.mts → manager-M9GLDnhJ.d.mts} +18 -18
  33. package/dist/{manager-KhqZOMNe.d.ts → manager-M9GLDnhJ.d.ts} +18 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trigger.dev/core",
3
- "version": "0.0.0-v3-trigger-dirs-20240423091017",
3
+ "version": "0.0.0-v3-trigger-dirs-20240423123825",
4
4
  "description": "Core code used across the Trigger.dev SDK and platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -1,35 +0,0 @@
1
- import { TracerProvider } from '@opentelemetry/api';
2
- import { InstrumentationOption } from '@opentelemetry/instrumentation';
3
- import { IResource, DetectorSync, ResourceDetectionConfig, Resource, ResourceAttributes } from '@opentelemetry/resources';
4
- import { LoggerProvider } from '@opentelemetry/sdk-logs';
5
-
6
- declare class AsyncResourceDetector implements DetectorSync {
7
- private _promise;
8
- private _resolver?;
9
- private _resolved;
10
- constructor();
11
- detect(_config?: ResourceDetectionConfig): Resource;
12
- resolveWithAttributes(attributes: ResourceAttributes): void;
13
- }
14
- type TracingDiagnosticLogLevel = "none" | "error" | "warn" | "info" | "debug" | "verbose" | "all";
15
- type TracingSDKConfig = {
16
- url: string;
17
- forceFlushTimeoutMillis?: number;
18
- resource?: IResource;
19
- instrumentations?: InstrumentationOption[];
20
- diagLogLevel?: TracingDiagnosticLogLevel;
21
- };
22
- declare class TracingSDK {
23
- private readonly config;
24
- readonly asyncResourceDetector: AsyncResourceDetector;
25
- private readonly _logProvider;
26
- private readonly _spanExporter;
27
- private readonly _traceProvider;
28
- readonly getLogger: LoggerProvider["getLogger"];
29
- readonly getTracer: TracerProvider["getTracer"];
30
- constructor(config: TracingSDKConfig);
31
- flush(): Promise<void>;
32
- shutdown(): Promise<void>;
33
- }
34
-
35
- export { TracingSDK as T, type TracingDiagnosticLogLevel as a, type TracingSDKConfig as b };
@@ -1,35 +0,0 @@
1
- import { TracerProvider } from '@opentelemetry/api';
2
- import { InstrumentationOption } from '@opentelemetry/instrumentation';
3
- import { IResource, DetectorSync, ResourceDetectionConfig, Resource, ResourceAttributes } from '@opentelemetry/resources';
4
- import { LoggerProvider } from '@opentelemetry/sdk-logs';
5
-
6
- declare class AsyncResourceDetector implements DetectorSync {
7
- private _promise;
8
- private _resolver?;
9
- private _resolved;
10
- constructor();
11
- detect(_config?: ResourceDetectionConfig): Resource;
12
- resolveWithAttributes(attributes: ResourceAttributes): void;
13
- }
14
- type TracingDiagnosticLogLevel = "none" | "error" | "warn" | "info" | "debug" | "verbose" | "all";
15
- type TracingSDKConfig = {
16
- url: string;
17
- forceFlushTimeoutMillis?: number;
18
- resource?: IResource;
19
- instrumentations?: InstrumentationOption[];
20
- diagLogLevel?: TracingDiagnosticLogLevel;
21
- };
22
- declare class TracingSDK {
23
- private readonly config;
24
- readonly asyncResourceDetector: AsyncResourceDetector;
25
- private readonly _logProvider;
26
- private readonly _spanExporter;
27
- private readonly _traceProvider;
28
- readonly getLogger: LoggerProvider["getLogger"];
29
- readonly getTracer: TracerProvider["getTracer"];
30
- constructor(config: TracingSDKConfig);
31
- flush(): Promise<void>;
32
- shutdown(): Promise<void>;
33
- }
34
-
35
- export { TracingSDK as T, type TracingDiagnosticLogLevel as a, type TracingSDKConfig as b };
@@ -6,13 +6,13 @@ declare const TaskRunBuiltInError: z.ZodObject<{
6
6
  message: z.ZodString;
7
7
  stackTrace: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- message: string;
10
9
  type: "BUILT_IN_ERROR";
10
+ message: string;
11
11
  name: string;
12
12
  stackTrace: string;
13
13
  }, {
14
- message: string;
15
14
  type: "BUILT_IN_ERROR";
15
+ message: string;
16
16
  name: string;
17
17
  stackTrace: string;
18
18
  }>;
@@ -72,13 +72,13 @@ declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
72
72
  message: z.ZodString;
73
73
  stackTrace: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- message: string;
76
75
  type: "BUILT_IN_ERROR";
76
+ message: string;
77
77
  name: string;
78
78
  stackTrace: string;
79
79
  }, {
80
- message: string;
81
80
  type: "BUILT_IN_ERROR";
81
+ message: string;
82
82
  name: string;
83
83
  stackTrace: string;
84
84
  }>, z.ZodObject<{
@@ -687,13 +687,13 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
687
687
  message: z.ZodString;
688
688
  stackTrace: z.ZodString;
689
689
  }, "strip", z.ZodTypeAny, {
690
- message: string;
691
690
  type: "BUILT_IN_ERROR";
691
+ message: string;
692
692
  name: string;
693
693
  stackTrace: string;
694
694
  }, {
695
- message: string;
696
695
  type: "BUILT_IN_ERROR";
696
+ message: string;
697
697
  name: string;
698
698
  stackTrace: string;
699
699
  }>, z.ZodObject<{
@@ -743,8 +743,8 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
743
743
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
744
744
  }, "strip", z.ZodTypeAny, {
745
745
  error: {
746
- message: string;
747
746
  type: "BUILT_IN_ERROR";
747
+ message: string;
748
748
  name: string;
749
749
  stackTrace: string;
750
750
  } | {
@@ -768,8 +768,8 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
768
768
  skippedRetrying?: boolean | undefined;
769
769
  }, {
770
770
  error: {
771
- message: string;
772
771
  type: "BUILT_IN_ERROR";
772
+ message: string;
773
773
  name: string;
774
774
  stackTrace: string;
775
775
  } | {
@@ -834,13 +834,13 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
834
834
  message: z.ZodString;
835
835
  stackTrace: z.ZodString;
836
836
  }, "strip", z.ZodTypeAny, {
837
- message: string;
838
837
  type: "BUILT_IN_ERROR";
838
+ message: string;
839
839
  name: string;
840
840
  stackTrace: string;
841
841
  }, {
842
- message: string;
843
842
  type: "BUILT_IN_ERROR";
843
+ message: string;
844
844
  name: string;
845
845
  stackTrace: string;
846
846
  }>, z.ZodObject<{
@@ -890,8 +890,8 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
890
890
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
891
891
  }, "strip", z.ZodTypeAny, {
892
892
  error: {
893
- message: string;
894
893
  type: "BUILT_IN_ERROR";
894
+ message: string;
895
895
  name: string;
896
896
  stackTrace: string;
897
897
  } | {
@@ -915,8 +915,8 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
915
915
  skippedRetrying?: boolean | undefined;
916
916
  }, {
917
917
  error: {
918
- message: string;
919
918
  type: "BUILT_IN_ERROR";
919
+ message: string;
920
920
  name: string;
921
921
  stackTrace: string;
922
922
  } | {
@@ -966,13 +966,13 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
966
966
  message: z.ZodString;
967
967
  stackTrace: z.ZodString;
968
968
  }, "strip", z.ZodTypeAny, {
969
- message: string;
970
969
  type: "BUILT_IN_ERROR";
970
+ message: string;
971
971
  name: string;
972
972
  stackTrace: string;
973
973
  }, {
974
- message: string;
975
974
  type: "BUILT_IN_ERROR";
975
+ message: string;
976
976
  name: string;
977
977
  stackTrace: string;
978
978
  }>, z.ZodObject<{
@@ -1022,8 +1022,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1022
1022
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
1023
1023
  }, "strip", z.ZodTypeAny, {
1024
1024
  error: {
1025
- message: string;
1026
1025
  type: "BUILT_IN_ERROR";
1026
+ message: string;
1027
1027
  name: string;
1028
1028
  stackTrace: string;
1029
1029
  } | {
@@ -1047,8 +1047,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1047
1047
  skippedRetrying?: boolean | undefined;
1048
1048
  }, {
1049
1049
  error: {
1050
- message: string;
1051
1050
  type: "BUILT_IN_ERROR";
1051
+ message: string;
1052
1052
  name: string;
1053
1053
  stackTrace: string;
1054
1054
  } | {
@@ -1075,8 +1075,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1075
1075
  id: string;
1076
1076
  items: ({
1077
1077
  error: {
1078
- message: string;
1079
1078
  type: "BUILT_IN_ERROR";
1079
+ message: string;
1080
1080
  name: string;
1081
1081
  stackTrace: string;
1082
1082
  } | {
@@ -1108,8 +1108,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1108
1108
  id: string;
1109
1109
  items: ({
1110
1110
  error: {
1111
- message: string;
1112
1111
  type: "BUILT_IN_ERROR";
1112
+ message: string;
1113
1113
  name: string;
1114
1114
  stackTrace: string;
1115
1115
  } | {
@@ -6,13 +6,13 @@ declare const TaskRunBuiltInError: z.ZodObject<{
6
6
  message: z.ZodString;
7
7
  stackTrace: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- message: string;
10
9
  type: "BUILT_IN_ERROR";
10
+ message: string;
11
11
  name: string;
12
12
  stackTrace: string;
13
13
  }, {
14
- message: string;
15
14
  type: "BUILT_IN_ERROR";
15
+ message: string;
16
16
  name: string;
17
17
  stackTrace: string;
18
18
  }>;
@@ -72,13 +72,13 @@ declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
72
72
  message: z.ZodString;
73
73
  stackTrace: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- message: string;
76
75
  type: "BUILT_IN_ERROR";
76
+ message: string;
77
77
  name: string;
78
78
  stackTrace: string;
79
79
  }, {
80
- message: string;
81
80
  type: "BUILT_IN_ERROR";
81
+ message: string;
82
82
  name: string;
83
83
  stackTrace: string;
84
84
  }>, z.ZodObject<{
@@ -687,13 +687,13 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
687
687
  message: z.ZodString;
688
688
  stackTrace: z.ZodString;
689
689
  }, "strip", z.ZodTypeAny, {
690
- message: string;
691
690
  type: "BUILT_IN_ERROR";
691
+ message: string;
692
692
  name: string;
693
693
  stackTrace: string;
694
694
  }, {
695
- message: string;
696
695
  type: "BUILT_IN_ERROR";
696
+ message: string;
697
697
  name: string;
698
698
  stackTrace: string;
699
699
  }>, z.ZodObject<{
@@ -743,8 +743,8 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
743
743
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
744
744
  }, "strip", z.ZodTypeAny, {
745
745
  error: {
746
- message: string;
747
746
  type: "BUILT_IN_ERROR";
747
+ message: string;
748
748
  name: string;
749
749
  stackTrace: string;
750
750
  } | {
@@ -768,8 +768,8 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
768
768
  skippedRetrying?: boolean | undefined;
769
769
  }, {
770
770
  error: {
771
- message: string;
772
771
  type: "BUILT_IN_ERROR";
772
+ message: string;
773
773
  name: string;
774
774
  stackTrace: string;
775
775
  } | {
@@ -834,13 +834,13 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
834
834
  message: z.ZodString;
835
835
  stackTrace: z.ZodString;
836
836
  }, "strip", z.ZodTypeAny, {
837
- message: string;
838
837
  type: "BUILT_IN_ERROR";
838
+ message: string;
839
839
  name: string;
840
840
  stackTrace: string;
841
841
  }, {
842
- message: string;
843
842
  type: "BUILT_IN_ERROR";
843
+ message: string;
844
844
  name: string;
845
845
  stackTrace: string;
846
846
  }>, z.ZodObject<{
@@ -890,8 +890,8 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
890
890
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
891
891
  }, "strip", z.ZodTypeAny, {
892
892
  error: {
893
- message: string;
894
893
  type: "BUILT_IN_ERROR";
894
+ message: string;
895
895
  name: string;
896
896
  stackTrace: string;
897
897
  } | {
@@ -915,8 +915,8 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
915
915
  skippedRetrying?: boolean | undefined;
916
916
  }, {
917
917
  error: {
918
- message: string;
919
918
  type: "BUILT_IN_ERROR";
919
+ message: string;
920
920
  name: string;
921
921
  stackTrace: string;
922
922
  } | {
@@ -966,13 +966,13 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
966
966
  message: z.ZodString;
967
967
  stackTrace: z.ZodString;
968
968
  }, "strip", z.ZodTypeAny, {
969
- message: string;
970
969
  type: "BUILT_IN_ERROR";
970
+ message: string;
971
971
  name: string;
972
972
  stackTrace: string;
973
973
  }, {
974
- message: string;
975
974
  type: "BUILT_IN_ERROR";
975
+ message: string;
976
976
  name: string;
977
977
  stackTrace: string;
978
978
  }>, z.ZodObject<{
@@ -1022,8 +1022,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1022
1022
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
1023
1023
  }, "strip", z.ZodTypeAny, {
1024
1024
  error: {
1025
- message: string;
1026
1025
  type: "BUILT_IN_ERROR";
1026
+ message: string;
1027
1027
  name: string;
1028
1028
  stackTrace: string;
1029
1029
  } | {
@@ -1047,8 +1047,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1047
1047
  skippedRetrying?: boolean | undefined;
1048
1048
  }, {
1049
1049
  error: {
1050
- message: string;
1051
1050
  type: "BUILT_IN_ERROR";
1051
+ message: string;
1052
1052
  name: string;
1053
1053
  stackTrace: string;
1054
1054
  } | {
@@ -1075,8 +1075,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1075
1075
  id: string;
1076
1076
  items: ({
1077
1077
  error: {
1078
- message: string;
1079
1078
  type: "BUILT_IN_ERROR";
1079
+ message: string;
1080
1080
  name: string;
1081
1081
  stackTrace: string;
1082
1082
  } | {
@@ -1108,8 +1108,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1108
1108
  id: string;
1109
1109
  items: ({
1110
1110
  error: {
1111
- message: string;
1112
1111
  type: "BUILT_IN_ERROR";
1112
+ message: string;
1113
1113
  name: string;
1114
1114
  stackTrace: string;
1115
1115
  } | {