@noodleseed/one 0.82.0 → 0.84.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 (243) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +4 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/catalog-data-platform-auth.d.ts.map +1 -1
  5. package/dist/commands/catalog-data-platform-auth.js +70 -2
  6. package/dist/commands/catalog-data-platform-auth.js.map +1 -1
  7. package/dist/commands/platform-account-reset-args.d.ts +40 -0
  8. package/dist/commands/platform-account-reset-args.d.ts.map +1 -0
  9. package/dist/commands/platform-account-reset-args.js +181 -0
  10. package/dist/commands/platform-account-reset-args.js.map +1 -0
  11. package/dist/commands/platform-account-reset-files.d.ts +9 -0
  12. package/dist/commands/platform-account-reset-files.d.ts.map +1 -0
  13. package/dist/commands/platform-account-reset-files.js +45 -0
  14. package/dist/commands/platform-account-reset-files.js.map +1 -0
  15. package/dist/commands/platform-account-reset-ops.d.ts +3 -0
  16. package/dist/commands/platform-account-reset-ops.d.ts.map +1 -0
  17. package/dist/commands/platform-account-reset-ops.js +162 -0
  18. package/dist/commands/platform-account-reset-ops.js.map +1 -0
  19. package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +1 -1
  20. package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
  21. package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.d.ts.map +1 -1
  22. package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +39 -3
  23. package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js.map +1 -1
  24. package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
  25. package/node_modules/@noodle-borg/service/dist/assistant-interactive.d.ts +1 -0
  26. package/node_modules/@noodle-borg/service/dist/assistant-interactive.d.ts.map +1 -1
  27. package/node_modules/@noodle-borg/service/dist/assistant-interactive.js +1 -0
  28. package/node_modules/@noodle-borg/service/dist/assistant-interactive.js.map +1 -1
  29. package/node_modules/@noodle-borg/service/dist/billing/enforcement-activation.d.ts +4 -4
  30. package/node_modules/@noodle-borg/service/dist/billing/read-contract.d.ts +6 -6
  31. package/node_modules/@noodle-borg/service/dist/index.d.ts +4 -1
  32. package/node_modules/@noodle-borg/service/dist/index.d.ts.map +1 -1
  33. package/node_modules/@noodle-borg/service/dist/index.js +2 -0
  34. package/node_modules/@noodle-borg/service/dist/index.js.map +1 -1
  35. package/node_modules/@noodle-borg/service/dist/main.js +5 -0
  36. package/node_modules/@noodle-borg/service/dist/main.js.map +1 -1
  37. package/node_modules/@noodle-borg/service/dist/oauth/developer-grant-flow.d.ts.map +1 -1
  38. package/node_modules/@noodle-borg/service/dist/oauth/developer-grant-flow.js +1 -0
  39. package/node_modules/@noodle-borg/service/dist/oauth/developer-grant-flow.js.map +1 -1
  40. package/node_modules/@noodle-borg/service/dist/oauth/provider.d.ts.map +1 -1
  41. package/node_modules/@noodle-borg/service/dist/oauth/provider.js +1 -0
  42. package/node_modules/@noodle-borg/service/dist/oauth/provider.js.map +1 -1
  43. package/node_modules/@noodle-borg/service/dist/oauth/store-postgres-schema.d.ts.map +1 -1
  44. package/node_modules/@noodle-borg/service/dist/oauth/store-postgres-schema.js +17 -0
  45. package/node_modules/@noodle-borg/service/dist/oauth/store-postgres-schema.js.map +1 -1
  46. package/node_modules/@noodle-borg/service/dist/oauth/store-postgres.d.ts +2 -2
  47. package/node_modules/@noodle-borg/service/dist/oauth/store-postgres.d.ts.map +1 -1
  48. package/node_modules/@noodle-borg/service/dist/oauth/store-postgres.js +25 -5
  49. package/node_modules/@noodle-borg/service/dist/oauth/store-postgres.js.map +1 -1
  50. package/node_modules/@noodle-borg/service/dist/oauth/store.d.ts +5 -3
  51. package/node_modules/@noodle-borg/service/dist/oauth/store.d.ts.map +1 -1
  52. package/node_modules/@noodle-borg/service/dist/oauth/store.js +5 -5
  53. package/node_modules/@noodle-borg/service/dist/oauth/store.js.map +1 -1
  54. package/node_modules/@noodle-borg/service/dist/oauth/upstream-callback-handler.d.ts.map +1 -1
  55. package/node_modules/@noodle-borg/service/dist/oauth/upstream-callback-handler.js +7 -2
  56. package/node_modules/@noodle-borg/service/dist/oauth/upstream-callback-handler.js.map +1 -1
  57. package/node_modules/@noodle-borg/service/dist/oauth/upstream-callback-support.d.ts +1 -1
  58. package/node_modules/@noodle-borg/service/dist/oauth/upstream-callback-support.d.ts.map +1 -1
  59. package/node_modules/@noodle-borg/service/dist/oauth/upstream-callback-support.js.map +1 -1
  60. package/node_modules/@noodle-borg/service/dist/oauth/upstream-consent.d.ts.map +1 -1
  61. package/node_modules/@noodle-borg/service/dist/oauth/upstream-consent.js +1 -1
  62. package/node_modules/@noodle-borg/service/dist/oauth/upstream-consent.js.map +1 -1
  63. package/node_modules/@noodle-borg/service/dist/oauth/upstream-federation.d.ts.map +1 -1
  64. package/node_modules/@noodle-borg/service/dist/oauth/upstream-federation.js +6 -1
  65. package/node_modules/@noodle-borg/service/dist/oauth/upstream-federation.js.map +1 -1
  66. package/node_modules/@noodle-borg/service/dist/options.d.ts +13 -0
  67. package/node_modules/@noodle-borg/service/dist/options.d.ts.map +1 -1
  68. package/node_modules/@noodle-borg/service/dist/platform-account-reset-config.d.ts +9 -0
  69. package/node_modules/@noodle-borg/service/dist/platform-account-reset-config.d.ts.map +1 -0
  70. package/node_modules/@noodle-borg/service/dist/platform-account-reset-config.js +24 -0
  71. package/node_modules/@noodle-borg/service/dist/platform-account-reset-config.js.map +1 -0
  72. package/node_modules/@noodle-borg/service/dist/platform-account-reset-dispatch-lock-postgres.d.ts +12 -0
  73. package/node_modules/@noodle-borg/service/dist/platform-account-reset-dispatch-lock-postgres.d.ts.map +1 -0
  74. package/node_modules/@noodle-borg/service/dist/platform-account-reset-dispatch-lock-postgres.js +110 -0
  75. package/node_modules/@noodle-borg/service/dist/platform-account-reset-dispatch-lock-postgres.js.map +1 -0
  76. package/node_modules/@noodle-borg/service/dist/platform-account-reset-fingerprint.d.ts +9 -0
  77. package/node_modules/@noodle-borg/service/dist/platform-account-reset-fingerprint.d.ts.map +1 -0
  78. package/node_modules/@noodle-borg/service/dist/platform-account-reset-fingerprint.js +46 -0
  79. package/node_modules/@noodle-borg/service/dist/platform-account-reset-fingerprint.js.map +1 -0
  80. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operation-postgres.d.ts +77 -0
  81. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operation-postgres.d.ts.map +1 -0
  82. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operation-postgres.js +144 -0
  83. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operation-postgres.js.map +1 -0
  84. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operator.d.ts +29 -0
  85. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operator.d.ts.map +1 -0
  86. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operator.js +59 -0
  87. package/node_modules/@noodle-borg/service/dist/platform-account-reset-operator.js.map +1 -0
  88. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-helpers.d.ts +11 -0
  89. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-helpers.d.ts.map +1 -0
  90. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-helpers.js +22 -0
  91. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-helpers.js.map +1 -0
  92. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-postgres.d.ts +41 -0
  93. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-postgres.d.ts.map +1 -0
  94. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-postgres.js +314 -0
  95. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-postgres.js.map +1 -0
  96. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-resources-postgres.d.ts +14 -0
  97. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-resources-postgres.d.ts.map +1 -0
  98. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-resources-postgres.js +210 -0
  99. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-resources-postgres.js.map +1 -0
  100. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-rollback-postgres.d.ts +11 -0
  101. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-rollback-postgres.d.ts.map +1 -0
  102. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-rollback-postgres.js +71 -0
  103. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ownership-rollback-postgres.js.map +1 -0
  104. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ports.d.ts +12 -0
  105. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ports.d.ts.map +1 -0
  106. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ports.js +2 -0
  107. package/node_modules/@noodle-borg/service/dist/platform-account-reset-ports.js.map +1 -0
  108. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-evidence-postgres.d.ts +22 -0
  109. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-evidence-postgres.d.ts.map +1 -0
  110. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-evidence-postgres.js +177 -0
  111. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-evidence-postgres.js.map +1 -0
  112. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-local-postgres.d.ts +35 -0
  113. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-local-postgres.d.ts.map +1 -0
  114. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-local-postgres.js +184 -0
  115. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-local-postgres.js.map +1 -0
  116. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-persistence-postgres.d.ts +11 -0
  117. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-persistence-postgres.d.ts.map +1 -0
  118. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-persistence-postgres.js +120 -0
  119. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-persistence-postgres.js.map +1 -0
  120. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-postgres.d.ts +79 -0
  121. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-postgres.d.ts.map +1 -0
  122. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-postgres.js +286 -0
  123. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-postgres.js.map +1 -0
  124. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-result.d.ts +21 -0
  125. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-result.d.ts.map +1 -0
  126. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-result.js +81 -0
  127. package/node_modules/@noodle-borg/service/dist/platform-account-reset-preview-result.js.map +1 -0
  128. package/node_modules/@noodle-borg/service/dist/platform-account-reset-quarantine-postgres.d.ts +46 -0
  129. package/node_modules/@noodle-borg/service/dist/platform-account-reset-quarantine-postgres.d.ts.map +1 -0
  130. package/node_modules/@noodle-borg/service/dist/platform-account-reset-quarantine-postgres.js +283 -0
  131. package/node_modules/@noodle-borg/service/dist/platform-account-reset-quarantine-postgres.js.map +1 -0
  132. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-eligibility-postgres.d.ts +13 -0
  133. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-eligibility-postgres.d.ts.map +1 -0
  134. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-eligibility-postgres.js +81 -0
  135. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-eligibility-postgres.js.map +1 -0
  136. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-local-postgres.d.ts +30 -0
  137. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-local-postgres.d.ts.map +1 -0
  138. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-local-postgres.js +248 -0
  139. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-local-postgres.js.map +1 -0
  140. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-postgres.d.ts +29 -0
  141. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-postgres.d.ts.map +1 -0
  142. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-postgres.js +281 -0
  143. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-postgres.js.map +1 -0
  144. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-preview-postgres.d.ts +55 -0
  145. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-preview-postgres.d.ts.map +1 -0
  146. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-preview-postgres.js +262 -0
  147. package/node_modules/@noodle-borg/service/dist/platform-account-reset-rollback-preview-postgres.js.map +1 -0
  148. package/node_modules/@noodle-borg/service/dist/platform-account-reset-schema-postgres.d.ts +7 -0
  149. package/node_modules/@noodle-borg/service/dist/platform-account-reset-schema-postgres.d.ts.map +1 -0
  150. package/node_modules/@noodle-borg/service/dist/platform-account-reset-schema-postgres.js +439 -0
  151. package/node_modules/@noodle-borg/service/dist/platform-account-reset-schema-postgres.js.map +1 -0
  152. package/node_modules/@noodle-borg/service/dist/platform-account-reset.d.ts +276 -0
  153. package/node_modules/@noodle-borg/service/dist/platform-account-reset.d.ts.map +1 -0
  154. package/node_modules/@noodle-borg/service/dist/platform-account-reset.js +141 -0
  155. package/node_modules/@noodle-borg/service/dist/platform-account-reset.js.map +1 -0
  156. package/node_modules/@noodle-borg/service/dist/platform-auth-configuration.d.ts +1 -1
  157. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-legacy-sources-postgres.d.ts.map +1 -1
  158. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-legacy-sources-postgres.js +5 -1
  159. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-legacy-sources-postgres.js.map +1 -1
  160. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-local-subjects-postgres.d.ts.map +1 -1
  161. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-local-subjects-postgres.js +10 -1
  162. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-local-subjects-postgres.js.map +1 -1
  163. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-postgres.d.ts +5 -10
  164. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-postgres.d.ts.map +1 -1
  165. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-postgres.js +86 -47
  166. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-postgres.js.map +1 -1
  167. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-transaction-postgres.d.ts +17 -0
  168. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-transaction-postgres.d.ts.map +1 -0
  169. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-transaction-postgres.js +240 -0
  170. package/node_modules/@noodle-borg/service/dist/platform-auth-inventory-source-fence-transaction-postgres.js.map +1 -0
  171. package/node_modules/@noodle-borg/service/dist/platform-auth-operator.d.ts +63 -63
  172. package/node_modules/@noodle-borg/service/dist/platform-auth-rollout-support.d.ts +1 -1
  173. package/node_modules/@noodle-borg/service/dist/platform-auth-runtime.d.ts +18 -1
  174. package/node_modules/@noodle-borg/service/dist/platform-auth-runtime.d.ts.map +1 -1
  175. package/node_modules/@noodle-borg/service/dist/platform-auth-runtime.js +97 -2
  176. package/node_modules/@noodle-borg/service/dist/platform-auth-runtime.js.map +1 -1
  177. package/node_modules/@noodle-borg/service/dist/platform-auth-service-bootstrap.d.ts +4 -1
  178. package/node_modules/@noodle-borg/service/dist/platform-auth-service-bootstrap.d.ts.map +1 -1
  179. package/node_modules/@noodle-borg/service/dist/platform-auth-service-bootstrap.js +4 -0
  180. package/node_modules/@noodle-borg/service/dist/platform-auth-service-bootstrap.js.map +1 -1
  181. package/node_modules/@noodle-borg/service/dist/platform-identity-postgres.d.ts +7 -2
  182. package/node_modules/@noodle-borg/service/dist/platform-identity-postgres.d.ts.map +1 -1
  183. package/node_modules/@noodle-borg/service/dist/platform-identity-postgres.js +24 -2
  184. package/node_modules/@noodle-borg/service/dist/platform-identity-postgres.js.map +1 -1
  185. package/node_modules/@noodle-borg/service/dist/platform-identity-schema-postgres.d.ts.map +1 -1
  186. package/node_modules/@noodle-borg/service/dist/platform-identity-schema-postgres.js +4 -0
  187. package/node_modules/@noodle-borg/service/dist/platform-identity-schema-postgres.js.map +1 -1
  188. package/node_modules/@noodle-borg/service/dist/platform-identity-sync-postgres.d.ts +7 -1
  189. package/node_modules/@noodle-borg/service/dist/platform-identity-sync-postgres.d.ts.map +1 -1
  190. package/node_modules/@noodle-borg/service/dist/platform-identity-sync-postgres.js +121 -8
  191. package/node_modules/@noodle-borg/service/dist/platform-identity-sync-postgres.js.map +1 -1
  192. package/node_modules/@noodle-borg/service/dist/platform-identity-sync-recovery-postgres.d.ts.map +1 -1
  193. package/node_modules/@noodle-borg/service/dist/platform-identity-sync-recovery-postgres.js +11 -1
  194. package/node_modules/@noodle-borg/service/dist/platform-identity-sync-recovery-postgres.js.map +1 -1
  195. package/node_modules/@noodle-borg/service/dist/platform-identity-sync.d.ts +5 -3
  196. package/node_modules/@noodle-borg/service/dist/platform-identity-sync.d.ts.map +1 -1
  197. package/node_modules/@noodle-borg/service/dist/platform-identity-sync.js +15 -1
  198. package/node_modules/@noodle-borg/service/dist/platform-identity-sync.js.map +1 -1
  199. package/node_modules/@noodle-borg/service/dist/platform-identity.d.ts +23 -2
  200. package/node_modules/@noodle-borg/service/dist/platform-identity.d.ts.map +1 -1
  201. package/node_modules/@noodle-borg/service/dist/platform-identity.js +21 -0
  202. package/node_modules/@noodle-borg/service/dist/platform-identity.js.map +1 -1
  203. package/node_modules/@noodle-borg/service/dist/registry-state.d.ts +8 -0
  204. package/node_modules/@noodle-borg/service/dist/registry-state.d.ts.map +1 -1
  205. package/node_modules/@noodle-borg/service/dist/registry-state.js +15 -2
  206. package/node_modules/@noodle-borg/service/dist/registry-state.js.map +1 -1
  207. package/node_modules/@noodle-borg/service/dist/registry.d.ts +2 -0
  208. package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
  209. package/node_modules/@noodle-borg/service/dist/registry.js +4 -1
  210. package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
  211. package/node_modules/@noodle-borg/service/dist/routes/assistant-agent.d.ts +1 -1
  212. package/node_modules/@noodle-borg/service/dist/routes/assistant-agent.d.ts.map +1 -1
  213. package/node_modules/@noodle-borg/service/dist/routes/assistant-agent.js +1 -0
  214. package/node_modules/@noodle-borg/service/dist/routes/assistant-agent.js.map +1 -1
  215. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset-dispatch.d.ts +8 -0
  216. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset-dispatch.d.ts.map +1 -0
  217. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset-dispatch.js +36 -0
  218. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset-dispatch.js.map +1 -0
  219. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset.d.ts +22 -0
  220. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset.d.ts.map +1 -0
  221. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset.js +201 -0
  222. package/node_modules/@noodle-borg/service/dist/routes/platform-account-reset.js.map +1 -0
  223. package/node_modules/@noodle-borg/service/dist/routes/private-platform-auth-dispatch.d.ts +18 -0
  224. package/node_modules/@noodle-borg/service/dist/routes/private-platform-auth-dispatch.d.ts.map +1 -0
  225. package/node_modules/@noodle-borg/service/dist/routes/private-platform-auth-dispatch.js +36 -0
  226. package/node_modules/@noodle-borg/service/dist/routes/private-platform-auth-dispatch.js.map +1 -0
  227. package/node_modules/@noodle-borg/service/dist/serve-options.d.ts +2 -1
  228. package/node_modules/@noodle-borg/service/dist/serve-options.d.ts.map +1 -1
  229. package/node_modules/@noodle-borg/service/dist/serve.d.ts.map +1 -1
  230. package/node_modules/@noodle-borg/service/dist/serve.js +16 -1
  231. package/node_modules/@noodle-borg/service/dist/serve.js.map +1 -1
  232. package/node_modules/@noodle-borg/service/dist/service.d.ts.map +1 -1
  233. package/node_modules/@noodle-borg/service/dist/service.js +4 -5
  234. package/node_modules/@noodle-borg/service/dist/service.js.map +1 -1
  235. package/node_modules/@noodle-borg/service/dist/workos-directory.d.ts +22 -3
  236. package/node_modules/@noodle-borg/service/dist/workos-directory.d.ts.map +1 -1
  237. package/node_modules/@noodle-borg/service/dist/workos-directory.js +56 -5
  238. package/node_modules/@noodle-borg/service/dist/workos-directory.js.map +1 -1
  239. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts +7 -0
  240. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.d.ts.map +1 -1
  241. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js +5 -0
  242. package/node_modules/@noodle-borg/wire-contracts/dist/assistant.js.map +1 -1
  243. package/package.json +1 -1
@@ -14,6 +14,9 @@ export declare const PlatformAuthOperationBlockerCodeSchema: z.ZodEnum<{
14
14
  external_id_too_long: "external_id_too_long";
15
15
  conflicting_workos_user: "conflicting_workos_user";
16
16
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
17
+ remote_verification_incomplete: "remote_verification_incomplete";
18
+ rollout_transition_invalid: "rollout_transition_invalid";
19
+ finalize_precondition_failed: "finalize_precondition_failed";
17
20
  inventory_unavailable: "inventory_unavailable";
18
21
  inventory_blocked: "inventory_blocked";
19
22
  import_already_started: "import_already_started";
@@ -26,9 +29,6 @@ export declare const PlatformAuthOperationBlockerCodeSchema: z.ZodEnum<{
26
29
  events_processor_not_configured: "events_processor_not_configured";
27
30
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
28
31
  events_reconciliation_pending: "events_reconciliation_pending";
29
- remote_verification_incomplete: "remote_verification_incomplete";
30
- rollout_transition_invalid: "rollout_transition_invalid";
31
- finalize_precondition_failed: "finalize_precondition_failed";
32
32
  }>;
33
33
  export declare const PlatformAuthOperatorSnapshotSchema: z.ZodObject<{
34
34
  schemaVersion: z.ZodLiteral<1>;
@@ -73,6 +73,9 @@ export declare const PlatformAuthOperatorSnapshotSchema: z.ZodObject<{
73
73
  external_id_too_long: "external_id_too_long";
74
74
  conflicting_workos_user: "conflicting_workos_user";
75
75
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
76
+ remote_verification_incomplete: "remote_verification_incomplete";
77
+ rollout_transition_invalid: "rollout_transition_invalid";
78
+ finalize_precondition_failed: "finalize_precondition_failed";
76
79
  inventory_unavailable: "inventory_unavailable";
77
80
  inventory_blocked: "inventory_blocked";
78
81
  import_already_started: "import_already_started";
@@ -85,9 +88,6 @@ export declare const PlatformAuthOperatorSnapshotSchema: z.ZodObject<{
85
88
  events_processor_not_configured: "events_processor_not_configured";
86
89
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
87
90
  events_reconciliation_pending: "events_reconciliation_pending";
88
- remote_verification_incomplete: "remote_verification_incomplete";
89
- rollout_transition_invalid: "rollout_transition_invalid";
90
- finalize_precondition_failed: "finalize_precondition_failed";
91
91
  }>;
92
92
  count: z.ZodNumber;
93
93
  }, z.core.$strict>>;
@@ -130,8 +130,8 @@ export declare const PlatformAuthOperatorSnapshotSchema: z.ZodObject<{
130
130
  remoteVerification: z.ZodObject<{
131
131
  state: z.ZodEnum<{
132
132
  ready: "ready";
133
- not_configured: "not_configured";
134
133
  blocked: "blocked";
134
+ not_configured: "not_configured";
135
135
  not_started: "not_started";
136
136
  running: "running";
137
137
  }>;
@@ -187,6 +187,9 @@ export declare const PlatformAuthOperatorResponseSchema: z.ZodObject<{
187
187
  external_id_too_long: "external_id_too_long";
188
188
  conflicting_workos_user: "conflicting_workos_user";
189
189
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
190
+ remote_verification_incomplete: "remote_verification_incomplete";
191
+ rollout_transition_invalid: "rollout_transition_invalid";
192
+ finalize_precondition_failed: "finalize_precondition_failed";
190
193
  inventory_unavailable: "inventory_unavailable";
191
194
  inventory_blocked: "inventory_blocked";
192
195
  import_already_started: "import_already_started";
@@ -199,9 +202,6 @@ export declare const PlatformAuthOperatorResponseSchema: z.ZodObject<{
199
202
  events_processor_not_configured: "events_processor_not_configured";
200
203
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
201
204
  events_reconciliation_pending: "events_reconciliation_pending";
202
- remote_verification_incomplete: "remote_verification_incomplete";
203
- rollout_transition_invalid: "rollout_transition_invalid";
204
- finalize_precondition_failed: "finalize_precondition_failed";
205
205
  }>;
206
206
  count: z.ZodNumber;
207
207
  }, z.core.$strict>>;
@@ -244,8 +244,8 @@ export declare const PlatformAuthOperatorResponseSchema: z.ZodObject<{
244
244
  remoteVerification: z.ZodObject<{
245
245
  state: z.ZodEnum<{
246
246
  ready: "ready";
247
- not_configured: "not_configured";
248
247
  blocked: "blocked";
248
+ not_configured: "not_configured";
249
249
  not_started: "not_started";
250
250
  running: "running";
251
251
  }>;
@@ -363,11 +363,11 @@ export declare const PlatformAuthFinalizeRequestSchema: z.ZodObject<{
363
363
  }, z.core.$strict>;
364
364
  export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.ZodObject<{
365
365
  operation: z.ZodEnum<{
366
- activate: "activate";
367
366
  rollback: "rollback";
367
+ finalize: "finalize";
368
+ activate: "activate";
368
369
  start_import: "start_import";
369
370
  reconcile: "reconcile";
370
- finalize: "finalize";
371
371
  }>;
372
372
  target: z.ZodObject<{
373
373
  percentage: z.ZodNullable<z.ZodNumber>;
@@ -391,6 +391,9 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
391
391
  external_id_too_long: "external_id_too_long";
392
392
  conflicting_workos_user: "conflicting_workos_user";
393
393
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
394
+ remote_verification_incomplete: "remote_verification_incomplete";
395
+ rollout_transition_invalid: "rollout_transition_invalid";
396
+ finalize_precondition_failed: "finalize_precondition_failed";
394
397
  inventory_unavailable: "inventory_unavailable";
395
398
  inventory_blocked: "inventory_blocked";
396
399
  import_already_started: "import_already_started";
@@ -403,9 +406,6 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
403
406
  events_processor_not_configured: "events_processor_not_configured";
404
407
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
405
408
  events_reconciliation_pending: "events_reconciliation_pending";
406
- remote_verification_incomplete: "remote_verification_incomplete";
407
- rollout_transition_invalid: "rollout_transition_invalid";
408
- finalize_precondition_failed: "finalize_precondition_failed";
409
409
  }>;
410
410
  count: z.ZodNumber;
411
411
  }, z.core.$strict>>;
@@ -451,6 +451,9 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
451
451
  external_id_too_long: "external_id_too_long";
452
452
  conflicting_workos_user: "conflicting_workos_user";
453
453
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
454
+ remote_verification_incomplete: "remote_verification_incomplete";
455
+ rollout_transition_invalid: "rollout_transition_invalid";
456
+ finalize_precondition_failed: "finalize_precondition_failed";
454
457
  inventory_unavailable: "inventory_unavailable";
455
458
  inventory_blocked: "inventory_blocked";
456
459
  import_already_started: "import_already_started";
@@ -463,9 +466,6 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
463
466
  events_processor_not_configured: "events_processor_not_configured";
464
467
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
465
468
  events_reconciliation_pending: "events_reconciliation_pending";
466
- remote_verification_incomplete: "remote_verification_incomplete";
467
- rollout_transition_invalid: "rollout_transition_invalid";
468
- finalize_precondition_failed: "finalize_precondition_failed";
469
469
  }>;
470
470
  count: z.ZodNumber;
471
471
  }, z.core.$strict>>;
@@ -508,8 +508,8 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
508
508
  remoteVerification: z.ZodObject<{
509
509
  state: z.ZodEnum<{
510
510
  ready: "ready";
511
- not_configured: "not_configured";
512
511
  blocked: "blocked";
512
+ not_configured: "not_configured";
513
513
  not_started: "not_started";
514
514
  running: "running";
515
515
  }>;
@@ -535,6 +535,9 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
535
535
  external_id_too_long: "external_id_too_long";
536
536
  conflicting_workos_user: "conflicting_workos_user";
537
537
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
538
+ remote_verification_incomplete: "remote_verification_incomplete";
539
+ rollout_transition_invalid: "rollout_transition_invalid";
540
+ finalize_precondition_failed: "finalize_precondition_failed";
538
541
  inventory_unavailable: "inventory_unavailable";
539
542
  inventory_blocked: "inventory_blocked";
540
543
  import_already_started: "import_already_started";
@@ -547,9 +550,6 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
547
550
  events_processor_not_configured: "events_processor_not_configured";
548
551
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
549
552
  events_reconciliation_pending: "events_reconciliation_pending";
550
- remote_verification_incomplete: "remote_verification_incomplete";
551
- rollout_transition_invalid: "rollout_transition_invalid";
552
- finalize_precondition_failed: "finalize_precondition_failed";
553
553
  }>;
554
554
  count: z.ZodNumber;
555
555
  }, z.core.$strict>>;
@@ -595,6 +595,9 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
595
595
  external_id_too_long: "external_id_too_long";
596
596
  conflicting_workos_user: "conflicting_workos_user";
597
597
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
598
+ remote_verification_incomplete: "remote_verification_incomplete";
599
+ rollout_transition_invalid: "rollout_transition_invalid";
600
+ finalize_precondition_failed: "finalize_precondition_failed";
598
601
  inventory_unavailable: "inventory_unavailable";
599
602
  inventory_blocked: "inventory_blocked";
600
603
  import_already_started: "import_already_started";
@@ -607,9 +610,6 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
607
610
  events_processor_not_configured: "events_processor_not_configured";
608
611
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
609
612
  events_reconciliation_pending: "events_reconciliation_pending";
610
- remote_verification_incomplete: "remote_verification_incomplete";
611
- rollout_transition_invalid: "rollout_transition_invalid";
612
- finalize_precondition_failed: "finalize_precondition_failed";
613
613
  }>;
614
614
  count: z.ZodNumber;
615
615
  }, z.core.$strict>>;
@@ -652,8 +652,8 @@ export declare const PlatformAuthOperationPreviewSchema: z.ZodUnion<readonly [z.
652
652
  remoteVerification: z.ZodObject<{
653
653
  state: z.ZodEnum<{
654
654
  ready: "ready";
655
- not_configured: "not_configured";
656
655
  blocked: "blocked";
656
+ not_configured: "not_configured";
657
657
  not_started: "not_started";
658
658
  running: "running";
659
659
  }>;
@@ -668,11 +668,11 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
668
668
  ok: z.ZodLiteral<true>;
669
669
  data: z.ZodUnion<readonly [z.ZodObject<{
670
670
  operation: z.ZodEnum<{
671
- activate: "activate";
672
671
  rollback: "rollback";
672
+ finalize: "finalize";
673
+ activate: "activate";
673
674
  start_import: "start_import";
674
675
  reconcile: "reconcile";
675
- finalize: "finalize";
676
676
  }>;
677
677
  target: z.ZodObject<{
678
678
  percentage: z.ZodNullable<z.ZodNumber>;
@@ -696,6 +696,9 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
696
696
  external_id_too_long: "external_id_too_long";
697
697
  conflicting_workos_user: "conflicting_workos_user";
698
698
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
699
+ remote_verification_incomplete: "remote_verification_incomplete";
700
+ rollout_transition_invalid: "rollout_transition_invalid";
701
+ finalize_precondition_failed: "finalize_precondition_failed";
699
702
  inventory_unavailable: "inventory_unavailable";
700
703
  inventory_blocked: "inventory_blocked";
701
704
  import_already_started: "import_already_started";
@@ -708,9 +711,6 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
708
711
  events_processor_not_configured: "events_processor_not_configured";
709
712
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
710
713
  events_reconciliation_pending: "events_reconciliation_pending";
711
- remote_verification_incomplete: "remote_verification_incomplete";
712
- rollout_transition_invalid: "rollout_transition_invalid";
713
- finalize_precondition_failed: "finalize_precondition_failed";
714
714
  }>;
715
715
  count: z.ZodNumber;
716
716
  }, z.core.$strict>>;
@@ -756,6 +756,9 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
756
756
  external_id_too_long: "external_id_too_long";
757
757
  conflicting_workos_user: "conflicting_workos_user";
758
758
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
759
+ remote_verification_incomplete: "remote_verification_incomplete";
760
+ rollout_transition_invalid: "rollout_transition_invalid";
761
+ finalize_precondition_failed: "finalize_precondition_failed";
759
762
  inventory_unavailable: "inventory_unavailable";
760
763
  inventory_blocked: "inventory_blocked";
761
764
  import_already_started: "import_already_started";
@@ -768,9 +771,6 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
768
771
  events_processor_not_configured: "events_processor_not_configured";
769
772
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
770
773
  events_reconciliation_pending: "events_reconciliation_pending";
771
- remote_verification_incomplete: "remote_verification_incomplete";
772
- rollout_transition_invalid: "rollout_transition_invalid";
773
- finalize_precondition_failed: "finalize_precondition_failed";
774
774
  }>;
775
775
  count: z.ZodNumber;
776
776
  }, z.core.$strict>>;
@@ -813,8 +813,8 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
813
813
  remoteVerification: z.ZodObject<{
814
814
  state: z.ZodEnum<{
815
815
  ready: "ready";
816
- not_configured: "not_configured";
817
816
  blocked: "blocked";
817
+ not_configured: "not_configured";
818
818
  not_started: "not_started";
819
819
  running: "running";
820
820
  }>;
@@ -840,6 +840,9 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
840
840
  external_id_too_long: "external_id_too_long";
841
841
  conflicting_workos_user: "conflicting_workos_user";
842
842
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
843
+ remote_verification_incomplete: "remote_verification_incomplete";
844
+ rollout_transition_invalid: "rollout_transition_invalid";
845
+ finalize_precondition_failed: "finalize_precondition_failed";
843
846
  inventory_unavailable: "inventory_unavailable";
844
847
  inventory_blocked: "inventory_blocked";
845
848
  import_already_started: "import_already_started";
@@ -852,9 +855,6 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
852
855
  events_processor_not_configured: "events_processor_not_configured";
853
856
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
854
857
  events_reconciliation_pending: "events_reconciliation_pending";
855
- remote_verification_incomplete: "remote_verification_incomplete";
856
- rollout_transition_invalid: "rollout_transition_invalid";
857
- finalize_precondition_failed: "finalize_precondition_failed";
858
858
  }>;
859
859
  count: z.ZodNumber;
860
860
  }, z.core.$strict>>;
@@ -900,6 +900,9 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
900
900
  external_id_too_long: "external_id_too_long";
901
901
  conflicting_workos_user: "conflicting_workos_user";
902
902
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
903
+ remote_verification_incomplete: "remote_verification_incomplete";
904
+ rollout_transition_invalid: "rollout_transition_invalid";
905
+ finalize_precondition_failed: "finalize_precondition_failed";
903
906
  inventory_unavailable: "inventory_unavailable";
904
907
  inventory_blocked: "inventory_blocked";
905
908
  import_already_started: "import_already_started";
@@ -912,9 +915,6 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
912
915
  events_processor_not_configured: "events_processor_not_configured";
913
916
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
914
917
  events_reconciliation_pending: "events_reconciliation_pending";
915
- remote_verification_incomplete: "remote_verification_incomplete";
916
- rollout_transition_invalid: "rollout_transition_invalid";
917
- finalize_precondition_failed: "finalize_precondition_failed";
918
918
  }>;
919
919
  count: z.ZodNumber;
920
920
  }, z.core.$strict>>;
@@ -957,8 +957,8 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
957
957
  remoteVerification: z.ZodObject<{
958
958
  state: z.ZodEnum<{
959
959
  ready: "ready";
960
- not_configured: "not_configured";
961
960
  blocked: "blocked";
961
+ not_configured: "not_configured";
962
962
  not_started: "not_started";
963
963
  running: "running";
964
964
  }>;
@@ -971,11 +971,11 @@ export declare const PlatformAuthOperationPreviewResponseSchema: z.ZodObject<{
971
971
  }, z.core.$strict>;
972
972
  export declare const PlatformAuthOperationResultSchema: z.ZodUnion<readonly [z.ZodObject<{
973
973
  operation: z.ZodEnum<{
974
- activate: "activate";
975
974
  rollback: "rollback";
975
+ finalize: "finalize";
976
+ activate: "activate";
976
977
  start_import: "start_import";
977
978
  reconcile: "reconcile";
978
- finalize: "finalize";
979
979
  }>;
980
980
  batch: z.ZodNullable<z.ZodObject<{
981
981
  attempted: z.ZodNumber;
@@ -1046,6 +1046,9 @@ export declare const PlatformAuthOperationResultSchema: z.ZodUnion<readonly [z.Z
1046
1046
  external_id_too_long: "external_id_too_long";
1047
1047
  conflicting_workos_user: "conflicting_workos_user";
1048
1048
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
1049
+ remote_verification_incomplete: "remote_verification_incomplete";
1050
+ rollout_transition_invalid: "rollout_transition_invalid";
1051
+ finalize_precondition_failed: "finalize_precondition_failed";
1049
1052
  inventory_unavailable: "inventory_unavailable";
1050
1053
  inventory_blocked: "inventory_blocked";
1051
1054
  import_already_started: "import_already_started";
@@ -1058,9 +1061,6 @@ export declare const PlatformAuthOperationResultSchema: z.ZodUnion<readonly [z.Z
1058
1061
  events_processor_not_configured: "events_processor_not_configured";
1059
1062
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
1060
1063
  events_reconciliation_pending: "events_reconciliation_pending";
1061
- remote_verification_incomplete: "remote_verification_incomplete";
1062
- rollout_transition_invalid: "rollout_transition_invalid";
1063
- finalize_precondition_failed: "finalize_precondition_failed";
1064
1064
  }>;
1065
1065
  count: z.ZodNumber;
1066
1066
  }, z.core.$strict>>;
@@ -1103,8 +1103,8 @@ export declare const PlatformAuthOperationResultSchema: z.ZodUnion<readonly [z.Z
1103
1103
  remoteVerification: z.ZodObject<{
1104
1104
  state: z.ZodEnum<{
1105
1105
  ready: "ready";
1106
- not_configured: "not_configured";
1107
1106
  blocked: "blocked";
1107
+ not_configured: "not_configured";
1108
1108
  not_started: "not_started";
1109
1109
  running: "running";
1110
1110
  }>;
@@ -1163,6 +1163,9 @@ export declare const PlatformAuthOperationResultSchema: z.ZodUnion<readonly [z.Z
1163
1163
  external_id_too_long: "external_id_too_long";
1164
1164
  conflicting_workos_user: "conflicting_workos_user";
1165
1165
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
1166
+ remote_verification_incomplete: "remote_verification_incomplete";
1167
+ rollout_transition_invalid: "rollout_transition_invalid";
1168
+ finalize_precondition_failed: "finalize_precondition_failed";
1166
1169
  inventory_unavailable: "inventory_unavailable";
1167
1170
  inventory_blocked: "inventory_blocked";
1168
1171
  import_already_started: "import_already_started";
@@ -1175,9 +1178,6 @@ export declare const PlatformAuthOperationResultSchema: z.ZodUnion<readonly [z.Z
1175
1178
  events_processor_not_configured: "events_processor_not_configured";
1176
1179
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
1177
1180
  events_reconciliation_pending: "events_reconciliation_pending";
1178
- remote_verification_incomplete: "remote_verification_incomplete";
1179
- rollout_transition_invalid: "rollout_transition_invalid";
1180
- finalize_precondition_failed: "finalize_precondition_failed";
1181
1181
  }>;
1182
1182
  count: z.ZodNumber;
1183
1183
  }, z.core.$strict>>;
@@ -1220,8 +1220,8 @@ export declare const PlatformAuthOperationResultSchema: z.ZodUnion<readonly [z.Z
1220
1220
  remoteVerification: z.ZodObject<{
1221
1221
  state: z.ZodEnum<{
1222
1222
  ready: "ready";
1223
- not_configured: "not_configured";
1224
1223
  blocked: "blocked";
1224
+ not_configured: "not_configured";
1225
1225
  not_started: "not_started";
1226
1226
  running: "running";
1227
1227
  }>;
@@ -1236,11 +1236,11 @@ export declare const PlatformAuthOperationResultResponseSchema: z.ZodObject<{
1236
1236
  ok: z.ZodLiteral<true>;
1237
1237
  data: z.ZodUnion<readonly [z.ZodObject<{
1238
1238
  operation: z.ZodEnum<{
1239
- activate: "activate";
1240
1239
  rollback: "rollback";
1240
+ finalize: "finalize";
1241
+ activate: "activate";
1241
1242
  start_import: "start_import";
1242
1243
  reconcile: "reconcile";
1243
- finalize: "finalize";
1244
1244
  }>;
1245
1245
  batch: z.ZodNullable<z.ZodObject<{
1246
1246
  attempted: z.ZodNumber;
@@ -1311,6 +1311,9 @@ export declare const PlatformAuthOperationResultResponseSchema: z.ZodObject<{
1311
1311
  external_id_too_long: "external_id_too_long";
1312
1312
  conflicting_workos_user: "conflicting_workos_user";
1313
1313
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
1314
+ remote_verification_incomplete: "remote_verification_incomplete";
1315
+ rollout_transition_invalid: "rollout_transition_invalid";
1316
+ finalize_precondition_failed: "finalize_precondition_failed";
1314
1317
  inventory_unavailable: "inventory_unavailable";
1315
1318
  inventory_blocked: "inventory_blocked";
1316
1319
  import_already_started: "import_already_started";
@@ -1323,9 +1326,6 @@ export declare const PlatformAuthOperationResultResponseSchema: z.ZodObject<{
1323
1326
  events_processor_not_configured: "events_processor_not_configured";
1324
1327
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
1325
1328
  events_reconciliation_pending: "events_reconciliation_pending";
1326
- remote_verification_incomplete: "remote_verification_incomplete";
1327
- rollout_transition_invalid: "rollout_transition_invalid";
1328
- finalize_precondition_failed: "finalize_precondition_failed";
1329
1329
  }>;
1330
1330
  count: z.ZodNumber;
1331
1331
  }, z.core.$strict>>;
@@ -1368,8 +1368,8 @@ export declare const PlatformAuthOperationResultResponseSchema: z.ZodObject<{
1368
1368
  remoteVerification: z.ZodObject<{
1369
1369
  state: z.ZodEnum<{
1370
1370
  ready: "ready";
1371
- not_configured: "not_configured";
1372
1371
  blocked: "blocked";
1372
+ not_configured: "not_configured";
1373
1373
  not_started: "not_started";
1374
1374
  running: "running";
1375
1375
  }>;
@@ -1428,6 +1428,9 @@ export declare const PlatformAuthOperationResultResponseSchema: z.ZodObject<{
1428
1428
  external_id_too_long: "external_id_too_long";
1429
1429
  conflicting_workos_user: "conflicting_workos_user";
1430
1430
  ambiguous_platform_customer_evidence: "ambiguous_platform_customer_evidence";
1431
+ remote_verification_incomplete: "remote_verification_incomplete";
1432
+ rollout_transition_invalid: "rollout_transition_invalid";
1433
+ finalize_precondition_failed: "finalize_precondition_failed";
1431
1434
  inventory_unavailable: "inventory_unavailable";
1432
1435
  inventory_blocked: "inventory_blocked";
1433
1436
  import_already_started: "import_already_started";
@@ -1440,9 +1443,6 @@ export declare const PlatformAuthOperationResultResponseSchema: z.ZodObject<{
1440
1443
  events_processor_not_configured: "events_processor_not_configured";
1441
1444
  outbox_reconciliation_pending: "outbox_reconciliation_pending";
1442
1445
  events_reconciliation_pending: "events_reconciliation_pending";
1443
- remote_verification_incomplete: "remote_verification_incomplete";
1444
- rollout_transition_invalid: "rollout_transition_invalid";
1445
- finalize_precondition_failed: "finalize_precondition_failed";
1446
1446
  }>;
1447
1447
  count: z.ZodNumber;
1448
1448
  }, z.core.$strict>>;
@@ -1485,8 +1485,8 @@ export declare const PlatformAuthOperationResultResponseSchema: z.ZodObject<{
1485
1485
  remoteVerification: z.ZodObject<{
1486
1486
  state: z.ZodEnum<{
1487
1487
  ready: "ready";
1488
- not_configured: "not_configured";
1489
1488
  blocked: "blocked";
1489
+ not_configured: "not_configured";
1490
1490
  not_started: "not_started";
1491
1491
  running: "running";
1492
1492
  }>;
@@ -76,7 +76,7 @@ export declare function previewRequest(state: DurableState, aggregate: Aggregate
76
76
  importLineageChecksum: string;
77
77
  workosRealmFingerprint: string;
78
78
  };
79
- operation: "activate" | "rollback" | "finalize";
79
+ operation: "rollback" | "finalize" | "activate";
80
80
  percentage: number;
81
81
  cohortMode: "replace" | "preserve";
82
82
  canaryClientIds: readonly string[];
@@ -1,12 +1,27 @@
1
1
  import type { Pool } from 'pg';
2
2
  import { WorkOSEventProcessor, type WorkOSEventsClient } from './oauth/workos-events.js';
3
+ import { type PlatformAccountResetTargetSet } from './platform-account-reset.js';
4
+ import type { PlatformAccountResetRegistryPlan } from './platform-account-reset-operation-postgres.js';
5
+ import type { PlatformAccountResetOperatorPort } from './platform-account-reset-ports.js';
3
6
  import { type PlatformAuthDirectory } from './platform-auth-migration.js';
4
7
  import { PostgresPlatformAuthOperator } from './platform-auth-operator-postgres.js';
5
8
  import { type PlatformIdentitySyncDirectory, PlatformIdentitySyncProcessor } from './platform-identity-sync.js';
9
+ import { type PlatformAccountResetDirectory } from './workos-directory.js';
10
+ export interface PostgresPlatformAccountResetRuntime {
11
+ readonly approvedTargetSet: PlatformAccountResetTargetSet;
12
+ operator(actorFingerprint: string, reconcileRegistry?: (input: PlatformAccountResetRegistryPlan) => void | Promise<void>): PlatformAccountResetOperatorPort;
13
+ previewContext(): Promise<{
14
+ readonly releaseSha: string;
15
+ readonly expectedGeneration: number;
16
+ readonly sourceEpoch: number;
17
+ readonly workosRealm: string;
18
+ }>;
19
+ }
6
20
  export interface PostgresPlatformAuthRuntime {
7
21
  readonly operator: PostgresPlatformAuthOperator;
8
22
  readonly outboxProcessor: PlatformIdentitySyncProcessor;
9
23
  readonly eventsProcessor: WorkOSEventProcessor;
24
+ readonly accountReset?: PostgresPlatformAccountResetRuntime;
10
25
  }
11
26
  /** Leave the migration runtime dormant until the complete WorkOS configuration is present. */
12
27
  export declare function createConfiguredPostgresPlatformAuthRuntime(input: {
@@ -18,6 +33,7 @@ export declare function createConfiguredPostgresPlatformAuthRuntime(input: {
18
33
  readonly realm?: string;
19
34
  } | undefined;
20
35
  readonly workloadSubjects: readonly string[] | undefined;
36
+ readonly approvedAccountResetTargetSet: PlatformAccountResetTargetSet | undefined;
21
37
  }): Promise<PostgresPlatformAuthRuntime | undefined>;
22
38
  /** Builds the durable migration/control runtime once the ordinary Postgres schemas already exist. */
23
39
  export declare function createPostgresPlatformAuthRuntime(input: {
@@ -29,8 +45,9 @@ export declare function createPostgresPlatformAuthRuntime(input: {
29
45
  readonly realm: string;
30
46
  };
31
47
  readonly workloadSubjects?: readonly string[];
48
+ readonly approvedAccountResetTargetSet?: PlatformAccountResetTargetSet;
32
49
  readonly syntheticSubjects?: readonly string[];
33
- readonly directory?: PlatformAuthDirectory & PlatformIdentitySyncDirectory;
50
+ readonly directory?: PlatformAuthDirectory & PlatformIdentitySyncDirectory & PlatformAccountResetDirectory;
34
51
  readonly eventsClient?: WorkOSEventsClient;
35
52
  }): Promise<PostgresPlatformAuthRuntime>;
36
53
  //# sourceMappingURL=platform-auth-runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform-auth-runtime.d.ts","sourceRoot":"","sources":["../src/platform-auth-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,EAEL,oBAAoB,EACpB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAKpF,OAAO,EACL,KAAK,6BAA6B,EAClC,6BAA6B,EAC9B,MAAM,6BAA6B,CAAC;AAKrC,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;IAChD,QAAQ,CAAC,eAAe,EAAE,6BAA6B,CAAC;IACxD,QAAQ,CAAC,eAAe,EAAE,oBAAoB,CAAC;CAChD;AAED,8FAA8F;AAC9F,wBAAgB,2CAA2C,CAAC,KAAK,EAAE;IACjE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EACX;QACE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;KACzB,GACD,SAAS,CAAC;IACd,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC1D,GAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAWnD;AAED,qGAAqG;AACrG,wBAAsB,iCAAiC,CAAC,KAAK,EAAE;IAC7D,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAChG,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,qBAAqB,GAAG,6BAA6B,CAAC;IAC3E,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;CAC5C,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAiEvC"}
1
+ {"version":3,"file":"platform-auth-runtime.d.ts","sourceRoot":"","sources":["../src/platform-auth-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,EAEL,oBAAoB,EACpB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAEvG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AAW1F,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAKpF,OAAO,EACL,KAAK,6BAA6B,EAClC,6BAA6B,EAC9B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,KAAK,6BAA6B,EAA0B,MAAM,uBAAuB,CAAC;AAEnG,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,iBAAiB,EAAE,6BAA6B,CAAC;IAC1D,QAAQ,CACN,gBAAgB,EAAE,MAAM,EACxB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GACpF,gCAAgC,CAAC;IACpC,cAAc,IAAI,OAAO,CAAC;QACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAC5B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;QACpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;KAC9B,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;IAChD,QAAQ,CAAC,eAAe,EAAE,6BAA6B,CAAC;IACxD,QAAQ,CAAC,eAAe,EAAE,oBAAoB,CAAC;IAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,mCAAmC,CAAC;CAC7D;AAED,8FAA8F;AAC9F,wBAAgB,2CAA2C,CAAC,KAAK,EAAE;IACjE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EACX;QACE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;KACzB,GACD,SAAS,CAAC;IACd,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,6BAA6B,EAAE,6BAA6B,GAAG,SAAS,CAAC;CACnF,GAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAcnD;AAED,qGAAqG;AACrG,wBAAsB,iCAAiC,CAAC,KAAK,EAAE;IAC7D,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAChG,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,QAAQ,CAAC,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IACvE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,qBAAqB,GACxC,6BAA6B,GAC7B,6BAA6B,CAAC;IAChC,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;CAC5C,GAAG,OAAO,CAAC,2BAA2B,CAAC,CA6JvC"}
@@ -1,5 +1,13 @@
1
1
  import { PostgresWorkOSIdentityEventStore, WorkOSEventProcessor, WorkOSEventsSdkClient, } from './oauth/workos-events.js';
2
+ import { PlatformAccountResetTargetSetSchema, } from './platform-account-reset.js';
3
+ import { platformAccountResetApprovedTargetSetFingerprint } from './platform-account-reset-fingerprint.js';
4
+ import { PlatformAccountResetOperator } from './platform-account-reset-operator.js';
5
+ import { PostgresPlatformAccountResetPreviewStore } from './platform-account-reset-preview-postgres.js';
6
+ import { PostgresPlatformAccountResetQuarantineStore } from './platform-account-reset-quarantine-postgres.js';
7
+ import { PostgresPlatformAccountResetRollbackStore } from './platform-account-reset-rollback-postgres.js';
8
+ import { PostgresPlatformAccountResetRollbackPreviewStore } from './platform-account-reset-rollback-preview-postgres.js';
2
9
  import { PLATFORM_AUTH_INVENTORY_SOURCES, PostgresPlatformAuthInventoryStore, } from './platform-auth-inventory-postgres.js';
10
+ import { readPlatformAuthInventorySourceEpoch } from './platform-auth-inventory-source-fence-postgres.js';
3
11
  import { PlatformAuthImportService, } from './platform-auth-migration.js';
4
12
  import { PostgresPlatformAuthMigrationStore } from './platform-auth-migration-postgres.js';
5
13
  import { PostgresPlatformAuthOperator } from './platform-auth-operator-postgres.js';
@@ -22,6 +30,9 @@ export function createConfiguredPostgresPlatformAuthRuntime(input) {
22
30
  releaseSha: input.releaseSha,
23
31
  workos: { apiKey: workos.apiKey, clientId: workos.clientId, realm: workos.realm },
24
32
  workloadSubjects: input.workloadSubjects ?? [],
33
+ ...(input.approvedAccountResetTargetSet === undefined
34
+ ? {}
35
+ : { approvedAccountResetTargetSet: input.approvedAccountResetTargetSet }),
25
36
  });
26
37
  }
27
38
  /** Builds the durable migration/control runtime once the ordinary Postgres schemas already exist. */
@@ -32,8 +43,11 @@ export async function createPostgresPlatformAuthRuntime(input) {
32
43
  await ensurePlatformAuthOperatorSchema(input.pool);
33
44
  const directory = input.directory ??
34
45
  WorkOSDirectoryAdapter.fromApiKey(input.workos.apiKey, input.workos.clientId);
46
+ const syncStore = new PostgresPlatformIdentitySyncStore(input.pool, {
47
+ workosRealm: input.workos.realm,
48
+ });
35
49
  const outboxProcessor = new PlatformIdentitySyncProcessor({
36
- store: new PostgresPlatformIdentitySyncStore(input.pool, { workosRealm: input.workos.realm }),
50
+ store: syncStore,
37
51
  directory,
38
52
  });
39
53
  const eventsProcessor = new WorkOSEventProcessor({
@@ -85,7 +99,88 @@ export async function createPostgresPlatformAuthRuntime(input) {
85
99
  remoteVerificationWorker,
86
100
  remoteVerificationStore,
87
101
  });
88
- return { operator, outboxProcessor, eventsProcessor };
102
+ const sourceAvailability = configuredInventorySources();
103
+ const excludedSubjects = [
104
+ ...(input.workloadSubjects ?? []).map((subject) => ({
105
+ subject,
106
+ kind: 'workload',
107
+ })),
108
+ ...(input.syntheticSubjects ?? []).map((subject) => ({
109
+ subject,
110
+ kind: 'synthetic',
111
+ })),
112
+ ];
113
+ const approvedTargetSet = input.approvedAccountResetTargetSet === undefined
114
+ ? undefined
115
+ : PlatformAccountResetTargetSetSchema.parse(input.approvedAccountResetTargetSet);
116
+ const approvedTargetSetFingerprint = approvedTargetSet === undefined
117
+ ? undefined
118
+ : platformAccountResetApprovedTargetSetFingerprint(approvedTargetSet);
119
+ const accountReset = approvedTargetSet === undefined || approvedTargetSetFingerprint === undefined
120
+ ? undefined
121
+ : {
122
+ approvedTargetSet,
123
+ operator: (actorFingerprint, reconcileRegistry) => {
124
+ const preview = new PostgresPlatformAccountResetPreviewStore(input.pool, {
125
+ directory,
126
+ sourceAvailability,
127
+ googleRealm: 'accounts.google.com',
128
+ workosRealm: input.workos.realm,
129
+ releaseSha: input.releaseSha,
130
+ actorFingerprint,
131
+ approvedTargetSetFingerprint,
132
+ excludedSubjects,
133
+ });
134
+ const rollbackPreview = new PostgresPlatformAccountResetRollbackPreviewStore(input.pool, {
135
+ directory,
136
+ sourceAvailability,
137
+ googleRealm: 'accounts.google.com',
138
+ workosRealm: input.workos.realm,
139
+ releaseSha: input.releaseSha,
140
+ });
141
+ return new PlatformAccountResetOperator({
142
+ preview,
143
+ rollbackPreview,
144
+ quarantine: new PostgresPlatformAccountResetQuarantineStore(input.pool, {
145
+ preview,
146
+ sourceAvailability,
147
+ releaseSha: input.releaseSha,
148
+ workosRealm: input.workos.realm,
149
+ approvedTargetSetFingerprint,
150
+ actorFingerprint,
151
+ }),
152
+ rollback: new PostgresPlatformAccountResetRollbackStore(input.pool, {
153
+ preview: rollbackPreview,
154
+ sourceAvailability,
155
+ releaseSha: input.releaseSha,
156
+ workosRealm: input.workos.realm,
157
+ approvedTargetSetFingerprint,
158
+ actorFingerprint,
159
+ }),
160
+ statusStore: input.pool,
161
+ ...(reconcileRegistry === undefined ? {} : { reconcileRegistry }),
162
+ });
163
+ },
164
+ previewContext: async () => {
165
+ const rollout = await input.pool.query('SELECT generation FROM platform_auth_rollout_state WHERE singleton = true');
166
+ const expectedGeneration = Number(rollout.rows[0]?.generation);
167
+ if (!Number.isSafeInteger(expectedGeneration) || expectedGeneration < 0) {
168
+ throw new Error('platform account-reset rollout generation is unavailable');
169
+ }
170
+ return {
171
+ releaseSha: input.releaseSha,
172
+ expectedGeneration,
173
+ sourceEpoch: Number(await readPlatformAuthInventorySourceEpoch(input.pool)),
174
+ workosRealm: input.workos.realm,
175
+ };
176
+ },
177
+ };
178
+ return {
179
+ operator,
180
+ outboxProcessor,
181
+ eventsProcessor,
182
+ ...(accountReset === undefined ? {} : { accountReset }),
183
+ };
89
184
  }
90
185
  function configuredInventorySources() {
91
186
  return Object.fromEntries(PLATFORM_AUTH_INVENTORY_SOURCES.map((source) => [source, 'configured']));