@trigger.dev/core 4.5.8 → 4.5.9

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 (43) hide show
  1. package/dist/commonjs/logger.d.ts +1 -0
  2. package/dist/commonjs/logger.js +101 -29
  3. package/dist/commonjs/logger.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/index.d.ts +11 -3
  5. package/dist/commonjs/v3/apiClient/index.js +35 -0
  6. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  7. package/dist/commonjs/v3/jwt.d.ts +2 -0
  8. package/dist/commonjs/v3/jwt.js +32 -0
  9. package/dist/commonjs/v3/jwt.js.map +1 -1
  10. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +4 -4
  11. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +24 -24
  12. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +2 -2
  13. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +20 -20
  14. package/dist/commonjs/v3/schemas/api.d.ts +18 -18
  15. package/dist/commonjs/v3/schemas/checkpoints.d.ts +4 -4
  16. package/dist/commonjs/v3/schemas/common.d.ts +8 -8
  17. package/dist/commonjs/v3/schemas/messages.d.ts +8 -8
  18. package/dist/commonjs/v3/schemas/runEngine.d.ts +10 -10
  19. package/dist/commonjs/v3/utils/structuredLogger.js +3 -2
  20. package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
  21. package/dist/commonjs/version.js +1 -1
  22. package/dist/esm/logger.d.ts +1 -0
  23. package/dist/esm/logger.js +100 -29
  24. package/dist/esm/logger.js.map +1 -1
  25. package/dist/esm/v3/apiClient/index.d.ts +11 -3
  26. package/dist/esm/v3/apiClient/index.js +35 -0
  27. package/dist/esm/v3/apiClient/index.js.map +1 -1
  28. package/dist/esm/v3/jwt.d.ts +2 -0
  29. package/dist/esm/v3/jwt.js +30 -0
  30. package/dist/esm/v3/jwt.js.map +1 -1
  31. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +4 -4
  32. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +24 -24
  33. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +2 -2
  34. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +20 -20
  35. package/dist/esm/v3/schemas/api.d.ts +18 -18
  36. package/dist/esm/v3/schemas/checkpoints.d.ts +4 -4
  37. package/dist/esm/v3/schemas/common.d.ts +8 -8
  38. package/dist/esm/v3/schemas/messages.d.ts +8 -8
  39. package/dist/esm/v3/schemas/runEngine.d.ts +10 -10
  40. package/dist/esm/v3/utils/structuredLogger.js +3 -2
  41. package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
  42. package/dist/esm/version.js +1 -1
  43. package/package.json +1 -1
@@ -18,8 +18,8 @@ export declare const WhoAmIResponseSchema: z.ZodObject<{
18
18
  orgTitle: string;
19
19
  }>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- userId: string;
22
21
  email: string;
22
+ userId: string;
23
23
  dashboardUrl: string;
24
24
  project?: {
25
25
  url: string;
@@ -27,8 +27,8 @@ export declare const WhoAmIResponseSchema: z.ZodObject<{
27
27
  orgTitle: string;
28
28
  } | undefined;
29
29
  }, {
30
- userId: string;
31
30
  email: string;
31
+ userId: string;
32
32
  dashboardUrl: string;
33
33
  project?: {
34
34
  url: string;
@@ -3650,14 +3650,14 @@ export declare const GenerateRegistryCredentialsResponseBody: z.ZodObject<{
3650
3650
  expiresAt: z.ZodString;
3651
3651
  repositoryUri: z.ZodString;
3652
3652
  }, "strip", z.ZodTypeAny, {
3653
+ password: string;
3653
3654
  expiresAt: string;
3654
3655
  username: string;
3655
- password: string;
3656
3656
  repositoryUri: string;
3657
3657
  }, {
3658
+ password: string;
3658
3659
  expiresAt: string;
3659
3660
  username: string;
3660
- password: string;
3661
3661
  repositoryUri: string;
3662
3662
  }>;
3663
3663
  export type GenerateRegistryCredentialsResponseBody = z.infer<typeof GenerateRegistryCredentialsResponseBody>;
@@ -4438,8 +4438,8 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4438
4438
  friendlyId: string;
4439
4439
  completedAt: Date;
4440
4440
  outputIsError: boolean;
4441
- idempotencyKey?: string | undefined;
4442
4441
  output?: string | undefined;
4442
+ idempotencyKey?: string | undefined;
4443
4443
  outputType?: string | undefined;
4444
4444
  index?: number | undefined;
4445
4445
  completedByTaskRun?: {
@@ -4461,8 +4461,8 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4461
4461
  friendlyId: string;
4462
4462
  completedAt: Date;
4463
4463
  outputIsError: boolean;
4464
- idempotencyKey?: string | undefined;
4465
4464
  output?: string | undefined;
4465
+ idempotencyKey?: string | undefined;
4466
4466
  outputType?: string | undefined;
4467
4467
  index?: number | undefined;
4468
4468
  completedByTaskRun?: {
@@ -4684,8 +4684,8 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4684
4684
  friendlyId: string;
4685
4685
  completedAt: Date;
4686
4686
  outputIsError: boolean;
4687
- idempotencyKey?: string | undefined;
4688
4687
  output?: string | undefined;
4688
+ idempotencyKey?: string | undefined;
4689
4689
  outputType?: string | undefined;
4690
4690
  index?: number | undefined;
4691
4691
  completedByTaskRun?: {
@@ -4775,8 +4775,8 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4775
4775
  friendlyId: string;
4776
4776
  completedAt: Date;
4777
4777
  outputIsError: boolean;
4778
- idempotencyKey?: string | undefined;
4779
4778
  output?: string | undefined;
4779
+ idempotencyKey?: string | undefined;
4780
4780
  outputType?: string | undefined;
4781
4781
  index?: number | undefined;
4782
4782
  completedByTaskRun?: {
@@ -4868,8 +4868,8 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4868
4868
  friendlyId: string;
4869
4869
  completedAt: Date;
4870
4870
  outputIsError: boolean;
4871
- idempotencyKey?: string | undefined;
4872
4871
  output?: string | undefined;
4872
+ idempotencyKey?: string | undefined;
4873
4873
  outputType?: string | undefined;
4874
4874
  index?: number | undefined;
4875
4875
  completedByTaskRun?: {
@@ -4961,8 +4961,8 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
4961
4961
  friendlyId: string;
4962
4962
  completedAt: Date;
4963
4963
  outputIsError: boolean;
4964
- idempotencyKey?: string | undefined;
4965
4964
  output?: string | undefined;
4965
+ idempotencyKey?: string | undefined;
4966
4966
  outputType?: string | undefined;
4967
4967
  index?: number | undefined;
4968
4968
  completedByTaskRun?: {
@@ -6302,12 +6302,12 @@ export declare const RetrieveRunResponse: z.ZodObject<{
6302
6302
  name?: string | undefined;
6303
6303
  stackTrace?: string | undefined;
6304
6304
  } | undefined;
6305
+ output?: any;
6305
6306
  metadata?: Record<string, any> | undefined;
6306
6307
  startedAt?: Date | undefined;
6307
6308
  idempotencyKey?: string | undefined;
6308
6309
  version?: string | undefined;
6309
6310
  region?: string | undefined;
6310
- output?: any;
6311
6311
  ttl?: string | undefined;
6312
6312
  schedule?: {
6313
6313
  id: string;
@@ -6450,12 +6450,12 @@ export declare const RetrieveRunResponse: z.ZodObject<{
6450
6450
  name?: string | undefined;
6451
6451
  stackTrace?: string | undefined;
6452
6452
  } | undefined;
6453
+ output?: any;
6453
6454
  metadata?: Record<string, any> | undefined;
6454
6455
  startedAt?: Date | undefined;
6455
6456
  idempotencyKey?: string | undefined;
6456
6457
  version?: string | undefined;
6457
6458
  region?: string | undefined;
6458
- output?: any;
6459
6459
  ttl?: string | undefined;
6460
6460
  schedule?: {
6461
6461
  id: string;
@@ -8004,11 +8004,11 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
8004
8004
  message?: string | undefined;
8005
8005
  stackTrace?: string | undefined;
8006
8006
  } | null | undefined;
8007
+ output?: string | null | undefined;
8007
8008
  metadata?: string | null | undefined;
8008
8009
  payloadType?: string | null | undefined;
8009
8010
  startedAt?: string | Date | null | undefined;
8010
8011
  idempotencyKey?: string | null | undefined;
8011
- output?: string | null | undefined;
8012
8012
  outputType?: string | null | undefined;
8013
8013
  ttl?: string | null | undefined;
8014
8014
  expiredAt?: string | Date | null | undefined;
@@ -8042,6 +8042,7 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
8042
8042
  message?: string | undefined;
8043
8043
  stackTrace?: string | undefined;
8044
8044
  } | null | undefined;
8045
+ output?: string | null | undefined;
8045
8046
  metadata?: string | null | undefined;
8046
8047
  payloadType?: string | null | undefined;
8047
8048
  isTest?: boolean | undefined;
@@ -8049,7 +8050,6 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
8049
8050
  idempotencyKey?: string | null | undefined;
8050
8051
  baseCostInCents?: number | undefined;
8051
8052
  costInCents?: number | undefined;
8052
- output?: string | null | undefined;
8053
8053
  outputType?: string | null | undefined;
8054
8054
  ttl?: string | null | undefined;
8055
8055
  expiredAt?: string | null | undefined;
@@ -10134,27 +10134,27 @@ export declare const ReadSessionStreamRecordsResponseBody: z.ZodObject<{
10134
10134
  }, "strip", z.ZodTypeAny, {
10135
10135
  id: string;
10136
10136
  seqNum: number;
10137
- data?: unknown;
10138
10137
  headers?: [string, string][] | undefined;
10138
+ data?: unknown;
10139
10139
  }, {
10140
10140
  id: string;
10141
10141
  seqNum: number;
10142
- data?: unknown;
10143
10142
  headers?: [string, string][] | undefined;
10143
+ data?: unknown;
10144
10144
  }>, "many">;
10145
10145
  }, "strip", z.ZodTypeAny, {
10146
10146
  records: {
10147
10147
  id: string;
10148
10148
  seqNum: number;
10149
- data?: unknown;
10150
10149
  headers?: [string, string][] | undefined;
10150
+ data?: unknown;
10151
10151
  }[];
10152
10152
  }, {
10153
10153
  records: {
10154
10154
  id: string;
10155
10155
  seqNum: number;
10156
- data?: unknown;
10157
10156
  headers?: [string, string][] | undefined;
10157
+ data?: unknown;
10158
10158
  }[];
10159
10159
  }>;
10160
10160
  export type ReadSessionStreamRecordsResponseBody = z.infer<typeof ReadSessionStreamRecordsResponseBody>;
@@ -255,8 +255,8 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
255
255
  friendlyId: string;
256
256
  completedAt: Date;
257
257
  outputIsError: boolean;
258
- idempotencyKey?: string | undefined;
259
258
  output?: string | undefined;
259
+ idempotencyKey?: string | undefined;
260
260
  outputType?: string | undefined;
261
261
  index?: number | undefined;
262
262
  completedByTaskRun?: {
@@ -278,8 +278,8 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
278
278
  friendlyId: string;
279
279
  completedAt: Date;
280
280
  outputIsError: boolean;
281
- idempotencyKey?: string | undefined;
282
281
  output?: string | undefined;
282
+ idempotencyKey?: string | undefined;
283
283
  outputType?: string | undefined;
284
284
  index?: number | undefined;
285
285
  completedByTaskRun?: {
@@ -385,8 +385,8 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
385
385
  friendlyId: string;
386
386
  completedAt: Date;
387
387
  outputIsError: boolean;
388
- idempotencyKey?: string | undefined;
389
388
  output?: string | undefined;
389
+ idempotencyKey?: string | undefined;
390
390
  outputType?: string | undefined;
391
391
  index?: number | undefined;
392
392
  completedByTaskRun?: {
@@ -476,8 +476,8 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
476
476
  friendlyId: string;
477
477
  completedAt: Date;
478
478
  outputIsError: boolean;
479
- idempotencyKey?: string | undefined;
480
479
  output?: string | undefined;
480
+ idempotencyKey?: string | undefined;
481
481
  outputType?: string | undefined;
482
482
  index?: number | undefined;
483
483
  completedByTaskRun?: {
@@ -4356,6 +4356,7 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
4356
4356
  ok: true;
4357
4357
  id: string;
4358
4358
  outputType: string;
4359
+ output?: string | undefined;
4359
4360
  metadata?: {
4360
4361
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4361
4362
  operations?: ({
@@ -4436,11 +4437,11 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
4436
4437
  dataType: string;
4437
4438
  data?: string | undefined;
4438
4439
  } | undefined;
4439
- output?: string | undefined;
4440
4440
  }, {
4441
4441
  ok: true;
4442
4442
  id: string;
4443
4443
  outputType: string;
4444
+ output?: string | undefined;
4444
4445
  metadata?: {
4445
4446
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4446
4447
  operations?: ({
@@ -4521,7 +4522,6 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
4521
4522
  dataType: string;
4522
4523
  data?: string | undefined;
4523
4524
  } | undefined;
4524
- output?: string | undefined;
4525
4525
  }>;
4526
4526
  export type TaskRunSuccessfulExecutionResult = z.infer<typeof TaskRunSuccessfulExecutionResult>;
4527
4527
  export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
@@ -4897,6 +4897,7 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
4897
4897
  ok: true;
4898
4898
  id: string;
4899
4899
  outputType: string;
4900
+ output?: string | undefined;
4900
4901
  metadata?: {
4901
4902
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4902
4903
  operations?: ({
@@ -4977,11 +4978,11 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
4977
4978
  dataType: string;
4978
4979
  data?: string | undefined;
4979
4980
  } | undefined;
4980
- output?: string | undefined;
4981
4981
  }, {
4982
4982
  ok: true;
4983
4983
  id: string;
4984
4984
  outputType: string;
4985
+ output?: string | undefined;
4985
4986
  metadata?: {
4986
4987
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4987
4988
  operations?: ({
@@ -5062,7 +5063,6 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
5062
5063
  dataType: string;
5063
5064
  data?: string | undefined;
5064
5065
  } | undefined;
5065
- output?: string | undefined;
5066
5066
  }>, z.ZodObject<{
5067
5067
  ok: z.ZodLiteral<false>;
5068
5068
  id: z.ZodString;
@@ -6083,6 +6083,7 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
6083
6083
  ok: true;
6084
6084
  id: string;
6085
6085
  outputType: string;
6086
+ output?: string | undefined;
6086
6087
  metadata?: {
6087
6088
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
6088
6089
  operations?: ({
@@ -6163,11 +6164,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
6163
6164
  dataType: string;
6164
6165
  data?: string | undefined;
6165
6166
  } | undefined;
6166
- output?: string | undefined;
6167
6167
  }, {
6168
6168
  ok: true;
6169
6169
  id: string;
6170
6170
  outputType: string;
6171
+ output?: string | undefined;
6171
6172
  metadata?: {
6172
6173
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
6173
6174
  operations?: ({
@@ -6248,7 +6249,6 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
6248
6249
  dataType: string;
6249
6250
  data?: string | undefined;
6250
6251
  } | undefined;
6251
- output?: string | undefined;
6252
6252
  }>, z.ZodObject<{
6253
6253
  ok: z.ZodLiteral<false>;
6254
6254
  id: z.ZodString;
@@ -7005,6 +7005,7 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
7005
7005
  ok: true;
7006
7006
  id: string;
7007
7007
  outputType: string;
7008
+ output?: string | undefined;
7008
7009
  metadata?: {
7009
7010
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
7010
7011
  operations?: ({
@@ -7085,7 +7086,6 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
7085
7086
  dataType: string;
7086
7087
  data?: string | undefined;
7087
7088
  } | undefined;
7088
- output?: string | undefined;
7089
7089
  })[];
7090
7090
  }, {
7091
7091
  id: string;
@@ -7199,6 +7199,7 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
7199
7199
  ok: true;
7200
7200
  id: string;
7201
7201
  outputType: string;
7202
+ output?: string | undefined;
7202
7203
  metadata?: {
7203
7204
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
7204
7205
  operations?: ({
@@ -7279,7 +7280,6 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
7279
7280
  dataType: string;
7280
7281
  data?: string | undefined;
7281
7282
  } | undefined;
7282
- output?: string | undefined;
7283
7283
  })[];
7284
7284
  }>;
7285
7285
  export type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;
@@ -1666,6 +1666,7 @@ export declare const ExecutorToWorkerMessageCatalog: {
1666
1666
  ok: true;
1667
1667
  id: string;
1668
1668
  outputType: string;
1669
+ output?: string | undefined;
1669
1670
  metadata?: {
1670
1671
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1671
1672
  operations?: ({
@@ -1746,11 +1747,11 @@ export declare const ExecutorToWorkerMessageCatalog: {
1746
1747
  dataType: string;
1747
1748
  data?: string | undefined;
1748
1749
  } | undefined;
1749
- output?: string | undefined;
1750
1750
  }, {
1751
1751
  ok: true;
1752
1752
  id: string;
1753
1753
  outputType: string;
1754
+ output?: string | undefined;
1754
1755
  metadata?: {
1755
1756
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1756
1757
  operations?: ({
@@ -1831,7 +1832,6 @@ export declare const ExecutorToWorkerMessageCatalog: {
1831
1832
  dataType: string;
1832
1833
  data?: string | undefined;
1833
1834
  } | undefined;
1834
- output?: string | undefined;
1835
1835
  }>, z.ZodObject<{
1836
1836
  ok: z.ZodLiteral<false>;
1837
1837
  id: z.ZodString;
@@ -2694,6 +2694,7 @@ export declare const ExecutorToWorkerMessageCatalog: {
2694
2694
  ok: true;
2695
2695
  id: string;
2696
2696
  outputType: string;
2697
+ output?: string | undefined;
2697
2698
  metadata?: {
2698
2699
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
2699
2700
  operations?: ({
@@ -2774,7 +2775,6 @@ export declare const ExecutorToWorkerMessageCatalog: {
2774
2775
  dataType: string;
2775
2776
  data?: string | undefined;
2776
2777
  } | undefined;
2777
- output?: string | undefined;
2778
2778
  };
2779
2779
  }, {
2780
2780
  execution: {
@@ -2994,6 +2994,7 @@ export declare const ExecutorToWorkerMessageCatalog: {
2994
2994
  ok: true;
2995
2995
  id: string;
2996
2996
  outputType: string;
2997
+ output?: string | undefined;
2997
2998
  metadata?: {
2998
2999
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
2999
3000
  operations?: ({
@@ -3074,7 +3075,6 @@ export declare const ExecutorToWorkerMessageCatalog: {
3074
3075
  dataType: string;
3075
3076
  data?: string | undefined;
3076
3077
  } | undefined;
3077
- output?: string | undefined;
3078
3078
  };
3079
3079
  version?: "v1" | undefined;
3080
3080
  }>;
@@ -4092,8 +4092,8 @@ export declare const WorkerToExecutorMessageCatalog: {
4092
4092
  friendlyId: string;
4093
4093
  completedAt: Date;
4094
4094
  outputIsError: boolean;
4095
- idempotencyKey?: string | undefined;
4096
4095
  output?: string | undefined;
4096
+ idempotencyKey?: string | undefined;
4097
4097
  outputType?: string | undefined;
4098
4098
  index?: number | undefined;
4099
4099
  completedByTaskRun?: {
@@ -4115,8 +4115,8 @@ export declare const WorkerToExecutorMessageCatalog: {
4115
4115
  friendlyId: string;
4116
4116
  completedAt: Date;
4117
4117
  outputIsError: boolean;
4118
- idempotencyKey?: string | undefined;
4119
4118
  output?: string | undefined;
4119
+ idempotencyKey?: string | undefined;
4120
4120
  outputType?: string | undefined;
4121
4121
  index?: number | undefined;
4122
4122
  completedByTaskRun?: {
@@ -4141,8 +4141,8 @@ export declare const WorkerToExecutorMessageCatalog: {
4141
4141
  friendlyId: string;
4142
4142
  completedAt: Date;
4143
4143
  outputIsError: boolean;
4144
- idempotencyKey?: string | undefined;
4145
4144
  output?: string | undefined;
4145
+ idempotencyKey?: string | undefined;
4146
4146
  outputType?: string | undefined;
4147
4147
  index?: number | undefined;
4148
4148
  completedByTaskRun?: {
@@ -4166,8 +4166,8 @@ export declare const WorkerToExecutorMessageCatalog: {
4166
4166
  friendlyId: string;
4167
4167
  completedAt: Date;
4168
4168
  outputIsError: boolean;
4169
- idempotencyKey?: string | undefined;
4170
4169
  output?: string | undefined;
4170
+ idempotencyKey?: string | undefined;
4171
4171
  outputType?: string | undefined;
4172
4172
  index?: number | undefined;
4173
4173
  completedByTaskRun?: {
@@ -137,8 +137,8 @@ export declare const CompletedWaitpoint: z.ZodObject<{
137
137
  friendlyId: string;
138
138
  completedAt: Date;
139
139
  outputIsError: boolean;
140
- idempotencyKey?: string | undefined;
141
140
  output?: string | undefined;
141
+ idempotencyKey?: string | undefined;
142
142
  outputType?: string | undefined;
143
143
  index?: number | undefined;
144
144
  completedByTaskRun?: {
@@ -160,8 +160,8 @@ export declare const CompletedWaitpoint: z.ZodObject<{
160
160
  friendlyId: string;
161
161
  completedAt: Date;
162
162
  outputIsError: boolean;
163
- idempotencyKey?: string | undefined;
164
163
  output?: string | undefined;
164
+ idempotencyKey?: string | undefined;
165
165
  outputType?: string | undefined;
166
166
  index?: number | undefined;
167
167
  completedByTaskRun?: {
@@ -1354,8 +1354,8 @@ export declare const RunExecutionData: z.ZodObject<{
1354
1354
  friendlyId: string;
1355
1355
  completedAt: Date;
1356
1356
  outputIsError: boolean;
1357
- idempotencyKey?: string | undefined;
1358
1357
  output?: string | undefined;
1358
+ idempotencyKey?: string | undefined;
1359
1359
  outputType?: string | undefined;
1360
1360
  index?: number | undefined;
1361
1361
  completedByTaskRun?: {
@@ -1377,8 +1377,8 @@ export declare const RunExecutionData: z.ZodObject<{
1377
1377
  friendlyId: string;
1378
1378
  completedAt: Date;
1379
1379
  outputIsError: boolean;
1380
- idempotencyKey?: string | undefined;
1381
1380
  output?: string | undefined;
1381
+ idempotencyKey?: string | undefined;
1382
1382
  outputType?: string | undefined;
1383
1383
  index?: number | undefined;
1384
1384
  completedByTaskRun?: {
@@ -1417,8 +1417,8 @@ export declare const RunExecutionData: z.ZodObject<{
1417
1417
  friendlyId: string;
1418
1418
  completedAt: Date;
1419
1419
  outputIsError: boolean;
1420
- idempotencyKey?: string | undefined;
1421
1420
  output?: string | undefined;
1421
+ idempotencyKey?: string | undefined;
1422
1422
  outputType?: string | undefined;
1423
1423
  index?: number | undefined;
1424
1424
  completedByTaskRun?: {
@@ -1469,8 +1469,8 @@ export declare const RunExecutionData: z.ZodObject<{
1469
1469
  friendlyId: string;
1470
1470
  completedAt: Date;
1471
1471
  outputIsError: boolean;
1472
- idempotencyKey?: string | undefined;
1473
1472
  output?: string | undefined;
1473
+ idempotencyKey?: string | undefined;
1474
1474
  outputType?: string | undefined;
1475
1475
  index?: number | undefined;
1476
1476
  completedByTaskRun?: {
@@ -1769,8 +1769,8 @@ export declare const DequeuedMessage: z.ZodObject<{
1769
1769
  friendlyId: string;
1770
1770
  completedAt: Date;
1771
1771
  outputIsError: boolean;
1772
- idempotencyKey?: string | undefined;
1773
1772
  output?: string | undefined;
1773
+ idempotencyKey?: string | undefined;
1774
1774
  outputType?: string | undefined;
1775
1775
  index?: number | undefined;
1776
1776
  completedByTaskRun?: {
@@ -1792,8 +1792,8 @@ export declare const DequeuedMessage: z.ZodObject<{
1792
1792
  friendlyId: string;
1793
1793
  completedAt: Date;
1794
1794
  outputIsError: boolean;
1795
- idempotencyKey?: string | undefined;
1796
1795
  output?: string | undefined;
1796
+ idempotencyKey?: string | undefined;
1797
1797
  outputType?: string | undefined;
1798
1798
  index?: number | undefined;
1799
1799
  completedByTaskRun?: {
@@ -2015,8 +2015,8 @@ export declare const DequeuedMessage: z.ZodObject<{
2015
2015
  friendlyId: string;
2016
2016
  completedAt: Date;
2017
2017
  outputIsError: boolean;
2018
- idempotencyKey?: string | undefined;
2019
2018
  output?: string | undefined;
2019
+ idempotencyKey?: string | undefined;
2020
2020
  outputType?: string | undefined;
2021
2021
  index?: number | undefined;
2022
2022
  completedByTaskRun?: {
@@ -2106,8 +2106,8 @@ export declare const DequeuedMessage: z.ZodObject<{
2106
2106
  friendlyId: string;
2107
2107
  completedAt: Date;
2108
2108
  outputIsError: boolean;
2109
- idempotencyKey?: string | undefined;
2110
2109
  output?: string | undefined;
2110
+ idempotencyKey?: string | undefined;
2111
2111
  outputType?: string | undefined;
2112
2112
  index?: number | undefined;
2113
2113
  completedByTaskRun?: {
@@ -2,6 +2,7 @@
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SimpleStructuredLogger = exports.LogLevel = void 0;
5
+ const logger_js_1 = require("../../logger.js");
5
6
  var LogLevel;
6
7
  (function (LogLevel) {
7
8
  LogLevel[LogLevel["log"] = 0] = "log";
@@ -68,14 +69,14 @@ class SimpleStructuredLogger {
68
69
  };
69
70
  }
70
71
  #structuredLog(loggerFunction, message, level, ...args) {
71
- const structuredLog = {
72
+ const structuredLog = (0, logger_js_1.redact)({
72
73
  timestamp: new Date(),
73
74
  message,
74
75
  $name: this.name,
75
76
  $level: level,
76
77
  ...this.fields,
77
78
  ...(args.length === 1 ? args[0] : args),
78
- };
79
+ });
79
80
  if (_a.onLog) {
80
81
  try {
81
82
  _a.onLog(structuredLog);
@@ -1 +1 @@
1
- {"version":3,"file":"structuredLogger.js","sourceRoot":"","sources":["../../../../src/v3/utils/structuredLogger.ts"],"names":[],"mappings":";;;;AAWA,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,qCAAK,CAAA;IACL,yCAAO,CAAA;IACP,uCAAM,CAAA;IACN,uCAAM,CAAA;IACN,yCAAO,CAAA;IACP,6CAAS,CAAA;AACX,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAED,MAAa,sBAAsB;IAQvB;IACA;IAKA;IAbV,oFAAoF;IACpF,yFAAyF;IACzF,MAAM,CAAC,KAAK,CAAoD;IAExD,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAE5E,YACU,IAAY,EACZ,QAAkB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;QACzE,CAAC,CAAC,QAAQ,CAAC,OAAO;QAClB,CAAC,CAA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AI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;CACF;AA7FD,wDA6FC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "4.5.8";
4
+ exports.VERSION = "4.5.9";
5
5
  //# sourceMappingURL=version.js.map
@@ -14,3 +14,4 @@ export declare class Logger {
14
14
  debug(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
15
15
  verbose(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
16
16
  }
17
+ export declare function redact(value: unknown, filteredKeys?: string[]): unknown;