@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
@@ -1,11 +1,43 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.JWT_AUDIENCE = exports.JWT_ISSUER = exports.JWT_ALGORITHM = void 0;
4
+ exports.isPublicJWT = isPublicJWT;
5
+ exports.extractJWTSub = extractJWTSub;
4
6
  exports.generateJWT = generateJWT;
5
7
  exports.validateJWT = validateJWT;
6
8
  exports.JWT_ALGORITHM = "HS256";
7
9
  exports.JWT_ISSUER = "https://id.trigger.dev";
8
10
  exports.JWT_AUDIENCE = "https://api.trigger.dev";
11
+ function decodeJWTPayload(token) {
12
+ const parts = token.split(".");
13
+ const encodedPayload = parts[1];
14
+ if (parts.length !== 3 || !encodedPayload)
15
+ return;
16
+ try {
17
+ const base64 = encodedPayload
18
+ .replace(/-/g, "+")
19
+ .replace(/_/g, "/")
20
+ .padEnd(Math.ceil(encodedPayload.length / 4) * 4, "=");
21
+ const bytes = Uint8Array.from(atob(base64), (character) => character.charCodeAt(0));
22
+ return JSON.parse(new TextDecoder().decode(bytes));
23
+ }
24
+ catch {
25
+ return;
26
+ }
27
+ }
28
+ function isPublicJWT(token) {
29
+ const payload = decodeJWTPayload(token);
30
+ return (payload !== null && typeof payload === "object" && "pub" in payload && payload.pub === true);
31
+ }
32
+ function extractJWTSub(token) {
33
+ const payload = decodeJWTPayload(token);
34
+ return payload !== null &&
35
+ typeof payload === "object" &&
36
+ "sub" in payload &&
37
+ typeof payload.sub === "string"
38
+ ? payload.sub
39
+ : undefined;
40
+ }
9
41
  async function generateJWT(options) {
10
42
  const { SignJWT } = await import("jose");
11
43
  const secret = new TextEncoder().encode(options.secretKey);
@@ -1 +1 @@
1
- {"version":3,"file":"jwt.js","sourceRoot":"","sources":["../../../src/v3/jwt.ts"],"names":[],"mappings":";;;AAgBA,kCAgBC;AAaD,kCA2BC;AA5DY,QAAA,aAAa,GAAG,OAAO,CAAC;AACxB,QAAA,UAAU,GAAG,wBAAwB,CAAC;AACtC,QAAA,YAAY,GAAG,yBAAyB,CAAC;AAE/C,KAAK,UAAU,WAAW,CAAC,OAA2B;IAC3D,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;IAEzC,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAE3D,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;SACrC,SAAS,CAAC,kBAAU,CAAC;SACrB,WAAW,CAAC,oBAAY,CAAC;SACzB,kBAAkB,CAAC,EAAE,GAAG,EAAE,qBAAa,EAAE,CAAC;SAC1C,iBAAiB,CAAC,OAAO,CAAC,cAAc,IAAI,KAAK,CAAC,CAAC;IAEtD,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;QAC1B,GAAG,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;IAED,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC1B,CAAC;AAaM,KAAK,UAAU,WAAW,CAAC,KAAa,EAAE,MAAc;IAC7D,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,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AAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;gBAC/D,IAAI,EAAE,aAAa;aACpB,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -72,8 +72,8 @@ export declare class SupervisorHttpClient {
72
72
  friendlyId: string;
73
73
  completedAt: Date;
74
74
  outputIsError: boolean;
75
- idempotencyKey?: string | undefined;
76
75
  output?: string | undefined;
76
+ idempotencyKey?: string | undefined;
77
77
  outputType?: string | undefined;
78
78
  index?: number | undefined;
79
79
  completedByTaskRun?: {
@@ -165,8 +165,8 @@ export declare class SupervisorHttpClient {
165
165
  friendlyId: string;
166
166
  completedAt: Date;
167
167
  outputIsError: boolean;
168
- idempotencyKey?: string | undefined;
169
168
  output?: string | undefined;
169
+ idempotencyKey?: string | undefined;
170
170
  outputType?: string | undefined;
171
171
  index?: number | undefined;
172
172
  completedByTaskRun?: {
@@ -379,8 +379,8 @@ export declare class SupervisorHttpClient {
379
379
  friendlyId: string;
380
380
  completedAt: Date;
381
381
  outputIsError: boolean;
382
- idempotencyKey?: string | undefined;
383
382
  output?: string | undefined;
383
+ idempotencyKey?: string | undefined;
384
384
  outputType?: string | undefined;
385
385
  index?: number | undefined;
386
386
  completedByTaskRun?: {
@@ -434,8 +434,8 @@ export declare class SupervisorHttpClient {
434
434
  friendlyId: string;
435
435
  completedAt: Date;
436
436
  outputIsError: boolean;
437
- idempotencyKey?: string | undefined;
438
437
  output?: string | undefined;
438
+ idempotencyKey?: string | undefined;
439
439
  outputType?: string | undefined;
440
440
  index?: number | undefined;
441
441
  completedByTaskRun?: {
@@ -345,8 +345,8 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
345
345
  friendlyId: string;
346
346
  completedAt: Date;
347
347
  outputIsError: boolean;
348
- idempotencyKey?: string | undefined;
349
348
  output?: string | undefined;
349
+ idempotencyKey?: string | undefined;
350
350
  outputType?: string | undefined;
351
351
  index?: number | undefined;
352
352
  completedByTaskRun?: {
@@ -368,8 +368,8 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
368
368
  friendlyId: string;
369
369
  completedAt: Date;
370
370
  outputIsError: boolean;
371
- idempotencyKey?: string | undefined;
372
371
  output?: string | undefined;
372
+ idempotencyKey?: string | undefined;
373
373
  outputType?: string | undefined;
374
374
  index?: number | undefined;
375
375
  completedByTaskRun?: {
@@ -591,8 +591,8 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
591
591
  friendlyId: string;
592
592
  completedAt: Date;
593
593
  outputIsError: boolean;
594
- idempotencyKey?: string | undefined;
595
594
  output?: string | undefined;
595
+ idempotencyKey?: string | undefined;
596
596
  outputType?: string | undefined;
597
597
  index?: number | undefined;
598
598
  completedByTaskRun?: {
@@ -682,8 +682,8 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
682
682
  friendlyId: string;
683
683
  completedAt: Date;
684
684
  outputIsError: boolean;
685
- idempotencyKey?: string | undefined;
686
685
  output?: string | undefined;
686
+ idempotencyKey?: string | undefined;
687
687
  outputType?: string | undefined;
688
688
  index?: number | undefined;
689
689
  completedByTaskRun?: {
@@ -1970,6 +1970,7 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1970
1970
  ok: true;
1971
1971
  id: string;
1972
1972
  outputType: string;
1973
+ output?: string | undefined;
1973
1974
  metadata?: {
1974
1975
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1975
1976
  operations?: ({
@@ -2050,11 +2051,11 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2050
2051
  dataType: string;
2051
2052
  data?: string | undefined;
2052
2053
  } | undefined;
2053
- output?: string | undefined;
2054
2054
  }, {
2055
2055
  ok: true;
2056
2056
  id: string;
2057
2057
  outputType: string;
2058
+ output?: string | undefined;
2058
2059
  metadata?: {
2059
2060
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2060
2061
  operations?: ({
@@ -2135,7 +2136,6 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2135
2136
  dataType: string;
2136
2137
  data?: string | undefined;
2137
2138
  } | undefined;
2138
- output?: string | undefined;
2139
2139
  }>, z.ZodObject<{
2140
2140
  ok: z.ZodLiteral<false>;
2141
2141
  id: z.ZodString;
@@ -2890,6 +2890,7 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2890
2890
  ok: true;
2891
2891
  id: string;
2892
2892
  outputType: string;
2893
+ output?: string | undefined;
2893
2894
  metadata?: {
2894
2895
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2895
2896
  operations?: ({
@@ -2970,7 +2971,6 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2970
2971
  dataType: string;
2971
2972
  data?: string | undefined;
2972
2973
  } | undefined;
2973
- output?: string | undefined;
2974
2974
  };
2975
2975
  }, {
2976
2976
  completion: {
@@ -3083,6 +3083,7 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
3083
3083
  ok: true;
3084
3084
  id: string;
3085
3085
  outputType: string;
3086
+ output?: string | undefined;
3086
3087
  metadata?: {
3087
3088
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
3088
3089
  operations?: ({
@@ -3163,7 +3164,6 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
3163
3164
  dataType: string;
3164
3165
  data?: string | undefined;
3165
3166
  } | undefined;
3166
- output?: string | undefined;
3167
3167
  };
3168
3168
  }>;
3169
3169
  export type WorkerApiRunAttemptCompleteRequestBody = z.infer<typeof WorkerApiRunAttemptCompleteRequestBody>;
@@ -3413,8 +3413,8 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3413
3413
  friendlyId: string;
3414
3414
  completedAt: Date;
3415
3415
  outputIsError: boolean;
3416
- idempotencyKey?: string | undefined;
3417
3416
  output?: string | undefined;
3417
+ idempotencyKey?: string | undefined;
3418
3418
  outputType?: string | undefined;
3419
3419
  index?: number | undefined;
3420
3420
  completedByTaskRun?: {
@@ -3436,8 +3436,8 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3436
3436
  friendlyId: string;
3437
3437
  completedAt: Date;
3438
3438
  outputIsError: boolean;
3439
- idempotencyKey?: string | undefined;
3440
3439
  output?: string | undefined;
3440
+ idempotencyKey?: string | undefined;
3441
3441
  outputType?: string | undefined;
3442
3442
  index?: number | undefined;
3443
3443
  completedByTaskRun?: {
@@ -3476,8 +3476,8 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3476
3476
  friendlyId: string;
3477
3477
  completedAt: Date;
3478
3478
  outputIsError: boolean;
3479
- idempotencyKey?: string | undefined;
3480
3479
  output?: string | undefined;
3480
+ idempotencyKey?: string | undefined;
3481
3481
  outputType?: string | undefined;
3482
3482
  index?: number | undefined;
3483
3483
  completedByTaskRun?: {
@@ -3528,8 +3528,8 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3528
3528
  friendlyId: string;
3529
3529
  completedAt: Date;
3530
3530
  outputIsError: boolean;
3531
- idempotencyKey?: string | undefined;
3532
3531
  output?: string | undefined;
3532
+ idempotencyKey?: string | undefined;
3533
3533
  outputType?: string | undefined;
3534
3534
  index?: number | undefined;
3535
3535
  completedByTaskRun?: {
@@ -3582,8 +3582,8 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3582
3582
  friendlyId: string;
3583
3583
  completedAt: Date;
3584
3584
  outputIsError: boolean;
3585
- idempotencyKey?: string | undefined;
3586
3585
  output?: string | undefined;
3586
+ idempotencyKey?: string | undefined;
3587
3587
  outputType?: string | undefined;
3588
3588
  index?: number | undefined;
3589
3589
  completedByTaskRun?: {
@@ -3636,8 +3636,8 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3636
3636
  friendlyId: string;
3637
3637
  completedAt: Date;
3638
3638
  outputIsError: boolean;
3639
- idempotencyKey?: string | undefined;
3640
3639
  output?: string | undefined;
3640
+ idempotencyKey?: string | undefined;
3641
3641
  outputType?: string | undefined;
3642
3642
  index?: number | undefined;
3643
3643
  completedByTaskRun?: {
@@ -3767,8 +3767,8 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3767
3767
  friendlyId: string;
3768
3768
  completedAt: Date;
3769
3769
  outputIsError: boolean;
3770
- idempotencyKey?: string | undefined;
3771
3770
  output?: string | undefined;
3771
+ idempotencyKey?: string | undefined;
3772
3772
  outputType?: string | undefined;
3773
3773
  index?: number | undefined;
3774
3774
  completedByTaskRun?: {
@@ -3790,8 +3790,8 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3790
3790
  friendlyId: string;
3791
3791
  completedAt: Date;
3792
3792
  outputIsError: boolean;
3793
- idempotencyKey?: string | undefined;
3794
3793
  output?: string | undefined;
3794
+ idempotencyKey?: string | undefined;
3795
3795
  outputType?: string | undefined;
3796
3796
  index?: number | undefined;
3797
3797
  completedByTaskRun?: {
@@ -4013,8 +4013,8 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
4013
4013
  friendlyId: string;
4014
4014
  completedAt: Date;
4015
4015
  outputIsError: boolean;
4016
- idempotencyKey?: string | undefined;
4017
4016
  output?: string | undefined;
4017
+ idempotencyKey?: string | undefined;
4018
4018
  outputType?: string | undefined;
4019
4019
  index?: number | undefined;
4020
4020
  completedByTaskRun?: {
@@ -4104,8 +4104,8 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
4104
4104
  friendlyId: string;
4105
4105
  completedAt: Date;
4106
4106
  outputIsError: boolean;
4107
- idempotencyKey?: string | undefined;
4108
4107
  output?: string | undefined;
4108
+ idempotencyKey?: string | undefined;
4109
4109
  outputType?: string | undefined;
4110
4110
  index?: number | undefined;
4111
4111
  completedByTaskRun?: {
@@ -4317,8 +4317,8 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4317
4317
  friendlyId: string;
4318
4318
  completedAt: Date;
4319
4319
  outputIsError: boolean;
4320
- idempotencyKey?: string | undefined;
4321
4320
  output?: string | undefined;
4321
+ idempotencyKey?: string | undefined;
4322
4322
  outputType?: string | undefined;
4323
4323
  index?: number | undefined;
4324
4324
  completedByTaskRun?: {
@@ -4340,8 +4340,8 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4340
4340
  friendlyId: string;
4341
4341
  completedAt: Date;
4342
4342
  outputIsError: boolean;
4343
- idempotencyKey?: string | undefined;
4344
4343
  output?: string | undefined;
4344
+ idempotencyKey?: string | undefined;
4345
4345
  outputType?: string | undefined;
4346
4346
  index?: number | undefined;
4347
4347
  completedByTaskRun?: {
@@ -4380,8 +4380,8 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4380
4380
  friendlyId: string;
4381
4381
  completedAt: Date;
4382
4382
  outputIsError: boolean;
4383
- idempotencyKey?: string | undefined;
4384
4383
  output?: string | undefined;
4384
+ idempotencyKey?: string | undefined;
4385
4385
  outputType?: string | undefined;
4386
4386
  index?: number | undefined;
4387
4387
  completedByTaskRun?: {
@@ -4432,8 +4432,8 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4432
4432
  friendlyId: string;
4433
4433
  completedAt: Date;
4434
4434
  outputIsError: boolean;
4435
- idempotencyKey?: string | undefined;
4436
4435
  output?: string | undefined;
4436
+ idempotencyKey?: string | undefined;
4437
4437
  outputType?: string | undefined;
4438
4438
  index?: number | undefined;
4439
4439
  completedByTaskRun?: {
@@ -4486,8 +4486,8 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4486
4486
  friendlyId: string;
4487
4487
  completedAt: Date;
4488
4488
  outputIsError: boolean;
4489
- idempotencyKey?: string | undefined;
4490
4489
  output?: string | undefined;
4490
+ idempotencyKey?: string | undefined;
4491
4491
  outputType?: string | undefined;
4492
4492
  index?: number | undefined;
4493
4493
  completedByTaskRun?: {
@@ -4540,8 +4540,8 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4540
4540
  friendlyId: string;
4541
4541
  completedAt: Date;
4542
4542
  outputIsError: boolean;
4543
- idempotencyKey?: string | undefined;
4544
4543
  output?: string | undefined;
4544
+ idempotencyKey?: string | undefined;
4545
4545
  outputType?: string | undefined;
4546
4546
  index?: number | undefined;
4547
4547
  completedByTaskRun?: {
@@ -226,8 +226,8 @@ export declare class WorkloadHttpClient {
226
226
  friendlyId: string;
227
227
  completedAt: Date;
228
228
  outputIsError: boolean;
229
- idempotencyKey?: string | undefined;
230
229
  output?: string | undefined;
230
+ idempotencyKey?: string | undefined;
231
231
  outputType?: string | undefined;
232
232
  index?: number | undefined;
233
233
  completedByTaskRun?: {
@@ -314,8 +314,8 @@ export declare class WorkloadHttpClient {
314
314
  friendlyId: string;
315
315
  completedAt: Date;
316
316
  outputIsError: boolean;
317
- idempotencyKey?: string | undefined;
318
317
  output?: string | undefined;
318
+ idempotencyKey?: string | undefined;
319
319
  outputType?: string | undefined;
320
320
  index?: number | undefined;
321
321
  completedByTaskRun?: {
@@ -480,6 +480,7 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
480
480
  ok: true;
481
481
  id: string;
482
482
  outputType: string;
483
+ output?: string | undefined;
483
484
  metadata?: {
484
485
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
485
486
  operations?: ({
@@ -560,11 +561,11 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
560
561
  dataType: string;
561
562
  data?: string | undefined;
562
563
  } | undefined;
563
- output?: string | undefined;
564
564
  }, {
565
565
  ok: true;
566
566
  id: string;
567
567
  outputType: string;
568
+ output?: string | undefined;
568
569
  metadata?: {
569
570
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
570
571
  operations?: ({
@@ -645,7 +646,6 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
645
646
  dataType: string;
646
647
  data?: string | undefined;
647
648
  } | undefined;
648
- output?: string | undefined;
649
649
  }>, z.ZodObject<{
650
650
  ok: z.ZodLiteral<false>;
651
651
  id: z.ZodString;
@@ -1400,6 +1400,7 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1400
1400
  ok: true;
1401
1401
  id: string;
1402
1402
  outputType: string;
1403
+ output?: string | undefined;
1403
1404
  metadata?: {
1404
1405
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1405
1406
  operations?: ({
@@ -1480,7 +1481,6 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1480
1481
  dataType: string;
1481
1482
  data?: string | undefined;
1482
1483
  } | undefined;
1483
- output?: string | undefined;
1484
1484
  };
1485
1485
  }, {
1486
1486
  completion: {
@@ -1593,6 +1593,7 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1593
1593
  ok: true;
1594
1594
  id: string;
1595
1595
  outputType: string;
1596
+ output?: string | undefined;
1596
1597
  metadata?: {
1597
1598
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1598
1599
  operations?: ({
@@ -1673,7 +1674,6 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1673
1674
  dataType: string;
1674
1675
  data?: string | undefined;
1675
1676
  } | undefined;
1676
- output?: string | undefined;
1677
1677
  };
1678
1678
  }>;
1679
1679
  export type WorkloadRunAttemptCompleteRequestBody = z.infer<typeof WorkloadRunAttemptCompleteRequestBody>;
@@ -2778,8 +2778,8 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2778
2778
  friendlyId: string;
2779
2779
  completedAt: Date;
2780
2780
  outputIsError: boolean;
2781
- idempotencyKey?: string | undefined;
2782
2781
  output?: string | undefined;
2782
+ idempotencyKey?: string | undefined;
2783
2783
  outputType?: string | undefined;
2784
2784
  index?: number | undefined;
2785
2785
  completedByTaskRun?: {
@@ -2801,8 +2801,8 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2801
2801
  friendlyId: string;
2802
2802
  completedAt: Date;
2803
2803
  outputIsError: boolean;
2804
- idempotencyKey?: string | undefined;
2805
2804
  output?: string | undefined;
2805
+ idempotencyKey?: string | undefined;
2806
2806
  outputType?: string | undefined;
2807
2807
  index?: number | undefined;
2808
2808
  completedByTaskRun?: {
@@ -2841,8 +2841,8 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2841
2841
  friendlyId: string;
2842
2842
  completedAt: Date;
2843
2843
  outputIsError: boolean;
2844
- idempotencyKey?: string | undefined;
2845
2844
  output?: string | undefined;
2845
+ idempotencyKey?: string | undefined;
2846
2846
  outputType?: string | undefined;
2847
2847
  index?: number | undefined;
2848
2848
  completedByTaskRun?: {
@@ -2893,8 +2893,8 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2893
2893
  friendlyId: string;
2894
2894
  completedAt: Date;
2895
2895
  outputIsError: boolean;
2896
- idempotencyKey?: string | undefined;
2897
2896
  output?: string | undefined;
2897
+ idempotencyKey?: string | undefined;
2898
2898
  outputType?: string | undefined;
2899
2899
  index?: number | undefined;
2900
2900
  completedByTaskRun?: {
@@ -2947,8 +2947,8 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2947
2947
  friendlyId: string;
2948
2948
  completedAt: Date;
2949
2949
  outputIsError: boolean;
2950
- idempotencyKey?: string | undefined;
2951
2950
  output?: string | undefined;
2951
+ idempotencyKey?: string | undefined;
2952
2952
  outputType?: string | undefined;
2953
2953
  index?: number | undefined;
2954
2954
  completedByTaskRun?: {
@@ -3001,8 +3001,8 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
3001
3001
  friendlyId: string;
3002
3002
  completedAt: Date;
3003
3003
  outputIsError: boolean;
3004
- idempotencyKey?: string | undefined;
3005
3004
  output?: string | undefined;
3005
+ idempotencyKey?: string | undefined;
3006
3006
  outputType?: string | undefined;
3007
3007
  index?: number | undefined;
3008
3008
  completedByTaskRun?: {
@@ -3146,8 +3146,8 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3146
3146
  friendlyId: string;
3147
3147
  completedAt: Date;
3148
3148
  outputIsError: boolean;
3149
- idempotencyKey?: string | undefined;
3150
3149
  output?: string | undefined;
3150
+ idempotencyKey?: string | undefined;
3151
3151
  outputType?: string | undefined;
3152
3152
  index?: number | undefined;
3153
3153
  completedByTaskRun?: {
@@ -3169,8 +3169,8 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3169
3169
  friendlyId: string;
3170
3170
  completedAt: Date;
3171
3171
  outputIsError: boolean;
3172
- idempotencyKey?: string | undefined;
3173
3172
  output?: string | undefined;
3173
+ idempotencyKey?: string | undefined;
3174
3174
  outputType?: string | undefined;
3175
3175
  index?: number | undefined;
3176
3176
  completedByTaskRun?: {
@@ -3392,8 +3392,8 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3392
3392
  friendlyId: string;
3393
3393
  completedAt: Date;
3394
3394
  outputIsError: boolean;
3395
- idempotencyKey?: string | undefined;
3396
3395
  output?: string | undefined;
3396
+ idempotencyKey?: string | undefined;
3397
3397
  outputType?: string | undefined;
3398
3398
  index?: number | undefined;
3399
3399
  completedByTaskRun?: {
@@ -3483,8 +3483,8 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3483
3483
  friendlyId: string;
3484
3484
  completedAt: Date;
3485
3485
  outputIsError: boolean;
3486
- idempotencyKey?: string | undefined;
3487
3486
  output?: string | undefined;
3487
+ idempotencyKey?: string | undefined;
3488
3488
  outputType?: string | undefined;
3489
3489
  index?: number | undefined;
3490
3490
  completedByTaskRun?: {
@@ -3652,8 +3652,8 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3652
3652
  friendlyId: string;
3653
3653
  completedAt: Date;
3654
3654
  outputIsError: boolean;
3655
- idempotencyKey?: string | undefined;
3656
3655
  output?: string | undefined;
3656
+ idempotencyKey?: string | undefined;
3657
3657
  outputType?: string | undefined;
3658
3658
  index?: number | undefined;
3659
3659
  completedByTaskRun?: {
@@ -3675,8 +3675,8 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3675
3675
  friendlyId: string;
3676
3676
  completedAt: Date;
3677
3677
  outputIsError: boolean;
3678
- idempotencyKey?: string | undefined;
3679
3678
  output?: string | undefined;
3679
+ idempotencyKey?: string | undefined;
3680
3680
  outputType?: string | undefined;
3681
3681
  index?: number | undefined;
3682
3682
  completedByTaskRun?: {
@@ -3715,8 +3715,8 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3715
3715
  friendlyId: string;
3716
3716
  completedAt: Date;
3717
3717
  outputIsError: boolean;
3718
- idempotencyKey?: string | undefined;
3719
3718
  output?: string | undefined;
3719
+ idempotencyKey?: string | undefined;
3720
3720
  outputType?: string | undefined;
3721
3721
  index?: number | undefined;
3722
3722
  completedByTaskRun?: {
@@ -3767,8 +3767,8 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3767
3767
  friendlyId: string;
3768
3768
  completedAt: Date;
3769
3769
  outputIsError: boolean;
3770
- idempotencyKey?: string | undefined;
3771
3770
  output?: string | undefined;
3771
+ idempotencyKey?: string | undefined;
3772
3772
  outputType?: string | undefined;
3773
3773
  index?: number | undefined;
3774
3774
  completedByTaskRun?: {
@@ -3821,8 +3821,8 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3821
3821
  friendlyId: string;
3822
3822
  completedAt: Date;
3823
3823
  outputIsError: boolean;
3824
- idempotencyKey?: string | undefined;
3825
3824
  output?: string | undefined;
3825
+ idempotencyKey?: string | undefined;
3826
3826
  outputType?: string | undefined;
3827
3827
  index?: number | undefined;
3828
3828
  completedByTaskRun?: {
@@ -3875,8 +3875,8 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
3875
3875
  friendlyId: string;
3876
3876
  completedAt: Date;
3877
3877
  outputIsError: boolean;
3878
- idempotencyKey?: string | undefined;
3879
3878
  output?: string | undefined;
3879
+ idempotencyKey?: string | undefined;
3880
3880
  outputType?: string | undefined;
3881
3881
  index?: number | undefined;
3882
3882
  completedByTaskRun?: {