@auxx/sdk 0.0.1-experimental.1

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 (923) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +95 -0
  3. package/client.d.ts +2 -0
  4. package/global.d.ts +69 -0
  5. package/lib/api/api.d.ts +250 -0
  6. package/lib/api/api.d.ts.map +1 -0
  7. package/lib/api/api.js +202 -0
  8. package/lib/api/api.js.map +1 -0
  9. package/lib/api/fetcher.d.ts +21 -0
  10. package/lib/api/fetcher.d.ts.map +1 -0
  11. package/lib/api/fetcher.js +117 -0
  12. package/lib/api/fetcher.js.map +1 -0
  13. package/lib/api/schemas.d.ts +785 -0
  14. package/lib/api/schemas.d.ts.map +1 -0
  15. package/lib/api/schemas.js +157 -0
  16. package/lib/api/schemas.js.map +1 -0
  17. package/lib/auth/auth.d.ts +28 -0
  18. package/lib/auth/auth.d.ts.map +1 -0
  19. package/lib/auth/auth.js +271 -0
  20. package/lib/auth/auth.js.map +1 -0
  21. package/lib/auth/keychain.d.ts +48 -0
  22. package/lib/auth/keychain.d.ts.map +1 -0
  23. package/lib/auth/keychain.js +142 -0
  24. package/lib/auth/keychain.js.map +1 -0
  25. package/lib/auxx-logo.d.ts +2 -0
  26. package/lib/auxx-logo.d.ts.map +1 -0
  27. package/lib/auxx-logo.js +14 -0
  28. package/lib/auxx-logo.js.map +1 -0
  29. package/lib/auxx.d.ts +3 -0
  30. package/lib/auxx.d.ts.map +1 -0
  31. package/lib/auxx.js +26 -0
  32. package/lib/auxx.js.map +1 -0
  33. package/lib/build/client/create-client-build-config.d.ts +17 -0
  34. package/lib/build/client/create-client-build-config.d.ts.map +1 -0
  35. package/lib/build/client/create-client-build-config.js +70 -0
  36. package/lib/build/client/create-client-build-config.js.map +1 -0
  37. package/lib/build/client/generate-client-entry.d.ts +7 -0
  38. package/lib/build/client/generate-client-entry.d.ts.map +1 -0
  39. package/lib/build/client/generate-client-entry.js +153 -0
  40. package/lib/build/client/generate-client-entry.js.map +1 -0
  41. package/lib/build/create-build-config.d.ts +10 -0
  42. package/lib/build/create-build-config.d.ts.map +1 -0
  43. package/lib/build/create-build-config.js +19 -0
  44. package/lib/build/create-build-config.js.map +1 -0
  45. package/lib/build/get-file-exports.d.ts +5 -0
  46. package/lib/build/get-file-exports.d.ts.map +1 -0
  47. package/lib/build/get-file-exports.js +13 -0
  48. package/lib/build/get-file-exports.js.map +1 -0
  49. package/lib/build/platform-runtime/build.d.ts +2 -0
  50. package/lib/build/platform-runtime/build.d.ts.map +1 -0
  51. package/lib/build/platform-runtime/build.js +77 -0
  52. package/lib/build/platform-runtime/build.js.map +1 -0
  53. package/lib/build/proxy-block-modules-plugin.d.ts +20 -0
  54. package/lib/build/proxy-block-modules-plugin.d.ts.map +1 -0
  55. package/lib/build/proxy-block-modules-plugin.js +68 -0
  56. package/lib/build/proxy-block-modules-plugin.js.map +1 -0
  57. package/lib/build/proxy-server-modules-plugin.d.ts +5 -0
  58. package/lib/build/proxy-server-modules-plugin.d.ts.map +1 -0
  59. package/lib/build/proxy-server-modules-plugin.js +30 -0
  60. package/lib/build/proxy-server-modules-plugin.js.map +1 -0
  61. package/lib/build/server/create-server-build-config.d.ts +8 -0
  62. package/lib/build/server/create-server-build-config.d.ts.map +1 -0
  63. package/lib/build/server/create-server-build-config.js +25 -0
  64. package/lib/build/server/create-server-build-config.js.map +1 -0
  65. package/lib/build/server/find-workflow-block-server-modules.d.ts +39 -0
  66. package/lib/build/server/find-workflow-block-server-modules.d.ts.map +1 -0
  67. package/lib/build/server/find-workflow-block-server-modules.js +403 -0
  68. package/lib/build/server/find-workflow-block-server-modules.js.map +1 -0
  69. package/lib/build/server/generate-server-entry.d.ts +16 -0
  70. package/lib/build/server/generate-server-entry.d.ts.map +1 -0
  71. package/lib/build/server/generate-server-entry.js +213 -0
  72. package/lib/build/server/generate-server-entry.js.map +1 -0
  73. package/lib/build/workflow-block-modules.d.ts +54 -0
  74. package/lib/build/workflow-block-modules.d.ts.map +1 -0
  75. package/lib/build/workflow-block-modules.js +136 -0
  76. package/lib/build/workflow-block-modules.js.map +1 -0
  77. package/lib/client/alerts.d.ts +15 -0
  78. package/lib/client/alerts.d.ts.map +1 -0
  79. package/lib/client/alerts.js +3 -0
  80. package/lib/client/alerts.js.map +1 -0
  81. package/lib/client/components/avatar.d.ts +11 -0
  82. package/lib/client/components/avatar.d.ts.map +1 -0
  83. package/lib/client/components/avatar.js +3 -0
  84. package/lib/client/components/avatar.js.map +1 -0
  85. package/lib/client/components/badge.d.ts +9 -0
  86. package/lib/client/components/badge.d.ts.map +1 -0
  87. package/lib/client/components/badge.js +3 -0
  88. package/lib/client/components/badge.js.map +1 -0
  89. package/lib/client/components/banner.d.ts +9 -0
  90. package/lib/client/components/banner.d.ts.map +1 -0
  91. package/lib/client/components/banner.js +3 -0
  92. package/lib/client/components/banner.js.map +1 -0
  93. package/lib/client/components/button.d.ts +11 -0
  94. package/lib/client/components/button.d.ts.map +1 -0
  95. package/lib/client/components/button.js +3 -0
  96. package/lib/client/components/button.js.map +1 -0
  97. package/lib/client/components/form-field.d.ts +11 -0
  98. package/lib/client/components/form-field.d.ts.map +1 -0
  99. package/lib/client/components/form-field.js +3 -0
  100. package/lib/client/components/form-field.js.map +1 -0
  101. package/lib/client/components/form-submit.d.ts +10 -0
  102. package/lib/client/components/form-submit.d.ts.map +1 -0
  103. package/lib/client/components/form-submit.js +3 -0
  104. package/lib/client/components/form-submit.js.map +1 -0
  105. package/lib/client/components/form.d.ts +26 -0
  106. package/lib/client/components/form.d.ts.map +1 -0
  107. package/lib/client/components/form.js +3 -0
  108. package/lib/client/components/form.js.map +1 -0
  109. package/lib/client/components/index.d.ts +160 -0
  110. package/lib/client/components/index.d.ts.map +1 -0
  111. package/lib/client/components/index.js +3 -0
  112. package/lib/client/components/index.js.map +1 -0
  113. package/lib/client/components/separator.d.ts +8 -0
  114. package/lib/client/components/separator.d.ts.map +1 -0
  115. package/lib/client/components/separator.js +3 -0
  116. package/lib/client/components/separator.js.map +1 -0
  117. package/lib/client/components/text-block.d.ts +7 -0
  118. package/lib/client/components/text-block.d.ts.map +1 -0
  119. package/lib/client/components/text-block.js +3 -0
  120. package/lib/client/components/text-block.js.map +1 -0
  121. package/lib/client/components/typography.d.ts +17 -0
  122. package/lib/client/components/typography.d.ts.map +1 -0
  123. package/lib/client/components/typography.js +3 -0
  124. package/lib/client/components/typography.js.map +1 -0
  125. package/lib/client/dialogs.d.ts +9 -0
  126. package/lib/client/dialogs.d.ts.map +1 -0
  127. package/lib/client/dialogs.js +3 -0
  128. package/lib/client/dialogs.js.map +1 -0
  129. package/lib/client/forms/base.d.ts +9 -0
  130. package/lib/client/forms/base.d.ts.map +1 -0
  131. package/lib/client/forms/base.js +3 -0
  132. package/lib/client/forms/base.js.map +1 -0
  133. package/lib/client/forms/index.d.ts +26 -0
  134. package/lib/client/forms/index.d.ts.map +1 -0
  135. package/lib/client/forms/index.js +3 -0
  136. package/lib/client/forms/index.js.map +1 -0
  137. package/lib/client/forms/types/boolean.d.ts +12 -0
  138. package/lib/client/forms/types/boolean.d.ts.map +1 -0
  139. package/lib/client/forms/types/boolean.js +3 -0
  140. package/lib/client/forms/types/boolean.js.map +1 -0
  141. package/lib/client/forms/types/number.d.ts +18 -0
  142. package/lib/client/forms/types/number.d.ts.map +1 -0
  143. package/lib/client/forms/types/number.js +3 -0
  144. package/lib/client/forms/types/number.js.map +1 -0
  145. package/lib/client/forms/types/select.d.ts +14 -0
  146. package/lib/client/forms/types/select.d.ts.map +1 -0
  147. package/lib/client/forms/types/select.js +3 -0
  148. package/lib/client/forms/types/select.js.map +1 -0
  149. package/lib/client/forms/types/string.d.ts +19 -0
  150. package/lib/client/forms/types/string.d.ts.map +1 -0
  151. package/lib/client/forms/types/string.js +3 -0
  152. package/lib/client/forms/types/string.js.map +1 -0
  153. package/lib/client/forms/types.d.ts +69 -0
  154. package/lib/client/forms/types.d.ts.map +1 -0
  155. package/lib/client/forms/types.js +3 -0
  156. package/lib/client/forms/types.js.map +1 -0
  157. package/lib/client/forms/utils/serialize.d.ts +6 -0
  158. package/lib/client/forms/utils/serialize.d.ts.map +1 -0
  159. package/lib/client/forms/utils/serialize.js +3 -0
  160. package/lib/client/forms/utils/serialize.js.map +1 -0
  161. package/lib/client/forms/utils/validation.d.ts +3 -0
  162. package/lib/client/forms/utils/validation.d.ts.map +1 -0
  163. package/lib/client/forms/utils/validation.js +3 -0
  164. package/lib/client/forms/utils/validation.js.map +1 -0
  165. package/lib/client/hooks/cache-manager.d.ts +18 -0
  166. package/lib/client/hooks/cache-manager.d.ts.map +1 -0
  167. package/lib/client/hooks/cache-manager.js +3 -0
  168. package/lib/client/hooks/cache-manager.js.map +1 -0
  169. package/lib/client/hooks/generate-cache-key.d.ts +2 -0
  170. package/lib/client/hooks/generate-cache-key.d.ts.map +1 -0
  171. package/lib/client/hooks/generate-cache-key.js +3 -0
  172. package/lib/client/hooks/generate-cache-key.js.map +1 -0
  173. package/lib/client/hooks/index.d.ts +28 -0
  174. package/lib/client/hooks/index.d.ts.map +1 -0
  175. package/lib/client/hooks/index.js +3 -0
  176. package/lib/client/hooks/index.js.map +1 -0
  177. package/lib/client/hooks/use-async-cache.d.ts +11 -0
  178. package/lib/client/hooks/use-async-cache.d.ts.map +1 -0
  179. package/lib/client/hooks/use-async-cache.js +3 -0
  180. package/lib/client/hooks/use-async-cache.js.map +1 -0
  181. package/lib/client/index.d.ts +11 -0
  182. package/lib/client/index.d.ts.map +1 -0
  183. package/lib/client/index.js +3 -0
  184. package/lib/client/index.js.map +1 -0
  185. package/lib/client/navigation.d.ts +4 -0
  186. package/lib/client/navigation.d.ts.map +1 -0
  187. package/lib/client/navigation.js +3 -0
  188. package/lib/client/navigation.js.map +1 -0
  189. package/lib/client/record-actions.d.ts +25 -0
  190. package/lib/client/record-actions.d.ts.map +1 -0
  191. package/lib/client/record-actions.js +3 -0
  192. package/lib/client/record-actions.js.map +1 -0
  193. package/lib/client/toasts.d.ts +7 -0
  194. package/lib/client/toasts.d.ts.map +1 -0
  195. package/lib/client/toasts.js +3 -0
  196. package/lib/client/toasts.js.map +1 -0
  197. package/lib/client/types.d.ts +10 -0
  198. package/lib/client/types.d.ts.map +1 -0
  199. package/lib/client/types.js +3 -0
  200. package/lib/client/types.js.map +1 -0
  201. package/lib/client/workflow/components/index.d.ts +20 -0
  202. package/lib/client/workflow/components/index.d.ts.map +1 -0
  203. package/lib/client/workflow/components/index.js +3 -0
  204. package/lib/client/workflow/components/index.js.map +1 -0
  205. package/lib/client/workflow/components/inputs/boolean-input.d.ts +13 -0
  206. package/lib/client/workflow/components/inputs/boolean-input.d.ts.map +1 -0
  207. package/lib/client/workflow/components/inputs/boolean-input.js +3 -0
  208. package/lib/client/workflow/components/inputs/boolean-input.js.map +1 -0
  209. package/lib/client/workflow/components/inputs/number-input.d.ts +17 -0
  210. package/lib/client/workflow/components/inputs/number-input.d.ts.map +1 -0
  211. package/lib/client/workflow/components/inputs/number-input.js +3 -0
  212. package/lib/client/workflow/components/inputs/number-input.js.map +1 -0
  213. package/lib/client/workflow/components/inputs/select-input.d.ts +15 -0
  214. package/lib/client/workflow/components/inputs/select-input.d.ts.map +1 -0
  215. package/lib/client/workflow/components/inputs/select-input.js +3 -0
  216. package/lib/client/workflow/components/inputs/select-input.js.map +1 -0
  217. package/lib/client/workflow/components/inputs/string-input.d.ts +15 -0
  218. package/lib/client/workflow/components/inputs/string-input.d.ts.map +1 -0
  219. package/lib/client/workflow/components/inputs/string-input.js +3 -0
  220. package/lib/client/workflow/components/inputs/string-input.js.map +1 -0
  221. package/lib/client/workflow/components/layout/input-group.d.ts +9 -0
  222. package/lib/client/workflow/components/layout/input-group.d.ts.map +1 -0
  223. package/lib/client/workflow/components/layout/input-group.js +3 -0
  224. package/lib/client/workflow/components/layout/input-group.js.map +1 -0
  225. package/lib/client/workflow/components/layout/section.d.ts +13 -0
  226. package/lib/client/workflow/components/layout/section.d.ts.map +1 -0
  227. package/lib/client/workflow/components/layout/section.js +3 -0
  228. package/lib/client/workflow/components/layout/section.js.map +1 -0
  229. package/lib/client/workflow/components/layout/separator.d.ts +7 -0
  230. package/lib/client/workflow/components/layout/separator.d.ts.map +1 -0
  231. package/lib/client/workflow/components/layout/separator.js +3 -0
  232. package/lib/client/workflow/components/layout/separator.js.map +1 -0
  233. package/lib/client/workflow/components/utility/alert.d.ts +10 -0
  234. package/lib/client/workflow/components/utility/alert.d.ts.map +1 -0
  235. package/lib/client/workflow/components/utility/alert.js +3 -0
  236. package/lib/client/workflow/components/utility/alert.js.map +1 -0
  237. package/lib/client/workflow/components/utility/badge.d.ts +9 -0
  238. package/lib/client/workflow/components/utility/badge.d.ts.map +1 -0
  239. package/lib/client/workflow/components/utility/badge.js +3 -0
  240. package/lib/client/workflow/components/utility/badge.js.map +1 -0
  241. package/lib/client/workflow/components/utility/conditional-render.d.ts +8 -0
  242. package/lib/client/workflow/components/utility/conditional-render.d.ts.map +1 -0
  243. package/lib/client/workflow/components/utility/conditional-render.js +3 -0
  244. package/lib/client/workflow/components/utility/conditional-render.js.map +1 -0
  245. package/lib/client/workflow/components/variables/input-editor.d.ts +16 -0
  246. package/lib/client/workflow/components/variables/input-editor.d.ts.map +1 -0
  247. package/lib/client/workflow/components/variables/input-editor.js +3 -0
  248. package/lib/client/workflow/components/variables/input-editor.js.map +1 -0
  249. package/lib/client/workflow/components/variables/variable-input.d.ts +19 -0
  250. package/lib/client/workflow/components/variables/variable-input.d.ts.map +1 -0
  251. package/lib/client/workflow/components/variables/variable-input.js +3 -0
  252. package/lib/client/workflow/components/variables/variable-input.js.map +1 -0
  253. package/lib/client/workflow/components/workflow-node-handle.d.ts +11 -0
  254. package/lib/client/workflow/components/workflow-node-handle.d.ts.map +1 -0
  255. package/lib/client/workflow/components/workflow-node-handle.js +3 -0
  256. package/lib/client/workflow/components/workflow-node-handle.js.map +1 -0
  257. package/lib/client/workflow/components/workflow-node-row.d.ts +10 -0
  258. package/lib/client/workflow/components/workflow-node-row.d.ts.map +1 -0
  259. package/lib/client/workflow/components/workflow-node-row.js +3 -0
  260. package/lib/client/workflow/components/workflow-node-row.js.map +1 -0
  261. package/lib/client/workflow/components/workflow-node-text.d.ts +8 -0
  262. package/lib/client/workflow/components/workflow-node-text.d.ts.map +1 -0
  263. package/lib/client/workflow/components/workflow-node-text.js +3 -0
  264. package/lib/client/workflow/components/workflow-node-text.js.map +1 -0
  265. package/lib/client/workflow/components/workflow-node.d.ts +8 -0
  266. package/lib/client/workflow/components/workflow-node.d.ts.map +1 -0
  267. package/lib/client/workflow/components/workflow-node.js +3 -0
  268. package/lib/client/workflow/components/workflow-node.js.map +1 -0
  269. package/lib/client/workflow/components/workflow-panel.d.ts +8 -0
  270. package/lib/client/workflow/components/workflow-panel.d.ts.map +1 -0
  271. package/lib/client/workflow/components/workflow-panel.js +3 -0
  272. package/lib/client/workflow/components/workflow-panel.js.map +1 -0
  273. package/lib/client/workflow/hooks/index.d.ts +6 -0
  274. package/lib/client/workflow/hooks/index.d.ts.map +1 -0
  275. package/lib/client/workflow/hooks/index.js +3 -0
  276. package/lib/client/workflow/hooks/index.js.map +1 -0
  277. package/lib/client/workflow/hooks/use-variable.d.ts +21 -0
  278. package/lib/client/workflow/hooks/use-variable.d.ts.map +1 -0
  279. package/lib/client/workflow/hooks/use-variable.js +3 -0
  280. package/lib/client/workflow/hooks/use-variable.js.map +1 -0
  281. package/lib/client/workflow/hooks/use-workflow-context.d.ts +9 -0
  282. package/lib/client/workflow/hooks/use-workflow-context.d.ts.map +1 -0
  283. package/lib/client/workflow/hooks/use-workflow-context.js +3 -0
  284. package/lib/client/workflow/hooks/use-workflow-context.js.map +1 -0
  285. package/lib/client/workflow/hooks/use-workflow-node.d.ts +30 -0
  286. package/lib/client/workflow/hooks/use-workflow-node.d.ts.map +1 -0
  287. package/lib/client/workflow/hooks/use-workflow-node.js +3 -0
  288. package/lib/client/workflow/hooks/use-workflow-node.js.map +1 -0
  289. package/lib/client/workflow/hooks/use-workflow-runtime.d.ts +35 -0
  290. package/lib/client/workflow/hooks/use-workflow-runtime.d.ts.map +1 -0
  291. package/lib/client/workflow/hooks/use-workflow-runtime.js +3 -0
  292. package/lib/client/workflow/hooks/use-workflow-runtime.js.map +1 -0
  293. package/lib/client/workflow/hooks/use-workflow.d.ts +36 -0
  294. package/lib/client/workflow/hooks/use-workflow.d.ts.map +1 -0
  295. package/lib/client/workflow/hooks/use-workflow.js +3 -0
  296. package/lib/client/workflow/hooks/use-workflow.js.map +1 -0
  297. package/lib/client/workflow/index.d.ts +5 -0
  298. package/lib/client/workflow/index.d.ts.map +1 -0
  299. package/lib/client/workflow/index.js +3 -0
  300. package/lib/client/workflow/index.js.map +1 -0
  301. package/lib/client/workflow/types/index.d.ts +2 -0
  302. package/lib/client/workflow/types/index.d.ts.map +1 -0
  303. package/lib/client/workflow/types/index.js +3 -0
  304. package/lib/client/workflow/types/index.js.map +1 -0
  305. package/lib/client/workflow/types/path-helpers.d.ts +26 -0
  306. package/lib/client/workflow/types/path-helpers.d.ts.map +1 -0
  307. package/lib/client/workflow/types/path-helpers.js +3 -0
  308. package/lib/client/workflow/types/path-helpers.js.map +1 -0
  309. package/lib/commands/apps.d.ts +3 -0
  310. package/lib/commands/apps.d.ts.map +1 -0
  311. package/lib/commands/apps.js +64 -0
  312. package/lib/commands/apps.js.map +1 -0
  313. package/lib/commands/build/build-javascript.d.ts +2 -0
  314. package/lib/commands/build/build-javascript.d.ts.map +1 -0
  315. package/lib/commands/build/build-javascript.js +18 -0
  316. package/lib/commands/build/build-javascript.js.map +1 -0
  317. package/lib/commands/build/validate-typescript.d.ts +17 -0
  318. package/lib/commands/build/validate-typescript.d.ts.map +1 -0
  319. package/lib/commands/build/validate-typescript.js +24 -0
  320. package/lib/commands/build/validate-typescript.js.map +1 -0
  321. package/lib/commands/build.d.ts +3 -0
  322. package/lib/commands/build.d.ts.map +1 -0
  323. package/lib/commands/build.js +55 -0
  324. package/lib/commands/build.js.map +1 -0
  325. package/lib/commands/dev/boot.d.ts +17 -0
  326. package/lib/commands/dev/boot.d.ts.map +1 -0
  327. package/lib/commands/dev/boot.js +55 -0
  328. package/lib/commands/dev/boot.js.map +1 -0
  329. package/lib/commands/dev/bundle-javascript.d.ts +4 -0
  330. package/lib/commands/dev/bundle-javascript.d.ts.map +1 -0
  331. package/lib/commands/dev/bundle-javascript.js +89 -0
  332. package/lib/commands/dev/bundle-javascript.js.map +1 -0
  333. package/lib/commands/dev/client-builder.d.ts +40 -0
  334. package/lib/commands/dev/client-builder.d.ts.map +1 -0
  335. package/lib/commands/dev/client-builder.js +111 -0
  336. package/lib/commands/dev/client-builder.js.map +1 -0
  337. package/lib/commands/dev/onboarding.d.ts +11 -0
  338. package/lib/commands/dev/onboarding.d.ts.map +1 -0
  339. package/lib/commands/dev/onboarding.js +43 -0
  340. package/lib/commands/dev/onboarding.js.map +1 -0
  341. package/lib/commands/dev/prepare-build-context.d.ts +45 -0
  342. package/lib/commands/dev/prepare-build-context.d.ts.map +1 -0
  343. package/lib/commands/dev/prepare-build-context.js +90 -0
  344. package/lib/commands/dev/prepare-build-context.js.map +1 -0
  345. package/lib/commands/dev/server-builder.d.ts +36 -0
  346. package/lib/commands/dev/server-builder.d.ts.map +1 -0
  347. package/lib/commands/dev/server-builder.js +95 -0
  348. package/lib/commands/dev/server-builder.js.map +1 -0
  349. package/lib/commands/dev/upload.d.ts +11 -0
  350. package/lib/commands/dev/upload.d.ts.map +1 -0
  351. package/lib/commands/dev/upload.js +41 -0
  352. package/lib/commands/dev/upload.js.map +1 -0
  353. package/lib/commands/dev/validate-typescript.d.ts +3 -0
  354. package/lib/commands/dev/validate-typescript.d.ts.map +1 -0
  355. package/lib/commands/dev/validate-typescript.js +71 -0
  356. package/lib/commands/dev/validate-typescript.js.map +1 -0
  357. package/lib/commands/dev.d.ts +11 -0
  358. package/lib/commands/dev.d.ts.map +1 -0
  359. package/lib/commands/dev.js +178 -0
  360. package/lib/commands/dev.js.map +1 -0
  361. package/lib/commands/init/create-project.d.ts +22 -0
  362. package/lib/commands/init/create-project.d.ts.map +1 -0
  363. package/lib/commands/init/create-project.js +43 -0
  364. package/lib/commands/init/create-project.js.map +1 -0
  365. package/lib/commands/init.d.ts +3 -0
  366. package/lib/commands/init.d.ts.map +1 -0
  367. package/lib/commands/init.js +88 -0
  368. package/lib/commands/init.js.map +1 -0
  369. package/lib/commands/login.d.ts +3 -0
  370. package/lib/commands/login.d.ts.map +1 -0
  371. package/lib/commands/login.js +22 -0
  372. package/lib/commands/login.js.map +1 -0
  373. package/lib/commands/logout.d.ts +3 -0
  374. package/lib/commands/logout.d.ts.map +1 -0
  375. package/lib/commands/logout.js +14 -0
  376. package/lib/commands/logout.js.map +1 -0
  377. package/lib/commands/logs/log-event.d.ts +25 -0
  378. package/lib/commands/logs/log-event.d.ts.map +1 -0
  379. package/lib/commands/logs/log-event.js +14 -0
  380. package/lib/commands/logs/log-event.js.map +1 -0
  381. package/lib/commands/logs/logs-buffer.d.ts +16 -0
  382. package/lib/commands/logs/logs-buffer.d.ts.map +1 -0
  383. package/lib/commands/logs/logs-buffer.js +52 -0
  384. package/lib/commands/logs/logs-buffer.js.map +1 -0
  385. package/lib/commands/logs/subscribe-to-logs.d.ts +19 -0
  386. package/lib/commands/logs/subscribe-to-logs.d.ts.map +1 -0
  387. package/lib/commands/logs/subscribe-to-logs.js +74 -0
  388. package/lib/commands/logs/subscribe-to-logs.js.map +1 -0
  389. package/lib/commands/logs.d.ts +11 -0
  390. package/lib/commands/logs.d.ts.map +1 -0
  391. package/lib/commands/logs.js +91 -0
  392. package/lib/commands/logs.js.map +1 -0
  393. package/lib/commands/version/create/bundle-javascript.d.ts +13 -0
  394. package/lib/commands/version/create/bundle-javascript.d.ts.map +1 -0
  395. package/lib/commands/version/create/bundle-javascript.js +33 -0
  396. package/lib/commands/version/create/bundle-javascript.js.map +1 -0
  397. package/lib/commands/version/create.d.ts +3 -0
  398. package/lib/commands/version/create.d.ts.map +1 -0
  399. package/lib/commands/version/create.js +125 -0
  400. package/lib/commands/version/create.js.map +1 -0
  401. package/lib/commands/version/index.d.ts +3 -0
  402. package/lib/commands/version/index.d.ts.map +1 -0
  403. package/lib/commands/version/index.js +7 -0
  404. package/lib/commands/version/index.js.map +1 -0
  405. package/lib/commands/version/list.d.ts +3 -0
  406. package/lib/commands/version/list.d.ts.map +1 -0
  407. package/lib/commands/version/list.js +68 -0
  408. package/lib/commands/version/list.js.map +1 -0
  409. package/lib/commands/whoami.d.ts +3 -0
  410. package/lib/commands/whoami.d.ts.map +1 -0
  411. package/lib/commands/whoami.js +33 -0
  412. package/lib/commands/whoami.js.map +1 -0
  413. package/lib/constants/hidden-auxx-directory.d.ts +2 -0
  414. package/lib/constants/hidden-auxx-directory.d.ts.map +1 -0
  415. package/lib/constants/hidden-auxx-directory.js +1 -0
  416. package/lib/constants/hidden-auxx-directory.js.map +1 -0
  417. package/lib/constants/settings-files.d.ts +3 -0
  418. package/lib/constants/settings-files.d.ts.map +1 -0
  419. package/lib/constants/settings-files.js +2 -0
  420. package/lib/constants/settings-files.js.map +1 -0
  421. package/lib/env.d.ts +9 -0
  422. package/lib/env.d.ts.map +1 -0
  423. package/lib/env.js +8 -0
  424. package/lib/env.js.map +1 -0
  425. package/lib/errors.d.ts +385 -0
  426. package/lib/errors.d.ts.map +1 -0
  427. package/lib/errors.js +173 -0
  428. package/lib/errors.js.map +1 -0
  429. package/lib/print-errors.d.ts +27 -0
  430. package/lib/print-errors.d.ts.map +1 -0
  431. package/lib/print-errors.js +151 -0
  432. package/lib/print-errors.js.map +1 -0
  433. package/lib/root/app.d.ts +52 -0
  434. package/lib/root/app.d.ts.map +1 -0
  435. package/lib/root/app.js +1 -0
  436. package/lib/root/app.js.map +1 -0
  437. package/lib/root/index.d.ts +8 -0
  438. package/lib/root/index.d.ts.map +1 -0
  439. package/lib/root/index.js +2 -0
  440. package/lib/root/index.js.map +1 -0
  441. package/lib/root/schema/array-node.d.ts +40 -0
  442. package/lib/root/schema/array-node.d.ts.map +1 -0
  443. package/lib/root/schema/array-node.js +25 -0
  444. package/lib/root/schema/array-node.js.map +1 -0
  445. package/lib/root/schema/base-node.d.ts +28 -0
  446. package/lib/root/schema/base-node.d.ts.map +1 -0
  447. package/lib/root/schema/base-node.js +49 -0
  448. package/lib/root/schema/base-node.js.map +1 -0
  449. package/lib/root/schema/boolean-node.d.ts +10 -0
  450. package/lib/root/schema/boolean-node.d.ts.map +1 -0
  451. package/lib/root/schema/boolean-node.js +15 -0
  452. package/lib/root/schema/boolean-node.js.map +1 -0
  453. package/lib/root/schema/index.d.ts +15 -0
  454. package/lib/root/schema/index.d.ts.map +1 -0
  455. package/lib/root/schema/index.js +7 -0
  456. package/lib/root/schema/index.js.map +1 -0
  457. package/lib/root/schema/number-node.d.ts +16 -0
  458. package/lib/root/schema/number-node.d.ts.map +1 -0
  459. package/lib/root/schema/number-node.js +15 -0
  460. package/lib/root/schema/number-node.js.map +1 -0
  461. package/lib/root/schema/select-node.d.ts +30 -0
  462. package/lib/root/schema/select-node.d.ts.map +1 -0
  463. package/lib/root/schema/select-node.js +26 -0
  464. package/lib/root/schema/select-node.js.map +1 -0
  465. package/lib/root/schema/string-node.d.ts +21 -0
  466. package/lib/root/schema/string-node.d.ts.map +1 -0
  467. package/lib/root/schema/string-node.js +45 -0
  468. package/lib/root/schema/string-node.js.map +1 -0
  469. package/lib/root/schema/struct-node.d.ts +25 -0
  470. package/lib/root/schema/struct-node.d.ts.map +1 -0
  471. package/lib/root/schema/struct-node.js +35 -0
  472. package/lib/root/schema/struct-node.js.map +1 -0
  473. package/lib/root/settings/base-node.d.ts +6 -0
  474. package/lib/root/settings/base-node.d.ts.map +1 -0
  475. package/lib/root/settings/base-node.js +3 -0
  476. package/lib/root/settings/base-node.js.map +1 -0
  477. package/lib/root/settings/index.d.ts +10 -0
  478. package/lib/root/settings/index.d.ts.map +1 -0
  479. package/lib/root/settings/index.js +9 -0
  480. package/lib/root/settings/index.js.map +1 -0
  481. package/lib/root/settings/settings-schema.d.ts +87 -0
  482. package/lib/root/settings/settings-schema.d.ts.map +1 -0
  483. package/lib/root/settings/settings-schema.js +122 -0
  484. package/lib/root/settings/settings-schema.js.map +1 -0
  485. package/lib/root/workflow/auxx-rule-node.d.ts +23 -0
  486. package/lib/root/workflow/auxx-rule-node.d.ts.map +1 -0
  487. package/lib/root/workflow/auxx-rule-node.js +55 -0
  488. package/lib/root/workflow/auxx-rule-node.js.map +1 -0
  489. package/lib/root/workflow/base-node.d.ts +28 -0
  490. package/lib/root/workflow/base-node.d.ts.map +1 -0
  491. package/lib/root/workflow/base-node.js +33 -0
  492. package/lib/root/workflow/base-node.js.map +1 -0
  493. package/lib/root/workflow/index.d.ts +47 -0
  494. package/lib/root/workflow/index.d.ts.map +1 -0
  495. package/lib/root/workflow/index.js +24 -0
  496. package/lib/root/workflow/index.js.map +1 -0
  497. package/lib/root/workflow/input-nodes.d.ts +134 -0
  498. package/lib/root/workflow/input-nodes.d.ts.map +1 -0
  499. package/lib/root/workflow/input-nodes.js +171 -0
  500. package/lib/root/workflow/input-nodes.js.map +1 -0
  501. package/lib/root/workflow/types.d.ts +131 -0
  502. package/lib/root/workflow/types.d.ts.map +1 -0
  503. package/lib/root/workflow/types.js +18 -0
  504. package/lib/root/workflow/types.js.map +1 -0
  505. package/lib/root/workflow/utils.d.ts +5 -0
  506. package/lib/root/workflow/utils.d.ts.map +1 -0
  507. package/lib/root/workflow/utils.js +1 -0
  508. package/lib/root/workflow/utils.js.map +1 -0
  509. package/lib/root/workflow/values/mock-context.d.ts +3 -0
  510. package/lib/root/workflow/values/mock-context.d.ts.map +1 -0
  511. package/lib/root/workflow/values/mock-context.js +35 -0
  512. package/lib/root/workflow/values/mock-context.js.map +1 -0
  513. package/lib/root/workflow/values/transform.d.ts +7 -0
  514. package/lib/root/workflow/values/transform.d.ts.map +1 -0
  515. package/lib/root/workflow/values/transform.js +36 -0
  516. package/lib/root/workflow/values/transform.js.map +1 -0
  517. package/lib/root/workflow/values/types.d.ts +22 -0
  518. package/lib/root/workflow/values/types.d.ts.map +1 -0
  519. package/lib/root/workflow/values/types.js +1 -0
  520. package/lib/root/workflow/values/types.js.map +1 -0
  521. package/lib/runtime/event-broker.d.ts +10 -0
  522. package/lib/runtime/event-broker.d.ts.map +1 -0
  523. package/lib/runtime/event-broker.js +42 -0
  524. package/lib/runtime/event-broker.js.map +1 -0
  525. package/lib/runtime/event-bus.d.ts +11 -0
  526. package/lib/runtime/event-bus.d.ts.map +1 -0
  527. package/lib/runtime/event-bus.js +28 -0
  528. package/lib/runtime/event-bus.js.map +1 -0
  529. package/lib/runtime/host.d.ts +37 -0
  530. package/lib/runtime/host.d.ts.map +1 -0
  531. package/lib/runtime/host.js +130 -0
  532. package/lib/runtime/host.js.map +1 -0
  533. package/lib/runtime/index.d.ts +5 -0
  534. package/lib/runtime/index.d.ts.map +1 -0
  535. package/lib/runtime/index.js +245 -0
  536. package/lib/runtime/index.js.map +1 -0
  537. package/lib/runtime/reconciler/host-config.d.ts +28 -0
  538. package/lib/runtime/reconciler/host-config.d.ts.map +1 -0
  539. package/lib/runtime/reconciler/host-config.js +202 -0
  540. package/lib/runtime/reconciler/host-config.js.map +1 -0
  541. package/lib/runtime/reconciler/instance-id.d.ts +3 -0
  542. package/lib/runtime/reconciler/instance-id.d.ts.map +1 -0
  543. package/lib/runtime/reconciler/instance-id.js +7 -0
  544. package/lib/runtime/reconciler/instance-id.js.map +1 -0
  545. package/lib/runtime/reconciler/reconciler.d.ts +4 -0
  546. package/lib/runtime/reconciler/reconciler.d.ts.map +1 -0
  547. package/lib/runtime/reconciler/reconciler.js +27 -0
  548. package/lib/runtime/reconciler/reconciler.js.map +1 -0
  549. package/lib/runtime/reconciler/sanitizer.d.ts +4 -0
  550. package/lib/runtime/reconciler/sanitizer.d.ts.map +1 -0
  551. package/lib/runtime/reconciler/sanitizer.js +26 -0
  552. package/lib/runtime/reconciler/sanitizer.js.map +1 -0
  553. package/lib/runtime/reconciler/tags/avatar-tag.d.ts +7 -0
  554. package/lib/runtime/reconciler/tags/avatar-tag.d.ts.map +1 -0
  555. package/lib/runtime/reconciler/tags/avatar-tag.js +12 -0
  556. package/lib/runtime/reconciler/tags/avatar-tag.js.map +1 -0
  557. package/lib/runtime/reconciler/tags/badge-tag.d.ts +7 -0
  558. package/lib/runtime/reconciler/tags/badge-tag.d.ts.map +1 -0
  559. package/lib/runtime/reconciler/tags/badge-tag.js +13 -0
  560. package/lib/runtime/reconciler/tags/badge-tag.js.map +1 -0
  561. package/lib/runtime/reconciler/tags/banner-tag.d.ts +7 -0
  562. package/lib/runtime/reconciler/tags/banner-tag.d.ts.map +1 -0
  563. package/lib/runtime/reconciler/tags/banner-tag.js +13 -0
  564. package/lib/runtime/reconciler/tags/banner-tag.js.map +1 -0
  565. package/lib/runtime/reconciler/tags/base-tag.d.ts +47 -0
  566. package/lib/runtime/reconciler/tags/base-tag.d.ts.map +1 -0
  567. package/lib/runtime/reconciler/tags/base-tag.js +97 -0
  568. package/lib/runtime/reconciler/tags/base-tag.js.map +1 -0
  569. package/lib/runtime/reconciler/tags/button-tag.d.ts +8 -0
  570. package/lib/runtime/reconciler/tags/button-tag.d.ts.map +1 -0
  571. package/lib/runtime/reconciler/tags/button-tag.js +30 -0
  572. package/lib/runtime/reconciler/tags/button-tag.js.map +1 -0
  573. package/lib/runtime/reconciler/tags/dialog-tag.d.ts +7 -0
  574. package/lib/runtime/reconciler/tags/dialog-tag.d.ts.map +1 -0
  575. package/lib/runtime/reconciler/tags/dialog-tag.js +13 -0
  576. package/lib/runtime/reconciler/tags/dialog-tag.js.map +1 -0
  577. package/lib/runtime/reconciler/tags/form-field-tag.d.ts +7 -0
  578. package/lib/runtime/reconciler/tags/form-field-tag.d.ts.map +1 -0
  579. package/lib/runtime/reconciler/tags/form-field-tag.js +25 -0
  580. package/lib/runtime/reconciler/tags/form-field-tag.js.map +1 -0
  581. package/lib/runtime/reconciler/tags/form-submit-tag.d.ts +7 -0
  582. package/lib/runtime/reconciler/tags/form-submit-tag.d.ts.map +1 -0
  583. package/lib/runtime/reconciler/tags/form-submit-tag.js +17 -0
  584. package/lib/runtime/reconciler/tags/form-submit-tag.js.map +1 -0
  585. package/lib/runtime/reconciler/tags/form-tag.d.ts +10 -0
  586. package/lib/runtime/reconciler/tags/form-tag.d.ts.map +1 -0
  587. package/lib/runtime/reconciler/tags/form-tag.js +81 -0
  588. package/lib/runtime/reconciler/tags/form-tag.js.map +1 -0
  589. package/lib/runtime/reconciler/tags/index.d.ts +34 -0
  590. package/lib/runtime/reconciler/tags/index.d.ts.map +1 -0
  591. package/lib/runtime/reconciler/tags/index.js +99 -0
  592. package/lib/runtime/reconciler/tags/index.js.map +1 -0
  593. package/lib/runtime/reconciler/tags/separator-tag.d.ts +7 -0
  594. package/lib/runtime/reconciler/tags/separator-tag.d.ts.map +1 -0
  595. package/lib/runtime/reconciler/tags/separator-tag.js +12 -0
  596. package/lib/runtime/reconciler/tags/separator-tag.js.map +1 -0
  597. package/lib/runtime/reconciler/tags/text-block-tag.d.ts +7 -0
  598. package/lib/runtime/reconciler/tags/text-block-tag.d.ts.map +1 -0
  599. package/lib/runtime/reconciler/tags/text-block-tag.js +13 -0
  600. package/lib/runtime/reconciler/tags/text-block-tag.js.map +1 -0
  601. package/lib/runtime/reconciler/tags/typography-tag.d.ts +17 -0
  602. package/lib/runtime/reconciler/tags/typography-tag.d.ts.map +1 -0
  603. package/lib/runtime/reconciler/tags/typography-tag.js +36 -0
  604. package/lib/runtime/reconciler/tags/typography-tag.js.map +1 -0
  605. package/lib/runtime/reconciler/tags/workflow-alert-tag.d.ts +7 -0
  606. package/lib/runtime/reconciler/tags/workflow-alert-tag.d.ts.map +1 -0
  607. package/lib/runtime/reconciler/tags/workflow-alert-tag.js +17 -0
  608. package/lib/runtime/reconciler/tags/workflow-alert-tag.js.map +1 -0
  609. package/lib/runtime/reconciler/tags/workflow-badge-tag.d.ts +7 -0
  610. package/lib/runtime/reconciler/tags/workflow-badge-tag.d.ts.map +1 -0
  611. package/lib/runtime/reconciler/tags/workflow-badge-tag.js +16 -0
  612. package/lib/runtime/reconciler/tags/workflow-badge-tag.js.map +1 -0
  613. package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.d.ts +8 -0
  614. package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.d.ts.map +1 -0
  615. package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.js +25 -0
  616. package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.js.map +1 -0
  617. package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.d.ts +9 -0
  618. package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.d.ts.map +1 -0
  619. package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.js +20 -0
  620. package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.js.map +1 -0
  621. package/lib/runtime/reconciler/tags/workflow-input-editor-tag.d.ts +8 -0
  622. package/lib/runtime/reconciler/tags/workflow-input-editor-tag.d.ts.map +1 -0
  623. package/lib/runtime/reconciler/tags/workflow-input-editor-tag.js +31 -0
  624. package/lib/runtime/reconciler/tags/workflow-input-editor-tag.js.map +1 -0
  625. package/lib/runtime/reconciler/tags/workflow-input-group-tag.d.ts +7 -0
  626. package/lib/runtime/reconciler/tags/workflow-input-group-tag.d.ts.map +1 -0
  627. package/lib/runtime/reconciler/tags/workflow-input-group-tag.js +16 -0
  628. package/lib/runtime/reconciler/tags/workflow-input-group-tag.js.map +1 -0
  629. package/lib/runtime/reconciler/tags/workflow-node-handle-tag.d.ts +8 -0
  630. package/lib/runtime/reconciler/tags/workflow-node-handle-tag.d.ts.map +1 -0
  631. package/lib/runtime/reconciler/tags/workflow-node-handle-tag.js +24 -0
  632. package/lib/runtime/reconciler/tags/workflow-node-handle-tag.js.map +1 -0
  633. package/lib/runtime/reconciler/tags/workflow-node-row-tag.d.ts +7 -0
  634. package/lib/runtime/reconciler/tags/workflow-node-row-tag.d.ts.map +1 -0
  635. package/lib/runtime/reconciler/tags/workflow-node-row-tag.js +17 -0
  636. package/lib/runtime/reconciler/tags/workflow-node-row-tag.js.map +1 -0
  637. package/lib/runtime/reconciler/tags/workflow-node-tag.d.ts +7 -0
  638. package/lib/runtime/reconciler/tags/workflow-node-tag.d.ts.map +1 -0
  639. package/lib/runtime/reconciler/tags/workflow-node-tag.js +15 -0
  640. package/lib/runtime/reconciler/tags/workflow-node-tag.js.map +1 -0
  641. package/lib/runtime/reconciler/tags/workflow-node-text-tag.d.ts +7 -0
  642. package/lib/runtime/reconciler/tags/workflow-node-text-tag.d.ts.map +1 -0
  643. package/lib/runtime/reconciler/tags/workflow-node-text-tag.js +15 -0
  644. package/lib/runtime/reconciler/tags/workflow-node-text-tag.js.map +1 -0
  645. package/lib/runtime/reconciler/tags/workflow-number-input-tag.d.ts +8 -0
  646. package/lib/runtime/reconciler/tags/workflow-number-input-tag.d.ts.map +1 -0
  647. package/lib/runtime/reconciler/tags/workflow-number-input-tag.js +29 -0
  648. package/lib/runtime/reconciler/tags/workflow-number-input-tag.js.map +1 -0
  649. package/lib/runtime/reconciler/tags/workflow-panel-tag.d.ts +7 -0
  650. package/lib/runtime/reconciler/tags/workflow-panel-tag.d.ts.map +1 -0
  651. package/lib/runtime/reconciler/tags/workflow-panel-tag.js +15 -0
  652. package/lib/runtime/reconciler/tags/workflow-panel-tag.js.map +1 -0
  653. package/lib/runtime/reconciler/tags/workflow-section-tag.d.ts +8 -0
  654. package/lib/runtime/reconciler/tags/workflow-section-tag.d.ts.map +1 -0
  655. package/lib/runtime/reconciler/tags/workflow-section-tag.js +25 -0
  656. package/lib/runtime/reconciler/tags/workflow-section-tag.js.map +1 -0
  657. package/lib/runtime/reconciler/tags/workflow-select-input-tag.d.ts +8 -0
  658. package/lib/runtime/reconciler/tags/workflow-select-input-tag.d.ts.map +1 -0
  659. package/lib/runtime/reconciler/tags/workflow-select-input-tag.js +27 -0
  660. package/lib/runtime/reconciler/tags/workflow-select-input-tag.js.map +1 -0
  661. package/lib/runtime/reconciler/tags/workflow-separator-tag.d.ts +7 -0
  662. package/lib/runtime/reconciler/tags/workflow-separator-tag.d.ts.map +1 -0
  663. package/lib/runtime/reconciler/tags/workflow-separator-tag.js +15 -0
  664. package/lib/runtime/reconciler/tags/workflow-separator-tag.js.map +1 -0
  665. package/lib/runtime/reconciler/tags/workflow-string-input-tag.d.ts +8 -0
  666. package/lib/runtime/reconciler/tags/workflow-string-input-tag.d.ts.map +1 -0
  667. package/lib/runtime/reconciler/tags/workflow-string-input-tag.js +28 -0
  668. package/lib/runtime/reconciler/tags/workflow-string-input-tag.js.map +1 -0
  669. package/lib/runtime/reconciler/tags/workflow-variable-input-tag.d.ts +8 -0
  670. package/lib/runtime/reconciler/tags/workflow-variable-input-tag.d.ts.map +1 -0
  671. package/lib/runtime/reconciler/tags/workflow-variable-input-tag.js +30 -0
  672. package/lib/runtime/reconciler/tags/workflow-variable-input-tag.js.map +1 -0
  673. package/lib/runtime/reconciler/types.d.ts +18 -0
  674. package/lib/runtime/reconciler/types.d.ts.map +1 -0
  675. package/lib/runtime/reconciler/types.js +1 -0
  676. package/lib/runtime/reconciler/types.js.map +1 -0
  677. package/lib/runtime/register-event-handler.d.ts +3 -0
  678. package/lib/runtime/register-event-handler.d.ts.map +1 -0
  679. package/lib/runtime/register-event-handler.js +44 -0
  680. package/lib/runtime/register-event-handler.js.map +1 -0
  681. package/lib/runtime/run-server-function.d.ts +2 -0
  682. package/lib/runtime/run-server-function.d.ts.map +1 -0
  683. package/lib/runtime/run-server-function.js +56 -0
  684. package/lib/runtime/run-server-function.js.map +1 -0
  685. package/lib/runtime/surfaces.d.ts +54 -0
  686. package/lib/runtime/surfaces.d.ts.map +1 -0
  687. package/lib/runtime/surfaces.js +161 -0
  688. package/lib/runtime/surfaces.js.map +1 -0
  689. package/lib/runtime/workflow.d.ts +42 -0
  690. package/lib/runtime/workflow.d.ts.map +1 -0
  691. package/lib/runtime/workflow.js +385 -0
  692. package/lib/runtime/workflow.js.map +1 -0
  693. package/lib/runtime/wrap-event-handler.d.ts +6 -0
  694. package/lib/runtime/wrap-event-handler.d.ts.map +1 -0
  695. package/lib/runtime/wrap-event-handler.js +26 -0
  696. package/lib/runtime/wrap-event-handler.js.map +1 -0
  697. package/lib/server/auth.d.ts +10 -0
  698. package/lib/server/auth.d.ts.map +1 -0
  699. package/lib/server/auth.js +3 -0
  700. package/lib/server/auth.js.map +1 -0
  701. package/lib/server/connections.d.ts +20 -0
  702. package/lib/server/connections.d.ts.map +1 -0
  703. package/lib/server/connections.js +3 -0
  704. package/lib/server/connections.js.map +1 -0
  705. package/lib/server/database.d.ts +7 -0
  706. package/lib/server/database.d.ts.map +1 -0
  707. package/lib/server/database.js +3 -0
  708. package/lib/server/database.js.map +1 -0
  709. package/lib/server/fetch.d.ts +14 -0
  710. package/lib/server/fetch.d.ts.map +1 -0
  711. package/lib/server/fetch.js +3 -0
  712. package/lib/server/fetch.js.map +1 -0
  713. package/lib/server/index.d.ts +9 -0
  714. package/lib/server/index.d.ts.map +1 -0
  715. package/lib/server/index.js +3 -0
  716. package/lib/server/index.js.map +1 -0
  717. package/lib/server/settings.d.ts +5 -0
  718. package/lib/server/settings.d.ts.map +1 -0
  719. package/lib/server/settings.js +3 -0
  720. package/lib/server/settings.js.map +1 -0
  721. package/lib/server/storage.d.ts +4 -0
  722. package/lib/server/storage.d.ts.map +1 -0
  723. package/lib/server/storage.js +3 -0
  724. package/lib/server/storage.js.map +1 -0
  725. package/lib/server/webhooks.d.ts +18 -0
  726. package/lib/server/webhooks.d.ts.map +1 -0
  727. package/lib/server/webhooks.js +3 -0
  728. package/lib/server/webhooks.js.map +1 -0
  729. package/lib/server/workflow/index.d.ts +29 -0
  730. package/lib/server/workflow/index.d.ts.map +1 -0
  731. package/lib/server/workflow/index.js +3 -0
  732. package/lib/server/workflow/index.js.map +1 -0
  733. package/lib/shared/errors.d.ts +32 -0
  734. package/lib/shared/errors.d.ts.map +1 -0
  735. package/lib/shared/errors.js +62 -0
  736. package/lib/shared/errors.js.map +1 -0
  737. package/lib/shared/fetchable.d.ts +26 -0
  738. package/lib/shared/fetchable.d.ts.map +1 -0
  739. package/lib/shared/fetchable.js +33 -0
  740. package/lib/shared/fetchable.js.map +1 -0
  741. package/lib/shared/index.d.ts +4 -0
  742. package/lib/shared/index.d.ts.map +1 -0
  743. package/lib/shared/index.js +3 -0
  744. package/lib/shared/index.js.map +1 -0
  745. package/lib/shared/validation.d.ts +91 -0
  746. package/lib/shared/validation.d.ts.map +1 -0
  747. package/lib/shared/validation.js +46 -0
  748. package/lib/shared/validation.js.map +1 -0
  749. package/lib/spinners/determine-organization.spinner.d.ts +12 -0
  750. package/lib/spinners/determine-organization.spinner.d.ts.map +1 -0
  751. package/lib/spinners/determine-organization.spinner.js +41 -0
  752. package/lib/spinners/determine-organization.spinner.js.map +1 -0
  753. package/lib/spinners/get-app-info.spinner.d.ts +13 -0
  754. package/lib/spinners/get-app-info.spinner.d.ts.map +1 -0
  755. package/lib/spinners/get-app-info.spinner.js +7 -0
  756. package/lib/spinners/get-app-info.spinner.js.map +1 -0
  757. package/lib/spinners/get-app-slug-from-package-json.d.ts +3 -0
  758. package/lib/spinners/get-app-slug-from-package-json.d.ts.map +1 -0
  759. package/lib/spinners/get-app-slug-from-package-json.js +27 -0
  760. package/lib/spinners/get-app-slug-from-package-json.js.map +1 -0
  761. package/lib/spinners/get-versions.spinner.d.ts +14 -0
  762. package/lib/spinners/get-versions.spinner.d.ts.map +1 -0
  763. package/lib/spinners/get-versions.spinner.js +5 -0
  764. package/lib/spinners/get-versions.spinner.js.map +1 -0
  765. package/lib/types/result.d.ts +17 -0
  766. package/lib/types/result.d.ts.map +1 -0
  767. package/lib/types/result.js +12 -0
  768. package/lib/types/result.js.map +1 -0
  769. package/lib/util/add-auxx-hidden-directory-to-ts-config.d.ts +4 -0
  770. package/lib/util/add-auxx-hidden-directory-to-ts-config.d.ts.map +1 -0
  771. package/lib/util/add-auxx-hidden-directory-to-ts-config.js +37 -0
  772. package/lib/util/add-auxx-hidden-directory-to-ts-config.js.map +1 -0
  773. package/lib/util/assert-app-settings.d.ts +4 -0
  774. package/lib/util/assert-app-settings.d.ts.map +1 -0
  775. package/lib/util/assert-app-settings.js +13 -0
  776. package/lib/util/assert-app-settings.js.map +1 -0
  777. package/lib/util/calculate-bundle-sha.d.ts +3 -0
  778. package/lib/util/calculate-bundle-sha.d.ts.map +1 -0
  779. package/lib/util/calculate-bundle-sha.js +8 -0
  780. package/lib/util/calculate-bundle-sha.js.map +1 -0
  781. package/lib/util/compile-and-extract-settings.d.ts +3 -0
  782. package/lib/util/compile-and-extract-settings.d.ts.map +1 -0
  783. package/lib/util/compile-and-extract-settings.js +25 -0
  784. package/lib/util/compile-and-extract-settings.js.map +1 -0
  785. package/lib/util/compile-settings-schema.d.ts +12 -0
  786. package/lib/util/compile-settings-schema.d.ts.map +1 -0
  787. package/lib/util/compile-settings-schema.js +53 -0
  788. package/lib/util/compile-settings-schema.js.map +1 -0
  789. package/lib/util/copy-with-transform.d.ts +3 -0
  790. package/lib/util/copy-with-transform.d.ts.map +1 -0
  791. package/lib/util/copy-with-transform.js +56 -0
  792. package/lib/util/copy-with-transform.js.map +1 -0
  793. package/lib/util/create-directory.d.ts +3 -0
  794. package/lib/util/create-directory.d.ts.map +1 -0
  795. package/lib/util/create-directory.js +27 -0
  796. package/lib/util/create-directory.js.map +1 -0
  797. package/lib/util/ensure-app-entry-point.d.ts +7 -0
  798. package/lib/util/ensure-app-entry-point.d.ts.map +1 -0
  799. package/lib/util/ensure-app-entry-point.js +30 -0
  800. package/lib/util/ensure-app-entry-point.js.map +1 -0
  801. package/lib/util/error-reporting.d.ts +15 -0
  802. package/lib/util/error-reporting.d.ts.map +1 -0
  803. package/lib/util/error-reporting.js +51 -0
  804. package/lib/util/error-reporting.js.map +1 -0
  805. package/lib/util/exit-with-missing-app-settings.d.ts +2 -0
  806. package/lib/util/exit-with-missing-app-settings.d.ts.map +1 -0
  807. package/lib/util/exit-with-missing-app-settings.js +5 -0
  808. package/lib/util/exit-with-missing-app-settings.js.map +1 -0
  809. package/lib/util/exit-with-missing-entry-point.d.ts +2 -0
  810. package/lib/util/exit-with-missing-entry-point.d.ts.map +1 -0
  811. package/lib/util/exit-with-missing-entry-point.js +5 -0
  812. package/lib/util/exit-with-missing-entry-point.js.map +1 -0
  813. package/lib/util/extract-settings-schema.d.ts +19 -0
  814. package/lib/util/extract-settings-schema.d.ts.map +1 -0
  815. package/lib/util/extract-settings-schema.js +53 -0
  816. package/lib/util/extract-settings-schema.js.map +1 -0
  817. package/lib/util/find-available-port.d.ts +2 -0
  818. package/lib/util/find-available-port.d.ts.map +1 -0
  819. package/lib/util/find-available-port.js +22 -0
  820. package/lib/util/find-available-port.js.map +1 -0
  821. package/lib/util/find-surface-exports/find-surface-exports.d.ts +3 -0
  822. package/lib/util/find-surface-exports/find-surface-exports.d.ts.map +1 -0
  823. package/lib/util/find-surface-exports/find-surface-exports.js +71 -0
  824. package/lib/util/find-surface-exports/find-surface-exports.js.map +1 -0
  825. package/lib/util/find-surface-exports/generate-random-file-name.d.ts +2 -0
  826. package/lib/util/find-surface-exports/generate-random-file-name.d.ts.map +1 -0
  827. package/lib/util/find-surface-exports/generate-random-file-name.js +3 -0
  828. package/lib/util/find-surface-exports/generate-random-file-name.js.map +1 -0
  829. package/lib/util/find-surface-exports/parse-file-exports.d.ts +18 -0
  830. package/lib/util/find-surface-exports/parse-file-exports.d.ts.map +1 -0
  831. package/lib/util/find-surface-exports/parse-file-exports.js +105 -0
  832. package/lib/util/find-surface-exports/parse-file-exports.js.map +1 -0
  833. package/lib/util/find-surface-exports/surface-types.d.ts +3 -0
  834. package/lib/util/find-surface-exports/surface-types.d.ts.map +1 -0
  835. package/lib/util/find-surface-exports/surface-types.js +83 -0
  836. package/lib/util/find-surface-exports/surface-types.js.map +1 -0
  837. package/lib/util/find-surface-exports/walk-dir.d.ts +2 -0
  838. package/lib/util/find-surface-exports/walk-dir.d.ts.map +1 -0
  839. package/lib/util/find-surface-exports/walk-dir.js +25 -0
  840. package/lib/util/find-surface-exports/walk-dir.js.map +1 -0
  841. package/lib/util/generate-app-entry-point.d.ts +4 -0
  842. package/lib/util/generate-app-entry-point.d.ts.map +1 -0
  843. package/lib/util/generate-app-entry-point.js +116 -0
  844. package/lib/util/generate-app-entry-point.js.map +1 -0
  845. package/lib/util/generate-gitignore.d.ts +4 -0
  846. package/lib/util/generate-gitignore.d.ts.map +1 -0
  847. package/lib/util/generate-gitignore.js +39 -0
  848. package/lib/util/generate-gitignore.js.map +1 -0
  849. package/lib/util/generate-settings-files.d.ts +2 -0
  850. package/lib/util/generate-settings-files.d.ts.map +1 -0
  851. package/lib/util/generate-settings-files.js +68 -0
  852. package/lib/util/generate-settings-files.js.map +1 -0
  853. package/lib/util/get-app-entry-point.d.ts +5 -0
  854. package/lib/util/get-app-entry-point.d.ts.map +1 -0
  855. package/lib/util/get-app-entry-point.js +18 -0
  856. package/lib/util/get-app-entry-point.js.map +1 -0
  857. package/lib/util/get-package-manager-command.d.ts +2 -0
  858. package/lib/util/get-package-manager-command.d.ts.map +1 -0
  859. package/lib/util/get-package-manager-command.js +9 -0
  860. package/lib/util/get-package-manager-command.js.map +1 -0
  861. package/lib/util/hard-exit.d.ts +2 -0
  862. package/lib/util/hard-exit.d.ts.map +1 -0
  863. package/lib/util/hard-exit.js +5 -0
  864. package/lib/util/hard-exit.js.map +1 -0
  865. package/lib/util/listen-for-key.d.ts +4 -0
  866. package/lib/util/listen-for-key.d.ts.map +1 -0
  867. package/lib/util/listen-for-key.js +28 -0
  868. package/lib/util/listen-for-key.js.map +1 -0
  869. package/lib/util/load-auxx-cli-version.d.ts +3 -0
  870. package/lib/util/load-auxx-cli-version.d.ts.map +1 -0
  871. package/lib/util/load-auxx-cli-version.js +61 -0
  872. package/lib/util/load-auxx-cli-version.js.map +1 -0
  873. package/lib/util/load-env.d.ts +2 -0
  874. package/lib/util/load-env.d.ts.map +1 -0
  875. package/lib/util/load-env.js +23 -0
  876. package/lib/util/load-env.js.map +1 -0
  877. package/lib/util/print-logo.d.ts +2 -0
  878. package/lib/util/print-logo.d.ts.map +1 -0
  879. package/lib/util/print-logo.js +5 -0
  880. package/lib/util/print-logo.js.map +1 -0
  881. package/lib/util/print-message.d.ts +2 -0
  882. package/lib/util/print-message.d.ts.map +1 -0
  883. package/lib/util/print-message.js +3 -0
  884. package/lib/util/print-message.js.map +1 -0
  885. package/lib/util/spinner.d.ts +3 -0
  886. package/lib/util/spinner.d.ts.map +1 -0
  887. package/lib/util/spinner.js +61 -0
  888. package/lib/util/spinner.js.map +1 -0
  889. package/lib/util/to-camel-case.d.ts +2 -0
  890. package/lib/util/to-camel-case.d.ts.map +1 -0
  891. package/lib/util/to-camel-case.js +13 -0
  892. package/lib/util/to-camel-case.js.map +1 -0
  893. package/lib/util/typescript.d.ts +49 -0
  894. package/lib/util/typescript.d.ts.map +1 -0
  895. package/lib/util/typescript.js +122 -0
  896. package/lib/util/typescript.js.map +1 -0
  897. package/lib/util/upload-bundle.d.ts +3 -0
  898. package/lib/util/upload-bundle.d.ts.map +1 -0
  899. package/lib/util/upload-bundle.js +29 -0
  900. package/lib/util/upload-bundle.js.map +1 -0
  901. package/lint.cjs +17 -0
  902. package/package.json +130 -0
  903. package/root.d.ts +2 -0
  904. package/server.d.ts +2 -0
  905. package/template/.prettierrc.json +7 -0
  906. package/template/README.md +168 -0
  907. package/template/package.json +27 -0
  908. package/template/src/app.settings.ts +166 -0
  909. package/template/src/app.tsx +152 -0
  910. package/template/src/assets/icon.png +0 -0
  911. package/template/src/contact-form-action.tsx +123 -0
  912. package/template/src/events/connection-added.event.ts +34 -0
  913. package/template/src/events/connection-removed.event.ts +25 -0
  914. package/template/src/form-examples.tsx +359 -0
  915. package/template/src/get-user.server.ts +62 -0
  916. package/template/src/hello-world-action.tsx +42 -0
  917. package/template/src/hello-world-dialog.tsx +45 -0
  918. package/template/src/send-email.server.ts +84 -0
  919. package/template/src/send-email.workflow.tsx +204 -0
  920. package/template/src/test-user.tsx +21 -0
  921. package/template/src/webhooks/example.webhook.ts +14 -0
  922. package/template/sst-env.d.ts +10 -0
  923. package/template/tsconfig.json +42 -0
package/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # @auxx/sdk
2
+
3
+ > ⚠️ This package is experimental and not yet ready for production use.
4
+
5
+ CLI tool and SDK for creating Auxx apps. Build custom integrations, workflows, and UI extensions for the Auxx platform.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ # Install globally
11
+ npm install -g @auxx/sdk
12
+
13
+ # Or use with npx
14
+ npx @auxx/sdk
15
+ ```
16
+
17
+ ## Quick Start
18
+
19
+ ```bash
20
+ # Create a new app
21
+ auxx init my-app
22
+
23
+ # Start development mode
24
+ cd my-app
25
+ auxx dev
26
+
27
+ # Build for production
28
+ auxx build
29
+ ```
30
+
31
+ ## Commands
32
+
33
+ ### `auxx init <app-slug>`
34
+ Initialize a new Auxx app project with the specified slug.
35
+
36
+ ### `auxx dev [--workspace <slug>]`
37
+ Start development mode with hot reload. Optionally specify a workspace for testing.
38
+
39
+ ### `auxx build`
40
+ Build your app for production deployment.
41
+
42
+ ### `auxx login`
43
+ Authenticate with your Auxx developer account.
44
+
45
+ ### `auxx logout`
46
+ Log out and remove stored credentials.
47
+
48
+ ### `auxx whoami`
49
+ Display information about the currently authenticated user.
50
+
51
+ ### `auxx logs`
52
+ Stream real-time logs from your running app.
53
+
54
+ ### `auxx version`
55
+ Manage app version lifecycle (create, promote, etc.).
56
+
57
+ ## Package Exports
58
+
59
+ The SDK provides multiple entry points for different use cases:
60
+
61
+ ```typescript
62
+ // Client-side SDK (React components, hooks)
63
+ import { useWorkflow, Form, Button } from '@auxx/sdk/client';
64
+
65
+ // Server-side SDK (workflow execution, API access)
66
+ import { WorkflowContext } from '@auxx/sdk/server';
67
+
68
+ // Type definitions
69
+ import type { AppManifest } from '@auxx/sdk/global';
70
+ ```
71
+
72
+ ## Development
73
+
74
+ This package is part of the Auxx monorepo and uses pnpm workspaces.
75
+
76
+ ```bash
77
+ # Install dependencies
78
+ pnpm install
79
+
80
+ # Build the SDK
81
+ pnpm --filter @auxx/sdk run build
82
+
83
+ # Watch mode for development
84
+ pnpm --filter @auxx/sdk run dev
85
+
86
+ # Run tests
87
+ pnpm --filter @auxx/sdk run test
88
+
89
+ # Lint code
90
+ pnpm --filter @auxx/sdk run lint
91
+ ```
92
+
93
+ ## License
94
+
95
+ MIT
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // packages/sdk/client.d.ts
2
+ export * from './lib/client'
package/global.d.ts ADDED
@@ -0,0 +1,69 @@
1
+ // packages/sdk/global.d.ts
2
+
3
+ /**
4
+ * Global runtime SDK types injected by the Auxx platform
5
+ */
6
+
7
+ declare global {
8
+ interface Window {
9
+ /**
10
+ * Client SDK implementation provided by the Auxx platform
11
+ */
12
+ AUXX_CLIENT_EXTENSION_SDK: {
13
+ // Dialogs
14
+ showDialog: (options: any) => Promise<void>
15
+ closeDialog: () => Promise<void>
16
+
17
+ // Alerts
18
+ alert: (options: any) => Promise<void>
19
+ confirm: (options: any) => Promise<boolean>
20
+
21
+ // Toasts
22
+ showToast: (options: any) => void
23
+
24
+ // Navigation
25
+ navigateTo: (path: string) => void
26
+ openRecord: (recordId: string) => void
27
+ openUrl: (url: string, newTab?: boolean) => void
28
+ }
29
+
30
+ /**
31
+ * Root SDK (if needed for runtime type checking)
32
+ */
33
+ AUXX_ROOT_SDK: Record<string, any>
34
+
35
+ /**
36
+ * React library made available globally
37
+ */
38
+ React: typeof import('react')
39
+ }
40
+
41
+ namespace NodeJS {
42
+ interface Global {
43
+ /**
44
+ * Server SDK implementation provided by the Auxx platform
45
+ */
46
+ AUXX_SERVER_SDK: {
47
+ // Database
48
+ query: (options: any) => Promise<any[]>
49
+ queryOne: (options: any) => Promise<any | null>
50
+
51
+ // External API
52
+ fetch: (options: any) => Promise<any>
53
+
54
+ // Auth
55
+ getCurrentUser: () => Promise<any>
56
+ getApiToken: () => Promise<string>
57
+
58
+ // Storage
59
+ storage: {
60
+ get: (key: string) => Promise<string | null>
61
+ set: (key: string, value: string) => Promise<void>
62
+ delete: (key: string) => Promise<void>
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ export {}
@@ -0,0 +1,250 @@
1
+ import { type FetcherError } from '../errors.js';
2
+ import type { Result } from '../types/result.js';
3
+ import type { DotenvParseOutput } from 'dotenv';
4
+ export type ApiError = {
5
+ code: 'WHOAMI_ERROR';
6
+ error: FetcherError;
7
+ } | {
8
+ code: 'FETCH_APPS_ERROR';
9
+ error: FetcherError;
10
+ } | {
11
+ code: 'FETCH_APP_INFO_ERROR';
12
+ error: FetcherError;
13
+ } | {
14
+ code: 'CREATE_VERSION_ERROR';
15
+ error: FetcherError;
16
+ } | {
17
+ code: 'CREATE_DEV_VERSION_ERROR';
18
+ error: FetcherError;
19
+ } | {
20
+ code: 'COMPLETE_BUNDLE_UPLOAD_ERROR';
21
+ error: FetcherError;
22
+ } | {
23
+ code: 'COMPLETE_PROD_BUNDLE_UPLOAD_ERROR';
24
+ error: FetcherError;
25
+ } | {
26
+ code: 'FETCH_VERSIONS_ERROR';
27
+ error: FetcherError;
28
+ } | {
29
+ code: 'FETCH_INSTALLATION_ERROR';
30
+ error: FetcherError;
31
+ } | {
32
+ code: 'GET_TOKEN_ERROR';
33
+ error: FetcherError;
34
+ } | {
35
+ code: 'REFRESH_TOKEN_ERROR';
36
+ error: FetcherError;
37
+ } | {
38
+ code: 'FETCH_ORGANIZATIONS_ERROR';
39
+ error: FetcherError;
40
+ } | {
41
+ code: 'FETCH_APP_LOGS_ERROR';
42
+ error: FetcherError;
43
+ };
44
+ declare class ApiImpl {
45
+ private fetcher;
46
+ constructor();
47
+ whoami(): Promise<import("../errors.js").Errored<{
48
+ code: string;
49
+ error: FetcherError;
50
+ }> | import("../errors.js").Complete<{
51
+ userId: string;
52
+ userEmail: string;
53
+ userName: string | null;
54
+ userFirstName?: string | null | undefined;
55
+ userLastName?: string | null | undefined;
56
+ userImage?: string | null | undefined;
57
+ }>>;
58
+ fetchApps(): Promise<import("../errors.js").Errored<{
59
+ code: string;
60
+ error: FetcherError;
61
+ }> | import("../errors.js").Complete<{
62
+ id: string;
63
+ slug: string;
64
+ title: string;
65
+ developerAccountId: string;
66
+ createdAt: string | Date;
67
+ updatedAt: string | Date;
68
+ description?: string | null | undefined;
69
+ avatarId?: string | null | undefined;
70
+ avatarUrl?: string | null | undefined;
71
+ category?: string | null | undefined;
72
+ }[]>>;
73
+ fetchAppInfo(appSlug: string): Promise<import("../errors.js").Complete<{
74
+ id: string;
75
+ slug: string;
76
+ title: string;
77
+ developerAccountId: string;
78
+ createdAt: string | Date;
79
+ updatedAt: string | Date;
80
+ description?: string | null | undefined;
81
+ avatarId?: string | null | undefined;
82
+ avatarUrl?: string | null | undefined;
83
+ category?: string | null | undefined;
84
+ }> | import("../errors.js").Errored<{
85
+ code: string;
86
+ error: FetcherError;
87
+ }>>;
88
+ exchangeToken({ code, codeVerifier, redirectUri, clientId, }: {
89
+ code: string;
90
+ codeVerifier: string;
91
+ redirectUri: string;
92
+ clientId: string;
93
+ }): Promise<Result<any, ApiError>>;
94
+ refreshToken({ refreshToken, clientId }: {
95
+ refreshToken: string;
96
+ clientId: string;
97
+ }): Promise<import("../errors.js").Errored<{
98
+ code: string;
99
+ error: FetcherError;
100
+ }> | import("../errors.js").Complete<{
101
+ access_token: string;
102
+ refresh_token: string;
103
+ token_type: string;
104
+ expires_in: number;
105
+ }>>;
106
+ getUserInfo(): Promise<import("../errors.js").Errored<{
107
+ code: string;
108
+ error: FetcherError;
109
+ }> | import("../errors.js").Complete<{
110
+ sub: string;
111
+ email: string;
112
+ name?: string | null | undefined;
113
+ given_name?: string | null | undefined;
114
+ family_name?: string | null | undefined;
115
+ picture?: string | null | undefined;
116
+ email_verified?: boolean | undefined;
117
+ }>>;
118
+ fetchOrganizations(): Promise<import("../errors.js").Complete<{
119
+ name: string;
120
+ id: string;
121
+ handle: string;
122
+ logoUrl: string | null;
123
+ }[]> | import("../errors.js").Errored<{
124
+ code: string;
125
+ error: FetcherError;
126
+ }>>;
127
+ createVersion({ appId, major, cliVersion, }: {
128
+ appId: string;
129
+ major: number;
130
+ cliVersion: string;
131
+ }): Promise<import("../errors.js").Errored<{
132
+ code: string;
133
+ error: Error;
134
+ }> | import("../errors.js").Complete<{
135
+ major: number;
136
+ minor: number;
137
+ versionId: string;
138
+ appId: string;
139
+ bundle: {
140
+ id: string;
141
+ clientBundleUploadUrl: string;
142
+ serverBundleUploadUrl: string;
143
+ bundleSha?: string | undefined;
144
+ };
145
+ }>>;
146
+ completeBundleUpload({ appId, versionId, bundleId, bundleSha, settingsSchema, }: {
147
+ appId: string;
148
+ versionId: string;
149
+ bundleId: string;
150
+ bundleSha: string;
151
+ settingsSchema?: {
152
+ organization?: Record<string, unknown>;
153
+ user?: Record<string, unknown>;
154
+ };
155
+ }): Promise<import("../errors.js").Errored<{
156
+ code: string;
157
+ error: FetcherError;
158
+ }> | import("../errors.js").Complete<undefined>>;
159
+ completeProdBundleUpload({ appId, versionId, bundleId, bundleSha, settingsSchema, }: {
160
+ appId: string;
161
+ versionId: string;
162
+ bundleId: string;
163
+ bundleSha: string;
164
+ settingsSchema?: {
165
+ organization?: Record<string, unknown>;
166
+ user?: Record<string, unknown>;
167
+ };
168
+ }): Promise<import("../errors.js").Complete<undefined> | import("../errors.js").Errored<{
169
+ code: string;
170
+ error: FetcherError;
171
+ }>>;
172
+ createDevVersion({ appId, cliVersion, targetOrganizationId, environmentVariables, }: {
173
+ appId: string;
174
+ cliVersion: string;
175
+ targetOrganizationId: string;
176
+ environmentVariables: DotenvParseOutput;
177
+ }): Promise<import("../errors.js").Errored<{
178
+ code: string;
179
+ error: FetcherError;
180
+ }> | import("../errors.js").Complete<{
181
+ major: number;
182
+ minor: number;
183
+ versionId: string;
184
+ appId: string;
185
+ bundle: {
186
+ id: string;
187
+ clientBundleUploadUrl: string;
188
+ serverBundleUploadUrl: string;
189
+ bundleSha?: string | undefined;
190
+ };
191
+ }>>;
192
+ fetchInstallation({ appId, organizationId }: {
193
+ appId: string;
194
+ organizationId: string;
195
+ }): Promise<import("../errors.js").Complete<null> | import("../errors.js").Errored<{
196
+ code: string;
197
+ error: FetcherError;
198
+ }> | import("../errors.js").Complete<{
199
+ success: true;
200
+ value: {
201
+ appId: string;
202
+ organizationId: string;
203
+ };
204
+ }>>;
205
+ fetchVersions(appId: string): Promise<import("../errors.js").Errored<{
206
+ code: string;
207
+ error: FetcherError;
208
+ }> | import("../errors.js").Complete<{
209
+ created_at: string;
210
+ major: number;
211
+ minor: number;
212
+ is_published: boolean;
213
+ num_installations: number;
214
+ publication_status: "private" | "in-review" | "published" | "rejected" | "unpublished";
215
+ released_at?: string | null | undefined;
216
+ }[]>>;
217
+ fetchAppLogs({ organizationHandle, appSlug, cursor, limit, }: {
218
+ organizationHandle: string;
219
+ appSlug: string;
220
+ cursor?: string;
221
+ limit?: number;
222
+ }): Promise<import("../errors.js").Errored<{
223
+ code: string;
224
+ error: FetcherError;
225
+ }> | import("../errors.js").Complete<{
226
+ logs: {
227
+ message: string;
228
+ id: string;
229
+ severity: "INFO" | "WARNING" | "ERROR" | "DEBUG";
230
+ timestamp: string;
231
+ metadata: {
232
+ userId: string | null;
233
+ eventId: string;
234
+ eventType: string;
235
+ appVersionId: string | null;
236
+ requestMethod: string | null;
237
+ requestPath: string | null;
238
+ responseStatus: number | null;
239
+ durationMs: number | null;
240
+ consoleLogIndex: number;
241
+ };
242
+ }[];
243
+ hasMore: boolean;
244
+ newestTimestamp: string | null;
245
+ nextCursor?: string | undefined;
246
+ }>>;
247
+ }
248
+ export declare const api: ApiImpl;
249
+ export {};
250
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,KAAK,EAAE,MAA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S,EAAE,MAAM,CAAA;QACjB,cAAc,CAAC,EAAE;YAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE,CAAA;KAC5F;;;;IAkBK,gBAAgB,CAAC,EACrB,KAAK,EACL,UAAU,EACV,oBAAoB,EACpB,oBAAoB,GACrB,EAAE;QACD,KAAK,EAAE,MAAM,CAAA;QACb,UAAU,EAAE,MAAM,CAAA;QAClB,oBAAoB,EAAE,MAAM,CAAA;QAC5B,oBAAoB,EAAE,iBAAiB,CAAA;KACxC;;;;;;;;;;;;;;;IAgBK,iBAAiB,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;IAmBtF,aAAa,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;IAe3B,YAAY,CAAC,EACjB,kBAAkB,EAClB,OAAO,EACP,MAAM,EACN,KAAW,GACZ,EAAE;QACD,kBAAkB,EAAE,MAAM,CAAA;QAC1B,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,KAAK,CAAC,EAAE,MAAM,CAAA;KACf;;;;;;;;;;;;;;;;;;;;;;;;;CAwBF;AAGD,eAAO,MAAM,GAAG,SAAgB,CAAA"}
package/lib/api/api.js ADDED
@@ -0,0 +1,202 @@
1
+ import { complete, errored } from '../errors.js';
2
+ import { Fetcher } from './fetcher.js';
3
+ import { AUTH_API } from '../env.js';
4
+ import { appInfoSchema, completeBundleUploadSchema, createDevVersionSchema, createVersionSchema, fetchAppLogsResponseSchema, installationSchema, listAppsResponseSchema, listDevOrganizationsResponseSchema, oidcUserInfoSchema, TEST_APP_INFO, TEST_ORGANIZATIONS, tokenResponseSchema, versionsSchema, whoamiSchema, } from './schemas.js';
5
+ class ApiImpl {
6
+ fetcher;
7
+ constructor() {
8
+ this.fetcher = new Fetcher();
9
+ }
10
+ async whoami() {
11
+ const result = await this.fetcher.get({
12
+ path: `${AUTH_API}/session`,
13
+ schema: whoamiSchema,
14
+ });
15
+ if (!result.success) {
16
+ return errored({ code: 'WHOAMI_ERROR', error: result.error });
17
+ }
18
+ return complete(result.value.session);
19
+ }
20
+ async fetchApps() {
21
+ const result = await this.fetcher.get({
22
+ path: '/api/v1/apps',
23
+ schema: listAppsResponseSchema,
24
+ });
25
+ if (!result.success) {
26
+ return errored({ code: 'FETCH_APPS_ERROR', error: result.error });
27
+ }
28
+ return complete(result.value.data.apps);
29
+ }
30
+ async fetchAppInfo(appSlug) {
31
+ if (process.env.NODE_ENV === 'test') {
32
+ return complete(TEST_APP_INFO.data.app);
33
+ }
34
+ const result = await this.fetcher.get({
35
+ path: `/api/v1/apps/by-slug/${appSlug}`,
36
+ schema: appInfoSchema,
37
+ });
38
+ if (!result.success) {
39
+ return errored({ code: 'FETCH_APP_INFO_ERROR', error: result.error });
40
+ }
41
+ return complete(result.value.data.app);
42
+ }
43
+ async exchangeToken({ code, codeVerifier, redirectUri, clientId, }) {
44
+ const params = new URLSearchParams();
45
+ params.append('grant_type', 'authorization_code');
46
+ params.append('code', code);
47
+ params.append('client_id', clientId);
48
+ params.append('redirect_uri', redirectUri);
49
+ params.append('code_verifier', codeVerifier);
50
+ const result = await this.fetcher.post({
51
+ path: `${AUTH_API}/oauth2/token`,
52
+ body: params,
53
+ schema: tokenResponseSchema,
54
+ authenticated: 'Not Authenticated',
55
+ });
56
+ if (!result.success) {
57
+ return {
58
+ success: false,
59
+ error: { code: 'GET_TOKEN_ERROR', error: result.error },
60
+ };
61
+ }
62
+ return result;
63
+ }
64
+ async refreshToken({ refreshToken, clientId }) {
65
+ const params = new URLSearchParams();
66
+ params.append('grant_type', 'refresh_token');
67
+ params.append('refresh_token', refreshToken);
68
+ params.append('client_id', clientId);
69
+ const result = await this.fetcher.post({
70
+ path: `${AUTH_API}/oauth2/token`,
71
+ body: params,
72
+ schema: tokenResponseSchema,
73
+ authenticated: 'Not Authenticated',
74
+ });
75
+ if (!result.success) {
76
+ return errored({ code: 'REFRESH_TOKEN_ERROR', error: result.error });
77
+ }
78
+ return complete(result.value);
79
+ }
80
+ async getUserInfo() {
81
+ const result = await this.fetcher.get({
82
+ path: `${AUTH_API}/oauth2/userinfo`,
83
+ schema: oidcUserInfoSchema,
84
+ authenticated: 'Authenticated',
85
+ });
86
+ if (!result.success) {
87
+ return errored({ code: 'WHOAMI_ERROR', error: result.error });
88
+ }
89
+ return complete(result.value);
90
+ }
91
+ async fetchOrganizations() {
92
+ if (process.env.NODE_ENV === 'test') {
93
+ return complete(TEST_ORGANIZATIONS);
94
+ }
95
+ const result = await this.fetcher.get({
96
+ path: '/api/v1/developers/dev-organizations',
97
+ schema: listDevOrganizationsResponseSchema,
98
+ });
99
+ if (!result.success) {
100
+ return errored({ code: 'FETCH_ORGANIZATIONS_ERROR', error: result.error });
101
+ }
102
+ return complete(result.value.organizations);
103
+ }
104
+ async createVersion({ appId, major, cliVersion, }) {
105
+ const result = await this.fetcher.post({
106
+ path: `/api/v1/apps/${appId}/prod-versions`,
107
+ body: {
108
+ major,
109
+ cli_version: cliVersion,
110
+ },
111
+ schema: createVersionSchema,
112
+ });
113
+ if (!result.success) {
114
+ return errored({ code: 'CREATE_VERSION_ERROR', error: result.error });
115
+ }
116
+ return complete(result.value);
117
+ }
118
+ async completeBundleUpload({ appId, versionId, bundleId, bundleSha, settingsSchema, }) {
119
+ const result = await this.fetcher.post({
120
+ path: `/api/v1/apps/${appId}/dev-versions/${versionId}/bundles/${bundleId}/complete`,
121
+ body: {
122
+ bundle_sha: bundleSha,
123
+ settings_schema: settingsSchema,
124
+ },
125
+ schema: completeBundleUploadSchema,
126
+ });
127
+ if (!result.success) {
128
+ return errored({ code: 'COMPLETE_BUNDLE_UPLOAD_ERROR', error: result.error });
129
+ }
130
+ return complete(undefined);
131
+ }
132
+ async completeProdBundleUpload({ appId, versionId, bundleId, bundleSha, settingsSchema, }) {
133
+ const result = await this.fetcher.post({
134
+ path: `/api/v1/apps/${appId}/prod-versions/${versionId}/bundles/${bundleId}/complete`,
135
+ body: {
136
+ bundle_sha: bundleSha,
137
+ settings_schema: settingsSchema,
138
+ },
139
+ schema: completeBundleUploadSchema,
140
+ });
141
+ if (!result.success) {
142
+ return errored({ code: 'COMPLETE_PROD_BUNDLE_UPLOAD_ERROR', error: result.error });
143
+ }
144
+ return complete(undefined);
145
+ }
146
+ async createDevVersion({ appId, cliVersion, targetOrganizationId, environmentVariables, }) {
147
+ const result = await this.fetcher.post({
148
+ path: `/api/v1/apps/${appId}/dev-versions`,
149
+ body: {
150
+ target_organization_id: targetOrganizationId,
151
+ environment_variables: environmentVariables,
152
+ cli_version: cliVersion,
153
+ },
154
+ schema: createDevVersionSchema,
155
+ });
156
+ if (!result.success) {
157
+ return errored({ code: 'CREATE_DEV_VERSION_ERROR', error: result.error });
158
+ }
159
+ return complete(result.value);
160
+ }
161
+ async fetchInstallation({ appId, organizationId }) {
162
+ const result = await this.fetcher.get({
163
+ path: `/api/v1/apps/${appId}/organization/${organizationId}/dev-installation`,
164
+ schema: installationSchema,
165
+ });
166
+ if (!result.success) {
167
+ if (result.error.code === 'HTTP_ERROR' && result.error.status === 404) {
168
+ return complete(null);
169
+ }
170
+ return errored({ code: 'FETCH_INSTALLATION_ERROR', error: result.error });
171
+ }
172
+ return complete(result);
173
+ }
174
+ async fetchVersions(appId) {
175
+ const result = await this.fetcher.get({
176
+ path: `/api/v1/apps/${appId}/prod-versions`,
177
+ schema: versionsSchema,
178
+ });
179
+ if (!result.success) {
180
+ return errored({ code: 'FETCH_VERSIONS_ERROR', error: result.error });
181
+ }
182
+ return complete(result.value.app_prod_versions);
183
+ }
184
+ async fetchAppLogs({ organizationHandle, appSlug, cursor, limit = 100, }) {
185
+ const params = new URLSearchParams();
186
+ if (cursor)
187
+ params.append('cursor', cursor);
188
+ if (limit)
189
+ params.append('limit', limit.toString());
190
+ const queryString = params.toString();
191
+ const path = `/api/v1/organizations/${organizationHandle}/apps/${appSlug}/logs${queryString ? `?${queryString}` : ''}`;
192
+ const result = await this.fetcher.get({
193
+ path,
194
+ schema: fetchAppLogsResponseSchema,
195
+ });
196
+ if (!result.success) {
197
+ return errored({ code: 'FETCH_APP_LOGS_ERROR', error: result.error });
198
+ }
199
+ return complete(result.value.data);
200
+ }
201
+ }
202
+ export const api = new ApiImpl();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAqB,MAAM,cAAc,CAAA;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAKtC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAElB,sBAAsB,EACtB,kCAAkC,EAClC,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,YAAY,GACb,MAAM,cAAc,CAAA;AAoBrB,MAAM,OAAO;IACH,OAAO,CAAS;IAExB;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;IAC9B,CAAC;IAKD,KAAK,CAAC,MAAM;QACV,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;YACpC,IAAI,EAAE,GAAG,QAAQ,UAAU;YAC3B,MAAM,EAAE,YAAY;SACrB,CAAC,CAAA;QAEF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,OAAO,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;QAC/D,CAAC;QAED,OAAO,QAA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,CAAC,EACpC,EAAE,CAAA;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;YACpC,IAAI;YACJ,MAAM,EAAE,0BAA0B;SACnC,CAAC,CAAA;QAEF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,OAAO,CAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;QACvE,CAAC;QAED,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACpC,CAAC;CAGF;AAGD,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,OAAO,EAAE,CAAA"}
@@ -0,0 +1,21 @@
1
+ import type { z } from 'zod';
2
+ import type { FetcherError } from '../errors.js';
3
+ import type { Result } from '../types/result.js';
4
+ interface FetchOptions<T> {
5
+ path: string;
6
+ schema: z.ZodSchema<T>;
7
+ authenticated?: 'Authenticated' | 'Not Authenticated';
8
+ headers?: Record<string, string>;
9
+ }
10
+ interface GetOptions<T> extends FetchOptions<T> {
11
+ }
12
+ interface PostOptions<T> extends FetchOptions<T> {
13
+ body: any;
14
+ }
15
+ export declare class Fetcher {
16
+ get<T>(options: GetOptions<T>): Promise<Result<T, FetcherError>>;
17
+ post<T>(options: PostOptions<T>): Promise<Result<T, FetcherError>>;
18
+ private fetch;
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=fetcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../src/api/fetcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAG5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAGhD,UAAU,YAAY,CAAC,CAAC;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IACtB,aAAa,CAAC,EAAE,eAAe,GAAG,mBAAmB,CAAA;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC;AAED,UAAU,UAAU,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;CAAG;AAElD,UAAU,WAAW,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC9C,IAAI,EAAE,GAAG,CAAA;CACV;AAKD,qBAAa,OAAO;IAIZ,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;IAWhE,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;YAc1D,KAAK;CA4IpB"}