experimental-ash 0.44.0 → 0.46.0
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/CHANGELOG.md +19 -0
- package/dist/docs/internals/discovery.md +1 -1
- package/dist/docs/internals/hooks.md +7 -10
- package/dist/docs/public/advanced/hooks.mdx +5 -68
- package/dist/docs/public/advanced/project-layout.md +14 -14
- package/dist/src/compiled/.vendor-stamp.json +4 -3
- package/dist/src/compiled/@ai-sdk/anthropic/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/google/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/openai/index.js +1 -1
- package/dist/src/compiled/@chat-adapter/slack/index.js +4 -4
- package/dist/src/compiled/@vercel/oidc/index.js +2 -2
- package/dist/src/compiled/@vercel/sandbox/index.d.ts +12 -0
- package/dist/src/compiled/@vercel/sandbox/index.js +18 -18
- package/dist/src/compiled/@workflow/core/attribute-changes.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/define-hook.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/events-consumer.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/index.js +2 -2
- package/dist/src/compiled/@workflow/core/runtime/get-world-lazy.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime/resume-hook.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime/run.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime/runs.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime/start.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime/step-executor.d.ts +3 -1
- package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime/world.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/runtime.js +22 -22
- package/dist/src/compiled/@workflow/core/serialization/types.d.ts +6 -0
- package/dist/src/compiled/@workflow/core/serialization.d.ts +2 -1
- package/dist/src/compiled/@workflow/core/step/context-storage.d.ts +2 -0
- package/dist/src/compiled/@workflow/core/symbols.d.ts +6 -0
- package/dist/src/compiled/@workflow/core/version.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/workflow/define-hook.d.ts +1 -1
- package/dist/src/compiled/@workflow/core/workflow.js +1 -1
- package/dist/src/compiled/@workflow/world/LICENSE.md +201 -0
- package/dist/src/compiled/@workflow/world/attributes.d.ts +110 -0
- package/dist/src/compiled/@workflow/world/events.d.ts +415 -0
- package/dist/src/compiled/@workflow/world/hooks.d.ts +72 -0
- package/dist/src/compiled/@workflow/world/index.d.ts +25 -0
- package/dist/src/compiled/@workflow/world/index.js +1 -0
- package/dist/src/compiled/@workflow/world/interfaces.d.ts +264 -0
- package/dist/src/compiled/@workflow/world/queue.d.ts +120 -0
- package/dist/src/compiled/@workflow/world/recovery.d.ts +13 -0
- package/dist/src/compiled/@workflow/world/runs.d.ts +144 -0
- package/dist/src/compiled/@workflow/world/serialization.d.ts +25 -0
- package/dist/src/compiled/@workflow/world/shared.d.ts +83 -0
- package/dist/src/compiled/@workflow/world/spec-version.d.ts +46 -0
- package/dist/src/compiled/@workflow/world/steps.d.ts +70 -0
- package/dist/src/compiled/@workflow/world/ulid.d.ts +35 -0
- package/dist/src/compiled/@workflow/world/waits.d.ts +21 -0
- package/dist/src/compiled/_chunks/node/{auth-CVVvWjaK.js → auth-BsyzphzW.js} +1 -1
- package/dist/src/compiled/_chunks/node/{token-CoIbMZkq.js → token-ORseRyWn.js} +1 -1
- package/dist/src/compiled/_chunks/node/{version-nR4RSpFw.js → version-BGue04qw.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{coerce-BhzIW-Hm.js → coerce-BTuSKQr5.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{compat-DcEvieoj.js → compat-CG1hDp-3.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{core-XWIi7wKc.js → core-5Woff_dW.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{dist-Dl-X5RB3.js → dist-Chj-QcBs.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/resume-hook-BlALLgSA.js +12 -0
- package/dist/src/compiled/_chunks/workflow/{schemas-DmgDnhW3.js → schemas-DWOIBELG.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/sleep-Bg0t23kF.js +1 -0
- package/dist/src/compiled/_chunks/workflow/{symbols-DygIC1sj.js → symbols-u476uwyR.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{token-D9z1dMB6.js → token-CcaAeZHd.js} +1 -1
- package/dist/src/compiled/_chunks/workflow/{token-DV7rQw_t.js → token-nK4u-N7w.js} +1 -1
- package/dist/src/compiled/commander/index.js +1 -1
- package/dist/src/compiled/experimental-ai-sdk-code-mode/index.js +1 -1
- package/dist/src/compiled/gray-matter/index.js +1 -1
- package/dist/src/compiled/just-bash/index.d.ts +8 -0
- package/dist/src/compiled/just-bash/index.js +1 -1
- package/dist/src/compiled/zod/index.js +1 -1
- package/dist/src/compiled/zod-validation-error/index.js +1 -1
- package/dist/src/compiler/manifest.d.ts +11 -0
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/compiler/module-map.js +1 -1
- package/dist/src/compiler/normalize-instructions.d.ts +27 -4
- package/dist/src/compiler/normalize-instructions.js +1 -1
- package/dist/src/compiler/normalize-manifest.js +3 -1
- package/dist/src/compiler/normalize-subagent.js +1 -1
- package/dist/src/context/dynamic-instruction-lifecycle.d.ts +26 -0
- package/dist/src/context/dynamic-instruction-lifecycle.js +1 -0
- package/dist/src/context/dynamic-skill-lifecycle.d.ts +4 -3
- package/dist/src/context/dynamic-skill-lifecycle.js +1 -1
- package/dist/src/context/hook-lifecycle.js +1 -1
- package/dist/src/context/keys.d.ts +11 -4
- package/dist/src/discover/filesystem.d.ts +2 -2
- package/dist/src/discover/filesystem.js +1 -1
- package/dist/src/discover/grammar.d.ts +16 -10
- package/dist/src/discover/grammar.js +1 -1
- package/dist/src/discover/manifest.d.ts +10 -7
- package/dist/src/discover/manifest.js +1 -1
- package/dist/src/execution/durable-session-store.js +1 -1
- package/dist/src/execution/sandbox/bindings/local.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
- package/dist/src/execution/sandbox/session.js +1 -1
- package/dist/src/execution/workflow-steps.js +1 -1
- package/dist/src/harness/compaction.js +1 -1
- package/dist/src/harness/tool-loop.js +1 -1
- package/dist/src/harness/types.d.ts +2 -4
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/core.d.ts +3 -1
- package/dist/src/internal/helpers/markdown.d.ts +1 -1
- package/dist/src/internal/helpers/markdown.js +1 -1
- package/dist/src/node_modules/.pnpm/autoevals@0.0.132_ws@8.21.0/node_modules/autoevals/jsdist/index.js +2 -2
- package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/client.js +1 -1
- package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/version.js +1 -0
- package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +1 -1
- package/dist/src/packages/ash-scaffold/src/channels.js +1 -1
- package/dist/src/public/channels/slack/blocks.js +1 -1
- package/dist/src/public/definitions/hook.d.ts +4 -19
- package/dist/src/public/definitions/instructions.d.ts +19 -7
- package/dist/src/public/definitions/instructions.js +1 -1
- package/dist/src/public/definitions/sandbox.d.ts +1 -1
- package/dist/src/public/hooks/index.d.ts +1 -1
- package/dist/src/public/instructions/index.d.ts +4 -1
- package/dist/src/public/instructions/index.js +1 -1
- package/dist/src/runtime/resolve-agent.js +1 -1
- package/dist/src/runtime/resolve-dynamic-instructions.d.ts +4 -0
- package/dist/src/runtime/resolve-dynamic-instructions.js +1 -0
- package/dist/src/runtime/types.d.ts +11 -0
- package/dist/src/shared/dynamic-tool-definition.d.ts +12 -0
- package/dist/src/shared/dynamic-tool-definition.js +1 -1
- package/dist/src/shared/sandbox-session.d.ts +21 -0
- package/dist/src/shared/skill-package.d.ts +7 -0
- package/dist/src/shared/skill-package.js +1 -1
- package/package.json +5 -5
- package/dist/src/compiled/@ai-sdk/anthropic/package.json +0 -7
- package/dist/src/compiled/@ai-sdk/google/package.json +0 -7
- package/dist/src/compiled/@ai-sdk/mcp/package.json +0 -7
- package/dist/src/compiled/@ai-sdk/openai/package.json +0 -7
- package/dist/src/compiled/@ai-sdk/otel/package.json +0 -7
- package/dist/src/compiled/@ai-sdk/provider/package.json +0 -7
- package/dist/src/compiled/@chat-adapter/slack/package.json +0 -7
- package/dist/src/compiled/@chat-adapter/state-memory/package.json +0 -7
- package/dist/src/compiled/@opentelemetry/api/package.json +0 -7
- package/dist/src/compiled/@standard-schema/spec/package.json +0 -7
- package/dist/src/compiled/@vercel/oidc/package.json +0 -7
- package/dist/src/compiled/@vercel/sandbox/package.json +0 -7
- package/dist/src/compiled/@workflow/core/_workflow-world.d.ts +0 -60
- package/dist/src/compiled/@workflow/core/package.json +0 -7
- package/dist/src/compiled/@workflow/errors/package.json +0 -7
- package/dist/src/compiled/_chunks/workflow/resume-hook-B2kqAsX6.js +0 -12
- package/dist/src/compiled/_chunks/workflow/sleep-kQ0UwHn0.js +0 -1
- package/dist/src/compiled/chat/package.json +0 -7
- package/dist/src/compiled/chokidar/package.json +0 -7
- package/dist/src/compiled/commander/package.json +0 -7
- package/dist/src/compiled/experimental-ai-sdk-code-mode/package.json +0 -7
- package/dist/src/compiled/gray-matter/package.json +0 -7
- package/dist/src/compiled/jose/package.json +0 -7
- package/dist/src/compiled/jsonc-parser/package.json +0 -7
- package/dist/src/compiled/just-bash/package.json +0 -7
- package/dist/src/compiled/picocolors/package.json +0 -7
- package/dist/src/compiled/turndown/package.json +0 -7
- package/dist/src/compiled/zod/package.json +0 -7
- package/dist/src/compiled/zod-validation-error/package.json +0 -7
- package/dist/src/node_modules/.pnpm/openai@6.39.0_ws@8.21.0_zod@3.25.76/node_modules/openai/version.js +0 -1
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/_vendor/partial-json-parser/parser.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/auth/workload-identity-auth.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/azure.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/core/api-promise.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/core/error.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/core/pagination.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/core/resource.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/core/streaming.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/core/uploads.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/error.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/index.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/decoders/line.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/detect-platform.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/errors.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/headers.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/parse.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/qs/formats.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/qs/stringify.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/qs/utils.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/request-options.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/shims.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/to-file.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/tslib.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/uploads.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/base64.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/bytes.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/env.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/log.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/path.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/query.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/sleep.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/uuid.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils/values.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/internal/utils.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/AbstractChatCompletionRunner.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/AssistantStream.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/ChatCompletionRunner.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/ChatCompletionStream.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/ChatCompletionStreamingRunner.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/EventStream.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/ResponsesParser.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/RunnableFunction.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/Util.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/chatCompletionUtils.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/parser.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/lib/responses/ResponseStream.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/admin.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/admin-api-keys.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/audit-logs.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/certificates.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/data-retention.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/groups/groups.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/groups/roles.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/groups/users.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/invites.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/organization.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/api-keys.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/certificates.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/data-retention.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/groups/groups.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/groups/roles.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/model-permissions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/projects.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/rate-limits.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/roles.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/service-accounts.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/users/roles.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/projects/users/users.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/roles.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/spend-alerts.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/usage.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/users/roles.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/admin/organization/users/users.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/audio/audio.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/audio/speech.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/audio/transcriptions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/audio/translations.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/batches.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/assistants.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/beta.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/chatkit/chatkit.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/chatkit/sessions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/chatkit/threads.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/realtime/realtime.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/realtime/sessions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/realtime/transcription-sessions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/threads/messages.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/threads/runs/runs.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/threads/runs/steps.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/beta/threads/threads.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/chat/chat.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/chat/completions/completions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/chat/completions/index.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/chat/completions/messages.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/chat/index.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/completions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/containers/containers.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/containers/files/content.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/containers/files/files.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/conversations/conversations.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/conversations/items.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/embeddings.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/evals/evals.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/evals/runs/output-items.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/evals/runs/runs.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/files.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/alpha/alpha.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/alpha/graders.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/fine-tuning.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/jobs/jobs.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/fine-tuning/methods.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/graders/grader-models.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/graders/graders.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/images.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/index.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/models.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/moderations.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/realtime/calls.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/realtime/client-secrets.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/realtime/realtime.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/responses/input-items.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/responses/input-tokens.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/responses/responses.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/shared.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/skills/content.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/skills/skills.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/skills/versions/content.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/skills/versions/versions.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/uploads/parts.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/uploads/uploads.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/vector-stores/file-batches.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/vector-stores/files.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/vector-stores/vector-stores.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/videos.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/webhooks/index.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/webhooks/webhooks.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/resources/webhooks.js +0 -0
- /package/dist/src/node_modules/.pnpm/{openai@6.39.0_ws@8.21.0_zod@3.25.76 → openai@6.39.1_ws@8.21.0_zod@3.25.76}/node_modules/openai/streaming.js +0 -0
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import { z } from '#compiled/zod/index.js';
|
|
2
|
+
import type { PaginationOptions, ResolveData } from './shared.js';
|
|
3
|
+
/**
|
|
4
|
+
* Fields within eventData that hold ref/payload data per event type.
|
|
5
|
+
* When resolveData is 'none', only these fields are stripped — all other
|
|
6
|
+
* metadata (stepName, workflowName, etc.) is preserved.
|
|
7
|
+
*/
|
|
8
|
+
export declare const EVENT_DATA_REF_FIELDS: Record<string, string[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Strip ref/payload fields from eventData based on resolveData setting.
|
|
11
|
+
* When resolveData is 'none', removes only large data fields (refs) from
|
|
12
|
+
* eventData while preserving metadata like stepName, workflowName, etc.
|
|
13
|
+
*/
|
|
14
|
+
export declare function stripEventDataRefs(event: Event, resolveData: ResolveData): Event;
|
|
15
|
+
export declare const EventTypeSchema: z.ZodEnum<{
|
|
16
|
+
run_created: "run_created";
|
|
17
|
+
run_completed: "run_completed";
|
|
18
|
+
run_failed: "run_failed";
|
|
19
|
+
step_created: "step_created";
|
|
20
|
+
step_completed: "step_completed";
|
|
21
|
+
step_failed: "step_failed";
|
|
22
|
+
step_retrying: "step_retrying";
|
|
23
|
+
hook_created: "hook_created";
|
|
24
|
+
hook_received: "hook_received";
|
|
25
|
+
run_started: "run_started";
|
|
26
|
+
run_cancelled: "run_cancelled";
|
|
27
|
+
step_started: "step_started";
|
|
28
|
+
hook_disposed: "hook_disposed";
|
|
29
|
+
hook_conflict: "hook_conflict";
|
|
30
|
+
wait_created: "wait_created";
|
|
31
|
+
wait_completed: "wait_completed";
|
|
32
|
+
}>;
|
|
33
|
+
export declare const BaseEventSchema: z.ZodObject<{
|
|
34
|
+
eventType: z.ZodEnum<{
|
|
35
|
+
run_created: "run_created";
|
|
36
|
+
run_completed: "run_completed";
|
|
37
|
+
run_failed: "run_failed";
|
|
38
|
+
step_created: "step_created";
|
|
39
|
+
step_completed: "step_completed";
|
|
40
|
+
step_failed: "step_failed";
|
|
41
|
+
step_retrying: "step_retrying";
|
|
42
|
+
hook_created: "hook_created";
|
|
43
|
+
hook_received: "hook_received";
|
|
44
|
+
run_started: "run_started";
|
|
45
|
+
run_cancelled: "run_cancelled";
|
|
46
|
+
step_started: "step_started";
|
|
47
|
+
hook_disposed: "hook_disposed";
|
|
48
|
+
hook_conflict: "hook_conflict";
|
|
49
|
+
wait_created: "wait_created";
|
|
50
|
+
wait_completed: "wait_completed";
|
|
51
|
+
}>;
|
|
52
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
53
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declare const HookReceivedEventSchema: z.ZodObject<{
|
|
56
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
eventType: z.ZodLiteral<"hook_received">;
|
|
58
|
+
correlationId: z.ZodString;
|
|
59
|
+
eventData: z.ZodObject<{
|
|
60
|
+
token: z.ZodOptional<z.ZodString>;
|
|
61
|
+
payload: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
/**
|
|
65
|
+
* Event created by World implementations when a hook_created request
|
|
66
|
+
* conflicts with an existing hook token. This event is NOT user-creatable -
|
|
67
|
+
* it is only returned by the World when a token conflict is detected.
|
|
68
|
+
*
|
|
69
|
+
* When the hook consumer sees this event, it should reject any awaited
|
|
70
|
+
* promises with a HookTokenConflictError.
|
|
71
|
+
*/
|
|
72
|
+
declare const HookConflictEventSchema: z.ZodObject<{
|
|
73
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
eventType: z.ZodLiteral<"hook_conflict">;
|
|
75
|
+
correlationId: z.ZodString;
|
|
76
|
+
eventData: z.ZodObject<{
|
|
77
|
+
token: z.ZodString;
|
|
78
|
+
conflictingRunId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
/**
|
|
82
|
+
* Event created when a workflow run is first created. The World implementation
|
|
83
|
+
* atomically creates both the event and the run entity with status 'pending'.
|
|
84
|
+
*/
|
|
85
|
+
declare const RunCreatedEventSchema: z.ZodObject<{
|
|
86
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
eventType: z.ZodLiteral<"run_created">;
|
|
89
|
+
eventData: z.ZodObject<{
|
|
90
|
+
deploymentId: z.ZodString;
|
|
91
|
+
workflowName: z.ZodString;
|
|
92
|
+
input: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
93
|
+
executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const CreateEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
98
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
eventType: z.ZodLiteral<"run_created">;
|
|
100
|
+
eventData: z.ZodObject<{
|
|
101
|
+
deploymentId: z.ZodString;
|
|
102
|
+
workflowName: z.ZodString;
|
|
103
|
+
input: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
104
|
+
executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
eventType: z.ZodLiteral<"run_started">;
|
|
110
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
112
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
113
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
114
|
+
executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
117
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
eventType: z.ZodLiteral<"run_completed">;
|
|
120
|
+
eventData: z.ZodObject<{
|
|
121
|
+
output: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
eventType: z.ZodLiteral<"run_failed">;
|
|
127
|
+
eventData: z.ZodObject<{
|
|
128
|
+
error: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
129
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
eventType: z.ZodLiteral<"run_cancelled">;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
eventType: z.ZodLiteral<"step_created">;
|
|
138
|
+
correlationId: z.ZodString;
|
|
139
|
+
eventData: z.ZodObject<{
|
|
140
|
+
stepName: z.ZodString;
|
|
141
|
+
input: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
eventType: z.ZodLiteral<"step_completed">;
|
|
146
|
+
correlationId: z.ZodString;
|
|
147
|
+
eventData: z.ZodObject<{
|
|
148
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
149
|
+
result: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
152
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
eventType: z.ZodLiteral<"step_failed">;
|
|
154
|
+
correlationId: z.ZodString;
|
|
155
|
+
eventData: z.ZodObject<{
|
|
156
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
157
|
+
error: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
eventType: z.ZodLiteral<"step_retrying">;
|
|
162
|
+
correlationId: z.ZodString;
|
|
163
|
+
eventData: z.ZodObject<{
|
|
164
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
165
|
+
error: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
166
|
+
retryAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
eventType: z.ZodLiteral<"step_started">;
|
|
171
|
+
correlationId: z.ZodString;
|
|
172
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
174
|
+
attempt: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
}, z.core.$strip>>;
|
|
176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
177
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
eventType: z.ZodLiteral<"hook_created">;
|
|
179
|
+
correlationId: z.ZodString;
|
|
180
|
+
eventData: z.ZodObject<{
|
|
181
|
+
token: z.ZodString;
|
|
182
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
183
|
+
isWebhook: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
eventType: z.ZodLiteral<"hook_received">;
|
|
189
|
+
correlationId: z.ZodString;
|
|
190
|
+
eventData: z.ZodObject<{
|
|
191
|
+
token: z.ZodOptional<z.ZodString>;
|
|
192
|
+
payload: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
eventType: z.ZodLiteral<"hook_disposed">;
|
|
197
|
+
correlationId: z.ZodString;
|
|
198
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
token: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
202
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
eventType: z.ZodLiteral<"wait_created">;
|
|
204
|
+
correlationId: z.ZodString;
|
|
205
|
+
eventData: z.ZodObject<{
|
|
206
|
+
resumeAt: z.ZodCoercedDate<unknown>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
eventType: z.ZodLiteral<"wait_completed">;
|
|
211
|
+
correlationId: z.ZodString;
|
|
212
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
resumeAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>], "eventType">;
|
|
216
|
+
export declare const EventSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
217
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
218
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
eventType: z.ZodLiteral<"run_created">;
|
|
220
|
+
eventData: z.ZodObject<{
|
|
221
|
+
deploymentId: z.ZodString;
|
|
222
|
+
workflowName: z.ZodString;
|
|
223
|
+
input: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
224
|
+
executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
228
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
eventType: z.ZodLiteral<"run_started">;
|
|
230
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
232
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
233
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
234
|
+
executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
eventType: z.ZodLiteral<"run_completed">;
|
|
240
|
+
eventData: z.ZodObject<{
|
|
241
|
+
output: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
244
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
245
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
eventType: z.ZodLiteral<"run_failed">;
|
|
247
|
+
eventData: z.ZodObject<{
|
|
248
|
+
error: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
249
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
252
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
253
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
eventType: z.ZodLiteral<"run_cancelled">;
|
|
255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
256
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
eventType: z.ZodLiteral<"step_created">;
|
|
258
|
+
correlationId: z.ZodString;
|
|
259
|
+
eventData: z.ZodObject<{
|
|
260
|
+
stepName: z.ZodString;
|
|
261
|
+
input: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
264
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
eventType: z.ZodLiteral<"step_completed">;
|
|
266
|
+
correlationId: z.ZodString;
|
|
267
|
+
eventData: z.ZodObject<{
|
|
268
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
269
|
+
result: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
eventType: z.ZodLiteral<"step_failed">;
|
|
274
|
+
correlationId: z.ZodString;
|
|
275
|
+
eventData: z.ZodObject<{
|
|
276
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
277
|
+
error: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
eventType: z.ZodLiteral<"step_retrying">;
|
|
282
|
+
correlationId: z.ZodString;
|
|
283
|
+
eventData: z.ZodObject<{
|
|
284
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
285
|
+
error: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
286
|
+
retryAfter: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
eventType: z.ZodLiteral<"step_started">;
|
|
291
|
+
correlationId: z.ZodString;
|
|
292
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
294
|
+
attempt: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
297
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
eventType: z.ZodLiteral<"hook_created">;
|
|
299
|
+
correlationId: z.ZodString;
|
|
300
|
+
eventData: z.ZodObject<{
|
|
301
|
+
token: z.ZodString;
|
|
302
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
303
|
+
isWebhook: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
307
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
eventType: z.ZodLiteral<"hook_received">;
|
|
309
|
+
correlationId: z.ZodString;
|
|
310
|
+
eventData: z.ZodObject<{
|
|
311
|
+
token: z.ZodOptional<z.ZodString>;
|
|
312
|
+
payload: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
315
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
eventType: z.ZodLiteral<"hook_disposed">;
|
|
317
|
+
correlationId: z.ZodString;
|
|
318
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
token: z.ZodOptional<z.ZodString>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
eventType: z.ZodLiteral<"hook_conflict">;
|
|
324
|
+
correlationId: z.ZodString;
|
|
325
|
+
eventData: z.ZodObject<{
|
|
326
|
+
token: z.ZodString;
|
|
327
|
+
conflictingRunId: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
eventType: z.ZodLiteral<"wait_created">;
|
|
332
|
+
correlationId: z.ZodString;
|
|
333
|
+
eventData: z.ZodObject<{
|
|
334
|
+
resumeAt: z.ZodCoercedDate<unknown>;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
337
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
eventType: z.ZodLiteral<"wait_completed">;
|
|
339
|
+
correlationId: z.ZodString;
|
|
340
|
+
eventData: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
resumeAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
}, z.core.$strip>], "eventType">, z.ZodObject<{
|
|
344
|
+
runId: z.ZodString;
|
|
345
|
+
eventId: z.ZodString;
|
|
346
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
347
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
export type Event = z.infer<typeof EventSchema>;
|
|
350
|
+
export type HookReceivedEvent = z.infer<typeof HookReceivedEventSchema>;
|
|
351
|
+
export type HookConflictEvent = z.infer<typeof HookConflictEventSchema>;
|
|
352
|
+
/**
|
|
353
|
+
* Union of all possible event request types.
|
|
354
|
+
* @internal Use CreateEventRequest or RunCreatedEventRequest instead.
|
|
355
|
+
*/
|
|
356
|
+
export type AnyEventRequest = z.infer<typeof CreateEventSchema>;
|
|
357
|
+
/**
|
|
358
|
+
* Event request for creating a new workflow run.
|
|
359
|
+
* Can be used with a client-generated runId or null for server-generated.
|
|
360
|
+
*/
|
|
361
|
+
export type RunCreatedEventRequest = z.infer<typeof RunCreatedEventSchema>;
|
|
362
|
+
/**
|
|
363
|
+
* Event request types that require an existing runId.
|
|
364
|
+
* This is the common case for all events except run_created.
|
|
365
|
+
*/
|
|
366
|
+
export type CreateEventRequest = Exclude<AnyEventRequest, RunCreatedEventRequest>;
|
|
367
|
+
export interface CreateEventParams {
|
|
368
|
+
v1Compat?: boolean;
|
|
369
|
+
resolveData?: ResolveData;
|
|
370
|
+
/** Request ID (x-vercel-id when on Vercel) for correlating request logs with workflow events. */
|
|
371
|
+
requestId?: string;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Result of creating an event. Includes the created event and optionally
|
|
375
|
+
* the entity that was created or updated as a result of the event, with any updates applied to it.
|
|
376
|
+
*
|
|
377
|
+
* Note: `event` is optional to support legacy runs where event storage is skipped.
|
|
378
|
+
*/
|
|
379
|
+
export interface EventResult {
|
|
380
|
+
/** The created event (optional for legacy compatibility) */
|
|
381
|
+
event?: Event;
|
|
382
|
+
/** The workflow run entity (for run_* events) */
|
|
383
|
+
run?: import('./runs.js').WorkflowRun;
|
|
384
|
+
/** The step entity (for step_* events) */
|
|
385
|
+
step?: import('./steps.js').Step;
|
|
386
|
+
/** The hook entity (for hook_created events) */
|
|
387
|
+
hook?: import('./hooks.js').Hook;
|
|
388
|
+
/** The wait entity (for wait_created/wait_completed events) */
|
|
389
|
+
wait?: import('./waits.js').Wait;
|
|
390
|
+
/**
|
|
391
|
+
* All events up to this point, with data resolved. When populated
|
|
392
|
+
* on a run_started response, the runtime uses these to skip the
|
|
393
|
+
* initial events.list call and reduce TTFB.
|
|
394
|
+
*/
|
|
395
|
+
events?: Event[];
|
|
396
|
+
/** Pagination cursor for `events`, matching events.list semantics. */
|
|
397
|
+
cursor?: string | null;
|
|
398
|
+
/** Whether additional event pages are available for `events`. */
|
|
399
|
+
hasMore?: boolean;
|
|
400
|
+
}
|
|
401
|
+
export interface GetEventParams {
|
|
402
|
+
resolveData?: ResolveData;
|
|
403
|
+
}
|
|
404
|
+
export interface ListEventsParams {
|
|
405
|
+
runId: string;
|
|
406
|
+
pagination?: PaginationOptions;
|
|
407
|
+
resolveData?: ResolveData;
|
|
408
|
+
}
|
|
409
|
+
export interface ListEventsByCorrelationIdParams {
|
|
410
|
+
correlationId: string;
|
|
411
|
+
pagination?: PaginationOptions;
|
|
412
|
+
resolveData?: ResolveData;
|
|
413
|
+
}
|
|
414
|
+
export {};
|
|
415
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from '#compiled/zod/index.js';
|
|
2
|
+
import type { SerializedData } from './serialization.js';
|
|
3
|
+
import type { PaginationOptions, ResolveData } from './shared.js';
|
|
4
|
+
/**
|
|
5
|
+
* Schema for workflow hooks.
|
|
6
|
+
*
|
|
7
|
+
* Note: metadata uses SerializedDataSchema to support both:
|
|
8
|
+
* - specVersion >= 2: Uint8Array (binary devalue format)
|
|
9
|
+
* - specVersion 1: any (legacy JSON format)
|
|
10
|
+
*/
|
|
11
|
+
export declare const HookSchema: z.ZodObject<{
|
|
12
|
+
runId: z.ZodString;
|
|
13
|
+
hookId: z.ZodString;
|
|
14
|
+
token: z.ZodString;
|
|
15
|
+
ownerId: z.ZodString;
|
|
16
|
+
projectId: z.ZodString;
|
|
17
|
+
environment: z.ZodString;
|
|
18
|
+
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>]>>;
|
|
19
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
20
|
+
specVersion: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
isWebhook: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
isSystem: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
/**
|
|
25
|
+
* Represents a hook that can be used to resume a paused workflow run.
|
|
26
|
+
*
|
|
27
|
+
* Note: metadata type is SerializedData to support both:
|
|
28
|
+
* - specVersion >= 2: Uint8Array (binary devalue format)
|
|
29
|
+
* - specVersion 1: unknown (legacy JSON format)
|
|
30
|
+
*/
|
|
31
|
+
export type Hook = z.infer<typeof HookSchema> & {
|
|
32
|
+
/** The unique identifier of the workflow run this hook belongs to. */
|
|
33
|
+
runId: string;
|
|
34
|
+
/** The unique identifier of this hook within the workflow run. */
|
|
35
|
+
hookId: string;
|
|
36
|
+
/** The secret token used to reference this hook. */
|
|
37
|
+
token: string;
|
|
38
|
+
/** The owner ID (team or user) that owns this hook. */
|
|
39
|
+
ownerId: string;
|
|
40
|
+
/** The project ID this hook belongs to. */
|
|
41
|
+
projectId: string;
|
|
42
|
+
/** The environment (e.g., "production", "preview", "development") where this hook was created. */
|
|
43
|
+
environment: string;
|
|
44
|
+
/** Optional metadata associated with the hook, set when the hook was created. */
|
|
45
|
+
metadata?: SerializedData;
|
|
46
|
+
/** The timestamp when this hook was created. */
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
/** The spec version when this hook was created. */
|
|
49
|
+
specVersion?: number;
|
|
50
|
+
/** Whether this hook is resumable via the public webhook endpoint. undefined = legacy (treated as true for backwards compat). */
|
|
51
|
+
isWebhook?: boolean;
|
|
52
|
+
/** Whether this hook is a system-managed hook (e.g., for abort signals). */
|
|
53
|
+
isSystem?: boolean;
|
|
54
|
+
};
|
|
55
|
+
export interface CreateHookRequest {
|
|
56
|
+
hookId: string;
|
|
57
|
+
token: string;
|
|
58
|
+
metadata?: SerializedData;
|
|
59
|
+
isWebhook?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface GetHookByTokenParams {
|
|
62
|
+
token: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ListHooksParams {
|
|
65
|
+
runId?: string;
|
|
66
|
+
pagination?: PaginationOptions;
|
|
67
|
+
resolveData?: ResolveData;
|
|
68
|
+
}
|
|
69
|
+
export interface GetHookParams {
|
|
70
|
+
resolveData?: ResolveData;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type * from './attributes.js';
|
|
2
|
+
export { applyAttributeChanges, ATTRIBUTE_KEY_MAX_LENGTH, ATTRIBUTE_MAX_PER_RUN, ATTRIBUTE_VALUE_MAX_BYTES, AttributeChangeSchema, AttributeChangesSchema, AttributeValidationError, RESERVED_ATTRIBUTE_KEY_PREFIX, validateAttributeChanges, validateAttributeKey, validateAttributeValue, } from './attributes.js';
|
|
3
|
+
export type * from './events.js';
|
|
4
|
+
export { BaseEventSchema, CreateEventSchema, EVENT_DATA_REF_FIELDS, EventSchema, EventTypeSchema, stripEventDataRefs, } from './events.js';
|
|
5
|
+
export type * from './hooks.js';
|
|
6
|
+
export { HookSchema } from './hooks.js';
|
|
7
|
+
export type * from './interfaces.js';
|
|
8
|
+
export type * from './queue.js';
|
|
9
|
+
export { HealthCheckPayloadSchema, MessageId, QueuePayloadSchema, QueuePrefix, RunInputSchema, StepInvokePayloadSchema, ValidQueueName, WorkflowInvokePayloadSchema, } from './queue.js';
|
|
10
|
+
export { reenqueueActiveRuns } from './recovery.js';
|
|
11
|
+
export type * from './runs.js';
|
|
12
|
+
export { WorkflowRunBaseSchema, WorkflowRunSchema, WorkflowRunStatusSchema, } from './runs.js';
|
|
13
|
+
export type { SerializedData } from './serialization.js';
|
|
14
|
+
export { LegacySerializedDataSchemaV1, SerializedDataSchema, } from './serialization.js';
|
|
15
|
+
export type * from './shared.js';
|
|
16
|
+
export type { GetChunksOptions, StreamChunk, StreamChunksResponse, StreamInfoResponse, } from './shared.js';
|
|
17
|
+
export { PaginatedResponseSchema, StructuredErrorSchema, } from './shared.js';
|
|
18
|
+
export type { SpecVersion } from './spec-version.js';
|
|
19
|
+
export { isLegacySpecVersion, requiresNewerWorld, SPEC_VERSION_CURRENT, SPEC_VERSION_LEGACY, SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT, SPEC_VERSION_SUPPORTS_EVENT_SOURCING, } from './spec-version.js';
|
|
20
|
+
export type * from './steps.js';
|
|
21
|
+
export { StepSchema, StepStatusSchema } from './steps.js';
|
|
22
|
+
export { DEFAULT_TIMESTAMP_THRESHOLD_FUTURE_MS, DEFAULT_TIMESTAMP_THRESHOLD_MS, DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS, ulidToDate, validateUlidTimestamp, } from './ulid.js';
|
|
23
|
+
export type * from './waits.js';
|
|
24
|
+
export { WaitSchema, WaitStatusSchema } from './waits.js';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|