@trigger.dev/core 3.0.0-beta.22 → 3.0.0-beta.24
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.
- package/dist/catalog-28mBcCbl.d.mts +2487 -0
- package/dist/catalog-Eta7Xel2.d.ts +2487 -0
- package/dist/{catalog-KJXg8k3W.d.ts → messages-vq7Bk4Ap.d.mts} +6725 -554
- package/dist/{catalog-PA64uhhi.d.mts → messages-vq7Bk4Ap.d.ts} +6725 -554
- package/dist/v3/dev/index.d.mts +1 -1
- package/dist/v3/dev/index.d.ts +1 -1
- package/dist/v3/dev/index.js.map +1 -1
- package/dist/v3/dev/index.mjs.map +1 -1
- package/dist/v3/index.d.mts +29 -27
- package/dist/v3/index.d.ts +29 -27
- package/dist/v3/index.js +313 -286
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +313 -286
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/prod/index.d.mts +5 -5
- package/dist/v3/prod/index.d.ts +5 -5
- package/dist/v3/prod/index.js +36 -12
- package/dist/v3/prod/index.js.map +1 -1
- package/dist/v3/prod/index.mjs +37 -13
- package/dist/v3/prod/index.mjs.map +1 -1
- package/dist/v3/workers/index.d.mts +5 -5
- package/dist/v3/workers/index.d.ts +5 -5
- package/dist/v3/workers/index.js +41 -231
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +41 -231
- package/dist/v3/workers/index.mjs.map +1 -1
- package/dist/v3/zodMessageHandler.d.mts +1 -1
- package/dist/v3/zodMessageHandler.d.ts +1 -1
- package/package.json +1 -1
- package/dist/messages-AriaDDm0.d.mts +0 -8696
- package/dist/messages-AriaDDm0.d.ts +0 -8696
- package/dist/{manager-M9GLDnhJ.d.mts → manager-WNMVbgHf.d.mts} +40 -40
- package/dist/{manager-M9GLDnhJ.d.ts → manager-WNMVbgHf.d.ts} +40 -40
package/dist/v3/dev/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-
|
|
1
|
+
import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-WNMVbgHf.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
declare class DevRuntimeManager implements RuntimeManager {
|
package/dist/v3/dev/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-
|
|
1
|
+
import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-WNMVbgHf.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
declare class DevRuntimeManager implements RuntimeManager {
|
package/dist/v3/dev/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v3/utils/timers.ts","../../../src/v3/runtime/devRuntimeManager.ts"],"names":["setTimeout","unboundedTimeout","delay","value","options","maxDelay","fullTimeouts","Math","floor","remainingDelay","lastTimeoutResult","i","DevRuntimeManager","_taskWaits","Map","_batchWaits","_pendingCompletionNotifications","disable","waitForDuration","ms","waitUntil","date","getTime","Date","now","waitForTask","params","pendingCompletion","get","id","delete","promise","Promise","resolve","set","waitForBatch","runs","length","items","all","map","runId","reject","results","resumeTask","completion","execution","wait","run"],"mappings":";;;;;;;;;AACA,SAASA,kBAAkB;
|
|
1
|
+
{"version":3,"sources":["../../../src/v3/utils/timers.ts","../../../src/v3/runtime/devRuntimeManager.ts"],"names":["setInterval","setTimeout","unboundedTimeout","delay","value","options","maxDelay","fullTimeouts","Math","floor","remainingDelay","lastTimeoutResult","i","DevRuntimeManager","_taskWaits","Map","_batchWaits","_pendingCompletionNotifications","disable","waitForDuration","ms","waitUntil","date","getTime","Date","now","waitForTask","params","pendingCompletion","get","id","delete","promise","Promise","resolve","set","waitForBatch","runs","length","items","all","map","runId","reject","results","resumeTask","completion","execution","wait","run"],"mappings":";;;;;;;;;AACA,SAASA,aAAaC,kBAAkB;AAExC,eAAsBC,iBACpBC,QAAgB,GAChBC,OACAC,SACY;AACZ,QAAMC,WAAW;AAEjB,QAAMC,eAAeC,KAAKC,MAAMN,QAAQG,QAAAA;AACxC,QAAMI,iBAAiBP,QAAQG;AAE/B,MAAIK,oBAAoB,MAAMV,WAAWS,gBAAgBN,OAAOC,OAAAA;AAEhE,WAASO,IAAI,GAAGA,IAAIL,cAAcK,KAAK;AACrCD,wBAAoB,MAAMV,WAAWK,UAAUF,OAAOC,OAAAA;EACxD;AAEA,SAAOM;AACT;AAjBsBT;;;ACMf,IAAMW,qBAAN,MAAMA,mBAAAA;EAAN;AACLC,sCAAgF,oBAAIC,IAAAA;AAEpFC,uCAGI,oBAAID,IAAAA;AAERE,2DAAuE,oBAAIF,IAAAA;;EAE3EG,UAAgB;EAEhB;EAEA,MAAMC,gBAAgBC,IAA2B;AAC/C,UAAMlB,iBAAiBkB,EAAAA;EACzB;EAEA,MAAMC,UAAUC,MAA2B;AACzC,WAAO,KAAKH,gBAAgBG,KAAKC,QAAO,IAAKC,KAAKC,IAAG,CAAA;EACvD;EAEA,MAAMC,YAAYC,QAA8E;AAC9F,UAAMC,oBAAoB,KAAKX,gCAAgCY,IAAIF,OAAOG,EAAE;AAE5E,QAAIF,mBAAmB;AACrB,WAAKX,gCAAgCc,OAAOJ,OAAOG,EAAE;AAErD,aAAOF;IACT;AAEA,UAAMI,UAAU,IAAIC,QAAgC,CAACC,YAAY;AAC/D,WAAKpB,WAAWqB,IAAIR,OAAOG,IAAI;QAAEI;MAAQ,CAAA;IAC3C,CAAA;AAEA,WAAO,MAAMF;EACf;EAEA,MAAMI,aAAaT,QAIsB;AACvC,QAAI,CAACA,OAAOU,KAAKC,QAAQ;AACvB,aAAOL,QAAQC,QAAQ;QAAEJ,IAAIH,OAAOG;QAAIS,OAAO,CAAA;MAAG,CAAA;IACpD;AAEA,UAAMP,UAAUC,QAAQO,IACtBb,OAAOU,KAAKI,IAAI,CAACC,UAAU;AACzB,aAAO,IAAIT,QAAgC,CAACC,SAASS,WAAW;AAC9D,cAAMf,oBAAoB,KAAKX,gCAAgCY,IAAIa,KAAAA;AAEnE,YAAId,mBAAmB;AACrB,eAAKX,gCAAgCc,OAAOW,KAAAA;AAE5CR,kBAAQN,iBAAAA;AAER;QACF;AAEA,aAAKd,WAAWqB,IAAIO,OAAO;UAAER;QAAQ,CAAA;MACvC,CAAA;IACF,CAAA,CAAA;AAGF,UAAMU,UAAU,MAAMZ;AAEtB,WAAO;MACLF,IAAIH,OAAOG;MACXS,OAAOK;IACT;EACF;EAEAC,WAAWC,YAAoCC,WAAmC;AAChF,UAAMC,OAAO,KAAKlC,WAAWe,IAAIkB,UAAUE,IAAInB,EAAE;AAEjD,QAAI,CAACkB,MAAM;AAET,WAAK/B,gCAAgCkB,IAAIY,UAAUE,IAAInB,IAAIgB,UAAAA;AAE3D;IACF;AAEAE,SAAKd,QAAQY,UAAAA;AAEb,SAAKhC,WAAWiB,OAAOgB,UAAUE,IAAInB,EAAE;EACzC;AACF;AAvFajB;AAAN,IAAMA,oBAAN","sourcesContent":["import { TimerOptions } from \"node:timers\";\nimport { setInterval, setTimeout } from \"node:timers/promises\";\n\nexport async function unboundedTimeout<T = void>(\n delay: number = 0,\n value?: T,\n options?: TimerOptions\n): Promise<T> {\n const maxDelay = 2147483647; // Highest value that will fit in a 32-bit signed integer\n\n const fullTimeouts = Math.floor(delay / maxDelay);\n const remainingDelay = delay % maxDelay;\n\n let lastTimeoutResult = await setTimeout(remainingDelay, value, options);\n\n for (let i = 0; i < fullTimeouts; i++) {\n lastTimeoutResult = await setTimeout(maxDelay, value, options);\n }\n\n return lastTimeoutResult;\n}\n\nexport async function checkpointSafeTimeout(delay: number = 0): Promise<void> {\n const scanIntervalMs = 1000;\n\n // Every scanIntervalMs, check if delay has elapsed\n for await (const start of setInterval(scanIntervalMs, Date.now())) {\n if (Date.now() - start > delay) {\n break;\n }\n }\n}\n","import {\n BatchTaskRunExecutionResult,\n TaskRunContext,\n TaskRunExecution,\n TaskRunExecutionResult,\n} from \"../schemas\";\nimport { RuntimeManager } from \"./manager\";\nimport { unboundedTimeout } from \"../utils/timers\";\n\nexport class DevRuntimeManager implements RuntimeManager {\n _taskWaits: Map<string, { resolve: (value: TaskRunExecutionResult) => void }> = new Map();\n\n _batchWaits: Map<\n string,\n { resolve: (value: BatchTaskRunExecutionResult) => void; reject: (err?: any) => void }\n > = new Map();\n\n _pendingCompletionNotifications: Map<string, TaskRunExecutionResult> = new Map();\n\n disable(): void {\n // do nothing\n }\n\n async waitForDuration(ms: number): Promise<void> {\n await unboundedTimeout(ms);\n }\n\n async waitUntil(date: Date): Promise<void> {\n return this.waitForDuration(date.getTime() - Date.now());\n }\n\n async waitForTask(params: { id: string; ctx: TaskRunContext }): Promise<TaskRunExecutionResult> {\n const pendingCompletion = this._pendingCompletionNotifications.get(params.id);\n\n if (pendingCompletion) {\n this._pendingCompletionNotifications.delete(params.id);\n\n return pendingCompletion;\n }\n\n const promise = new Promise<TaskRunExecutionResult>((resolve) => {\n this._taskWaits.set(params.id, { resolve });\n });\n\n return await promise;\n }\n\n async waitForBatch(params: {\n id: string;\n runs: string[];\n ctx: TaskRunContext;\n }): Promise<BatchTaskRunExecutionResult> {\n if (!params.runs.length) {\n return Promise.resolve({ id: params.id, items: [] });\n }\n\n const promise = Promise.all(\n params.runs.map((runId) => {\n return new Promise<TaskRunExecutionResult>((resolve, reject) => {\n const pendingCompletion = this._pendingCompletionNotifications.get(runId);\n\n if (pendingCompletion) {\n this._pendingCompletionNotifications.delete(runId);\n\n resolve(pendingCompletion);\n\n return;\n }\n\n this._taskWaits.set(runId, { resolve });\n });\n })\n );\n\n const results = await promise;\n\n return {\n id: params.id,\n items: results,\n };\n }\n\n resumeTask(completion: TaskRunExecutionResult, execution: TaskRunExecution): void {\n const wait = this._taskWaits.get(execution.run.id);\n\n if (!wait) {\n // We need to store the completion in case the task is awaited later\n this._pendingCompletionNotifications.set(execution.run.id, completion);\n\n return;\n }\n\n wait.resolve(completion);\n\n this._taskWaits.delete(execution.run.id);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v3/utils/timers.ts","../../../src/v3/runtime/devRuntimeManager.ts"],"names":["setTimeout","unboundedTimeout","delay","value","options","maxDelay","fullTimeouts","Math","floor","remainingDelay","lastTimeoutResult","i","DevRuntimeManager","_taskWaits","Map","_batchWaits","_pendingCompletionNotifications","disable","waitForDuration","ms","waitUntil","date","getTime","Date","now","waitForTask","params","pendingCompletion","get","id","delete","promise","Promise","resolve","set","waitForBatch","runs","length","items","all","map","runId","reject","results","resumeTask","completion","execution","wait","run"],"mappings":";;;;;;;;;AACA,SAASA,kBAAkB;
|
|
1
|
+
{"version":3,"sources":["../../../src/v3/utils/timers.ts","../../../src/v3/runtime/devRuntimeManager.ts"],"names":["setInterval","setTimeout","unboundedTimeout","delay","value","options","maxDelay","fullTimeouts","Math","floor","remainingDelay","lastTimeoutResult","i","DevRuntimeManager","_taskWaits","Map","_batchWaits","_pendingCompletionNotifications","disable","waitForDuration","ms","waitUntil","date","getTime","Date","now","waitForTask","params","pendingCompletion","get","id","delete","promise","Promise","resolve","set","waitForBatch","runs","length","items","all","map","runId","reject","results","resumeTask","completion","execution","wait","run"],"mappings":";;;;;;;;;AACA,SAASA,aAAaC,kBAAkB;AAExC,eAAsBC,iBACpBC,QAAgB,GAChBC,OACAC,SACY;AACZ,QAAMC,WAAW;AAEjB,QAAMC,eAAeC,KAAKC,MAAMN,QAAQG,QAAAA;AACxC,QAAMI,iBAAiBP,QAAQG;AAE/B,MAAIK,oBAAoB,MAAMV,WAAWS,gBAAgBN,OAAOC,OAAAA;AAEhE,WAASO,IAAI,GAAGA,IAAIL,cAAcK,KAAK;AACrCD,wBAAoB,MAAMV,WAAWK,UAAUF,OAAOC,OAAAA;EACxD;AAEA,SAAOM;AACT;AAjBsBT;;;ACMf,IAAMW,qBAAN,MAAMA,mBAAAA;EAAN;AACLC,sCAAgF,oBAAIC,IAAAA;AAEpFC,uCAGI,oBAAID,IAAAA;AAERE,2DAAuE,oBAAIF,IAAAA;;EAE3EG,UAAgB;EAEhB;EAEA,MAAMC,gBAAgBC,IAA2B;AAC/C,UAAMlB,iBAAiBkB,EAAAA;EACzB;EAEA,MAAMC,UAAUC,MAA2B;AACzC,WAAO,KAAKH,gBAAgBG,KAAKC,QAAO,IAAKC,KAAKC,IAAG,CAAA;EACvD;EAEA,MAAMC,YAAYC,QAA8E;AAC9F,UAAMC,oBAAoB,KAAKX,gCAAgCY,IAAIF,OAAOG,EAAE;AAE5E,QAAIF,mBAAmB;AACrB,WAAKX,gCAAgCc,OAAOJ,OAAOG,EAAE;AAErD,aAAOF;IACT;AAEA,UAAMI,UAAU,IAAIC,QAAgC,CAACC,YAAY;AAC/D,WAAKpB,WAAWqB,IAAIR,OAAOG,IAAI;QAAEI;MAAQ,CAAA;IAC3C,CAAA;AAEA,WAAO,MAAMF;EACf;EAEA,MAAMI,aAAaT,QAIsB;AACvC,QAAI,CAACA,OAAOU,KAAKC,QAAQ;AACvB,aAAOL,QAAQC,QAAQ;QAAEJ,IAAIH,OAAOG;QAAIS,OAAO,CAAA;MAAG,CAAA;IACpD;AAEA,UAAMP,UAAUC,QAAQO,IACtBb,OAAOU,KAAKI,IAAI,CAACC,UAAU;AACzB,aAAO,IAAIT,QAAgC,CAACC,SAASS,WAAW;AAC9D,cAAMf,oBAAoB,KAAKX,gCAAgCY,IAAIa,KAAAA;AAEnE,YAAId,mBAAmB;AACrB,eAAKX,gCAAgCc,OAAOW,KAAAA;AAE5CR,kBAAQN,iBAAAA;AAER;QACF;AAEA,aAAKd,WAAWqB,IAAIO,OAAO;UAAER;QAAQ,CAAA;MACvC,CAAA;IACF,CAAA,CAAA;AAGF,UAAMU,UAAU,MAAMZ;AAEtB,WAAO;MACLF,IAAIH,OAAOG;MACXS,OAAOK;IACT;EACF;EAEAC,WAAWC,YAAoCC,WAAmC;AAChF,UAAMC,OAAO,KAAKlC,WAAWe,IAAIkB,UAAUE,IAAInB,EAAE;AAEjD,QAAI,CAACkB,MAAM;AAET,WAAK/B,gCAAgCkB,IAAIY,UAAUE,IAAInB,IAAIgB,UAAAA;AAE3D;IACF;AAEAE,SAAKd,QAAQY,UAAAA;AAEb,SAAKhC,WAAWiB,OAAOgB,UAAUE,IAAInB,EAAE;EACzC;AACF;AAvFajB;AAAN,IAAMA,oBAAN","sourcesContent":["import { TimerOptions } from \"node:timers\";\nimport { setInterval, setTimeout } from \"node:timers/promises\";\n\nexport async function unboundedTimeout<T = void>(\n delay: number = 0,\n value?: T,\n options?: TimerOptions\n): Promise<T> {\n const maxDelay = 2147483647; // Highest value that will fit in a 32-bit signed integer\n\n const fullTimeouts = Math.floor(delay / maxDelay);\n const remainingDelay = delay % maxDelay;\n\n let lastTimeoutResult = await setTimeout(remainingDelay, value, options);\n\n for (let i = 0; i < fullTimeouts; i++) {\n lastTimeoutResult = await setTimeout(maxDelay, value, options);\n }\n\n return lastTimeoutResult;\n}\n\nexport async function checkpointSafeTimeout(delay: number = 0): Promise<void> {\n const scanIntervalMs = 1000;\n\n // Every scanIntervalMs, check if delay has elapsed\n for await (const start of setInterval(scanIntervalMs, Date.now())) {\n if (Date.now() - start > delay) {\n break;\n }\n }\n}\n","import {\n BatchTaskRunExecutionResult,\n TaskRunContext,\n TaskRunExecution,\n TaskRunExecutionResult,\n} from \"../schemas\";\nimport { RuntimeManager } from \"./manager\";\nimport { unboundedTimeout } from \"../utils/timers\";\n\nexport class DevRuntimeManager implements RuntimeManager {\n _taskWaits: Map<string, { resolve: (value: TaskRunExecutionResult) => void }> = new Map();\n\n _batchWaits: Map<\n string,\n { resolve: (value: BatchTaskRunExecutionResult) => void; reject: (err?: any) => void }\n > = new Map();\n\n _pendingCompletionNotifications: Map<string, TaskRunExecutionResult> = new Map();\n\n disable(): void {\n // do nothing\n }\n\n async waitForDuration(ms: number): Promise<void> {\n await unboundedTimeout(ms);\n }\n\n async waitUntil(date: Date): Promise<void> {\n return this.waitForDuration(date.getTime() - Date.now());\n }\n\n async waitForTask(params: { id: string; ctx: TaskRunContext }): Promise<TaskRunExecutionResult> {\n const pendingCompletion = this._pendingCompletionNotifications.get(params.id);\n\n if (pendingCompletion) {\n this._pendingCompletionNotifications.delete(params.id);\n\n return pendingCompletion;\n }\n\n const promise = new Promise<TaskRunExecutionResult>((resolve) => {\n this._taskWaits.set(params.id, { resolve });\n });\n\n return await promise;\n }\n\n async waitForBatch(params: {\n id: string;\n runs: string[];\n ctx: TaskRunContext;\n }): Promise<BatchTaskRunExecutionResult> {\n if (!params.runs.length) {\n return Promise.resolve({ id: params.id, items: [] });\n }\n\n const promise = Promise.all(\n params.runs.map((runId) => {\n return new Promise<TaskRunExecutionResult>((resolve, reject) => {\n const pendingCompletion = this._pendingCompletionNotifications.get(runId);\n\n if (pendingCompletion) {\n this._pendingCompletionNotifications.delete(runId);\n\n resolve(pendingCompletion);\n\n return;\n }\n\n this._taskWaits.set(runId, { resolve });\n });\n })\n );\n\n const results = await promise;\n\n return {\n id: params.id,\n items: results,\n };\n }\n\n resumeTask(completion: TaskRunExecutionResult, execution: TaskRunExecution): void {\n const wait = this._taskWaits.get(execution.run.id);\n\n if (!wait) {\n // We need to store the completion in case the task is awaited later\n this._pendingCompletionNotifications.set(execution.run.id, completion);\n\n return;\n }\n\n wait.resolve(completion);\n\n this._taskWaits.delete(execution.run.id);\n }\n}\n"]}
|
package/dist/v3/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunError, b as TaskRunContext, R as RuntimeManager } from '../manager-
|
|
3
|
-
export { h as TaskRun, c as TaskRunBuiltInError, d as TaskRunCustomErrorObject, f as TaskRunErrorCodes, p as TaskRunExecution, j as TaskRunExecutionAttempt, o as TaskRunExecutionBatch, k as TaskRunExecutionEnvironment, l as TaskRunExecutionOrganization, m as TaskRunExecutionProject, n as TaskRunExecutionQueue, q as TaskRunExecutionRetry, i as TaskRunExecutionTask, r as TaskRunFailedExecutionResult, g as TaskRunInternalError, e as TaskRunStringError, s as TaskRunSuccessfulExecutionResult } from '../manager-
|
|
4
|
-
import { P as Prettify, C as Clock, a as ClockTime, T as TaskLogger, b as TaskCatalog, c as TaskMetadataWithFunctions, d as TriggerTracer } from '../catalog-
|
|
5
|
-
export {
|
|
2
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunError, b as TaskRunContext, R as RuntimeManager } from '../manager-WNMVbgHf.mjs';
|
|
3
|
+
export { h as TaskRun, c as TaskRunBuiltInError, d as TaskRunCustomErrorObject, f as TaskRunErrorCodes, p as TaskRunExecution, j as TaskRunExecutionAttempt, o as TaskRunExecutionBatch, k as TaskRunExecutionEnvironment, l as TaskRunExecutionOrganization, m as TaskRunExecutionProject, n as TaskRunExecutionQueue, q as TaskRunExecutionRetry, i as TaskRunExecutionTask, r as TaskRunFailedExecutionResult, g as TaskRunInternalError, e as TaskRunStringError, s as TaskRunSuccessfulExecutionResult } from '../manager-WNMVbgHf.mjs';
|
|
4
|
+
import { P as Prettify, C as Clock, a as ClockTime, T as TaskLogger, b as TaskCatalog, c as TaskMetadataWithFunctions, d as TaskFileMetadata, e as TaskMetadataWithFilePath, R as RetryOptions, f as TriggerTracer } from '../catalog-28mBcCbl.mjs';
|
|
5
|
+
export { p as Config, v as Context, E as EnvironmentType, x as FailureFnParams, F as FixedWindowRateLimit, A as HandleErrorArgs, H as HandleErrorFnParams, B as HandleErrorFunction, y as HandleErrorModificationOptions, z as HandleErrorResult, t as InitFnParams, I as InitOutput, L as LogLevel, h as Machine, M as MachineCpu, g as MachineMemory, s as MiddlewareFnParams, n as PostStartCauses, o as PreStopCauses, j as ProdTaskRunExecution, k as ProdTaskRunExecutionPayload, G as ProjectConfig, Q as QueueOptions, l as RateLimitOptions, D as RequireKeys, q as ResolvedConfig, r as RunFnParams, S as SlidingWindowRateLimit, u as StartFnParams, w as SuccessFnParams, m as TaskMetadata, i as TaskRunExecutionPayload, W as WaitReason } from '../catalog-28mBcCbl.mjs';
|
|
6
6
|
import { Attributes, Span } from '@opentelemetry/api';
|
|
7
|
-
import { B as BackgroundWorkerProperties
|
|
8
|
-
export {
|
|
7
|
+
import { B as BackgroundWorkerProperties } from '../messages-vq7Bk4Ap.mjs';
|
|
8
|
+
export { b as BackgroundWorkerClientMessages, a as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, P as ProdChildToWorkerMessages, l as ProdWorkerSocketData, e as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, d as childToWorkerMessages, c as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-vq7Bk4Ap.mjs';
|
|
9
9
|
import { Unit } from 'humanize-duration';
|
|
10
10
|
export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.mjs';
|
|
11
11
|
import '@opentelemetry/api-logs';
|
|
@@ -91,9 +91,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
|
|
|
91
91
|
title: string;
|
|
92
92
|
}>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
name: string;
|
|
95
94
|
id: string;
|
|
96
95
|
createdAt: Date;
|
|
96
|
+
name: string;
|
|
97
97
|
slug: string;
|
|
98
98
|
organization: {
|
|
99
99
|
id: string;
|
|
@@ -103,9 +103,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
|
|
|
103
103
|
};
|
|
104
104
|
externalRef: string;
|
|
105
105
|
}, {
|
|
106
|
-
name: string;
|
|
107
106
|
id: string;
|
|
108
107
|
createdAt: Date;
|
|
108
|
+
name: string;
|
|
109
109
|
slug: string;
|
|
110
110
|
organization: {
|
|
111
111
|
id: string;
|
|
@@ -139,9 +139,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
139
139
|
title: string;
|
|
140
140
|
}>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
name: string;
|
|
143
142
|
id: string;
|
|
144
143
|
createdAt: Date;
|
|
144
|
+
name: string;
|
|
145
145
|
slug: string;
|
|
146
146
|
organization: {
|
|
147
147
|
id: string;
|
|
@@ -151,9 +151,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
151
151
|
};
|
|
152
152
|
externalRef: string;
|
|
153
153
|
}, {
|
|
154
|
-
name: string;
|
|
155
154
|
id: string;
|
|
156
155
|
createdAt: Date;
|
|
156
|
+
name: string;
|
|
157
157
|
slug: string;
|
|
158
158
|
organization: {
|
|
159
159
|
id: string;
|
|
@@ -516,8 +516,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
516
516
|
triggerSource?: string | undefined;
|
|
517
517
|
}>, "many">;
|
|
518
518
|
}, "strip", z.ZodTypeAny, {
|
|
519
|
-
contentHash: string;
|
|
520
519
|
packageVersion: string;
|
|
520
|
+
contentHash: string;
|
|
521
521
|
tasks: {
|
|
522
522
|
id: string;
|
|
523
523
|
filePath: string;
|
|
@@ -575,8 +575,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
575
575
|
}[];
|
|
576
576
|
cliPackageVersion?: string | undefined;
|
|
577
577
|
}, {
|
|
578
|
-
contentHash: string;
|
|
579
578
|
packageVersion: string;
|
|
579
|
+
contentHash: string;
|
|
580
580
|
tasks: {
|
|
581
581
|
id: string;
|
|
582
582
|
filePath: string;
|
|
@@ -635,9 +635,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
635
635
|
cliPackageVersion?: string | undefined;
|
|
636
636
|
}>;
|
|
637
637
|
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
localOnly: boolean;
|
|
638
639
|
metadata: {
|
|
639
|
-
contentHash: string;
|
|
640
640
|
packageVersion: string;
|
|
641
|
+
contentHash: string;
|
|
641
642
|
tasks: {
|
|
642
643
|
id: string;
|
|
643
644
|
filePath: string;
|
|
@@ -695,11 +696,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
695
696
|
}[];
|
|
696
697
|
cliPackageVersion?: string | undefined;
|
|
697
698
|
};
|
|
698
|
-
localOnly: boolean;
|
|
699
699
|
}, {
|
|
700
|
+
localOnly: boolean;
|
|
700
701
|
metadata: {
|
|
701
|
-
contentHash: string;
|
|
702
702
|
packageVersion: string;
|
|
703
|
+
contentHash: string;
|
|
703
704
|
tasks: {
|
|
704
705
|
id: string;
|
|
705
706
|
filePath: string;
|
|
@@ -757,7 +758,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
757
758
|
}[];
|
|
758
759
|
cliPackageVersion?: string | undefined;
|
|
759
760
|
};
|
|
760
|
-
localOnly: boolean;
|
|
761
761
|
}>;
|
|
762
762
|
type CreateBackgroundWorkerRequestBody = z.infer<typeof CreateBackgroundWorkerRequestBody>;
|
|
763
763
|
declare const CreateBackgroundWorkerResponse: z.ZodObject<{
|
|
@@ -1667,11 +1667,11 @@ declare const BatchTriggerTaskResponse: z.ZodObject<{
|
|
|
1667
1667
|
batchId: z.ZodString;
|
|
1668
1668
|
runs: z.ZodArray<z.ZodString, "many">;
|
|
1669
1669
|
}, "strip", z.ZodTypeAny, {
|
|
1670
|
-
runs: string[];
|
|
1671
1670
|
batchId: string;
|
|
1672
|
-
}, {
|
|
1673
1671
|
runs: string[];
|
|
1672
|
+
}, {
|
|
1674
1673
|
batchId: string;
|
|
1674
|
+
runs: string[];
|
|
1675
1675
|
}>;
|
|
1676
1676
|
type BatchTriggerTaskResponse = z.infer<typeof BatchTriggerTaskResponse>;
|
|
1677
1677
|
declare const GetBatchResponseBody: z.ZodObject<{
|
|
@@ -1737,13 +1737,13 @@ declare const ExternalBuildData: z.ZodObject<{
|
|
|
1737
1737
|
buildToken: z.ZodString;
|
|
1738
1738
|
projectId: z.ZodString;
|
|
1739
1739
|
}, "strip", z.ZodTypeAny, {
|
|
1740
|
-
projectId: string;
|
|
1741
1740
|
buildId: string;
|
|
1742
1741
|
buildToken: string;
|
|
1743
|
-
}, {
|
|
1744
1742
|
projectId: string;
|
|
1743
|
+
}, {
|
|
1745
1744
|
buildId: string;
|
|
1746
1745
|
buildToken: string;
|
|
1746
|
+
projectId: string;
|
|
1747
1747
|
}>;
|
|
1748
1748
|
type ExternalBuildData = z.infer<typeof ExternalBuildData>;
|
|
1749
1749
|
declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
@@ -1757,13 +1757,13 @@ declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
1757
1757
|
buildToken: z.ZodString;
|
|
1758
1758
|
projectId: z.ZodString;
|
|
1759
1759
|
}, "strip", z.ZodTypeAny, {
|
|
1760
|
-
projectId: string;
|
|
1761
1760
|
buildId: string;
|
|
1762
1761
|
buildToken: string;
|
|
1763
|
-
}, {
|
|
1764
1762
|
projectId: string;
|
|
1763
|
+
}, {
|
|
1765
1764
|
buildId: string;
|
|
1766
1765
|
buildToken: string;
|
|
1766
|
+
projectId: string;
|
|
1767
1767
|
}>>>;
|
|
1768
1768
|
registryHost: z.ZodOptional<z.ZodString>;
|
|
1769
1769
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1773,9 +1773,9 @@ declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
1773
1773
|
imageTag: string;
|
|
1774
1774
|
shortCode: string;
|
|
1775
1775
|
externalBuildData?: {
|
|
1776
|
-
projectId: string;
|
|
1777
1776
|
buildId: string;
|
|
1778
1777
|
buildToken: string;
|
|
1778
|
+
projectId: string;
|
|
1779
1779
|
} | null | undefined;
|
|
1780
1780
|
registryHost?: string | undefined;
|
|
1781
1781
|
}, {
|
|
@@ -1785,9 +1785,9 @@ declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
1785
1785
|
imageTag: string;
|
|
1786
1786
|
shortCode: string;
|
|
1787
1787
|
externalBuildData?: {
|
|
1788
|
-
projectId: string;
|
|
1789
1788
|
buildId: string;
|
|
1790
1789
|
buildToken: string;
|
|
1790
|
+
projectId: string;
|
|
1791
1791
|
} | null | undefined;
|
|
1792
1792
|
registryHost?: string | undefined;
|
|
1793
1793
|
}>;
|
|
@@ -2945,8 +2945,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2945
2945
|
triggerSource?: string | undefined;
|
|
2946
2946
|
}>, "many">;
|
|
2947
2947
|
}, "strip", z.ZodTypeAny, {
|
|
2948
|
-
contentHash: string;
|
|
2949
2948
|
packageVersion: string;
|
|
2949
|
+
contentHash: string;
|
|
2950
2950
|
tasks: {
|
|
2951
2951
|
id: string;
|
|
2952
2952
|
filePath: string;
|
|
@@ -3004,8 +3004,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
3004
3004
|
}[];
|
|
3005
3005
|
cliPackageVersion?: string | undefined;
|
|
3006
3006
|
}, {
|
|
3007
|
-
contentHash: string;
|
|
3008
3007
|
packageVersion: string;
|
|
3008
|
+
contentHash: string;
|
|
3009
3009
|
tasks: {
|
|
3010
3010
|
id: string;
|
|
3011
3011
|
filePath: string;
|
|
@@ -3451,6 +3451,7 @@ declare const FetchTimeoutOptions: z.ZodObject<{
|
|
|
3451
3451
|
durationInMs: z.ZodOptional<z.ZodNumber>;
|
|
3452
3452
|
retry: z.ZodOptional<z.ZodObject<{
|
|
3453
3453
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3454
|
+
/** The timeout options for the request. */
|
|
3454
3455
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
3455
3456
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
3456
3457
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3567,6 +3568,7 @@ declare const FetchRetryOptions: z.ZodObject<{
|
|
|
3567
3568
|
*/
|
|
3568
3569
|
connectionError: z.ZodOptional<z.ZodObject<{
|
|
3569
3570
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3571
|
+
/** The timeout options for the request. */
|
|
3570
3572
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
3571
3573
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
3572
3574
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3965,8 +3967,8 @@ declare class ApiClient {
|
|
|
3965
3967
|
id: string;
|
|
3966
3968
|
}>;
|
|
3967
3969
|
batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions): Promise<{
|
|
3968
|
-
runs: string[];
|
|
3969
3970
|
batchId: string;
|
|
3971
|
+
runs: string[];
|
|
3970
3972
|
}>;
|
|
3971
3973
|
createUploadPayloadUrl(filename: string): Promise<{
|
|
3972
3974
|
presignedUrl: string;
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunError, b as TaskRunContext, R as RuntimeManager } from '../manager-
|
|
3
|
-
export { h as TaskRun, c as TaskRunBuiltInError, d as TaskRunCustomErrorObject, f as TaskRunErrorCodes, p as TaskRunExecution, j as TaskRunExecutionAttempt, o as TaskRunExecutionBatch, k as TaskRunExecutionEnvironment, l as TaskRunExecutionOrganization, m as TaskRunExecutionProject, n as TaskRunExecutionQueue, q as TaskRunExecutionRetry, i as TaskRunExecutionTask, r as TaskRunFailedExecutionResult, g as TaskRunInternalError, e as TaskRunStringError, s as TaskRunSuccessfulExecutionResult } from '../manager-
|
|
4
|
-
import { P as Prettify, C as Clock, a as ClockTime, T as TaskLogger, b as TaskCatalog, c as TaskMetadataWithFunctions, d as TriggerTracer } from '../catalog-
|
|
5
|
-
export {
|
|
2
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunError, b as TaskRunContext, R as RuntimeManager } from '../manager-WNMVbgHf.js';
|
|
3
|
+
export { h as TaskRun, c as TaskRunBuiltInError, d as TaskRunCustomErrorObject, f as TaskRunErrorCodes, p as TaskRunExecution, j as TaskRunExecutionAttempt, o as TaskRunExecutionBatch, k as TaskRunExecutionEnvironment, l as TaskRunExecutionOrganization, m as TaskRunExecutionProject, n as TaskRunExecutionQueue, q as TaskRunExecutionRetry, i as TaskRunExecutionTask, r as TaskRunFailedExecutionResult, g as TaskRunInternalError, e as TaskRunStringError, s as TaskRunSuccessfulExecutionResult } from '../manager-WNMVbgHf.js';
|
|
4
|
+
import { P as Prettify, C as Clock, a as ClockTime, T as TaskLogger, b as TaskCatalog, c as TaskMetadataWithFunctions, d as TaskFileMetadata, e as TaskMetadataWithFilePath, R as RetryOptions, f as TriggerTracer } from '../catalog-Eta7Xel2.js';
|
|
5
|
+
export { p as Config, v as Context, E as EnvironmentType, x as FailureFnParams, F as FixedWindowRateLimit, A as HandleErrorArgs, H as HandleErrorFnParams, B as HandleErrorFunction, y as HandleErrorModificationOptions, z as HandleErrorResult, t as InitFnParams, I as InitOutput, L as LogLevel, h as Machine, M as MachineCpu, g as MachineMemory, s as MiddlewareFnParams, n as PostStartCauses, o as PreStopCauses, j as ProdTaskRunExecution, k as ProdTaskRunExecutionPayload, G as ProjectConfig, Q as QueueOptions, l as RateLimitOptions, D as RequireKeys, q as ResolvedConfig, r as RunFnParams, S as SlidingWindowRateLimit, u as StartFnParams, w as SuccessFnParams, m as TaskMetadata, i as TaskRunExecutionPayload, W as WaitReason } from '../catalog-Eta7Xel2.js';
|
|
6
6
|
import { Attributes, Span } from '@opentelemetry/api';
|
|
7
|
-
import { B as BackgroundWorkerProperties
|
|
8
|
-
export {
|
|
7
|
+
import { B as BackgroundWorkerProperties } from '../messages-vq7Bk4Ap.js';
|
|
8
|
+
export { b as BackgroundWorkerClientMessages, a as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, P as ProdChildToWorkerMessages, l as ProdWorkerSocketData, e as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, d as childToWorkerMessages, c as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-vq7Bk4Ap.js';
|
|
9
9
|
import { Unit } from 'humanize-duration';
|
|
10
10
|
export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.js';
|
|
11
11
|
import '@opentelemetry/api-logs';
|
|
@@ -91,9 +91,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
|
|
|
91
91
|
title: string;
|
|
92
92
|
}>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
name: string;
|
|
95
94
|
id: string;
|
|
96
95
|
createdAt: Date;
|
|
96
|
+
name: string;
|
|
97
97
|
slug: string;
|
|
98
98
|
organization: {
|
|
99
99
|
id: string;
|
|
@@ -103,9 +103,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
|
|
|
103
103
|
};
|
|
104
104
|
externalRef: string;
|
|
105
105
|
}, {
|
|
106
|
-
name: string;
|
|
107
106
|
id: string;
|
|
108
107
|
createdAt: Date;
|
|
108
|
+
name: string;
|
|
109
109
|
slug: string;
|
|
110
110
|
organization: {
|
|
111
111
|
id: string;
|
|
@@ -139,9 +139,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
139
139
|
title: string;
|
|
140
140
|
}>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
name: string;
|
|
143
142
|
id: string;
|
|
144
143
|
createdAt: Date;
|
|
144
|
+
name: string;
|
|
145
145
|
slug: string;
|
|
146
146
|
organization: {
|
|
147
147
|
id: string;
|
|
@@ -151,9 +151,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
151
151
|
};
|
|
152
152
|
externalRef: string;
|
|
153
153
|
}, {
|
|
154
|
-
name: string;
|
|
155
154
|
id: string;
|
|
156
155
|
createdAt: Date;
|
|
156
|
+
name: string;
|
|
157
157
|
slug: string;
|
|
158
158
|
organization: {
|
|
159
159
|
id: string;
|
|
@@ -516,8 +516,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
516
516
|
triggerSource?: string | undefined;
|
|
517
517
|
}>, "many">;
|
|
518
518
|
}, "strip", z.ZodTypeAny, {
|
|
519
|
-
contentHash: string;
|
|
520
519
|
packageVersion: string;
|
|
520
|
+
contentHash: string;
|
|
521
521
|
tasks: {
|
|
522
522
|
id: string;
|
|
523
523
|
filePath: string;
|
|
@@ -575,8 +575,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
575
575
|
}[];
|
|
576
576
|
cliPackageVersion?: string | undefined;
|
|
577
577
|
}, {
|
|
578
|
-
contentHash: string;
|
|
579
578
|
packageVersion: string;
|
|
579
|
+
contentHash: string;
|
|
580
580
|
tasks: {
|
|
581
581
|
id: string;
|
|
582
582
|
filePath: string;
|
|
@@ -635,9 +635,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
635
635
|
cliPackageVersion?: string | undefined;
|
|
636
636
|
}>;
|
|
637
637
|
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
localOnly: boolean;
|
|
638
639
|
metadata: {
|
|
639
|
-
contentHash: string;
|
|
640
640
|
packageVersion: string;
|
|
641
|
+
contentHash: string;
|
|
641
642
|
tasks: {
|
|
642
643
|
id: string;
|
|
643
644
|
filePath: string;
|
|
@@ -695,11 +696,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
695
696
|
}[];
|
|
696
697
|
cliPackageVersion?: string | undefined;
|
|
697
698
|
};
|
|
698
|
-
localOnly: boolean;
|
|
699
699
|
}, {
|
|
700
|
+
localOnly: boolean;
|
|
700
701
|
metadata: {
|
|
701
|
-
contentHash: string;
|
|
702
702
|
packageVersion: string;
|
|
703
|
+
contentHash: string;
|
|
703
704
|
tasks: {
|
|
704
705
|
id: string;
|
|
705
706
|
filePath: string;
|
|
@@ -757,7 +758,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
757
758
|
}[];
|
|
758
759
|
cliPackageVersion?: string | undefined;
|
|
759
760
|
};
|
|
760
|
-
localOnly: boolean;
|
|
761
761
|
}>;
|
|
762
762
|
type CreateBackgroundWorkerRequestBody = z.infer<typeof CreateBackgroundWorkerRequestBody>;
|
|
763
763
|
declare const CreateBackgroundWorkerResponse: z.ZodObject<{
|
|
@@ -1667,11 +1667,11 @@ declare const BatchTriggerTaskResponse: z.ZodObject<{
|
|
|
1667
1667
|
batchId: z.ZodString;
|
|
1668
1668
|
runs: z.ZodArray<z.ZodString, "many">;
|
|
1669
1669
|
}, "strip", z.ZodTypeAny, {
|
|
1670
|
-
runs: string[];
|
|
1671
1670
|
batchId: string;
|
|
1672
|
-
}, {
|
|
1673
1671
|
runs: string[];
|
|
1672
|
+
}, {
|
|
1674
1673
|
batchId: string;
|
|
1674
|
+
runs: string[];
|
|
1675
1675
|
}>;
|
|
1676
1676
|
type BatchTriggerTaskResponse = z.infer<typeof BatchTriggerTaskResponse>;
|
|
1677
1677
|
declare const GetBatchResponseBody: z.ZodObject<{
|
|
@@ -1737,13 +1737,13 @@ declare const ExternalBuildData: z.ZodObject<{
|
|
|
1737
1737
|
buildToken: z.ZodString;
|
|
1738
1738
|
projectId: z.ZodString;
|
|
1739
1739
|
}, "strip", z.ZodTypeAny, {
|
|
1740
|
-
projectId: string;
|
|
1741
1740
|
buildId: string;
|
|
1742
1741
|
buildToken: string;
|
|
1743
|
-
}, {
|
|
1744
1742
|
projectId: string;
|
|
1743
|
+
}, {
|
|
1745
1744
|
buildId: string;
|
|
1746
1745
|
buildToken: string;
|
|
1746
|
+
projectId: string;
|
|
1747
1747
|
}>;
|
|
1748
1748
|
type ExternalBuildData = z.infer<typeof ExternalBuildData>;
|
|
1749
1749
|
declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
@@ -1757,13 +1757,13 @@ declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
1757
1757
|
buildToken: z.ZodString;
|
|
1758
1758
|
projectId: z.ZodString;
|
|
1759
1759
|
}, "strip", z.ZodTypeAny, {
|
|
1760
|
-
projectId: string;
|
|
1761
1760
|
buildId: string;
|
|
1762
1761
|
buildToken: string;
|
|
1763
|
-
}, {
|
|
1764
1762
|
projectId: string;
|
|
1763
|
+
}, {
|
|
1765
1764
|
buildId: string;
|
|
1766
1765
|
buildToken: string;
|
|
1766
|
+
projectId: string;
|
|
1767
1767
|
}>>>;
|
|
1768
1768
|
registryHost: z.ZodOptional<z.ZodString>;
|
|
1769
1769
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1773,9 +1773,9 @@ declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
1773
1773
|
imageTag: string;
|
|
1774
1774
|
shortCode: string;
|
|
1775
1775
|
externalBuildData?: {
|
|
1776
|
-
projectId: string;
|
|
1777
1776
|
buildId: string;
|
|
1778
1777
|
buildToken: string;
|
|
1778
|
+
projectId: string;
|
|
1779
1779
|
} | null | undefined;
|
|
1780
1780
|
registryHost?: string | undefined;
|
|
1781
1781
|
}, {
|
|
@@ -1785,9 +1785,9 @@ declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
1785
1785
|
imageTag: string;
|
|
1786
1786
|
shortCode: string;
|
|
1787
1787
|
externalBuildData?: {
|
|
1788
|
-
projectId: string;
|
|
1789
1788
|
buildId: string;
|
|
1790
1789
|
buildToken: string;
|
|
1790
|
+
projectId: string;
|
|
1791
1791
|
} | null | undefined;
|
|
1792
1792
|
registryHost?: string | undefined;
|
|
1793
1793
|
}>;
|
|
@@ -2945,8 +2945,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2945
2945
|
triggerSource?: string | undefined;
|
|
2946
2946
|
}>, "many">;
|
|
2947
2947
|
}, "strip", z.ZodTypeAny, {
|
|
2948
|
-
contentHash: string;
|
|
2949
2948
|
packageVersion: string;
|
|
2949
|
+
contentHash: string;
|
|
2950
2950
|
tasks: {
|
|
2951
2951
|
id: string;
|
|
2952
2952
|
filePath: string;
|
|
@@ -3004,8 +3004,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
3004
3004
|
}[];
|
|
3005
3005
|
cliPackageVersion?: string | undefined;
|
|
3006
3006
|
}, {
|
|
3007
|
-
contentHash: string;
|
|
3008
3007
|
packageVersion: string;
|
|
3008
|
+
contentHash: string;
|
|
3009
3009
|
tasks: {
|
|
3010
3010
|
id: string;
|
|
3011
3011
|
filePath: string;
|
|
@@ -3451,6 +3451,7 @@ declare const FetchTimeoutOptions: z.ZodObject<{
|
|
|
3451
3451
|
durationInMs: z.ZodOptional<z.ZodNumber>;
|
|
3452
3452
|
retry: z.ZodOptional<z.ZodObject<{
|
|
3453
3453
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3454
|
+
/** The timeout options for the request. */
|
|
3454
3455
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
3455
3456
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
3456
3457
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3567,6 +3568,7 @@ declare const FetchRetryOptions: z.ZodObject<{
|
|
|
3567
3568
|
*/
|
|
3568
3569
|
connectionError: z.ZodOptional<z.ZodObject<{
|
|
3569
3570
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3571
|
+
/** The timeout options for the request. */
|
|
3570
3572
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
3571
3573
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
3572
3574
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3965,8 +3967,8 @@ declare class ApiClient {
|
|
|
3965
3967
|
id: string;
|
|
3966
3968
|
}>;
|
|
3967
3969
|
batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions): Promise<{
|
|
3968
|
-
runs: string[];
|
|
3969
3970
|
batchId: string;
|
|
3971
|
+
runs: string[];
|
|
3970
3972
|
}>;
|
|
3971
3973
|
createUploadPayloadUrl(filename: string): Promise<{
|
|
3972
3974
|
presignedUrl: string;
|