@powerhousedao/switchboard 6.2.3-dev.9 → 6.2.3-dev.90
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/.tsbuild/test/ai-gateway.test.d.ts +2 -0
- package/.tsbuild/test/ai-gateway.test.d.ts.map +1 -0
- package/.tsbuild/test/attachments/byte-grants.test.d.ts +2 -0
- package/.tsbuild/test/attachments/byte-grants.test.d.ts.map +1 -0
- package/.tsbuild/test/attachments/byte-routes-read-gate.integration.test.d.ts +2 -0
- package/.tsbuild/test/attachments/byte-routes-read-gate.integration.test.d.ts.map +1 -0
- package/.tsbuild/test/attachments/reserve-metadata-parity.test.d.ts +2 -0
- package/.tsbuild/test/attachments/reserve-metadata-parity.test.d.ts.map +1 -0
- package/.tsbuild/test/attachments/url-signer.test.d.ts +2 -0
- package/.tsbuild/test/attachments/url-signer.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-auth-config.test.d.ts +2 -0
- package/.tsbuild/test/boot-auth-config.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-create-signature-policy.test.d.ts +2 -0
- package/.tsbuild/test/boot-create-signature-policy.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-desktop-auth.test.d.ts +2 -0
- package/.tsbuild/test/boot-desktop-auth.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-env-isolation.test.d.ts +2 -0
- package/.tsbuild/test/boot-env-isolation.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-helpers.d.ts +5 -0
- package/.tsbuild/test/boot-helpers.d.ts.map +1 -0
- package/.tsbuild/test/boot-inspection-enabled.test.d.ts +2 -0
- package/.tsbuild/test/boot-inspection-enabled.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-mcp-auth.test.d.ts +2 -0
- package/.tsbuild/test/boot-mcp-auth.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-mcp-enabled.test.d.ts +2 -0
- package/.tsbuild/test/boot-mcp-enabled.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-port-zero.test.d.ts +2 -0
- package/.tsbuild/test/boot-port-zero.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-preconditions.test.d.ts +2 -0
- package/.tsbuild/test/boot-preconditions.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-privacy.test.d.ts +2 -0
- package/.tsbuild/test/boot-privacy.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-ready-drives.test.d.ts +2 -0
- package/.tsbuild/test/boot-ready-drives.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-unsupported-stored-documents.test.d.ts +2 -0
- package/.tsbuild/test/boot-unsupported-stored-documents.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-without-renown.test.d.ts +2 -0
- package/.tsbuild/test/boot-without-renown.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-without-require-signatures.test.d.ts +2 -0
- package/.tsbuild/test/boot-without-require-signatures.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-worker-trust-policy.test.d.ts +2 -0
- package/.tsbuild/test/boot-worker-trust-policy.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-workflow-singleton-conflict.test.d.ts +2 -0
- package/.tsbuild/test/boot-workflow-singleton-conflict.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-workflow-singleton-retry.test.d.ts +2 -0
- package/.tsbuild/test/boot-workflow-singleton-retry.test.d.ts.map +1 -0
- package/.tsbuild/test/builder-defaults.test.d.ts +2 -0
- package/.tsbuild/test/builder-defaults.test.d.ts.map +1 -0
- package/.tsbuild/test/config-from-env.test.d.ts +2 -0
- package/.tsbuild/test/config-from-env.test.d.ts.map +1 -0
- package/.tsbuild/test/config-merge.test.d.ts +2 -0
- package/.tsbuild/test/config-merge.test.d.ts.map +1 -0
- package/.tsbuild/test/config-schema.test.d.ts +2 -0
- package/.tsbuild/test/config-schema.test.d.ts.map +1 -0
- package/.tsbuild/test/create-signature-policy.test.d.ts +2 -0
- package/.tsbuild/test/create-signature-policy.test.d.ts.map +1 -0
- package/.tsbuild/test/default-drive-protocol-versions.test.d.ts +2 -0
- package/.tsbuild/test/default-drive-protocol-versions.test.d.ts.map +1 -0
- package/.tsbuild/test/default-drive-slug.test.d.ts +2 -0
- package/.tsbuild/test/default-drive-slug.test.d.ts.map +1 -0
- package/.tsbuild/test/delegated-publish.test.d.ts +2 -0
- package/.tsbuild/test/delegated-publish.test.d.ts.map +1 -0
- package/.tsbuild/test/durable-node-fs-pg16.test.d.ts +2 -0
- package/.tsbuild/test/durable-node-fs-pg16.test.d.ts.map +1 -0
- package/.tsbuild/test/fatal-shutdown.test.d.ts +2 -0
- package/.tsbuild/test/fatal-shutdown.test.d.ts.map +1 -0
- package/.tsbuild/test/inspection-throttle.test.d.ts +2 -0
- package/.tsbuild/test/inspection-throttle.test.d.ts.map +1 -0
- package/.tsbuild/test/keyframe-reclaim-store.test.d.ts +2 -0
- package/.tsbuild/test/keyframe-reclaim-store.test.d.ts.map +1 -0
- package/.tsbuild/test/observability-signals.test.d.ts +2 -0
- package/.tsbuild/test/observability-signals.test.d.ts.map +1 -0
- package/.tsbuild/test/permissions-backfill.test.d.ts +2 -0
- package/.tsbuild/test/permissions-backfill.test.d.ts.map +1 -0
- package/.tsbuild/test/pglite-preflight.test.d.ts +2 -0
- package/.tsbuild/test/pglite-preflight.test.d.ts.map +1 -0
- package/.tsbuild/test/pglite-storage-dirs.test.d.ts +2 -0
- package/.tsbuild/test/pglite-storage-dirs.test.d.ts.map +1 -0
- package/.tsbuild/test/pglite-store.test.d.ts +2 -0
- package/.tsbuild/test/pglite-store.test.d.ts.map +1 -0
- package/.tsbuild/test/plugin-config-schemas.test.d.ts +2 -0
- package/.tsbuild/test/plugin-config-schemas.test.d.ts.map +1 -0
- package/.tsbuild/test/plugin-presence.test.d.ts +2 -0
- package/.tsbuild/test/plugin-presence.test.d.ts.map +1 -0
- package/.tsbuild/test/port-probe.test.d.ts +2 -0
- package/.tsbuild/test/port-probe.test.d.ts.map +1 -0
- package/.tsbuild/test/processor-timing-log.test.d.ts +2 -0
- package/.tsbuild/test/processor-timing-log.test.d.ts.map +1 -0
- package/.tsbuild/test/renown-storage-path.test.d.ts +2 -0
- package/.tsbuild/test/renown-storage-path.test.d.ts.map +1 -0
- package/.tsbuild/test/renown-trust-policy.test.d.ts +2 -0
- package/.tsbuild/test/renown-trust-policy.test.d.ts.map +1 -0
- package/.tsbuild/test/served-schemas.test.d.ts +2 -0
- package/.tsbuild/test/served-schemas.test.d.ts.map +1 -0
- package/.tsbuild/test/shutdown.test.d.ts +2 -0
- package/.tsbuild/test/shutdown.test.d.ts.map +1 -0
- package/.tsbuild/test/snapshot-writer.d.ts +18 -0
- package/.tsbuild/test/snapshot-writer.d.ts.map +1 -0
- package/.tsbuild/test/store-lock.test.d.ts +2 -0
- package/.tsbuild/test/store-lock.test.d.ts.map +1 -0
- package/.tsbuild/test/two-switchboards.test.d.ts +2 -0
- package/.tsbuild/test/two-switchboards.test.d.ts.map +1 -0
- package/.tsbuild/test/unsupported-stored-documents.test.d.ts +2 -0
- package/.tsbuild/test/unsupported-stored-documents.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/harness.d.ts +56 -0
- package/.tsbuild/test/workflow/harness.d.ts.map +1 -0
- package/.tsbuild/test/workflow/oauth-apps-config.test.d.ts +2 -0
- package/.tsbuild/test/workflow/oauth-apps-config.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/oauth.test.d.ts +2 -0
- package/.tsbuild/test/workflow/oauth.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/resolvers.test.d.ts +2 -0
- package/.tsbuild/test/workflow/resolvers.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/runtime-host.test.d.ts +2 -0
- package/.tsbuild/test/workflow/runtime-host.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/waitpoint-routes.test.d.ts +2 -0
- package/.tsbuild/test/workflow/waitpoint-routes.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/waitpoint-runtime.test.d.ts +2 -0
- package/.tsbuild/test/workflow/waitpoint-runtime.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/webhook-dedupe.test.d.ts +2 -0
- package/.tsbuild/test/workflow/webhook-dedupe.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/webhook-signed.test.d.ts +2 -0
- package/.tsbuild/test/workflow/webhook-signed.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/webhook-trigger-test.test.d.ts +2 -0
- package/.tsbuild/test/workflow/webhook-trigger-test.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow/webhook-unsigned.test.d.ts +2 -0
- package/.tsbuild/test/workflow/webhook-unsigned.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow-reactor-access.test.d.ts +2 -0
- package/.tsbuild/test/workflow-reactor-access.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow-reactor-enforcement.test.d.ts +2 -0
- package/.tsbuild/test/workflow-reactor-enforcement.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow-read-gate.test.d.ts +2 -0
- package/.tsbuild/test/workflow-read-gate.test.d.ts.map +1 -0
- package/.tsbuild/test/workflow-runtime.test.d.ts +2 -0
- package/.tsbuild/test/workflow-runtime.test.d.ts.map +1 -0
- package/.tsbuild/test/workflows-plugin-config.test.d.ts +2 -0
- package/.tsbuild/test/workflows-plugin-config.test.d.ts.map +1 -0
- package/.tsbuild/tsconfig.tsbuildinfo +1 -1
- package/.tsbuild/tsdown.config.d.ts.map +1 -1
- package/.tsbuild/vitest.config.d.ts.map +1 -1
- package/Auth.md +144 -2
- package/CHANGELOG.md +1206 -0
- package/README.md +88 -14
- package/dist/boot.d.mts +46 -0
- package/dist/boot.d.mts.map +1 -0
- package/dist/boot.mjs +67 -0
- package/dist/boot.mjs.map +1 -0
- package/dist/config/from-env.d.mts +15 -0
- package/dist/config/from-env.d.mts.map +1 -0
- package/dist/config/from-env.mjs +4 -0
- package/dist/config/schema.d.mts +3 -0
- package/dist/config/schema.mjs +4 -0
- package/dist/from-env-DJ4iQ3QZ.mjs +473 -0
- package/dist/from-env-DJ4iQ3QZ.mjs.map +1 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +84 -84
- package/dist/index.mjs.map +1 -1
- package/dist/install-packages.d.mts +2 -1
- package/dist/install-packages.mjs +2 -2
- package/dist/install-packages.mjs.map +1 -1
- package/dist/mcp-SsBK14Jm.mjs +32 -0
- package/dist/mcp-SsBK14Jm.mjs.map +1 -0
- package/dist/migrate.d.mts +2 -1
- package/dist/migrate.mjs +7 -5
- package/dist/migrate.mjs.map +1 -1
- package/dist/plugin-host-BHEUSn9G.d.mts +46 -0
- package/dist/plugin-host-BHEUSn9G.d.mts.map +1 -0
- package/dist/plugins/ai.d.mts +37 -0
- package/dist/plugins/ai.d.mts.map +1 -0
- package/dist/plugins/ai.mjs +400 -0
- package/dist/plugins/ai.mjs.map +1 -0
- package/dist/plugins/attachments.d.mts +33 -0
- package/dist/plugins/attachments.d.mts.map +1 -0
- package/dist/plugins/attachments.mjs +4 -0
- package/dist/plugins/mcp.d.mts +31 -0
- package/dist/plugins/mcp.d.mts.map +1 -0
- package/dist/plugins/mcp.mjs +4 -0
- package/dist/plugins/privacy.d.mts +22 -0
- package/dist/plugins/privacy.d.mts.map +1 -0
- package/dist/plugins/privacy.mjs +4 -0
- package/dist/plugins/workflows.d.mts +79 -0
- package/dist/plugins/workflows.d.mts.map +1 -0
- package/dist/plugins/workflows.mjs +4 -0
- package/dist/postgres-url-DTDhBjXX.mjs +11 -0
- package/dist/postgres-url-DTDhBjXX.mjs.map +1 -0
- package/dist/privacy-BO8Q25xI.mjs +44 -0
- package/dist/privacy-BO8Q25xI.mjs.map +1 -0
- package/dist/privacy-DxIJGH4P.mjs +91 -0
- package/dist/privacy-DxIJGH4P.mjs.map +1 -0
- package/dist/renown-layers-COZsrGQT.mjs +40 -0
- package/dist/renown-layers-COZsrGQT.mjs.map +1 -0
- package/dist/schema-1yj85yQD.mjs +326 -0
- package/dist/schema-1yj85yQD.mjs.map +1 -0
- package/dist/schema-ugrJupVH.d.mts +246 -0
- package/dist/schema-ugrJupVH.d.mts.map +1 -0
- package/dist/server-CgDvrUqE.mjs +2729 -0
- package/dist/server-CgDvrUqE.mjs.map +1 -0
- package/dist/server.d.mts +129 -189
- package/dist/server.d.mts.map +1 -1
- package/dist/server.mjs +5 -5
- package/dist/types-DzO3_320.d.mts +308 -0
- package/dist/types-DzO3_320.d.mts.map +1 -0
- package/dist/utils-Cm0TE6dP.mjs +148 -0
- package/dist/utils-Cm0TE6dP.mjs.map +1 -0
- package/dist/utils.d.mts +30 -5
- package/dist/utils.d.mts.map +1 -1
- package/dist/utils.mjs +5 -4
- package/dist/worker-pool-gyxJnCxA.mjs +304 -0
- package/dist/worker-pool-gyxJnCxA.mjs.map +1 -0
- package/dist/workflow-runtime-CF5pc8mt.d.mts +33 -0
- package/dist/workflow-runtime-CF5pc8mt.d.mts.map +1 -0
- package/dist/workflows-C9BQlyT0.mjs +1943 -0
- package/dist/workflows-C9BQlyT0.mjs.map +1 -0
- package/package.json +85 -24
- package/scripts/install-packages.sh +0 -0
- package/test/ai-gateway.test.ts +612 -0
- package/test/attachment-reference-read-model.test.ts +28 -20
- package/test/attachments/auth.test.ts +85 -0
- package/test/attachments/byte-grants.test.ts +290 -0
- package/test/attachments/byte-routes-read-gate.integration.test.ts +314 -0
- package/test/attachments/download-target.test.ts +211 -32
- package/test/attachments/index.test.ts +47 -4
- package/test/attachments/reserve-metadata-parity.test.ts +96 -0
- package/test/attachments/routes-integration.test.ts +60 -4
- package/test/attachments/routes.test.ts +297 -35
- package/test/attachments/service-config.test.ts +41 -19
- package/test/attachments/url-signer.test.ts +105 -0
- package/test/boot-auth-config.test.ts +109 -0
- package/test/boot-create-signature-policy.test.ts +110 -0
- package/test/boot-desktop-auth.test.ts +278 -0
- package/test/boot-env-isolation.test.ts +26 -0
- package/test/boot-helpers.ts +19 -0
- package/test/boot-inspection-enabled.test.ts +140 -0
- package/test/boot-mcp-auth.test.ts +449 -0
- package/test/boot-mcp-enabled.test.ts +119 -0
- package/test/boot-port-zero.test.ts +101 -0
- package/test/boot-preconditions.test.ts +213 -0
- package/test/boot-privacy.test.ts +232 -0
- package/test/boot-ready-drives.test.ts +141 -0
- package/test/boot-unsupported-stored-documents.test.ts +214 -0
- package/test/boot-without-renown.test.ts +83 -0
- package/test/boot-without-require-signatures.test.ts +76 -0
- package/test/boot-worker-trust-policy.test.ts +91 -0
- package/test/boot-workflow-singleton-conflict.test.ts +109 -0
- package/test/boot-workflow-singleton-retry.test.ts +122 -0
- package/test/builder-defaults.test.ts +80 -0
- package/test/config-from-env.test.ts +942 -0
- package/test/config-merge.test.ts +226 -0
- package/test/config-schema.test.ts +156 -0
- package/test/create-signature-policy.test.ts +69 -0
- package/test/default-drive-protocol-versions.test.ts +79 -0
- package/test/default-drive-slug.test.ts +265 -0
- package/test/delegated-publish.test.ts +435 -0
- package/test/durable-node-fs-pg16.test.ts +80 -0
- package/test/fatal-shutdown.test.ts +205 -0
- package/test/goldens/packages.graphql +797 -0
- package/test/goldens/privacy.graphql +853 -0
- package/test/goldens/reactor-drive-nodes.graphql +827 -0
- package/test/goldens/resolvers.json +327 -0
- package/test/goldens/supergraph.graphql +5918 -0
- package/test/goldens/workflow-runtime.graphql +1548 -0
- package/test/inspection-throttle.test.ts +23 -0
- package/test/keyframe-reclaim-store.test.ts +156 -0
- package/test/observability-signals.test.ts +131 -0
- package/test/permissions-backfill.test.ts +486 -0
- package/test/pglite-dialect.test.ts +237 -2
- package/test/pglite-preflight.test.ts +313 -0
- package/test/pglite-storage-dirs.test.ts +113 -0
- package/test/pglite-store.test.ts +441 -0
- package/test/pglite-version.test.ts +9 -1
- package/test/plugin-config-schemas.test.ts +83 -0
- package/test/plugin-presence.test.ts +262 -0
- package/test/port-probe.test.ts +45 -0
- package/test/processor-timing-log.test.ts +109 -0
- package/test/redact-webhook-path.test.ts +9 -0
- package/test/renown-storage-path.test.ts +40 -0
- package/test/renown-trust-policy.test.ts +313 -0
- package/test/served-schemas.test.ts +134 -0
- package/test/shutdown.test.ts +278 -0
- package/test/snapshot-writer.ts +94 -0
- package/test/store-lock.test.ts +65 -0
- package/test/two-switchboards.test.ts +146 -0
- package/test/unsupported-stored-documents.test.ts +72 -0
- package/test/worker-pool.test.ts +27 -1
- package/test/workflow/harness.ts +289 -0
- package/test/workflow/oauth-apps-config.test.ts +66 -0
- package/test/workflow/oauth.test.ts +286 -0
- package/test/workflow/resolvers.test.ts +488 -0
- package/test/workflow/runtime-host.test.ts +19 -0
- package/test/workflow/waitpoint-routes.test.ts +306 -0
- package/test/workflow/waitpoint-runtime.test.ts +204 -0
- package/test/workflow/webhook-dedupe.test.ts +295 -0
- package/test/workflow/webhook-signed.test.ts +509 -0
- package/test/workflow/webhook-trigger-test.test.ts +82 -0
- package/test/workflow/webhook-unsigned.test.ts +345 -0
- package/test/workflow-reactor-access.test.ts +384 -0
- package/test/workflow-reactor-enforcement.test.ts +808 -0
- package/test/workflow-read-gate.test.ts +213 -0
- package/test/workflow-runtime.test.ts +1254 -0
- package/test/workflows-plugin-config.test.ts +77 -0
- package/tsconfig.json +11 -2
- package/tsdown.config.ts +13 -1
- package/vitest.config.ts +65 -0
- package/dist/server-CiKkVE6g.mjs +0 -1555
- package/dist/server-CiKkVE6g.mjs.map +0 -1
- package/dist/utils-Baw7rThP.mjs +0 -80
- package/dist/utils-Baw7rThP.mjs.map +0 -1
|
@@ -0,0 +1,1548 @@
|
|
|
1
|
+
directive @extends on OBJECT | INTERFACE
|
|
2
|
+
|
|
3
|
+
directive @external on FIELD_DEFINITION
|
|
4
|
+
|
|
5
|
+
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE
|
|
6
|
+
|
|
7
|
+
directive @provides(fields: _FieldSet!) on FIELD_DEFINITION
|
|
8
|
+
|
|
9
|
+
directive @requires(fields: _FieldSet!) on FIELD_DEFINITION
|
|
10
|
+
|
|
11
|
+
directive @tag(
|
|
12
|
+
name: String!
|
|
13
|
+
) repeatable on FIELD_DEFINITION | INTERFACE | OBJECT | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
|
|
14
|
+
|
|
15
|
+
scalar Address
|
|
16
|
+
|
|
17
|
+
scalar Amount
|
|
18
|
+
|
|
19
|
+
scalar Amount_Crypto
|
|
20
|
+
|
|
21
|
+
scalar Amount_Currency
|
|
22
|
+
|
|
23
|
+
scalar Amount_Fiat
|
|
24
|
+
|
|
25
|
+
scalar Amount_Money
|
|
26
|
+
|
|
27
|
+
scalar Amount_Percentage
|
|
28
|
+
|
|
29
|
+
scalar Amount_Tokens
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
Who may decide an approval, and how the editor renders it.
|
|
33
|
+
"""
|
|
34
|
+
type ApprovalRequest {
|
|
35
|
+
title: String!
|
|
36
|
+
"""
|
|
37
|
+
Markdown.
|
|
38
|
+
"""
|
|
39
|
+
body: String
|
|
40
|
+
approveLabel: String!
|
|
41
|
+
rejectLabel: String!
|
|
42
|
+
"""
|
|
43
|
+
none | reject | both
|
|
44
|
+
"""
|
|
45
|
+
reasonRequiredOn: String!
|
|
46
|
+
"""
|
|
47
|
+
DIDs allowed to decide; empty means anyone with write access.
|
|
48
|
+
"""
|
|
49
|
+
approvers: [String!]!
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
scalar AttachmentRef
|
|
53
|
+
|
|
54
|
+
"""
|
|
55
|
+
One action or trigger of a piece, as a workflow pins it. The engine's own
|
|
56
|
+
blocks are the piece @powerhousedao/piece-core.
|
|
57
|
+
"""
|
|
58
|
+
input BlockInput {
|
|
59
|
+
pieceName: String!
|
|
60
|
+
"""
|
|
61
|
+
Exact semver.
|
|
62
|
+
"""
|
|
63
|
+
pieceVersion: String!
|
|
64
|
+
"""
|
|
65
|
+
The action or trigger name.
|
|
66
|
+
"""
|
|
67
|
+
name: String!
|
|
68
|
+
"""
|
|
69
|
+
action | trigger
|
|
70
|
+
"""
|
|
71
|
+
kind: String!
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type BlockResolutionRecord {
|
|
75
|
+
"""
|
|
76
|
+
The trigger's or step's id.
|
|
77
|
+
"""
|
|
78
|
+
stepId: String!
|
|
79
|
+
pieceName: String!
|
|
80
|
+
"""
|
|
81
|
+
The version the block pins.
|
|
82
|
+
"""
|
|
83
|
+
pieceVersion: String!
|
|
84
|
+
"""
|
|
85
|
+
The action or trigger name.
|
|
86
|
+
"""
|
|
87
|
+
name: String!
|
|
88
|
+
"""
|
|
89
|
+
action | trigger
|
|
90
|
+
"""
|
|
91
|
+
kind: String!
|
|
92
|
+
"""
|
|
93
|
+
The version that runs; null when nothing resolves.
|
|
94
|
+
"""
|
|
95
|
+
resolvedVersion: String
|
|
96
|
+
"""
|
|
97
|
+
local | registry | activepieces | npm; null when nothing resolves.
|
|
98
|
+
"""
|
|
99
|
+
source: String
|
|
100
|
+
"""
|
|
101
|
+
exact | compatible | fallback | installed | missing
|
|
102
|
+
"""
|
|
103
|
+
match: String!
|
|
104
|
+
"""
|
|
105
|
+
Why the version that runs differs from the pin, or why nothing resolves.
|
|
106
|
+
"""
|
|
107
|
+
note: String
|
|
108
|
+
"""
|
|
109
|
+
The newest version any source offers.
|
|
110
|
+
"""
|
|
111
|
+
latestVersion: String
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
type BlockSearchHit {
|
|
115
|
+
pieceName: String!
|
|
116
|
+
"""
|
|
117
|
+
The version the hit is listed at; pin to it when picking the block.
|
|
118
|
+
"""
|
|
119
|
+
pieceVersion: String!
|
|
120
|
+
"""
|
|
121
|
+
The action or trigger name.
|
|
122
|
+
"""
|
|
123
|
+
name: String!
|
|
124
|
+
pieceDisplayName: String!
|
|
125
|
+
logoUrl: String!
|
|
126
|
+
displayName: String!
|
|
127
|
+
description: String!
|
|
128
|
+
"""
|
|
129
|
+
action | trigger
|
|
130
|
+
"""
|
|
131
|
+
kind: String!
|
|
132
|
+
"""
|
|
133
|
+
Triggers only: POLLING | WEBHOOK | APP_WEBHOOK | MANUAL
|
|
134
|
+
"""
|
|
135
|
+
strategy: String
|
|
136
|
+
"""
|
|
137
|
+
Why this block cannot run on this reactor; null when it can.
|
|
138
|
+
"""
|
|
139
|
+
unsupported: String
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
type Connection implements IDocument {
|
|
143
|
+
id: String!
|
|
144
|
+
name: String!
|
|
145
|
+
documentType: String!
|
|
146
|
+
operations(skip: Int, first: Int): [Operation!]!
|
|
147
|
+
revision: Int!
|
|
148
|
+
createdAtUtcIso: DateTime!
|
|
149
|
+
lastModifiedAtUtcIso: DateTime!
|
|
150
|
+
initialState: Connection_ConnectionState!
|
|
151
|
+
state: Connection_ConnectionState!
|
|
152
|
+
stateJSON: JSONObject
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
type ConnectionCheckResult {
|
|
156
|
+
ok: Boolean!
|
|
157
|
+
detail: String
|
|
158
|
+
"""
|
|
159
|
+
From auth.getConnectionIdentifier when the check passes; otherwise the
|
|
160
|
+
label the connection already holds.
|
|
161
|
+
"""
|
|
162
|
+
accountLabel: String
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
type ConnectionRecord {
|
|
166
|
+
id: String!
|
|
167
|
+
name: String!
|
|
168
|
+
connectorId: String!
|
|
169
|
+
authType: String!
|
|
170
|
+
status: String!
|
|
171
|
+
accountLabel: String
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
enum Connection_ConnectionAuthType {
|
|
175
|
+
SECRET_TEXT
|
|
176
|
+
BASIC_AUTH
|
|
177
|
+
CUSTOM_AUTH
|
|
178
|
+
OAUTH2
|
|
179
|
+
OIDC
|
|
180
|
+
NONE
|
|
181
|
+
"""
|
|
182
|
+
Reactor access for a piece's ctx.reactor; any piece may bind it.
|
|
183
|
+
"""
|
|
184
|
+
REACTOR
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
type Connection_ConnectionState {
|
|
188
|
+
name: String!
|
|
189
|
+
"""
|
|
190
|
+
Fully-qualified connector id: '@acme/connector-imap#imap'.
|
|
191
|
+
"""
|
|
192
|
+
connectorId: String!
|
|
193
|
+
"""
|
|
194
|
+
Activepieces auth kind, so a piece's PieceAuth maps directly.
|
|
195
|
+
"""
|
|
196
|
+
authType: Connection_ConnectionAuthType!
|
|
197
|
+
"""
|
|
198
|
+
Non-secret configuration, validated against the connector's auth schema; a ReactorConnectionConfig for REACTOR.
|
|
199
|
+
"""
|
|
200
|
+
config: Unknown!
|
|
201
|
+
"""
|
|
202
|
+
Secret handles; values never appear in state, operations, or the run journal.
|
|
203
|
+
"""
|
|
204
|
+
secretRefs: [Connection_SecretRef!]!
|
|
205
|
+
status: Connection_ConnectionStatus!
|
|
206
|
+
lastCheckedAt: DateTime
|
|
207
|
+
lastError: String
|
|
208
|
+
"""
|
|
209
|
+
Populated by the connector's own metadata call. Display only.
|
|
210
|
+
"""
|
|
211
|
+
accountLabel: String
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
enum Connection_ConnectionStatus {
|
|
215
|
+
UNCONFIGURED
|
|
216
|
+
OK
|
|
217
|
+
ERROR
|
|
218
|
+
REVOKED
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
"""
|
|
222
|
+
Config of a REACTOR connection. It holds no secrets.
|
|
223
|
+
"""
|
|
224
|
+
type Connection_ReactorConnectionConfig {
|
|
225
|
+
"""
|
|
226
|
+
Which reactor the connection reaches; 'local' is the only value.
|
|
227
|
+
"""
|
|
228
|
+
endpoint: String!
|
|
229
|
+
"""
|
|
230
|
+
'read' limits the connection to reads; absent allows what the step declares.
|
|
231
|
+
"""
|
|
232
|
+
access: String
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
type Connection_SecretRef {
|
|
236
|
+
id: OID!
|
|
237
|
+
"""
|
|
238
|
+
Matches an auth property name in the connector's config schema.
|
|
239
|
+
"""
|
|
240
|
+
name: String!
|
|
241
|
+
"""
|
|
242
|
+
Opaque handle into the host secret provider. Not the secret.
|
|
243
|
+
"""
|
|
244
|
+
ref: String!
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
scalar Currency
|
|
248
|
+
|
|
249
|
+
scalar Date
|
|
250
|
+
|
|
251
|
+
scalar DateTime
|
|
252
|
+
|
|
253
|
+
type DocumentDrive implements IDocument {
|
|
254
|
+
id: String!
|
|
255
|
+
name: String!
|
|
256
|
+
documentType: String!
|
|
257
|
+
operations(skip: Int, first: Int): [Operation!]!
|
|
258
|
+
revision: Int!
|
|
259
|
+
createdAtUtcIso: DateTime!
|
|
260
|
+
lastModifiedAtUtcIso: DateTime!
|
|
261
|
+
initialState: DocumentDrive_DocumentDriveState!
|
|
262
|
+
state: DocumentDrive_DocumentDriveState!
|
|
263
|
+
stateJSON: JSONObject
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
type DocumentDrive_DocumentDriveLocalState {
|
|
267
|
+
sharingType: String
|
|
268
|
+
listeners: [DocumentDrive_Listener!]!
|
|
269
|
+
triggers: [DocumentDrive_Trigger!]!
|
|
270
|
+
availableOffline: Boolean!
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
type DocumentDrive_DocumentDriveState {
|
|
274
|
+
name: String!
|
|
275
|
+
nodes: [DocumentDrive_Node!]!
|
|
276
|
+
icon: String
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
type DocumentDrive_FileNode {
|
|
280
|
+
id: String!
|
|
281
|
+
name: String!
|
|
282
|
+
kind: String!
|
|
283
|
+
documentType: String!
|
|
284
|
+
parentFolder: String
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
type DocumentDrive_FolderNode {
|
|
288
|
+
id: String!
|
|
289
|
+
name: String!
|
|
290
|
+
kind: String!
|
|
291
|
+
parentFolder: String
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type DocumentDrive_Listener {
|
|
295
|
+
listenerId: ID!
|
|
296
|
+
label: String
|
|
297
|
+
block: Boolean!
|
|
298
|
+
system: Boolean!
|
|
299
|
+
filter: DocumentDrive_ListenerFilter!
|
|
300
|
+
callInfo: DocumentDrive_ListenerCallInfo
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
type DocumentDrive_ListenerCallInfo {
|
|
304
|
+
transmitterType: DocumentDrive_TransmitterType
|
|
305
|
+
name: String
|
|
306
|
+
data: String
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
type DocumentDrive_ListenerFilter {
|
|
310
|
+
documentType: [String!]!
|
|
311
|
+
documentId: [ID!]
|
|
312
|
+
scope: [String!]
|
|
313
|
+
branch: [String!]
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
union DocumentDrive_Node = DocumentDrive_FolderNode | DocumentDrive_FileNode
|
|
317
|
+
|
|
318
|
+
type DocumentDrive_PullResponderTriggerData {
|
|
319
|
+
listenerId: ID!
|
|
320
|
+
url: String!
|
|
321
|
+
interval: String!
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
enum DocumentDrive_TransmitterType {
|
|
325
|
+
Internal
|
|
326
|
+
SwitchboardPush
|
|
327
|
+
PullResponder
|
|
328
|
+
SecureConnect
|
|
329
|
+
MatrixConnect
|
|
330
|
+
RESTWebhook
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
type DocumentDrive_Trigger {
|
|
334
|
+
id: ID!
|
|
335
|
+
type: DocumentDrive_TriggerType!
|
|
336
|
+
data: DocumentDrive_TriggerData
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
union DocumentDrive_TriggerData = DocumentDrive_PullResponderTriggerData
|
|
340
|
+
|
|
341
|
+
enum DocumentDrive_TriggerType {
|
|
342
|
+
PullResponder
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
type DocumentModel implements IDocument {
|
|
346
|
+
id: String!
|
|
347
|
+
name: String!
|
|
348
|
+
documentType: String!
|
|
349
|
+
operations(skip: Int, first: Int): [Operation!]!
|
|
350
|
+
revision: Int!
|
|
351
|
+
createdAtUtcIso: DateTime!
|
|
352
|
+
lastModifiedAtUtcIso: DateTime!
|
|
353
|
+
stateJSON: JSONObject
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
type DocumentModel_Author {
|
|
357
|
+
name: String!
|
|
358
|
+
website: String
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
type DocumentModel_CodeExample {
|
|
362
|
+
id: ID!
|
|
363
|
+
value: String!
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
type DocumentModel_DocumentModelGlobalState {
|
|
367
|
+
name: String!
|
|
368
|
+
id: String!
|
|
369
|
+
extension: String!
|
|
370
|
+
description: String!
|
|
371
|
+
author: DocumentModel_Author!
|
|
372
|
+
specifications: [DocumentModel_DocumentSpecification!]!
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
type DocumentModel_DocumentSpecification {
|
|
376
|
+
version: Int!
|
|
377
|
+
state: DocumentModel_ScopeState!
|
|
378
|
+
modules: [DocumentModel_Module!]!
|
|
379
|
+
changeLog: [String!]!
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
type DocumentModel_Module {
|
|
383
|
+
id: ID!
|
|
384
|
+
name: String!
|
|
385
|
+
description: String
|
|
386
|
+
operations: [DocumentModel_Operation!]!
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
type DocumentModel_Operation {
|
|
390
|
+
id: ID!
|
|
391
|
+
name: String
|
|
392
|
+
schema: String
|
|
393
|
+
description: String
|
|
394
|
+
template: String
|
|
395
|
+
errors: [DocumentModel_OperationError!]!
|
|
396
|
+
examples: [DocumentModel_CodeExample!]!
|
|
397
|
+
reducer: String
|
|
398
|
+
scope: String
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
type DocumentModel_OperationError {
|
|
402
|
+
id: ID!
|
|
403
|
+
code: String
|
|
404
|
+
name: String
|
|
405
|
+
description: String
|
|
406
|
+
template: String
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
type DocumentModel_ScopeState {
|
|
410
|
+
global: DocumentModel_State!
|
|
411
|
+
local: DocumentModel_State!
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
type DocumentModel_State {
|
|
415
|
+
schema: String!
|
|
416
|
+
initialValue: String!
|
|
417
|
+
examples: [DocumentModel_CodeExample!]!
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
type DriveDocument implements IDocument {
|
|
421
|
+
id: String!
|
|
422
|
+
name: String!
|
|
423
|
+
documentType: String!
|
|
424
|
+
revision: Int!
|
|
425
|
+
createdAtUtcIso: DateTime!
|
|
426
|
+
lastModifiedAtUtcIso: DateTime!
|
|
427
|
+
operations(first: Int, skip: Int): [Operation!]!
|
|
428
|
+
stateJSON: JSONObject
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
scalar EmailAddress
|
|
432
|
+
|
|
433
|
+
scalar EthereumAddress
|
|
434
|
+
|
|
435
|
+
type GqlDocument implements IDocument {
|
|
436
|
+
id: String!
|
|
437
|
+
name: String!
|
|
438
|
+
documentType: String!
|
|
439
|
+
revision: Int!
|
|
440
|
+
createdAtUtcIso: DateTime!
|
|
441
|
+
lastModifiedAtUtcIso: DateTime!
|
|
442
|
+
operations(first: Int, skip: Int): [Operation!]!
|
|
443
|
+
stateJSON: JSONObject
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
interface IDocument {
|
|
447
|
+
id: String!
|
|
448
|
+
name: String!
|
|
449
|
+
documentType: String!
|
|
450
|
+
revision: Int!
|
|
451
|
+
createdAtUtcIso: DateTime!
|
|
452
|
+
lastModifiedAtUtcIso: DateTime!
|
|
453
|
+
operations(first: Int, skip: Int): [Operation!]!
|
|
454
|
+
stateJSON: JSONObject
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
"""
|
|
458
|
+
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
|
|
459
|
+
"""
|
|
460
|
+
scalar JSONObject
|
|
461
|
+
|
|
462
|
+
type Mutation {
|
|
463
|
+
workflowRuntime: WorkflowRuntimeMutations!
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
type OAuthAttempt {
|
|
467
|
+
connectionId: String!
|
|
468
|
+
"""
|
|
469
|
+
PENDING | EXCHANGING | OK | ERROR
|
|
470
|
+
"""
|
|
471
|
+
status: String!
|
|
472
|
+
error: String
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
"""
|
|
476
|
+
How a host signs in with a publisher's OAuth2 app: DESKTOP, the app's
|
|
477
|
+
desktop client for a callback to this machine; WEB, its web client, whose
|
|
478
|
+
file this host has; RELAY, through the app's relay, which forwards the
|
|
479
|
+
provider's answer here and exchanges codes without this host holding the
|
|
480
|
+
secret; NONE, not at all.
|
|
481
|
+
"""
|
|
482
|
+
enum OAuthSignInMode {
|
|
483
|
+
DESKTOP
|
|
484
|
+
WEB
|
|
485
|
+
RELAY
|
|
486
|
+
NONE
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
type OAuthStart {
|
|
490
|
+
state: String!
|
|
491
|
+
"""
|
|
492
|
+
Where to send the user to sign in.
|
|
493
|
+
"""
|
|
494
|
+
authorizationUrl: String!
|
|
495
|
+
redirectUri: String!
|
|
496
|
+
expiresAt: String!
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
scalar OID
|
|
500
|
+
|
|
501
|
+
scalar OLabel
|
|
502
|
+
|
|
503
|
+
type Operation {
|
|
504
|
+
id: String!
|
|
505
|
+
type: String!
|
|
506
|
+
index: Int!
|
|
507
|
+
timestampUtcMs: DateTime!
|
|
508
|
+
hash: String!
|
|
509
|
+
skip: Int
|
|
510
|
+
inputText: String
|
|
511
|
+
error: String
|
|
512
|
+
context: PHOperationContext
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
scalar PHID
|
|
516
|
+
|
|
517
|
+
type PHOperationContext {
|
|
518
|
+
signer: Signer
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
type PieceSearchMatch {
|
|
522
|
+
pieceName: String!
|
|
523
|
+
pieceVersion: String!
|
|
524
|
+
displayName: String!
|
|
525
|
+
description: String!
|
|
526
|
+
logoUrl: String!
|
|
527
|
+
categories: [String!]!
|
|
528
|
+
"""
|
|
529
|
+
local | registry | activepieces
|
|
530
|
+
"""
|
|
531
|
+
source: String!
|
|
532
|
+
deprecated: Boolean
|
|
533
|
+
"""
|
|
534
|
+
Why no block of the piece can run on this reactor.
|
|
535
|
+
"""
|
|
536
|
+
unsupported: String
|
|
537
|
+
"""
|
|
538
|
+
Every query token matched the piece's own name.
|
|
539
|
+
"""
|
|
540
|
+
namedPiece: Boolean!
|
|
541
|
+
"""
|
|
542
|
+
Matching blocks of the kind asked for, best first.
|
|
543
|
+
"""
|
|
544
|
+
blocks: [BlockSearchHit!]!
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
type PieceSearchResult {
|
|
548
|
+
"""
|
|
549
|
+
ready | indexing | error
|
|
550
|
+
"""
|
|
551
|
+
status: String!
|
|
552
|
+
pieces: [PieceSearchMatch!]!
|
|
553
|
+
indexedPieces: Int!
|
|
554
|
+
error: String
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
type Query {
|
|
558
|
+
workflowRuntime: WorkflowRuntimeQueries!
|
|
559
|
+
_service: _Service!
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
type ReactorDrive implements IDocument {
|
|
563
|
+
id: String!
|
|
564
|
+
name: String!
|
|
565
|
+
documentType: String!
|
|
566
|
+
operations(skip: Int, first: Int): [Operation!]!
|
|
567
|
+
revision: Int!
|
|
568
|
+
createdAtUtcIso: DateTime!
|
|
569
|
+
lastModifiedAtUtcIso: DateTime!
|
|
570
|
+
initialState: ReactorDrive_ReactorDriveState!
|
|
571
|
+
state: ReactorDrive_ReactorDriveState!
|
|
572
|
+
stateJSON: JSONObject
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
type ReactorDrive_ReactorDriveLocalState {
|
|
576
|
+
sharingType: String!
|
|
577
|
+
availableOffline: Boolean!
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
type ReactorDrive_ReactorDriveState {
|
|
581
|
+
name: String!
|
|
582
|
+
icon: String
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
type ReactorGroup implements IDocument {
|
|
586
|
+
id: String!
|
|
587
|
+
name: String!
|
|
588
|
+
documentType: String!
|
|
589
|
+
operations(skip: Int, first: Int): [Operation!]!
|
|
590
|
+
revision: Int!
|
|
591
|
+
createdAtUtcIso: DateTime!
|
|
592
|
+
lastModifiedAtUtcIso: DateTime!
|
|
593
|
+
initialState: ReactorGroup_ReactorGroupState!
|
|
594
|
+
state: ReactorGroup_ReactorGroupState!
|
|
595
|
+
stateJSON: JSONObject
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
"""
|
|
599
|
+
A member address list gated by the group document's own auth scope. Addresses
|
|
600
|
+
are stored as given and compared case-insensitively, matching how { address }
|
|
601
|
+
principals are compared during auth evaluation.
|
|
602
|
+
"""
|
|
603
|
+
type ReactorGroup_ReactorGroupState {
|
|
604
|
+
"""
|
|
605
|
+
Display name of the group.
|
|
606
|
+
"""
|
|
607
|
+
name: String!
|
|
608
|
+
"""
|
|
609
|
+
Free-text description of the group's purpose.
|
|
610
|
+
"""
|
|
611
|
+
description: String!
|
|
612
|
+
"""
|
|
613
|
+
Member wallet addresses. No duplicates under case-insensitive comparison.
|
|
614
|
+
"""
|
|
615
|
+
members: [String!]!
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
type ReactorIdentity {
|
|
619
|
+
"""
|
|
620
|
+
The address the host signs as; null without a signed-in identity.
|
|
621
|
+
"""
|
|
622
|
+
address: String
|
|
623
|
+
"""
|
|
624
|
+
The did:key that signs the host's operations.
|
|
625
|
+
"""
|
|
626
|
+
key: String!
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
type RuntimeHost {
|
|
630
|
+
"""
|
|
631
|
+
switchboard@<machine>: what apps record as the runner
|
|
632
|
+
"""
|
|
633
|
+
id: String!
|
|
634
|
+
"""
|
|
635
|
+
The machine's name, for people: where a sign-in has to happen
|
|
636
|
+
"""
|
|
637
|
+
label: String!
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
type SecretRecord {
|
|
641
|
+
ref: String!
|
|
642
|
+
label: String
|
|
643
|
+
"""
|
|
644
|
+
The document the secret resolves for; null for a host secret (an OAuth app's).
|
|
645
|
+
"""
|
|
646
|
+
ownerId: String
|
|
647
|
+
"""
|
|
648
|
+
Whether the caller may rotate or delete it: its creator, able to write its owner.
|
|
649
|
+
"""
|
|
650
|
+
manageable: Boolean!
|
|
651
|
+
version: Int!
|
|
652
|
+
status: String!
|
|
653
|
+
createdAt: String!
|
|
654
|
+
updatedAt: String!
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
type Signer {
|
|
658
|
+
user: SignerUser
|
|
659
|
+
app: SignerApp
|
|
660
|
+
signatures: [String!]!
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
type SignerApp {
|
|
664
|
+
name: String!
|
|
665
|
+
key: String!
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
type SignerUser {
|
|
669
|
+
address: String!
|
|
670
|
+
networkId: String!
|
|
671
|
+
chainId: Int!
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
type TriggerStateRecord {
|
|
675
|
+
workflowId: String!
|
|
676
|
+
pieceName: String!
|
|
677
|
+
triggerName: String!
|
|
678
|
+
status: String!
|
|
679
|
+
intervalMs: Int!
|
|
680
|
+
nextPollAt: String
|
|
681
|
+
lastPollAt: String
|
|
682
|
+
lastError: String
|
|
683
|
+
consecutiveFailures: Int!
|
|
684
|
+
"""
|
|
685
|
+
When a webhook trigger next renews its subscription; null if it never does.
|
|
686
|
+
"""
|
|
687
|
+
nextRenewAt: String
|
|
688
|
+
"""
|
|
689
|
+
The last failed renewal, kept apart from lastError, the poll's.
|
|
690
|
+
"""
|
|
691
|
+
renewError: String
|
|
692
|
+
renewFailures: Int!
|
|
693
|
+
"""
|
|
694
|
+
The piece version the trigger armed with; null for a host-fed trigger.
|
|
695
|
+
"""
|
|
696
|
+
pieceVersion: String
|
|
697
|
+
pieceSource: String
|
|
698
|
+
versionMatch: String
|
|
699
|
+
versionNote: String
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
scalar URL
|
|
703
|
+
|
|
704
|
+
"""
|
|
705
|
+
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
|
|
706
|
+
"""
|
|
707
|
+
scalar Unknown
|
|
708
|
+
|
|
709
|
+
scalar Upload
|
|
710
|
+
|
|
711
|
+
"""
|
|
712
|
+
A point where a run paused, and how it resumes.
|
|
713
|
+
"""
|
|
714
|
+
type WaitpointRecord {
|
|
715
|
+
id: String!
|
|
716
|
+
runId: String!
|
|
717
|
+
workflowId: String!
|
|
718
|
+
stepId: String!
|
|
719
|
+
stepKey: String!
|
|
720
|
+
stepPath: String!
|
|
721
|
+
pieceName: String!
|
|
722
|
+
blockName: String!
|
|
723
|
+
"""
|
|
724
|
+
DELAY | WEBHOOK
|
|
725
|
+
"""
|
|
726
|
+
type: String!
|
|
727
|
+
"""
|
|
728
|
+
approval | webhook | delay
|
|
729
|
+
"""
|
|
730
|
+
kind: String!
|
|
731
|
+
"""
|
|
732
|
+
PENDING | COMPLETED | CONSUMED | EXPIRED | CANCELLED
|
|
733
|
+
"""
|
|
734
|
+
status: String!
|
|
735
|
+
createdAt: String!
|
|
736
|
+
"""
|
|
737
|
+
DELAY only: when the run resumes.
|
|
738
|
+
"""
|
|
739
|
+
resumeAt: String
|
|
740
|
+
expiresAt: String
|
|
741
|
+
resolvedAt: String
|
|
742
|
+
"""
|
|
743
|
+
The DID that resolved it from the editor.
|
|
744
|
+
"""
|
|
745
|
+
decidedBy: String
|
|
746
|
+
"""
|
|
747
|
+
Set by the Request approval block; null otherwise.
|
|
748
|
+
"""
|
|
749
|
+
approval: ApprovalRequest
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
type WebhookEndpointRecord {
|
|
753
|
+
workflowId: String!
|
|
754
|
+
url: String!
|
|
755
|
+
"""
|
|
756
|
+
False when the host gave the webhook service no public origin, so the url
|
|
757
|
+
above is a bare path. Switchboard always gives one, falling back to
|
|
758
|
+
http://localhost:<port> when PUBLIC_URL is unset.
|
|
759
|
+
"""
|
|
760
|
+
absoluteUrl: Boolean!
|
|
761
|
+
"""
|
|
762
|
+
True while the workflow is ENABLED with a valid webhook trigger
|
|
763
|
+
"""
|
|
764
|
+
armed: Boolean!
|
|
765
|
+
createdAt: String!
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
type Workflow implements IDocument {
|
|
769
|
+
id: String!
|
|
770
|
+
name: String!
|
|
771
|
+
documentType: String!
|
|
772
|
+
operations(skip: Int, first: Int): [Operation!]!
|
|
773
|
+
revision: Int!
|
|
774
|
+
createdAtUtcIso: DateTime!
|
|
775
|
+
lastModifiedAtUtcIso: DateTime!
|
|
776
|
+
initialState: Workflow_WorkflowState!
|
|
777
|
+
state: Workflow_WorkflowState!
|
|
778
|
+
stateJSON: JSONObject
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
type WorkflowRunPayload {
|
|
782
|
+
runId: String
|
|
783
|
+
status: String!
|
|
784
|
+
error: String
|
|
785
|
+
errorName: String
|
|
786
|
+
steps: [WorkflowStepRun!]!
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
type WorkflowRunRecord {
|
|
790
|
+
id: String!
|
|
791
|
+
workflowId: String!
|
|
792
|
+
workflowName: String!
|
|
793
|
+
workflowVersion: Int!
|
|
794
|
+
triggerKind: String!
|
|
795
|
+
triggerPayload: Unknown
|
|
796
|
+
"""
|
|
797
|
+
PENDING | RUNNING | WAITING | SUCCEEDED | FAILED | CANCELLED. WAITING: paused
|
|
798
|
+
at a waitpoint (approval, webhook or delay); the run holds no worker.
|
|
799
|
+
"""
|
|
800
|
+
status: String!
|
|
801
|
+
error: String
|
|
802
|
+
errorName: String
|
|
803
|
+
"""
|
|
804
|
+
When the run began executing; a PENDING run's is when it was journaled.
|
|
805
|
+
"""
|
|
806
|
+
startedAt: String!
|
|
807
|
+
endedAt: String
|
|
808
|
+
rerunOf: String
|
|
809
|
+
"""
|
|
810
|
+
How many warningNotes the run has; a run with any is not a plain success.
|
|
811
|
+
"""
|
|
812
|
+
warnings: Int!
|
|
813
|
+
"""
|
|
814
|
+
Steps that ran a fallback piece version, edges on ports nothing emits.
|
|
815
|
+
"""
|
|
816
|
+
warningNotes: [String!]!
|
|
817
|
+
steps: [WorkflowStepRunRecord!]!
|
|
818
|
+
"""
|
|
819
|
+
Loop iteration rows the run journaled, when steps holds only the first of
|
|
820
|
+
them; null when it holds every one. Listings hold none.
|
|
821
|
+
"""
|
|
822
|
+
iterationsTotal: Int
|
|
823
|
+
"""
|
|
824
|
+
Where the run paused, resolved ones included.
|
|
825
|
+
"""
|
|
826
|
+
waitpoints: [WaitpointRecord!]!
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
type WorkflowRunResultPage {
|
|
830
|
+
items: [WorkflowRunRecord!]!
|
|
831
|
+
hasNextPage: Boolean!
|
|
832
|
+
"""
|
|
833
|
+
True when the page was read after a cursor.
|
|
834
|
+
"""
|
|
835
|
+
hasPreviousPage: Boolean!
|
|
836
|
+
"""
|
|
837
|
+
Resumes after this page's last run; null for an empty page.
|
|
838
|
+
"""
|
|
839
|
+
cursor: String
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
input WorkflowRunsPagingInput {
|
|
843
|
+
"""
|
|
844
|
+
Page size; default 25, at most 100.
|
|
845
|
+
"""
|
|
846
|
+
limit: Int
|
|
847
|
+
"""
|
|
848
|
+
The cursor of the previous page.
|
|
849
|
+
"""
|
|
850
|
+
cursor: String
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
"""
|
|
854
|
+
WorkflowRuntime Mutations
|
|
855
|
+
"""
|
|
856
|
+
type WorkflowRuntimeMutations {
|
|
857
|
+
"""
|
|
858
|
+
Fires a workflow's manual trigger (the core piece's) and runs it to completion.
|
|
859
|
+
"""
|
|
860
|
+
fire(workflowId: String!, payload: Unknown): WorkflowRunPayload!
|
|
861
|
+
"""
|
|
862
|
+
Runs the workflow's trigger now, as its schedule or poll would: a
|
|
863
|
+
schedule fires the workflow, a polling trigger polls its source ("sync
|
|
864
|
+
now"). False when it has no armed trigger (disabled, parked, erroring).
|
|
865
|
+
"""
|
|
866
|
+
pollNow(workflowId: String!): Boolean!
|
|
867
|
+
"""
|
|
868
|
+
Samples the draft trigger and saves it as the trigger's last test. A piece
|
|
869
|
+
trigger runs its test hook (no cursor changes). Of the core piece's
|
|
870
|
+
triggers, manual takes payload, schedule samples a fire now, and webhook
|
|
871
|
+
waits for the next delivery to the workflow's endpoint, up to
|
|
872
|
+
timeoutSeconds (default and cap 300), and that delivery runs nothing.
|
|
873
|
+
"""
|
|
874
|
+
testTrigger(
|
|
875
|
+
workflowId: String!
|
|
876
|
+
payload: Unknown
|
|
877
|
+
timeoutSeconds: Int
|
|
878
|
+
driveId: String
|
|
879
|
+
): Unknown
|
|
880
|
+
"""
|
|
881
|
+
Stops a webhook trigger test that is waiting; false when none was.
|
|
882
|
+
"""
|
|
883
|
+
cancelTriggerTest(workflowId: String!): Boolean!
|
|
884
|
+
"""
|
|
885
|
+
Runs one draft step against the latest test outputs of the blocks it
|
|
886
|
+
reads, journaled as a "test" run and noted as the step's lastTest.
|
|
887
|
+
driveId waits for an unsynced workflow, as for webhookEndpoint.
|
|
888
|
+
"""
|
|
889
|
+
testStep(
|
|
890
|
+
workflowId: String!
|
|
891
|
+
stepId: String!
|
|
892
|
+
driveId: String
|
|
893
|
+
): WorkflowStepTestResult!
|
|
894
|
+
"""
|
|
895
|
+
Resumes a FAILED run: succeeded steps replay from the journal,
|
|
896
|
+
execution restarts at the failure. Produces a new run.
|
|
897
|
+
"""
|
|
898
|
+
rerun(runId: String!): WorkflowRunPayload!
|
|
899
|
+
"""
|
|
900
|
+
Approves or rejects a PENDING WEBHOOK waitpoint, resuming its run. Needs
|
|
901
|
+
write access to the workflow; with approvers listed, the caller's DID must
|
|
902
|
+
be one. reason may be required, per approval.reasonRequiredOn.
|
|
903
|
+
"""
|
|
904
|
+
resolveWaitpoint(
|
|
905
|
+
waitpointId: String!
|
|
906
|
+
approved: Boolean!
|
|
907
|
+
reason: String
|
|
908
|
+
): WaitpointRecord!
|
|
909
|
+
"""
|
|
910
|
+
Cancels a WAITING or PENDING run and its open waitpoints. A RUNNING run
|
|
911
|
+
cannot be cancelled yet.
|
|
912
|
+
"""
|
|
913
|
+
cancelRun(runId: String!): WorkflowRunPayload
|
|
914
|
+
"""
|
|
915
|
+
Mints a managed secret for a connection or workflow document and returns
|
|
916
|
+
its ref; only that document resolves it. The value is stored encrypted
|
|
917
|
+
and is never readable back over any API.
|
|
918
|
+
"""
|
|
919
|
+
createSecret(
|
|
920
|
+
value: String!
|
|
921
|
+
label: String
|
|
922
|
+
documentId: String!
|
|
923
|
+
): SecretRecord!
|
|
924
|
+
"""
|
|
925
|
+
Replaces the value behind an existing ref; documents stay untouched.
|
|
926
|
+
Only its creator, while able to write its owning document.
|
|
927
|
+
"""
|
|
928
|
+
rotateSecret(ref: String!, value: String!): SecretRecord!
|
|
929
|
+
"""
|
|
930
|
+
Tombstones a secret; its value becomes unrecoverable. Only its creator,
|
|
931
|
+
while able to write its owning document.
|
|
932
|
+
"""
|
|
933
|
+
deleteSecret(ref: String!): Boolean!
|
|
934
|
+
"""
|
|
935
|
+
Runs the piece's auth.validate against the connection's credentials,
|
|
936
|
+
then auth.getConnectionIdentifier for the account label, and records the
|
|
937
|
+
outcome on the connection document.
|
|
938
|
+
"""
|
|
939
|
+
checkConnection(connectionId: String!): ConnectionCheckResult!
|
|
940
|
+
"""
|
|
941
|
+
Opens an OAuth2 sign-in with the connection's own app (client_id in its
|
|
942
|
+
config, client_secret in its secretRefs). redirectUri is needed only when
|
|
943
|
+
oauthRedirectUri is a bare path. With returnUrl, which must be on the
|
|
944
|
+
caller's origin, the callback sends the browser back there with
|
|
945
|
+
?ph_oauth=<state> instead of closing the window.
|
|
946
|
+
"""
|
|
947
|
+
startOAuth(
|
|
948
|
+
connectionId: String!
|
|
949
|
+
redirectUri: String
|
|
950
|
+
returnUrl: String
|
|
951
|
+
): OAuthStart!
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
"""
|
|
955
|
+
WorkflowRuntime Queries
|
|
956
|
+
"""
|
|
957
|
+
type WorkflowRuntimeQueries {
|
|
958
|
+
health: String!
|
|
959
|
+
"""
|
|
960
|
+
Whether this reactor enforces document auth (REACTOR_AUTH_ENFORCEMENT).
|
|
961
|
+
On, a workflow needs a signed publish, and the host grants, to reach
|
|
962
|
+
documents. Answered to any caller.
|
|
963
|
+
"""
|
|
964
|
+
authEnforcement: Boolean!
|
|
965
|
+
"""
|
|
966
|
+
Who this host signs as: grant it on each document a step writes. Null for
|
|
967
|
+
a caller who is not signed in, or a host with no signer.
|
|
968
|
+
"""
|
|
969
|
+
reactorIdentity: ReactorIdentity
|
|
970
|
+
"""
|
|
971
|
+
REACTOR_AUTH_CONDITIONS. True: grant the host by key, with
|
|
972
|
+
{ match: subject.key == key }; false: by address. Null for a caller who
|
|
973
|
+
is not signed in.
|
|
974
|
+
"""
|
|
975
|
+
authConditions: Boolean
|
|
976
|
+
"""
|
|
977
|
+
Why the workflow's last publish or enable got no reactor access, naming
|
|
978
|
+
the publisher and the connection; null when the check passed.
|
|
979
|
+
"""
|
|
980
|
+
reactorAccessDenial(workflowId: String!): String
|
|
981
|
+
"""
|
|
982
|
+
Persisted runs, newest first. Scope them to one workflow, or to every
|
|
983
|
+
workflow a drive holds; workflowId wins when both are given.
|
|
984
|
+
"""
|
|
985
|
+
runs(
|
|
986
|
+
workflowId: String
|
|
987
|
+
driveId: String
|
|
988
|
+
limit: Int
|
|
989
|
+
"""
|
|
990
|
+
Trigger kinds to leave out, e.g. test.
|
|
991
|
+
"""
|
|
992
|
+
excludeTriggerKinds: [String!]
|
|
993
|
+
): [WorkflowRunRecord!]!
|
|
994
|
+
"""
|
|
995
|
+
The same listing a page at a time, newest journaled first. Pass a page's
|
|
996
|
+
cursor back in paging to read the next; a page is short only when
|
|
997
|
+
hasNextPage is false, or when the caller could read none of a long
|
|
998
|
+
stretch of runs. A run that starts between pages keeps its place.
|
|
999
|
+
"""
|
|
1000
|
+
runsPage(
|
|
1001
|
+
workflowId: String
|
|
1002
|
+
driveId: String
|
|
1003
|
+
excludeTriggerKinds: [String!]
|
|
1004
|
+
paging: WorkflowRunsPagingInput
|
|
1005
|
+
): WorkflowRunResultPage!
|
|
1006
|
+
run(id: String!): WorkflowRunRecord
|
|
1007
|
+
"""
|
|
1008
|
+
WAITING runs, each with its waitpoints. Scope them to one
|
|
1009
|
+
workflow, or to every workflow a drive holds; workflowId wins.
|
|
1010
|
+
"""
|
|
1011
|
+
waitingRuns(
|
|
1012
|
+
driveId: String
|
|
1013
|
+
workflowId: String
|
|
1014
|
+
first: Int
|
|
1015
|
+
): [WorkflowRunRecord!]!
|
|
1016
|
+
"""
|
|
1017
|
+
The descriptor (props, auth, ports) of one action or trigger, as the
|
|
1018
|
+
version that runs it describes it; triggers come back under "trigger".
|
|
1019
|
+
"""
|
|
1020
|
+
blockDescriptor(block: BlockInput!): Unknown
|
|
1021
|
+
"""
|
|
1022
|
+
Resolves a dynamic prop against the current config values: a DROPDOWN
|
|
1023
|
+
yields { options, placeholder, disabled }, a DYNAMIC prop yields the
|
|
1024
|
+
resolved sub-property descriptor list.
|
|
1025
|
+
"""
|
|
1026
|
+
blockOptions(
|
|
1027
|
+
block: BlockInput!
|
|
1028
|
+
propName: String!
|
|
1029
|
+
input: Unknown
|
|
1030
|
+
connectionId: String
|
|
1031
|
+
"""
|
|
1032
|
+
What the author typed, for a DROPDOWN declared with refreshOnSearch.
|
|
1033
|
+
"""
|
|
1034
|
+
searchValue: String
|
|
1035
|
+
"""
|
|
1036
|
+
The step's reactor connection; its filter narrows what the resolver reads.
|
|
1037
|
+
"""
|
|
1038
|
+
reactorConnectionId: String
|
|
1039
|
+
"""
|
|
1040
|
+
The workflow being edited; a sub-flow dropdown lists what it may call.
|
|
1041
|
+
"""
|
|
1042
|
+
workflowId: String
|
|
1043
|
+
): Unknown
|
|
1044
|
+
"""
|
|
1045
|
+
Every piece this reactor offers: the core piece, its package pieces, and
|
|
1046
|
+
the pieces the registry and Activepieces publish.
|
|
1047
|
+
"""
|
|
1048
|
+
pieceCatalog: Unknown
|
|
1049
|
+
"""
|
|
1050
|
+
A piece's actions at one version; pin a step to that version.
|
|
1051
|
+
"""
|
|
1052
|
+
pieceActions(
|
|
1053
|
+
packageName: String!
|
|
1054
|
+
"""
|
|
1055
|
+
That version; the installed or latest one when omitted.
|
|
1056
|
+
"""
|
|
1057
|
+
version: String
|
|
1058
|
+
): Unknown
|
|
1059
|
+
"""
|
|
1060
|
+
A piece's triggers at one version; pin a trigger to that version.
|
|
1061
|
+
"""
|
|
1062
|
+
pieceTriggers(
|
|
1063
|
+
packageName: String!
|
|
1064
|
+
"""
|
|
1065
|
+
That version; the installed or latest one when omitted.
|
|
1066
|
+
"""
|
|
1067
|
+
version: String
|
|
1068
|
+
): Unknown
|
|
1069
|
+
"""
|
|
1070
|
+
Full piece detail (PieceMetadataModel-shaped), verbatim from the cloud API.
|
|
1071
|
+
"""
|
|
1072
|
+
pieceDetail(
|
|
1073
|
+
packageName: String!
|
|
1074
|
+
"""
|
|
1075
|
+
That version; the installed or latest one when omitted.
|
|
1076
|
+
"""
|
|
1077
|
+
version: String
|
|
1078
|
+
): Unknown
|
|
1079
|
+
"""
|
|
1080
|
+
Piece and block search across the catalog, grouped by piece. The index
|
|
1081
|
+
builds lazily on first use; poll while status is "indexing".
|
|
1082
|
+
"""
|
|
1083
|
+
searchPieces(
|
|
1084
|
+
query: String!
|
|
1085
|
+
"""
|
|
1086
|
+
action | trigger
|
|
1087
|
+
"""
|
|
1088
|
+
kind: String!
|
|
1089
|
+
"""
|
|
1090
|
+
local | registry | activepieces; all when omitted.
|
|
1091
|
+
"""
|
|
1092
|
+
sources: [String!]
|
|
1093
|
+
"""
|
|
1094
|
+
Category ids, any of; all when omitted.
|
|
1095
|
+
"""
|
|
1096
|
+
categories: [String!]
|
|
1097
|
+
"""
|
|
1098
|
+
Pieces returned.
|
|
1099
|
+
"""
|
|
1100
|
+
limit: Int
|
|
1101
|
+
): PieceSearchResult!
|
|
1102
|
+
"""
|
|
1103
|
+
Health of every registered piece trigger (poll schedule, errors).
|
|
1104
|
+
"""
|
|
1105
|
+
triggerStates: [TriggerStateRecord!]!
|
|
1106
|
+
"""
|
|
1107
|
+
Authored output shape of a block (SDL / outputSchema / sampleData).
|
|
1108
|
+
"""
|
|
1109
|
+
blockOutputTree(block: BlockInput!, config: Unknown): Unknown
|
|
1110
|
+
"""
|
|
1111
|
+
Output shape of a draft step or trigger: its latest test output
|
|
1112
|
+
(source "test", with sample and testedAt) when tested, else as blockOutputTree.
|
|
1113
|
+
"""
|
|
1114
|
+
stepOutputTree(workflowId: String!, stepId: String!): Unknown
|
|
1115
|
+
"""
|
|
1116
|
+
Every block of the draft (trigger first) as this reactor resolves it:
|
|
1117
|
+
which piece version runs, from where, and how it matches the pin.
|
|
1118
|
+
"""
|
|
1119
|
+
blockResolutions(workflowId: String!): [BlockResolutionRecord!]!
|
|
1120
|
+
"""
|
|
1121
|
+
Every powerhouse/connection document, for connection pickers.
|
|
1122
|
+
"""
|
|
1123
|
+
connections: [ConnectionRecord!]!
|
|
1124
|
+
"""
|
|
1125
|
+
The webhook endpoint for a workflow: the URL to hand the provider. Minted
|
|
1126
|
+
on first ask, whether or not the workflow is armed — an author needs the
|
|
1127
|
+
URL before enabling, and the armed field carries that difference. Null
|
|
1128
|
+
only when the host has no webhook service. With driveId, a workflow not
|
|
1129
|
+
synced here yet is waited for briefly, then fails as WORKFLOW_SYNCING.
|
|
1130
|
+
"""
|
|
1131
|
+
webhookEndpoint(workflowId: String!, driveId: String): WebhookEndpointRecord
|
|
1132
|
+
"""
|
|
1133
|
+
Secret metadata (label, version, status). Never the value. Only secrets
|
|
1134
|
+
whose owning document the caller can read.
|
|
1135
|
+
"""
|
|
1136
|
+
secret(ref: String!): SecretRecord
|
|
1137
|
+
secrets: [SecretRecord!]!
|
|
1138
|
+
"""
|
|
1139
|
+
The URL an OAuth2 app must register as its redirect. A bare path when
|
|
1140
|
+
this host does not know its public origin; resolve it against the URL
|
|
1141
|
+
this API is reached at. Null when the host serves no HTTP routes.
|
|
1142
|
+
"""
|
|
1143
|
+
oauthRedirectUri: String
|
|
1144
|
+
"""
|
|
1145
|
+
How startOAuth would sign in with the publisher's OAuth2 app appId (a
|
|
1146
|
+
connection's oauth_app) on this host, so an editor can tell before it
|
|
1147
|
+
opens one. redirectUri as for startOAuth. NONE for an app this host does
|
|
1148
|
+
not know, or when it cannot name its callback.
|
|
1149
|
+
"""
|
|
1150
|
+
oauthSignIn(appId: String!, redirectUri: String): OAuthSignInMode!
|
|
1151
|
+
"""
|
|
1152
|
+
The switchboard this runtime lives in: what an app records as the runner
|
|
1153
|
+
of the workflows and connections it sets up here.
|
|
1154
|
+
"""
|
|
1155
|
+
host: RuntimeHost!
|
|
1156
|
+
"""
|
|
1157
|
+
How an OAuth2 sign-in opened by startOAuth stands; null when unknown.
|
|
1158
|
+
"""
|
|
1159
|
+
oauthAttempt(state: String!): OAuthAttempt
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
type WorkflowStepRun {
|
|
1163
|
+
stepId: String!
|
|
1164
|
+
key: String!
|
|
1165
|
+
pieceName: String!
|
|
1166
|
+
blockName: String!
|
|
1167
|
+
status: String!
|
|
1168
|
+
input: Unknown
|
|
1169
|
+
output: Unknown
|
|
1170
|
+
port: String
|
|
1171
|
+
error: String
|
|
1172
|
+
errorName: String
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
type WorkflowStepRunRecord {
|
|
1176
|
+
stepId: String!
|
|
1177
|
+
stepKey: String!
|
|
1178
|
+
"""
|
|
1179
|
+
One iteration of a loop body: "<loop>[<i>]/<step>", nested loops
|
|
1180
|
+
concatenated, i from 1. Null for the step's own row.
|
|
1181
|
+
"""
|
|
1182
|
+
path: String
|
|
1183
|
+
pieceName: String!
|
|
1184
|
+
"""
|
|
1185
|
+
The action the step ran, or the trigger a trigger test sampled.
|
|
1186
|
+
"""
|
|
1187
|
+
blockName: String!
|
|
1188
|
+
status: String!
|
|
1189
|
+
input: Unknown
|
|
1190
|
+
output: Unknown
|
|
1191
|
+
port: String
|
|
1192
|
+
error: String
|
|
1193
|
+
"""
|
|
1194
|
+
The thrown error's name, e.g. ReactorAccessDeniedError.
|
|
1195
|
+
"""
|
|
1196
|
+
errorName: String
|
|
1197
|
+
startedAt: String
|
|
1198
|
+
endedAt: String
|
|
1199
|
+
"""
|
|
1200
|
+
The piece version that ran; null for an unresolved block.
|
|
1201
|
+
"""
|
|
1202
|
+
pieceVersion: String
|
|
1203
|
+
"""
|
|
1204
|
+
local | registry | activepieces | npm
|
|
1205
|
+
"""
|
|
1206
|
+
pieceSource: String
|
|
1207
|
+
"""
|
|
1208
|
+
exact | compatible | fallback | installed | missing
|
|
1209
|
+
"""
|
|
1210
|
+
versionMatch: String
|
|
1211
|
+
"""
|
|
1212
|
+
Why the version that ran differs from the pin.
|
|
1213
|
+
"""
|
|
1214
|
+
versionNote: String
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
type WorkflowStepTestResult {
|
|
1218
|
+
"""
|
|
1219
|
+
Null when the test never started, e.g. an upstream block is untested.
|
|
1220
|
+
"""
|
|
1221
|
+
runId: String
|
|
1222
|
+
"""
|
|
1223
|
+
SUCCEEDED | FAILED | INDETERMINATE. INDETERMINATE is neither: a host call
|
|
1224
|
+
the block made timed out, so a write it asked for may well have landed.
|
|
1225
|
+
Show it distinctly - it is not a confirmed pass.
|
|
1226
|
+
"""
|
|
1227
|
+
status: String!
|
|
1228
|
+
output: Unknown
|
|
1229
|
+
error: String
|
|
1230
|
+
errorName: String
|
|
1231
|
+
durationMs: Int!
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
enum Workflow_BackoffKind {
|
|
1235
|
+
FIXED
|
|
1236
|
+
EXPONENTIAL
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
enum Workflow_ConcurrencyMode {
|
|
1240
|
+
SINGLETON
|
|
1241
|
+
QUEUE
|
|
1242
|
+
PARALLEL
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
enum Workflow_FailureMode {
|
|
1246
|
+
PARK
|
|
1247
|
+
NOTIFY
|
|
1248
|
+
IGNORE
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
"""
|
|
1252
|
+
Layout only. The runtime ignores it.
|
|
1253
|
+
"""
|
|
1254
|
+
type Workflow_Point {
|
|
1255
|
+
x: Float!
|
|
1256
|
+
y: Float!
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
enum Workflow_PropertyMode {
|
|
1260
|
+
"""
|
|
1261
|
+
The field's own control.
|
|
1262
|
+
"""
|
|
1263
|
+
MANUAL
|
|
1264
|
+
"""
|
|
1265
|
+
The author switched the field to a free {{…}} expression.
|
|
1266
|
+
"""
|
|
1267
|
+
EXPRESSION
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
type Workflow_PropertySetting {
|
|
1271
|
+
prop: String!
|
|
1272
|
+
mode: Workflow_PropertyMode!
|
|
1273
|
+
"""
|
|
1274
|
+
Resolved DynamicProperties children, options stripped.
|
|
1275
|
+
"""
|
|
1276
|
+
schema: Unknown
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
"""
|
|
1280
|
+
Snapshot of the draft taken by PUBLISH_WORKFLOW.
|
|
1281
|
+
"""
|
|
1282
|
+
type Workflow_PublishedWorkflow {
|
|
1283
|
+
"""
|
|
1284
|
+
Draft version the snapshot was taken at.
|
|
1285
|
+
"""
|
|
1286
|
+
version: Int!
|
|
1287
|
+
publishedAt: DateTime!
|
|
1288
|
+
trigger: Workflow_TriggerBinding
|
|
1289
|
+
steps: [Workflow_WorkflowStep!]!
|
|
1290
|
+
edges: [Workflow_WorkflowEdge!]!
|
|
1291
|
+
variables: [Workflow_WorkflowVariable!]!
|
|
1292
|
+
policy: Workflow_WorkflowPolicy!
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
type Workflow_RetryPolicy {
|
|
1296
|
+
"""
|
|
1297
|
+
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.
|
|
1298
|
+
"""
|
|
1299
|
+
maxAttempts: Int!
|
|
1300
|
+
backoff: Workflow_BackoffKind!
|
|
1301
|
+
initialDelaySeconds: Int!
|
|
1302
|
+
maxDelaySeconds: Int!
|
|
1303
|
+
"""
|
|
1304
|
+
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.
|
|
1305
|
+
"""
|
|
1306
|
+
retryOn: [String!]!
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
enum Workflow_RunStatus {
|
|
1310
|
+
PENDING
|
|
1311
|
+
RUNNING
|
|
1312
|
+
WAITING
|
|
1313
|
+
SUCCEEDED
|
|
1314
|
+
FAILED
|
|
1315
|
+
CANCELLED
|
|
1316
|
+
PARKED
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
"""
|
|
1320
|
+
Reference to the latest test run in the run store.
|
|
1321
|
+
"""
|
|
1322
|
+
type Workflow_StepTestRecord {
|
|
1323
|
+
runId: String!
|
|
1324
|
+
testedAt: DateTime!
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
type Workflow_TriggerBinding {
|
|
1328
|
+
id: OID!
|
|
1329
|
+
"""
|
|
1330
|
+
Package name of the trigger's piece, e.g. '@powerhousedao/piece-core' or '@acme/piece-imap'.
|
|
1331
|
+
"""
|
|
1332
|
+
pieceName: String!
|
|
1333
|
+
"""
|
|
1334
|
+
Exact semver of the piece, e.g. '1.2.0'.
|
|
1335
|
+
"""
|
|
1336
|
+
pieceVersion: String!
|
|
1337
|
+
"""
|
|
1338
|
+
Trigger name within the piece, e.g. 'schedule' or 'new_message'.
|
|
1339
|
+
"""
|
|
1340
|
+
triggerName: String!
|
|
1341
|
+
"""
|
|
1342
|
+
Connection document id, when the trigger's connector requires one.
|
|
1343
|
+
"""
|
|
1344
|
+
connectionId: PHID
|
|
1345
|
+
"""
|
|
1346
|
+
Reactor connection document id, when the trigger declares requireReactor.
|
|
1347
|
+
"""
|
|
1348
|
+
reactorConnectionId: PHID
|
|
1349
|
+
"""
|
|
1350
|
+
Validated against the trigger's configSchema.
|
|
1351
|
+
"""
|
|
1352
|
+
config: Unknown!
|
|
1353
|
+
propertySettings: [Workflow_PropertySetting!]
|
|
1354
|
+
lastTest: Workflow_StepTestRecord
|
|
1355
|
+
"""
|
|
1356
|
+
Timestamp of the last real edit; a lastTest before it is stale.
|
|
1357
|
+
"""
|
|
1358
|
+
updatedAt: DateTime
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
enum Workflow_VariableType {
|
|
1362
|
+
TEXT
|
|
1363
|
+
NUMBER
|
|
1364
|
+
BOOLEAN
|
|
1365
|
+
JSON
|
|
1366
|
+
"""
|
|
1367
|
+
value is a secret-provider handle (the format of a connection SecretRef.ref), never the plaintext.
|
|
1368
|
+
"""
|
|
1369
|
+
SECRET
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
type Workflow_WorkflowEdge {
|
|
1373
|
+
id: OID!
|
|
1374
|
+
"""
|
|
1375
|
+
Source step id, or the trigger id for the entry edge.
|
|
1376
|
+
"""
|
|
1377
|
+
from: OID!
|
|
1378
|
+
to: OID!
|
|
1379
|
+
"""
|
|
1380
|
+
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.
|
|
1381
|
+
"""
|
|
1382
|
+
port: String!
|
|
1383
|
+
"""
|
|
1384
|
+
Optional guard expression; the edge is taken only when it evaluates truthy.
|
|
1385
|
+
"""
|
|
1386
|
+
condition: String
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
"""
|
|
1390
|
+
What manages a workflow: the document that defines it, and how to name it to a person.
|
|
1391
|
+
"""
|
|
1392
|
+
type Workflow_WorkflowManager {
|
|
1393
|
+
documentId: PHID!
|
|
1394
|
+
"""
|
|
1395
|
+
e.g. sektar/integration
|
|
1396
|
+
"""
|
|
1397
|
+
documentType: String!
|
|
1398
|
+
"""
|
|
1399
|
+
e.g. Powerhouse - Google Calendar
|
|
1400
|
+
"""
|
|
1401
|
+
label: String!
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
type Workflow_WorkflowPolicy {
|
|
1405
|
+
"""
|
|
1406
|
+
ENFORCED. SINGLETON drops a firing while a run is active (journaled CANCELLED, not dropped silently); QUEUE serialises; PARALLEL runs concurrently.
|
|
1407
|
+
"""
|
|
1408
|
+
concurrency: Workflow_ConcurrencyMode!
|
|
1409
|
+
"""
|
|
1410
|
+
ENFORCED under PARALLEL: how many runs of this workflow may execute at once; null is unbounded. SINGLETON and QUEUE are 1 by definition.
|
|
1411
|
+
"""
|
|
1412
|
+
maxParallelRuns: Int
|
|
1413
|
+
"""
|
|
1414
|
+
ENFORCED. Checked between steps and while a retry waits; past it the run ends CANCELLED.
|
|
1415
|
+
"""
|
|
1416
|
+
runTimeoutSeconds: Int!
|
|
1417
|
+
"""
|
|
1418
|
+
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.
|
|
1419
|
+
"""
|
|
1420
|
+
maxSuspensionDays: Int!
|
|
1421
|
+
"""
|
|
1422
|
+
ENFORCED. The fallback for a step with no retry of its own.
|
|
1423
|
+
"""
|
|
1424
|
+
defaultRetry: Workflow_RetryPolicy!
|
|
1425
|
+
"""
|
|
1426
|
+
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.
|
|
1427
|
+
"""
|
|
1428
|
+
onFailure: Workflow_FailureMode!
|
|
1429
|
+
"""
|
|
1430
|
+
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.
|
|
1431
|
+
"""
|
|
1432
|
+
retainRunsDays: Int!
|
|
1433
|
+
"""
|
|
1434
|
+
NOT YET ENFORCED. The run journal is relational; there is no run document model to write.
|
|
1435
|
+
"""
|
|
1436
|
+
journalAsDocument: Boolean!
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
type Workflow_WorkflowState {
|
|
1440
|
+
name: String!
|
|
1441
|
+
description: String
|
|
1442
|
+
"""
|
|
1443
|
+
Only ENABLED workflows get trigger instances.
|
|
1444
|
+
"""
|
|
1445
|
+
status: Workflow_WorkflowStatus!
|
|
1446
|
+
"""
|
|
1447
|
+
Bumped on every draft edit; REVERT_TO_PUBLISHED resets it to published.version. A run records the version it executed.
|
|
1448
|
+
"""
|
|
1449
|
+
version: Int!
|
|
1450
|
+
trigger: Workflow_TriggerBinding
|
|
1451
|
+
steps: [Workflow_WorkflowStep!]!
|
|
1452
|
+
edges: [Workflow_WorkflowEdge!]!
|
|
1453
|
+
variables: [Workflow_WorkflowVariable!]!
|
|
1454
|
+
policy: Workflow_WorkflowPolicy!
|
|
1455
|
+
"""
|
|
1456
|
+
Last published snapshot; version !== published.version means unpublished changes.
|
|
1457
|
+
"""
|
|
1458
|
+
published: Workflow_PublishedWorkflow
|
|
1459
|
+
"""
|
|
1460
|
+
Who keeps this workflow as it is, e.g. an app's integration; null: people edit it. Editors show a managed workflow read-only.
|
|
1461
|
+
"""
|
|
1462
|
+
managedBy: Workflow_WorkflowManager
|
|
1463
|
+
"""
|
|
1464
|
+
Denormalised for inspectors; written by the runtime.
|
|
1465
|
+
"""
|
|
1466
|
+
lastRunAt: DateTime
|
|
1467
|
+
lastRunStatus: Workflow_RunStatus
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
enum Workflow_WorkflowStatus {
|
|
1471
|
+
DRAFT
|
|
1472
|
+
ENABLED
|
|
1473
|
+
DISABLED
|
|
1474
|
+
ARCHIVED
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
type Workflow_WorkflowStep {
|
|
1478
|
+
id: OID!
|
|
1479
|
+
"""
|
|
1480
|
+
Author-visible label; unique within the workflow; used in expressions.
|
|
1481
|
+
"""
|
|
1482
|
+
key: String!
|
|
1483
|
+
name: String!
|
|
1484
|
+
"""
|
|
1485
|
+
Package name of the step's piece, e.g. '@powerhousedao/piece-core' or '@activepieces/piece-http'.
|
|
1486
|
+
"""
|
|
1487
|
+
pieceName: String!
|
|
1488
|
+
"""
|
|
1489
|
+
Exact semver of the piece, e.g. '0.11.19'.
|
|
1490
|
+
"""
|
|
1491
|
+
pieceVersion: String!
|
|
1492
|
+
"""
|
|
1493
|
+
Action name within the piece, e.g. 'branch' or 'send_request'.
|
|
1494
|
+
"""
|
|
1495
|
+
actionName: String!
|
|
1496
|
+
connectionId: PHID
|
|
1497
|
+
"""
|
|
1498
|
+
Reactor connection document id, when the action declares requireReactor.
|
|
1499
|
+
"""
|
|
1500
|
+
reactorConnectionId: PHID
|
|
1501
|
+
config: Unknown!
|
|
1502
|
+
"""
|
|
1503
|
+
ENFORCED. Per-step override of the workflow default retry policy.
|
|
1504
|
+
"""
|
|
1505
|
+
retry: Workflow_RetryPolicy
|
|
1506
|
+
"""
|
|
1507
|
+
ENFORCED. Also raises the cap on each host call the step's piece makes, which is never shorter than the step's own timeout.
|
|
1508
|
+
"""
|
|
1509
|
+
timeoutSeconds: Int
|
|
1510
|
+
"""
|
|
1511
|
+
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.
|
|
1512
|
+
"""
|
|
1513
|
+
idempotencyKeyExpression: String
|
|
1514
|
+
position: Workflow_Point
|
|
1515
|
+
propertySettings: [Workflow_PropertySetting!]
|
|
1516
|
+
lastTest: Workflow_StepTestRecord
|
|
1517
|
+
"""
|
|
1518
|
+
Skipped steps are passed over at run time.
|
|
1519
|
+
"""
|
|
1520
|
+
skip: Boolean
|
|
1521
|
+
"""
|
|
1522
|
+
Timestamp of the last real edit; a lastTest before it is stale.
|
|
1523
|
+
"""
|
|
1524
|
+
updatedAt: DateTime
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
type Workflow_WorkflowVariable {
|
|
1528
|
+
id: OID!
|
|
1529
|
+
"""
|
|
1530
|
+
Name used in expressions.
|
|
1531
|
+
"""
|
|
1532
|
+
key: String!
|
|
1533
|
+
"""
|
|
1534
|
+
The value a run reads as variables.<key>.
|
|
1535
|
+
"""
|
|
1536
|
+
value: Unknown
|
|
1537
|
+
description: String
|
|
1538
|
+
"""
|
|
1539
|
+
Null means untyped; consumers infer the kind of value it holds.
|
|
1540
|
+
"""
|
|
1541
|
+
type: Workflow_VariableType
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
scalar _FieldSet
|
|
1545
|
+
|
|
1546
|
+
type _Service {
|
|
1547
|
+
sdl: String
|
|
1548
|
+
}
|