@trigger.dev/core 4.5.8 → 4.5.10
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/commonjs/debounce.js.map +1 -1
- package/dist/commonjs/eventFilterMatches.js.map +1 -1
- package/dist/commonjs/logger.d.ts +1 -0
- package/dist/commonjs/logger.js +101 -29
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/package.json +6 -1
- package/dist/commonjs/retry.js.map +1 -1
- package/dist/commonjs/schemas/eventFilter.js.map +1 -1
- package/dist/commonjs/schemas/json.js.map +1 -1
- package/dist/commonjs/utils.js.map +1 -1
- package/dist/commonjs/v3/apiClient/core.js.map +1 -1
- package/dist/commonjs/v3/apiClient/errors.js.map +1 -1
- package/dist/commonjs/v3/apiClient/getBranch.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +430 -422
- package/dist/commonjs/v3/apiClient/index.js +35 -0
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/pagination.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.d.ts +8 -0
- package/dist/commonjs/v3/apiClient/runStream.js +64 -17
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.test.js +34 -0
- package/dist/commonjs/v3/apiClient/runStream.test.js.map +1 -1
- package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
- package/dist/commonjs/v3/apiClientManager/index.js.map +1 -1
- package/dist/commonjs/v3/apiKeys.js.map +1 -1
- package/dist/commonjs/v3/apps/backoff.js.map +1 -1
- package/dist/commonjs/v3/apps/exec.js.map +1 -1
- package/dist/commonjs/v3/apps/http.js.map +1 -1
- package/dist/commonjs/v3/build/extensions.js.map +1 -1
- package/dist/commonjs/v3/build/flags.js.map +1 -1
- package/dist/commonjs/v3/build/runtime.js.map +1 -1
- package/dist/commonjs/v3/clock/clock.js.map +1 -1
- package/dist/commonjs/v3/clock/index.js.map +1 -1
- package/dist/commonjs/v3/clock/preciseWallClock.js.map +1 -1
- package/dist/commonjs/v3/clock/simpleClock.js.map +1 -1
- package/dist/commonjs/v3/consoleInterceptor.js.map +1 -1
- package/dist/commonjs/v3/errors.d.ts +4 -4
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/heartbeats/api.js.map +1 -1
- package/dist/commonjs/v3/heartbeats/manager.js.map +1 -1
- package/dist/commonjs/v3/icons.d.ts +1 -1
- package/dist/commonjs/v3/icons.js.map +1 -1
- package/dist/commonjs/v3/idempotency-key-catalog/inMemoryIdempotencyKeyCatalog.js.map +1 -1
- package/dist/commonjs/v3/idempotency-key-catalog/index.js.map +1 -1
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/inputStreams/index.js.map +1 -1
- package/dist/commonjs/v3/inputStreams/manager.js.map +1 -1
- package/dist/commonjs/v3/inputStreams/noopManager.js.map +1 -1
- package/dist/commonjs/v3/inputStreams/types.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/dates.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/duration.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/maxDuration.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/queueName.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/runOpsResidency.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/traceContext.js.map +1 -1
- package/dist/commonjs/v3/jwt.d.ts +2 -0
- package/dist/commonjs/v3/jwt.js +32 -0
- package/dist/commonjs/v3/jwt.js.map +1 -1
- package/dist/commonjs/v3/lifecycleHooks/index.js.map +1 -1
- package/dist/commonjs/v3/lifecycleHooks/manager.js.map +1 -1
- package/dist/commonjs/v3/limits.js.map +1 -1
- package/dist/commonjs/v3/locals/index.js.map +1 -1
- package/dist/commonjs/v3/locals/manager.js.map +1 -1
- package/dist/commonjs/v3/locals-api.js.map +1 -1
- package/dist/commonjs/v3/logger/index.js.map +1 -1
- package/dist/commonjs/v3/logger/taskLogger.js.map +1 -1
- package/dist/commonjs/v3/machines/index.js.map +1 -1
- package/dist/commonjs/v3/otel/diskIoMetrics.js.map +1 -1
- package/dist/commonjs/v3/otel/filesystemMetrics.js.map +1 -1
- package/dist/commonjs/v3/otel/nodejsRuntimeMetrics.js.map +1 -1
- package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
- package/dist/commonjs/v3/otel/utils.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/index.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/manager.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/noopManager.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/sessionStreamOneshot.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/streamInstance.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +10 -2
- package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPoolMetrics.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +211 -211
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +1126 -1126
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/util.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/util.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +162 -162
- package/dist/commonjs/v3/runEngineWorker/workload/http.js +8 -0
- package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +974 -974
- package/dist/commonjs/v3/runEngineWorker/workload/util.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/operations.js.map +1 -1
- package/dist/commonjs/v3/runTimelineMetrics/index.js.map +1 -1
- package/dist/commonjs/v3/runTimelineMetrics/runTimelineMetricsManager.js.map +1 -1
- package/dist/commonjs/v3/runtime/index.js.map +1 -1
- package/dist/commonjs/v3/runtime/noopRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/runtime/preventMultipleWaits.js.map +1 -1
- package/dist/commonjs/v3/runtime/sharedRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +2930 -2926
- package/dist/commonjs/v3/schemas/api.js +2 -0
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +614 -614
- package/dist/commonjs/v3/schemas/build.js.map +1 -1
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +237 -237
- package/dist/commonjs/v3/schemas/common.d.ts +1409 -1409
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/errors.d.ts +38 -38
- package/dist/commonjs/v3/schemas/errors.js.map +1 -1
- package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
- package/dist/commonjs/v3/schemas/fetch.d.ts +70 -70
- package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
- package/dist/commonjs/v3/schemas/idempotencyKey.test.js +14 -0
- package/dist/commonjs/v3/schemas/idempotencyKey.test.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +994 -994
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/openTelemetry.d.ts +90 -90
- package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
- package/dist/commonjs/v3/schemas/query.d.ts +41 -41
- package/dist/commonjs/v3/schemas/query.js.map +1 -1
- package/dist/commonjs/v3/schemas/queues.d.ts +10 -10
- package/dist/commonjs/v3/schemas/queues.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +128 -128
- package/dist/commonjs/v3/schemas/resources.js.map +1 -1
- package/dist/commonjs/v3/schemas/runEngine.d.ts +490 -490
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +644 -644
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/schemas/style.d.ts +2 -2
- package/dist/commonjs/v3/schemas/style.js.map +1 -1
- package/dist/commonjs/v3/schemas/webhooks.d.ts +814 -814
- package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
- package/dist/commonjs/v3/sdkScope/index.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/checkpointClient.d.ts +16 -0
- package/dist/commonjs/v3/serverOnly/checkpointClient.js +33 -0
- package/dist/commonjs/v3/serverOnly/checkpointClient.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/idempotencyKeys.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/jumpHash.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/k8s.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/placementTags.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/shutdownManager.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/singleton.js.map +1 -1
- package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
- package/dist/commonjs/v3/sessionStreams/index.js.map +1 -1
- package/dist/commonjs/v3/sessionStreams/manager.js.map +1 -1
- package/dist/commonjs/v3/sessionStreams/noopManager.js.map +1 -1
- package/dist/commonjs/v3/sessionStreams/types.js.map +1 -1
- package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
- package/dist/commonjs/v3/streams/asyncIterableStream.js.map +1 -1
- package/dist/commonjs/v3/taskContext/index.js.map +1 -1
- package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
- package/dist/commonjs/v3/telnetLogServer.js.map +1 -1
- package/dist/commonjs/v3/test/index.d.ts +3 -0
- package/dist/commonjs/v3/test/index.js +7 -1
- package/dist/commonjs/v3/test/index.js.map +1 -1
- package/dist/commonjs/v3/test/mock-task-context.d.ts +16 -1
- package/dist/commonjs/v3/test/mock-task-context.js +13 -5
- package/dist/commonjs/v3/test/mock-task-context.js.map +1 -1
- package/dist/commonjs/v3/test/session-waitpoint-backend.d.ts +68 -0
- package/dist/commonjs/v3/test/session-waitpoint-backend.js +228 -0
- package/dist/commonjs/v3/test/session-waitpoint-backend.js.map +1 -0
- package/dist/commonjs/v3/test/test-input-stream-manager.js.map +1 -1
- package/dist/commonjs/v3/test/test-realtime-streams-manager.js.map +1 -1
- package/dist/commonjs/v3/test/test-run-metadata-manager.js.map +1 -1
- package/dist/commonjs/v3/test/test-session-stream-manager.js.map +1 -1
- package/dist/commonjs/v3/timeout/api.js.map +1 -1
- package/dist/commonjs/v3/timeout/types.js.map +1 -1
- package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -1
- package/dist/commonjs/v3/traceContext/api.js.map +1 -1
- package/dist/commonjs/v3/traceContext/manager.js.map +1 -1
- package/dist/commonjs/v3/tracer.js.map +1 -1
- package/dist/commonjs/v3/tryCatch.js.map +1 -1
- package/dist/commonjs/v3/types/schemas.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +21 -7
- package/dist/commonjs/v3/types/tasks.js.map +1 -1
- package/dist/commonjs/v3/types/tools.js.map +1 -1
- package/dist/commonjs/v3/usage/api.js.map +1 -1
- package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/usageClient.js.map +1 -1
- package/dist/commonjs/v3/utils/crypto.js.map +1 -1
- package/dist/commonjs/v3/utils/durations.js.map +1 -1
- package/dist/commonjs/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/commonjs/v3/utils/getEnv.js.map +1 -1
- package/dist/commonjs/v3/utils/gitBranch.js.map +1 -1
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/v3/utils/imageRef.js.map +1 -1
- package/dist/commonjs/v3/utils/interval.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/v3/utils/omit.js.map +1 -1
- package/dist/commonjs/v3/utils/reconnectBackoff.js.map +1 -1
- package/dist/commonjs/v3/utils/retries.js.map +1 -1
- package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js.map +1 -1
- package/dist/commonjs/v3/utils/structuredLogger.js +3 -2
- package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
- package/dist/commonjs/v3/utils/styleAttributes.js.map +1 -1
- package/dist/commonjs/v3/utils/timers.js.map +1 -1
- package/dist/commonjs/v3/waitUntil/index.js.map +1 -1
- package/dist/commonjs/v3/waitUntil/manager.js.map +1 -1
- package/dist/commonjs/v3/waitpoints/index.js.map +1 -1
- package/dist/commonjs/v3/workers/populateEnv.js.map +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/v3/workers/warmStartClient.js.map +1 -1
- package/dist/commonjs/v3/workloadDeploymentToken.d.ts +2 -2
- package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
- package/dist/commonjs/v3/zodIpc.js.map +1 -1
- package/dist/commonjs/v3/zodMessageHandler.d.ts +2 -2
- package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
- package/dist/commonjs/v3/zodSocket.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/logger.d.ts +1 -0
- package/dist/esm/logger.js +100 -29
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/package.json +6 -1
- package/dist/esm/retry.js.map +1 -1
- package/dist/esm/v3/apiClient/core.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +430 -422
- package/dist/esm/v3/apiClient/index.js +35 -0
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/pagination.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.d.ts +8 -0
- package/dist/esm/v3/apiClient/runStream.js +64 -17
- package/dist/esm/v3/apiClient/runStream.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.test.js +34 -0
- package/dist/esm/v3/apiClient/runStream.test.js.map +1 -1
- package/dist/esm/v3/apiClient/stream.js.map +1 -1
- package/dist/esm/v3/apiClientManager/index.js.map +1 -1
- package/dist/esm/v3/apps/backoff.js.map +1 -1
- package/dist/esm/v3/apps/exec.js.map +1 -1
- package/dist/esm/v3/apps/http.js.map +1 -1
- package/dist/esm/v3/build/extensions.js.map +1 -1
- package/dist/esm/v3/build/runtime.js.map +1 -1
- package/dist/esm/v3/clock/preciseWallClock.js.map +1 -1
- package/dist/esm/v3/consoleInterceptor.js.map +1 -1
- package/dist/esm/v3/errors.d.ts +4 -4
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/heartbeats/manager.js.map +1 -1
- package/dist/esm/v3/icons.d.ts +1 -1
- package/dist/esm/v3/idempotencyKeys.js.map +1 -1
- package/dist/esm/v3/inputStreams/manager.js.map +1 -1
- package/dist/esm/v3/inputStreams/types.js.map +1 -1
- package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/esm/v3/jwt.d.ts +2 -0
- package/dist/esm/v3/jwt.js +30 -0
- package/dist/esm/v3/jwt.js.map +1 -1
- package/dist/esm/v3/logger/taskLogger.js.map +1 -1
- package/dist/esm/v3/machines/index.js.map +1 -1
- package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
- package/dist/esm/v3/realtimeStreams/manager.js.map +1 -1
- package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
- package/dist/esm/v3/realtimeStreams/streamInstance.js.map +1 -1
- package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
- package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +10 -2
- package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPoolMetrics.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +211 -211
- package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +1126 -1126
- package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +162 -162
- package/dist/esm/v3/runEngineWorker/workload/http.js +8 -0
- package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +968 -968
- package/dist/esm/v3/runMetadata/manager.js.map +1 -1
- package/dist/esm/v3/runMetadata/operations.js.map +1 -1
- package/dist/esm/v3/runtime/sharedRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +2930 -2926
- package/dist/esm/v3/schemas/api.js +2 -0
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +614 -614
- package/dist/esm/v3/schemas/checkpoints.d.ts +237 -237
- package/dist/esm/v3/schemas/common.d.ts +1409 -1409
- package/dist/esm/v3/schemas/errors.d.ts +38 -38
- package/dist/esm/v3/schemas/fetch.d.ts +70 -70
- package/dist/esm/v3/schemas/idempotencyKey.test.js +14 -0
- package/dist/esm/v3/schemas/idempotencyKey.test.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +994 -994
- package/dist/esm/v3/schemas/openTelemetry.d.ts +90 -90
- package/dist/esm/v3/schemas/query.d.ts +41 -41
- package/dist/esm/v3/schemas/queues.d.ts +10 -10
- package/dist/esm/v3/schemas/resources.d.ts +128 -128
- package/dist/esm/v3/schemas/runEngine.d.ts +490 -490
- package/dist/esm/v3/schemas/schemas.d.ts +644 -644
- package/dist/esm/v3/schemas/style.d.ts +2 -2
- package/dist/esm/v3/schemas/webhooks.d.ts +814 -814
- package/dist/esm/v3/serverOnly/checkpointClient.d.ts +16 -0
- package/dist/esm/v3/serverOnly/checkpointClient.js +33 -0
- package/dist/esm/v3/serverOnly/checkpointClient.js.map +1 -1
- package/dist/esm/v3/serverOnly/placementTags.js.map +1 -1
- package/dist/esm/v3/serverOnly/shutdownManager.js.map +1 -1
- package/dist/esm/v3/sessionStreams/manager.js.map +1 -1
- package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
- package/dist/esm/v3/test/index.d.ts +3 -0
- package/dist/esm/v3/test/index.js +2 -0
- package/dist/esm/v3/test/index.js.map +1 -1
- package/dist/esm/v3/test/mock-task-context.d.ts +16 -1
- package/dist/esm/v3/test/mock-task-context.js +13 -5
- package/dist/esm/v3/test/mock-task-context.js.map +1 -1
- package/dist/esm/v3/test/session-waitpoint-backend.d.ts +68 -0
- package/dist/esm/v3/test/session-waitpoint-backend.js +222 -0
- package/dist/esm/v3/test/session-waitpoint-backend.js.map +1 -0
- package/dist/esm/v3/timeout/types.js.map +1 -1
- package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -1
- package/dist/esm/v3/tracer.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +21 -7
- package/dist/esm/v3/types/tasks.js.map +1 -1
- package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
- package/dist/esm/v3/usage/prodUsageManager.js.map +1 -1
- package/dist/esm/v3/usage/usageClient.js.map +1 -1
- package/dist/esm/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/v3/utils/retries.js.map +1 -1
- package/dist/esm/v3/utils/structuredLogger.js +3 -2
- package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
- package/dist/esm/v3/utils/timers.js.map +1 -1
- package/dist/esm/v3/waitUntil/manager.js.map +1 -1
- package/dist/esm/v3/workers/populateEnv.js.map +1 -1
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/v3/workers/warmStartClient.js.map +1 -1
- package/dist/esm/v3/workloadDeploymentToken.d.ts +2 -2
- package/dist/esm/v3/zodIpc.js.map +1 -1
- package/dist/esm/v3/zodMessageHandler.d.ts +2 -2
- package/dist/esm/v3/zodMessageHandler.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +18 -3
|
@@ -17,18 +17,18 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
17
17
|
cliVersion: z.ZodString;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
id: string;
|
|
20
|
-
version: string;
|
|
21
20
|
filePath: string;
|
|
21
|
+
exportName?: string | undefined;
|
|
22
|
+
version: string;
|
|
22
23
|
sdkVersion: string;
|
|
23
24
|
cliVersion: string;
|
|
24
|
-
exportName?: string | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
id: string;
|
|
27
|
-
version: string;
|
|
28
27
|
filePath: string;
|
|
28
|
+
exportName?: string | undefined;
|
|
29
|
+
version: string;
|
|
29
30
|
sdkVersion: string;
|
|
30
31
|
cliVersion: string;
|
|
31
|
-
exportName?: string | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
/** Run information */
|
|
34
34
|
run: z.ZodObject<{
|
|
@@ -57,14 +57,14 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
57
57
|
message: z.ZodString;
|
|
58
58
|
stackTrace: z.ZodString;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
message: string;
|
|
61
60
|
type: "BUILT_IN_ERROR";
|
|
62
61
|
name: string;
|
|
62
|
+
message: string;
|
|
63
63
|
stackTrace: string;
|
|
64
64
|
}, {
|
|
65
|
-
message: string;
|
|
66
65
|
type: "BUILT_IN_ERROR";
|
|
67
66
|
name: string;
|
|
67
|
+
message: string;
|
|
68
68
|
stackTrace: string;
|
|
69
69
|
}>, z.ZodObject<{
|
|
70
70
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -90,13 +90,13 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
90
90
|
message: z.ZodOptional<z.ZodString>;
|
|
91
91
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
94
93
|
type: "INTERNAL_ERROR";
|
|
94
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
95
95
|
message?: string | undefined;
|
|
96
96
|
stackTrace?: string | undefined;
|
|
97
97
|
}, {
|
|
98
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
99
98
|
type: "INTERNAL_ERROR";
|
|
99
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
100
100
|
message?: string | undefined;
|
|
101
101
|
stackTrace?: string | undefined;
|
|
102
102
|
}>]>;
|
|
@@ -107,12 +107,19 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
107
107
|
/** URL to view the run in the dashboard */
|
|
108
108
|
dashboardUrl: z.ZodString;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
id: string;
|
|
110
111
|
number: number;
|
|
111
|
-
status: "
|
|
112
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
startedAt?: Date | undefined;
|
|
115
|
+
completedAt?: Date | undefined;
|
|
116
|
+
isTest: boolean;
|
|
117
|
+
idempotencyKey?: string | undefined;
|
|
118
|
+
tags: string[];
|
|
112
119
|
error: {
|
|
113
|
-
message: string;
|
|
114
120
|
type: "BUILT_IN_ERROR";
|
|
115
121
|
name: string;
|
|
122
|
+
message: string;
|
|
116
123
|
stackTrace: string;
|
|
117
124
|
} | {
|
|
118
125
|
type: "CUSTOM_ERROR";
|
|
@@ -121,28 +128,28 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
121
128
|
type: "STRING_ERROR";
|
|
122
129
|
raw: string;
|
|
123
130
|
} | {
|
|
124
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
125
131
|
type: "INTERNAL_ERROR";
|
|
132
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
126
133
|
message?: string | undefined;
|
|
127
134
|
stackTrace?: string | undefined;
|
|
128
135
|
};
|
|
129
|
-
|
|
130
|
-
tags: string[];
|
|
131
|
-
isTest: boolean;
|
|
132
|
-
createdAt: Date;
|
|
136
|
+
isOutOfMemoryError: boolean;
|
|
133
137
|
machine: string;
|
|
134
138
|
dashboardUrl: string;
|
|
135
|
-
isOutOfMemoryError: boolean;
|
|
136
|
-
startedAt?: Date | undefined;
|
|
137
|
-
idempotencyKey?: string | undefined;
|
|
138
|
-
completedAt?: Date | undefined;
|
|
139
139
|
}, {
|
|
140
|
+
id: string;
|
|
140
141
|
number: number;
|
|
141
|
-
status: "
|
|
142
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
143
|
+
createdAt: Date;
|
|
144
|
+
startedAt?: Date | undefined;
|
|
145
|
+
completedAt?: Date | undefined;
|
|
146
|
+
isTest: boolean;
|
|
147
|
+
idempotencyKey?: string | undefined;
|
|
148
|
+
tags: string[];
|
|
142
149
|
error: {
|
|
143
|
-
message: string;
|
|
144
150
|
type: "BUILT_IN_ERROR";
|
|
145
151
|
name: string;
|
|
152
|
+
message: string;
|
|
146
153
|
stackTrace: string;
|
|
147
154
|
} | {
|
|
148
155
|
type: "CUSTOM_ERROR";
|
|
@@ -151,21 +158,14 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
151
158
|
type: "STRING_ERROR";
|
|
152
159
|
raw: string;
|
|
153
160
|
} | {
|
|
154
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
155
161
|
type: "INTERNAL_ERROR";
|
|
162
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
156
163
|
message?: string | undefined;
|
|
157
164
|
stackTrace?: string | undefined;
|
|
158
165
|
};
|
|
159
|
-
|
|
160
|
-
tags: string[];
|
|
161
|
-
isTest: boolean;
|
|
162
|
-
createdAt: Date;
|
|
166
|
+
isOutOfMemoryError: boolean;
|
|
163
167
|
machine: string;
|
|
164
168
|
dashboardUrl: string;
|
|
165
|
-
isOutOfMemoryError: boolean;
|
|
166
|
-
startedAt?: Date | undefined;
|
|
167
|
-
idempotencyKey?: string | undefined;
|
|
168
|
-
completedAt?: Date | undefined;
|
|
169
169
|
}>;
|
|
170
170
|
/** Environment information */
|
|
171
171
|
environment: z.ZodObject<{
|
|
@@ -178,13 +178,13 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
178
178
|
/** Environment branch name */
|
|
179
179
|
branchName: z.ZodOptional<z.ZodString>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
182
181
|
id: string;
|
|
182
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
183
183
|
slug: string;
|
|
184
184
|
branchName?: string | undefined;
|
|
185
185
|
}, {
|
|
186
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
187
186
|
id: string;
|
|
187
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
188
188
|
slug: string;
|
|
189
189
|
branchName?: string | undefined;
|
|
190
190
|
}>;
|
|
@@ -197,13 +197,13 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
197
197
|
/** Organization name */
|
|
198
198
|
name: z.ZodString;
|
|
199
199
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
name: string;
|
|
201
200
|
id: string;
|
|
202
201
|
slug: string;
|
|
203
|
-
}, {
|
|
204
202
|
name: string;
|
|
203
|
+
}, {
|
|
205
204
|
id: string;
|
|
206
205
|
slug: string;
|
|
206
|
+
name: string;
|
|
207
207
|
}>;
|
|
208
208
|
/** Project information */
|
|
209
209
|
project: z.ZodObject<{
|
|
@@ -216,24 +216,39 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
216
216
|
/** Project name */
|
|
217
217
|
name: z.ZodString;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
name: string;
|
|
220
219
|
id: string;
|
|
221
|
-
slug: string;
|
|
222
220
|
ref: string;
|
|
223
|
-
|
|
221
|
+
slug: string;
|
|
224
222
|
name: string;
|
|
223
|
+
}, {
|
|
225
224
|
id: string;
|
|
226
|
-
slug: string;
|
|
227
225
|
ref: string;
|
|
226
|
+
slug: string;
|
|
227
|
+
name: string;
|
|
228
228
|
}>;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
task: {
|
|
231
|
+
id: string;
|
|
232
|
+
filePath: string;
|
|
233
|
+
exportName?: string | undefined;
|
|
234
|
+
version: string;
|
|
235
|
+
sdkVersion: string;
|
|
236
|
+
cliVersion: string;
|
|
237
|
+
};
|
|
230
238
|
run: {
|
|
239
|
+
id: string;
|
|
231
240
|
number: number;
|
|
232
|
-
status: "
|
|
241
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
242
|
+
createdAt: Date;
|
|
243
|
+
startedAt?: Date | undefined;
|
|
244
|
+
completedAt?: Date | undefined;
|
|
245
|
+
isTest: boolean;
|
|
246
|
+
idempotencyKey?: string | undefined;
|
|
247
|
+
tags: string[];
|
|
233
248
|
error: {
|
|
234
|
-
message: string;
|
|
235
249
|
type: "BUILT_IN_ERROR";
|
|
236
250
|
name: string;
|
|
251
|
+
message: string;
|
|
237
252
|
stackTrace: string;
|
|
238
253
|
} | {
|
|
239
254
|
type: "CUSTOM_ERROR";
|
|
@@ -242,55 +257,55 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
242
257
|
type: "STRING_ERROR";
|
|
243
258
|
raw: string;
|
|
244
259
|
} | {
|
|
245
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
246
260
|
type: "INTERNAL_ERROR";
|
|
261
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
247
262
|
message?: string | undefined;
|
|
248
263
|
stackTrace?: string | undefined;
|
|
249
264
|
};
|
|
250
|
-
|
|
251
|
-
tags: string[];
|
|
252
|
-
isTest: boolean;
|
|
253
|
-
createdAt: Date;
|
|
265
|
+
isOutOfMemoryError: boolean;
|
|
254
266
|
machine: string;
|
|
255
267
|
dashboardUrl: string;
|
|
256
|
-
isOutOfMemoryError: boolean;
|
|
257
|
-
startedAt?: Date | undefined;
|
|
258
|
-
idempotencyKey?: string | undefined;
|
|
259
|
-
completedAt?: Date | undefined;
|
|
260
|
-
};
|
|
261
|
-
task: {
|
|
262
|
-
id: string;
|
|
263
|
-
version: string;
|
|
264
|
-
filePath: string;
|
|
265
|
-
sdkVersion: string;
|
|
266
|
-
cliVersion: string;
|
|
267
|
-
exportName?: string | undefined;
|
|
268
268
|
};
|
|
269
269
|
environment: {
|
|
270
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
271
270
|
id: string;
|
|
271
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
272
272
|
slug: string;
|
|
273
273
|
branchName?: string | undefined;
|
|
274
274
|
};
|
|
275
275
|
organization: {
|
|
276
|
-
name: string;
|
|
277
276
|
id: string;
|
|
278
277
|
slug: string;
|
|
278
|
+
name: string;
|
|
279
279
|
};
|
|
280
280
|
project: {
|
|
281
|
-
name: string;
|
|
282
281
|
id: string;
|
|
283
|
-
slug: string;
|
|
284
282
|
ref: string;
|
|
283
|
+
slug: string;
|
|
284
|
+
name: string;
|
|
285
285
|
};
|
|
286
286
|
}, {
|
|
287
|
+
task: {
|
|
288
|
+
id: string;
|
|
289
|
+
filePath: string;
|
|
290
|
+
exportName?: string | undefined;
|
|
291
|
+
version: string;
|
|
292
|
+
sdkVersion: string;
|
|
293
|
+
cliVersion: string;
|
|
294
|
+
};
|
|
287
295
|
run: {
|
|
296
|
+
id: string;
|
|
288
297
|
number: number;
|
|
289
|
-
status: "
|
|
298
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
299
|
+
createdAt: Date;
|
|
300
|
+
startedAt?: Date | undefined;
|
|
301
|
+
completedAt?: Date | undefined;
|
|
302
|
+
isTest: boolean;
|
|
303
|
+
idempotencyKey?: string | undefined;
|
|
304
|
+
tags: string[];
|
|
290
305
|
error: {
|
|
291
|
-
message: string;
|
|
292
306
|
type: "BUILT_IN_ERROR";
|
|
293
307
|
name: string;
|
|
308
|
+
message: string;
|
|
294
309
|
stackTrace: string;
|
|
295
310
|
} | {
|
|
296
311
|
type: "CUSTOM_ERROR";
|
|
@@ -299,46 +314,31 @@ declare const AlertWebhookRunFailedObject: z.ZodObject<{
|
|
|
299
314
|
type: "STRING_ERROR";
|
|
300
315
|
raw: string;
|
|
301
316
|
} | {
|
|
302
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
303
317
|
type: "INTERNAL_ERROR";
|
|
318
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
304
319
|
message?: string | undefined;
|
|
305
320
|
stackTrace?: string | undefined;
|
|
306
321
|
};
|
|
307
|
-
|
|
308
|
-
tags: string[];
|
|
309
|
-
isTest: boolean;
|
|
310
|
-
createdAt: Date;
|
|
322
|
+
isOutOfMemoryError: boolean;
|
|
311
323
|
machine: string;
|
|
312
324
|
dashboardUrl: string;
|
|
313
|
-
isOutOfMemoryError: boolean;
|
|
314
|
-
startedAt?: Date | undefined;
|
|
315
|
-
idempotencyKey?: string | undefined;
|
|
316
|
-
completedAt?: Date | undefined;
|
|
317
|
-
};
|
|
318
|
-
task: {
|
|
319
|
-
id: string;
|
|
320
|
-
version: string;
|
|
321
|
-
filePath: string;
|
|
322
|
-
sdkVersion: string;
|
|
323
|
-
cliVersion: string;
|
|
324
|
-
exportName?: string | undefined;
|
|
325
325
|
};
|
|
326
326
|
environment: {
|
|
327
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
328
327
|
id: string;
|
|
328
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
329
329
|
slug: string;
|
|
330
330
|
branchName?: string | undefined;
|
|
331
331
|
};
|
|
332
332
|
organization: {
|
|
333
|
-
name: string;
|
|
334
333
|
id: string;
|
|
335
334
|
slug: string;
|
|
335
|
+
name: string;
|
|
336
336
|
};
|
|
337
337
|
project: {
|
|
338
|
-
name: string;
|
|
339
338
|
id: string;
|
|
340
|
-
slug: string;
|
|
341
339
|
ref: string;
|
|
340
|
+
slug: string;
|
|
341
|
+
name: string;
|
|
342
342
|
};
|
|
343
343
|
}>;
|
|
344
344
|
export type AlertWebhookRunFailedObject = z.infer<typeof AlertWebhookRunFailedObject>;
|
|
@@ -353,64 +353,19 @@ export declare const DeployError: z.ZodObject<{
|
|
|
353
353
|
/** Standard error output */
|
|
354
354
|
stderr: z.ZodOptional<z.ZodString>;
|
|
355
355
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
message: string;
|
|
357
356
|
name: string;
|
|
357
|
+
message: string;
|
|
358
358
|
stack?: string | undefined;
|
|
359
359
|
stderr?: string | undefined;
|
|
360
360
|
}, {
|
|
361
|
-
message: string;
|
|
362
361
|
name: string;
|
|
362
|
+
message: string;
|
|
363
363
|
stack?: string | undefined;
|
|
364
364
|
stderr?: string | undefined;
|
|
365
365
|
}>;
|
|
366
366
|
export type DeployError = z.infer<typeof DeployError>;
|
|
367
367
|
/** Represents a successful deployment alert webhook payload */
|
|
368
368
|
export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
|
|
369
|
-
deployment: z.ZodObject<{
|
|
370
|
-
/** When the deployment completed */
|
|
371
|
-
deployedAt: z.ZodDate;
|
|
372
|
-
/** Deployment ID */
|
|
373
|
-
id: z.ZodString;
|
|
374
|
-
/** Deployment status */
|
|
375
|
-
status: z.ZodString;
|
|
376
|
-
/** Deployment version */
|
|
377
|
-
version: z.ZodString;
|
|
378
|
-
/** Short code identifier */
|
|
379
|
-
shortCode: z.ZodString;
|
|
380
|
-
}, "strip", z.ZodTypeAny, {
|
|
381
|
-
status: string;
|
|
382
|
-
id: string;
|
|
383
|
-
version: string;
|
|
384
|
-
shortCode: string;
|
|
385
|
-
deployedAt: Date;
|
|
386
|
-
}, {
|
|
387
|
-
status: string;
|
|
388
|
-
id: string;
|
|
389
|
-
version: string;
|
|
390
|
-
shortCode: string;
|
|
391
|
-
deployedAt: Date;
|
|
392
|
-
}>;
|
|
393
|
-
/** Deployed tasks */
|
|
394
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
395
|
-
/** Task ID */
|
|
396
|
-
id: z.ZodString;
|
|
397
|
-
/** File path where the task is defined */
|
|
398
|
-
filePath: z.ZodString;
|
|
399
|
-
/** Name of the exported task function */
|
|
400
|
-
exportName: z.ZodOptional<z.ZodString>;
|
|
401
|
-
/** Source of the trigger */
|
|
402
|
-
triggerSource: z.ZodString;
|
|
403
|
-
}, "strip", z.ZodTypeAny, {
|
|
404
|
-
id: string;
|
|
405
|
-
filePath: string;
|
|
406
|
-
triggerSource: string;
|
|
407
|
-
exportName?: string | undefined;
|
|
408
|
-
}, {
|
|
409
|
-
id: string;
|
|
410
|
-
filePath: string;
|
|
411
|
-
triggerSource: string;
|
|
412
|
-
exportName?: string | undefined;
|
|
413
|
-
}>, "many">;
|
|
414
369
|
/** Environment information */
|
|
415
370
|
environment: z.ZodObject<{
|
|
416
371
|
id: z.ZodString;
|
|
@@ -419,13 +374,13 @@ export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
|
|
|
419
374
|
/** Environment branch name */
|
|
420
375
|
branchName: z.ZodOptional<z.ZodString>;
|
|
421
376
|
}, "strip", z.ZodTypeAny, {
|
|
422
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
423
377
|
id: string;
|
|
378
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
424
379
|
slug: string;
|
|
425
380
|
branchName?: string | undefined;
|
|
426
381
|
}, {
|
|
427
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
428
382
|
id: string;
|
|
383
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
429
384
|
slug: string;
|
|
430
385
|
branchName?: string | undefined;
|
|
431
386
|
}>;
|
|
@@ -435,13 +390,13 @@ export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
|
|
|
435
390
|
slug: z.ZodString;
|
|
436
391
|
name: z.ZodString;
|
|
437
392
|
}, "strip", z.ZodTypeAny, {
|
|
438
|
-
name: string;
|
|
439
393
|
id: string;
|
|
440
394
|
slug: string;
|
|
441
|
-
}, {
|
|
442
395
|
name: string;
|
|
396
|
+
}, {
|
|
443
397
|
id: string;
|
|
444
398
|
slug: string;
|
|
399
|
+
name: string;
|
|
445
400
|
}>;
|
|
446
401
|
/** Project information */
|
|
447
402
|
project: z.ZodObject<{
|
|
@@ -450,15 +405,15 @@ export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
|
|
|
450
405
|
slug: z.ZodString;
|
|
451
406
|
name: z.ZodString;
|
|
452
407
|
}, "strip", z.ZodTypeAny, {
|
|
453
|
-
name: string;
|
|
454
408
|
id: string;
|
|
455
|
-
slug: string;
|
|
456
409
|
ref: string;
|
|
457
|
-
|
|
410
|
+
slug: string;
|
|
458
411
|
name: string;
|
|
412
|
+
}, {
|
|
459
413
|
id: string;
|
|
460
|
-
slug: string;
|
|
461
414
|
ref: string;
|
|
415
|
+
slug: string;
|
|
416
|
+
name: string;
|
|
462
417
|
}>;
|
|
463
418
|
/** Git metadata for the deployment source code */
|
|
464
419
|
git: z.ZodOptional<z.ZodObject<{
|
|
@@ -472,25 +427,25 @@ export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
|
|
|
472
427
|
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
473
428
|
provider: z.ZodOptional<z.ZodString>;
|
|
474
429
|
}, "strip", z.ZodTypeAny, {
|
|
475
|
-
commitMessage: string;
|
|
476
|
-
commitSha: string;
|
|
477
430
|
branch: string;
|
|
431
|
+
commitSha: string;
|
|
432
|
+
commitMessage: string;
|
|
478
433
|
commitUrl: string;
|
|
479
434
|
branchUrl: string;
|
|
480
|
-
provider?: string | undefined;
|
|
481
435
|
pullRequestNumber?: number | undefined;
|
|
482
436
|
pullRequestTitle?: string | undefined;
|
|
483
437
|
pullRequestUrl?: string | undefined;
|
|
438
|
+
provider?: string | undefined;
|
|
484
439
|
}, {
|
|
485
|
-
commitMessage: string;
|
|
486
|
-
commitSha: string;
|
|
487
440
|
branch: string;
|
|
441
|
+
commitSha: string;
|
|
442
|
+
commitMessage: string;
|
|
488
443
|
commitUrl: string;
|
|
489
444
|
branchUrl: string;
|
|
490
|
-
provider?: string | undefined;
|
|
491
445
|
pullRequestNumber?: number | undefined;
|
|
492
446
|
pullRequestTitle?: string | undefined;
|
|
493
447
|
pullRequestUrl?: string | undefined;
|
|
448
|
+
provider?: string | undefined;
|
|
494
449
|
}>>;
|
|
495
450
|
/** Vercel integration data */
|
|
496
451
|
vercel: z.ZodOptional<z.ZodObject<{
|
|
@@ -500,144 +455,144 @@ export declare const AlertWebhookDeploymentSuccessObject: z.ZodObject<{
|
|
|
500
455
|
}, {
|
|
501
456
|
deploymentUrl: string;
|
|
502
457
|
}>>;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
}
|
|
515
|
-
project: {
|
|
516
|
-
name: string;
|
|
458
|
+
deployment: z.ZodObject<{
|
|
459
|
+
/** Deployment ID */
|
|
460
|
+
id: z.ZodString;
|
|
461
|
+
/** Deployment status */
|
|
462
|
+
status: z.ZodString;
|
|
463
|
+
/** Deployment version */
|
|
464
|
+
version: z.ZodString;
|
|
465
|
+
/** Short code identifier */
|
|
466
|
+
shortCode: z.ZodString;
|
|
467
|
+
/** When the deployment completed */
|
|
468
|
+
deployedAt: z.ZodDate;
|
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
|
517
470
|
id: string;
|
|
518
|
-
slug: string;
|
|
519
|
-
ref: string;
|
|
520
|
-
};
|
|
521
|
-
deployment: {
|
|
522
471
|
status: string;
|
|
523
|
-
id: string;
|
|
524
472
|
version: string;
|
|
525
473
|
shortCode: string;
|
|
526
474
|
deployedAt: Date;
|
|
527
|
-
}
|
|
528
|
-
|
|
475
|
+
}, {
|
|
476
|
+
id: string;
|
|
477
|
+
status: string;
|
|
478
|
+
version: string;
|
|
479
|
+
shortCode: string;
|
|
480
|
+
deployedAt: Date;
|
|
481
|
+
}>;
|
|
482
|
+
/** Deployed tasks */
|
|
483
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
484
|
+
/** Task ID */
|
|
485
|
+
id: z.ZodString;
|
|
486
|
+
/** File path where the task is defined */
|
|
487
|
+
filePath: z.ZodString;
|
|
488
|
+
/** Name of the exported task function */
|
|
489
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
490
|
+
/** Source of the trigger */
|
|
491
|
+
triggerSource: z.ZodString;
|
|
492
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
493
|
id: string;
|
|
530
494
|
filePath: string;
|
|
495
|
+
exportName?: string | undefined;
|
|
531
496
|
triggerSource: string;
|
|
497
|
+
}, {
|
|
498
|
+
id: string;
|
|
499
|
+
filePath: string;
|
|
532
500
|
exportName?: string | undefined;
|
|
533
|
-
|
|
501
|
+
triggerSource: string;
|
|
502
|
+
}>, "many">;
|
|
503
|
+
}, "strip", z.ZodTypeAny, {
|
|
504
|
+
environment: {
|
|
505
|
+
id: string;
|
|
506
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
507
|
+
slug: string;
|
|
508
|
+
branchName?: string | undefined;
|
|
509
|
+
};
|
|
510
|
+
organization: {
|
|
511
|
+
id: string;
|
|
512
|
+
slug: string;
|
|
513
|
+
name: string;
|
|
514
|
+
};
|
|
515
|
+
project: {
|
|
516
|
+
id: string;
|
|
517
|
+
ref: string;
|
|
518
|
+
slug: string;
|
|
519
|
+
name: string;
|
|
520
|
+
};
|
|
534
521
|
git?: {
|
|
535
|
-
commitMessage: string;
|
|
536
|
-
commitSha: string;
|
|
537
522
|
branch: string;
|
|
523
|
+
commitSha: string;
|
|
524
|
+
commitMessage: string;
|
|
538
525
|
commitUrl: string;
|
|
539
526
|
branchUrl: string;
|
|
540
|
-
provider?: string | undefined;
|
|
541
527
|
pullRequestNumber?: number | undefined;
|
|
542
528
|
pullRequestTitle?: string | undefined;
|
|
543
529
|
pullRequestUrl?: string | undefined;
|
|
530
|
+
provider?: string | undefined;
|
|
544
531
|
} | undefined;
|
|
545
532
|
vercel?: {
|
|
546
533
|
deploymentUrl: string;
|
|
547
534
|
} | undefined;
|
|
535
|
+
deployment: {
|
|
536
|
+
id: string;
|
|
537
|
+
status: string;
|
|
538
|
+
version: string;
|
|
539
|
+
shortCode: string;
|
|
540
|
+
deployedAt: Date;
|
|
541
|
+
};
|
|
542
|
+
tasks: {
|
|
543
|
+
id: string;
|
|
544
|
+
filePath: string;
|
|
545
|
+
exportName?: string | undefined;
|
|
546
|
+
triggerSource: string;
|
|
547
|
+
}[];
|
|
548
548
|
}, {
|
|
549
549
|
environment: {
|
|
550
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
551
550
|
id: string;
|
|
551
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
552
552
|
slug: string;
|
|
553
553
|
branchName?: string | undefined;
|
|
554
554
|
};
|
|
555
555
|
organization: {
|
|
556
|
-
name: string;
|
|
557
556
|
id: string;
|
|
558
557
|
slug: string;
|
|
558
|
+
name: string;
|
|
559
559
|
};
|
|
560
560
|
project: {
|
|
561
|
-
name: string;
|
|
562
561
|
id: string;
|
|
563
|
-
slug: string;
|
|
564
562
|
ref: string;
|
|
563
|
+
slug: string;
|
|
564
|
+
name: string;
|
|
565
565
|
};
|
|
566
|
-
deployment: {
|
|
567
|
-
status: string;
|
|
568
|
-
id: string;
|
|
569
|
-
version: string;
|
|
570
|
-
shortCode: string;
|
|
571
|
-
deployedAt: Date;
|
|
572
|
-
};
|
|
573
|
-
tasks: {
|
|
574
|
-
id: string;
|
|
575
|
-
filePath: string;
|
|
576
|
-
triggerSource: string;
|
|
577
|
-
exportName?: string | undefined;
|
|
578
|
-
}[];
|
|
579
566
|
git?: {
|
|
580
|
-
commitMessage: string;
|
|
581
|
-
commitSha: string;
|
|
582
567
|
branch: string;
|
|
568
|
+
commitSha: string;
|
|
569
|
+
commitMessage: string;
|
|
583
570
|
commitUrl: string;
|
|
584
571
|
branchUrl: string;
|
|
585
|
-
provider?: string | undefined;
|
|
586
572
|
pullRequestNumber?: number | undefined;
|
|
587
573
|
pullRequestTitle?: string | undefined;
|
|
588
574
|
pullRequestUrl?: string | undefined;
|
|
575
|
+
provider?: string | undefined;
|
|
589
576
|
} | undefined;
|
|
590
577
|
vercel?: {
|
|
591
578
|
deploymentUrl: string;
|
|
592
579
|
} | undefined;
|
|
593
|
-
|
|
594
|
-
/** Represents a failed deployment alert webhook payload */
|
|
595
|
-
export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
|
|
596
|
-
deployment: z.ZodObject<{
|
|
597
|
-
/** When the deployment failed */
|
|
598
|
-
failedAt: z.ZodDate;
|
|
599
|
-
/** Deployment ID */
|
|
600
|
-
id: z.ZodString;
|
|
601
|
-
/** Deployment status */
|
|
602
|
-
status: z.ZodString;
|
|
603
|
-
/** Deployment version */
|
|
604
|
-
version: z.ZodString;
|
|
605
|
-
/** Short code identifier */
|
|
606
|
-
shortCode: z.ZodString;
|
|
607
|
-
}, "strip", z.ZodTypeAny, {
|
|
608
|
-
status: string;
|
|
580
|
+
deployment: {
|
|
609
581
|
id: string;
|
|
610
|
-
version: string;
|
|
611
|
-
shortCode: string;
|
|
612
|
-
failedAt: Date;
|
|
613
|
-
}, {
|
|
614
582
|
status: string;
|
|
615
|
-
id: string;
|
|
616
583
|
version: string;
|
|
617
584
|
shortCode: string;
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
630
|
-
}, "strip", z.ZodTypeAny, {
|
|
631
|
-
message: string;
|
|
632
|
-
name: string;
|
|
633
|
-
stack?: string | undefined;
|
|
634
|
-
stderr?: string | undefined;
|
|
635
|
-
}, {
|
|
636
|
-
message: string;
|
|
637
|
-
name: string;
|
|
638
|
-
stack?: string | undefined;
|
|
639
|
-
stderr?: string | undefined;
|
|
640
|
-
}>;
|
|
585
|
+
deployedAt: Date;
|
|
586
|
+
};
|
|
587
|
+
tasks: {
|
|
588
|
+
id: string;
|
|
589
|
+
filePath: string;
|
|
590
|
+
exportName?: string | undefined;
|
|
591
|
+
triggerSource: string;
|
|
592
|
+
}[];
|
|
593
|
+
}>;
|
|
594
|
+
/** Represents a failed deployment alert webhook payload */
|
|
595
|
+
export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
|
|
641
596
|
/** Environment information */
|
|
642
597
|
environment: z.ZodObject<{
|
|
643
598
|
id: z.ZodString;
|
|
@@ -646,13 +601,13 @@ export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
|
|
|
646
601
|
/** Environment branch name */
|
|
647
602
|
branchName: z.ZodOptional<z.ZodString>;
|
|
648
603
|
}, "strip", z.ZodTypeAny, {
|
|
649
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
650
604
|
id: string;
|
|
605
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
651
606
|
slug: string;
|
|
652
607
|
branchName?: string | undefined;
|
|
653
608
|
}, {
|
|
654
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
655
609
|
id: string;
|
|
610
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
656
611
|
slug: string;
|
|
657
612
|
branchName?: string | undefined;
|
|
658
613
|
}>;
|
|
@@ -662,13 +617,13 @@ export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
|
|
|
662
617
|
slug: z.ZodString;
|
|
663
618
|
name: z.ZodString;
|
|
664
619
|
}, "strip", z.ZodTypeAny, {
|
|
665
|
-
name: string;
|
|
666
620
|
id: string;
|
|
667
621
|
slug: string;
|
|
668
|
-
}, {
|
|
669
622
|
name: string;
|
|
623
|
+
}, {
|
|
670
624
|
id: string;
|
|
671
625
|
slug: string;
|
|
626
|
+
name: string;
|
|
672
627
|
}>;
|
|
673
628
|
/** Project information */
|
|
674
629
|
project: z.ZodObject<{
|
|
@@ -677,15 +632,15 @@ export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
|
|
|
677
632
|
slug: z.ZodString;
|
|
678
633
|
name: z.ZodString;
|
|
679
634
|
}, "strip", z.ZodTypeAny, {
|
|
680
|
-
name: string;
|
|
681
635
|
id: string;
|
|
682
|
-
slug: string;
|
|
683
636
|
ref: string;
|
|
684
|
-
|
|
637
|
+
slug: string;
|
|
685
638
|
name: string;
|
|
639
|
+
}, {
|
|
686
640
|
id: string;
|
|
687
|
-
slug: string;
|
|
688
641
|
ref: string;
|
|
642
|
+
slug: string;
|
|
643
|
+
name: string;
|
|
689
644
|
}>;
|
|
690
645
|
/** Git metadata for the deployment source code */
|
|
691
646
|
git: z.ZodOptional<z.ZodObject<{
|
|
@@ -699,25 +654,25 @@ export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
|
|
|
699
654
|
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
700
655
|
provider: z.ZodOptional<z.ZodString>;
|
|
701
656
|
}, "strip", z.ZodTypeAny, {
|
|
702
|
-
commitMessage: string;
|
|
703
|
-
commitSha: string;
|
|
704
657
|
branch: string;
|
|
658
|
+
commitSha: string;
|
|
659
|
+
commitMessage: string;
|
|
705
660
|
commitUrl: string;
|
|
706
661
|
branchUrl: string;
|
|
707
|
-
provider?: string | undefined;
|
|
708
662
|
pullRequestNumber?: number | undefined;
|
|
709
663
|
pullRequestTitle?: string | undefined;
|
|
710
664
|
pullRequestUrl?: string | undefined;
|
|
665
|
+
provider?: string | undefined;
|
|
711
666
|
}, {
|
|
712
|
-
commitMessage: string;
|
|
713
|
-
commitSha: string;
|
|
714
667
|
branch: string;
|
|
668
|
+
commitSha: string;
|
|
669
|
+
commitMessage: string;
|
|
715
670
|
commitUrl: string;
|
|
716
671
|
branchUrl: string;
|
|
717
|
-
provider?: string | undefined;
|
|
718
672
|
pullRequestNumber?: number | undefined;
|
|
719
673
|
pullRequestTitle?: string | undefined;
|
|
720
674
|
pullRequestUrl?: string | undefined;
|
|
675
|
+
provider?: string | undefined;
|
|
721
676
|
}>>;
|
|
722
677
|
/** Vercel integration data */
|
|
723
678
|
vercel: z.ZodOptional<z.ZodObject<{
|
|
@@ -727,96 +682,141 @@ export declare const AlertWebhookDeploymentFailedObject: z.ZodObject<{
|
|
|
727
682
|
}, {
|
|
728
683
|
deploymentUrl: string;
|
|
729
684
|
}>>;
|
|
730
|
-
|
|
731
|
-
|
|
685
|
+
deployment: z.ZodObject<{
|
|
686
|
+
/** Deployment ID */
|
|
687
|
+
id: z.ZodString;
|
|
688
|
+
/** Deployment status */
|
|
689
|
+
status: z.ZodString;
|
|
690
|
+
/** Deployment version */
|
|
691
|
+
version: z.ZodString;
|
|
692
|
+
/** Short code identifier */
|
|
693
|
+
shortCode: z.ZodString;
|
|
694
|
+
/** When the deployment failed */
|
|
695
|
+
failedAt: z.ZodDate;
|
|
696
|
+
}, "strip", z.ZodTypeAny, {
|
|
697
|
+
id: string;
|
|
698
|
+
status: string;
|
|
699
|
+
version: string;
|
|
700
|
+
shortCode: string;
|
|
701
|
+
failedAt: Date;
|
|
702
|
+
}, {
|
|
703
|
+
id: string;
|
|
704
|
+
status: string;
|
|
705
|
+
version: string;
|
|
706
|
+
shortCode: string;
|
|
707
|
+
failedAt: Date;
|
|
708
|
+
}>;
|
|
709
|
+
/** Error information */
|
|
710
|
+
error: z.ZodObject<{
|
|
711
|
+
/** Error name */
|
|
712
|
+
name: z.ZodString;
|
|
713
|
+
/** Error message */
|
|
714
|
+
message: z.ZodString;
|
|
715
|
+
/** Error stack trace */
|
|
716
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
717
|
+
/** Standard error output */
|
|
718
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
719
|
+
}, "strip", z.ZodTypeAny, {
|
|
720
|
+
name: string;
|
|
732
721
|
message: string;
|
|
722
|
+
stack?: string | undefined;
|
|
723
|
+
stderr?: string | undefined;
|
|
724
|
+
}, {
|
|
733
725
|
name: string;
|
|
726
|
+
message: string;
|
|
734
727
|
stack?: string | undefined;
|
|
735
728
|
stderr?: string | undefined;
|
|
736
|
-
}
|
|
729
|
+
}>;
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
731
|
environment: {
|
|
738
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
739
732
|
id: string;
|
|
733
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
740
734
|
slug: string;
|
|
741
735
|
branchName?: string | undefined;
|
|
742
736
|
};
|
|
743
737
|
organization: {
|
|
744
|
-
name: string;
|
|
745
738
|
id: string;
|
|
746
739
|
slug: string;
|
|
740
|
+
name: string;
|
|
747
741
|
};
|
|
748
742
|
project: {
|
|
749
|
-
name: string;
|
|
750
743
|
id: string;
|
|
751
|
-
slug: string;
|
|
752
744
|
ref: string;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
status: string;
|
|
756
|
-
id: string;
|
|
757
|
-
version: string;
|
|
758
|
-
shortCode: string;
|
|
759
|
-
failedAt: Date;
|
|
745
|
+
slug: string;
|
|
746
|
+
name: string;
|
|
760
747
|
};
|
|
761
748
|
git?: {
|
|
762
|
-
commitMessage: string;
|
|
763
|
-
commitSha: string;
|
|
764
749
|
branch: string;
|
|
750
|
+
commitSha: string;
|
|
751
|
+
commitMessage: string;
|
|
765
752
|
commitUrl: string;
|
|
766
753
|
branchUrl: string;
|
|
767
|
-
provider?: string | undefined;
|
|
768
754
|
pullRequestNumber?: number | undefined;
|
|
769
755
|
pullRequestTitle?: string | undefined;
|
|
770
756
|
pullRequestUrl?: string | undefined;
|
|
757
|
+
provider?: string | undefined;
|
|
771
758
|
} | undefined;
|
|
772
759
|
vercel?: {
|
|
773
760
|
deploymentUrl: string;
|
|
774
761
|
} | undefined;
|
|
775
|
-
|
|
762
|
+
deployment: {
|
|
763
|
+
id: string;
|
|
764
|
+
status: string;
|
|
765
|
+
version: string;
|
|
766
|
+
shortCode: string;
|
|
767
|
+
failedAt: Date;
|
|
768
|
+
};
|
|
776
769
|
error: {
|
|
777
|
-
message: string;
|
|
778
770
|
name: string;
|
|
771
|
+
message: string;
|
|
779
772
|
stack?: string | undefined;
|
|
780
773
|
stderr?: string | undefined;
|
|
781
774
|
};
|
|
775
|
+
}, {
|
|
782
776
|
environment: {
|
|
783
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
784
777
|
id: string;
|
|
778
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
785
779
|
slug: string;
|
|
786
780
|
branchName?: string | undefined;
|
|
787
781
|
};
|
|
788
782
|
organization: {
|
|
789
|
-
name: string;
|
|
790
783
|
id: string;
|
|
791
784
|
slug: string;
|
|
785
|
+
name: string;
|
|
792
786
|
};
|
|
793
787
|
project: {
|
|
794
|
-
name: string;
|
|
795
788
|
id: string;
|
|
796
|
-
slug: string;
|
|
797
789
|
ref: string;
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
status: string;
|
|
801
|
-
id: string;
|
|
802
|
-
version: string;
|
|
803
|
-
shortCode: string;
|
|
804
|
-
failedAt: Date;
|
|
790
|
+
slug: string;
|
|
791
|
+
name: string;
|
|
805
792
|
};
|
|
806
793
|
git?: {
|
|
807
|
-
commitMessage: string;
|
|
808
|
-
commitSha: string;
|
|
809
794
|
branch: string;
|
|
795
|
+
commitSha: string;
|
|
796
|
+
commitMessage: string;
|
|
810
797
|
commitUrl: string;
|
|
811
798
|
branchUrl: string;
|
|
812
|
-
provider?: string | undefined;
|
|
813
799
|
pullRequestNumber?: number | undefined;
|
|
814
800
|
pullRequestTitle?: string | undefined;
|
|
815
801
|
pullRequestUrl?: string | undefined;
|
|
802
|
+
provider?: string | undefined;
|
|
816
803
|
} | undefined;
|
|
817
804
|
vercel?: {
|
|
818
805
|
deploymentUrl: string;
|
|
819
806
|
} | undefined;
|
|
807
|
+
deployment: {
|
|
808
|
+
id: string;
|
|
809
|
+
status: string;
|
|
810
|
+
version: string;
|
|
811
|
+
shortCode: string;
|
|
812
|
+
failedAt: Date;
|
|
813
|
+
};
|
|
814
|
+
error: {
|
|
815
|
+
name: string;
|
|
816
|
+
message: string;
|
|
817
|
+
stack?: string | undefined;
|
|
818
|
+
stderr?: string | undefined;
|
|
819
|
+
};
|
|
820
820
|
}>;
|
|
821
821
|
export type AlertWebhookDeploymentSuccessObject = z.infer<typeof AlertWebhookDeploymentSuccessObject>;
|
|
822
822
|
export type AlertWebhookDeploymentFailedObject = z.infer<typeof AlertWebhookDeploymentFailedObject>;
|
|
@@ -843,23 +843,23 @@ export declare const AlertWebhookErrorGroupObject: z.ZodObject<{
|
|
|
843
843
|
/** Task identifier where the error occurred */
|
|
844
844
|
taskIdentifier: z.ZodString;
|
|
845
845
|
}, "strip", z.ZodTypeAny, {
|
|
846
|
-
message: string;
|
|
847
|
-
type: string;
|
|
848
|
-
taskIdentifier: string;
|
|
849
846
|
fingerprint: string;
|
|
847
|
+
type: string;
|
|
848
|
+
message: string;
|
|
849
|
+
stackTrace?: string | undefined;
|
|
850
850
|
firstSeen: Date;
|
|
851
851
|
lastSeen: Date;
|
|
852
852
|
occurrenceCount: number;
|
|
853
|
-
stackTrace?: string | undefined;
|
|
854
|
-
}, {
|
|
855
|
-
message: string;
|
|
856
|
-
type: string;
|
|
857
853
|
taskIdentifier: string;
|
|
854
|
+
}, {
|
|
858
855
|
fingerprint: string;
|
|
856
|
+
type: string;
|
|
857
|
+
message: string;
|
|
858
|
+
stackTrace?: string | undefined;
|
|
859
859
|
firstSeen: Date;
|
|
860
860
|
lastSeen: Date;
|
|
861
861
|
occurrenceCount: number;
|
|
862
|
-
|
|
862
|
+
taskIdentifier: string;
|
|
863
863
|
}>;
|
|
864
864
|
/** Environment information */
|
|
865
865
|
environment: z.ZodObject<{
|
|
@@ -868,11 +868,11 @@ export declare const AlertWebhookErrorGroupObject: z.ZodObject<{
|
|
|
868
868
|
/** Environment name */
|
|
869
869
|
name: z.ZodString;
|
|
870
870
|
}, "strip", z.ZodTypeAny, {
|
|
871
|
-
name: string;
|
|
872
871
|
id: string;
|
|
873
|
-
}, {
|
|
874
872
|
name: string;
|
|
873
|
+
}, {
|
|
875
874
|
id: string;
|
|
875
|
+
name: string;
|
|
876
876
|
}>;
|
|
877
877
|
/** Organization information */
|
|
878
878
|
organization: z.ZodObject<{
|
|
@@ -883,13 +883,13 @@ export declare const AlertWebhookErrorGroupObject: z.ZodObject<{
|
|
|
883
883
|
/** Organization name */
|
|
884
884
|
name: z.ZodString;
|
|
885
885
|
}, "strip", z.ZodTypeAny, {
|
|
886
|
-
name: string;
|
|
887
886
|
id: string;
|
|
888
887
|
slug: string;
|
|
889
|
-
}, {
|
|
890
888
|
name: string;
|
|
889
|
+
}, {
|
|
891
890
|
id: string;
|
|
892
891
|
slug: string;
|
|
892
|
+
name: string;
|
|
893
893
|
}>;
|
|
894
894
|
/** Project information */
|
|
895
895
|
project: z.ZodObject<{
|
|
@@ -902,78 +902,84 @@ export declare const AlertWebhookErrorGroupObject: z.ZodObject<{
|
|
|
902
902
|
/** Project name */
|
|
903
903
|
name: z.ZodString;
|
|
904
904
|
}, "strip", z.ZodTypeAny, {
|
|
905
|
-
name: string;
|
|
906
905
|
id: string;
|
|
907
|
-
slug: string;
|
|
908
906
|
ref: string;
|
|
909
|
-
|
|
907
|
+
slug: string;
|
|
910
908
|
name: string;
|
|
909
|
+
}, {
|
|
911
910
|
id: string;
|
|
912
|
-
slug: string;
|
|
913
911
|
ref: string;
|
|
912
|
+
slug: string;
|
|
913
|
+
name: string;
|
|
914
914
|
}>;
|
|
915
915
|
/** URL to view the error in the dashboard */
|
|
916
916
|
dashboardUrl: z.ZodString;
|
|
917
917
|
}, "strip", z.ZodTypeAny, {
|
|
918
|
+
classification: "new_issue" | "regression" | "unignored";
|
|
918
919
|
error: {
|
|
919
|
-
message: string;
|
|
920
|
-
type: string;
|
|
921
|
-
taskIdentifier: string;
|
|
922
920
|
fingerprint: string;
|
|
921
|
+
type: string;
|
|
922
|
+
message: string;
|
|
923
|
+
stackTrace?: string | undefined;
|
|
923
924
|
firstSeen: Date;
|
|
924
925
|
lastSeen: Date;
|
|
925
926
|
occurrenceCount: number;
|
|
926
|
-
|
|
927
|
+
taskIdentifier: string;
|
|
927
928
|
};
|
|
928
929
|
environment: {
|
|
929
|
-
name: string;
|
|
930
930
|
id: string;
|
|
931
|
+
name: string;
|
|
931
932
|
};
|
|
932
933
|
organization: {
|
|
933
|
-
name: string;
|
|
934
934
|
id: string;
|
|
935
935
|
slug: string;
|
|
936
|
+
name: string;
|
|
936
937
|
};
|
|
937
938
|
project: {
|
|
938
|
-
name: string;
|
|
939
939
|
id: string;
|
|
940
|
-
slug: string;
|
|
941
940
|
ref: string;
|
|
941
|
+
slug: string;
|
|
942
|
+
name: string;
|
|
942
943
|
};
|
|
943
944
|
dashboardUrl: string;
|
|
944
|
-
classification: "new_issue" | "regression" | "unignored";
|
|
945
945
|
}, {
|
|
946
|
+
classification: "new_issue" | "regression" | "unignored";
|
|
946
947
|
error: {
|
|
947
|
-
message: string;
|
|
948
|
-
type: string;
|
|
949
|
-
taskIdentifier: string;
|
|
950
948
|
fingerprint: string;
|
|
949
|
+
type: string;
|
|
950
|
+
message: string;
|
|
951
|
+
stackTrace?: string | undefined;
|
|
951
952
|
firstSeen: Date;
|
|
952
953
|
lastSeen: Date;
|
|
953
954
|
occurrenceCount: number;
|
|
954
|
-
|
|
955
|
+
taskIdentifier: string;
|
|
955
956
|
};
|
|
956
957
|
environment: {
|
|
957
|
-
name: string;
|
|
958
958
|
id: string;
|
|
959
|
+
name: string;
|
|
959
960
|
};
|
|
960
961
|
organization: {
|
|
961
|
-
name: string;
|
|
962
962
|
id: string;
|
|
963
963
|
slug: string;
|
|
964
|
+
name: string;
|
|
964
965
|
};
|
|
965
966
|
project: {
|
|
966
|
-
name: string;
|
|
967
967
|
id: string;
|
|
968
|
-
slug: string;
|
|
969
968
|
ref: string;
|
|
969
|
+
slug: string;
|
|
970
|
+
name: string;
|
|
970
971
|
};
|
|
971
972
|
dashboardUrl: string;
|
|
972
|
-
classification: "new_issue" | "regression" | "unignored";
|
|
973
973
|
}>;
|
|
974
974
|
export type AlertWebhookErrorGroupObject = z.infer<typeof AlertWebhookErrorGroupObject>;
|
|
975
975
|
/** Represents all possible webhook types */
|
|
976
976
|
export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
977
|
+
/** Webhook ID */
|
|
978
|
+
id: z.ZodString;
|
|
979
|
+
/** When the webhook was created */
|
|
980
|
+
created: z.ZodDate;
|
|
981
|
+
/** Version of the webhook */
|
|
982
|
+
webhookVersion: z.ZodString;
|
|
977
983
|
type: z.ZodLiteral<"alert.run.failed">;
|
|
978
984
|
object: z.ZodObject<{
|
|
979
985
|
/** Task information */
|
|
@@ -992,18 +998,18 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
992
998
|
cliVersion: z.ZodString;
|
|
993
999
|
}, "strip", z.ZodTypeAny, {
|
|
994
1000
|
id: string;
|
|
995
|
-
version: string;
|
|
996
1001
|
filePath: string;
|
|
1002
|
+
exportName?: string | undefined;
|
|
1003
|
+
version: string;
|
|
997
1004
|
sdkVersion: string;
|
|
998
1005
|
cliVersion: string;
|
|
999
|
-
exportName?: string | undefined;
|
|
1000
1006
|
}, {
|
|
1001
1007
|
id: string;
|
|
1002
|
-
version: string;
|
|
1003
1008
|
filePath: string;
|
|
1009
|
+
exportName?: string | undefined;
|
|
1010
|
+
version: string;
|
|
1004
1011
|
sdkVersion: string;
|
|
1005
1012
|
cliVersion: string;
|
|
1006
|
-
exportName?: string | undefined;
|
|
1007
1013
|
}>;
|
|
1008
1014
|
/** Run information */
|
|
1009
1015
|
run: z.ZodObject<{
|
|
@@ -1032,14 +1038,14 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1032
1038
|
message: z.ZodString;
|
|
1033
1039
|
stackTrace: z.ZodString;
|
|
1034
1040
|
}, "strip", z.ZodTypeAny, {
|
|
1035
|
-
message: string;
|
|
1036
1041
|
type: "BUILT_IN_ERROR";
|
|
1037
1042
|
name: string;
|
|
1043
|
+
message: string;
|
|
1038
1044
|
stackTrace: string;
|
|
1039
1045
|
}, {
|
|
1040
|
-
message: string;
|
|
1041
1046
|
type: "BUILT_IN_ERROR";
|
|
1042
1047
|
name: string;
|
|
1048
|
+
message: string;
|
|
1043
1049
|
stackTrace: string;
|
|
1044
1050
|
}>, z.ZodObject<{
|
|
1045
1051
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -1065,13 +1071,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1065
1071
|
message: z.ZodOptional<z.ZodString>;
|
|
1066
1072
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
1067
1073
|
}, "strip", z.ZodTypeAny, {
|
|
1068
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1069
1074
|
type: "INTERNAL_ERROR";
|
|
1075
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1070
1076
|
message?: string | undefined;
|
|
1071
1077
|
stackTrace?: string | undefined;
|
|
1072
1078
|
}, {
|
|
1073
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1074
1079
|
type: "INTERNAL_ERROR";
|
|
1080
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1075
1081
|
message?: string | undefined;
|
|
1076
1082
|
stackTrace?: string | undefined;
|
|
1077
1083
|
}>]>;
|
|
@@ -1082,12 +1088,19 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1082
1088
|
/** URL to view the run in the dashboard */
|
|
1083
1089
|
dashboardUrl: z.ZodString;
|
|
1084
1090
|
}, "strip", z.ZodTypeAny, {
|
|
1091
|
+
id: string;
|
|
1085
1092
|
number: number;
|
|
1086
|
-
status: "
|
|
1093
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
1094
|
+
createdAt: Date;
|
|
1095
|
+
startedAt?: Date | undefined;
|
|
1096
|
+
completedAt?: Date | undefined;
|
|
1097
|
+
isTest: boolean;
|
|
1098
|
+
idempotencyKey?: string | undefined;
|
|
1099
|
+
tags: string[];
|
|
1087
1100
|
error: {
|
|
1088
|
-
message: string;
|
|
1089
1101
|
type: "BUILT_IN_ERROR";
|
|
1090
1102
|
name: string;
|
|
1103
|
+
message: string;
|
|
1091
1104
|
stackTrace: string;
|
|
1092
1105
|
} | {
|
|
1093
1106
|
type: "CUSTOM_ERROR";
|
|
@@ -1096,28 +1109,28 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1096
1109
|
type: "STRING_ERROR";
|
|
1097
1110
|
raw: string;
|
|
1098
1111
|
} | {
|
|
1099
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1100
1112
|
type: "INTERNAL_ERROR";
|
|
1113
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1101
1114
|
message?: string | undefined;
|
|
1102
1115
|
stackTrace?: string | undefined;
|
|
1103
1116
|
};
|
|
1104
|
-
|
|
1105
|
-
tags: string[];
|
|
1106
|
-
isTest: boolean;
|
|
1107
|
-
createdAt: Date;
|
|
1117
|
+
isOutOfMemoryError: boolean;
|
|
1108
1118
|
machine: string;
|
|
1109
1119
|
dashboardUrl: string;
|
|
1110
|
-
isOutOfMemoryError: boolean;
|
|
1111
|
-
startedAt?: Date | undefined;
|
|
1112
|
-
idempotencyKey?: string | undefined;
|
|
1113
|
-
completedAt?: Date | undefined;
|
|
1114
1120
|
}, {
|
|
1121
|
+
id: string;
|
|
1115
1122
|
number: number;
|
|
1116
|
-
status: "
|
|
1123
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
1124
|
+
createdAt: Date;
|
|
1125
|
+
startedAt?: Date | undefined;
|
|
1126
|
+
completedAt?: Date | undefined;
|
|
1127
|
+
isTest: boolean;
|
|
1128
|
+
idempotencyKey?: string | undefined;
|
|
1129
|
+
tags: string[];
|
|
1117
1130
|
error: {
|
|
1118
|
-
message: string;
|
|
1119
1131
|
type: "BUILT_IN_ERROR";
|
|
1120
1132
|
name: string;
|
|
1133
|
+
message: string;
|
|
1121
1134
|
stackTrace: string;
|
|
1122
1135
|
} | {
|
|
1123
1136
|
type: "CUSTOM_ERROR";
|
|
@@ -1126,21 +1139,14 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1126
1139
|
type: "STRING_ERROR";
|
|
1127
1140
|
raw: string;
|
|
1128
1141
|
} | {
|
|
1129
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1130
1142
|
type: "INTERNAL_ERROR";
|
|
1143
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1131
1144
|
message?: string | undefined;
|
|
1132
1145
|
stackTrace?: string | undefined;
|
|
1133
1146
|
};
|
|
1134
|
-
|
|
1135
|
-
tags: string[];
|
|
1136
|
-
isTest: boolean;
|
|
1137
|
-
createdAt: Date;
|
|
1147
|
+
isOutOfMemoryError: boolean;
|
|
1138
1148
|
machine: string;
|
|
1139
1149
|
dashboardUrl: string;
|
|
1140
|
-
isOutOfMemoryError: boolean;
|
|
1141
|
-
startedAt?: Date | undefined;
|
|
1142
|
-
idempotencyKey?: string | undefined;
|
|
1143
|
-
completedAt?: Date | undefined;
|
|
1144
1150
|
}>;
|
|
1145
1151
|
/** Environment information */
|
|
1146
1152
|
environment: z.ZodObject<{
|
|
@@ -1153,13 +1159,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1153
1159
|
/** Environment branch name */
|
|
1154
1160
|
branchName: z.ZodOptional<z.ZodString>;
|
|
1155
1161
|
}, "strip", z.ZodTypeAny, {
|
|
1156
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1157
1162
|
id: string;
|
|
1163
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1158
1164
|
slug: string;
|
|
1159
1165
|
branchName?: string | undefined;
|
|
1160
1166
|
}, {
|
|
1161
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1162
1167
|
id: string;
|
|
1168
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1163
1169
|
slug: string;
|
|
1164
1170
|
branchName?: string | undefined;
|
|
1165
1171
|
}>;
|
|
@@ -1172,13 +1178,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1172
1178
|
/** Organization name */
|
|
1173
1179
|
name: z.ZodString;
|
|
1174
1180
|
}, "strip", z.ZodTypeAny, {
|
|
1175
|
-
name: string;
|
|
1176
1181
|
id: string;
|
|
1177
1182
|
slug: string;
|
|
1178
|
-
}, {
|
|
1179
1183
|
name: string;
|
|
1184
|
+
}, {
|
|
1180
1185
|
id: string;
|
|
1181
1186
|
slug: string;
|
|
1187
|
+
name: string;
|
|
1182
1188
|
}>;
|
|
1183
1189
|
/** Project information */
|
|
1184
1190
|
project: z.ZodObject<{
|
|
@@ -1191,24 +1197,39 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1191
1197
|
/** Project name */
|
|
1192
1198
|
name: z.ZodString;
|
|
1193
1199
|
}, "strip", z.ZodTypeAny, {
|
|
1194
|
-
name: string;
|
|
1195
1200
|
id: string;
|
|
1196
|
-
slug: string;
|
|
1197
1201
|
ref: string;
|
|
1198
|
-
|
|
1202
|
+
slug: string;
|
|
1199
1203
|
name: string;
|
|
1204
|
+
}, {
|
|
1200
1205
|
id: string;
|
|
1201
|
-
slug: string;
|
|
1202
1206
|
ref: string;
|
|
1207
|
+
slug: string;
|
|
1208
|
+
name: string;
|
|
1203
1209
|
}>;
|
|
1204
1210
|
}, "strip", z.ZodTypeAny, {
|
|
1211
|
+
task: {
|
|
1212
|
+
id: string;
|
|
1213
|
+
filePath: string;
|
|
1214
|
+
exportName?: string | undefined;
|
|
1215
|
+
version: string;
|
|
1216
|
+
sdkVersion: string;
|
|
1217
|
+
cliVersion: string;
|
|
1218
|
+
};
|
|
1205
1219
|
run: {
|
|
1220
|
+
id: string;
|
|
1206
1221
|
number: number;
|
|
1207
|
-
status: "
|
|
1222
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
1223
|
+
createdAt: Date;
|
|
1224
|
+
startedAt?: Date | undefined;
|
|
1225
|
+
completedAt?: Date | undefined;
|
|
1226
|
+
isTest: boolean;
|
|
1227
|
+
idempotencyKey?: string | undefined;
|
|
1228
|
+
tags: string[];
|
|
1208
1229
|
error: {
|
|
1209
|
-
message: string;
|
|
1210
1230
|
type: "BUILT_IN_ERROR";
|
|
1211
1231
|
name: string;
|
|
1232
|
+
message: string;
|
|
1212
1233
|
stackTrace: string;
|
|
1213
1234
|
} | {
|
|
1214
1235
|
type: "CUSTOM_ERROR";
|
|
@@ -1217,55 +1238,55 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1217
1238
|
type: "STRING_ERROR";
|
|
1218
1239
|
raw: string;
|
|
1219
1240
|
} | {
|
|
1220
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1221
1241
|
type: "INTERNAL_ERROR";
|
|
1242
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1222
1243
|
message?: string | undefined;
|
|
1223
1244
|
stackTrace?: string | undefined;
|
|
1224
1245
|
};
|
|
1225
|
-
|
|
1226
|
-
tags: string[];
|
|
1227
|
-
isTest: boolean;
|
|
1228
|
-
createdAt: Date;
|
|
1246
|
+
isOutOfMemoryError: boolean;
|
|
1229
1247
|
machine: string;
|
|
1230
1248
|
dashboardUrl: string;
|
|
1231
|
-
isOutOfMemoryError: boolean;
|
|
1232
|
-
startedAt?: Date | undefined;
|
|
1233
|
-
idempotencyKey?: string | undefined;
|
|
1234
|
-
completedAt?: Date | undefined;
|
|
1235
|
-
};
|
|
1236
|
-
task: {
|
|
1237
|
-
id: string;
|
|
1238
|
-
version: string;
|
|
1239
|
-
filePath: string;
|
|
1240
|
-
sdkVersion: string;
|
|
1241
|
-
cliVersion: string;
|
|
1242
|
-
exportName?: string | undefined;
|
|
1243
1249
|
};
|
|
1244
1250
|
environment: {
|
|
1245
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1246
1251
|
id: string;
|
|
1252
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1247
1253
|
slug: string;
|
|
1248
1254
|
branchName?: string | undefined;
|
|
1249
1255
|
};
|
|
1250
1256
|
organization: {
|
|
1251
|
-
name: string;
|
|
1252
1257
|
id: string;
|
|
1253
1258
|
slug: string;
|
|
1259
|
+
name: string;
|
|
1254
1260
|
};
|
|
1255
1261
|
project: {
|
|
1256
|
-
name: string;
|
|
1257
1262
|
id: string;
|
|
1258
|
-
slug: string;
|
|
1259
1263
|
ref: string;
|
|
1264
|
+
slug: string;
|
|
1265
|
+
name: string;
|
|
1260
1266
|
};
|
|
1261
1267
|
}, {
|
|
1268
|
+
task: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
filePath: string;
|
|
1271
|
+
exportName?: string | undefined;
|
|
1272
|
+
version: string;
|
|
1273
|
+
sdkVersion: string;
|
|
1274
|
+
cliVersion: string;
|
|
1275
|
+
};
|
|
1262
1276
|
run: {
|
|
1277
|
+
id: string;
|
|
1263
1278
|
number: number;
|
|
1264
|
-
status: "
|
|
1279
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
1280
|
+
createdAt: Date;
|
|
1281
|
+
startedAt?: Date | undefined;
|
|
1282
|
+
completedAt?: Date | undefined;
|
|
1283
|
+
isTest: boolean;
|
|
1284
|
+
idempotencyKey?: string | undefined;
|
|
1285
|
+
tags: string[];
|
|
1265
1286
|
error: {
|
|
1266
|
-
message: string;
|
|
1267
1287
|
type: "BUILT_IN_ERROR";
|
|
1268
1288
|
name: string;
|
|
1289
|
+
message: string;
|
|
1269
1290
|
stackTrace: string;
|
|
1270
1291
|
} | {
|
|
1271
1292
|
type: "CUSTOM_ERROR";
|
|
@@ -1274,63 +1295,61 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1274
1295
|
type: "STRING_ERROR";
|
|
1275
1296
|
raw: string;
|
|
1276
1297
|
} | {
|
|
1277
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1278
1298
|
type: "INTERNAL_ERROR";
|
|
1299
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1279
1300
|
message?: string | undefined;
|
|
1280
1301
|
stackTrace?: string | undefined;
|
|
1281
1302
|
};
|
|
1282
|
-
|
|
1283
|
-
tags: string[];
|
|
1284
|
-
isTest: boolean;
|
|
1285
|
-
createdAt: Date;
|
|
1303
|
+
isOutOfMemoryError: boolean;
|
|
1286
1304
|
machine: string;
|
|
1287
1305
|
dashboardUrl: string;
|
|
1288
|
-
isOutOfMemoryError: boolean;
|
|
1289
|
-
startedAt?: Date | undefined;
|
|
1290
|
-
idempotencyKey?: string | undefined;
|
|
1291
|
-
completedAt?: Date | undefined;
|
|
1292
|
-
};
|
|
1293
|
-
task: {
|
|
1294
|
-
id: string;
|
|
1295
|
-
version: string;
|
|
1296
|
-
filePath: string;
|
|
1297
|
-
sdkVersion: string;
|
|
1298
|
-
cliVersion: string;
|
|
1299
|
-
exportName?: string | undefined;
|
|
1300
1306
|
};
|
|
1301
1307
|
environment: {
|
|
1302
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1303
1308
|
id: string;
|
|
1309
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1304
1310
|
slug: string;
|
|
1305
1311
|
branchName?: string | undefined;
|
|
1306
1312
|
};
|
|
1307
1313
|
organization: {
|
|
1308
|
-
name: string;
|
|
1309
1314
|
id: string;
|
|
1310
1315
|
slug: string;
|
|
1316
|
+
name: string;
|
|
1311
1317
|
};
|
|
1312
1318
|
project: {
|
|
1313
|
-
name: string;
|
|
1314
1319
|
id: string;
|
|
1315
|
-
slug: string;
|
|
1316
1320
|
ref: string;
|
|
1321
|
+
slug: string;
|
|
1322
|
+
name: string;
|
|
1317
1323
|
};
|
|
1318
1324
|
}>;
|
|
1319
|
-
/** Webhook ID */
|
|
1320
|
-
id: z.ZodString;
|
|
1321
|
-
/** When the webhook was created */
|
|
1322
|
-
created: z.ZodDate;
|
|
1323
|
-
/** Version of the webhook */
|
|
1324
|
-
webhookVersion: z.ZodString;
|
|
1325
1325
|
}, "strip", z.ZodTypeAny, {
|
|
1326
|
+
id: string;
|
|
1327
|
+
created: Date;
|
|
1328
|
+
webhookVersion: string;
|
|
1329
|
+
type: "alert.run.failed";
|
|
1326
1330
|
object: {
|
|
1331
|
+
task: {
|
|
1332
|
+
id: string;
|
|
1333
|
+
filePath: string;
|
|
1334
|
+
exportName?: string | undefined;
|
|
1335
|
+
version: string;
|
|
1336
|
+
sdkVersion: string;
|
|
1337
|
+
cliVersion: string;
|
|
1338
|
+
};
|
|
1327
1339
|
run: {
|
|
1340
|
+
id: string;
|
|
1328
1341
|
number: number;
|
|
1329
|
-
status: "
|
|
1342
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
1343
|
+
createdAt: Date;
|
|
1344
|
+
startedAt?: Date | undefined;
|
|
1345
|
+
completedAt?: Date | undefined;
|
|
1346
|
+
isTest: boolean;
|
|
1347
|
+
idempotencyKey?: string | undefined;
|
|
1348
|
+
tags: string[];
|
|
1330
1349
|
error: {
|
|
1331
|
-
message: string;
|
|
1332
1350
|
type: "BUILT_IN_ERROR";
|
|
1333
1351
|
name: string;
|
|
1352
|
+
message: string;
|
|
1334
1353
|
stackTrace: string;
|
|
1335
1354
|
} | {
|
|
1336
1355
|
type: "CUSTOM_ERROR";
|
|
@@ -1339,61 +1358,61 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1339
1358
|
type: "STRING_ERROR";
|
|
1340
1359
|
raw: string;
|
|
1341
1360
|
} | {
|
|
1342
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1343
1361
|
type: "INTERNAL_ERROR";
|
|
1362
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1344
1363
|
message?: string | undefined;
|
|
1345
1364
|
stackTrace?: string | undefined;
|
|
1346
1365
|
};
|
|
1347
|
-
|
|
1348
|
-
tags: string[];
|
|
1349
|
-
isTest: boolean;
|
|
1350
|
-
createdAt: Date;
|
|
1366
|
+
isOutOfMemoryError: boolean;
|
|
1351
1367
|
machine: string;
|
|
1352
1368
|
dashboardUrl: string;
|
|
1353
|
-
isOutOfMemoryError: boolean;
|
|
1354
|
-
startedAt?: Date | undefined;
|
|
1355
|
-
idempotencyKey?: string | undefined;
|
|
1356
|
-
completedAt?: Date | undefined;
|
|
1357
|
-
};
|
|
1358
|
-
task: {
|
|
1359
|
-
id: string;
|
|
1360
|
-
version: string;
|
|
1361
|
-
filePath: string;
|
|
1362
|
-
sdkVersion: string;
|
|
1363
|
-
cliVersion: string;
|
|
1364
|
-
exportName?: string | undefined;
|
|
1365
1369
|
};
|
|
1366
1370
|
environment: {
|
|
1367
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1368
1371
|
id: string;
|
|
1372
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1369
1373
|
slug: string;
|
|
1370
1374
|
branchName?: string | undefined;
|
|
1371
1375
|
};
|
|
1372
1376
|
organization: {
|
|
1373
|
-
name: string;
|
|
1374
1377
|
id: string;
|
|
1375
1378
|
slug: string;
|
|
1379
|
+
name: string;
|
|
1376
1380
|
};
|
|
1377
1381
|
project: {
|
|
1378
|
-
name: string;
|
|
1379
1382
|
id: string;
|
|
1380
|
-
slug: string;
|
|
1381
1383
|
ref: string;
|
|
1384
|
+
slug: string;
|
|
1385
|
+
name: string;
|
|
1382
1386
|
};
|
|
1383
1387
|
};
|
|
1384
|
-
|
|
1388
|
+
}, {
|
|
1385
1389
|
id: string;
|
|
1386
1390
|
created: Date;
|
|
1387
1391
|
webhookVersion: string;
|
|
1388
|
-
|
|
1392
|
+
type: "alert.run.failed";
|
|
1389
1393
|
object: {
|
|
1394
|
+
task: {
|
|
1395
|
+
id: string;
|
|
1396
|
+
filePath: string;
|
|
1397
|
+
exportName?: string | undefined;
|
|
1398
|
+
version: string;
|
|
1399
|
+
sdkVersion: string;
|
|
1400
|
+
cliVersion: string;
|
|
1401
|
+
};
|
|
1390
1402
|
run: {
|
|
1403
|
+
id: string;
|
|
1391
1404
|
number: number;
|
|
1392
|
-
status: "
|
|
1405
|
+
status: "CANCELED" | "COMPLETED" | "CRASHED" | "DELAYED" | "DEQUEUED" | "EXECUTING" | "EXPIRED" | "FAILED" | "PENDING_VERSION" | "QUEUED" | "SYSTEM_FAILURE" | "TIMED_OUT" | "WAITING";
|
|
1406
|
+
createdAt: Date;
|
|
1407
|
+
startedAt?: Date | undefined;
|
|
1408
|
+
completedAt?: Date | undefined;
|
|
1409
|
+
isTest: boolean;
|
|
1410
|
+
idempotencyKey?: string | undefined;
|
|
1411
|
+
tags: string[];
|
|
1393
1412
|
error: {
|
|
1394
|
-
message: string;
|
|
1395
1413
|
type: "BUILT_IN_ERROR";
|
|
1396
1414
|
name: string;
|
|
1415
|
+
message: string;
|
|
1397
1416
|
stackTrace: string;
|
|
1398
1417
|
} | {
|
|
1399
1418
|
type: "CUSTOM_ERROR";
|
|
@@ -1402,100 +1421,42 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1402
1421
|
type: "STRING_ERROR";
|
|
1403
1422
|
raw: string;
|
|
1404
1423
|
} | {
|
|
1405
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
|
|
1406
1424
|
type: "INTERNAL_ERROR";
|
|
1425
|
+
code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
|
|
1407
1426
|
message?: string | undefined;
|
|
1408
1427
|
stackTrace?: string | undefined;
|
|
1409
1428
|
};
|
|
1410
|
-
|
|
1411
|
-
tags: string[];
|
|
1412
|
-
isTest: boolean;
|
|
1413
|
-
createdAt: Date;
|
|
1429
|
+
isOutOfMemoryError: boolean;
|
|
1414
1430
|
machine: string;
|
|
1415
1431
|
dashboardUrl: string;
|
|
1416
|
-
isOutOfMemoryError: boolean;
|
|
1417
|
-
startedAt?: Date | undefined;
|
|
1418
|
-
idempotencyKey?: string | undefined;
|
|
1419
|
-
completedAt?: Date | undefined;
|
|
1420
|
-
};
|
|
1421
|
-
task: {
|
|
1422
|
-
id: string;
|
|
1423
|
-
version: string;
|
|
1424
|
-
filePath: string;
|
|
1425
|
-
sdkVersion: string;
|
|
1426
|
-
cliVersion: string;
|
|
1427
|
-
exportName?: string | undefined;
|
|
1428
1432
|
};
|
|
1429
1433
|
environment: {
|
|
1430
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1431
1434
|
id: string;
|
|
1435
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1432
1436
|
slug: string;
|
|
1433
1437
|
branchName?: string | undefined;
|
|
1434
1438
|
};
|
|
1435
1439
|
organization: {
|
|
1436
|
-
name: string;
|
|
1437
1440
|
id: string;
|
|
1438
1441
|
slug: string;
|
|
1442
|
+
name: string;
|
|
1439
1443
|
};
|
|
1440
1444
|
project: {
|
|
1441
|
-
name: string;
|
|
1442
1445
|
id: string;
|
|
1443
|
-
slug: string;
|
|
1444
1446
|
ref: string;
|
|
1447
|
+
slug: string;
|
|
1448
|
+
name: string;
|
|
1445
1449
|
};
|
|
1446
1450
|
};
|
|
1447
|
-
type: "alert.run.failed";
|
|
1448
|
-
id: string;
|
|
1449
|
-
created: Date;
|
|
1450
|
-
webhookVersion: string;
|
|
1451
1451
|
}>, z.ZodObject<{
|
|
1452
|
+
/** Webhook ID */
|
|
1453
|
+
id: z.ZodString;
|
|
1454
|
+
/** When the webhook was created */
|
|
1455
|
+
created: z.ZodDate;
|
|
1456
|
+
/** Version of the webhook */
|
|
1457
|
+
webhookVersion: z.ZodString;
|
|
1452
1458
|
type: z.ZodLiteral<"alert.deployment.success">;
|
|
1453
1459
|
object: z.ZodObject<{
|
|
1454
|
-
deployment: z.ZodObject<{
|
|
1455
|
-
/** When the deployment completed */
|
|
1456
|
-
deployedAt: z.ZodDate;
|
|
1457
|
-
/** Deployment ID */
|
|
1458
|
-
id: z.ZodString;
|
|
1459
|
-
/** Deployment status */
|
|
1460
|
-
status: z.ZodString;
|
|
1461
|
-
/** Deployment version */
|
|
1462
|
-
version: z.ZodString;
|
|
1463
|
-
/** Short code identifier */
|
|
1464
|
-
shortCode: z.ZodString;
|
|
1465
|
-
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
status: string;
|
|
1467
|
-
id: string;
|
|
1468
|
-
version: string;
|
|
1469
|
-
shortCode: string;
|
|
1470
|
-
deployedAt: Date;
|
|
1471
|
-
}, {
|
|
1472
|
-
status: string;
|
|
1473
|
-
id: string;
|
|
1474
|
-
version: string;
|
|
1475
|
-
shortCode: string;
|
|
1476
|
-
deployedAt: Date;
|
|
1477
|
-
}>;
|
|
1478
|
-
/** Deployed tasks */
|
|
1479
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
1480
|
-
/** Task ID */
|
|
1481
|
-
id: z.ZodString;
|
|
1482
|
-
/** File path where the task is defined */
|
|
1483
|
-
filePath: z.ZodString;
|
|
1484
|
-
/** Name of the exported task function */
|
|
1485
|
-
exportName: z.ZodOptional<z.ZodString>;
|
|
1486
|
-
/** Source of the trigger */
|
|
1487
|
-
triggerSource: z.ZodString;
|
|
1488
|
-
}, "strip", z.ZodTypeAny, {
|
|
1489
|
-
id: string;
|
|
1490
|
-
filePath: string;
|
|
1491
|
-
triggerSource: string;
|
|
1492
|
-
exportName?: string | undefined;
|
|
1493
|
-
}, {
|
|
1494
|
-
id: string;
|
|
1495
|
-
filePath: string;
|
|
1496
|
-
triggerSource: string;
|
|
1497
|
-
exportName?: string | undefined;
|
|
1498
|
-
}>, "many">;
|
|
1499
1460
|
/** Environment information */
|
|
1500
1461
|
environment: z.ZodObject<{
|
|
1501
1462
|
id: z.ZodString;
|
|
@@ -1504,13 +1465,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1504
1465
|
/** Environment branch name */
|
|
1505
1466
|
branchName: z.ZodOptional<z.ZodString>;
|
|
1506
1467
|
}, "strip", z.ZodTypeAny, {
|
|
1507
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1508
1468
|
id: string;
|
|
1469
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1509
1470
|
slug: string;
|
|
1510
1471
|
branchName?: string | undefined;
|
|
1511
1472
|
}, {
|
|
1512
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1513
1473
|
id: string;
|
|
1474
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1514
1475
|
slug: string;
|
|
1515
1476
|
branchName?: string | undefined;
|
|
1516
1477
|
}>;
|
|
@@ -1520,13 +1481,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1520
1481
|
slug: z.ZodString;
|
|
1521
1482
|
name: z.ZodString;
|
|
1522
1483
|
}, "strip", z.ZodTypeAny, {
|
|
1523
|
-
name: string;
|
|
1524
1484
|
id: string;
|
|
1525
1485
|
slug: string;
|
|
1526
|
-
}, {
|
|
1527
1486
|
name: string;
|
|
1487
|
+
}, {
|
|
1528
1488
|
id: string;
|
|
1529
1489
|
slug: string;
|
|
1490
|
+
name: string;
|
|
1530
1491
|
}>;
|
|
1531
1492
|
/** Project information */
|
|
1532
1493
|
project: z.ZodObject<{
|
|
@@ -1535,15 +1496,15 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1535
1496
|
slug: z.ZodString;
|
|
1536
1497
|
name: z.ZodString;
|
|
1537
1498
|
}, "strip", z.ZodTypeAny, {
|
|
1538
|
-
name: string;
|
|
1539
1499
|
id: string;
|
|
1540
|
-
slug: string;
|
|
1541
1500
|
ref: string;
|
|
1542
|
-
|
|
1501
|
+
slug: string;
|
|
1543
1502
|
name: string;
|
|
1503
|
+
}, {
|
|
1544
1504
|
id: string;
|
|
1545
|
-
slug: string;
|
|
1546
1505
|
ref: string;
|
|
1506
|
+
slug: string;
|
|
1507
|
+
name: string;
|
|
1547
1508
|
}>;
|
|
1548
1509
|
/** Git metadata for the deployment source code */
|
|
1549
1510
|
git: z.ZodOptional<z.ZodObject<{
|
|
@@ -1557,25 +1518,25 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1557
1518
|
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
1558
1519
|
provider: z.ZodOptional<z.ZodString>;
|
|
1559
1520
|
}, "strip", z.ZodTypeAny, {
|
|
1560
|
-
commitMessage: string;
|
|
1561
|
-
commitSha: string;
|
|
1562
1521
|
branch: string;
|
|
1522
|
+
commitSha: string;
|
|
1523
|
+
commitMessage: string;
|
|
1563
1524
|
commitUrl: string;
|
|
1564
1525
|
branchUrl: string;
|
|
1565
|
-
provider?: string | undefined;
|
|
1566
1526
|
pullRequestNumber?: number | undefined;
|
|
1567
1527
|
pullRequestTitle?: string | undefined;
|
|
1568
1528
|
pullRequestUrl?: string | undefined;
|
|
1529
|
+
provider?: string | undefined;
|
|
1569
1530
|
}, {
|
|
1570
|
-
commitMessage: string;
|
|
1571
|
-
commitSha: string;
|
|
1572
1531
|
branch: string;
|
|
1532
|
+
commitSha: string;
|
|
1533
|
+
commitMessage: string;
|
|
1573
1534
|
commitUrl: string;
|
|
1574
1535
|
branchUrl: string;
|
|
1575
|
-
provider?: string | undefined;
|
|
1576
1536
|
pullRequestNumber?: number | undefined;
|
|
1577
1537
|
pullRequestTitle?: string | undefined;
|
|
1578
1538
|
pullRequestUrl?: string | undefined;
|
|
1539
|
+
provider?: string | undefined;
|
|
1579
1540
|
}>>;
|
|
1580
1541
|
/** Vercel integration data */
|
|
1581
1542
|
vercel: z.ZodOptional<z.ZodObject<{
|
|
@@ -1585,253 +1546,253 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1585
1546
|
}, {
|
|
1586
1547
|
deploymentUrl: string;
|
|
1587
1548
|
}>>;
|
|
1549
|
+
deployment: z.ZodObject<{
|
|
1550
|
+
/** Deployment ID */
|
|
1551
|
+
id: z.ZodString;
|
|
1552
|
+
/** Deployment status */
|
|
1553
|
+
status: z.ZodString;
|
|
1554
|
+
/** Deployment version */
|
|
1555
|
+
version: z.ZodString;
|
|
1556
|
+
/** Short code identifier */
|
|
1557
|
+
shortCode: z.ZodString;
|
|
1558
|
+
/** When the deployment completed */
|
|
1559
|
+
deployedAt: z.ZodDate;
|
|
1560
|
+
}, "strip", z.ZodTypeAny, {
|
|
1561
|
+
id: string;
|
|
1562
|
+
status: string;
|
|
1563
|
+
version: string;
|
|
1564
|
+
shortCode: string;
|
|
1565
|
+
deployedAt: Date;
|
|
1566
|
+
}, {
|
|
1567
|
+
id: string;
|
|
1568
|
+
status: string;
|
|
1569
|
+
version: string;
|
|
1570
|
+
shortCode: string;
|
|
1571
|
+
deployedAt: Date;
|
|
1572
|
+
}>;
|
|
1573
|
+
/** Deployed tasks */
|
|
1574
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1575
|
+
/** Task ID */
|
|
1576
|
+
id: z.ZodString;
|
|
1577
|
+
/** File path where the task is defined */
|
|
1578
|
+
filePath: z.ZodString;
|
|
1579
|
+
/** Name of the exported task function */
|
|
1580
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
/** Source of the trigger */
|
|
1582
|
+
triggerSource: z.ZodString;
|
|
1583
|
+
}, "strip", z.ZodTypeAny, {
|
|
1584
|
+
id: string;
|
|
1585
|
+
filePath: string;
|
|
1586
|
+
exportName?: string | undefined;
|
|
1587
|
+
triggerSource: string;
|
|
1588
|
+
}, {
|
|
1589
|
+
id: string;
|
|
1590
|
+
filePath: string;
|
|
1591
|
+
exportName?: string | undefined;
|
|
1592
|
+
triggerSource: string;
|
|
1593
|
+
}>, "many">;
|
|
1588
1594
|
}, "strip", z.ZodTypeAny, {
|
|
1589
1595
|
environment: {
|
|
1590
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1591
1596
|
id: string;
|
|
1597
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1592
1598
|
slug: string;
|
|
1593
1599
|
branchName?: string | undefined;
|
|
1594
1600
|
};
|
|
1595
1601
|
organization: {
|
|
1596
|
-
name: string;
|
|
1597
1602
|
id: string;
|
|
1598
1603
|
slug: string;
|
|
1604
|
+
name: string;
|
|
1599
1605
|
};
|
|
1600
1606
|
project: {
|
|
1601
|
-
name: string;
|
|
1602
1607
|
id: string;
|
|
1603
|
-
slug: string;
|
|
1604
1608
|
ref: string;
|
|
1609
|
+
slug: string;
|
|
1610
|
+
name: string;
|
|
1605
1611
|
};
|
|
1606
|
-
deployment: {
|
|
1607
|
-
status: string;
|
|
1608
|
-
id: string;
|
|
1609
|
-
version: string;
|
|
1610
|
-
shortCode: string;
|
|
1611
|
-
deployedAt: Date;
|
|
1612
|
-
};
|
|
1613
|
-
tasks: {
|
|
1614
|
-
id: string;
|
|
1615
|
-
filePath: string;
|
|
1616
|
-
triggerSource: string;
|
|
1617
|
-
exportName?: string | undefined;
|
|
1618
|
-
}[];
|
|
1619
1612
|
git?: {
|
|
1620
|
-
commitMessage: string;
|
|
1621
|
-
commitSha: string;
|
|
1622
1613
|
branch: string;
|
|
1614
|
+
commitSha: string;
|
|
1615
|
+
commitMessage: string;
|
|
1623
1616
|
commitUrl: string;
|
|
1624
1617
|
branchUrl: string;
|
|
1625
|
-
provider?: string | undefined;
|
|
1626
1618
|
pullRequestNumber?: number | undefined;
|
|
1627
1619
|
pullRequestTitle?: string | undefined;
|
|
1628
1620
|
pullRequestUrl?: string | undefined;
|
|
1621
|
+
provider?: string | undefined;
|
|
1629
1622
|
} | undefined;
|
|
1630
1623
|
vercel?: {
|
|
1631
1624
|
deploymentUrl: string;
|
|
1632
1625
|
} | undefined;
|
|
1626
|
+
deployment: {
|
|
1627
|
+
id: string;
|
|
1628
|
+
status: string;
|
|
1629
|
+
version: string;
|
|
1630
|
+
shortCode: string;
|
|
1631
|
+
deployedAt: Date;
|
|
1632
|
+
};
|
|
1633
|
+
tasks: {
|
|
1634
|
+
id: string;
|
|
1635
|
+
filePath: string;
|
|
1636
|
+
exportName?: string | undefined;
|
|
1637
|
+
triggerSource: string;
|
|
1638
|
+
}[];
|
|
1633
1639
|
}, {
|
|
1634
1640
|
environment: {
|
|
1635
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1636
1641
|
id: string;
|
|
1642
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1637
1643
|
slug: string;
|
|
1638
1644
|
branchName?: string | undefined;
|
|
1639
1645
|
};
|
|
1640
1646
|
organization: {
|
|
1641
|
-
name: string;
|
|
1642
1647
|
id: string;
|
|
1643
1648
|
slug: string;
|
|
1649
|
+
name: string;
|
|
1644
1650
|
};
|
|
1645
1651
|
project: {
|
|
1646
|
-
name: string;
|
|
1647
1652
|
id: string;
|
|
1648
|
-
slug: string;
|
|
1649
1653
|
ref: string;
|
|
1654
|
+
slug: string;
|
|
1655
|
+
name: string;
|
|
1650
1656
|
};
|
|
1651
|
-
deployment: {
|
|
1652
|
-
status: string;
|
|
1653
|
-
id: string;
|
|
1654
|
-
version: string;
|
|
1655
|
-
shortCode: string;
|
|
1656
|
-
deployedAt: Date;
|
|
1657
|
-
};
|
|
1658
|
-
tasks: {
|
|
1659
|
-
id: string;
|
|
1660
|
-
filePath: string;
|
|
1661
|
-
triggerSource: string;
|
|
1662
|
-
exportName?: string | undefined;
|
|
1663
|
-
}[];
|
|
1664
1657
|
git?: {
|
|
1665
|
-
commitMessage: string;
|
|
1666
|
-
commitSha: string;
|
|
1667
1658
|
branch: string;
|
|
1659
|
+
commitSha: string;
|
|
1660
|
+
commitMessage: string;
|
|
1668
1661
|
commitUrl: string;
|
|
1669
1662
|
branchUrl: string;
|
|
1670
|
-
provider?: string | undefined;
|
|
1671
1663
|
pullRequestNumber?: number | undefined;
|
|
1672
1664
|
pullRequestTitle?: string | undefined;
|
|
1673
1665
|
pullRequestUrl?: string | undefined;
|
|
1666
|
+
provider?: string | undefined;
|
|
1674
1667
|
} | undefined;
|
|
1675
1668
|
vercel?: {
|
|
1676
1669
|
deploymentUrl: string;
|
|
1677
1670
|
} | undefined;
|
|
1671
|
+
deployment: {
|
|
1672
|
+
id: string;
|
|
1673
|
+
status: string;
|
|
1674
|
+
version: string;
|
|
1675
|
+
shortCode: string;
|
|
1676
|
+
deployedAt: Date;
|
|
1677
|
+
};
|
|
1678
|
+
tasks: {
|
|
1679
|
+
id: string;
|
|
1680
|
+
filePath: string;
|
|
1681
|
+
exportName?: string | undefined;
|
|
1682
|
+
triggerSource: string;
|
|
1683
|
+
}[];
|
|
1678
1684
|
}>;
|
|
1679
|
-
/** Webhook ID */
|
|
1680
|
-
id: z.ZodString;
|
|
1681
|
-
/** When the webhook was created */
|
|
1682
|
-
created: z.ZodDate;
|
|
1683
|
-
/** Version of the webhook */
|
|
1684
|
-
webhookVersion: z.ZodString;
|
|
1685
1685
|
}, "strip", z.ZodTypeAny, {
|
|
1686
|
+
id: string;
|
|
1687
|
+
created: Date;
|
|
1688
|
+
webhookVersion: string;
|
|
1689
|
+
type: "alert.deployment.success";
|
|
1686
1690
|
object: {
|
|
1687
1691
|
environment: {
|
|
1688
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1689
1692
|
id: string;
|
|
1693
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1690
1694
|
slug: string;
|
|
1691
1695
|
branchName?: string | undefined;
|
|
1692
1696
|
};
|
|
1693
1697
|
organization: {
|
|
1694
|
-
name: string;
|
|
1695
1698
|
id: string;
|
|
1696
1699
|
slug: string;
|
|
1700
|
+
name: string;
|
|
1697
1701
|
};
|
|
1698
1702
|
project: {
|
|
1699
|
-
name: string;
|
|
1700
1703
|
id: string;
|
|
1701
|
-
slug: string;
|
|
1702
1704
|
ref: string;
|
|
1705
|
+
slug: string;
|
|
1706
|
+
name: string;
|
|
1703
1707
|
};
|
|
1704
|
-
deployment: {
|
|
1705
|
-
status: string;
|
|
1706
|
-
id: string;
|
|
1707
|
-
version: string;
|
|
1708
|
-
shortCode: string;
|
|
1709
|
-
deployedAt: Date;
|
|
1710
|
-
};
|
|
1711
|
-
tasks: {
|
|
1712
|
-
id: string;
|
|
1713
|
-
filePath: string;
|
|
1714
|
-
triggerSource: string;
|
|
1715
|
-
exportName?: string | undefined;
|
|
1716
|
-
}[];
|
|
1717
1708
|
git?: {
|
|
1718
|
-
commitMessage: string;
|
|
1719
|
-
commitSha: string;
|
|
1720
1709
|
branch: string;
|
|
1710
|
+
commitSha: string;
|
|
1711
|
+
commitMessage: string;
|
|
1721
1712
|
commitUrl: string;
|
|
1722
1713
|
branchUrl: string;
|
|
1723
|
-
provider?: string | undefined;
|
|
1724
1714
|
pullRequestNumber?: number | undefined;
|
|
1725
1715
|
pullRequestTitle?: string | undefined;
|
|
1726
1716
|
pullRequestUrl?: string | undefined;
|
|
1717
|
+
provider?: string | undefined;
|
|
1727
1718
|
} | undefined;
|
|
1728
1719
|
vercel?: {
|
|
1729
1720
|
deploymentUrl: string;
|
|
1730
1721
|
} | undefined;
|
|
1722
|
+
deployment: {
|
|
1723
|
+
id: string;
|
|
1724
|
+
status: string;
|
|
1725
|
+
version: string;
|
|
1726
|
+
shortCode: string;
|
|
1727
|
+
deployedAt: Date;
|
|
1728
|
+
};
|
|
1729
|
+
tasks: {
|
|
1730
|
+
id: string;
|
|
1731
|
+
filePath: string;
|
|
1732
|
+
exportName?: string | undefined;
|
|
1733
|
+
triggerSource: string;
|
|
1734
|
+
}[];
|
|
1731
1735
|
};
|
|
1732
|
-
|
|
1736
|
+
}, {
|
|
1733
1737
|
id: string;
|
|
1734
1738
|
created: Date;
|
|
1735
1739
|
webhookVersion: string;
|
|
1736
|
-
|
|
1740
|
+
type: "alert.deployment.success";
|
|
1737
1741
|
object: {
|
|
1738
1742
|
environment: {
|
|
1739
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1740
1743
|
id: string;
|
|
1744
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1741
1745
|
slug: string;
|
|
1742
1746
|
branchName?: string | undefined;
|
|
1743
1747
|
};
|
|
1744
1748
|
organization: {
|
|
1745
|
-
name: string;
|
|
1746
1749
|
id: string;
|
|
1747
1750
|
slug: string;
|
|
1751
|
+
name: string;
|
|
1748
1752
|
};
|
|
1749
1753
|
project: {
|
|
1750
|
-
name: string;
|
|
1751
1754
|
id: string;
|
|
1752
|
-
slug: string;
|
|
1753
1755
|
ref: string;
|
|
1756
|
+
slug: string;
|
|
1757
|
+
name: string;
|
|
1754
1758
|
};
|
|
1755
|
-
deployment: {
|
|
1756
|
-
status: string;
|
|
1757
|
-
id: string;
|
|
1758
|
-
version: string;
|
|
1759
|
-
shortCode: string;
|
|
1760
|
-
deployedAt: Date;
|
|
1761
|
-
};
|
|
1762
|
-
tasks: {
|
|
1763
|
-
id: string;
|
|
1764
|
-
filePath: string;
|
|
1765
|
-
triggerSource: string;
|
|
1766
|
-
exportName?: string | undefined;
|
|
1767
|
-
}[];
|
|
1768
1759
|
git?: {
|
|
1769
|
-
commitMessage: string;
|
|
1770
|
-
commitSha: string;
|
|
1771
1760
|
branch: string;
|
|
1761
|
+
commitSha: string;
|
|
1762
|
+
commitMessage: string;
|
|
1772
1763
|
commitUrl: string;
|
|
1773
1764
|
branchUrl: string;
|
|
1774
|
-
provider?: string | undefined;
|
|
1775
1765
|
pullRequestNumber?: number | undefined;
|
|
1776
1766
|
pullRequestTitle?: string | undefined;
|
|
1777
1767
|
pullRequestUrl?: string | undefined;
|
|
1768
|
+
provider?: string | undefined;
|
|
1778
1769
|
} | undefined;
|
|
1779
1770
|
vercel?: {
|
|
1780
1771
|
deploymentUrl: string;
|
|
1781
1772
|
} | undefined;
|
|
1782
|
-
|
|
1783
|
-
type: "alert.deployment.success";
|
|
1784
|
-
id: string;
|
|
1785
|
-
created: Date;
|
|
1786
|
-
webhookVersion: string;
|
|
1787
|
-
}>, z.ZodObject<{
|
|
1788
|
-
type: z.ZodLiteral<"alert.deployment.failed">;
|
|
1789
|
-
object: z.ZodObject<{
|
|
1790
|
-
deployment: z.ZodObject<{
|
|
1791
|
-
/** When the deployment failed */
|
|
1792
|
-
failedAt: z.ZodDate;
|
|
1793
|
-
/** Deployment ID */
|
|
1794
|
-
id: z.ZodString;
|
|
1795
|
-
/** Deployment status */
|
|
1796
|
-
status: z.ZodString;
|
|
1797
|
-
/** Deployment version */
|
|
1798
|
-
version: z.ZodString;
|
|
1799
|
-
/** Short code identifier */
|
|
1800
|
-
shortCode: z.ZodString;
|
|
1801
|
-
}, "strip", z.ZodTypeAny, {
|
|
1802
|
-
status: string;
|
|
1773
|
+
deployment: {
|
|
1803
1774
|
id: string;
|
|
1804
|
-
version: string;
|
|
1805
|
-
shortCode: string;
|
|
1806
|
-
failedAt: Date;
|
|
1807
|
-
}, {
|
|
1808
1775
|
status: string;
|
|
1809
|
-
id: string;
|
|
1810
1776
|
version: string;
|
|
1811
1777
|
shortCode: string;
|
|
1812
|
-
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
message: string;
|
|
1831
|
-
name: string;
|
|
1832
|
-
stack?: string | undefined;
|
|
1833
|
-
stderr?: string | undefined;
|
|
1834
|
-
}>;
|
|
1778
|
+
deployedAt: Date;
|
|
1779
|
+
};
|
|
1780
|
+
tasks: {
|
|
1781
|
+
id: string;
|
|
1782
|
+
filePath: string;
|
|
1783
|
+
exportName?: string | undefined;
|
|
1784
|
+
triggerSource: string;
|
|
1785
|
+
}[];
|
|
1786
|
+
};
|
|
1787
|
+
}>, z.ZodObject<{
|
|
1788
|
+
/** Webhook ID */
|
|
1789
|
+
id: z.ZodString;
|
|
1790
|
+
/** When the webhook was created */
|
|
1791
|
+
created: z.ZodDate;
|
|
1792
|
+
/** Version of the webhook */
|
|
1793
|
+
webhookVersion: z.ZodString;
|
|
1794
|
+
type: z.ZodLiteral<"alert.deployment.failed">;
|
|
1795
|
+
object: z.ZodObject<{
|
|
1835
1796
|
/** Environment information */
|
|
1836
1797
|
environment: z.ZodObject<{
|
|
1837
1798
|
id: z.ZodString;
|
|
@@ -1840,13 +1801,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1840
1801
|
/** Environment branch name */
|
|
1841
1802
|
branchName: z.ZodOptional<z.ZodString>;
|
|
1842
1803
|
}, "strip", z.ZodTypeAny, {
|
|
1843
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1844
1804
|
id: string;
|
|
1805
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1845
1806
|
slug: string;
|
|
1846
1807
|
branchName?: string | undefined;
|
|
1847
1808
|
}, {
|
|
1848
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1849
1809
|
id: string;
|
|
1810
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1850
1811
|
slug: string;
|
|
1851
1812
|
branchName?: string | undefined;
|
|
1852
1813
|
}>;
|
|
@@ -1856,13 +1817,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1856
1817
|
slug: z.ZodString;
|
|
1857
1818
|
name: z.ZodString;
|
|
1858
1819
|
}, "strip", z.ZodTypeAny, {
|
|
1859
|
-
name: string;
|
|
1860
1820
|
id: string;
|
|
1861
1821
|
slug: string;
|
|
1862
|
-
}, {
|
|
1863
1822
|
name: string;
|
|
1823
|
+
}, {
|
|
1864
1824
|
id: string;
|
|
1865
1825
|
slug: string;
|
|
1826
|
+
name: string;
|
|
1866
1827
|
}>;
|
|
1867
1828
|
/** Project information */
|
|
1868
1829
|
project: z.ZodObject<{
|
|
@@ -1871,15 +1832,15 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1871
1832
|
slug: z.ZodString;
|
|
1872
1833
|
name: z.ZodString;
|
|
1873
1834
|
}, "strip", z.ZodTypeAny, {
|
|
1874
|
-
name: string;
|
|
1875
1835
|
id: string;
|
|
1876
|
-
slug: string;
|
|
1877
1836
|
ref: string;
|
|
1878
|
-
|
|
1837
|
+
slug: string;
|
|
1879
1838
|
name: string;
|
|
1839
|
+
}, {
|
|
1880
1840
|
id: string;
|
|
1881
|
-
slug: string;
|
|
1882
1841
|
ref: string;
|
|
1842
|
+
slug: string;
|
|
1843
|
+
name: string;
|
|
1883
1844
|
}>;
|
|
1884
1845
|
/** Git metadata for the deployment source code */
|
|
1885
1846
|
git: z.ZodOptional<z.ZodObject<{
|
|
@@ -1893,25 +1854,25 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1893
1854
|
pullRequestUrl: z.ZodOptional<z.ZodString>;
|
|
1894
1855
|
provider: z.ZodOptional<z.ZodString>;
|
|
1895
1856
|
}, "strip", z.ZodTypeAny, {
|
|
1896
|
-
commitMessage: string;
|
|
1897
|
-
commitSha: string;
|
|
1898
1857
|
branch: string;
|
|
1858
|
+
commitSha: string;
|
|
1859
|
+
commitMessage: string;
|
|
1899
1860
|
commitUrl: string;
|
|
1900
1861
|
branchUrl: string;
|
|
1901
|
-
provider?: string | undefined;
|
|
1902
1862
|
pullRequestNumber?: number | undefined;
|
|
1903
1863
|
pullRequestTitle?: string | undefined;
|
|
1904
1864
|
pullRequestUrl?: string | undefined;
|
|
1865
|
+
provider?: string | undefined;
|
|
1905
1866
|
}, {
|
|
1906
|
-
commitMessage: string;
|
|
1907
|
-
commitSha: string;
|
|
1908
1867
|
branch: string;
|
|
1868
|
+
commitSha: string;
|
|
1869
|
+
commitMessage: string;
|
|
1909
1870
|
commitUrl: string;
|
|
1910
1871
|
branchUrl: string;
|
|
1911
|
-
provider?: string | undefined;
|
|
1912
1872
|
pullRequestNumber?: number | undefined;
|
|
1913
1873
|
pullRequestTitle?: string | undefined;
|
|
1914
1874
|
pullRequestUrl?: string | undefined;
|
|
1875
|
+
provider?: string | undefined;
|
|
1915
1876
|
}>>;
|
|
1916
1877
|
/** Vercel integration data */
|
|
1917
1878
|
vercel: z.ZodOptional<z.ZodObject<{
|
|
@@ -1921,206 +1882,251 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1921
1882
|
}, {
|
|
1922
1883
|
deploymentUrl: string;
|
|
1923
1884
|
}>>;
|
|
1924
|
-
|
|
1925
|
-
|
|
1885
|
+
deployment: z.ZodObject<{
|
|
1886
|
+
/** Deployment ID */
|
|
1887
|
+
id: z.ZodString;
|
|
1888
|
+
/** Deployment status */
|
|
1889
|
+
status: z.ZodString;
|
|
1890
|
+
/** Deployment version */
|
|
1891
|
+
version: z.ZodString;
|
|
1892
|
+
/** Short code identifier */
|
|
1893
|
+
shortCode: z.ZodString;
|
|
1894
|
+
/** When the deployment failed */
|
|
1895
|
+
failedAt: z.ZodDate;
|
|
1896
|
+
}, "strip", z.ZodTypeAny, {
|
|
1897
|
+
id: string;
|
|
1898
|
+
status: string;
|
|
1899
|
+
version: string;
|
|
1900
|
+
shortCode: string;
|
|
1901
|
+
failedAt: Date;
|
|
1902
|
+
}, {
|
|
1903
|
+
id: string;
|
|
1904
|
+
status: string;
|
|
1905
|
+
version: string;
|
|
1906
|
+
shortCode: string;
|
|
1907
|
+
failedAt: Date;
|
|
1908
|
+
}>;
|
|
1909
|
+
/** Error information */
|
|
1910
|
+
error: z.ZodObject<{
|
|
1911
|
+
/** Error name */
|
|
1912
|
+
name: z.ZodString;
|
|
1913
|
+
/** Error message */
|
|
1914
|
+
message: z.ZodString;
|
|
1915
|
+
/** Error stack trace */
|
|
1916
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
/** Standard error output */
|
|
1918
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
1919
|
+
}, "strip", z.ZodTypeAny, {
|
|
1920
|
+
name: string;
|
|
1926
1921
|
message: string;
|
|
1922
|
+
stack?: string | undefined;
|
|
1923
|
+
stderr?: string | undefined;
|
|
1924
|
+
}, {
|
|
1927
1925
|
name: string;
|
|
1926
|
+
message: string;
|
|
1928
1927
|
stack?: string | undefined;
|
|
1929
1928
|
stderr?: string | undefined;
|
|
1930
|
-
}
|
|
1929
|
+
}>;
|
|
1930
|
+
}, "strip", z.ZodTypeAny, {
|
|
1931
1931
|
environment: {
|
|
1932
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1933
1932
|
id: string;
|
|
1933
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1934
1934
|
slug: string;
|
|
1935
1935
|
branchName?: string | undefined;
|
|
1936
1936
|
};
|
|
1937
1937
|
organization: {
|
|
1938
|
-
name: string;
|
|
1939
1938
|
id: string;
|
|
1940
1939
|
slug: string;
|
|
1940
|
+
name: string;
|
|
1941
1941
|
};
|
|
1942
1942
|
project: {
|
|
1943
|
-
name: string;
|
|
1944
1943
|
id: string;
|
|
1945
|
-
slug: string;
|
|
1946
1944
|
ref: string;
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
status: string;
|
|
1950
|
-
id: string;
|
|
1951
|
-
version: string;
|
|
1952
|
-
shortCode: string;
|
|
1953
|
-
failedAt: Date;
|
|
1945
|
+
slug: string;
|
|
1946
|
+
name: string;
|
|
1954
1947
|
};
|
|
1955
1948
|
git?: {
|
|
1956
|
-
commitMessage: string;
|
|
1957
|
-
commitSha: string;
|
|
1958
1949
|
branch: string;
|
|
1950
|
+
commitSha: string;
|
|
1951
|
+
commitMessage: string;
|
|
1959
1952
|
commitUrl: string;
|
|
1960
1953
|
branchUrl: string;
|
|
1961
|
-
provider?: string | undefined;
|
|
1962
1954
|
pullRequestNumber?: number | undefined;
|
|
1963
1955
|
pullRequestTitle?: string | undefined;
|
|
1964
1956
|
pullRequestUrl?: string | undefined;
|
|
1957
|
+
provider?: string | undefined;
|
|
1965
1958
|
} | undefined;
|
|
1966
1959
|
vercel?: {
|
|
1967
1960
|
deploymentUrl: string;
|
|
1968
1961
|
} | undefined;
|
|
1969
|
-
|
|
1962
|
+
deployment: {
|
|
1963
|
+
id: string;
|
|
1964
|
+
status: string;
|
|
1965
|
+
version: string;
|
|
1966
|
+
shortCode: string;
|
|
1967
|
+
failedAt: Date;
|
|
1968
|
+
};
|
|
1970
1969
|
error: {
|
|
1971
|
-
message: string;
|
|
1972
1970
|
name: string;
|
|
1971
|
+
message: string;
|
|
1973
1972
|
stack?: string | undefined;
|
|
1974
1973
|
stderr?: string | undefined;
|
|
1975
1974
|
};
|
|
1975
|
+
}, {
|
|
1976
1976
|
environment: {
|
|
1977
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1978
1977
|
id: string;
|
|
1978
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
1979
1979
|
slug: string;
|
|
1980
1980
|
branchName?: string | undefined;
|
|
1981
1981
|
};
|
|
1982
1982
|
organization: {
|
|
1983
|
-
name: string;
|
|
1984
1983
|
id: string;
|
|
1985
1984
|
slug: string;
|
|
1985
|
+
name: string;
|
|
1986
1986
|
};
|
|
1987
1987
|
project: {
|
|
1988
|
-
name: string;
|
|
1989
1988
|
id: string;
|
|
1990
|
-
slug: string;
|
|
1991
1989
|
ref: string;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
status: string;
|
|
1995
|
-
id: string;
|
|
1996
|
-
version: string;
|
|
1997
|
-
shortCode: string;
|
|
1998
|
-
failedAt: Date;
|
|
1990
|
+
slug: string;
|
|
1991
|
+
name: string;
|
|
1999
1992
|
};
|
|
2000
1993
|
git?: {
|
|
2001
|
-
commitMessage: string;
|
|
2002
|
-
commitSha: string;
|
|
2003
1994
|
branch: string;
|
|
1995
|
+
commitSha: string;
|
|
1996
|
+
commitMessage: string;
|
|
2004
1997
|
commitUrl: string;
|
|
2005
1998
|
branchUrl: string;
|
|
2006
|
-
provider?: string | undefined;
|
|
2007
1999
|
pullRequestNumber?: number | undefined;
|
|
2008
2000
|
pullRequestTitle?: string | undefined;
|
|
2009
2001
|
pullRequestUrl?: string | undefined;
|
|
2002
|
+
provider?: string | undefined;
|
|
2010
2003
|
} | undefined;
|
|
2011
2004
|
vercel?: {
|
|
2012
2005
|
deploymentUrl: string;
|
|
2013
2006
|
} | undefined;
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
}, "strip", z.ZodTypeAny, {
|
|
2022
|
-
object: {
|
|
2007
|
+
deployment: {
|
|
2008
|
+
id: string;
|
|
2009
|
+
status: string;
|
|
2010
|
+
version: string;
|
|
2011
|
+
shortCode: string;
|
|
2012
|
+
failedAt: Date;
|
|
2013
|
+
};
|
|
2023
2014
|
error: {
|
|
2024
|
-
message: string;
|
|
2025
2015
|
name: string;
|
|
2016
|
+
message: string;
|
|
2026
2017
|
stack?: string | undefined;
|
|
2027
2018
|
stderr?: string | undefined;
|
|
2028
2019
|
};
|
|
2020
|
+
}>;
|
|
2021
|
+
}, "strip", z.ZodTypeAny, {
|
|
2022
|
+
id: string;
|
|
2023
|
+
created: Date;
|
|
2024
|
+
webhookVersion: string;
|
|
2025
|
+
type: "alert.deployment.failed";
|
|
2026
|
+
object: {
|
|
2029
2027
|
environment: {
|
|
2030
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
2031
2028
|
id: string;
|
|
2029
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
2032
2030
|
slug: string;
|
|
2033
2031
|
branchName?: string | undefined;
|
|
2034
2032
|
};
|
|
2035
2033
|
organization: {
|
|
2036
|
-
name: string;
|
|
2037
2034
|
id: string;
|
|
2038
2035
|
slug: string;
|
|
2036
|
+
name: string;
|
|
2039
2037
|
};
|
|
2040
2038
|
project: {
|
|
2041
|
-
name: string;
|
|
2042
2039
|
id: string;
|
|
2043
|
-
slug: string;
|
|
2044
2040
|
ref: string;
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
status: string;
|
|
2048
|
-
id: string;
|
|
2049
|
-
version: string;
|
|
2050
|
-
shortCode: string;
|
|
2051
|
-
failedAt: Date;
|
|
2041
|
+
slug: string;
|
|
2042
|
+
name: string;
|
|
2052
2043
|
};
|
|
2053
2044
|
git?: {
|
|
2054
|
-
commitMessage: string;
|
|
2055
|
-
commitSha: string;
|
|
2056
2045
|
branch: string;
|
|
2046
|
+
commitSha: string;
|
|
2047
|
+
commitMessage: string;
|
|
2057
2048
|
commitUrl: string;
|
|
2058
2049
|
branchUrl: string;
|
|
2059
|
-
provider?: string | undefined;
|
|
2060
2050
|
pullRequestNumber?: number | undefined;
|
|
2061
2051
|
pullRequestTitle?: string | undefined;
|
|
2062
2052
|
pullRequestUrl?: string | undefined;
|
|
2053
|
+
provider?: string | undefined;
|
|
2063
2054
|
} | undefined;
|
|
2064
2055
|
vercel?: {
|
|
2065
2056
|
deploymentUrl: string;
|
|
2066
2057
|
} | undefined;
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2058
|
+
deployment: {
|
|
2059
|
+
id: string;
|
|
2060
|
+
status: string;
|
|
2061
|
+
version: string;
|
|
2062
|
+
shortCode: string;
|
|
2063
|
+
failedAt: Date;
|
|
2064
|
+
};
|
|
2074
2065
|
error: {
|
|
2075
|
-
message: string;
|
|
2076
2066
|
name: string;
|
|
2067
|
+
message: string;
|
|
2077
2068
|
stack?: string | undefined;
|
|
2078
2069
|
stderr?: string | undefined;
|
|
2079
2070
|
};
|
|
2071
|
+
};
|
|
2072
|
+
}, {
|
|
2073
|
+
id: string;
|
|
2074
|
+
created: Date;
|
|
2075
|
+
webhookVersion: string;
|
|
2076
|
+
type: "alert.deployment.failed";
|
|
2077
|
+
object: {
|
|
2080
2078
|
environment: {
|
|
2081
|
-
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
2082
2079
|
id: string;
|
|
2080
|
+
type: import("@trigger.dev/database").$Enums.RuntimeEnvironmentType;
|
|
2083
2081
|
slug: string;
|
|
2084
2082
|
branchName?: string | undefined;
|
|
2085
2083
|
};
|
|
2086
2084
|
organization: {
|
|
2087
|
-
name: string;
|
|
2088
2085
|
id: string;
|
|
2089
2086
|
slug: string;
|
|
2087
|
+
name: string;
|
|
2090
2088
|
};
|
|
2091
2089
|
project: {
|
|
2092
|
-
name: string;
|
|
2093
2090
|
id: string;
|
|
2094
|
-
slug: string;
|
|
2095
2091
|
ref: string;
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
status: string;
|
|
2099
|
-
id: string;
|
|
2100
|
-
version: string;
|
|
2101
|
-
shortCode: string;
|
|
2102
|
-
failedAt: Date;
|
|
2092
|
+
slug: string;
|
|
2093
|
+
name: string;
|
|
2103
2094
|
};
|
|
2104
2095
|
git?: {
|
|
2105
|
-
commitMessage: string;
|
|
2106
|
-
commitSha: string;
|
|
2107
2096
|
branch: string;
|
|
2097
|
+
commitSha: string;
|
|
2098
|
+
commitMessage: string;
|
|
2108
2099
|
commitUrl: string;
|
|
2109
2100
|
branchUrl: string;
|
|
2110
|
-
provider?: string | undefined;
|
|
2111
2101
|
pullRequestNumber?: number | undefined;
|
|
2112
2102
|
pullRequestTitle?: string | undefined;
|
|
2113
2103
|
pullRequestUrl?: string | undefined;
|
|
2104
|
+
provider?: string | undefined;
|
|
2114
2105
|
} | undefined;
|
|
2115
2106
|
vercel?: {
|
|
2116
2107
|
deploymentUrl: string;
|
|
2117
2108
|
} | undefined;
|
|
2109
|
+
deployment: {
|
|
2110
|
+
id: string;
|
|
2111
|
+
status: string;
|
|
2112
|
+
version: string;
|
|
2113
|
+
shortCode: string;
|
|
2114
|
+
failedAt: Date;
|
|
2115
|
+
};
|
|
2116
|
+
error: {
|
|
2117
|
+
name: string;
|
|
2118
|
+
message: string;
|
|
2119
|
+
stack?: string | undefined;
|
|
2120
|
+
stderr?: string | undefined;
|
|
2121
|
+
};
|
|
2118
2122
|
};
|
|
2119
|
-
type: "alert.deployment.failed";
|
|
2120
|
-
id: string;
|
|
2121
|
-
created: Date;
|
|
2122
|
-
webhookVersion: string;
|
|
2123
2123
|
}>, z.ZodObject<{
|
|
2124
|
+
/** Webhook ID */
|
|
2125
|
+
id: z.ZodString;
|
|
2126
|
+
/** When the webhook was created */
|
|
2127
|
+
created: z.ZodDate;
|
|
2128
|
+
/** Version of the webhook */
|
|
2129
|
+
webhookVersion: z.ZodString;
|
|
2124
2130
|
type: z.ZodLiteral<"alert.error">;
|
|
2125
2131
|
object: z.ZodObject<{
|
|
2126
2132
|
/** Classification of the error alert */
|
|
@@ -2144,23 +2150,23 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2144
2150
|
/** Task identifier where the error occurred */
|
|
2145
2151
|
taskIdentifier: z.ZodString;
|
|
2146
2152
|
}, "strip", z.ZodTypeAny, {
|
|
2147
|
-
message: string;
|
|
2148
|
-
type: string;
|
|
2149
|
-
taskIdentifier: string;
|
|
2150
2153
|
fingerprint: string;
|
|
2154
|
+
type: string;
|
|
2155
|
+
message: string;
|
|
2156
|
+
stackTrace?: string | undefined;
|
|
2151
2157
|
firstSeen: Date;
|
|
2152
2158
|
lastSeen: Date;
|
|
2153
2159
|
occurrenceCount: number;
|
|
2154
|
-
stackTrace?: string | undefined;
|
|
2155
|
-
}, {
|
|
2156
|
-
message: string;
|
|
2157
|
-
type: string;
|
|
2158
2160
|
taskIdentifier: string;
|
|
2161
|
+
}, {
|
|
2159
2162
|
fingerprint: string;
|
|
2163
|
+
type: string;
|
|
2164
|
+
message: string;
|
|
2165
|
+
stackTrace?: string | undefined;
|
|
2160
2166
|
firstSeen: Date;
|
|
2161
2167
|
lastSeen: Date;
|
|
2162
2168
|
occurrenceCount: number;
|
|
2163
|
-
|
|
2169
|
+
taskIdentifier: string;
|
|
2164
2170
|
}>;
|
|
2165
2171
|
/** Environment information */
|
|
2166
2172
|
environment: z.ZodObject<{
|
|
@@ -2169,11 +2175,11 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2169
2175
|
/** Environment name */
|
|
2170
2176
|
name: z.ZodString;
|
|
2171
2177
|
}, "strip", z.ZodTypeAny, {
|
|
2172
|
-
name: string;
|
|
2173
2178
|
id: string;
|
|
2174
|
-
}, {
|
|
2175
2179
|
name: string;
|
|
2180
|
+
}, {
|
|
2176
2181
|
id: string;
|
|
2182
|
+
name: string;
|
|
2177
2183
|
}>;
|
|
2178
2184
|
/** Organization information */
|
|
2179
2185
|
organization: z.ZodObject<{
|
|
@@ -2184,13 +2190,13 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2184
2190
|
/** Organization name */
|
|
2185
2191
|
name: z.ZodString;
|
|
2186
2192
|
}, "strip", z.ZodTypeAny, {
|
|
2187
|
-
name: string;
|
|
2188
2193
|
id: string;
|
|
2189
2194
|
slug: string;
|
|
2190
|
-
}, {
|
|
2191
2195
|
name: string;
|
|
2196
|
+
}, {
|
|
2192
2197
|
id: string;
|
|
2193
2198
|
slug: string;
|
|
2199
|
+
name: string;
|
|
2194
2200
|
}>;
|
|
2195
2201
|
/** Project information */
|
|
2196
2202
|
project: z.ZodObject<{
|
|
@@ -2203,149 +2209,143 @@ export declare const Webhook: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2203
2209
|
/** Project name */
|
|
2204
2210
|
name: z.ZodString;
|
|
2205
2211
|
}, "strip", z.ZodTypeAny, {
|
|
2206
|
-
name: string;
|
|
2207
2212
|
id: string;
|
|
2208
|
-
slug: string;
|
|
2209
2213
|
ref: string;
|
|
2210
|
-
|
|
2214
|
+
slug: string;
|
|
2211
2215
|
name: string;
|
|
2216
|
+
}, {
|
|
2212
2217
|
id: string;
|
|
2213
|
-
slug: string;
|
|
2214
2218
|
ref: string;
|
|
2219
|
+
slug: string;
|
|
2220
|
+
name: string;
|
|
2215
2221
|
}>;
|
|
2216
2222
|
/** URL to view the error in the dashboard */
|
|
2217
2223
|
dashboardUrl: z.ZodString;
|
|
2218
2224
|
}, "strip", z.ZodTypeAny, {
|
|
2225
|
+
classification: "new_issue" | "regression" | "unignored";
|
|
2219
2226
|
error: {
|
|
2220
|
-
message: string;
|
|
2221
|
-
type: string;
|
|
2222
|
-
taskIdentifier: string;
|
|
2223
2227
|
fingerprint: string;
|
|
2228
|
+
type: string;
|
|
2229
|
+
message: string;
|
|
2230
|
+
stackTrace?: string | undefined;
|
|
2224
2231
|
firstSeen: Date;
|
|
2225
2232
|
lastSeen: Date;
|
|
2226
2233
|
occurrenceCount: number;
|
|
2227
|
-
|
|
2234
|
+
taskIdentifier: string;
|
|
2228
2235
|
};
|
|
2229
2236
|
environment: {
|
|
2230
|
-
name: string;
|
|
2231
2237
|
id: string;
|
|
2238
|
+
name: string;
|
|
2232
2239
|
};
|
|
2233
2240
|
organization: {
|
|
2234
|
-
name: string;
|
|
2235
2241
|
id: string;
|
|
2236
2242
|
slug: string;
|
|
2243
|
+
name: string;
|
|
2237
2244
|
};
|
|
2238
2245
|
project: {
|
|
2239
|
-
name: string;
|
|
2240
2246
|
id: string;
|
|
2241
|
-
slug: string;
|
|
2242
2247
|
ref: string;
|
|
2248
|
+
slug: string;
|
|
2249
|
+
name: string;
|
|
2243
2250
|
};
|
|
2244
2251
|
dashboardUrl: string;
|
|
2245
|
-
classification: "new_issue" | "regression" | "unignored";
|
|
2246
2252
|
}, {
|
|
2253
|
+
classification: "new_issue" | "regression" | "unignored";
|
|
2247
2254
|
error: {
|
|
2248
|
-
message: string;
|
|
2249
|
-
type: string;
|
|
2250
|
-
taskIdentifier: string;
|
|
2251
2255
|
fingerprint: string;
|
|
2256
|
+
type: string;
|
|
2257
|
+
message: string;
|
|
2258
|
+
stackTrace?: string | undefined;
|
|
2252
2259
|
firstSeen: Date;
|
|
2253
2260
|
lastSeen: Date;
|
|
2254
2261
|
occurrenceCount: number;
|
|
2255
|
-
|
|
2262
|
+
taskIdentifier: string;
|
|
2256
2263
|
};
|
|
2257
2264
|
environment: {
|
|
2258
|
-
name: string;
|
|
2259
2265
|
id: string;
|
|
2266
|
+
name: string;
|
|
2260
2267
|
};
|
|
2261
2268
|
organization: {
|
|
2262
|
-
name: string;
|
|
2263
2269
|
id: string;
|
|
2264
2270
|
slug: string;
|
|
2271
|
+
name: string;
|
|
2265
2272
|
};
|
|
2266
2273
|
project: {
|
|
2267
|
-
name: string;
|
|
2268
2274
|
id: string;
|
|
2269
|
-
slug: string;
|
|
2270
2275
|
ref: string;
|
|
2276
|
+
slug: string;
|
|
2277
|
+
name: string;
|
|
2271
2278
|
};
|
|
2272
2279
|
dashboardUrl: string;
|
|
2273
|
-
classification: "new_issue" | "regression" | "unignored";
|
|
2274
2280
|
}>;
|
|
2275
|
-
/** Webhook ID */
|
|
2276
|
-
id: z.ZodString;
|
|
2277
|
-
/** When the webhook was created */
|
|
2278
|
-
created: z.ZodDate;
|
|
2279
|
-
/** Version of the webhook */
|
|
2280
|
-
webhookVersion: z.ZodString;
|
|
2281
2281
|
}, "strip", z.ZodTypeAny, {
|
|
2282
|
+
id: string;
|
|
2283
|
+
created: Date;
|
|
2284
|
+
webhookVersion: string;
|
|
2285
|
+
type: "alert.error";
|
|
2282
2286
|
object: {
|
|
2287
|
+
classification: "new_issue" | "regression" | "unignored";
|
|
2283
2288
|
error: {
|
|
2284
|
-
message: string;
|
|
2285
|
-
type: string;
|
|
2286
|
-
taskIdentifier: string;
|
|
2287
2289
|
fingerprint: string;
|
|
2290
|
+
type: string;
|
|
2291
|
+
message: string;
|
|
2292
|
+
stackTrace?: string | undefined;
|
|
2288
2293
|
firstSeen: Date;
|
|
2289
2294
|
lastSeen: Date;
|
|
2290
2295
|
occurrenceCount: number;
|
|
2291
|
-
|
|
2296
|
+
taskIdentifier: string;
|
|
2292
2297
|
};
|
|
2293
2298
|
environment: {
|
|
2294
|
-
name: string;
|
|
2295
2299
|
id: string;
|
|
2300
|
+
name: string;
|
|
2296
2301
|
};
|
|
2297
2302
|
organization: {
|
|
2298
|
-
name: string;
|
|
2299
2303
|
id: string;
|
|
2300
2304
|
slug: string;
|
|
2305
|
+
name: string;
|
|
2301
2306
|
};
|
|
2302
2307
|
project: {
|
|
2303
|
-
name: string;
|
|
2304
2308
|
id: string;
|
|
2305
|
-
slug: string;
|
|
2306
2309
|
ref: string;
|
|
2310
|
+
slug: string;
|
|
2311
|
+
name: string;
|
|
2307
2312
|
};
|
|
2308
2313
|
dashboardUrl: string;
|
|
2309
|
-
classification: "new_issue" | "regression" | "unignored";
|
|
2310
2314
|
};
|
|
2311
|
-
|
|
2315
|
+
}, {
|
|
2312
2316
|
id: string;
|
|
2313
2317
|
created: Date;
|
|
2314
2318
|
webhookVersion: string;
|
|
2315
|
-
|
|
2319
|
+
type: "alert.error";
|
|
2316
2320
|
object: {
|
|
2321
|
+
classification: "new_issue" | "regression" | "unignored";
|
|
2317
2322
|
error: {
|
|
2318
|
-
message: string;
|
|
2319
|
-
type: string;
|
|
2320
|
-
taskIdentifier: string;
|
|
2321
2323
|
fingerprint: string;
|
|
2324
|
+
type: string;
|
|
2325
|
+
message: string;
|
|
2326
|
+
stackTrace?: string | undefined;
|
|
2322
2327
|
firstSeen: Date;
|
|
2323
2328
|
lastSeen: Date;
|
|
2324
2329
|
occurrenceCount: number;
|
|
2325
|
-
|
|
2330
|
+
taskIdentifier: string;
|
|
2326
2331
|
};
|
|
2327
2332
|
environment: {
|
|
2328
|
-
name: string;
|
|
2329
2333
|
id: string;
|
|
2334
|
+
name: string;
|
|
2330
2335
|
};
|
|
2331
2336
|
organization: {
|
|
2332
|
-
name: string;
|
|
2333
2337
|
id: string;
|
|
2334
2338
|
slug: string;
|
|
2339
|
+
name: string;
|
|
2335
2340
|
};
|
|
2336
2341
|
project: {
|
|
2337
|
-
name: string;
|
|
2338
2342
|
id: string;
|
|
2339
|
-
slug: string;
|
|
2340
2343
|
ref: string;
|
|
2344
|
+
slug: string;
|
|
2345
|
+
name: string;
|
|
2341
2346
|
};
|
|
2342
2347
|
dashboardUrl: string;
|
|
2343
|
-
classification: "new_issue" | "regression" | "unignored";
|
|
2344
2348
|
};
|
|
2345
|
-
type: "alert.error";
|
|
2346
|
-
id: string;
|
|
2347
|
-
created: Date;
|
|
2348
|
-
webhookVersion: string;
|
|
2349
2349
|
}>]>;
|
|
2350
2350
|
export type Webhook = z.infer<typeof Webhook>;
|
|
2351
2351
|
export type RunFailedWebhook = Extract<Webhook, {
|