@powerhousedao/switchboard 6.2.3-dev.8 → 6.2.3-dev.80

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 (272) hide show
  1. package/.tsbuild/test/attachments/byte-grants.test.d.ts +2 -0
  2. package/.tsbuild/test/attachments/byte-grants.test.d.ts.map +1 -0
  3. package/.tsbuild/test/attachments/byte-routes-read-gate.integration.test.d.ts +2 -0
  4. package/.tsbuild/test/attachments/byte-routes-read-gate.integration.test.d.ts.map +1 -0
  5. package/.tsbuild/test/attachments/reserve-metadata-parity.test.d.ts +2 -0
  6. package/.tsbuild/test/attachments/reserve-metadata-parity.test.d.ts.map +1 -0
  7. package/.tsbuild/test/attachments/url-signer.test.d.ts +2 -0
  8. package/.tsbuild/test/attachments/url-signer.test.d.ts.map +1 -0
  9. package/.tsbuild/test/boot-auth-config.test.d.ts +2 -0
  10. package/.tsbuild/test/boot-auth-config.test.d.ts.map +1 -0
  11. package/.tsbuild/test/boot-create-signature-policy.test.d.ts +2 -0
  12. package/.tsbuild/test/boot-create-signature-policy.test.d.ts.map +1 -0
  13. package/.tsbuild/test/boot-env-isolation.test.d.ts +2 -0
  14. package/.tsbuild/test/boot-env-isolation.test.d.ts.map +1 -0
  15. package/.tsbuild/test/boot-helpers.d.ts +5 -0
  16. package/.tsbuild/test/boot-helpers.d.ts.map +1 -0
  17. package/.tsbuild/test/boot-inspection-enabled.test.d.ts +2 -0
  18. package/.tsbuild/test/boot-inspection-enabled.test.d.ts.map +1 -0
  19. package/.tsbuild/test/boot-mcp-auth.test.d.ts +2 -0
  20. package/.tsbuild/test/boot-mcp-auth.test.d.ts.map +1 -0
  21. package/.tsbuild/test/boot-mcp-enabled.test.d.ts +2 -0
  22. package/.tsbuild/test/boot-mcp-enabled.test.d.ts.map +1 -0
  23. package/.tsbuild/test/boot-port-zero.test.d.ts +2 -0
  24. package/.tsbuild/test/boot-port-zero.test.d.ts.map +1 -0
  25. package/.tsbuild/test/boot-preconditions.test.d.ts +2 -0
  26. package/.tsbuild/test/boot-preconditions.test.d.ts.map +1 -0
  27. package/.tsbuild/test/boot-privacy.test.d.ts +2 -0
  28. package/.tsbuild/test/boot-privacy.test.d.ts.map +1 -0
  29. package/.tsbuild/test/boot-unsupported-stored-documents.test.d.ts +2 -0
  30. package/.tsbuild/test/boot-unsupported-stored-documents.test.d.ts.map +1 -0
  31. package/.tsbuild/test/boot-without-renown.test.d.ts +2 -0
  32. package/.tsbuild/test/boot-without-renown.test.d.ts.map +1 -0
  33. package/.tsbuild/test/boot-without-require-signatures.test.d.ts +2 -0
  34. package/.tsbuild/test/boot-without-require-signatures.test.d.ts.map +1 -0
  35. package/.tsbuild/test/boot-worker-trust-policy.test.d.ts +2 -0
  36. package/.tsbuild/test/boot-worker-trust-policy.test.d.ts.map +1 -0
  37. package/.tsbuild/test/boot-workflow-singleton-conflict.test.d.ts +2 -0
  38. package/.tsbuild/test/boot-workflow-singleton-conflict.test.d.ts.map +1 -0
  39. package/.tsbuild/test/boot-workflow-singleton-retry.test.d.ts +2 -0
  40. package/.tsbuild/test/boot-workflow-singleton-retry.test.d.ts.map +1 -0
  41. package/.tsbuild/test/builder-defaults.test.d.ts +2 -0
  42. package/.tsbuild/test/builder-defaults.test.d.ts.map +1 -0
  43. package/.tsbuild/test/config-from-env.test.d.ts +2 -0
  44. package/.tsbuild/test/config-from-env.test.d.ts.map +1 -0
  45. package/.tsbuild/test/config-merge.test.d.ts +2 -0
  46. package/.tsbuild/test/config-merge.test.d.ts.map +1 -0
  47. package/.tsbuild/test/config-schema.test.d.ts +2 -0
  48. package/.tsbuild/test/config-schema.test.d.ts.map +1 -0
  49. package/.tsbuild/test/create-signature-policy.test.d.ts +2 -0
  50. package/.tsbuild/test/create-signature-policy.test.d.ts.map +1 -0
  51. package/.tsbuild/test/default-drive-protocol-versions.test.d.ts +2 -0
  52. package/.tsbuild/test/default-drive-protocol-versions.test.d.ts.map +1 -0
  53. package/.tsbuild/test/default-drive-slug.test.d.ts +2 -0
  54. package/.tsbuild/test/default-drive-slug.test.d.ts.map +1 -0
  55. package/.tsbuild/test/durable-node-fs-pg16.test.d.ts +2 -0
  56. package/.tsbuild/test/durable-node-fs-pg16.test.d.ts.map +1 -0
  57. package/.tsbuild/test/fatal-shutdown.test.d.ts +2 -0
  58. package/.tsbuild/test/fatal-shutdown.test.d.ts.map +1 -0
  59. package/.tsbuild/test/inspection-throttle.test.d.ts +2 -0
  60. package/.tsbuild/test/inspection-throttle.test.d.ts.map +1 -0
  61. package/.tsbuild/test/observability-signals.test.d.ts +2 -0
  62. package/.tsbuild/test/observability-signals.test.d.ts.map +1 -0
  63. package/.tsbuild/test/permissions-backfill.test.d.ts +2 -0
  64. package/.tsbuild/test/permissions-backfill.test.d.ts.map +1 -0
  65. package/.tsbuild/test/pglite-preflight.test.d.ts +2 -0
  66. package/.tsbuild/test/pglite-preflight.test.d.ts.map +1 -0
  67. package/.tsbuild/test/pglite-storage-dirs.test.d.ts +2 -0
  68. package/.tsbuild/test/pglite-storage-dirs.test.d.ts.map +1 -0
  69. package/.tsbuild/test/pglite-store.test.d.ts +2 -0
  70. package/.tsbuild/test/pglite-store.test.d.ts.map +1 -0
  71. package/.tsbuild/test/plugin-config-schemas.test.d.ts +2 -0
  72. package/.tsbuild/test/plugin-config-schemas.test.d.ts.map +1 -0
  73. package/.tsbuild/test/plugin-presence.test.d.ts +2 -0
  74. package/.tsbuild/test/plugin-presence.test.d.ts.map +1 -0
  75. package/.tsbuild/test/port-probe.test.d.ts +2 -0
  76. package/.tsbuild/test/port-probe.test.d.ts.map +1 -0
  77. package/.tsbuild/test/renown-storage-path.test.d.ts +2 -0
  78. package/.tsbuild/test/renown-storage-path.test.d.ts.map +1 -0
  79. package/.tsbuild/test/renown-trust-policy.test.d.ts +2 -0
  80. package/.tsbuild/test/renown-trust-policy.test.d.ts.map +1 -0
  81. package/.tsbuild/test/served-schemas.test.d.ts +2 -0
  82. package/.tsbuild/test/served-schemas.test.d.ts.map +1 -0
  83. package/.tsbuild/test/shutdown.test.d.ts +2 -0
  84. package/.tsbuild/test/shutdown.test.d.ts.map +1 -0
  85. package/.tsbuild/test/snapshot-writer.d.ts +18 -0
  86. package/.tsbuild/test/snapshot-writer.d.ts.map +1 -0
  87. package/.tsbuild/test/store-lock.test.d.ts +2 -0
  88. package/.tsbuild/test/store-lock.test.d.ts.map +1 -0
  89. package/.tsbuild/test/two-switchboards.test.d.ts +2 -0
  90. package/.tsbuild/test/two-switchboards.test.d.ts.map +1 -0
  91. package/.tsbuild/test/unsupported-stored-documents.test.d.ts +2 -0
  92. package/.tsbuild/test/unsupported-stored-documents.test.d.ts.map +1 -0
  93. package/.tsbuild/test/workflow/harness.d.ts +56 -0
  94. package/.tsbuild/test/workflow/harness.d.ts.map +1 -0
  95. package/.tsbuild/test/workflow/oauth.test.d.ts +2 -0
  96. package/.tsbuild/test/workflow/oauth.test.d.ts.map +1 -0
  97. package/.tsbuild/test/workflow/resolvers.test.d.ts +2 -0
  98. package/.tsbuild/test/workflow/resolvers.test.d.ts.map +1 -0
  99. package/.tsbuild/test/workflow/runtime-host.test.d.ts +2 -0
  100. package/.tsbuild/test/workflow/runtime-host.test.d.ts.map +1 -0
  101. package/.tsbuild/test/workflow/webhook-dedupe.test.d.ts +2 -0
  102. package/.tsbuild/test/workflow/webhook-dedupe.test.d.ts.map +1 -0
  103. package/.tsbuild/test/workflow/webhook-signed.test.d.ts +2 -0
  104. package/.tsbuild/test/workflow/webhook-signed.test.d.ts.map +1 -0
  105. package/.tsbuild/test/workflow/webhook-trigger-test.test.d.ts +2 -0
  106. package/.tsbuild/test/workflow/webhook-trigger-test.test.d.ts.map +1 -0
  107. package/.tsbuild/test/workflow/webhook-unsigned.test.d.ts +2 -0
  108. package/.tsbuild/test/workflow/webhook-unsigned.test.d.ts.map +1 -0
  109. package/.tsbuild/test/workflow-reactor-access.test.d.ts +2 -0
  110. package/.tsbuild/test/workflow-reactor-access.test.d.ts.map +1 -0
  111. package/.tsbuild/test/workflow-reactor-enforcement.test.d.ts +2 -0
  112. package/.tsbuild/test/workflow-reactor-enforcement.test.d.ts.map +1 -0
  113. package/.tsbuild/test/workflow-read-gate.test.d.ts +2 -0
  114. package/.tsbuild/test/workflow-read-gate.test.d.ts.map +1 -0
  115. package/.tsbuild/test/workflow-runtime.test.d.ts +2 -0
  116. package/.tsbuild/test/workflow-runtime.test.d.ts.map +1 -0
  117. package/.tsbuild/test/workflows-plugin-config.test.d.ts +2 -0
  118. package/.tsbuild/test/workflows-plugin-config.test.d.ts.map +1 -0
  119. package/.tsbuild/tsconfig.tsbuildinfo +1 -1
  120. package/.tsbuild/tsdown.config.d.ts.map +1 -1
  121. package/.tsbuild/vitest.config.d.ts.map +1 -1
  122. package/Auth.md +144 -2
  123. package/CHANGELOG.md +1057 -0
  124. package/README.md +55 -14
  125. package/dist/boot.d.mts +46 -0
  126. package/dist/boot.d.mts.map +1 -0
  127. package/dist/boot.mjs +67 -0
  128. package/dist/boot.mjs.map +1 -0
  129. package/dist/config/from-env.d.mts +15 -0
  130. package/dist/config/from-env.d.mts.map +1 -0
  131. package/dist/config/from-env.mjs +4 -0
  132. package/dist/config/schema.d.mts +3 -0
  133. package/dist/config/schema.mjs +4 -0
  134. package/dist/from-env-BO0n9R02.mjs +401 -0
  135. package/dist/from-env-BO0n9R02.mjs.map +1 -0
  136. package/dist/index.d.mts +2 -1
  137. package/dist/index.mjs +76 -79
  138. package/dist/index.mjs.map +1 -1
  139. package/dist/install-packages.d.mts +2 -1
  140. package/dist/install-packages.mjs +2 -2
  141. package/dist/install-packages.mjs.map +1 -1
  142. package/dist/mcp-SsBK14Jm.mjs +32 -0
  143. package/dist/mcp-SsBK14Jm.mjs.map +1 -0
  144. package/dist/migrate.d.mts +2 -1
  145. package/dist/migrate.mjs +7 -5
  146. package/dist/migrate.mjs.map +1 -1
  147. package/dist/plugin-host-C1sYEm8g.d.mts +46 -0
  148. package/dist/plugin-host-C1sYEm8g.d.mts.map +1 -0
  149. package/dist/plugins/attachments.d.mts +33 -0
  150. package/dist/plugins/attachments.d.mts.map +1 -0
  151. package/dist/plugins/attachments.mjs +4 -0
  152. package/dist/plugins/mcp.d.mts +31 -0
  153. package/dist/plugins/mcp.d.mts.map +1 -0
  154. package/dist/plugins/mcp.mjs +4 -0
  155. package/dist/plugins/privacy.d.mts +22 -0
  156. package/dist/plugins/privacy.d.mts.map +1 -0
  157. package/dist/plugins/privacy.mjs +4 -0
  158. package/dist/plugins/workflows.d.mts +79 -0
  159. package/dist/plugins/workflows.d.mts.map +1 -0
  160. package/dist/plugins/workflows.mjs +4 -0
  161. package/dist/postgres-url-DTDhBjXX.mjs +11 -0
  162. package/dist/postgres-url-DTDhBjXX.mjs.map +1 -0
  163. package/dist/privacy-BO8Q25xI.mjs +44 -0
  164. package/dist/privacy-BO8Q25xI.mjs.map +1 -0
  165. package/dist/privacy-DxIJGH4P.mjs +91 -0
  166. package/dist/privacy-DxIJGH4P.mjs.map +1 -0
  167. package/dist/renown-layers-COZsrGQT.mjs +40 -0
  168. package/dist/renown-layers-COZsrGQT.mjs.map +1 -0
  169. package/dist/schema-0g_QdOWn.mjs +267 -0
  170. package/dist/schema-0g_QdOWn.mjs.map +1 -0
  171. package/dist/schema-ivUWPQOn.d.mts +202 -0
  172. package/dist/schema-ivUWPQOn.d.mts.map +1 -0
  173. package/dist/server-eNNf230W.mjs +2518 -0
  174. package/dist/server-eNNf230W.mjs.map +1 -0
  175. package/dist/server.d.mts +270 -48
  176. package/dist/server.d.mts.map +1 -1
  177. package/dist/server.mjs +5 -5
  178. package/dist/utils-BbV_nodR.mjs +119 -0
  179. package/dist/utils-BbV_nodR.mjs.map +1 -0
  180. package/dist/utils.d.mts +12 -5
  181. package/dist/utils.d.mts.map +1 -1
  182. package/dist/utils.mjs +4 -3
  183. package/dist/worker-pool-BWHBLBJd.mjs +304 -0
  184. package/dist/worker-pool-BWHBLBJd.mjs.map +1 -0
  185. package/dist/workflow-runtime-7GaJ13c9.d.mts +30 -0
  186. package/dist/workflow-runtime-7GaJ13c9.d.mts.map +1 -0
  187. package/dist/workflows-5Chwj98o.mjs +1440 -0
  188. package/dist/workflows-5Chwj98o.mjs.map +1 -0
  189. package/package.json +68 -23
  190. package/scripts/install-packages.sh +0 -0
  191. package/test/attachment-reference-read-model.test.ts +28 -20
  192. package/test/attachments/auth.test.ts +85 -0
  193. package/test/attachments/byte-grants.test.ts +290 -0
  194. package/test/attachments/byte-routes-read-gate.integration.test.ts +314 -0
  195. package/test/attachments/download-target.test.ts +211 -32
  196. package/test/attachments/index.test.ts +47 -4
  197. package/test/attachments/reserve-metadata-parity.test.ts +96 -0
  198. package/test/attachments/routes-integration.test.ts +60 -4
  199. package/test/attachments/routes.test.ts +297 -35
  200. package/test/attachments/service-config.test.ts +41 -19
  201. package/test/attachments/url-signer.test.ts +105 -0
  202. package/test/boot-auth-config.test.ts +109 -0
  203. package/test/boot-create-signature-policy.test.ts +110 -0
  204. package/test/boot-env-isolation.test.ts +26 -0
  205. package/test/boot-helpers.ts +19 -0
  206. package/test/boot-inspection-enabled.test.ts +140 -0
  207. package/test/boot-mcp-auth.test.ts +449 -0
  208. package/test/boot-mcp-enabled.test.ts +119 -0
  209. package/test/boot-port-zero.test.ts +101 -0
  210. package/test/boot-preconditions.test.ts +200 -0
  211. package/test/boot-privacy.test.ts +232 -0
  212. package/test/boot-unsupported-stored-documents.test.ts +214 -0
  213. package/test/boot-without-renown.test.ts +83 -0
  214. package/test/boot-without-require-signatures.test.ts +76 -0
  215. package/test/boot-worker-trust-policy.test.ts +91 -0
  216. package/test/boot-workflow-singleton-conflict.test.ts +109 -0
  217. package/test/boot-workflow-singleton-retry.test.ts +122 -0
  218. package/test/builder-defaults.test.ts +80 -0
  219. package/test/config-from-env.test.ts +758 -0
  220. package/test/config-merge.test.ts +215 -0
  221. package/test/config-schema.test.ts +128 -0
  222. package/test/create-signature-policy.test.ts +69 -0
  223. package/test/default-drive-protocol-versions.test.ts +78 -0
  224. package/test/default-drive-slug.test.ts +97 -0
  225. package/test/durable-node-fs-pg16.test.ts +80 -0
  226. package/test/fatal-shutdown.test.ts +165 -0
  227. package/test/goldens/packages.graphql +797 -0
  228. package/test/goldens/privacy.graphql +853 -0
  229. package/test/goldens/reactor-drive-nodes.graphql +827 -0
  230. package/test/goldens/resolvers.json +321 -0
  231. package/test/goldens/supergraph.graphql +5636 -0
  232. package/test/goldens/workflow-runtime.graphql +1403 -0
  233. package/test/inspection-throttle.test.ts +23 -0
  234. package/test/observability-signals.test.ts +131 -0
  235. package/test/permissions-backfill.test.ts +486 -0
  236. package/test/pglite-dialect.test.ts +237 -2
  237. package/test/pglite-preflight.test.ts +313 -0
  238. package/test/pglite-storage-dirs.test.ts +113 -0
  239. package/test/pglite-store.test.ts +264 -0
  240. package/test/pglite-version.test.ts +9 -1
  241. package/test/plugin-config-schemas.test.ts +83 -0
  242. package/test/plugin-presence.test.ts +262 -0
  243. package/test/port-probe.test.ts +45 -0
  244. package/test/renown-storage-path.test.ts +40 -0
  245. package/test/renown-trust-policy.test.ts +313 -0
  246. package/test/served-schemas.test.ts +134 -0
  247. package/test/shutdown.test.ts +278 -0
  248. package/test/snapshot-writer.ts +94 -0
  249. package/test/store-lock.test.ts +65 -0
  250. package/test/two-switchboards.test.ts +146 -0
  251. package/test/unsupported-stored-documents.test.ts +72 -0
  252. package/test/worker-pool.test.ts +27 -1
  253. package/test/workflow/harness.ts +289 -0
  254. package/test/workflow/oauth.test.ts +214 -0
  255. package/test/workflow/resolvers.test.ts +357 -0
  256. package/test/workflow/runtime-host.test.ts +20 -0
  257. package/test/workflow/webhook-dedupe.test.ts +295 -0
  258. package/test/workflow/webhook-signed.test.ts +509 -0
  259. package/test/workflow/webhook-trigger-test.test.ts +82 -0
  260. package/test/workflow/webhook-unsigned.test.ts +345 -0
  261. package/test/workflow-reactor-access.test.ts +384 -0
  262. package/test/workflow-reactor-enforcement.test.ts +808 -0
  263. package/test/workflow-read-gate.test.ts +213 -0
  264. package/test/workflow-runtime.test.ts +1135 -0
  265. package/test/workflows-plugin-config.test.ts +77 -0
  266. package/tsconfig.json +11 -2
  267. package/tsdown.config.ts +12 -1
  268. package/vitest.config.ts +65 -0
  269. package/dist/server-CiKkVE6g.mjs +0 -1555
  270. package/dist/server-CiKkVE6g.mjs.map +0 -1
  271. package/dist/utils-Baw7rThP.mjs +0 -80
  272. package/dist/utils-Baw7rThP.mjs.map +0 -1
@@ -0,0 +1,853 @@
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
+ scalar AttachmentRef
32
+
33
+ type Connection implements IDocument {
34
+ id: String!
35
+ name: String!
36
+ documentType: String!
37
+ operations(skip: Int, first: Int): [Operation!]!
38
+ revision: Int!
39
+ createdAtUtcIso: DateTime!
40
+ lastModifiedAtUtcIso: DateTime!
41
+ initialState: Connection_ConnectionState!
42
+ state: Connection_ConnectionState!
43
+ stateJSON: JSONObject
44
+ }
45
+
46
+ enum Connection_ConnectionAuthType {
47
+ SECRET_TEXT
48
+ BASIC_AUTH
49
+ CUSTOM_AUTH
50
+ OAUTH2
51
+ OIDC
52
+ NONE
53
+ """
54
+ Reactor access for a piece's ctx.reactor; any piece may bind it.
55
+ """
56
+ REACTOR
57
+ }
58
+
59
+ type Connection_ConnectionState {
60
+ name: String!
61
+ """
62
+ Fully-qualified connector id: '@acme/connector-imap#imap'.
63
+ """
64
+ connectorId: String!
65
+ """
66
+ Activepieces auth kind, so a piece's PieceAuth maps directly.
67
+ """
68
+ authType: Connection_ConnectionAuthType!
69
+ """
70
+ Non-secret configuration, validated against the connector's auth schema; a ReactorConnectionConfig for REACTOR.
71
+ """
72
+ config: Unknown!
73
+ """
74
+ Secret handles; values never appear in state, operations, or the run journal.
75
+ """
76
+ secretRefs: [Connection_SecretRef!]!
77
+ status: Connection_ConnectionStatus!
78
+ lastCheckedAt: DateTime
79
+ lastError: String
80
+ """
81
+ Populated by the connector's own metadata call. Display only.
82
+ """
83
+ accountLabel: String
84
+ }
85
+
86
+ enum Connection_ConnectionStatus {
87
+ UNCONFIGURED
88
+ OK
89
+ ERROR
90
+ REVOKED
91
+ }
92
+
93
+ """
94
+ Config of a REACTOR connection. It holds no secrets.
95
+ """
96
+ type Connection_ReactorConnectionConfig {
97
+ """
98
+ Which reactor the connection reaches; 'local' is the only value.
99
+ """
100
+ endpoint: String!
101
+ """
102
+ 'read' limits the connection to reads; absent allows what the step declares.
103
+ """
104
+ access: String
105
+ }
106
+
107
+ type Connection_SecretRef {
108
+ id: OID!
109
+ """
110
+ Matches an auth property name in the connector's config schema.
111
+ """
112
+ name: String!
113
+ """
114
+ Opaque handle into the host secret provider. Not the secret.
115
+ """
116
+ ref: String!
117
+ }
118
+
119
+ scalar Currency
120
+
121
+ scalar Date
122
+
123
+ scalar DateTime
124
+
125
+ type DocumentDrive implements IDocument {
126
+ id: String!
127
+ name: String!
128
+ documentType: String!
129
+ operations(skip: Int, first: Int): [Operation!]!
130
+ revision: Int!
131
+ createdAtUtcIso: DateTime!
132
+ lastModifiedAtUtcIso: DateTime!
133
+ initialState: DocumentDrive_DocumentDriveState!
134
+ state: DocumentDrive_DocumentDriveState!
135
+ stateJSON: JSONObject
136
+ }
137
+
138
+ type DocumentDrive_DocumentDriveLocalState {
139
+ sharingType: String
140
+ listeners: [DocumentDrive_Listener!]!
141
+ triggers: [DocumentDrive_Trigger!]!
142
+ availableOffline: Boolean!
143
+ }
144
+
145
+ type DocumentDrive_DocumentDriveState {
146
+ name: String!
147
+ nodes: [DocumentDrive_Node!]!
148
+ icon: String
149
+ }
150
+
151
+ type DocumentDrive_FileNode {
152
+ id: String!
153
+ name: String!
154
+ kind: String!
155
+ documentType: String!
156
+ parentFolder: String
157
+ }
158
+
159
+ type DocumentDrive_FolderNode {
160
+ id: String!
161
+ name: String!
162
+ kind: String!
163
+ parentFolder: String
164
+ }
165
+
166
+ type DocumentDrive_Listener {
167
+ listenerId: ID!
168
+ label: String
169
+ block: Boolean!
170
+ system: Boolean!
171
+ filter: DocumentDrive_ListenerFilter!
172
+ callInfo: DocumentDrive_ListenerCallInfo
173
+ }
174
+
175
+ type DocumentDrive_ListenerCallInfo {
176
+ transmitterType: DocumentDrive_TransmitterType
177
+ name: String
178
+ data: String
179
+ }
180
+
181
+ type DocumentDrive_ListenerFilter {
182
+ documentType: [String!]!
183
+ documentId: [ID!]
184
+ scope: [String!]
185
+ branch: [String!]
186
+ }
187
+
188
+ union DocumentDrive_Node = DocumentDrive_FolderNode | DocumentDrive_FileNode
189
+
190
+ type DocumentDrive_PullResponderTriggerData {
191
+ listenerId: ID!
192
+ url: String!
193
+ interval: String!
194
+ }
195
+
196
+ enum DocumentDrive_TransmitterType {
197
+ Internal
198
+ SwitchboardPush
199
+ PullResponder
200
+ SecureConnect
201
+ MatrixConnect
202
+ RESTWebhook
203
+ }
204
+
205
+ type DocumentDrive_Trigger {
206
+ id: ID!
207
+ type: DocumentDrive_TriggerType!
208
+ data: DocumentDrive_TriggerData
209
+ }
210
+
211
+ union DocumentDrive_TriggerData = DocumentDrive_PullResponderTriggerData
212
+
213
+ enum DocumentDrive_TriggerType {
214
+ PullResponder
215
+ }
216
+
217
+ type DocumentModel implements IDocument {
218
+ id: String!
219
+ name: String!
220
+ documentType: String!
221
+ operations(skip: Int, first: Int): [Operation!]!
222
+ revision: Int!
223
+ createdAtUtcIso: DateTime!
224
+ lastModifiedAtUtcIso: DateTime!
225
+ stateJSON: JSONObject
226
+ }
227
+
228
+ type DocumentModel_Author {
229
+ name: String!
230
+ website: String
231
+ }
232
+
233
+ type DocumentModel_CodeExample {
234
+ id: ID!
235
+ value: String!
236
+ }
237
+
238
+ type DocumentModel_DocumentModelGlobalState {
239
+ name: String!
240
+ id: String!
241
+ extension: String!
242
+ description: String!
243
+ author: DocumentModel_Author!
244
+ specifications: [DocumentModel_DocumentSpecification!]!
245
+ }
246
+
247
+ type DocumentModel_DocumentSpecification {
248
+ version: Int!
249
+ state: DocumentModel_ScopeState!
250
+ modules: [DocumentModel_Module!]!
251
+ changeLog: [String!]!
252
+ }
253
+
254
+ type DocumentModel_Module {
255
+ id: ID!
256
+ name: String!
257
+ description: String
258
+ operations: [DocumentModel_Operation!]!
259
+ }
260
+
261
+ type DocumentModel_Operation {
262
+ id: ID!
263
+ name: String
264
+ schema: String
265
+ description: String
266
+ template: String
267
+ errors: [DocumentModel_OperationError!]!
268
+ examples: [DocumentModel_CodeExample!]!
269
+ reducer: String
270
+ scope: String
271
+ }
272
+
273
+ type DocumentModel_OperationError {
274
+ id: ID!
275
+ code: String
276
+ name: String
277
+ description: String
278
+ template: String
279
+ }
280
+
281
+ type DocumentModel_ScopeState {
282
+ global: DocumentModel_State!
283
+ local: DocumentModel_State!
284
+ }
285
+
286
+ type DocumentModel_State {
287
+ schema: String!
288
+ initialValue: String!
289
+ examples: [DocumentModel_CodeExample!]!
290
+ }
291
+
292
+ type DriveDocument implements IDocument {
293
+ id: String!
294
+ name: String!
295
+ documentType: String!
296
+ revision: Int!
297
+ createdAtUtcIso: DateTime!
298
+ lastModifiedAtUtcIso: DateTime!
299
+ operations(first: Int, skip: Int): [Operation!]!
300
+ stateJSON: JSONObject
301
+ }
302
+
303
+ scalar EmailAddress
304
+
305
+ scalar EthereumAddress
306
+
307
+ type GqlDocument implements IDocument {
308
+ id: String!
309
+ name: String!
310
+ documentType: String!
311
+ revision: Int!
312
+ createdAtUtcIso: DateTime!
313
+ lastModifiedAtUtcIso: DateTime!
314
+ operations(first: Int, skip: Int): [Operation!]!
315
+ stateJSON: JSONObject
316
+ }
317
+
318
+ interface IDocument {
319
+ id: String!
320
+ name: String!
321
+ documentType: String!
322
+ revision: Int!
323
+ createdAtUtcIso: DateTime!
324
+ lastModifiedAtUtcIso: DateTime!
325
+ operations(first: Int, skip: Int): [Operation!]!
326
+ stateJSON: JSONObject
327
+ }
328
+
329
+ """
330
+ The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
331
+ """
332
+ scalar JSONObject
333
+
334
+ type Mutation {
335
+ """
336
+ deadline is an ISO 8601 timestamp
337
+ """
338
+ requestErasure(
339
+ ids: [ID!]!
340
+ deadline: String
341
+ allowLarge: [ID!]
342
+ ): PrivacyErasureRequest!
343
+ }
344
+
345
+ scalar OID
346
+
347
+ scalar OLabel
348
+
349
+ type Operation {
350
+ id: String!
351
+ type: String!
352
+ index: Int!
353
+ timestampUtcMs: DateTime!
354
+ hash: String!
355
+ skip: Int
356
+ inputText: String
357
+ error: String
358
+ context: PHOperationContext
359
+ }
360
+
361
+ scalar PHID
362
+
363
+ type PHOperationContext {
364
+ signer: Signer
365
+ }
366
+
367
+ type PrivacyBoundSyncRemote {
368
+ name: String!
369
+ collectionId: String!
370
+ channelType: String!
371
+ }
372
+
373
+ type PrivacyDisclosure {
374
+ subjectHash: String!
375
+ documents: [PrivacySubjectDocument!]!
376
+ boundSyncRemotes: [PrivacyBoundSyncRemote!]!
377
+ peerManifests: [PrivacyPeerManifestAppKey!]!
378
+ permissions: [PrivacyPermissionRow!]!
379
+ notCovered: [String!]!
380
+ }
381
+
382
+ type PrivacyErasureItem {
383
+ documentId: ID!
384
+ status: String!
385
+ allowLarge: Boolean!
386
+ markerOrdinal: Int
387
+ lastError: String
388
+ updatedAt: String!
389
+ }
390
+
391
+ type PrivacyErasurePlan {
392
+ maxPurgeOperations: Int!
393
+ items: [PrivacyErasurePlanItem!]!
394
+ }
395
+
396
+ type PrivacyErasurePlanItem {
397
+ documentId: ID!
398
+ expandedFrom: ID
399
+ live: Boolean!
400
+ operationCount: Int!
401
+ groupReferencers: [ID!]!
402
+ }
403
+
404
+ type PrivacyErasureRequest {
405
+ requestId: ID!
406
+ subjectHash: String
407
+ requestedBy: String!
408
+ requestedAt: String!
409
+ deadline: String!
410
+ status: String!
411
+ items: [PrivacyErasureItem!]!
412
+ }
413
+
414
+ type PrivacyPeerManifestAppKey {
415
+ remoteName: String!
416
+ appKey: String!
417
+ heardAtUtcMs: Float
418
+ }
419
+
420
+ type PrivacyPermissionRow {
421
+ table: String!
422
+ column: String!
423
+ documentId: ID
424
+ """
425
+ JSON-encoded
426
+ """
427
+ detail: String
428
+ }
429
+
430
+ type PrivacySubjectDocument {
431
+ documentId: ID!
432
+ role: String!
433
+ firstOrdinal: Int!
434
+ lastOrdinal: Int!
435
+ }
436
+
437
+ type Query {
438
+ disclose(identifier: String!): PrivacyDisclosure!
439
+ erasurePlan(ids: [ID!]!): PrivacyErasurePlan!
440
+ erasureRequest(requestId: ID!): PrivacyErasureRequest!
441
+ _service: _Service!
442
+ }
443
+
444
+ type ReactorDrive implements IDocument {
445
+ id: String!
446
+ name: String!
447
+ documentType: String!
448
+ operations(skip: Int, first: Int): [Operation!]!
449
+ revision: Int!
450
+ createdAtUtcIso: DateTime!
451
+ lastModifiedAtUtcIso: DateTime!
452
+ initialState: ReactorDrive_ReactorDriveState!
453
+ state: ReactorDrive_ReactorDriveState!
454
+ stateJSON: JSONObject
455
+ }
456
+
457
+ type ReactorDrive_ReactorDriveLocalState {
458
+ sharingType: String!
459
+ availableOffline: Boolean!
460
+ }
461
+
462
+ type ReactorDrive_ReactorDriveState {
463
+ name: String!
464
+ icon: String
465
+ }
466
+
467
+ type ReactorGroup implements IDocument {
468
+ id: String!
469
+ name: String!
470
+ documentType: String!
471
+ operations(skip: Int, first: Int): [Operation!]!
472
+ revision: Int!
473
+ createdAtUtcIso: DateTime!
474
+ lastModifiedAtUtcIso: DateTime!
475
+ initialState: ReactorGroup_ReactorGroupState!
476
+ state: ReactorGroup_ReactorGroupState!
477
+ stateJSON: JSONObject
478
+ }
479
+
480
+ """
481
+ A member address list gated by the group document's own auth scope. Addresses
482
+ are stored as given and compared case-insensitively, matching how { address }
483
+ principals are compared during auth evaluation.
484
+ """
485
+ type ReactorGroup_ReactorGroupState {
486
+ """
487
+ Display name of the group.
488
+ """
489
+ name: String!
490
+ """
491
+ Free-text description of the group's purpose.
492
+ """
493
+ description: String!
494
+ """
495
+ Member wallet addresses. No duplicates under case-insensitive comparison.
496
+ """
497
+ members: [String!]!
498
+ }
499
+
500
+ type Signer {
501
+ user: SignerUser
502
+ app: SignerApp
503
+ signatures: [String!]!
504
+ }
505
+
506
+ type SignerApp {
507
+ name: String!
508
+ key: String!
509
+ }
510
+
511
+ type SignerUser {
512
+ address: String!
513
+ networkId: String!
514
+ chainId: Int!
515
+ }
516
+
517
+ scalar URL
518
+
519
+ """
520
+ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
521
+ """
522
+ scalar Unknown
523
+
524
+ scalar Upload
525
+
526
+ type Workflow implements IDocument {
527
+ id: String!
528
+ name: String!
529
+ documentType: String!
530
+ operations(skip: Int, first: Int): [Operation!]!
531
+ revision: Int!
532
+ createdAtUtcIso: DateTime!
533
+ lastModifiedAtUtcIso: DateTime!
534
+ initialState: Workflow_WorkflowState!
535
+ state: Workflow_WorkflowState!
536
+ stateJSON: JSONObject
537
+ }
538
+
539
+ enum Workflow_BackoffKind {
540
+ FIXED
541
+ EXPONENTIAL
542
+ }
543
+
544
+ enum Workflow_ConcurrencyMode {
545
+ SINGLETON
546
+ QUEUE
547
+ PARALLEL
548
+ }
549
+
550
+ enum Workflow_FailureMode {
551
+ PARK
552
+ NOTIFY
553
+ IGNORE
554
+ }
555
+
556
+ """
557
+ Layout only. The runtime ignores it.
558
+ """
559
+ type Workflow_Point {
560
+ x: Float!
561
+ y: Float!
562
+ }
563
+
564
+ enum Workflow_PropertyMode {
565
+ """
566
+ The field's own control.
567
+ """
568
+ MANUAL
569
+ """
570
+ The author switched the field to a free {{…}} expression.
571
+ """
572
+ EXPRESSION
573
+ }
574
+
575
+ type Workflow_PropertySetting {
576
+ prop: String!
577
+ mode: Workflow_PropertyMode!
578
+ """
579
+ Resolved DynamicProperties children, options stripped.
580
+ """
581
+ schema: Unknown
582
+ }
583
+
584
+ """
585
+ Snapshot of the draft taken by PUBLISH_WORKFLOW.
586
+ """
587
+ type Workflow_PublishedWorkflow {
588
+ """
589
+ Draft version the snapshot was taken at.
590
+ """
591
+ version: Int!
592
+ publishedAt: DateTime!
593
+ trigger: Workflow_TriggerBinding
594
+ steps: [Workflow_WorkflowStep!]!
595
+ edges: [Workflow_WorkflowEdge!]!
596
+ variables: [Workflow_WorkflowVariable!]!
597
+ policy: Workflow_WorkflowPolicy!
598
+ }
599
+
600
+ type Workflow_RetryPolicy {
601
+ """
602
+ 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.
603
+ """
604
+ maxAttempts: Int!
605
+ backoff: Workflow_BackoffKind!
606
+ initialDelaySeconds: Int!
607
+ maxDelaySeconds: Int!
608
+ """
609
+ 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.
610
+ """
611
+ retryOn: [String!]!
612
+ }
613
+
614
+ enum Workflow_RunStatus {
615
+ PENDING
616
+ RUNNING
617
+ WAITING
618
+ SUCCEEDED
619
+ FAILED
620
+ CANCELLED
621
+ PARKED
622
+ }
623
+
624
+ """
625
+ Reference to the latest test run in the run store.
626
+ """
627
+ type Workflow_StepTestRecord {
628
+ runId: String!
629
+ testedAt: DateTime!
630
+ }
631
+
632
+ type Workflow_TriggerBinding {
633
+ id: OID!
634
+ """
635
+ Package name of the trigger's piece, e.g. '@powerhousedao/piece-core' or '@acme/piece-imap'.
636
+ """
637
+ pieceName: String!
638
+ """
639
+ Exact semver of the piece, e.g. '1.2.0'.
640
+ """
641
+ pieceVersion: String!
642
+ """
643
+ Trigger name within the piece, e.g. 'schedule' or 'new_message'.
644
+ """
645
+ triggerName: String!
646
+ """
647
+ Connection document id, when the trigger's connector requires one.
648
+ """
649
+ connectionId: PHID
650
+ """
651
+ Reactor connection document id, when the trigger declares requireReactor.
652
+ """
653
+ reactorConnectionId: PHID
654
+ """
655
+ Validated against the trigger's configSchema.
656
+ """
657
+ config: Unknown!
658
+ propertySettings: [Workflow_PropertySetting!]
659
+ lastTest: Workflow_StepTestRecord
660
+ """
661
+ Timestamp of the last real edit; a lastTest before it is stale.
662
+ """
663
+ updatedAt: DateTime
664
+ }
665
+
666
+ enum Workflow_VariableType {
667
+ TEXT
668
+ NUMBER
669
+ BOOLEAN
670
+ JSON
671
+ """
672
+ value is a secret-provider handle (the format of a connection SecretRef.ref), never the plaintext.
673
+ """
674
+ SECRET
675
+ }
676
+
677
+ type Workflow_WorkflowEdge {
678
+ id: OID!
679
+ """
680
+ Source step id, or the trigger id for the entry edge.
681
+ """
682
+ from: OID!
683
+ to: OID!
684
+ """
685
+ 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.
686
+ """
687
+ port: String!
688
+ """
689
+ Optional guard expression; the edge is taken only when it evaluates truthy.
690
+ """
691
+ condition: String
692
+ }
693
+
694
+ """
695
+ What manages a workflow: the document that defines it, and how to name it to a person.
696
+ """
697
+ type Workflow_WorkflowManager {
698
+ documentId: PHID!
699
+ """
700
+ e.g. sektar/integration
701
+ """
702
+ documentType: String!
703
+ """
704
+ e.g. Powerhouse - Google Calendar
705
+ """
706
+ label: String!
707
+ }
708
+
709
+ type Workflow_WorkflowPolicy {
710
+ """
711
+ ENFORCED. SINGLETON drops a firing while a run is active (journaled CANCELLED, not dropped silently); QUEUE serialises; PARALLEL runs concurrently.
712
+ """
713
+ concurrency: Workflow_ConcurrencyMode!
714
+ """
715
+ ENFORCED under PARALLEL: how many runs of this workflow may execute at once; null is unbounded. SINGLETON and QUEUE are 1 by definition.
716
+ """
717
+ maxParallelRuns: Int
718
+ """
719
+ ENFORCED. Checked between steps and while a retry waits; past it the run ends CANCELLED.
720
+ """
721
+ runTimeoutSeconds: Int!
722
+ """
723
+ 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.
724
+ """
725
+ maxSuspensionDays: Int!
726
+ """
727
+ ENFORCED. The fallback for a step with no retry of its own.
728
+ """
729
+ defaultRetry: Workflow_RetryPolicy!
730
+ """
731
+ 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.
732
+ """
733
+ onFailure: Workflow_FailureMode!
734
+ """
735
+ 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.
736
+ """
737
+ retainRunsDays: Int!
738
+ """
739
+ NOT YET ENFORCED. The run journal is relational; there is no run document model to write.
740
+ """
741
+ journalAsDocument: Boolean!
742
+ }
743
+
744
+ type Workflow_WorkflowState {
745
+ name: String!
746
+ description: String
747
+ """
748
+ Only ENABLED workflows get trigger instances.
749
+ """
750
+ status: Workflow_WorkflowStatus!
751
+ """
752
+ Bumped on every draft edit; REVERT_TO_PUBLISHED resets it to published.version. A run records the version it executed.
753
+ """
754
+ version: Int!
755
+ trigger: Workflow_TriggerBinding
756
+ steps: [Workflow_WorkflowStep!]!
757
+ edges: [Workflow_WorkflowEdge!]!
758
+ variables: [Workflow_WorkflowVariable!]!
759
+ policy: Workflow_WorkflowPolicy!
760
+ """
761
+ Last published snapshot; version !== published.version means unpublished changes.
762
+ """
763
+ published: Workflow_PublishedWorkflow
764
+ """
765
+ Who keeps this workflow as it is, e.g. an app's integration; null: people edit it. Editors show a managed workflow read-only.
766
+ """
767
+ managedBy: Workflow_WorkflowManager
768
+ """
769
+ Denormalised for inspectors; written by the runtime.
770
+ """
771
+ lastRunAt: DateTime
772
+ lastRunStatus: Workflow_RunStatus
773
+ }
774
+
775
+ enum Workflow_WorkflowStatus {
776
+ DRAFT
777
+ ENABLED
778
+ DISABLED
779
+ ARCHIVED
780
+ }
781
+
782
+ type Workflow_WorkflowStep {
783
+ id: OID!
784
+ """
785
+ Author-visible label; unique within the workflow; used in expressions.
786
+ """
787
+ key: String!
788
+ name: String!
789
+ """
790
+ Package name of the step's piece, e.g. '@powerhousedao/piece-core' or '@activepieces/piece-http'.
791
+ """
792
+ pieceName: String!
793
+ """
794
+ Exact semver of the piece, e.g. '0.11.19'.
795
+ """
796
+ pieceVersion: String!
797
+ """
798
+ Action name within the piece, e.g. 'branch' or 'send_request'.
799
+ """
800
+ actionName: String!
801
+ connectionId: PHID
802
+ """
803
+ Reactor connection document id, when the action declares requireReactor.
804
+ """
805
+ reactorConnectionId: PHID
806
+ config: Unknown!
807
+ """
808
+ ENFORCED. Per-step override of the workflow default retry policy.
809
+ """
810
+ retry: Workflow_RetryPolicy
811
+ """
812
+ ENFORCED. Also raises the cap on each host call the step's piece makes, which is never shorter than the step's own timeout.
813
+ """
814
+ timeoutSeconds: Int
815
+ """
816
+ 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.
817
+ """
818
+ idempotencyKeyExpression: String
819
+ position: Workflow_Point
820
+ propertySettings: [Workflow_PropertySetting!]
821
+ lastTest: Workflow_StepTestRecord
822
+ """
823
+ Skipped steps are passed over at run time.
824
+ """
825
+ skip: Boolean
826
+ """
827
+ Timestamp of the last real edit; a lastTest before it is stale.
828
+ """
829
+ updatedAt: DateTime
830
+ }
831
+
832
+ type Workflow_WorkflowVariable {
833
+ id: OID!
834
+ """
835
+ Name used in expressions.
836
+ """
837
+ key: String!
838
+ """
839
+ The value a run reads as variables.<key>.
840
+ """
841
+ value: Unknown
842
+ description: String
843
+ """
844
+ Null means untyped; consumers infer the kind of value it holds.
845
+ """
846
+ type: Workflow_VariableType
847
+ }
848
+
849
+ scalar _FieldSet
850
+
851
+ type _Service {
852
+ sdl: String
853
+ }