@processfocus/runtime-local 0.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/LICENSE.md +28 -0
  2. package/README.md +290 -0
  3. package/dist/authentication-server.mjs +188 -0
  4. package/dist/chunk-2sb4v2sx.js +70 -0
  5. package/dist/chunk-9weqs8n8.js +56031 -0
  6. package/dist/chunk-mvkr77wp.js +54113 -0
  7. package/dist/chunk-tkn4cnc8.js +453 -0
  8. package/dist/chunk-vpsm84e8.js +85 -0
  9. package/dist/dashboard-source/apps/frontend/app/%5Fpf/app-icons/[...path]/route.ts +63 -0
  10. package/dist/dashboard-source/apps/frontend/app/%5Fpf/health/page.tsx +19 -0
  11. package/dist/dashboard-source/apps/frontend/app/%5Fpf/public-form-branding/[...path]/route.ts +95 -0
  12. package/dist/dashboard-source/apps/frontend/app/(protected)/act-on-behalf/actions.ts +248 -0
  13. package/dist/dashboard-source/apps/frontend/app/(protected)/act-on-behalf/delegations-client.tsx +751 -0
  14. package/dist/dashboard-source/apps/frontend/app/(protected)/act-on-behalf/page.tsx +46 -0
  15. package/dist/dashboard-source/apps/frontend/app/(protected)/client-index.tsx +375 -0
  16. package/dist/dashboard-source/apps/frontend/app/(protected)/client.tsx +14 -0
  17. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/@modal/(.)[executionId]/client.tsx +73 -0
  18. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/@modal/(.)[executionId]/page.tsx +20 -0
  19. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/@modal/(.)[executionId]/process-state/page.tsx +22 -0
  20. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/@modal/default.tsx +3 -0
  21. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/[executionId]/page.tsx +11 -0
  22. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/[executionId]/process-state/page.tsx +23 -0
  23. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/abandon-execution-dialog.tsx +137 -0
  24. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/execution-card-menu.tsx +233 -0
  25. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/layout.tsx +19 -0
  26. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/page.tsx +1549 -0
  27. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/process-state-dialog.tsx +91 -0
  28. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/process-state-modal-client.tsx +33 -0
  29. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/process-state-page-client.tsx +31 -0
  30. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/process-state-route-fallback.tsx +18 -0
  31. package/dist/dashboard-source/apps/frontend/app/(protected)/executions/restart-execution-feedback.tsx +40 -0
  32. package/dist/dashboard-source/apps/frontend/app/(protected)/layout.tsx +129 -0
  33. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/@modal/(.)item/[id]/client.tsx +215 -0
  34. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/@modal/(.)item/[id]/page.tsx +23 -0
  35. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/@modal/default.tsx +3 -0
  36. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/[...listPath]/list-page-client.tsx +678 -0
  37. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/[...listPath]/loading.tsx +10 -0
  38. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/[...listPath]/page.tsx +228 -0
  39. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/components/list-create-form.tsx +147 -0
  40. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/components/list-item-edit-form.tsx +246 -0
  41. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/hooks/metric-control-url-state.ts +71 -0
  42. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/hooks/use-list-deleted-callback.ts +22 -0
  43. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/hooks/use-list-item-detail.ts +315 -0
  44. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/item/[id]/client.tsx +259 -0
  45. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/item/[id]/page.tsx +46 -0
  46. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/layout.tsx +14 -0
  47. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/lib/list-detail-title.ts +20 -0
  48. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/lib/list-refresh.ts +26 -0
  49. package/dist/dashboard-source/apps/frontend/app/(protected)/lists/utils.ts +20 -0
  50. package/dist/dashboard-source/apps/frontend/app/(protected)/loading.tsx +5 -0
  51. package/dist/dashboard-source/apps/frontend/app/(protected)/org-chart/org-chart-client.tsx +74 -0
  52. package/dist/dashboard-source/apps/frontend/app/(protected)/org-chart/page.tsx +120 -0
  53. package/dist/dashboard-source/apps/frontend/app/(protected)/page.tsx +13 -0
  54. package/dist/dashboard-source/apps/frontend/app/(protected)/passkeys/actions.ts +188 -0
  55. package/dist/dashboard-source/apps/frontend/app/(protected)/passkeys/page.tsx +33 -0
  56. package/dist/dashboard-source/apps/frontend/app/(protected)/passkeys/passkeys-client.tsx +320 -0
  57. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/@modal/(.)start/[...startStepPath]/client.tsx +152 -0
  58. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/@modal/(.)start/[...startStepPath]/page.tsx +41 -0
  59. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/@modal/default.tsx +3 -0
  60. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/client.tsx +33 -0
  61. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/components/process-form-actions.tsx +105 -0
  62. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/components/process-submit-button.tsx +81 -0
  63. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/components/start-process-form.tsx +282 -0
  64. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/layout.tsx +21 -0
  65. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/lib/mobile-process-catalog.ts +28 -0
  66. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/lib/start-process-actions.ts +13 -0
  67. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/loading.tsx +10 -0
  68. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/page.tsx +5 -0
  69. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/processes-client.tsx +504 -0
  70. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/start/[...startStepPath]/client.tsx +153 -0
  71. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/start/[...startStepPath]/page.tsx +39 -0
  72. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/workflow/[...processPath]/loading.tsx +20 -0
  73. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/workflow/[...processPath]/page.tsx +131 -0
  74. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/workflow/[...processPath]/process-documentation.tsx +209 -0
  75. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/workflow/[...processPath]/use-workflow-auto-refresh.ts +120 -0
  76. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/workflow/[...processPath]/workflow-flow.tsx +319 -0
  77. package/dist/dashboard-source/apps/frontend/app/(protected)/processes/workflow/[...processPath]/workflow-form-preview-sheet.tsx +98 -0
  78. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/[[...tab]]/loading.tsx +1 -0
  79. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/[[...tab]]/page.tsx +100 -0
  80. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/access-handbook.tsx +110 -0
  81. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/authorization-loading.tsx +25 -0
  82. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/authorization-tabs.tsx +47 -0
  83. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/cedar-authorize.ts +261 -0
  84. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/cedar-helpers.ts +17 -0
  85. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/cedar-source.tsx +34 -0
  86. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/cedar-types.ts +79 -0
  87. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/evaluate-cedar.ts +43 -0
  88. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/explorer.tsx +526 -0
  89. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/layout.tsx +23 -0
  90. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/load-cedar.ts +174 -0
  91. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/load-handbook.ts +390 -0
  92. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/cedar/org-data.ts +70 -0
  93. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/invitations/[invitationId]/page.tsx +22 -0
  94. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/invitations/invitation-detail-client.tsx +594 -0
  95. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/invitations/invitation-detail-skeleton.tsx +48 -0
  96. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/invitations/new/page.tsx +5 -0
  97. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/invitations-table.tsx +186 -0
  98. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/page.tsx +69 -0
  99. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/providers-table.tsx +48 -0
  100. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/roles-table.tsx +62 -0
  101. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/settings-client.tsx +244 -0
  102. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/users/[userId]/client.tsx +329 -0
  103. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/users/[userId]/page.tsx +21 -0
  104. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/users/[userId]/tokens/page.tsx +39 -0
  105. package/dist/dashboard-source/apps/frontend/app/(protected)/settings/users-table.tsx +82 -0
  106. package/dist/dashboard-source/apps/frontend/app/(protected)/stats/[...statsPath]/error.tsx +34 -0
  107. package/dist/dashboard-source/apps/frontend/app/(protected)/stats/[...statsPath]/not-found.tsx +13 -0
  108. package/dist/dashboard-source/apps/frontend/app/(protected)/stats/[...statsPath]/page.tsx +84 -0
  109. package/dist/dashboard-source/apps/frontend/app/(protected)/stats/[...statsPath]/stats-data-fetcher.tsx +93 -0
  110. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/@modal/(.)complete/[...stepPath]/client.tsx +143 -0
  111. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/@modal/(.)complete/[...stepPath]/page.tsx +50 -0
  112. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/@modal/default.tsx +3 -0
  113. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/complete/[...stepPath]/client.tsx +131 -0
  114. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/complete/[...stepPath]/page.tsx +50 -0
  115. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/components/complete-todo-form.tsx +172 -0
  116. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/components/public-completion-correction-form.tsx +233 -0
  117. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/components/todo-form-actions.tsx +26 -0
  118. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/correct/[...stepPath]/page.tsx +58 -0
  119. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/layout.tsx +14 -0
  120. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/lib/mobile-todo-list.ts +154 -0
  121. package/dist/dashboard-source/apps/frontend/app/(protected)/to-dos/page.tsx +1317 -0
  122. package/dist/dashboard-source/apps/frontend/app/api/auth/callback/route.ts +259 -0
  123. package/dist/dashboard-source/apps/frontend/app/api/auth/delegation/route.ts +127 -0
  124. package/dist/dashboard-source/apps/frontend/app/api/auth/login/route.ts +49 -0
  125. package/dist/dashboard-source/apps/frontend/app/api/auth/logout/route.ts +33 -0
  126. package/dist/dashboard-source/apps/frontend/app/api/auth/passkey/auth-options/route.ts +79 -0
  127. package/dist/dashboard-source/apps/frontend/app/api/auth/passkey/auth-verify/route.ts +142 -0
  128. package/dist/dashboard-source/apps/frontend/app/api/auth/passkey/register/route.ts +103 -0
  129. package/dist/dashboard-source/apps/frontend/app/api/auth/passkey/register-verify/route.ts +136 -0
  130. package/dist/dashboard-source/apps/frontend/app/api/auth/passkey/registration-session/route.ts +129 -0
  131. package/dist/dashboard-source/apps/frontend/app/api/auth/passkey/start/route.ts +153 -0
  132. package/dist/dashboard-source/apps/frontend/app/api/auth/refresh/route.ts +122 -0
  133. package/dist/dashboard-source/apps/frontend/app/api/auth/switch-role/route.ts +177 -0
  134. package/dist/dashboard-source/apps/frontend/app/api/dev/import-completed/route.ts +22 -0
  135. package/dist/dashboard-source/apps/frontend/app/api/dev/import-events/route.ts +38 -0
  136. package/dist/dashboard-source/apps/frontend/app/api/embed/lookup/route.ts +266 -0
  137. package/dist/dashboard-source/apps/frontend/app/api/embed/submit/route.ts +118 -0
  138. package/dist/dashboard-source/apps/frontend/app/api/embed/test-host/route.ts +125 -0
  139. package/dist/dashboard-source/apps/frontend/app/api/public/to-dos/calendar-slots/route.ts +44 -0
  140. package/dist/dashboard-source/apps/frontend/app/api/public/to-dos/complete/route.ts +56 -0
  141. package/dist/dashboard-source/apps/frontend/app/api/public/to-dos/lookup/route.ts +61 -0
  142. package/dist/dashboard-source/apps/frontend/app/api/public/to-dos/request-fresh-link/route.ts +41 -0
  143. package/dist/dashboard-source/apps/frontend/app/api/revalidate/route.ts +61 -0
  144. package/dist/dashboard-source/apps/frontend/app/app-shell.tsx +100 -0
  145. package/dist/dashboard-source/apps/frontend/app/cli-auth/route.ts +261 -0
  146. package/dist/dashboard-source/apps/frontend/app/embed/[...startStepPath]/embed-client.tsx +393 -0
  147. package/dist/dashboard-source/apps/frontend/app/embed/[...startStepPath]/loading.tsx +13 -0
  148. package/dist/dashboard-source/apps/frontend/app/embed/[...startStepPath]/page.tsx +51 -0
  149. package/dist/dashboard-source/apps/frontend/app/embed/embedded.css +48 -0
  150. package/dist/dashboard-source/apps/frontend/app/embed/layout.tsx +15 -0
  151. package/dist/dashboard-source/apps/frontend/app/global.css +13 -0
  152. package/dist/dashboard-source/apps/frontend/app/layout.tsx +102 -0
  153. package/dist/dashboard-source/apps/frontend/app/login/layout.tsx +9 -0
  154. package/dist/dashboard-source/apps/frontend/app/login/login-button.tsx +35 -0
  155. package/dist/dashboard-source/apps/frontend/app/login/login-form-content.tsx +117 -0
  156. package/dist/dashboard-source/apps/frontend/app/login/login-form.tsx +30 -0
  157. package/dist/dashboard-source/apps/frontend/app/login/page.tsx +52 -0
  158. package/dist/dashboard-source/apps/frontend/app/login/passkey-button.tsx +226 -0
  159. package/dist/dashboard-source/apps/frontend/app/login/secret-login-form.tsx +91 -0
  160. package/dist/dashboard-source/apps/frontend/app/manifest.ts +7 -0
  161. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/error.tsx +63 -0
  162. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/layout.tsx +34 -0
  163. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/page.tsx +129 -0
  164. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/public-form-branding-card.tsx +42 -0
  165. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/public-form-branding-context.tsx +27 -0
  166. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/public-form-branding-html.tsx +40 -0
  167. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/public-todo-client.tsx +553 -0
  168. package/dist/dashboard-source/apps/frontend/app/public/form/[token]/public-todo-state-content.tsx +27 -0
  169. package/dist/dashboard-source/apps/frontend/app/public.css +33 -0
  170. package/dist/dashboard-source/apps/frontend/app/register/passkey/layout.tsx +49 -0
  171. package/dist/dashboard-source/apps/frontend/app/register/passkey/page.tsx +36 -0
  172. package/dist/dashboard-source/apps/frontend/app/register/passkey/register-passkey-client.tsx +292 -0
  173. package/dist/dashboard-source/apps/frontend/app/theme.css +117 -0
  174. package/dist/dashboard-source/apps/frontend/components/DashboardSection.tsx +693 -0
  175. package/dist/dashboard-source/apps/frontend/components/Header.tsx +481 -0
  176. package/dist/dashboard-source/apps/frontend/components/OrgUnitNode.tsx +41 -0
  177. package/dist/dashboard-source/apps/frontend/components/app-sidebar.tsx +245 -0
  178. package/dist/dashboard-source/apps/frontend/components/auth-provider.tsx +158 -0
  179. package/dist/dashboard-source/apps/frontend/components/collections/collection-table-card.tsx +218 -0
  180. package/dist/dashboard-source/apps/frontend/components/collections/collection-table-header-row.tsx +97 -0
  181. package/dist/dashboard-source/apps/frontend/components/config-provider.tsx +27 -0
  182. package/dist/dashboard-source/apps/frontend/components/copy-button.tsx +40 -0
  183. package/dist/dashboard-source/apps/frontend/components/dashboard-activity.tsx +35 -0
  184. package/dist/dashboard-source/apps/frontend/components/dashboard-skeleton.tsx +17 -0
  185. package/dist/dashboard-source/apps/frontend/components/delegation-expiry.tsx +21 -0
  186. package/dist/dashboard-source/apps/frontend/components/feature-permissions-provider.tsx +28 -0
  187. package/dist/dashboard-source/apps/frontend/components/form-dialog-content.tsx +66 -0
  188. package/dist/dashboard-source/apps/frontend/components/frontend-client-plugin-host.tsx +27 -0
  189. package/dist/dashboard-source/apps/frontend/components/frontend-client-plugin-identify.tsx +33 -0
  190. package/dist/dashboard-source/apps/frontend/components/frontend-client-plugin-provider.tsx +55 -0
  191. package/dist/dashboard-source/apps/frontend/components/journey-timeline.tsx +378 -0
  192. package/dist/dashboard-source/apps/frontend/components/mobile-home-switchboard.tsx +98 -0
  193. package/dist/dashboard-source/apps/frontend/components/mocks-provider.tsx +27 -0
  194. package/dist/dashboard-source/apps/frontend/components/notification-bell.tsx +137 -0
  195. package/dist/dashboard-source/apps/frontend/components/org-settings-provider.tsx +26 -0
  196. package/dist/dashboard-source/apps/frontend/components/process-workflow-link.tsx +36 -0
  197. package/dist/dashboard-source/apps/frontend/components/session-reissue.tsx +48 -0
  198. package/dist/dashboard-source/apps/frontend/components/sidebar-lists.tsx +89 -0
  199. package/dist/dashboard-source/apps/frontend/components/sidebar-stats-views.tsx +65 -0
  200. package/dist/dashboard-source/apps/frontend/components/theme-provider.tsx +132 -0
  201. package/dist/dashboard-source/apps/frontend/components/todo-count-badge.tsx +59 -0
  202. package/dist/dashboard-source/apps/frontend/components/token-refresh-scheduler.tsx +304 -0
  203. package/dist/dashboard-source/apps/frontend/components/ui/checkbox.tsx +31 -0
  204. package/dist/dashboard-source/apps/frontend/components/ui/dialog.tsx +142 -0
  205. package/dist/dashboard-source/apps/frontend/components/ui/dropdown-menu.tsx +256 -0
  206. package/dist/dashboard-source/apps/frontend/components/ui/input.tsx +20 -0
  207. package/dist/dashboard-source/apps/frontend/components/ui/pagination.tsx +59 -0
  208. package/dist/dashboard-source/apps/frontend/components/ui/sheet.tsx +138 -0
  209. package/dist/dashboard-source/apps/frontend/components/ui/sidebar.tsx +741 -0
  210. package/dist/dashboard-source/apps/frontend/components/ui/skeleton.tsx +13 -0
  211. package/dist/dashboard-source/apps/frontend/components/ui/tab-pill.tsx +30 -0
  212. package/dist/dashboard-source/apps/frontend/components/ui/table.tsx +115 -0
  213. package/dist/dashboard-source/apps/frontend/components/ui/tooltip.tsx +60 -0
  214. package/dist/dashboard-source/apps/frontend/components/without-waiting-badge.tsx +24 -0
  215. package/dist/dashboard-source/apps/frontend/components/workflow/step-node.tsx +116 -0
  216. package/dist/dashboard-source/apps/frontend/components/workflow/swimlane-node.tsx +46 -0
  217. package/dist/dashboard-source/apps/frontend/components/workflow/workflow-edge.tsx +172 -0
  218. package/dist/dashboard-source/apps/frontend/hooks/use-draft-process-save.ts +189 -0
  219. package/dist/dashboard-source/apps/frontend/hooks/use-draft-state.ts +79 -0
  220. package/dist/dashboard-source/apps/frontend/hooks/use-form-metadata.ts +74 -0
  221. package/dist/dashboard-source/apps/frontend/hooks/use-mobile.ts +27 -0
  222. package/dist/dashboard-source/apps/frontend/hooks/use-notification-preference.ts +246 -0
  223. package/dist/dashboard-source/apps/frontend/hooks/use-processes-query.ts +56 -0
  224. package/dist/dashboard-source/apps/frontend/hooks/use-weekly-execution-stats.ts +101 -0
  225. package/dist/dashboard-source/apps/frontend/index.d.ts +12 -0
  226. package/dist/dashboard-source/apps/frontend/instrumentation.node.ts +25 -0
  227. package/dist/dashboard-source/apps/frontend/instrumentation.ts +19 -0
  228. package/dist/dashboard-source/apps/frontend/lib/app-icons-metadata.ts +66 -0
  229. package/dist/dashboard-source/apps/frontend/lib/appsync-events/adapter.ts +128 -0
  230. package/dist/dashboard-source/apps/frontend/lib/appsync-events/client.ts +355 -0
  231. package/dist/dashboard-source/apps/frontend/lib/appsync-events/config.ts +18 -0
  232. package/dist/dashboard-source/apps/frontend/lib/appsync-events/reconnect-registry.ts +34 -0
  233. package/dist/dashboard-source/apps/frontend/lib/auth/act-on-behalf-menu.ts +9 -0
  234. package/dist/dashboard-source/apps/frontend/lib/auth/callback-error.ts +26 -0
  235. package/dist/dashboard-source/apps/frontend/lib/auth/client-session.ts +32 -0
  236. package/dist/dashboard-source/apps/frontend/lib/auth/client.ts +46 -0
  237. package/dist/dashboard-source/apps/frontend/lib/auth/config.ts +48 -0
  238. package/dist/dashboard-source/apps/frontend/lib/auth/delegations.ts +62 -0
  239. package/dist/dashboard-source/apps/frontend/lib/auth/issuer.ts +164 -0
  240. package/dist/dashboard-source/apps/frontend/lib/auth/jwt.ts +17 -0
  241. package/dist/dashboard-source/apps/frontend/lib/auth/logout.ts +35 -0
  242. package/dist/dashboard-source/apps/frontend/lib/auth/passkeys-menu.ts +9 -0
  243. package/dist/dashboard-source/apps/frontend/lib/auth/passkeys.ts +117 -0
  244. package/dist/dashboard-source/apps/frontend/lib/auth/providers.ts +52 -0
  245. package/dist/dashboard-source/apps/frontend/lib/auth/realtime-session-token.ts +62 -0
  246. package/dist/dashboard-source/apps/frontend/lib/auth/reauthentication-state.ts +16 -0
  247. package/dist/dashboard-source/apps/frontend/lib/auth/redirect.ts +105 -0
  248. package/dist/dashboard-source/apps/frontend/lib/auth/secret-login-presentation.ts +33 -0
  249. package/dist/dashboard-source/apps/frontend/lib/auth/session-cache-scope.ts +1 -0
  250. package/dist/dashboard-source/apps/frontend/lib/auth/session-role.ts +6 -0
  251. package/dist/dashboard-source/apps/frontend/lib/auth/session.ts +277 -0
  252. package/dist/dashboard-source/apps/frontend/lib/auth/ssr-session.ts +76 -0
  253. package/dist/dashboard-source/apps/frontend/lib/auth/verify-passkey.ts +95 -0
  254. package/dist/dashboard-source/apps/frontend/lib/authorization-tabs.ts +19 -0
  255. package/dist/dashboard-source/apps/frontend/lib/cedar-highlight.ts +116 -0
  256. package/dist/dashboard-source/apps/frontend/lib/client-plugin-error-reporting.ts +28 -0
  257. package/dist/dashboard-source/apps/frontend/lib/collections/collection-provider-factory.tsx +1119 -0
  258. package/dist/dashboard-source/apps/frontend/lib/collections/collection-provider-scope.ts +48 -0
  259. package/dist/dashboard-source/apps/frontend/lib/collections/database-error-ui.tsx +61 -0
  260. package/dist/dashboard-source/apps/frontend/lib/collections/draft-process-execution-collection-provider.tsx +32 -0
  261. package/dist/dashboard-source/apps/frontend/lib/collections/draft-process-execution.ts +161 -0
  262. package/dist/dashboard-source/apps/frontend/lib/collections/execution-collection-provider.tsx +42 -0
  263. package/dist/dashboard-source/apps/frontend/lib/collections/execution.ts +215 -0
  264. package/dist/dashboard-source/apps/frontend/lib/collections/graphql-stream.ts +123 -0
  265. package/dist/dashboard-source/apps/frontend/lib/collections/process-collection-provider.tsx +30 -0
  266. package/dist/dashboard-source/apps/frontend/lib/collections/process.ts +123 -0
  267. package/dist/dashboard-source/apps/frontend/lib/collections/replication-factory.ts +394 -0
  268. package/dist/dashboard-source/apps/frontend/lib/collections/replication-registry.ts +196 -0
  269. package/dist/dashboard-source/apps/frontend/lib/collections/rxdb-database-name.ts +19 -0
  270. package/dist/dashboard-source/apps/frontend/lib/collections/rxdb-lifecycle.ts +368 -0
  271. package/dist/dashboard-source/apps/frontend/lib/collections/rxdb-provider.tsx +577 -0
  272. package/dist/dashboard-source/apps/frontend/lib/collections/todo-collection-provider.tsx +30 -0
  273. package/dist/dashboard-source/apps/frontend/lib/collections/todo.ts +133 -0
  274. package/dist/dashboard-source/apps/frontend/lib/current-provider-user.ts +30 -0
  275. package/dist/dashboard-source/apps/frontend/lib/dev/frontend-port-file.ts +41 -0
  276. package/dist/dashboard-source/apps/frontend/lib/dev/import-completed-events.ts +21 -0
  277. package/dist/dashboard-source/apps/frontend/lib/dev/import-completed-query-invalidation.tsx +62 -0
  278. package/dist/dashboard-source/apps/frontend/lib/dev/import-completed-refresh.ts +40 -0
  279. package/dist/dashboard-source/apps/frontend/lib/effect/error-boundary.tsx +84 -0
  280. package/dist/dashboard-source/apps/frontend/lib/effect/index.ts +31 -0
  281. package/dist/dashboard-source/apps/frontend/lib/effect/params.ts +57 -0
  282. package/dist/dashboard-source/apps/frontend/lib/effect/run-effect.ts +17 -0
  283. package/dist/dashboard-source/apps/frontend/lib/effect/runtime.ts +168 -0
  284. package/dist/dashboard-source/apps/frontend/lib/effect/services/access-token.ts +48 -0
  285. package/dist/dashboard-source/apps/frontend/lib/effect/services/authorization.ts +206 -0
  286. package/dist/dashboard-source/apps/frontend/lib/effect/services/form-validation.ts +36 -0
  287. package/dist/dashboard-source/apps/frontend/lib/effect/services/graphql.ts +94 -0
  288. package/dist/dashboard-source/apps/frontend/lib/effect/services/index.ts +21 -0
  289. package/dist/dashboard-source/apps/frontend/lib/embed-manifest-store.ts +20 -0
  290. package/dist/dashboard-source/apps/frontend/lib/embed-manifest.ts +152 -0
  291. package/dist/dashboard-source/apps/frontend/lib/embed-request-origin.ts +39 -0
  292. package/dist/dashboard-source/apps/frontend/lib/errors/get-display-error-message.ts +22 -0
  293. package/dist/dashboard-source/apps/frontend/lib/execution-menu-actions-registry.ts +26 -0
  294. package/dist/dashboard-source/apps/frontend/lib/feature-permissions.ts +13 -0
  295. package/dist/dashboard-source/apps/frontend/lib/frontend-boot-health.tsx +161 -0
  296. package/dist/dashboard-source/apps/frontend/lib/frontend-client-plugin-registry.ts +45 -0
  297. package/dist/dashboard-source/apps/frontend/lib/frontend-manifest-store.ts +214 -0
  298. package/dist/dashboard-source/apps/frontend/lib/frontend-manifest.ts +74 -0
  299. package/dist/dashboard-source/apps/frontend/lib/frontend-plugin-loaders.ts +191 -0
  300. package/dist/dashboard-source/apps/frontend/lib/generated/gql/fragment-masking.ts +87 -0
  301. package/dist/dashboard-source/apps/frontend/lib/generated/gql/gql.ts +292 -0
  302. package/dist/dashboard-source/apps/frontend/lib/generated/gql/graphql.ts +443 -0
  303. package/dist/dashboard-source/apps/frontend/lib/generated/gql/index.ts +2 -0
  304. package/dist/dashboard-source/apps/frontend/lib/graphql/client-consumer.tsx +23 -0
  305. package/dist/dashboard-source/apps/frontend/lib/graphql/client-error-reporting.ts +268 -0
  306. package/dist/dashboard-source/apps/frontend/lib/graphql/client-provider.tsx +59 -0
  307. package/dist/dashboard-source/apps/frontend/lib/graphql/dashboard-activity.ts +7 -0
  308. package/dist/dashboard-source/apps/frontend/lib/graphql/dependent-lookup-query.ts +78 -0
  309. package/dist/dashboard-source/apps/frontend/lib/graphql/endpoint.ts +26 -0
  310. package/dist/dashboard-source/apps/frontend/lib/graphql/execution-queries.ts +70 -0
  311. package/dist/dashboard-source/apps/frontend/lib/graphql/file-upload-provider.tsx +82 -0
  312. package/dist/dashboard-source/apps/frontend/lib/graphql/graphql-identifiers.ts +10 -0
  313. package/dist/dashboard-source/apps/frontend/lib/graphql/list-queries.ts +327 -0
  314. package/dist/dashboard-source/apps/frontend/lib/graphql/lookup-provider.tsx +81 -0
  315. package/dist/dashboard-source/apps/frontend/lib/graphql/org-chart-operations.ts +63 -0
  316. package/dist/dashboard-source/apps/frontend/lib/graphql/org-chart-queries.ts +67 -0
  317. package/dist/dashboard-source/apps/frontend/lib/graphql/provider-user-queries.ts +65 -0
  318. package/dist/dashboard-source/apps/frontend/lib/graphql/queries.ts +80 -0
  319. package/dist/dashboard-source/apps/frontend/lib/graphql/server-client.ts +15 -0
  320. package/dist/dashboard-source/apps/frontend/lib/graphql/settings-queries.ts +634 -0
  321. package/dist/dashboard-source/apps/frontend/lib/graphql/stats-views-server.ts +16 -0
  322. package/dist/dashboard-source/apps/frontend/lib/graphql/stats-views.ts +33 -0
  323. package/dist/dashboard-source/apps/frontend/lib/graphql/user-queries.ts +138 -0
  324. package/dist/dashboard-source/apps/frontend/lib/graphql/workflow-operations.ts +54 -0
  325. package/dist/dashboard-source/apps/frontend/lib/graphql/workflow-queries.ts +50 -0
  326. package/dist/dashboard-source/apps/frontend/lib/mobile-home-view-model.ts +74 -0
  327. package/dist/dashboard-source/apps/frontend/lib/mobile-shell-policy.ts +124 -0
  328. package/dist/dashboard-source/apps/frontend/lib/mock-data.ts +364 -0
  329. package/dist/dashboard-source/apps/frontend/lib/notifications/notification-preference.ts +251 -0
  330. package/dist/dashboard-source/apps/frontend/lib/notifications/todo-notification-observer.ts +178 -0
  331. package/dist/dashboard-source/apps/frontend/lib/notifications/todo-notifications-runtime.tsx +14 -0
  332. package/dist/dashboard-source/apps/frontend/lib/notifications/use-todo-notifications.tsx +103 -0
  333. package/dist/dashboard-source/apps/frontend/lib/org-chart-data.ts +50 -0
  334. package/dist/dashboard-source/apps/frontend/lib/org-chart-depth-config.ts +71 -0
  335. package/dist/dashboard-source/apps/frontend/lib/org-chart-layout.ts +149 -0
  336. package/dist/dashboard-source/apps/frontend/lib/org-chart-types.ts +17 -0
  337. package/dist/dashboard-source/apps/frontend/lib/org-identity.ts +57 -0
  338. package/dist/dashboard-source/apps/frontend/lib/organisation-plugin-loaders.ts +13 -0
  339. package/dist/dashboard-source/apps/frontend/lib/organisation-plugin-preparation.ts +2 -0
  340. package/dist/dashboard-source/apps/frontend/lib/plugins-client.tsx +99 -0
  341. package/dist/dashboard-source/apps/frontend/lib/plugins.ts +1 -0
  342. package/dist/dashboard-source/apps/frontend/lib/public-todo-form-runtime.ts +9 -0
  343. package/dist/dashboard-source/apps/frontend/lib/public-todo-graphql-errors.ts +45 -0
  344. package/dist/dashboard-source/apps/frontend/lib/public-todo-model.ts +200 -0
  345. package/dist/dashboard-source/apps/frontend/lib/public-todo-server.ts +209 -0
  346. package/dist/dashboard-source/apps/frontend/lib/query-client.ts +41 -0
  347. package/dist/dashboard-source/apps/frontend/lib/restart-execution-action.ts +76 -0
  348. package/dist/dashboard-source/apps/frontend/lib/runtime-config.ts +23 -0
  349. package/dist/dashboard-source/apps/frontend/lib/telemetry/constants.ts +5 -0
  350. package/dist/dashboard-source/apps/frontend/lib/telemetry/otlp-config.ts +16 -0
  351. package/dist/dashboard-source/apps/frontend/lib/telemetry/register-otel.ts +308 -0
  352. package/dist/dashboard-source/apps/frontend/lib/theme.ts +9 -0
  353. package/dist/dashboard-source/apps/frontend/lib/todo-types.ts +64 -0
  354. package/dist/dashboard-source/apps/frontend/lib/todo-utils.ts +144 -0
  355. package/dist/dashboard-source/apps/frontend/lib/types/org-identity.ts +7 -0
  356. package/dist/dashboard-source/apps/frontend/lib/utils.ts +16 -0
  357. package/dist/dashboard-source/apps/frontend/lib/workflow/constants.ts +118 -0
  358. package/dist/dashboard-source/apps/frontend/lib/workflow/edge-routing.ts +195 -0
  359. package/dist/dashboard-source/apps/frontend/lib/workflow/form-preview.ts +8 -0
  360. package/dist/dashboard-source/apps/frontend/lib/workflow/layout.ts +878 -0
  361. package/dist/dashboard-source/apps/frontend/lib/workflow/types.ts +63 -0
  362. package/dist/dashboard-source/apps/frontend/next.config.ts +238 -0
  363. package/dist/dashboard-source/apps/frontend/package.json +71 -0
  364. package/dist/dashboard-source/apps/frontend/postcss.config.mjs +5 -0
  365. package/dist/dashboard-source/apps/frontend/proxy.ts +293 -0
  366. package/dist/dashboard-source/apps/frontend/public/.gitkeep +0 -0
  367. package/dist/dashboard-source/apps/frontend/public/favicon.ico +0 -0
  368. package/dist/dashboard-source/apps/frontend/public/processfocus-embed.js +553 -0
  369. package/dist/dashboard-source/apps/frontend/tsconfig.json +35 -0
  370. package/dist/dashboard-source/modules/auth-local-cedar/src/index.ts +7 -0
  371. package/dist/dashboard-source/modules/auth-local-cedar/src/lib/auth-local-cedar.ts +1397 -0
  372. package/dist/dashboard-source/modules/auth-local-cedar/src/lib/cedar-reload-notifier.ts +18 -0
  373. package/dist/dashboard-source/modules/auth-local-cedar/src/lib/config-base.ts +346 -0
  374. package/dist/dashboard-source/modules/auth-local-cedar/src/lib/policy-watcher.ts +172 -0
  375. package/dist/dashboard-source/modules/auth-policy/src/index.ts +4 -0
  376. package/dist/dashboard-source/modules/auth-policy/src/lib/auth-policy.ts +263 -0
  377. package/dist/dashboard-source/modules/auth-policy/src/lib/current-principal.ts +34 -0
  378. package/dist/dashboard-source/modules/auth-policy/src/lib/errors.ts +47 -0
  379. package/dist/dashboard-source/modules/auth-policy/src/lib/types.ts +595 -0
  380. package/dist/dashboard-source/modules/auth-session/src/index.ts +22 -0
  381. package/dist/dashboard-source/modules/auth-session/src/lib/issuer-url.ts +192 -0
  382. package/dist/dashboard-source/modules/auth-session/src/lib/realtime-recipient.ts +76 -0
  383. package/dist/dashboard-source/modules/auth-session/src/lib/session-cache-scope.ts +24 -0
  384. package/dist/dashboard-source/modules/auth-session/src/lib/subjects.ts +54 -0
  385. package/dist/dashboard-source/modules/auth-session/src/lib/url.ts +2 -0
  386. package/dist/dashboard-source/modules/aws-common/src/index.ts +3 -0
  387. package/dist/dashboard-source/modules/aws-common/src/lib/acm.ts +50 -0
  388. package/dist/dashboard-source/modules/aws-common/src/lib/otlp-config.ts +66 -0
  389. package/dist/dashboard-source/modules/aws-common/src/lib/runtime-ssm.ts +28 -0
  390. package/dist/dashboard-source/modules/effect-json-logger/src/index.ts +1 -0
  391. package/dist/dashboard-source/modules/effect-json-logger/src/lib/effect-json-logger.ts +65 -0
  392. package/dist/dashboard-source/modules/form/src/hooks/use-local-storage.ts +78 -0
  393. package/dist/dashboard-source/modules/form/src/index.ts +20 -0
  394. package/dist/dashboard-source/modules/form/src/lib/ajv-standard-schema.ts +152 -0
  395. package/dist/dashboard-source/modules/form/src/lib/client-components-to-form.tsx +1421 -0
  396. package/dist/dashboard-source/modules/form/src/lib/friendly-validation-message.ts +85 -0
  397. package/dist/dashboard-source/modules/form/src/lib/lookup-context.tsx +58 -0
  398. package/dist/dashboard-source/modules/form/src/lib/plugin-registry.ts +34 -0
  399. package/dist/dashboard-source/modules/form/src/lib/walker.tsx +1554 -0
  400. package/dist/dashboard-source/modules/form-client-representation/src/lib/client-form-definition.ts +440 -0
  401. package/dist/dashboard-source/modules/form-client-representation/src/lib/plugin-registry.ts +13 -0
  402. package/dist/dashboard-source/modules/form-client-representation/src/lib/types.ts +336 -0
  403. package/dist/dashboard-source/modules/form-rule/src/index.ts +21 -0
  404. package/dist/dashboard-source/modules/form-rule/src/lib/evaluator.ts +531 -0
  405. package/dist/dashboard-source/modules/form-rule/src/lib/paths.ts +102 -0
  406. package/dist/dashboard-source/modules/form-rule/src/lib/types.ts +121 -0
  407. package/dist/dashboard-source/modules/form-schema/src/index.ts +8 -0
  408. package/dist/dashboard-source/modules/form-schema/src/lib/annotation-helpers.ts +44 -0
  409. package/dist/dashboard-source/modules/form-schema/src/lib/deferred-value.ts +21 -0
  410. package/dist/dashboard-source/modules/form-schema/src/lib/email.ts +50 -0
  411. package/dist/dashboard-source/modules/form-schema/src/lib/field-count.ts +82 -0
  412. package/dist/dashboard-source/modules/form-schema/src/lib/form-annotations.ts +58 -0
  413. package/dist/dashboard-source/modules/form-schema/src/lib/form-schema.ts +975 -0
  414. package/dist/dashboard-source/modules/form-schema/src/lib/phone.ts +60 -0
  415. package/dist/dashboard-source/modules/form-schema/src/lib/property-signature.ts +45 -0
  416. package/dist/dashboard-source/modules/frontend-endpoints/src/endpoint.ts +137 -0
  417. package/dist/dashboard-source/modules/frontend-endpoints/src/index.ts +11 -0
  418. package/dist/dashboard-source/modules/frontend-endpoints/src/port-files.ts +219 -0
  419. package/dist/dashboard-source/modules/frontend-manifest/src/index.ts +2 -0
  420. package/dist/dashboard-source/modules/frontend-manifest/src/lib/browser-plugin-artifact.ts +201 -0
  421. package/dist/dashboard-source/modules/frontend-manifest/src/lib/frontend-manifest.ts +408 -0
  422. package/dist/dashboard-source/modules/frontend-plugin-host/src/index.ts +29 -0
  423. package/dist/dashboard-source/modules/frontend-plugin-host/src/lib/frontend-plugin-host.ts +288 -0
  424. package/dist/dashboard-source/modules/openauth/src/client.ts +1045 -0
  425. package/dist/dashboard-source/modules/openauth/src/error.ts +140 -0
  426. package/dist/dashboard-source/modules/openauth/src/pkce.ts +40 -0
  427. package/dist/dashboard-source/modules/openauth/src/random.ts +24 -0
  428. package/dist/dashboard-source/modules/openauth/src/subject.ts +132 -0
  429. package/dist/dashboard-source/modules/openauth/src/util.ts +13 -0
  430. package/dist/dashboard-source/modules/request-time/src/index.ts +1 -0
  431. package/dist/dashboard-source/modules/request-time/src/lib/request-time.ts +30 -0
  432. package/dist/dashboard-source/modules/rxdb-collections/generated/draft-process-execution-schema.json +45 -0
  433. package/dist/dashboard-source/modules/rxdb-collections/generated/execution-schema.json +217 -0
  434. package/dist/dashboard-source/modules/rxdb-collections/generated/process-schema.json +77 -0
  435. package/dist/dashboard-source/modules/rxdb-collections/generated/todo-schema.json +94 -0
  436. package/dist/dashboard-source/modules/rxdb-collections/src/index.ts +2 -0
  437. package/dist/dashboard-source/modules/rxdb-collections/src/lib/rxdb-collections.ts +181 -0
  438. package/dist/dashboard-source/modules/rxdb-collections/src/lib/to-rxdb-schema.ts +166 -0
  439. package/dist/dashboard-source/modules/shadcn-components/src/index.ts +60 -0
  440. package/dist/dashboard-source/modules/shadcn-components/src/lib/boolean-field.tsx +73 -0
  441. package/dist/dashboard-source/modules/shadcn-components/src/lib/calendar-slot-field.tsx +808 -0
  442. package/dist/dashboard-source/modules/shadcn-components/src/lib/date-field.tsx +127 -0
  443. package/dist/dashboard-source/modules/shadcn-components/src/lib/field-set.tsx +14 -0
  444. package/dist/dashboard-source/modules/shadcn-components/src/lib/file-field.tsx +321 -0
  445. package/dist/dashboard-source/modules/shadcn-components/src/lib/file-upload-context.tsx +45 -0
  446. package/dist/dashboard-source/modules/shadcn-components/src/lib/form-context.tsx +19 -0
  447. package/dist/dashboard-source/modules/shadcn-components/src/lib/lookup-field.tsx +394 -0
  448. package/dist/dashboard-source/modules/shadcn-components/src/lib/radio-field.tsx +96 -0
  449. package/dist/dashboard-source/modules/shadcn-components/src/lib/select-field.tsx +106 -0
  450. package/dist/dashboard-source/modules/shadcn-components/src/lib/text-field.tsx +245 -0
  451. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/button.tsx +63 -0
  452. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/checkbox.tsx +31 -0
  453. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/command.tsx +101 -0
  454. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/field.tsx +275 -0
  455. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/input.tsx +29 -0
  456. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/label.tsx +23 -0
  457. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/popover.tsx +31 -0
  458. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/separator.tsx +27 -0
  459. package/dist/dashboard-source/modules/shadcn-components/src/lib/ui/textarea.tsx +19 -0
  460. package/dist/dashboard-source/modules/shadcn-components/src/lib/utils/utils.ts +4 -0
  461. package/dist/dashboard-source.json +70 -0
  462. package/dist/graphql-server.mjs +1319 -0
  463. package/dist/job-worker.mjs +989 -0
  464. package/dist/main.mjs +495 -0
  465. package/dist/prepare-dashboard.mjs +35 -0
  466. package/dist/resources/cedar/policies.cedar +315 -0
  467. package/dist/resources/cedar/schema.cedarschema +276 -0
  468. package/dist/resources/graphql-schema/rxdb.graphql +401 -0
  469. package/dist/resources/graphql-schema/system.graphql +1200 -0
  470. package/package.json +98 -0
@@ -0,0 +1,1200 @@
1
+ scalar DateTimeISO
2
+
3
+ directive @auth(tag: String, action: String) on FIELD_DEFINITION
4
+
5
+ type Role {
6
+ id: ID!
7
+ name: String!
8
+ path: String!
9
+ }
10
+
11
+ """
12
+ Column metadata for list output fields.
13
+ """
14
+ type ListColumn {
15
+ "Field name (used in GraphQL query)"
16
+ field: String!
17
+ "Display label (from title annotation or capitalized field name)"
18
+ label: String!
19
+ "Optional description from schema annotations"
20
+ description: String
21
+ "Whether this field should be shown in the generic list table"
22
+ visibleInList: Boolean!
23
+ "Whether this field can be used as a standard list sort key"
24
+ sortable: Boolean!
25
+ }
26
+
27
+ enum ListSortDirection {
28
+ ASC
29
+ DESC
30
+ }
31
+
32
+ input ListSortInput {
33
+ field: String!
34
+ direction: ListSortDirection!
35
+ }
36
+
37
+ """
38
+ Information about a list that the user can access.
39
+ Used by the frontend sidebar to display available lists.
40
+ """
41
+ type ListInfo {
42
+ "Whether this caller may create records in this List."
43
+ canCreate: Boolean!
44
+ id: ID!
45
+ path: String!
46
+ name: String!
47
+ "Display name for a single item detail view"
48
+ detailName: String
49
+ purpose: String
50
+ queryName: String!
51
+ "Column definitions with field names and labels for the output schema"
52
+ outputColumns: [ListColumn!]!
53
+ "GraphQL query name for fetching a single item's detail (null if no detail form)"
54
+ itemQueryName: String
55
+ "GraphQL mutation name for updating a list item (null if not updatable)"
56
+ updateMutationName: String
57
+ "GraphQL input type name for list item updates (null if not updatable)"
58
+ updateInputTypeName: String
59
+ "GraphQL mutation name for deleting a list item (null if not deletable)"
60
+ deleteMutationName: String
61
+ "Column definitions for editable fields only (excludes read-only fields)"
62
+ editableColumns: [ListColumn!]!
63
+ }
64
+
65
+ """
66
+ Information about a stats view that the user can access.
67
+ Used by the frontend sidebar to display available stats views.
68
+ """
69
+ type StatsViewInfo {
70
+ id: ID!
71
+ path: String!
72
+ name: String!
73
+ purpose: String
74
+ "Built-in renderer type (e.g. \"timeline\")"
75
+ renderer: String!
76
+ "GraphQL query name for fetching the stats data"
77
+ queryName: String!
78
+ }
79
+
80
+ # Organisation unit, Board, organisation, division, department, team, however
81
+ # the organisation has been structured.
82
+ type OrgUnit {
83
+ id: ID!
84
+ name: String!
85
+ "Optional shortened form of the name (e.g., 'IT' for 'Information Technology')"
86
+ acronym: String
87
+ "First day of business week (0=Sunday, 6=Saturday). Defaults to 0."
88
+ startDayOfWeek: Int
89
+ level: String!
90
+ subunits: [OrgUnit!]!
91
+ processes: [OldProcess!]!
92
+ roles: [Role!]!
93
+ }
94
+
95
+ type OrgLevel {
96
+ level: String!
97
+ maxDepth: Int!
98
+ }
99
+
100
+ type ProviderUser {
101
+ id: ID!
102
+ email: String!
103
+ name: String!
104
+ firstName: String!
105
+ lastName: String!
106
+ picture: String!
107
+ locale: String!
108
+ """
109
+ Roles the provider user is permitted to switch to (validated by Cedar authorization)
110
+ """
111
+ permittedRoles: [Role!]!
112
+ }
113
+
114
+ type OldProcess {
115
+ id: ID!
116
+ path: ID!
117
+ name: String!
118
+ category: String!
119
+ purpose: String!
120
+ duration: String!
121
+ activeInstances: Int!
122
+ formFieldCount: Int!
123
+ isFavorite: Boolean!
124
+ orgUnit: OrgUnit!
125
+ }
126
+
127
+ """
128
+ Complete form metadata needed to render a dynamic form
129
+ """
130
+ type FormMetadata {
131
+ """
132
+ Path to the step (format: orgUnit/processName/stepName)
133
+ """
134
+ stepPath: String!
135
+ """
136
+ Display name of the process
137
+ """
138
+ processName: String!
139
+ """
140
+ Display name of the step. Uses the configured name if set, otherwise the step's construct ID.
141
+ """
142
+ stepName: String!
143
+ """
144
+ Public form title override, when configured by the form step.
145
+ """
146
+ publicFormTitle: String
147
+ """
148
+ Public form description override, when configured by the form step.
149
+ """
150
+ publicFormDescription: String
151
+ """
152
+ Path to the process (format: orgUnit/processName)
153
+ """
154
+ processPath: String!
155
+ """
156
+ GraphQL mutation name for starting the process
157
+ """
158
+ mutationName: String!
159
+ """
160
+ GraphQL input type name for the form
161
+ """
162
+ inputTypeName: String!
163
+ """
164
+ GraphQL mutation name for completing this step
165
+ """
166
+ completeMutationName: String!
167
+ """
168
+ Number of fields in the form
169
+ """
170
+ totalFields: Int!
171
+ """
172
+ Structured browser-safe form definition. Components and serialized rules
173
+ have separate authoritative members.
174
+ """
175
+ formDefinition: JSON
176
+ """
177
+ Default values for form initialization.
178
+ When todoId is provided, state-referenced defaults are resolved.
179
+ """
180
+ defaultValues: JSON
181
+ """
182
+ JSON Schema for client-side validation
183
+ """
184
+ jsonSchema: JSON
185
+ }
186
+
187
+ enum PublicTodoStatus {
188
+ ACTIVE
189
+ COMPLETED
190
+ EXPIRED
191
+ UNAVAILABLE
192
+ }
193
+
194
+ type PublicTodo {
195
+ todoId: ID!
196
+ status: PublicTodoStatus!
197
+ organisationName: String
198
+ completionMessage: String
199
+ formMetadata: FormMetadata
200
+ }
201
+
202
+ type PublicCompletionCorrection {
203
+ todoId: ID!
204
+ processName: String!
205
+ stepName: String!
206
+ correctedEmail: String!
207
+ failureReason: String
208
+ }
209
+
210
+ """
211
+ Role information for workflow visualization
212
+ """
213
+ type WorkflowRole {
214
+ id: ID!
215
+ name: String!
216
+ path: String!
217
+ }
218
+
219
+ """
220
+ Phase information for workflow visualization
221
+ """
222
+ type WorkflowPhase {
223
+ id: ID!
224
+ name: String!
225
+ path: String!
226
+ """
227
+ 1-indexed order for phase display/sorting
228
+ """
229
+ order: Int!
230
+ }
231
+
232
+ """
233
+ Role responsibility in a specific process
234
+ """
235
+ type WorkflowResponsibility {
236
+ roleId: ID!
237
+ roleName: String!
238
+ rolePath: String!
239
+ responsibility: String!
240
+ """
241
+ 1-based display order within the process for swimlane ordering
242
+ """
243
+ order: Int
244
+ }
245
+
246
+ """
247
+ Step in a workflow with optional role assignment.
248
+ System steps (NodeSteps) have no role and will have null role field.
249
+ """
250
+ type WorkflowStep {
251
+ id: ID!
252
+ name: String!
253
+ path: String!
254
+ purpose: String!
255
+ processId: ID!
256
+ role: WorkflowRole
257
+ """
258
+ Optional phase that this step belongs to
259
+ """
260
+ phase: WorkflowPhase
261
+ isStartStep: Boolean!
262
+ "True when this step is available as an anonymous embedded form"
263
+ isEmbedded: Boolean!
264
+ """
265
+ 1-indexed column position based on flow order (start steps = 1, subsequent steps = max source column + 1)
266
+ """
267
+ column: Int!
268
+ }
269
+
270
+ """
271
+ Flow connection between workflow steps
272
+ """
273
+ type WorkflowFlow {
274
+ id: ID!
275
+ sourceStepId: ID!
276
+ targetStepId: ID!
277
+ condition: String
278
+ "True if this is a fallback/else branch"
279
+ isElse: Boolean!
280
+ "True if this branch runs after terminal system-step failure"
281
+ isOnError: Boolean!
282
+ "Optional case-sensitive error tags matched by this error branch"
283
+ taggedErrors: [String!]
284
+ "Schedule expression for timed transitions (e.g., 'next Monday at 9am')"
285
+ schedule: String
286
+ }
287
+
288
+ """
289
+ Complete workflow data for a process
290
+ """
291
+ type ProcessWorkflow {
292
+ processId: ID!
293
+ processName: String!
294
+ processPath: String!
295
+ processPurpose: String!
296
+ steps: [WorkflowStep!]!
297
+ flows: [WorkflowFlow!]!
298
+ """
299
+ Role responsibilities for this process
300
+ """
301
+ responsibilities: [WorkflowResponsibility!]!
302
+ }
303
+
304
+ """
305
+ A Todo returned by the organisation-runtime list API.
306
+ This deliberately excludes RxDB replication fields.
307
+ """
308
+ type TodoListItem {
309
+ id: ID!
310
+ processExecutionId: ID!
311
+ processName: String!
312
+ stepName: String!
313
+ stepPath: String!
314
+ role: String!
315
+ status: String!
316
+ priority: String!
317
+ assignedAt: DateTimeISO!
318
+ dueAt: DateTimeISO
319
+ description: String!
320
+ summary: [TodoListSummaryItem!]!
321
+ }
322
+
323
+ type TodoListSummaryItem {
324
+ label: String!
325
+ value: String!
326
+ }
327
+
328
+ type TodoListPage {
329
+ nodes: [TodoListItem!]!
330
+ page: Int!
331
+ limit: Int!
332
+ hasNextPage: Boolean!
333
+ }
334
+
335
+ """
336
+ A Process returned by the organisation-runtime catalog API.
337
+ This deliberately excludes RxDB replication and Dashboard-only fields.
338
+ """
339
+ type ProcessListItem {
340
+ id: ID!
341
+ path: String!
342
+ name: String!
343
+ category: String!
344
+ purpose: String!
345
+ startStepPath: String!
346
+ activeInstances: Int!
347
+ }
348
+
349
+ type ProcessListPage {
350
+ nodes: [ProcessListItem!]!
351
+ page: Int!
352
+ limit: Int!
353
+ hasNextPage: Boolean!
354
+ }
355
+
356
+ """
357
+ A Process Execution returned by the organisation-runtime list API.
358
+ This deliberately excludes RxDB replication fields and the step timeline.
359
+ """
360
+ type ExecutionListItem {
361
+ withoutWaiting: Boolean!
362
+ id: ID!
363
+ processPath: String!
364
+ processName: String!
365
+ status: String!
366
+ startedAt: DateTimeISO!
367
+ finishedAt: DateTimeISO
368
+ completedSteps: Int!
369
+ totalSteps: Int!
370
+ failureReason: String
371
+ }
372
+
373
+ type ExecutionListPage {
374
+ nodes: [ExecutionListItem!]!
375
+ page: Int!
376
+ limit: Int!
377
+ hasNextPage: Boolean!
378
+ }
379
+
380
+ type SettingsUser {
381
+ id: ID!
382
+ provider: String!
383
+ sub: String!
384
+ lastLoggedIn: DateTimeISO!
385
+ isProviderUser: Boolean!
386
+ providerUserName: String
387
+ providerUserEmail: String
388
+ }
389
+
390
+ type SettingsUserPage {
391
+ items: [SettingsUser!]!
392
+ totalCount: Int!
393
+ page: Int!
394
+ limit: Int!
395
+ hasNextPage: Boolean!
396
+ }
397
+
398
+ type SettingsOAuthProvider {
399
+ id: ID!
400
+ providerName: String!
401
+ }
402
+
403
+ type SettingsOAuthProviderPage {
404
+ items: [SettingsOAuthProvider!]!
405
+ totalCount: Int!
406
+ page: Int!
407
+ limit: Int!
408
+ hasNextPage: Boolean!
409
+ }
410
+
411
+ """
412
+ Invitation lifecycle outcome for Invited Users dashboard rows.
413
+ Deleted invitations are soft-deleted and excluded from ordinary lists.
414
+ """
415
+ enum InvitationLifecycleStatus {
416
+ PENDING
417
+ ACCEPTED
418
+ LEGACY_CLOSED
419
+ }
420
+
421
+ """
422
+ Registration Link lifecycle for a pending Invitation.
423
+ Never exposes the bearer token, hash, or encrypted envelope.
424
+ """
425
+ enum RegistrationLinkStatus {
426
+ NOT_GENERATED
427
+ ACTIVE
428
+ EXPIRED
429
+ REVOKED
430
+ }
431
+
432
+ type SettingsInvitation {
433
+ id: ID!
434
+ email: String!
435
+ status: InvitationLifecycleStatus!
436
+ roles: [Role!]!
437
+ """
438
+ When known, the time the Invitation was accepted.
439
+ """
440
+ acceptedAt: DateTimeISO
441
+ """
442
+ Human identity provider that accepted the Invitation, when known.
443
+ """
444
+ acceptedByProvider: String
445
+ """
446
+ Provider subject that accepted the Invitation, when known.
447
+ """
448
+ acceptedBySubject: String
449
+ """
450
+ Provider User created or matched at acceptance/legacy close, when known.
451
+ """
452
+ acceptedByProviderUserId: ID
453
+ """
454
+ When migration closed the Invitation against an existing Provider User.
455
+ """
456
+ legacyClosedAt: DateTimeISO
457
+ """
458
+ Why migration closed the Invitation without claiming historical acceptance.
459
+ """
460
+ legacyClosureReason: String
461
+ """
462
+ Registration Link status for passkey Invitation bootstrap.
463
+ Accepted and legacy-closed invitations always report NOT_GENERATED.
464
+ """
465
+ registrationLinkStatus: RegistrationLinkStatus!
466
+ """
467
+ When the current or last live Registration Link expires / expired.
468
+ """
469
+ registrationLinkExpiresAt: DateTimeISO
470
+ """
471
+ Latest generation or rotation actor and time.
472
+ """
473
+ registrationLinkGeneratedAt: DateTimeISO
474
+ registrationLinkGeneratedBy: String
475
+ """
476
+ Latest authorised reveal actor and time.
477
+ """
478
+ registrationLinkRevealedAt: DateTimeISO
479
+ registrationLinkRevealedBy: String
480
+ """
481
+ Latest revocation actor and time.
482
+ """
483
+ registrationLinkRevokedAt: DateTimeISO
484
+ registrationLinkRevokedBy: String
485
+ }
486
+
487
+ type SettingsInvitationPage {
488
+ items: [SettingsInvitation!]!
489
+ totalCount: Int!
490
+ page: Int!
491
+ limit: Int!
492
+ hasNextPage: Boolean!
493
+ }
494
+
495
+ input SaveInvitationInput {
496
+ email: String!
497
+ roleIds: [ID!]!
498
+ }
499
+
500
+ type SaveInvitationSuccess {
501
+ invitation: SettingsInvitation!
502
+ }
503
+
504
+ type SaveInvitationFailure {
505
+ error: String!
506
+ }
507
+
508
+ union SaveInvitationResult = SaveInvitationSuccess | SaveInvitationFailure
509
+
510
+ type DeleteInvitationResult {
511
+ success: Boolean!
512
+ error: String
513
+ }
514
+
515
+ """
516
+ Result of generating, revealing, or rotating a Registration Link.
517
+ The raw bearer URL is returned only from these explicit mutations.
518
+ """
519
+ type RegistrationLinkActionSuccess {
520
+ invitation: SettingsInvitation!
521
+ """
522
+ Full Registration Link URL with the bearer token in the URI fragment.
523
+ """
524
+ registrationLinkUrl: String!
525
+ expiresAt: DateTimeISO!
526
+ }
527
+
528
+ type RegistrationLinkActionFailure {
529
+ error: String!
530
+ }
531
+
532
+ union RegistrationLinkActionResult =
533
+ | RegistrationLinkActionSuccess
534
+ | RegistrationLinkActionFailure
535
+
536
+ type SettingsRole {
537
+ id: ID!
538
+ name: String!
539
+ path: String!
540
+ }
541
+
542
+ type SettingsRolePage {
543
+ items: [SettingsRole!]!
544
+ totalCount: Int!
545
+ page: Int!
546
+ limit: Int!
547
+ hasNextPage: Boolean!
548
+ }
549
+
550
+ type SettingsUserDetail {
551
+ id: ID!
552
+ provider: String!
553
+ sub: String!
554
+ lastLoggedIn: DateTimeISO!
555
+ providerUser: SettingsProviderUser
556
+ }
557
+
558
+ type SettingsProviderUser {
559
+ id: ID!
560
+ email: String!
561
+ name: String!
562
+ firstName: String!
563
+ lastName: String!
564
+ roleIds: [ID!]!
565
+ notificationPreferences: NotificationPreferences!
566
+ }
567
+
568
+ """
569
+ User notification preferences structure.
570
+ """
571
+ type NotificationPreferences {
572
+ notifications: NotificationCategories!
573
+ }
574
+
575
+ """
576
+ Notification preferences for user email events.
577
+ Contains settings for different notification channels.
578
+ """
579
+ type NotificationCategories {
580
+ todoAssignment: NotificationChannelSettings!
581
+ executionFailure: NotificationChannelSettings!
582
+ }
583
+
584
+ """
585
+ Channel-specific settings for a notification type.
586
+ """
587
+ type NotificationChannelSettings {
588
+ email: Boolean!
589
+ }
590
+
591
+ """
592
+ Input for updating notification preferences.
593
+ """
594
+ input NotificationPreferencesInput {
595
+ notifications: NotificationCategoriesInput!
596
+ }
597
+
598
+ """
599
+ Input for notification category settings.
600
+ """
601
+ input NotificationCategoriesInput {
602
+ todoAssignment: NotificationChannelSettingsInput
603
+ executionFailure: NotificationChannelSettingsInput
604
+ }
605
+
606
+ """
607
+ Input for channel-specific notification settings.
608
+ """
609
+ input NotificationChannelSettingsInput {
610
+ email: Boolean!
611
+ }
612
+
613
+ input UpdateProviderUserInput {
614
+ roleIds: [ID!]!
615
+ }
616
+
617
+ type UpdateProviderUserSuccess {
618
+ providerUser: SettingsProviderUser!
619
+ }
620
+
621
+ type UpdateProviderUserFailure {
622
+ error: String!
623
+ }
624
+
625
+ union UpdateProviderUserResult =
626
+ | UpdateProviderUserSuccess
627
+ | UpdateProviderUserFailure
628
+
629
+ """
630
+ A single item returned by a lookup field query
631
+ """
632
+ type LookupItem {
633
+ value: String!
634
+ label: String!
635
+ }
636
+
637
+ """
638
+ A single calendar slot returned by a calendar slot form field query.
639
+ """
640
+ type CalendarSlotItem {
641
+ value: String!
642
+ label: String
643
+ startsAt: String!
644
+ endsAt: String!
645
+ }
646
+
647
+ type CedarPolicies {
648
+ policies: [String!]!
649
+ schema: String!
650
+ }
651
+
652
+ enum SubscriptionTransportKind {
653
+ GRAPHQL_WS
654
+ APPSYNC_EVENTS
655
+ }
656
+
657
+ type SubscriptionTransport {
658
+ kind: SubscriptionTransportKind!
659
+ appSyncEventsHttpHost: String
660
+ }
661
+
662
+ type Query {
663
+ # Top level, either the Organisation or the Board if the organisation has one
664
+ org: OrgUnit
665
+ """
666
+ Cedar authorization policies and schema.
667
+ """
668
+ cedarPolicies: CedarPolicies!
669
+ # Return all organisation unit levels we have with the maximum depth we find them.
670
+ # Results are sorted by maxDepth.
671
+ # This allows for some better color coding.
672
+ orgLevels: [OrgLevel!]!
673
+ """
674
+ Processes the current provider user is authorized to start.
675
+ Pagination is applied after Cedar authorization.
676
+ """
677
+ processes(
678
+ page: Int! = 1
679
+ limit: Int! = 50
680
+ processPath: String
681
+ status: String
682
+ ): ProcessListPage!
683
+ """
684
+ Todos the current provider user is authorized to complete.
685
+ Pagination is applied after Cedar authorization.
686
+ """
687
+ todos(
688
+ page: Int! = 1
689
+ limit: Int! = 50
690
+ processPath: String
691
+ status: String
692
+ ): TodoListPage!
693
+ """
694
+ Process Executions the current provider user is authorized to view.
695
+ Pagination is applied after Cedar authorization.
696
+ """
697
+ executions(
698
+ page: Int! = 1
699
+ limit: Int! = 50
700
+ processPath: String
701
+ status: String
702
+ ): ExecutionListPage!
703
+ # Current logged-in provider user
704
+ currentProviderUser: ProviderUser!
705
+ """
706
+ Get form metadata for a step. Returns null if step not found or user not authorized.
707
+ The stepPath format is: "orgUnit/processName/stepName" (e.g., "finance/expense-report/Submit").
708
+ When todoId is provided, state-referenced defaults are resolved against the process state.
709
+ """
710
+ formMetadata(stepPath: String!, todoId: ID): FormMetadata
711
+ """
712
+ Resolve the single-email correction form for a Correction Required Public Completion Todo.
713
+ Uses default provider-user auth; the resolver checks correction-specific todo authorization.
714
+ """
715
+ publicCompletionCorrection(todoId: ID!): PublicCompletionCorrection
716
+ """
717
+ Resolve public todo status and form metadata from an encrypted public todo token.
718
+ Uses the embed tag because frontend route handlers call this with the frontend
719
+ service-account JWT; the public token is validated inside the resolver.
720
+ """
721
+ publicTodo(token: String!): PublicTodo! @auth(tag: "embed")
722
+ """
723
+ Resolve lookup suggestions for a public to-do form using its capability token.
724
+ Only token-authorized public completion lookups are exposed by the resolver.
725
+ """
726
+ publicTodoLookupSuggestions(
727
+ token: String!
728
+ field: String!
729
+ filter: String
730
+ limit: Int
731
+ ): [LookupItem!]! @auth(tag: "embed")
732
+ """
733
+ Resolve calendar slots for a public to-do form using its capability token.
734
+ """
735
+ publicTodoCalendarSlots(token: String!, field: String!): [CalendarSlotItem!]!
736
+ @auth(tag: "embed")
737
+ """
738
+ Get workflow visualization data for a process by its path.
739
+ Returns null if process not found.
740
+ """
741
+ processWorkflow(processPath: String!): ProcessWorkflow
742
+ """
743
+ Check if there are pending scheduled flows for a process execution.
744
+ Returns true if there are jobs pending (not yet processed by job worker).
745
+ Useful for polling to wait for background job completion in tests.
746
+ """
747
+ hasPendingScheduledFlows(processExecutionId: ID!): Boolean! @auth(tag: "ci")
748
+ """
749
+ Remint the public completion URL for a waiting Public Form without sending email.
750
+ Uses the latest invitation attempt and current form expiry. Does not persist a token.
751
+ """
752
+ publicCompletionUrl(todoId: ID!): String! @auth(tag: "ci")
753
+ """
754
+ Paginated list of users with provider user status
755
+ """
756
+ allUsers(page: Int! = 1, limit: Int! = 20): SettingsUserPage!
757
+ @auth(action: "administerUsers")
758
+ """
759
+ Paginated list of OAuth providers
760
+ """
761
+ allOAuthProviders(
762
+ page: Int! = 1
763
+ limit: Int! = 20
764
+ ): SettingsOAuthProviderPage! @auth(action: "administerOAuthProviders")
765
+ """
766
+ Paginated Invited Users list. Defaults to pending invitations; pass status
767
+ to inspect accepted or legacy-closed history.
768
+ """
769
+ allInvitations(
770
+ page: Int! = 1
771
+ limit: Int! = 20
772
+ status: InvitationLifecycleStatus = PENDING
773
+ ): SettingsInvitationPage! @auth(action: "administerUsers")
774
+ """
775
+ Get a single invitation by ID
776
+ """
777
+ invitationDetail(invitationId: ID!): SettingsInvitation
778
+ @auth(action: "administerUsers")
779
+ """
780
+ Get detailed user information including provider user data
781
+ """
782
+ userDetail(userId: ID!): SettingsUserDetail @auth(action: "administerUsers")
783
+ """
784
+ Get notification preferences for a user.
785
+ Returns default-off preferences (email: false) if no settings exist.
786
+ """
787
+ notificationPreferences(userId: ID!): NotificationPreferences!
788
+ @auth(action: "administerUsers")
789
+ """
790
+ Paginated list of roles in the system
791
+ """
792
+ allRoles(page: Int! = 1, limit: Int! = 20): SettingsRolePage!
793
+ @auth(action: "administerUsers")
794
+ """
795
+ Get the process state JSON for an execution (debugging feature).
796
+ Returns null if execution not found.
797
+ """
798
+ processStateForExecution(executionId: ID!): JSON
799
+ @auth(action: "showProcessState")
800
+ """
801
+ Discover which realtime transport clients should use for subscriptions.
802
+ """
803
+ subscriptionTransport: SubscriptionTransport!
804
+ """
805
+ Get lists that the current user has access to.
806
+ Returns lists filtered by the user's roles.
807
+ """
808
+ availableLists: [ListInfo!]!
809
+ """
810
+ Returns stats views filtered by the user's roles.
811
+ """
812
+ availableStatsViews: [StatsViewInfo!]!
813
+ """
814
+ Get form metadata for editing a list item.
815
+ Returns the client representation, JSON schema, and default values
816
+ needed to render a dynamic form for the editable fields.
817
+ Returns null if the list doesn't support editing or is not found.
818
+ """
819
+ listFormMetadata(listPath: String!): ListFormMetadata
820
+ "Get an independent create form, gated by List view and create permission."
821
+ listCreateFormMetadata(listPath: String!): ListCreateFormMetadata
822
+ """
823
+ Get lookup suggestions for a searchable select field within a form step.
824
+ Returns matching items for the given filter text.
825
+ """
826
+ # Shared by embedded and authenticated forms; Cedar keeps provider-user access.
827
+ lookupSuggestions(
828
+ stepPath: String!
829
+ field: String!
830
+ filter: String
831
+ limit: Int
832
+ todoId: ID
833
+ ): [LookupItem!]! @auth(tag: "embed")
834
+ """
835
+ Get calendar slots for a calendar slot field within a form step.
836
+ """
837
+ calendarSlots(
838
+ stepPath: String!
839
+ field: String!
840
+ todoId: ID
841
+ ): [CalendarSlotItem!]! @auth(tag: "embed")
842
+ """
843
+ Request a presigned URL for downloading a previously uploaded file.
844
+ Returns a URL to GET the file from.
845
+ Requires stepPath to verify the user can access this document store.
846
+ """
847
+ requestDownloadUrl(
848
+ stepPath: String!
849
+ documentStore: String!
850
+ fileId: String!
851
+ ): DownloadUrlResult!
852
+ }
853
+
854
+ """
855
+ Form metadata for editing a list item.
856
+ Contains everything needed to render a dynamic edit form.
857
+ """
858
+ type ListFormMetadata {
859
+ "The list path"
860
+ listPath: String!
861
+ "Display name of the list"
862
+ listName: String!
863
+ "GraphQL mutation name for updating the item (null for read-only forms)"
864
+ updateMutationName: String
865
+ "GraphQL input type name for the update mutation (null for read-only forms)"
866
+ updateInputTypeName: String
867
+ "GraphQL mutation name for deleting the item (null if not deletable)"
868
+ deleteMutationName: String
869
+ "Structured browser-safe form definition"
870
+ formDefinition: JSON
871
+ "Default values for form initialization, merged with item data"
872
+ defaultValues: JSON
873
+ "JSON Schema for client-side validation of editable fields"
874
+ jsonSchema: JSON
875
+ }
876
+
877
+ """
878
+ Result of a request role operation
879
+ """
880
+ type RequestRoleResult {
881
+ """
882
+ Whether the request was successful
883
+ """
884
+ success: Boolean!
885
+ """
886
+ The role path that was requested (if successful)
887
+ """
888
+ rolePath: String
889
+ """
890
+ Error message if the request failed
891
+ """
892
+ error: String
893
+ }
894
+
895
+ """
896
+ Result of a request provider user permissions operation
897
+ """
898
+ type RequestEmailResult {
899
+ """
900
+ Whether the request was successful
901
+ """
902
+ success: Boolean!
903
+ """
904
+ The provider user email that was requested (if successful)
905
+ """
906
+ email: String
907
+ """
908
+ Error message if the request failed
909
+ """
910
+ error: String
911
+ }
912
+
913
+ """
914
+ Result of cleanup operation for e2e test isolation
915
+ """
916
+ type CleanupResult {
917
+ """
918
+ Number of todos deleted
919
+ """
920
+ todosDeleted: Int!
921
+ """
922
+ Number of scheduled flows deleted
923
+ """
924
+ scheduledFlowsDeleted: Int!
925
+ """
926
+ Number of process executions deleted
927
+ """
928
+ executionsDeleted: Int!
929
+ """
930
+ Number of process states deleted
931
+ """
932
+ statesDeleted: Int!
933
+ """
934
+ Number of job queue entries deleted
935
+ """
936
+ jobsDeleted: Int!
937
+ }
938
+
939
+ """
940
+ Result of restarting a failed execution
941
+ """
942
+ type RestartExecutionResult {
943
+ """
944
+ Whether the restart was successful
945
+ """
946
+ success: Boolean!
947
+ """
948
+ Number of failed todos that were restarted
949
+ """
950
+ restartedCount: Int
951
+ """
952
+ Error message if restart failed
953
+ """
954
+ error: String
955
+ }
956
+
957
+ """
958
+ Result of abandoning a running execution
959
+ """
960
+ type AbandonExecutionResult {
961
+ """
962
+ Whether the abandon was successful
963
+ """
964
+ success: Boolean!
965
+ """
966
+ Error message if abandon failed
967
+ """
968
+ error: String
969
+ }
970
+
971
+ """
972
+ Result of requesting a presigned upload URL
973
+ """
974
+ type UploadUrlResult {
975
+ fileId: String!
976
+ uploadUrl: String!
977
+ expiresAt: DateTimeISO!
978
+ }
979
+
980
+ """
981
+ Result of requesting a presigned download URL
982
+ """
983
+ type DownloadUrlResult {
984
+ downloadUrl: String!
985
+ expiresAt: DateTimeISO!
986
+ }
987
+
988
+ enum DatabaseTransferStatus {
989
+ READY_FOR_UPLOAD
990
+ }
991
+
992
+ type DatabaseTransferTarget {
993
+ "CLI-supplied target metadata for correlation; later snapshot/apply operations enforce target access."
994
+ project: String!
995
+ env: String!
996
+ }
997
+
998
+ """
999
+ Signed upload metadata for a database transfer artifact. SQLite bytes must be
1000
+ sent to uploadUrl, never through GraphQL.
1001
+ """
1002
+ type DatabaseTransferUploadRequest {
1003
+ "Transient correlation ID for this GraphQL coordination request; not persisted."
1004
+ operationId: ID!
1005
+ target: DatabaseTransferTarget!
1006
+ fileId: ID!
1007
+ documentStore: String!
1008
+ uploadUrl: String!
1009
+ expiresAt: DateTimeISO!
1010
+ status: DatabaseTransferStatus!
1011
+ }
1012
+
1013
+ """
1014
+ Result of deleting a file
1015
+ """
1016
+ type DeleteFileResult {
1017
+ """
1018
+ Whether the delete was successful (or idempotent - file already didn't exist)
1019
+ """
1020
+ success: Boolean!
1021
+ }
1022
+
1023
+ """
1024
+ Result of successfully updating notification preferences
1025
+ """
1026
+ type UpdateNotificationPreferencesSuccess {
1027
+ preferences: NotificationPreferences!
1028
+ }
1029
+
1030
+ """
1031
+ Result of a failed notification preferences update
1032
+ """
1033
+ type UpdateNotificationPreferencesFailure {
1034
+ error: String!
1035
+ }
1036
+
1037
+ """
1038
+ Union result type for notification preferences update
1039
+ """
1040
+ union UpdateNotificationPreferencesResult =
1041
+ | UpdateNotificationPreferencesSuccess
1042
+ | UpdateNotificationPreferencesFailure
1043
+
1044
+ type Mutation {
1045
+ """
1046
+ Complete the todo bound to an encrypted public todo token.
1047
+ Uses the embed tag because frontend route handlers call this with the frontend
1048
+ service-account JWT; the public token is validated inside the resolver.
1049
+ """
1050
+ completePublicTodo(token: String!, input: JSON): PublicTodo!
1051
+ @auth(tag: "embed")
1052
+ """
1053
+ Request a fresh public to-do link for a token-bound todo. Expired tokens are
1054
+ accepted only after token decryption succeeds; arbitrary todo IDs are not.
1055
+ """
1056
+ requestFreshPublicTodoLink(token: String!): PublicTodo! @auth(tag: "embed")
1057
+ """
1058
+ Submit the corrected recipient email for a Correction Required Public Completion Todo.
1059
+ Applies the process-authored correction rule and reissues the public invitation.
1060
+ Uses default provider-user auth; the resolver checks correction-specific todo authorization.
1061
+ """
1062
+ submitPublicCompletionCorrection(
1063
+ todoId: ID!
1064
+ correctedEmail: String!
1065
+ ): PublicCompletionCorrection!
1066
+ """
1067
+ Export a list as CSV. Returns a signed download URL for the generated CSV file.
1068
+ Uses the list's export schema and query with the current filter and sort state.
1069
+ Fails if the list is not found, the user is not authorized, the sort field is
1070
+ unsupported, or the export exceeds the row limit.
1071
+ """
1072
+ exportListCsv(
1073
+ listPath: String!
1074
+ filter: String
1075
+ sort: ListSortInput
1076
+ ): DownloadUrlResult!
1077
+ """
1078
+ Request a specific role. Validates via Cedar authorization and updates
1079
+ the permitted_role table (for employees) or permitted_client_role table
1080
+ (for M2M clients) so the auth server can issue tokens with this role.
1081
+ The rolePath is the path of the role to request (e.g., "Manager").
1082
+ After a successful request, the frontend should call the auth refresh endpoint
1083
+ with the role scope to get a new access token.
1084
+ """
1085
+ requestRole(rolePath: String!): RequestRoleResult!
1086
+ """
1087
+ Request permission to impersonate a provider user. Validates via Cedar authorization
1088
+ and updates the permitted_client_email table so the auth server can issue
1089
+ provider user tokens for M2M clients.
1090
+ """
1091
+ requestProviderUserPermissions(email: String!): RequestEmailResult!
1092
+ """
1093
+ Delete all execution-related data for e2e test isolation.
1094
+ This includes todos, scheduled flows, process executions,
1095
+ process states, and job queue entries.
1096
+ IMPORTANT: Only use in test environments.
1097
+ """
1098
+ cleanupExecutions: CleanupResult! @auth(tag: "ci")
1099
+ """
1100
+ Update a provider user's details and role assignments
1101
+ """
1102
+ updateProviderUser(
1103
+ providerUserId: ID!
1104
+ input: UpdateProviderUserInput!
1105
+ ): UpdateProviderUserResult! @auth(action: "administerUsers")
1106
+ """
1107
+ Update notification preferences for a user.
1108
+ Returns the updated preferences on success.
1109
+ """
1110
+ updateNotificationPreferences(
1111
+ userId: ID!
1112
+ preferences: NotificationPreferencesInput!
1113
+ ): UpdateNotificationPreferencesResult! @auth(action: "administerUsers")
1114
+ """
1115
+ Create a new invitation with assigned roles
1116
+ """
1117
+ createInvitation(input: SaveInvitationInput!): SaveInvitationResult!
1118
+ @auth(action: "administerUsers")
1119
+ """
1120
+ Update an existing invitation's email address and role assignments
1121
+ """
1122
+ updateInvitation(
1123
+ invitationId: ID!
1124
+ input: SaveInvitationInput!
1125
+ ): SaveInvitationResult! @auth(action: "administerUsers")
1126
+ """
1127
+ Delete an invitation
1128
+ """
1129
+ deleteInvitation(invitationId: ID!): DeleteInvitationResult!
1130
+ @auth(action: "administerUsers")
1131
+ """
1132
+ Generate a seven-day Registration Link when no active link exists.
1133
+ Unavailable while the passkey provider is disabled.
1134
+ """
1135
+ generateRegistrationLink(invitationId: ID!): RegistrationLinkActionResult!
1136
+ @auth(action: "administerUsers")
1137
+ """
1138
+ Reveal the current live Registration Link without extending its expiry.
1139
+ """
1140
+ revealRegistrationLink(invitationId: ID!): RegistrationLinkActionResult!
1141
+ @auth(action: "administerUsers")
1142
+ """
1143
+ Rotate the Registration Link: invalidate the current token and issue a new
1144
+ seven-day link.
1145
+ """
1146
+ rotateRegistrationLink(invitationId: ID!): RegistrationLinkActionResult!
1147
+ @auth(action: "administerUsers")
1148
+ """
1149
+ Revoke the live Registration Link while preserving the pending Invitation.
1150
+ """
1151
+ revokeRegistrationLink(invitationId: ID!): SaveInvitationResult!
1152
+ @auth(action: "administerUsers")
1153
+ """
1154
+ Restart a failed execution by clearing failure reasons and re-enqueueing system steps.
1155
+ Requires a custom Cedar permit for the restart action.
1156
+ """
1157
+ restartExecution(executionId: ID!): RestartExecutionResult!
1158
+ """
1159
+ Abandon a running execution by marking it as abandoned and cleaning up active todos and scheduled flows.
1160
+ Requires Cedar authorization checked against the active steps.
1161
+ An optional reason can be provided to explain why the execution was abandoned.
1162
+ """
1163
+ abandonExecution(executionId: ID!, reason: String): AbandonExecutionResult!
1164
+ """
1165
+ Request a presigned URL for uploading a file to the document store.
1166
+ Returns a fileId to reference the file later, and a URL to PUT the file to.
1167
+ Requires stepPath to verify the user can access this document store.
1168
+ """
1169
+ requestUploadUrl(
1170
+ stepPath: String!
1171
+ documentStore: String!
1172
+ contentType: String
1173
+ filename: String
1174
+ ): UploadUrlResult!
1175
+ """
1176
+ Request a presigned upload URL for a SQLite database transfer artifact.
1177
+ The artifact bytes must be uploaded to the returned URL.
1178
+ """
1179
+ requestDatabaseUploadUrl(
1180
+ project: String!
1181
+ env: String!
1182
+ contentType: String
1183
+ filename: String
1184
+ ): DatabaseTransferUploadRequest! @auth(action: "databaseTransfer")
1185
+ """
1186
+ Delete a file owned by the authenticated user, whether or not the upload completed.
1187
+ Only the file owner can delete their files.
1188
+ Returns success: true if the file was deleted or didn't exist (idempotent).
1189
+ """
1190
+ deleteFile(fileId: ID!): DeleteFileResult!
1191
+ }
1192
+
1193
+ "Create form metadata; returned only to callers with List view and create permission."
1194
+ type ListCreateFormMetadata {
1195
+ createMutationName: String!
1196
+ createInputTypeName: String!
1197
+ formDefinition: JSON
1198
+ defaultValues: JSON
1199
+ jsonSchema: JSON
1200
+ }