@powerhousedao/workflow 6.2.3-dev.84 → 6.2.3-dev.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/browser/{BlockSelector-CtoMNZ9A.js → BlockSelector-BKAJwJ4Y.js} +74 -6
  2. package/dist/browser/BlockSelector-BKAJwJ4Y.js.map +1 -0
  3. package/dist/browser/{PieceMarkdown-U6OUTwRi.js → PieceMarkdown-DSdZd-Jc.js} +34 -8
  4. package/dist/browser/PieceMarkdown-DSdZd-Jc.js.map +1 -0
  5. package/dist/browser/{connection-form-_H-tP2Vk.js → connection-form-DltdMa8F.js} +3 -3
  6. package/dist/browser/{connection-form-_H-tP2Vk.js.map → connection-form-DltdMa8F.js.map} +1 -1
  7. package/dist/browser/{data-tree-CjWQllC7.js → data-tree-DAw8e0j8.js} +25 -12
  8. package/dist/browser/data-tree-DAw8e0j8.js.map +1 -0
  9. package/dist/browser/document-models/index.js +2 -2
  10. package/dist/browser/document-models/workflow/index.js +2 -2
  11. package/dist/browser/{document-models-DSK5cn8B.js → document-models-C2SAP1SX.js} +2 -2
  12. package/dist/browser/{document-models-DSK5cn8B.js.map → document-models-C2SAP1SX.js.map} +1 -1
  13. package/dist/browser/{editor-B1AzXxaF.js → editor--J61vLSC.js} +435 -51
  14. package/dist/browser/editor--J61vLSC.js.map +1 -0
  15. package/dist/browser/{editor-DgdTF2up.js → editor-CZLe6CAF.js} +5 -5
  16. package/dist/browser/{editor-DgdTF2up.js.map → editor-CZLe6CAF.js.map} +1 -1
  17. package/dist/browser/{editor-B9069RYZ.js → editor-Dl6lzxkM.js} +26 -18
  18. package/dist/browser/{editor-B9069RYZ.js.map → editor-Dl6lzxkM.js.map} +1 -1
  19. package/dist/browser/editors/connection-editor/module.js +1 -1
  20. package/dist/browser/editors/runtime/index.js +1 -1
  21. package/dist/browser/editors/workflow-editor/module.js +1 -1
  22. package/dist/browser/editors/workflow-studio/module.js +1 -1
  23. package/dist/browser/index.js +3 -3
  24. package/dist/browser/{module-eOpxJVIl.js → module-mFCt9WHJ.js} +2 -2
  25. package/dist/browser/module-mFCt9WHJ.js.map +1 -0
  26. package/dist/browser/reactor/index.js +2 -2
  27. package/dist/browser/{runtime-queries-LAcyniYz.js → runtime-queries-D81Ghpok.js} +105 -4
  28. package/dist/browser/runtime-queries-D81Ghpok.js.map +1 -0
  29. package/dist/browser/{trigger-text-BgpPIXEJ.js → trigger-text-BSVi5oGZ.js} +392 -387
  30. package/dist/browser/trigger-text-BSVi5oGZ.js.map +1 -0
  31. package/dist/browser/{upgrade-manifests-CLYUPqBs.js → upgrade-manifests-C2Qa6myy.js} +2 -2
  32. package/dist/browser/{upgrade-manifests-CLYUPqBs.js.map → upgrade-manifests-C2Qa6myy.js.map} +1 -1
  33. package/dist/browser/{workflow-Cn1UP-eJ.js → workflow-BFdnSGRD.js} +2 -2
  34. package/dist/browser/{workflow-Cn1UP-eJ.js.map → workflow-BFdnSGRD.js.map} +1 -1
  35. package/dist/node/{BlockSelector-CbdgYJfp.mjs → BlockSelector-DTfZEEW9.mjs} +75 -7
  36. package/dist/node/BlockSelector-DTfZEEW9.mjs.map +1 -0
  37. package/dist/node/{PieceMarkdown-DwpCBISY.mjs → PieceMarkdown-CUSdTMH4.mjs} +34 -8
  38. package/dist/node/{PieceMarkdown-DwpCBISY.mjs.map → PieceMarkdown-CUSdTMH4.mjs.map} +1 -1
  39. package/dist/node/{connection-form-DPbyrUIm.mjs → connection-form-Dc7akS2K.mjs} +3 -3
  40. package/dist/node/{connection-form-DPbyrUIm.mjs.map → connection-form-Dc7akS2K.mjs.map} +1 -1
  41. package/dist/node/{data-tree-CXa2kEuD.mjs → data-tree-9EdqJVwJ.mjs} +25 -12
  42. package/dist/node/{data-tree-CXa2kEuD.mjs.map → data-tree-9EdqJVwJ.mjs.map} +1 -1
  43. package/dist/node/document-models/index.mjs +2 -2
  44. package/dist/node/document-models/workflow/index.mjs +2 -2
  45. package/dist/node/{editor-BGz1Ljdk.mjs → editor-CdIYZSrv.mjs} +26 -18
  46. package/dist/node/{editor-BGz1Ljdk.mjs.map → editor-CdIYZSrv.mjs.map} +1 -1
  47. package/dist/node/{editor-DzxyNgYk.mjs → editor-GSV1jiWZ.mjs} +5 -5
  48. package/dist/node/{editor-DzxyNgYk.mjs.map → editor-GSV1jiWZ.mjs.map} +1 -1
  49. package/dist/node/{editor-D3MlbYBN.mjs → editor-rbgFzhV5.mjs} +435 -51
  50. package/dist/node/editor-rbgFzhV5.mjs.map +1 -0
  51. package/dist/node/editors/connection-editor/module.mjs +1 -1
  52. package/dist/node/editors/runtime/index.mjs +1 -1
  53. package/dist/node/editors/workflow-editor/module.mjs +1 -1
  54. package/dist/node/editors/workflow-studio/module.mjs +1 -1
  55. package/dist/node/index.mjs +3 -3
  56. package/dist/node/{module-D9Zx5Zow.mjs → module-CuTg45ct.mjs} +2 -2
  57. package/dist/{browser/module-eOpxJVIl.js.map → node/module-CuTg45ct.mjs.map} +1 -1
  58. package/dist/node/pieces/ai/descriptor.json +1 -1
  59. package/dist/node/pieces/ai/package.json +1 -1
  60. package/dist/node/pieces/reactor/descriptor.json +1 -1
  61. package/dist/node/pieces/reactor/package.json +1 -1
  62. package/dist/node/{runtime-queries-CatdoDey.mjs → runtime-queries-VXJsWno5.mjs} +110 -5
  63. package/dist/node/runtime-queries-VXJsWno5.mjs.map +1 -0
  64. package/dist/node/{trigger-text-yNCaB6pd.mjs → trigger-text-DeWNwuoF.mjs} +392 -387
  65. package/dist/node/trigger-text-DeWNwuoF.mjs.map +1 -0
  66. package/dist/node/{upgrade-manifests-C4akaA_X.mjs → upgrade-manifests-BA5OaR4H.mjs} +2 -2
  67. package/dist/node/{upgrade-manifests-C4akaA_X.mjs.map → upgrade-manifests-BA5OaR4H.mjs.map} +1 -1
  68. package/dist/node/{workflow-DqF9VsBQ.mjs → workflow-BgURVzdc.mjs} +2 -2
  69. package/dist/node/{workflow-DqF9VsBQ.mjs.map → workflow-BgURVzdc.mjs.map} +1 -1
  70. package/dist/powerhouse.manifest.json +2 -2
  71. package/dist/style.css +1 -1
  72. package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts +1 -1
  73. package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts.map +1 -1
  74. package/dist/types/editors/shared/controls.d.ts.map +1 -1
  75. package/dist/types/editors/shared/data-tree.d.ts.map +1 -1
  76. package/dist/types/editors/shared/icons.d.ts +1 -0
  77. package/dist/types/editors/shared/icons.d.ts.map +1 -1
  78. package/dist/types/editors/workflow-editor/editor.d.ts.map +1 -1
  79. package/dist/types/editors/workflow-editor/runtime-client.d.ts +39 -0
  80. package/dist/types/editors/workflow-editor/runtime-client.d.ts.map +1 -1
  81. package/dist/types/editors/workflow-editor/runtime-context.d.ts +10 -1
  82. package/dist/types/editors/workflow-editor/runtime-context.d.ts.map +1 -1
  83. package/dist/types/editors/workflow-editor/runtime-queries.d.ts +21 -1
  84. package/dist/types/editors/workflow-editor/runtime-queries.d.ts.map +1 -1
  85. package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts.map +1 -1
  86. package/dist/types/editors/workflow-editor/ui/PieceMarkdown.d.ts +2 -1
  87. package/dist/types/editors/workflow-editor/ui/PieceMarkdown.d.ts.map +1 -1
  88. package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts +4 -0
  89. package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts.map +1 -1
  90. package/dist/types/editors/workflow-editor/ui/block-meta.d.ts.map +1 -1
  91. package/dist/types/editors/workflow-editor/ui/blocks.d.ts +4 -0
  92. package/dist/types/editors/workflow-editor/ui/blocks.d.ts.map +1 -1
  93. package/dist/types/editors/workflow-editor/ui/query-keys.d.ts +9 -0
  94. package/dist/types/editors/workflow-editor/ui/query-keys.d.ts.map +1 -1
  95. package/dist/types/editors/workflow-studio/components/RunsTable.d.ts.map +1 -1
  96. package/dist/types/editors/workflow-studio/components/Sidebar.d.ts +3 -0
  97. package/dist/types/editors/workflow-studio/components/Sidebar.d.ts.map +1 -1
  98. package/dist/types/editors/workflow-studio/components/Waitpoints.d.ts +49 -0
  99. package/dist/types/editors/workflow-studio/components/Waitpoints.d.ts.map +1 -0
  100. package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts +3 -0
  101. package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts.map +1 -1
  102. package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts.map +1 -1
  103. package/dist/types/editors/workflow-studio/components/run-format.d.ts +2 -1
  104. package/dist/types/editors/workflow-studio/components/run-format.d.ts.map +1 -1
  105. package/dist/types/editors/workflow-studio/components/waitpoints-view.test.d.ts +2 -0
  106. package/dist/types/editors/workflow-studio/components/waitpoints-view.test.d.ts.map +1 -0
  107. package/dist/types/editors/workflow-studio/components/waitpoints.test.d.ts +2 -0
  108. package/dist/types/editors/workflow-studio/components/waitpoints.test.d.ts.map +1 -0
  109. package/dist/types/test/waitpoint-record.d.ts +3 -0
  110. package/dist/types/test/waitpoint-record.d.ts.map +1 -0
  111. package/dist/workflow.css +2 -0
  112. package/package.json +9 -9
  113. package/dist/browser/BlockSelector-CtoMNZ9A.js.map +0 -1
  114. package/dist/browser/PieceMarkdown-U6OUTwRi.js.map +0 -1
  115. package/dist/browser/data-tree-CjWQllC7.js.map +0 -1
  116. package/dist/browser/editor-B1AzXxaF.js.map +0 -1
  117. package/dist/browser/runtime-queries-LAcyniYz.js.map +0 -1
  118. package/dist/browser/trigger-text-BgpPIXEJ.js.map +0 -1
  119. package/dist/node/BlockSelector-CbdgYJfp.mjs.map +0 -1
  120. package/dist/node/editor-D3MlbYBN.mjs.map +0 -1
  121. package/dist/node/module-D9Zx5Zow.mjs.map +0 -1
  122. package/dist/node/runtime-queries-CatdoDey.mjs.map +0 -1
  123. package/dist/node/trigger-text-yNCaB6pd.mjs.map +0 -1
@@ -2,7 +2,7 @@ import { lazy } from "react";
2
2
  //#region editors/connection-editor/module.ts
3
3
  /** Document editor module for the "powerhouse/connection" document type */
4
4
  const ConnectionEditor = {
5
- Component: lazy(() => import("../../editor-DzxyNgYk.mjs")),
5
+ Component: lazy(() => import("../../editor-GSV1jiWZ.mjs")),
6
6
  documentTypes: ["powerhouse/connection"],
7
7
  config: {
8
8
  id: "connection-editor",
@@ -1,2 +1,2 @@
1
- import { G as fetchRuns, H as RuntimeRequestError, K as fetchRunsPage, U as createRuntimeClient, W as fetchRun, c as runQuery, l as runsOfPages, q as isSyncingError, r as createRuntimeQueryClient, s as runPagesQuery, u as runsQuery } from "../../runtime-queries-CatdoDey.mjs";
1
+ import { G as fetchRun, J as isSyncingError, K as fetchRuns, U as RuntimeRequestError, W as createRuntimeClient, c as runQuery, l as runsOfPages, q as fetchRunsPage, r as createRuntimeQueryClient, s as runPagesQuery, u as runsQuery } from "../../runtime-queries-VXJsWno5.mjs";
2
2
  export { RuntimeRequestError, createRuntimeClient, createRuntimeQueryClient, fetchRun, fetchRuns, fetchRunsPage, isSyncingError, runPagesQuery, runQuery, runsOfPages, runsQuery };
@@ -2,7 +2,7 @@ import { lazy } from "react";
2
2
  //#region editors/workflow-editor/module.ts
3
3
  /** Document editor module for the "powerhouse/workflow" document type */
4
4
  const WorkflowEditor = {
5
- Component: lazy(() => import("../../editor-BGz1Ljdk.mjs")),
5
+ Component: lazy(() => import("../../editor-CdIYZSrv.mjs")),
6
6
  documentTypes: ["powerhouse/workflow"],
7
7
  config: {
8
8
  id: "workflow-editor",
@@ -2,7 +2,7 @@ import { lazy } from "react";
2
2
  //#region editors/workflow-studio/module.ts
3
3
  /** Document editor module for the "powerhouse/document-drive" document type */
4
4
  const WorkflowStudio = {
5
- Component: lazy(() => import("../../editor-D3MlbYBN.mjs")),
5
+ Component: lazy(() => import("../../editor-rbgFzhV5.mjs")),
6
6
  documentTypes: ["powerhouse/document-drive"],
7
7
  config: {
8
8
  id: "workflow-studio",
@@ -1,8 +1,8 @@
1
1
  import { h as REACTOR_CONNECTOR_ID, t as Connection } from "./module-BEEASith.mjs";
2
2
  import { i as connectorIdForPiece, l as planFromAuth, o as isConfigValueMissing, s as packageFromConnectorId } from "./piece-auth-C0u0XTO8.mjs";
3
- import { Q as REACTOR_PIECE, U as createRuntimeClient, V as DEFAULT_RUNTIME_URL, X as CORE_PIECE, n as catalogQuery, r as createRuntimeQueryClient, t as blockFormQuery, vt as flowPorts } from "./runtime-queries-CatdoDey.mjs";
4
- import { t as Workflow } from "./module-D9Zx5Zow.mjs";
5
- import { t as upgradeManifests } from "./upgrade-manifests-C4akaA_X.mjs";
3
+ import { Ct as flowPorts, H as DEFAULT_RUNTIME_URL, Q as CORE_PIECE, W as createRuntimeClient, n as catalogQuery, r as createRuntimeQueryClient, t as blockFormQuery, tt as REACTOR_PIECE } from "./runtime-queries-VXJsWno5.mjs";
4
+ import { t as Workflow } from "./module-CuTg45ct.mjs";
5
+ import { t as upgradeManifests } from "./upgrade-manifests-BA5OaR4H.mjs";
6
6
  import { ConnectionEditor } from "./editors/connection-editor/module.mjs";
7
7
  import { WorkflowEditor } from "./editors/workflow-editor/module.mjs";
8
8
  import { WorkflowStudio } from "./editors/workflow-studio/module.mjs";
@@ -538,7 +538,7 @@ const documentModel = {
538
538
  initialValue: ""
539
539
  },
540
540
  global: {
541
- schema: "enum WorkflowStatus {\n DRAFT\n ENABLED\n DISABLED\n ARCHIVED\n}\n\nenum RunStatus {\n PENDING\n RUNNING\n WAITING\n SUCCEEDED\n FAILED\n CANCELLED\n PARKED\n}\n\nenum ConcurrencyMode {\n SINGLETON\n QUEUE\n PARALLEL\n}\n\nenum FailureMode {\n PARK\n NOTIFY\n IGNORE\n}\n\nenum BackoffKind {\n FIXED\n EXPONENTIAL\n}\n\ntype RetryPolicy {\n \"Attempts, not retries: 1 is no retry. Clamped to 10 by the runtime, since each attempt re-runs a side effect and holds the run's worker slot.\"\n maxAttempts: Int!\n backoff: BackoffKind!\n initialDelaySeconds: Int!\n maxDelaySeconds: Int!\n \"Error classes that are retryable, matched against the error's class name or anywhere in its message, case-insensitively. EMPTY admits every error: an empty list with maxAttempts > 1 means retry, not never-retry.\"\n retryOn: [String!]!\n}\n\nenum PropertyMode {\n \"The field's own control.\"\n MANUAL\n \"The author switched the field to a free {{…}} expression.\"\n EXPRESSION\n}\n\ntype PropertySetting {\n prop: String!\n mode: PropertyMode!\n \"Resolved DynamicProperties children, options stripped.\"\n schema: Unknown\n}\n\n\"Reference to the latest test run in the run store.\"\ntype StepTestRecord {\n runId: String!\n testedAt: DateTime!\n}\n\n\"Layout only. The runtime ignores it.\"\ntype Point {\n x: Float!\n y: Float!\n}\n\ntype TriggerBinding {\n id: OID!\n \"Package name of the trigger's piece, e.g. '@powerhousedao/piece-core' or '@acme/piece-imap'.\"\n pieceName: String!\n \"Exact semver of the piece, e.g. '1.2.0'.\"\n pieceVersion: String!\n \"Trigger name within the piece, e.g. 'schedule' or 'new_message'.\"\n triggerName: String!\n \"Connection document id, when the trigger's connector requires one.\"\n connectionId: PHID\n \"Reactor connection document id, when the trigger declares requireReactor.\"\n reactorConnectionId: PHID\n \"Validated against the trigger's configSchema.\"\n config: Unknown!\n propertySettings: [PropertySetting!]\n lastTest: StepTestRecord\n \"Timestamp of the last real edit; a lastTest before it is stale.\"\n updatedAt: DateTime\n}\n\ntype WorkflowStep {\n id: OID!\n \"Author-visible label; unique within the workflow; used in expressions.\"\n key: String!\n name: String!\n \"Package name of the step's piece, e.g. '@powerhousedao/piece-core' or '@activepieces/piece-http'.\"\n pieceName: String!\n \"Exact semver of the piece, e.g. '0.11.19'.\"\n pieceVersion: String!\n \"Action name within the piece, e.g. 'branch' or 'send_request'.\"\n actionName: String!\n connectionId: PHID\n \"Reactor connection document id, when the action declares requireReactor.\"\n reactorConnectionId: PHID\n config: Unknown!\n \"ENFORCED. Per-step override of the workflow default retry policy.\"\n retry: RetryPolicy\n \"ENFORCED. Also raises the cap on each host call the step's piece makes, which is never shorter than the step's own timeout.\"\n timeoutSeconds: Int\n \"NOT YET ENFORCED. Expression yielding a stable key; two executions with the same key are one side effect. A fire is deduplicated on its trigger operation or a trigger item's _dedupe_key, never on a step expression.\"\n idempotencyKeyExpression: String\n position: Point\n propertySettings: [PropertySetting!]\n lastTest: StepTestRecord\n \"Skipped steps are passed over at run time.\"\n skip: Boolean\n \"Timestamp of the last real edit; a lastTest before it is stale.\"\n updatedAt: DateTime\n}\n\ntype WorkflowEdge {\n id: OID!\n \"Source step id, or the trigger id for the entry edge.\"\n from: OID!\n to: OID!\n \"Output port of the source, one it declares: 'next' and 'error' for a piece action, 'next' for the trigger, 'true', 'false' and 'error' for a branch.\"\n port: String!\n \"Optional guard expression; the edge is taken only when it evaluates truthy.\"\n condition: String\n}\n\nenum VariableType {\n TEXT\n NUMBER\n BOOLEAN\n JSON\n \"value is a secret-provider handle (the format of a connection SecretRef.ref), never the plaintext.\"\n SECRET\n}\n\ntype WorkflowVariable {\n id: OID!\n \"Name used in expressions.\"\n key: String!\n \"The value a run reads as variables.<key>.\"\n value: Unknown\n description: String\n \"Null means untyped; consumers infer the kind of value it holds.\"\n type: VariableType\n}\n\ntype WorkflowPolicy {\n \"ENFORCED. SINGLETON drops a firing while a run is active (journaled CANCELLED, not dropped silently); QUEUE serialises; PARALLEL runs concurrently.\"\n concurrency: ConcurrencyMode!\n \"ENFORCED under PARALLEL: how many runs of this workflow may execute at once; null is unbounded. SINGLETON and QUEUE are 1 by definition.\"\n maxParallelRuns: Int\n \"ENFORCED. Checked between steps and while a retry waits; past it the run ends CANCELLED.\"\n runTimeoutSeconds: Int!\n \"NOT YET ENFORCED. Bounds how long a run may stay suspended on a waitpoint - but nothing suspends: waitpoints, run.pause and generateResumeUrl all throw, so there is no suspended state to bound.\"\n maxSuspensionDays: Int!\n \"ENFORCED. The fallback for a step with no retry of its own.\"\n defaultRetry: RetryPolicy!\n \"ENFORCED. What happens to a run whose steps have all failed terminally: PARK takes the trigger out of the supervisor's ENABLED set until the workflow is re-published or re-enabled, NOTIFY logs at error level (the only notification channel this engine has), IGNORE does nothing.\"\n onFailure: FailureMode!\n \"NOT YET ENFORCED per workflow. Retention is a journal-wide sweep on the relational handle, which has no reactor read to resolve a per-workflow window with; PH_WORKFLOWS_RUN_RETENTION_DAYS (30 days by default) is the control that applies.\"\n retainRunsDays: Int!\n \"NOT YET ENFORCED. The run journal is relational; there is no run document model to write.\"\n journalAsDocument: Boolean!\n}\n\n\"Snapshot of the draft taken by PUBLISH_WORKFLOW.\"\ntype PublishedWorkflow {\n \"Draft version the snapshot was taken at.\"\n version: Int!\n publishedAt: DateTime!\n trigger: TriggerBinding\n steps: [WorkflowStep!]!\n edges: [WorkflowEdge!]!\n variables: [WorkflowVariable!]!\n policy: WorkflowPolicy!\n}\n\ntype WorkflowState {\n name: String!\n description: String\n \"Only ENABLED workflows get trigger instances.\"\n status: WorkflowStatus!\n \"Bumped on every draft edit; REVERT_TO_PUBLISHED resets it to published.version. A run records the version it executed.\"\n version: Int!\n trigger: TriggerBinding\n steps: [WorkflowStep!]!\n edges: [WorkflowEdge!]!\n variables: [WorkflowVariable!]!\n policy: WorkflowPolicy!\n \"Last published snapshot; version !== published.version means unpublished changes.\"\n published: PublishedWorkflow\n \"Who keeps this workflow as it is, e.g. an app's integration; null: people edit it. Editors show a managed workflow read-only.\"\n managedBy: WorkflowManager\n \"Denormalised for inspectors; written by the runtime.\"\n lastRunAt: DateTime\n lastRunStatus: RunStatus\n}\n\n\"What manages a workflow: the document that defines it, and how to name it to a person.\"\ntype WorkflowManager {\n documentId: PHID!\n \"e.g. sektar/integration\"\n documentType: String!\n \"e.g. Powerhouse - Google Calendar\"\n label: String!\n}\n",
541
+ schema: "enum WorkflowStatus {\n DRAFT\n ENABLED\n DISABLED\n ARCHIVED\n}\n\nenum RunStatus {\n PENDING\n RUNNING\n WAITING\n SUCCEEDED\n FAILED\n CANCELLED\n PARKED\n}\n\nenum ConcurrencyMode {\n SINGLETON\n QUEUE\n PARALLEL\n}\n\nenum FailureMode {\n PARK\n NOTIFY\n IGNORE\n}\n\nenum BackoffKind {\n FIXED\n EXPONENTIAL\n}\n\ntype RetryPolicy {\n \"Attempts, not retries: 1 is no retry. Clamped to 10 by the runtime, since each attempt re-runs a side effect and holds the run's worker slot.\"\n maxAttempts: Int!\n backoff: BackoffKind!\n initialDelaySeconds: Int!\n maxDelaySeconds: Int!\n \"Error classes that are retryable, matched against the error's class name or anywhere in its message, case-insensitively. EMPTY admits every error: an empty list with maxAttempts > 1 means retry, not never-retry.\"\n retryOn: [String!]!\n}\n\nenum PropertyMode {\n \"The field's own control.\"\n MANUAL\n \"The author switched the field to a free {{…}} expression.\"\n EXPRESSION\n}\n\ntype PropertySetting {\n prop: String!\n mode: PropertyMode!\n \"Resolved DynamicProperties children, options stripped.\"\n schema: Unknown\n}\n\n\"Reference to the latest test run in the run store.\"\ntype StepTestRecord {\n runId: String!\n testedAt: DateTime!\n}\n\n\"Layout only. The runtime ignores it.\"\ntype Point {\n x: Float!\n y: Float!\n}\n\ntype TriggerBinding {\n id: OID!\n \"Package name of the trigger's piece, e.g. '@powerhousedao/piece-core' or '@acme/piece-imap'.\"\n pieceName: String!\n \"Exact semver of the piece, e.g. '1.2.0'.\"\n pieceVersion: String!\n \"Trigger name within the piece, e.g. 'schedule' or 'new_message'.\"\n triggerName: String!\n \"Connection document id, when the trigger's connector requires one.\"\n connectionId: PHID\n \"Reactor connection document id, when the trigger declares requireReactor.\"\n reactorConnectionId: PHID\n \"Validated against the trigger's configSchema.\"\n config: Unknown!\n propertySettings: [PropertySetting!]\n lastTest: StepTestRecord\n \"Timestamp of the last real edit; a lastTest before it is stale.\"\n updatedAt: DateTime\n}\n\ntype WorkflowStep {\n id: OID!\n \"Author-visible label; unique within the workflow; used in expressions.\"\n key: String!\n name: String!\n \"Package name of the step's piece, e.g. '@powerhousedao/piece-core' or '@activepieces/piece-http'.\"\n pieceName: String!\n \"Exact semver of the piece, e.g. '0.11.19'.\"\n pieceVersion: String!\n \"Action name within the piece, e.g. 'branch' or 'send_request'.\"\n actionName: String!\n connectionId: PHID\n \"Reactor connection document id, when the action declares requireReactor.\"\n reactorConnectionId: PHID\n config: Unknown!\n \"ENFORCED. Per-step override of the workflow default retry policy.\"\n retry: RetryPolicy\n \"ENFORCED. Also raises the cap on each host call the step's piece makes, which is never shorter than the step's own timeout.\"\n timeoutSeconds: Int\n \"NOT YET ENFORCED. Expression yielding a stable key; two executions with the same key are one side effect. A fire is deduplicated on its trigger operation or a trigger item's _dedupe_key, never on a step expression.\"\n idempotencyKeyExpression: String\n position: Point\n propertySettings: [PropertySetting!]\n lastTest: StepTestRecord\n \"Skipped steps are passed over at run time.\"\n skip: Boolean\n \"Timestamp of the last real edit; a lastTest before it is stale.\"\n updatedAt: DateTime\n}\n\ntype WorkflowEdge {\n id: OID!\n \"Source step id, or the trigger id for the entry edge.\"\n from: OID!\n to: OID!\n \"Output port of the source, one it declares: 'next' and 'error' for a piece action, 'next' for the trigger, 'true', 'false' and 'error' for a branch.\"\n port: String!\n \"Optional guard expression; the edge is taken only when it evaluates truthy.\"\n condition: String\n}\n\nenum VariableType {\n TEXT\n NUMBER\n BOOLEAN\n JSON\n \"value is a secret-provider handle (the format of a connection SecretRef.ref), never the plaintext.\"\n SECRET\n}\n\ntype WorkflowVariable {\n id: OID!\n \"Name used in expressions.\"\n key: String!\n \"The value a run reads as variables.<key>.\"\n value: Unknown\n description: String\n \"Null means untyped; consumers infer the kind of value it holds.\"\n type: VariableType\n}\n\ntype WorkflowPolicy {\n \"ENFORCED. SINGLETON drops a firing while a run is active (journaled CANCELLED, not dropped silently); QUEUE serialises; PARALLEL runs concurrently.\"\n concurrency: ConcurrencyMode!\n \"ENFORCED under PARALLEL: how many runs of this workflow may execute at once; null is unbounded. SINGLETON and QUEUE are 1 by definition.\"\n maxParallelRuns: Int\n \"ENFORCED. Checked between steps and while a retry waits; past it the run ends CANCELLED.\"\n runTimeoutSeconds: Int!\n \"Bounds how long a run may stay suspended on a waitpoint: a waitpoint expires this long after it is created, ending the run CANCELLED with WaitpointExpired. A Delay longer than this is refused.\"\n maxSuspensionDays: Int!\n \"ENFORCED. The fallback for a step with no retry of its own.\"\n defaultRetry: RetryPolicy!\n \"ENFORCED. What happens to a run whose steps have all failed terminally: PARK takes the trigger out of the supervisor's ENABLED set until the workflow is re-published or re-enabled, NOTIFY logs at error level (the only notification channel this engine has), IGNORE does nothing.\"\n onFailure: FailureMode!\n \"NOT YET ENFORCED per workflow. Retention is a journal-wide sweep on the relational handle, which has no reactor read to resolve a per-workflow window with; PH_WORKFLOWS_RUN_RETENTION_DAYS (30 days by default) is the control that applies.\"\n retainRunsDays: Int!\n \"NOT YET ENFORCED. The run journal is relational; there is no run document model to write.\"\n journalAsDocument: Boolean!\n}\n\n\"Snapshot of the draft taken by PUBLISH_WORKFLOW.\"\ntype PublishedWorkflow {\n \"Draft version the snapshot was taken at.\"\n version: Int!\n publishedAt: DateTime!\n trigger: TriggerBinding\n steps: [WorkflowStep!]!\n edges: [WorkflowEdge!]!\n variables: [WorkflowVariable!]!\n policy: WorkflowPolicy!\n}\n\ntype WorkflowState {\n name: String!\n description: String\n \"Only ENABLED workflows get trigger instances.\"\n status: WorkflowStatus!\n \"Bumped on every draft edit; REVERT_TO_PUBLISHED resets it to published.version. A run records the version it executed.\"\n version: Int!\n trigger: TriggerBinding\n steps: [WorkflowStep!]!\n edges: [WorkflowEdge!]!\n variables: [WorkflowVariable!]!\n policy: WorkflowPolicy!\n \"Last published snapshot; version !== published.version means unpublished changes.\"\n published: PublishedWorkflow\n \"Who keeps this workflow as it is, e.g. an app's integration; null: people edit it. Editors show a managed workflow read-only.\"\n managedBy: WorkflowManager\n \"Denormalised for inspectors; written by the runtime.\"\n lastRunAt: DateTime\n lastRunStatus: RunStatus\n}\n\n\"What manages a workflow: the document that defines it, and how to name it to a person.\"\ntype WorkflowManager {\n documentId: PHID!\n \"e.g. sektar/integration\"\n documentType: String!\n \"e.g. Powerhouse - Google Calendar\"\n label: String!\n}\n",
542
542
  examples: [],
543
543
  initialValue: "{\n \"name\": \"\",\n \"description\": null,\n \"status\": \"DRAFT\",\n \"version\": 0,\n \"trigger\": null,\n \"steps\": [],\n \"edges\": [],\n \"variables\": [],\n \"policy\": {\n \"concurrency\": \"QUEUE\",\n \"maxParallelRuns\": null,\n \"runTimeoutSeconds\": 3600,\n \"maxSuspensionDays\": 30,\n \"defaultRetry\": {\n \"maxAttempts\": 1,\n \"backoff\": \"FIXED\",\n \"initialDelaySeconds\": 5,\n \"maxDelaySeconds\": 300,\n \"retryOn\": []\n },\n \"onFailure\": \"PARK\",\n \"retainRunsDays\": 30,\n \"journalAsDocument\": false\n },\n \"published\": null,\n \"lastRunAt\": null,\n \"lastRunStatus\": null,\n \"managedBy\": null\n}"
544
544
  }
@@ -1796,4 +1796,4 @@ const Workflow = {
1796
1796
  //#endregion
1797
1797
  export { AddStepPropertySettingInputSchema as $, setTrigger as A, SetWorkflowDescriptionInputSchema as At, setLastRun as B, WorkflowManagerSchema as Bt, setWorkflowName as C, SetTriggerConfigInputSchema as Ct, setVariable as D, SetTriggerPieceVersionInputSchema as Dt, removeVariable as E, SetTriggerInputSchema as Et, creators_exports$3 as F, UpdateStepInputSchema as Ft, creators_exports$6 as G, WorkflowVariableSchema as Gt, creators_exports$5 as H, WorkflowStateSchema as Ht, removeStep as I, UpdateStepPositionInputSchema as It, creators_exports$7 as J, setPolicy as K, definedNonNullAnySchema as Kt, setStepConfig as L, UpdateStepRetryPolicyInputSchema as Lt, setTriggerConnection as M, SetWorkflowStatusInputSchema as Mt, setTriggerPieceVersion as N, StepTestRecordSchema as Nt, clearTrigger as O, SetTriggerPropertySettingInputSchema as Ot, addStep as P, TriggerBindingSchema as Pt, AddStepPositionInputSchema as Q, updateStep as R, VariableTypeSchema as Rt, setWorkflowDescription as S, SetStepConfigPropertySettingInputSchema as St, creators_exports$1 as T, SetTriggerConnectionInputSchema as Tt, publishWorkflow as U, WorkflowStatusSchema as Ut, setLastTest as V, WorkflowPolicySchema as Vt, revertToPublished as W, WorkflowStepSchema as Wt, AddEdgeInputSchema as X, removeEdge as Y, AddStepInputSchema as Z, reducer as _, SetLastTestInputSchema as _t, utils$1 as a, PointSchema as at, creators_exports as b, SetPolicyRetryPolicyInputSchema as bt, WorkflowPHStateSchema as c, PublishWorkflowInputSchema as ct, isWorkflowDocument as d, RemoveStepInputSchema as dt, AddStepRetryPolicyInputSchema as et, isWorkflowState as f, RemoveVariableInputSchema as ft, supportedVersions as g, SetLastRunInputSchema as gt, latestVersion as h, RunStatusSchema as ht, initialLocalState as i, FailureModeSchema as it, setTriggerConfig as j, SetWorkflowNameInputSchema as jt, creators_exports$2 as k, SetVariableInputSchema as kt, assertIsWorkflowDocument as l, PublishedWorkflowSchema as lt, workflowUpgradeManifest as m, RevertToPublishedInputSchema as mt, utils as n, ClearTriggerInputSchema as nt, WorkflowDocumentHeaderSchema as o, PropertyModeSchema as ot, workflowDocumentType as p, RetryPolicySchema as pt, addEdge as q, isDefinedNonNullAny as qt, initialGlobalState as r, ConcurrencyModeSchema as rt, WorkflowDocumentSchema as s, PropertySettingSchema as st, Workflow as t, BackoffKindSchema as tt, assertIsWorkflowState as u, RemoveEdgeInputSchema as ut, documentModel as v, SetManagedByInputSchema as vt, setWorkflowStatus as w, SetTriggerConfigPropertySettingInputSchema as wt, setManagedBy as x, SetStepConfigInputSchema as xt, actions as y, SetPolicyInputSchema as yt, creators_exports$4 as z, WorkflowEdgeSchema as zt };
1798
1798
 
1799
- //# sourceMappingURL=module-D9Zx5Zow.mjs.map
1799
+ //# sourceMappingURL=module-CuTg45ct.mjs.map