@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.
- package/LICENSE +661 -0
- package/README.md +95 -0
- package/client.d.ts +2 -0
- package/global.d.ts +69 -0
- package/lib/api/api.d.ts +250 -0
- package/lib/api/api.d.ts.map +1 -0
- package/lib/api/api.js +202 -0
- package/lib/api/api.js.map +1 -0
- package/lib/api/fetcher.d.ts +21 -0
- package/lib/api/fetcher.d.ts.map +1 -0
- package/lib/api/fetcher.js +117 -0
- package/lib/api/fetcher.js.map +1 -0
- package/lib/api/schemas.d.ts +785 -0
- package/lib/api/schemas.d.ts.map +1 -0
- package/lib/api/schemas.js +157 -0
- package/lib/api/schemas.js.map +1 -0
- package/lib/auth/auth.d.ts +28 -0
- package/lib/auth/auth.d.ts.map +1 -0
- package/lib/auth/auth.js +271 -0
- package/lib/auth/auth.js.map +1 -0
- package/lib/auth/keychain.d.ts +48 -0
- package/lib/auth/keychain.d.ts.map +1 -0
- package/lib/auth/keychain.js +142 -0
- package/lib/auth/keychain.js.map +1 -0
- package/lib/auxx-logo.d.ts +2 -0
- package/lib/auxx-logo.d.ts.map +1 -0
- package/lib/auxx-logo.js +14 -0
- package/lib/auxx-logo.js.map +1 -0
- package/lib/auxx.d.ts +3 -0
- package/lib/auxx.d.ts.map +1 -0
- package/lib/auxx.js +26 -0
- package/lib/auxx.js.map +1 -0
- package/lib/build/client/create-client-build-config.d.ts +17 -0
- package/lib/build/client/create-client-build-config.d.ts.map +1 -0
- package/lib/build/client/create-client-build-config.js +70 -0
- package/lib/build/client/create-client-build-config.js.map +1 -0
- package/lib/build/client/generate-client-entry.d.ts +7 -0
- package/lib/build/client/generate-client-entry.d.ts.map +1 -0
- package/lib/build/client/generate-client-entry.js +153 -0
- package/lib/build/client/generate-client-entry.js.map +1 -0
- package/lib/build/create-build-config.d.ts +10 -0
- package/lib/build/create-build-config.d.ts.map +1 -0
- package/lib/build/create-build-config.js +19 -0
- package/lib/build/create-build-config.js.map +1 -0
- package/lib/build/get-file-exports.d.ts +5 -0
- package/lib/build/get-file-exports.d.ts.map +1 -0
- package/lib/build/get-file-exports.js +13 -0
- package/lib/build/get-file-exports.js.map +1 -0
- package/lib/build/platform-runtime/build.d.ts +2 -0
- package/lib/build/platform-runtime/build.d.ts.map +1 -0
- package/lib/build/platform-runtime/build.js +77 -0
- package/lib/build/platform-runtime/build.js.map +1 -0
- package/lib/build/proxy-block-modules-plugin.d.ts +20 -0
- package/lib/build/proxy-block-modules-plugin.d.ts.map +1 -0
- package/lib/build/proxy-block-modules-plugin.js +68 -0
- package/lib/build/proxy-block-modules-plugin.js.map +1 -0
- package/lib/build/proxy-server-modules-plugin.d.ts +5 -0
- package/lib/build/proxy-server-modules-plugin.d.ts.map +1 -0
- package/lib/build/proxy-server-modules-plugin.js +30 -0
- package/lib/build/proxy-server-modules-plugin.js.map +1 -0
- package/lib/build/server/create-server-build-config.d.ts +8 -0
- package/lib/build/server/create-server-build-config.d.ts.map +1 -0
- package/lib/build/server/create-server-build-config.js +25 -0
- package/lib/build/server/create-server-build-config.js.map +1 -0
- package/lib/build/server/find-workflow-block-server-modules.d.ts +39 -0
- package/lib/build/server/find-workflow-block-server-modules.d.ts.map +1 -0
- package/lib/build/server/find-workflow-block-server-modules.js +403 -0
- package/lib/build/server/find-workflow-block-server-modules.js.map +1 -0
- package/lib/build/server/generate-server-entry.d.ts +16 -0
- package/lib/build/server/generate-server-entry.d.ts.map +1 -0
- package/lib/build/server/generate-server-entry.js +213 -0
- package/lib/build/server/generate-server-entry.js.map +1 -0
- package/lib/build/workflow-block-modules.d.ts +54 -0
- package/lib/build/workflow-block-modules.d.ts.map +1 -0
- package/lib/build/workflow-block-modules.js +136 -0
- package/lib/build/workflow-block-modules.js.map +1 -0
- package/lib/client/alerts.d.ts +15 -0
- package/lib/client/alerts.d.ts.map +1 -0
- package/lib/client/alerts.js +3 -0
- package/lib/client/alerts.js.map +1 -0
- package/lib/client/components/avatar.d.ts +11 -0
- package/lib/client/components/avatar.d.ts.map +1 -0
- package/lib/client/components/avatar.js +3 -0
- package/lib/client/components/avatar.js.map +1 -0
- package/lib/client/components/badge.d.ts +9 -0
- package/lib/client/components/badge.d.ts.map +1 -0
- package/lib/client/components/badge.js +3 -0
- package/lib/client/components/badge.js.map +1 -0
- package/lib/client/components/banner.d.ts +9 -0
- package/lib/client/components/banner.d.ts.map +1 -0
- package/lib/client/components/banner.js +3 -0
- package/lib/client/components/banner.js.map +1 -0
- package/lib/client/components/button.d.ts +11 -0
- package/lib/client/components/button.d.ts.map +1 -0
- package/lib/client/components/button.js +3 -0
- package/lib/client/components/button.js.map +1 -0
- package/lib/client/components/form-field.d.ts +11 -0
- package/lib/client/components/form-field.d.ts.map +1 -0
- package/lib/client/components/form-field.js +3 -0
- package/lib/client/components/form-field.js.map +1 -0
- package/lib/client/components/form-submit.d.ts +10 -0
- package/lib/client/components/form-submit.d.ts.map +1 -0
- package/lib/client/components/form-submit.js +3 -0
- package/lib/client/components/form-submit.js.map +1 -0
- package/lib/client/components/form.d.ts +26 -0
- package/lib/client/components/form.d.ts.map +1 -0
- package/lib/client/components/form.js +3 -0
- package/lib/client/components/form.js.map +1 -0
- package/lib/client/components/index.d.ts +160 -0
- package/lib/client/components/index.d.ts.map +1 -0
- package/lib/client/components/index.js +3 -0
- package/lib/client/components/index.js.map +1 -0
- package/lib/client/components/separator.d.ts +8 -0
- package/lib/client/components/separator.d.ts.map +1 -0
- package/lib/client/components/separator.js +3 -0
- package/lib/client/components/separator.js.map +1 -0
- package/lib/client/components/text-block.d.ts +7 -0
- package/lib/client/components/text-block.d.ts.map +1 -0
- package/lib/client/components/text-block.js +3 -0
- package/lib/client/components/text-block.js.map +1 -0
- package/lib/client/components/typography.d.ts +17 -0
- package/lib/client/components/typography.d.ts.map +1 -0
- package/lib/client/components/typography.js +3 -0
- package/lib/client/components/typography.js.map +1 -0
- package/lib/client/dialogs.d.ts +9 -0
- package/lib/client/dialogs.d.ts.map +1 -0
- package/lib/client/dialogs.js +3 -0
- package/lib/client/dialogs.js.map +1 -0
- package/lib/client/forms/base.d.ts +9 -0
- package/lib/client/forms/base.d.ts.map +1 -0
- package/lib/client/forms/base.js +3 -0
- package/lib/client/forms/base.js.map +1 -0
- package/lib/client/forms/index.d.ts +26 -0
- package/lib/client/forms/index.d.ts.map +1 -0
- package/lib/client/forms/index.js +3 -0
- package/lib/client/forms/index.js.map +1 -0
- package/lib/client/forms/types/boolean.d.ts +12 -0
- package/lib/client/forms/types/boolean.d.ts.map +1 -0
- package/lib/client/forms/types/boolean.js +3 -0
- package/lib/client/forms/types/boolean.js.map +1 -0
- package/lib/client/forms/types/number.d.ts +18 -0
- package/lib/client/forms/types/number.d.ts.map +1 -0
- package/lib/client/forms/types/number.js +3 -0
- package/lib/client/forms/types/number.js.map +1 -0
- package/lib/client/forms/types/select.d.ts +14 -0
- package/lib/client/forms/types/select.d.ts.map +1 -0
- package/lib/client/forms/types/select.js +3 -0
- package/lib/client/forms/types/select.js.map +1 -0
- package/lib/client/forms/types/string.d.ts +19 -0
- package/lib/client/forms/types/string.d.ts.map +1 -0
- package/lib/client/forms/types/string.js +3 -0
- package/lib/client/forms/types/string.js.map +1 -0
- package/lib/client/forms/types.d.ts +69 -0
- package/lib/client/forms/types.d.ts.map +1 -0
- package/lib/client/forms/types.js +3 -0
- package/lib/client/forms/types.js.map +1 -0
- package/lib/client/forms/utils/serialize.d.ts +6 -0
- package/lib/client/forms/utils/serialize.d.ts.map +1 -0
- package/lib/client/forms/utils/serialize.js +3 -0
- package/lib/client/forms/utils/serialize.js.map +1 -0
- package/lib/client/forms/utils/validation.d.ts +3 -0
- package/lib/client/forms/utils/validation.d.ts.map +1 -0
- package/lib/client/forms/utils/validation.js +3 -0
- package/lib/client/forms/utils/validation.js.map +1 -0
- package/lib/client/hooks/cache-manager.d.ts +18 -0
- package/lib/client/hooks/cache-manager.d.ts.map +1 -0
- package/lib/client/hooks/cache-manager.js +3 -0
- package/lib/client/hooks/cache-manager.js.map +1 -0
- package/lib/client/hooks/generate-cache-key.d.ts +2 -0
- package/lib/client/hooks/generate-cache-key.d.ts.map +1 -0
- package/lib/client/hooks/generate-cache-key.js +3 -0
- package/lib/client/hooks/generate-cache-key.js.map +1 -0
- package/lib/client/hooks/index.d.ts +28 -0
- package/lib/client/hooks/index.d.ts.map +1 -0
- package/lib/client/hooks/index.js +3 -0
- package/lib/client/hooks/index.js.map +1 -0
- package/lib/client/hooks/use-async-cache.d.ts +11 -0
- package/lib/client/hooks/use-async-cache.d.ts.map +1 -0
- package/lib/client/hooks/use-async-cache.js +3 -0
- package/lib/client/hooks/use-async-cache.js.map +1 -0
- package/lib/client/index.d.ts +11 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +3 -0
- package/lib/client/index.js.map +1 -0
- package/lib/client/navigation.d.ts +4 -0
- package/lib/client/navigation.d.ts.map +1 -0
- package/lib/client/navigation.js +3 -0
- package/lib/client/navigation.js.map +1 -0
- package/lib/client/record-actions.d.ts +25 -0
- package/lib/client/record-actions.d.ts.map +1 -0
- package/lib/client/record-actions.js +3 -0
- package/lib/client/record-actions.js.map +1 -0
- package/lib/client/toasts.d.ts +7 -0
- package/lib/client/toasts.d.ts.map +1 -0
- package/lib/client/toasts.js +3 -0
- package/lib/client/toasts.js.map +1 -0
- package/lib/client/types.d.ts +10 -0
- package/lib/client/types.d.ts.map +1 -0
- package/lib/client/types.js +3 -0
- package/lib/client/types.js.map +1 -0
- package/lib/client/workflow/components/index.d.ts +20 -0
- package/lib/client/workflow/components/index.d.ts.map +1 -0
- package/lib/client/workflow/components/index.js +3 -0
- package/lib/client/workflow/components/index.js.map +1 -0
- package/lib/client/workflow/components/inputs/boolean-input.d.ts +13 -0
- package/lib/client/workflow/components/inputs/boolean-input.d.ts.map +1 -0
- package/lib/client/workflow/components/inputs/boolean-input.js +3 -0
- package/lib/client/workflow/components/inputs/boolean-input.js.map +1 -0
- package/lib/client/workflow/components/inputs/number-input.d.ts +17 -0
- package/lib/client/workflow/components/inputs/number-input.d.ts.map +1 -0
- package/lib/client/workflow/components/inputs/number-input.js +3 -0
- package/lib/client/workflow/components/inputs/number-input.js.map +1 -0
- package/lib/client/workflow/components/inputs/select-input.d.ts +15 -0
- package/lib/client/workflow/components/inputs/select-input.d.ts.map +1 -0
- package/lib/client/workflow/components/inputs/select-input.js +3 -0
- package/lib/client/workflow/components/inputs/select-input.js.map +1 -0
- package/lib/client/workflow/components/inputs/string-input.d.ts +15 -0
- package/lib/client/workflow/components/inputs/string-input.d.ts.map +1 -0
- package/lib/client/workflow/components/inputs/string-input.js +3 -0
- package/lib/client/workflow/components/inputs/string-input.js.map +1 -0
- package/lib/client/workflow/components/layout/input-group.d.ts +9 -0
- package/lib/client/workflow/components/layout/input-group.d.ts.map +1 -0
- package/lib/client/workflow/components/layout/input-group.js +3 -0
- package/lib/client/workflow/components/layout/input-group.js.map +1 -0
- package/lib/client/workflow/components/layout/section.d.ts +13 -0
- package/lib/client/workflow/components/layout/section.d.ts.map +1 -0
- package/lib/client/workflow/components/layout/section.js +3 -0
- package/lib/client/workflow/components/layout/section.js.map +1 -0
- package/lib/client/workflow/components/layout/separator.d.ts +7 -0
- package/lib/client/workflow/components/layout/separator.d.ts.map +1 -0
- package/lib/client/workflow/components/layout/separator.js +3 -0
- package/lib/client/workflow/components/layout/separator.js.map +1 -0
- package/lib/client/workflow/components/utility/alert.d.ts +10 -0
- package/lib/client/workflow/components/utility/alert.d.ts.map +1 -0
- package/lib/client/workflow/components/utility/alert.js +3 -0
- package/lib/client/workflow/components/utility/alert.js.map +1 -0
- package/lib/client/workflow/components/utility/badge.d.ts +9 -0
- package/lib/client/workflow/components/utility/badge.d.ts.map +1 -0
- package/lib/client/workflow/components/utility/badge.js +3 -0
- package/lib/client/workflow/components/utility/badge.js.map +1 -0
- package/lib/client/workflow/components/utility/conditional-render.d.ts +8 -0
- package/lib/client/workflow/components/utility/conditional-render.d.ts.map +1 -0
- package/lib/client/workflow/components/utility/conditional-render.js +3 -0
- package/lib/client/workflow/components/utility/conditional-render.js.map +1 -0
- package/lib/client/workflow/components/variables/input-editor.d.ts +16 -0
- package/lib/client/workflow/components/variables/input-editor.d.ts.map +1 -0
- package/lib/client/workflow/components/variables/input-editor.js +3 -0
- package/lib/client/workflow/components/variables/input-editor.js.map +1 -0
- package/lib/client/workflow/components/variables/variable-input.d.ts +19 -0
- package/lib/client/workflow/components/variables/variable-input.d.ts.map +1 -0
- package/lib/client/workflow/components/variables/variable-input.js +3 -0
- package/lib/client/workflow/components/variables/variable-input.js.map +1 -0
- package/lib/client/workflow/components/workflow-node-handle.d.ts +11 -0
- package/lib/client/workflow/components/workflow-node-handle.d.ts.map +1 -0
- package/lib/client/workflow/components/workflow-node-handle.js +3 -0
- package/lib/client/workflow/components/workflow-node-handle.js.map +1 -0
- package/lib/client/workflow/components/workflow-node-row.d.ts +10 -0
- package/lib/client/workflow/components/workflow-node-row.d.ts.map +1 -0
- package/lib/client/workflow/components/workflow-node-row.js +3 -0
- package/lib/client/workflow/components/workflow-node-row.js.map +1 -0
- package/lib/client/workflow/components/workflow-node-text.d.ts +8 -0
- package/lib/client/workflow/components/workflow-node-text.d.ts.map +1 -0
- package/lib/client/workflow/components/workflow-node-text.js +3 -0
- package/lib/client/workflow/components/workflow-node-text.js.map +1 -0
- package/lib/client/workflow/components/workflow-node.d.ts +8 -0
- package/lib/client/workflow/components/workflow-node.d.ts.map +1 -0
- package/lib/client/workflow/components/workflow-node.js +3 -0
- package/lib/client/workflow/components/workflow-node.js.map +1 -0
- package/lib/client/workflow/components/workflow-panel.d.ts +8 -0
- package/lib/client/workflow/components/workflow-panel.d.ts.map +1 -0
- package/lib/client/workflow/components/workflow-panel.js +3 -0
- package/lib/client/workflow/components/workflow-panel.js.map +1 -0
- package/lib/client/workflow/hooks/index.d.ts +6 -0
- package/lib/client/workflow/hooks/index.d.ts.map +1 -0
- package/lib/client/workflow/hooks/index.js +3 -0
- package/lib/client/workflow/hooks/index.js.map +1 -0
- package/lib/client/workflow/hooks/use-variable.d.ts +21 -0
- package/lib/client/workflow/hooks/use-variable.d.ts.map +1 -0
- package/lib/client/workflow/hooks/use-variable.js +3 -0
- package/lib/client/workflow/hooks/use-variable.js.map +1 -0
- package/lib/client/workflow/hooks/use-workflow-context.d.ts +9 -0
- package/lib/client/workflow/hooks/use-workflow-context.d.ts.map +1 -0
- package/lib/client/workflow/hooks/use-workflow-context.js +3 -0
- package/lib/client/workflow/hooks/use-workflow-context.js.map +1 -0
- package/lib/client/workflow/hooks/use-workflow-node.d.ts +30 -0
- package/lib/client/workflow/hooks/use-workflow-node.d.ts.map +1 -0
- package/lib/client/workflow/hooks/use-workflow-node.js +3 -0
- package/lib/client/workflow/hooks/use-workflow-node.js.map +1 -0
- package/lib/client/workflow/hooks/use-workflow-runtime.d.ts +35 -0
- package/lib/client/workflow/hooks/use-workflow-runtime.d.ts.map +1 -0
- package/lib/client/workflow/hooks/use-workflow-runtime.js +3 -0
- package/lib/client/workflow/hooks/use-workflow-runtime.js.map +1 -0
- package/lib/client/workflow/hooks/use-workflow.d.ts +36 -0
- package/lib/client/workflow/hooks/use-workflow.d.ts.map +1 -0
- package/lib/client/workflow/hooks/use-workflow.js +3 -0
- package/lib/client/workflow/hooks/use-workflow.js.map +1 -0
- package/lib/client/workflow/index.d.ts +5 -0
- package/lib/client/workflow/index.d.ts.map +1 -0
- package/lib/client/workflow/index.js +3 -0
- package/lib/client/workflow/index.js.map +1 -0
- package/lib/client/workflow/types/index.d.ts +2 -0
- package/lib/client/workflow/types/index.d.ts.map +1 -0
- package/lib/client/workflow/types/index.js +3 -0
- package/lib/client/workflow/types/index.js.map +1 -0
- package/lib/client/workflow/types/path-helpers.d.ts +26 -0
- package/lib/client/workflow/types/path-helpers.d.ts.map +1 -0
- package/lib/client/workflow/types/path-helpers.js +3 -0
- package/lib/client/workflow/types/path-helpers.js.map +1 -0
- package/lib/commands/apps.d.ts +3 -0
- package/lib/commands/apps.d.ts.map +1 -0
- package/lib/commands/apps.js +64 -0
- package/lib/commands/apps.js.map +1 -0
- package/lib/commands/build/build-javascript.d.ts +2 -0
- package/lib/commands/build/build-javascript.d.ts.map +1 -0
- package/lib/commands/build/build-javascript.js +18 -0
- package/lib/commands/build/build-javascript.js.map +1 -0
- package/lib/commands/build/validate-typescript.d.ts +17 -0
- package/lib/commands/build/validate-typescript.d.ts.map +1 -0
- package/lib/commands/build/validate-typescript.js +24 -0
- package/lib/commands/build/validate-typescript.js.map +1 -0
- package/lib/commands/build.d.ts +3 -0
- package/lib/commands/build.d.ts.map +1 -0
- package/lib/commands/build.js +55 -0
- package/lib/commands/build.js.map +1 -0
- package/lib/commands/dev/boot.d.ts +17 -0
- package/lib/commands/dev/boot.d.ts.map +1 -0
- package/lib/commands/dev/boot.js +55 -0
- package/lib/commands/dev/boot.js.map +1 -0
- package/lib/commands/dev/bundle-javascript.d.ts +4 -0
- package/lib/commands/dev/bundle-javascript.d.ts.map +1 -0
- package/lib/commands/dev/bundle-javascript.js +89 -0
- package/lib/commands/dev/bundle-javascript.js.map +1 -0
- package/lib/commands/dev/client-builder.d.ts +40 -0
- package/lib/commands/dev/client-builder.d.ts.map +1 -0
- package/lib/commands/dev/client-builder.js +111 -0
- package/lib/commands/dev/client-builder.js.map +1 -0
- package/lib/commands/dev/onboarding.d.ts +11 -0
- package/lib/commands/dev/onboarding.d.ts.map +1 -0
- package/lib/commands/dev/onboarding.js +43 -0
- package/lib/commands/dev/onboarding.js.map +1 -0
- package/lib/commands/dev/prepare-build-context.d.ts +45 -0
- package/lib/commands/dev/prepare-build-context.d.ts.map +1 -0
- package/lib/commands/dev/prepare-build-context.js +90 -0
- package/lib/commands/dev/prepare-build-context.js.map +1 -0
- package/lib/commands/dev/server-builder.d.ts +36 -0
- package/lib/commands/dev/server-builder.d.ts.map +1 -0
- package/lib/commands/dev/server-builder.js +95 -0
- package/lib/commands/dev/server-builder.js.map +1 -0
- package/lib/commands/dev/upload.d.ts +11 -0
- package/lib/commands/dev/upload.d.ts.map +1 -0
- package/lib/commands/dev/upload.js +41 -0
- package/lib/commands/dev/upload.js.map +1 -0
- package/lib/commands/dev/validate-typescript.d.ts +3 -0
- package/lib/commands/dev/validate-typescript.d.ts.map +1 -0
- package/lib/commands/dev/validate-typescript.js +71 -0
- package/lib/commands/dev/validate-typescript.js.map +1 -0
- package/lib/commands/dev.d.ts +11 -0
- package/lib/commands/dev.d.ts.map +1 -0
- package/lib/commands/dev.js +178 -0
- package/lib/commands/dev.js.map +1 -0
- package/lib/commands/init/create-project.d.ts +22 -0
- package/lib/commands/init/create-project.d.ts.map +1 -0
- package/lib/commands/init/create-project.js +43 -0
- package/lib/commands/init/create-project.js.map +1 -0
- package/lib/commands/init.d.ts +3 -0
- package/lib/commands/init.d.ts.map +1 -0
- package/lib/commands/init.js +88 -0
- package/lib/commands/init.js.map +1 -0
- package/lib/commands/login.d.ts +3 -0
- package/lib/commands/login.d.ts.map +1 -0
- package/lib/commands/login.js +22 -0
- package/lib/commands/login.js.map +1 -0
- package/lib/commands/logout.d.ts +3 -0
- package/lib/commands/logout.d.ts.map +1 -0
- package/lib/commands/logout.js +14 -0
- package/lib/commands/logout.js.map +1 -0
- package/lib/commands/logs/log-event.d.ts +25 -0
- package/lib/commands/logs/log-event.d.ts.map +1 -0
- package/lib/commands/logs/log-event.js +14 -0
- package/lib/commands/logs/log-event.js.map +1 -0
- package/lib/commands/logs/logs-buffer.d.ts +16 -0
- package/lib/commands/logs/logs-buffer.d.ts.map +1 -0
- package/lib/commands/logs/logs-buffer.js +52 -0
- package/lib/commands/logs/logs-buffer.js.map +1 -0
- package/lib/commands/logs/subscribe-to-logs.d.ts +19 -0
- package/lib/commands/logs/subscribe-to-logs.d.ts.map +1 -0
- package/lib/commands/logs/subscribe-to-logs.js +74 -0
- package/lib/commands/logs/subscribe-to-logs.js.map +1 -0
- package/lib/commands/logs.d.ts +11 -0
- package/lib/commands/logs.d.ts.map +1 -0
- package/lib/commands/logs.js +91 -0
- package/lib/commands/logs.js.map +1 -0
- package/lib/commands/version/create/bundle-javascript.d.ts +13 -0
- package/lib/commands/version/create/bundle-javascript.d.ts.map +1 -0
- package/lib/commands/version/create/bundle-javascript.js +33 -0
- package/lib/commands/version/create/bundle-javascript.js.map +1 -0
- package/lib/commands/version/create.d.ts +3 -0
- package/lib/commands/version/create.d.ts.map +1 -0
- package/lib/commands/version/create.js +125 -0
- package/lib/commands/version/create.js.map +1 -0
- package/lib/commands/version/index.d.ts +3 -0
- package/lib/commands/version/index.d.ts.map +1 -0
- package/lib/commands/version/index.js +7 -0
- package/lib/commands/version/index.js.map +1 -0
- package/lib/commands/version/list.d.ts +3 -0
- package/lib/commands/version/list.d.ts.map +1 -0
- package/lib/commands/version/list.js +68 -0
- package/lib/commands/version/list.js.map +1 -0
- package/lib/commands/whoami.d.ts +3 -0
- package/lib/commands/whoami.d.ts.map +1 -0
- package/lib/commands/whoami.js +33 -0
- package/lib/commands/whoami.js.map +1 -0
- package/lib/constants/hidden-auxx-directory.d.ts +2 -0
- package/lib/constants/hidden-auxx-directory.d.ts.map +1 -0
- package/lib/constants/hidden-auxx-directory.js +1 -0
- package/lib/constants/hidden-auxx-directory.js.map +1 -0
- package/lib/constants/settings-files.d.ts +3 -0
- package/lib/constants/settings-files.d.ts.map +1 -0
- package/lib/constants/settings-files.js +2 -0
- package/lib/constants/settings-files.js.map +1 -0
- package/lib/env.d.ts +9 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +8 -0
- package/lib/env.js.map +1 -0
- package/lib/errors.d.ts +385 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +173 -0
- package/lib/errors.js.map +1 -0
- package/lib/print-errors.d.ts +27 -0
- package/lib/print-errors.d.ts.map +1 -0
- package/lib/print-errors.js +151 -0
- package/lib/print-errors.js.map +1 -0
- package/lib/root/app.d.ts +52 -0
- package/lib/root/app.d.ts.map +1 -0
- package/lib/root/app.js +1 -0
- package/lib/root/app.js.map +1 -0
- package/lib/root/index.d.ts +8 -0
- package/lib/root/index.d.ts.map +1 -0
- package/lib/root/index.js +2 -0
- package/lib/root/index.js.map +1 -0
- package/lib/root/schema/array-node.d.ts +40 -0
- package/lib/root/schema/array-node.d.ts.map +1 -0
- package/lib/root/schema/array-node.js +25 -0
- package/lib/root/schema/array-node.js.map +1 -0
- package/lib/root/schema/base-node.d.ts +28 -0
- package/lib/root/schema/base-node.d.ts.map +1 -0
- package/lib/root/schema/base-node.js +49 -0
- package/lib/root/schema/base-node.js.map +1 -0
- package/lib/root/schema/boolean-node.d.ts +10 -0
- package/lib/root/schema/boolean-node.d.ts.map +1 -0
- package/lib/root/schema/boolean-node.js +15 -0
- package/lib/root/schema/boolean-node.js.map +1 -0
- package/lib/root/schema/index.d.ts +15 -0
- package/lib/root/schema/index.d.ts.map +1 -0
- package/lib/root/schema/index.js +7 -0
- package/lib/root/schema/index.js.map +1 -0
- package/lib/root/schema/number-node.d.ts +16 -0
- package/lib/root/schema/number-node.d.ts.map +1 -0
- package/lib/root/schema/number-node.js +15 -0
- package/lib/root/schema/number-node.js.map +1 -0
- package/lib/root/schema/select-node.d.ts +30 -0
- package/lib/root/schema/select-node.d.ts.map +1 -0
- package/lib/root/schema/select-node.js +26 -0
- package/lib/root/schema/select-node.js.map +1 -0
- package/lib/root/schema/string-node.d.ts +21 -0
- package/lib/root/schema/string-node.d.ts.map +1 -0
- package/lib/root/schema/string-node.js +45 -0
- package/lib/root/schema/string-node.js.map +1 -0
- package/lib/root/schema/struct-node.d.ts +25 -0
- package/lib/root/schema/struct-node.d.ts.map +1 -0
- package/lib/root/schema/struct-node.js +35 -0
- package/lib/root/schema/struct-node.js.map +1 -0
- package/lib/root/settings/base-node.d.ts +6 -0
- package/lib/root/settings/base-node.d.ts.map +1 -0
- package/lib/root/settings/base-node.js +3 -0
- package/lib/root/settings/base-node.js.map +1 -0
- package/lib/root/settings/index.d.ts +10 -0
- package/lib/root/settings/index.d.ts.map +1 -0
- package/lib/root/settings/index.js +9 -0
- package/lib/root/settings/index.js.map +1 -0
- package/lib/root/settings/settings-schema.d.ts +87 -0
- package/lib/root/settings/settings-schema.d.ts.map +1 -0
- package/lib/root/settings/settings-schema.js +122 -0
- package/lib/root/settings/settings-schema.js.map +1 -0
- package/lib/root/workflow/auxx-rule-node.d.ts +23 -0
- package/lib/root/workflow/auxx-rule-node.d.ts.map +1 -0
- package/lib/root/workflow/auxx-rule-node.js +55 -0
- package/lib/root/workflow/auxx-rule-node.js.map +1 -0
- package/lib/root/workflow/base-node.d.ts +28 -0
- package/lib/root/workflow/base-node.d.ts.map +1 -0
- package/lib/root/workflow/base-node.js +33 -0
- package/lib/root/workflow/base-node.js.map +1 -0
- package/lib/root/workflow/index.d.ts +47 -0
- package/lib/root/workflow/index.d.ts.map +1 -0
- package/lib/root/workflow/index.js +24 -0
- package/lib/root/workflow/index.js.map +1 -0
- package/lib/root/workflow/input-nodes.d.ts +134 -0
- package/lib/root/workflow/input-nodes.d.ts.map +1 -0
- package/lib/root/workflow/input-nodes.js +171 -0
- package/lib/root/workflow/input-nodes.js.map +1 -0
- package/lib/root/workflow/types.d.ts +131 -0
- package/lib/root/workflow/types.d.ts.map +1 -0
- package/lib/root/workflow/types.js +18 -0
- package/lib/root/workflow/types.js.map +1 -0
- package/lib/root/workflow/utils.d.ts +5 -0
- package/lib/root/workflow/utils.d.ts.map +1 -0
- package/lib/root/workflow/utils.js +1 -0
- package/lib/root/workflow/utils.js.map +1 -0
- package/lib/root/workflow/values/mock-context.d.ts +3 -0
- package/lib/root/workflow/values/mock-context.d.ts.map +1 -0
- package/lib/root/workflow/values/mock-context.js +35 -0
- package/lib/root/workflow/values/mock-context.js.map +1 -0
- package/lib/root/workflow/values/transform.d.ts +7 -0
- package/lib/root/workflow/values/transform.d.ts.map +1 -0
- package/lib/root/workflow/values/transform.js +36 -0
- package/lib/root/workflow/values/transform.js.map +1 -0
- package/lib/root/workflow/values/types.d.ts +22 -0
- package/lib/root/workflow/values/types.d.ts.map +1 -0
- package/lib/root/workflow/values/types.js +1 -0
- package/lib/root/workflow/values/types.js.map +1 -0
- package/lib/runtime/event-broker.d.ts +10 -0
- package/lib/runtime/event-broker.d.ts.map +1 -0
- package/lib/runtime/event-broker.js +42 -0
- package/lib/runtime/event-broker.js.map +1 -0
- package/lib/runtime/event-bus.d.ts +11 -0
- package/lib/runtime/event-bus.d.ts.map +1 -0
- package/lib/runtime/event-bus.js +28 -0
- package/lib/runtime/event-bus.js.map +1 -0
- package/lib/runtime/host.d.ts +37 -0
- package/lib/runtime/host.d.ts.map +1 -0
- package/lib/runtime/host.js +130 -0
- package/lib/runtime/host.js.map +1 -0
- package/lib/runtime/index.d.ts +5 -0
- package/lib/runtime/index.d.ts.map +1 -0
- package/lib/runtime/index.js +245 -0
- package/lib/runtime/index.js.map +1 -0
- package/lib/runtime/reconciler/host-config.d.ts +28 -0
- package/lib/runtime/reconciler/host-config.d.ts.map +1 -0
- package/lib/runtime/reconciler/host-config.js +202 -0
- package/lib/runtime/reconciler/host-config.js.map +1 -0
- package/lib/runtime/reconciler/instance-id.d.ts +3 -0
- package/lib/runtime/reconciler/instance-id.d.ts.map +1 -0
- package/lib/runtime/reconciler/instance-id.js +7 -0
- package/lib/runtime/reconciler/instance-id.js.map +1 -0
- package/lib/runtime/reconciler/reconciler.d.ts +4 -0
- package/lib/runtime/reconciler/reconciler.d.ts.map +1 -0
- package/lib/runtime/reconciler/reconciler.js +27 -0
- package/lib/runtime/reconciler/reconciler.js.map +1 -0
- package/lib/runtime/reconciler/sanitizer.d.ts +4 -0
- package/lib/runtime/reconciler/sanitizer.d.ts.map +1 -0
- package/lib/runtime/reconciler/sanitizer.js +26 -0
- package/lib/runtime/reconciler/sanitizer.js.map +1 -0
- package/lib/runtime/reconciler/tags/avatar-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/avatar-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/avatar-tag.js +12 -0
- package/lib/runtime/reconciler/tags/avatar-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/badge-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/badge-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/badge-tag.js +13 -0
- package/lib/runtime/reconciler/tags/badge-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/banner-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/banner-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/banner-tag.js +13 -0
- package/lib/runtime/reconciler/tags/banner-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/base-tag.d.ts +47 -0
- package/lib/runtime/reconciler/tags/base-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/base-tag.js +97 -0
- package/lib/runtime/reconciler/tags/base-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/button-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/button-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/button-tag.js +30 -0
- package/lib/runtime/reconciler/tags/button-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/dialog-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/dialog-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/dialog-tag.js +13 -0
- package/lib/runtime/reconciler/tags/dialog-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/form-field-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/form-field-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/form-field-tag.js +25 -0
- package/lib/runtime/reconciler/tags/form-field-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/form-submit-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/form-submit-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/form-submit-tag.js +17 -0
- package/lib/runtime/reconciler/tags/form-submit-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/form-tag.d.ts +10 -0
- package/lib/runtime/reconciler/tags/form-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/form-tag.js +81 -0
- package/lib/runtime/reconciler/tags/form-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/index.d.ts +34 -0
- package/lib/runtime/reconciler/tags/index.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/index.js +99 -0
- package/lib/runtime/reconciler/tags/index.js.map +1 -0
- package/lib/runtime/reconciler/tags/separator-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/separator-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/separator-tag.js +12 -0
- package/lib/runtime/reconciler/tags/separator-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/text-block-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/text-block-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/text-block-tag.js +13 -0
- package/lib/runtime/reconciler/tags/text-block-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/typography-tag.d.ts +17 -0
- package/lib/runtime/reconciler/tags/typography-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/typography-tag.js +36 -0
- package/lib/runtime/reconciler/tags/typography-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-alert-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-alert-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-alert-tag.js +17 -0
- package/lib/runtime/reconciler/tags/workflow-alert-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-badge-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-badge-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-badge-tag.js +16 -0
- package/lib/runtime/reconciler/tags/workflow-badge-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.js +25 -0
- package/lib/runtime/reconciler/tags/workflow-boolean-input-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.d.ts +9 -0
- package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.js +20 -0
- package/lib/runtime/reconciler/tags/workflow-conditional-render-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-input-editor-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-input-editor-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-input-editor-tag.js +31 -0
- package/lib/runtime/reconciler/tags/workflow-input-editor-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-input-group-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-input-group-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-input-group-tag.js +16 -0
- package/lib/runtime/reconciler/tags/workflow-input-group-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-handle-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-node-handle-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-handle-tag.js +24 -0
- package/lib/runtime/reconciler/tags/workflow-node-handle-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-row-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-node-row-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-row-tag.js +17 -0
- package/lib/runtime/reconciler/tags/workflow-node-row-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-node-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-tag.js +15 -0
- package/lib/runtime/reconciler/tags/workflow-node-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-text-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-node-text-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-node-text-tag.js +15 -0
- package/lib/runtime/reconciler/tags/workflow-node-text-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-number-input-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-number-input-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-number-input-tag.js +29 -0
- package/lib/runtime/reconciler/tags/workflow-number-input-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-panel-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-panel-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-panel-tag.js +15 -0
- package/lib/runtime/reconciler/tags/workflow-panel-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-section-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-section-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-section-tag.js +25 -0
- package/lib/runtime/reconciler/tags/workflow-section-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-select-input-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-select-input-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-select-input-tag.js +27 -0
- package/lib/runtime/reconciler/tags/workflow-select-input-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-separator-tag.d.ts +7 -0
- package/lib/runtime/reconciler/tags/workflow-separator-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-separator-tag.js +15 -0
- package/lib/runtime/reconciler/tags/workflow-separator-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-string-input-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-string-input-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-string-input-tag.js +28 -0
- package/lib/runtime/reconciler/tags/workflow-string-input-tag.js.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-variable-input-tag.d.ts +8 -0
- package/lib/runtime/reconciler/tags/workflow-variable-input-tag.d.ts.map +1 -0
- package/lib/runtime/reconciler/tags/workflow-variable-input-tag.js +30 -0
- package/lib/runtime/reconciler/tags/workflow-variable-input-tag.js.map +1 -0
- package/lib/runtime/reconciler/types.d.ts +18 -0
- package/lib/runtime/reconciler/types.d.ts.map +1 -0
- package/lib/runtime/reconciler/types.js +1 -0
- package/lib/runtime/reconciler/types.js.map +1 -0
- package/lib/runtime/register-event-handler.d.ts +3 -0
- package/lib/runtime/register-event-handler.d.ts.map +1 -0
- package/lib/runtime/register-event-handler.js +44 -0
- package/lib/runtime/register-event-handler.js.map +1 -0
- package/lib/runtime/run-server-function.d.ts +2 -0
- package/lib/runtime/run-server-function.d.ts.map +1 -0
- package/lib/runtime/run-server-function.js +56 -0
- package/lib/runtime/run-server-function.js.map +1 -0
- package/lib/runtime/surfaces.d.ts +54 -0
- package/lib/runtime/surfaces.d.ts.map +1 -0
- package/lib/runtime/surfaces.js +161 -0
- package/lib/runtime/surfaces.js.map +1 -0
- package/lib/runtime/workflow.d.ts +42 -0
- package/lib/runtime/workflow.d.ts.map +1 -0
- package/lib/runtime/workflow.js +385 -0
- package/lib/runtime/workflow.js.map +1 -0
- package/lib/runtime/wrap-event-handler.d.ts +6 -0
- package/lib/runtime/wrap-event-handler.d.ts.map +1 -0
- package/lib/runtime/wrap-event-handler.js +26 -0
- package/lib/runtime/wrap-event-handler.js.map +1 -0
- package/lib/server/auth.d.ts +10 -0
- package/lib/server/auth.d.ts.map +1 -0
- package/lib/server/auth.js +3 -0
- package/lib/server/auth.js.map +1 -0
- package/lib/server/connections.d.ts +20 -0
- package/lib/server/connections.d.ts.map +1 -0
- package/lib/server/connections.js +3 -0
- package/lib/server/connections.js.map +1 -0
- package/lib/server/database.d.ts +7 -0
- package/lib/server/database.d.ts.map +1 -0
- package/lib/server/database.js +3 -0
- package/lib/server/database.js.map +1 -0
- package/lib/server/fetch.d.ts +14 -0
- package/lib/server/fetch.d.ts.map +1 -0
- package/lib/server/fetch.js +3 -0
- package/lib/server/fetch.js.map +1 -0
- package/lib/server/index.d.ts +9 -0
- package/lib/server/index.d.ts.map +1 -0
- package/lib/server/index.js +3 -0
- package/lib/server/index.js.map +1 -0
- package/lib/server/settings.d.ts +5 -0
- package/lib/server/settings.d.ts.map +1 -0
- package/lib/server/settings.js +3 -0
- package/lib/server/settings.js.map +1 -0
- package/lib/server/storage.d.ts +4 -0
- package/lib/server/storage.d.ts.map +1 -0
- package/lib/server/storage.js +3 -0
- package/lib/server/storage.js.map +1 -0
- package/lib/server/webhooks.d.ts +18 -0
- package/lib/server/webhooks.d.ts.map +1 -0
- package/lib/server/webhooks.js +3 -0
- package/lib/server/webhooks.js.map +1 -0
- package/lib/server/workflow/index.d.ts +29 -0
- package/lib/server/workflow/index.d.ts.map +1 -0
- package/lib/server/workflow/index.js +3 -0
- package/lib/server/workflow/index.js.map +1 -0
- package/lib/shared/errors.d.ts +32 -0
- package/lib/shared/errors.d.ts.map +1 -0
- package/lib/shared/errors.js +62 -0
- package/lib/shared/errors.js.map +1 -0
- package/lib/shared/fetchable.d.ts +26 -0
- package/lib/shared/fetchable.d.ts.map +1 -0
- package/lib/shared/fetchable.js +33 -0
- package/lib/shared/fetchable.js.map +1 -0
- package/lib/shared/index.d.ts +4 -0
- package/lib/shared/index.d.ts.map +1 -0
- package/lib/shared/index.js +3 -0
- package/lib/shared/index.js.map +1 -0
- package/lib/shared/validation.d.ts +91 -0
- package/lib/shared/validation.d.ts.map +1 -0
- package/lib/shared/validation.js +46 -0
- package/lib/shared/validation.js.map +1 -0
- package/lib/spinners/determine-organization.spinner.d.ts +12 -0
- package/lib/spinners/determine-organization.spinner.d.ts.map +1 -0
- package/lib/spinners/determine-organization.spinner.js +41 -0
- package/lib/spinners/determine-organization.spinner.js.map +1 -0
- package/lib/spinners/get-app-info.spinner.d.ts +13 -0
- package/lib/spinners/get-app-info.spinner.d.ts.map +1 -0
- package/lib/spinners/get-app-info.spinner.js +7 -0
- package/lib/spinners/get-app-info.spinner.js.map +1 -0
- package/lib/spinners/get-app-slug-from-package-json.d.ts +3 -0
- package/lib/spinners/get-app-slug-from-package-json.d.ts.map +1 -0
- package/lib/spinners/get-app-slug-from-package-json.js +27 -0
- package/lib/spinners/get-app-slug-from-package-json.js.map +1 -0
- package/lib/spinners/get-versions.spinner.d.ts +14 -0
- package/lib/spinners/get-versions.spinner.d.ts.map +1 -0
- package/lib/spinners/get-versions.spinner.js +5 -0
- package/lib/spinners/get-versions.spinner.js.map +1 -0
- package/lib/types/result.d.ts +17 -0
- package/lib/types/result.d.ts.map +1 -0
- package/lib/types/result.js +12 -0
- package/lib/types/result.js.map +1 -0
- package/lib/util/add-auxx-hidden-directory-to-ts-config.d.ts +4 -0
- package/lib/util/add-auxx-hidden-directory-to-ts-config.d.ts.map +1 -0
- package/lib/util/add-auxx-hidden-directory-to-ts-config.js +37 -0
- package/lib/util/add-auxx-hidden-directory-to-ts-config.js.map +1 -0
- package/lib/util/assert-app-settings.d.ts +4 -0
- package/lib/util/assert-app-settings.d.ts.map +1 -0
- package/lib/util/assert-app-settings.js +13 -0
- package/lib/util/assert-app-settings.js.map +1 -0
- package/lib/util/calculate-bundle-sha.d.ts +3 -0
- package/lib/util/calculate-bundle-sha.d.ts.map +1 -0
- package/lib/util/calculate-bundle-sha.js +8 -0
- package/lib/util/calculate-bundle-sha.js.map +1 -0
- package/lib/util/compile-and-extract-settings.d.ts +3 -0
- package/lib/util/compile-and-extract-settings.d.ts.map +1 -0
- package/lib/util/compile-and-extract-settings.js +25 -0
- package/lib/util/compile-and-extract-settings.js.map +1 -0
- package/lib/util/compile-settings-schema.d.ts +12 -0
- package/lib/util/compile-settings-schema.d.ts.map +1 -0
- package/lib/util/compile-settings-schema.js +53 -0
- package/lib/util/compile-settings-schema.js.map +1 -0
- package/lib/util/copy-with-transform.d.ts +3 -0
- package/lib/util/copy-with-transform.d.ts.map +1 -0
- package/lib/util/copy-with-transform.js +56 -0
- package/lib/util/copy-with-transform.js.map +1 -0
- package/lib/util/create-directory.d.ts +3 -0
- package/lib/util/create-directory.d.ts.map +1 -0
- package/lib/util/create-directory.js +27 -0
- package/lib/util/create-directory.js.map +1 -0
- package/lib/util/ensure-app-entry-point.d.ts +7 -0
- package/lib/util/ensure-app-entry-point.d.ts.map +1 -0
- package/lib/util/ensure-app-entry-point.js +30 -0
- package/lib/util/ensure-app-entry-point.js.map +1 -0
- package/lib/util/error-reporting.d.ts +15 -0
- package/lib/util/error-reporting.d.ts.map +1 -0
- package/lib/util/error-reporting.js +51 -0
- package/lib/util/error-reporting.js.map +1 -0
- package/lib/util/exit-with-missing-app-settings.d.ts +2 -0
- package/lib/util/exit-with-missing-app-settings.d.ts.map +1 -0
- package/lib/util/exit-with-missing-app-settings.js +5 -0
- package/lib/util/exit-with-missing-app-settings.js.map +1 -0
- package/lib/util/exit-with-missing-entry-point.d.ts +2 -0
- package/lib/util/exit-with-missing-entry-point.d.ts.map +1 -0
- package/lib/util/exit-with-missing-entry-point.js +5 -0
- package/lib/util/exit-with-missing-entry-point.js.map +1 -0
- package/lib/util/extract-settings-schema.d.ts +19 -0
- package/lib/util/extract-settings-schema.d.ts.map +1 -0
- package/lib/util/extract-settings-schema.js +53 -0
- package/lib/util/extract-settings-schema.js.map +1 -0
- package/lib/util/find-available-port.d.ts +2 -0
- package/lib/util/find-available-port.d.ts.map +1 -0
- package/lib/util/find-available-port.js +22 -0
- package/lib/util/find-available-port.js.map +1 -0
- package/lib/util/find-surface-exports/find-surface-exports.d.ts +3 -0
- package/lib/util/find-surface-exports/find-surface-exports.d.ts.map +1 -0
- package/lib/util/find-surface-exports/find-surface-exports.js +71 -0
- package/lib/util/find-surface-exports/find-surface-exports.js.map +1 -0
- package/lib/util/find-surface-exports/generate-random-file-name.d.ts +2 -0
- package/lib/util/find-surface-exports/generate-random-file-name.d.ts.map +1 -0
- package/lib/util/find-surface-exports/generate-random-file-name.js +3 -0
- package/lib/util/find-surface-exports/generate-random-file-name.js.map +1 -0
- package/lib/util/find-surface-exports/parse-file-exports.d.ts +18 -0
- package/lib/util/find-surface-exports/parse-file-exports.d.ts.map +1 -0
- package/lib/util/find-surface-exports/parse-file-exports.js +105 -0
- package/lib/util/find-surface-exports/parse-file-exports.js.map +1 -0
- package/lib/util/find-surface-exports/surface-types.d.ts +3 -0
- package/lib/util/find-surface-exports/surface-types.d.ts.map +1 -0
- package/lib/util/find-surface-exports/surface-types.js +83 -0
- package/lib/util/find-surface-exports/surface-types.js.map +1 -0
- package/lib/util/find-surface-exports/walk-dir.d.ts +2 -0
- package/lib/util/find-surface-exports/walk-dir.d.ts.map +1 -0
- package/lib/util/find-surface-exports/walk-dir.js +25 -0
- package/lib/util/find-surface-exports/walk-dir.js.map +1 -0
- package/lib/util/generate-app-entry-point.d.ts +4 -0
- package/lib/util/generate-app-entry-point.d.ts.map +1 -0
- package/lib/util/generate-app-entry-point.js +116 -0
- package/lib/util/generate-app-entry-point.js.map +1 -0
- package/lib/util/generate-gitignore.d.ts +4 -0
- package/lib/util/generate-gitignore.d.ts.map +1 -0
- package/lib/util/generate-gitignore.js +39 -0
- package/lib/util/generate-gitignore.js.map +1 -0
- package/lib/util/generate-settings-files.d.ts +2 -0
- package/lib/util/generate-settings-files.d.ts.map +1 -0
- package/lib/util/generate-settings-files.js +68 -0
- package/lib/util/generate-settings-files.js.map +1 -0
- package/lib/util/get-app-entry-point.d.ts +5 -0
- package/lib/util/get-app-entry-point.d.ts.map +1 -0
- package/lib/util/get-app-entry-point.js +18 -0
- package/lib/util/get-app-entry-point.js.map +1 -0
- package/lib/util/get-package-manager-command.d.ts +2 -0
- package/lib/util/get-package-manager-command.d.ts.map +1 -0
- package/lib/util/get-package-manager-command.js +9 -0
- package/lib/util/get-package-manager-command.js.map +1 -0
- package/lib/util/hard-exit.d.ts +2 -0
- package/lib/util/hard-exit.d.ts.map +1 -0
- package/lib/util/hard-exit.js +5 -0
- package/lib/util/hard-exit.js.map +1 -0
- package/lib/util/listen-for-key.d.ts +4 -0
- package/lib/util/listen-for-key.d.ts.map +1 -0
- package/lib/util/listen-for-key.js +28 -0
- package/lib/util/listen-for-key.js.map +1 -0
- package/lib/util/load-auxx-cli-version.d.ts +3 -0
- package/lib/util/load-auxx-cli-version.d.ts.map +1 -0
- package/lib/util/load-auxx-cli-version.js +61 -0
- package/lib/util/load-auxx-cli-version.js.map +1 -0
- package/lib/util/load-env.d.ts +2 -0
- package/lib/util/load-env.d.ts.map +1 -0
- package/lib/util/load-env.js +23 -0
- package/lib/util/load-env.js.map +1 -0
- package/lib/util/print-logo.d.ts +2 -0
- package/lib/util/print-logo.d.ts.map +1 -0
- package/lib/util/print-logo.js +5 -0
- package/lib/util/print-logo.js.map +1 -0
- package/lib/util/print-message.d.ts +2 -0
- package/lib/util/print-message.d.ts.map +1 -0
- package/lib/util/print-message.js +3 -0
- package/lib/util/print-message.js.map +1 -0
- package/lib/util/spinner.d.ts +3 -0
- package/lib/util/spinner.d.ts.map +1 -0
- package/lib/util/spinner.js +61 -0
- package/lib/util/spinner.js.map +1 -0
- package/lib/util/to-camel-case.d.ts +2 -0
- package/lib/util/to-camel-case.d.ts.map +1 -0
- package/lib/util/to-camel-case.js +13 -0
- package/lib/util/to-camel-case.js.map +1 -0
- package/lib/util/typescript.d.ts +49 -0
- package/lib/util/typescript.d.ts.map +1 -0
- package/lib/util/typescript.js +122 -0
- package/lib/util/typescript.js.map +1 -0
- package/lib/util/upload-bundle.d.ts +3 -0
- package/lib/util/upload-bundle.d.ts.map +1 -0
- package/lib/util/upload-bundle.js +29 -0
- package/lib/util/upload-bundle.js.map +1 -0
- package/lint.cjs +17 -0
- package/package.json +130 -0
- package/root.d.ts +2 -0
- package/server.d.ts +2 -0
- package/template/.prettierrc.json +7 -0
- package/template/README.md +168 -0
- package/template/package.json +27 -0
- package/template/src/app.settings.ts +166 -0
- package/template/src/app.tsx +152 -0
- package/template/src/assets/icon.png +0 -0
- package/template/src/contact-form-action.tsx +123 -0
- package/template/src/events/connection-added.event.ts +34 -0
- package/template/src/events/connection-removed.event.ts +25 -0
- package/template/src/form-examples.tsx +359 -0
- package/template/src/get-user.server.ts +62 -0
- package/template/src/hello-world-action.tsx +42 -0
- package/template/src/hello-world-dialog.tsx +45 -0
- package/template/src/send-email.server.ts +84 -0
- package/template/src/send-email.workflow.tsx +204 -0
- package/template/src/test-user.tsx +21 -0
- package/template/src/webhooks/example.webhook.ts +14 -0
- package/template/sst-env.d.ts +10 -0
- package/template/tsconfig.json +42 -0
package/lib/errors.d.ts
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ApiError } from './api/api.js';
|
|
3
|
+
export type AuxxError = {
|
|
4
|
+
code: 'UNKNOWN_ERROR';
|
|
5
|
+
error: unknown;
|
|
6
|
+
} | {
|
|
7
|
+
code: 'FILE_SYSTEM_ERROR';
|
|
8
|
+
error: Error;
|
|
9
|
+
} | {
|
|
10
|
+
code: 'NETWORK_ERROR';
|
|
11
|
+
error: Error;
|
|
12
|
+
} | {
|
|
13
|
+
code: 'AUTHENTICATION_ERROR';
|
|
14
|
+
message: string;
|
|
15
|
+
} | {
|
|
16
|
+
code: 'VALIDATION_ERROR';
|
|
17
|
+
message: string;
|
|
18
|
+
issues?: z.ZodIssue[];
|
|
19
|
+
};
|
|
20
|
+
type Error = {
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
export type FetcherError = {
|
|
24
|
+
code: 'UNAUTHORIZED';
|
|
25
|
+
error: Error;
|
|
26
|
+
} | {
|
|
27
|
+
code: 'HTTP_ERROR';
|
|
28
|
+
status: number;
|
|
29
|
+
statusText: string;
|
|
30
|
+
body?: string;
|
|
31
|
+
error?: Error;
|
|
32
|
+
} | {
|
|
33
|
+
code: 'NETWORK_ERROR';
|
|
34
|
+
error: Error;
|
|
35
|
+
} | {
|
|
36
|
+
code: 'PARSE_ERROR';
|
|
37
|
+
error: Error;
|
|
38
|
+
} | {
|
|
39
|
+
code: 'VALIDATION_ERROR';
|
|
40
|
+
error: z.ZodError;
|
|
41
|
+
} | {
|
|
42
|
+
code: 'INVALID_RESPONSE';
|
|
43
|
+
error: Error;
|
|
44
|
+
} | {
|
|
45
|
+
code: 'CREATE_VERSION_ERROR';
|
|
46
|
+
error?: Error;
|
|
47
|
+
};
|
|
48
|
+
export type CliVersionError = {
|
|
49
|
+
code: 'UNABLE_TO_FIND_PACKAGE_JSON';
|
|
50
|
+
path: string;
|
|
51
|
+
} | {
|
|
52
|
+
code: 'UNABLE_TO_READ_PACKAGE_JSON';
|
|
53
|
+
error: unknown;
|
|
54
|
+
} | {
|
|
55
|
+
code: 'UNABLE_TO_PARSE_PACKAGE_JSON';
|
|
56
|
+
error: unknown;
|
|
57
|
+
} | {
|
|
58
|
+
code: 'ERROR_LOADING_PACKAGE_JSON';
|
|
59
|
+
error: unknown;
|
|
60
|
+
} | {
|
|
61
|
+
code: 'INVALID_PACKAGE_JSON';
|
|
62
|
+
error: z.ZodError;
|
|
63
|
+
} | {
|
|
64
|
+
code: 'NO_CLI_VERSION_FOUND';
|
|
65
|
+
};
|
|
66
|
+
export type CliVersionResult = Result<string, CliVersionError>;
|
|
67
|
+
export type AppSlugError = {
|
|
68
|
+
code: 'MALFORMED_PACKAGE_JSON';
|
|
69
|
+
error: z.ZodError;
|
|
70
|
+
} | {
|
|
71
|
+
code: 'INVALID_JSON';
|
|
72
|
+
error: Error;
|
|
73
|
+
} | {
|
|
74
|
+
code: 'FILE_SYSTEM_ERROR';
|
|
75
|
+
error: Error | z.ZodError;
|
|
76
|
+
};
|
|
77
|
+
export type UploadError = {
|
|
78
|
+
code: 'BUNDLE_UPLOAD_ERROR';
|
|
79
|
+
uploadUrl: string;
|
|
80
|
+
status?: number;
|
|
81
|
+
statusText?: string;
|
|
82
|
+
error?: string;
|
|
83
|
+
} | {
|
|
84
|
+
code: 'START_UPLOAD_ERROR';
|
|
85
|
+
error: Error;
|
|
86
|
+
} | {
|
|
87
|
+
code: 'COMPLETE_BUNDLE_UPLOAD_ERROR';
|
|
88
|
+
error: Error;
|
|
89
|
+
};
|
|
90
|
+
export type CreateProjectError = {
|
|
91
|
+
code: 'DIRECTORY_ALREADY_EXISTS';
|
|
92
|
+
path: string;
|
|
93
|
+
} | {
|
|
94
|
+
code: 'WRITE_ACCESS_DENIED';
|
|
95
|
+
path: string;
|
|
96
|
+
} | {
|
|
97
|
+
code: 'FAILED_TO_CREATE_DIRECTORY';
|
|
98
|
+
path: string;
|
|
99
|
+
} | {
|
|
100
|
+
code: 'FAILED_TO_COPY_FILE';
|
|
101
|
+
src: string;
|
|
102
|
+
dest: string;
|
|
103
|
+
} | {
|
|
104
|
+
code: 'FAILED_TO_LIST_FILES';
|
|
105
|
+
path: string;
|
|
106
|
+
} | {
|
|
107
|
+
code: 'FAILED_TO_READ_FILE';
|
|
108
|
+
path: string;
|
|
109
|
+
} | {
|
|
110
|
+
code: 'FAILED_TO_WRITE_FILE';
|
|
111
|
+
path: string;
|
|
112
|
+
};
|
|
113
|
+
export type DetermineOrganizationError = ApiError | {
|
|
114
|
+
code: 'NO_ORGANIZATION_FOUND';
|
|
115
|
+
organization_slug: string;
|
|
116
|
+
} | {
|
|
117
|
+
code: 'NO_ORGANIZATIONS_FOUND';
|
|
118
|
+
};
|
|
119
|
+
export declare class AuxxSDKError extends Error {
|
|
120
|
+
readonly code: string;
|
|
121
|
+
constructor(error: AuxxError);
|
|
122
|
+
}
|
|
123
|
+
export declare const jsErrorSchema: z.ZodObject<{
|
|
124
|
+
text: z.ZodString;
|
|
125
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
column: z.ZodNumber;
|
|
127
|
+
file: z.ZodString;
|
|
128
|
+
length: z.ZodNumber;
|
|
129
|
+
line: z.ZodNumber;
|
|
130
|
+
lineText: z.ZodString;
|
|
131
|
+
additionalLines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
132
|
+
namespace: z.ZodString;
|
|
133
|
+
suggestion: z.ZodString;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
column: number;
|
|
136
|
+
file: string;
|
|
137
|
+
length: number;
|
|
138
|
+
line: number;
|
|
139
|
+
lineText: string;
|
|
140
|
+
namespace: string;
|
|
141
|
+
suggestion: string;
|
|
142
|
+
additionalLines?: string[] | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
column: number;
|
|
145
|
+
file: string;
|
|
146
|
+
length: number;
|
|
147
|
+
line: number;
|
|
148
|
+
lineText: string;
|
|
149
|
+
namespace: string;
|
|
150
|
+
suggestion: string;
|
|
151
|
+
additionalLines?: string[] | undefined;
|
|
152
|
+
}>>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
text: string;
|
|
155
|
+
location?: {
|
|
156
|
+
column: number;
|
|
157
|
+
file: string;
|
|
158
|
+
length: number;
|
|
159
|
+
line: number;
|
|
160
|
+
lineText: string;
|
|
161
|
+
namespace: string;
|
|
162
|
+
suggestion: string;
|
|
163
|
+
additionalLines?: string[] | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
text: string;
|
|
167
|
+
location?: {
|
|
168
|
+
column: number;
|
|
169
|
+
file: string;
|
|
170
|
+
length: number;
|
|
171
|
+
line: number;
|
|
172
|
+
lineText: string;
|
|
173
|
+
namespace: string;
|
|
174
|
+
suggestion: string;
|
|
175
|
+
additionalLines?: string[] | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
}>;
|
|
178
|
+
export type JsError = z.infer<typeof jsErrorSchema>;
|
|
179
|
+
export declare const errorsAndWarningsSchema: z.ZodObject<{
|
|
180
|
+
errors: z.ZodReadonly<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
181
|
+
text: z.ZodString;
|
|
182
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
column: z.ZodNumber;
|
|
184
|
+
file: z.ZodString;
|
|
185
|
+
length: z.ZodNumber;
|
|
186
|
+
line: z.ZodNumber;
|
|
187
|
+
lineText: z.ZodString;
|
|
188
|
+
additionalLines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
189
|
+
namespace: z.ZodString;
|
|
190
|
+
suggestion: z.ZodString;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
column: number;
|
|
193
|
+
file: string;
|
|
194
|
+
length: number;
|
|
195
|
+
line: number;
|
|
196
|
+
lineText: string;
|
|
197
|
+
namespace: string;
|
|
198
|
+
suggestion: string;
|
|
199
|
+
additionalLines?: string[] | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
column: number;
|
|
202
|
+
file: string;
|
|
203
|
+
length: number;
|
|
204
|
+
line: number;
|
|
205
|
+
lineText: string;
|
|
206
|
+
namespace: string;
|
|
207
|
+
suggestion: string;
|
|
208
|
+
additionalLines?: string[] | undefined;
|
|
209
|
+
}>>;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
text: string;
|
|
212
|
+
location?: {
|
|
213
|
+
column: number;
|
|
214
|
+
file: string;
|
|
215
|
+
length: number;
|
|
216
|
+
line: number;
|
|
217
|
+
lineText: string;
|
|
218
|
+
namespace: string;
|
|
219
|
+
suggestion: string;
|
|
220
|
+
additionalLines?: string[] | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
text: string;
|
|
224
|
+
location?: {
|
|
225
|
+
column: number;
|
|
226
|
+
file: string;
|
|
227
|
+
length: number;
|
|
228
|
+
line: number;
|
|
229
|
+
lineText: string;
|
|
230
|
+
namespace: string;
|
|
231
|
+
suggestion: string;
|
|
232
|
+
additionalLines?: string[] | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
}>, "many">>>;
|
|
235
|
+
warnings: z.ZodReadonly<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
|
+
text: z.ZodString;
|
|
237
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
column: z.ZodNumber;
|
|
239
|
+
file: z.ZodString;
|
|
240
|
+
length: z.ZodNumber;
|
|
241
|
+
line: z.ZodNumber;
|
|
242
|
+
lineText: z.ZodString;
|
|
243
|
+
additionalLines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
244
|
+
namespace: z.ZodString;
|
|
245
|
+
suggestion: z.ZodString;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
column: number;
|
|
248
|
+
file: string;
|
|
249
|
+
length: number;
|
|
250
|
+
line: number;
|
|
251
|
+
lineText: string;
|
|
252
|
+
namespace: string;
|
|
253
|
+
suggestion: string;
|
|
254
|
+
additionalLines?: string[] | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
column: number;
|
|
257
|
+
file: string;
|
|
258
|
+
length: number;
|
|
259
|
+
line: number;
|
|
260
|
+
lineText: string;
|
|
261
|
+
namespace: string;
|
|
262
|
+
suggestion: string;
|
|
263
|
+
additionalLines?: string[] | undefined;
|
|
264
|
+
}>>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
text: string;
|
|
267
|
+
location?: {
|
|
268
|
+
column: number;
|
|
269
|
+
file: string;
|
|
270
|
+
length: number;
|
|
271
|
+
line: number;
|
|
272
|
+
lineText: string;
|
|
273
|
+
namespace: string;
|
|
274
|
+
suggestion: string;
|
|
275
|
+
additionalLines?: string[] | undefined;
|
|
276
|
+
} | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
text: string;
|
|
279
|
+
location?: {
|
|
280
|
+
column: number;
|
|
281
|
+
file: string;
|
|
282
|
+
length: number;
|
|
283
|
+
line: number;
|
|
284
|
+
lineText: string;
|
|
285
|
+
namespace: string;
|
|
286
|
+
suggestion: string;
|
|
287
|
+
additionalLines?: string[] | undefined;
|
|
288
|
+
} | undefined;
|
|
289
|
+
}>, "many">>>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
errors?: readonly {
|
|
292
|
+
text: string;
|
|
293
|
+
location?: {
|
|
294
|
+
column: number;
|
|
295
|
+
file: string;
|
|
296
|
+
length: number;
|
|
297
|
+
line: number;
|
|
298
|
+
lineText: string;
|
|
299
|
+
namespace: string;
|
|
300
|
+
suggestion: string;
|
|
301
|
+
additionalLines?: string[] | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
}[] | undefined;
|
|
304
|
+
warnings?: readonly {
|
|
305
|
+
text: string;
|
|
306
|
+
location?: {
|
|
307
|
+
column: number;
|
|
308
|
+
file: string;
|
|
309
|
+
length: number;
|
|
310
|
+
line: number;
|
|
311
|
+
lineText: string;
|
|
312
|
+
namespace: string;
|
|
313
|
+
suggestion: string;
|
|
314
|
+
additionalLines?: string[] | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
}[] | undefined;
|
|
317
|
+
}, {
|
|
318
|
+
errors?: readonly {
|
|
319
|
+
text: string;
|
|
320
|
+
location?: {
|
|
321
|
+
column: number;
|
|
322
|
+
file: string;
|
|
323
|
+
length: number;
|
|
324
|
+
line: number;
|
|
325
|
+
lineText: string;
|
|
326
|
+
namespace: string;
|
|
327
|
+
suggestion: string;
|
|
328
|
+
additionalLines?: string[] | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
warnings?: readonly {
|
|
332
|
+
text: string;
|
|
333
|
+
location?: {
|
|
334
|
+
column: number;
|
|
335
|
+
file: string;
|
|
336
|
+
length: number;
|
|
337
|
+
line: number;
|
|
338
|
+
lineText: string;
|
|
339
|
+
namespace: string;
|
|
340
|
+
suggestion: string;
|
|
341
|
+
additionalLines?: string[] | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
}[] | undefined;
|
|
344
|
+
}>;
|
|
345
|
+
export type CompleteState = 'complete';
|
|
346
|
+
export type ErroredState = 'error';
|
|
347
|
+
export type PendingState = 'pending';
|
|
348
|
+
export interface Pending {
|
|
349
|
+
state: PendingState;
|
|
350
|
+
}
|
|
351
|
+
export interface Errored<TError> {
|
|
352
|
+
state: ErroredState;
|
|
353
|
+
error: TError;
|
|
354
|
+
}
|
|
355
|
+
export interface Complete<TValue> {
|
|
356
|
+
state: CompleteState;
|
|
357
|
+
value: TValue;
|
|
358
|
+
}
|
|
359
|
+
export type Result<TValue, TError> = Errored<TError> | Complete<TValue>;
|
|
360
|
+
export type AsyncResult<TValue, TError> = Promise<Result<TValue, TError>>;
|
|
361
|
+
export type Loadable<TValue> = Pending | Complete<TValue>;
|
|
362
|
+
export type Fetchable<TValue, TError = unknown> = Pending | Errored<TError> | Complete<TValue>;
|
|
363
|
+
export type ErrorOf<T> = T extends Errored<infer TError> ? TError : never;
|
|
364
|
+
export type ValueOf<T> = T extends Complete<infer TValue> ? TValue : never;
|
|
365
|
+
export declare function complete<TValue>(value: TValue): Complete<TValue>;
|
|
366
|
+
export declare function errored<TError>(error: TError): Errored<TError>;
|
|
367
|
+
export declare function pending(): Pending;
|
|
368
|
+
export declare function isComplete<TFetchable extends Fetchable<any, any>>(fetchable: TFetchable): fetchable is Extract<TFetchable, Complete<any>>;
|
|
369
|
+
export declare function isErrored<TFetchable extends Fetchable<any, any>>(fetchable: TFetchable): fetchable is Extract<TFetchable, Errored<any>>;
|
|
370
|
+
export declare function isPending<TFetchable extends Fetchable<any, any>>(fetchable: TFetchable): fetchable is Extract<TFetchable, Pending>;
|
|
371
|
+
export declare function fromPromise<TValue, TError = unknown>(promise: Promise<TValue>): AsyncResult<TValue, TError>;
|
|
372
|
+
export declare function fromThrowable<TValue, TError = unknown>(func: () => TValue): Result<TValue, TError>;
|
|
373
|
+
export declare function map<TFetchable extends Fetchable<any, any>, TMapped>(fetchable: TFetchable, func: (value: ValueOf<TFetchable>) => TMapped): TFetchable extends Complete<any> ? Exclude<TFetchable, Complete<any>> | Complete<TMapped> : TFetchable;
|
|
374
|
+
export declare function mapError<TFetchable extends Fetchable<any, any>, TMapped>(fetchable: TFetchable, func: (error: ErrorOf<TFetchable>) => TMapped): TFetchable extends Errored<any> ? Exclude<TFetchable, Errored<any>> | Errored<TMapped> : TFetchable;
|
|
375
|
+
export declare function valueOrElse<TFetchable extends Fetchable<any, any>, TFallback>(fetchable: TFetchable, fallback: TFallback): TFetchable extends Complete<infer TValue> ? TValue : TFallback;
|
|
376
|
+
export declare function combine<T extends Result<any, any>[]>(results: T): Result<{
|
|
377
|
+
[K in keyof T]: T[K] extends Result<infer V, any> ? V : never;
|
|
378
|
+
}, any>;
|
|
379
|
+
export declare function combineAsync<T extends Array<Promise<Result<any, any>>> | Record<any, Promise<Result<any, any>>>>(promises: T): Promise<Result<{
|
|
380
|
+
[K in keyof T]: T[K] extends Promise<Result<infer V, any>> ? V : never;
|
|
381
|
+
}, any>>;
|
|
382
|
+
export declare function combineAsyncRecord(promises: Record<any, Promise<Result<any, any>>>): Promise<any>;
|
|
383
|
+
export declare function combineAsyncArray(promises: Array<Promise<Result<any, any>>>): Promise<any>;
|
|
384
|
+
export {};
|
|
385
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAK5C,MAAM,MAAM,SAAS,GACjB;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;CAA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) {
|
|
5
|
+
super(error.code);
|
|
6
|
+
this.code = error.code;
|
|
7
|
+
this.name = 'AuxxSDKError';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export const jsErrorSchema = z.object({
|
|
11
|
+
text: z.string(),
|
|
12
|
+
location: z
|
|
13
|
+
.object({
|
|
14
|
+
column: z.number(),
|
|
15
|
+
file: z.string(),
|
|
16
|
+
length: z.number(),
|
|
17
|
+
line: z.number(),
|
|
18
|
+
lineText: z.string(),
|
|
19
|
+
additionalLines: z.array(z.string()).optional(),
|
|
20
|
+
namespace: z.string(),
|
|
21
|
+
suggestion: z.string(),
|
|
22
|
+
})
|
|
23
|
+
.optional(),
|
|
24
|
+
});
|
|
25
|
+
export const errorsAndWarningsSchema = z.object({
|
|
26
|
+
errors: z.array(jsErrorSchema).optional().readonly(),
|
|
27
|
+
warnings: z.array(jsErrorSchema).optional().readonly(),
|
|
28
|
+
});
|
|
29
|
+
export function complete(value) {
|
|
30
|
+
return { state: 'complete', value };
|
|
31
|
+
}
|
|
32
|
+
export function errored(error) {
|
|
33
|
+
return { state: 'error', error };
|
|
34
|
+
}
|
|
35
|
+
export function pending() {
|
|
36
|
+
return { state: 'pending' };
|
|
37
|
+
}
|
|
38
|
+
export function isComplete(fetchable) {
|
|
39
|
+
return fetchable.state === 'complete';
|
|
40
|
+
}
|
|
41
|
+
export function isErrored(fetchable) {
|
|
42
|
+
return fetchable.state === 'error';
|
|
43
|
+
}
|
|
44
|
+
export function isPending(fetchable) {
|
|
45
|
+
return fetchable.state === 'pending';
|
|
46
|
+
}
|
|
47
|
+
export async function fromPromise(promise) {
|
|
48
|
+
try {
|
|
49
|
+
const value = await promise;
|
|
50
|
+
return complete(value);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
return errored(error);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export function fromThrowable(func) {
|
|
57
|
+
try {
|
|
58
|
+
return complete(func());
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
return errored(error);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export function map(fetchable, func) {
|
|
65
|
+
if (isComplete(fetchable)) {
|
|
66
|
+
return complete(func(fetchable.value));
|
|
67
|
+
}
|
|
68
|
+
return fetchable;
|
|
69
|
+
}
|
|
70
|
+
export function mapError(fetchable, func) {
|
|
71
|
+
if (isErrored(fetchable)) {
|
|
72
|
+
return errored(func(fetchable.error));
|
|
73
|
+
}
|
|
74
|
+
return fetchable;
|
|
75
|
+
}
|
|
76
|
+
export function valueOrElse(fetchable, fallback) {
|
|
77
|
+
if (isComplete(fetchable)) {
|
|
78
|
+
return fetchable.value;
|
|
79
|
+
}
|
|
80
|
+
return fallback;
|
|
81
|
+
}
|
|
82
|
+
export function combine(results) {
|
|
83
|
+
for (const result of results) {
|
|
84
|
+
if (isErrored(result)) {
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return complete(results.map((r) => r.value));
|
|
89
|
+
}
|
|
90
|
+
export async function combineAsync(promises) {
|
|
91
|
+
if (Array.isArray(promises)) {
|
|
92
|
+
return combineAsyncArray(promises);
|
|
93
|
+
}
|
|
94
|
+
return combineAsyncRecord(promises);
|
|
95
|
+
}
|
|
96
|
+
export async function combineAsyncRecord(promises) {
|
|
97
|
+
return new Promise((resolve, reject) => {
|
|
98
|
+
const entries = Object.entries(promises);
|
|
99
|
+
if (entries.length === 0) {
|
|
100
|
+
resolve(complete(promises));
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const values = {};
|
|
104
|
+
let completed = 0;
|
|
105
|
+
const target = entries.length;
|
|
106
|
+
let hasSettled = false;
|
|
107
|
+
for (const [key, promise] of entries) {
|
|
108
|
+
values[key] = undefined;
|
|
109
|
+
promise
|
|
110
|
+
.then((result) => {
|
|
111
|
+
if (isErrored(result)) {
|
|
112
|
+
if (hasSettled) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
hasSettled = true;
|
|
116
|
+
resolve(result);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
completed++;
|
|
120
|
+
values[key] = result.value;
|
|
121
|
+
if (completed === target && !hasSettled) {
|
|
122
|
+
hasSettled = true;
|
|
123
|
+
resolve(complete(values));
|
|
124
|
+
}
|
|
125
|
+
})
|
|
126
|
+
.catch((error) => {
|
|
127
|
+
if (hasSettled) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
hasSettled = true;
|
|
131
|
+
reject(error);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
export async function combineAsyncArray(promises) {
|
|
137
|
+
return new Promise((resolve, reject) => {
|
|
138
|
+
const values = [];
|
|
139
|
+
if (promises.length === 0) {
|
|
140
|
+
resolve(complete(values));
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
let completed = 0;
|
|
144
|
+
const target = promises.length;
|
|
145
|
+
let hasSettled = false;
|
|
146
|
+
promises.forEach((promise, index) => {
|
|
147
|
+
promise
|
|
148
|
+
.then((result) => {
|
|
149
|
+
if (isErrored(result)) {
|
|
150
|
+
if (hasSettled) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
hasSettled = true;
|
|
154
|
+
resolve(result);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
completed++;
|
|
158
|
+
values[index] = result.value;
|
|
159
|
+
if (completed === target && !hasSettled) {
|
|
160
|
+
hasSettled = true;
|
|
161
|
+
resolve(complete(values));
|
|
162
|
+
}
|
|
163
|
+
})
|
|
164
|
+
.catch((error) => {
|
|
165
|
+
if (hasSettled) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
hasSettled = true;
|
|
169
|
+
reject(error);
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","s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MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;YACzB,OAAM;QACR,CAAC;QACD,IAAI,SAAS,GAAG,CAAC,CAAA;QACjB,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;QAC9B,IAAI,UAAU,GAAG,KAAK,CAAA;QACtB,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;YAClC,OAAO;iBACJ,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;gBACf,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;oBACtB,IAAI,UAAU,EAAE,CAAC;wBACf,OAAM;oBACR,CAAC;oBACD,UAAU,GAAG,IAAI,CAAA;oBACjB,OAAO,CAAC,MAAM,CAAC,CAAA;oBACf,OAAM;gBACR,CAAC;gBACD,SAAS,EAAE,CAAA;gBACX,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAA;gBAC5B,IAAI,SAAS,KAAK,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;oBACxC,UAAU,GAAG,IAAI,CAAA;oBACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;gBAC3B,CAAC;YACH,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACf,IAAI,UAAU,EAAE,CAAC;oBACf,OAAM;gBACR,CAAC;gBACD,UAAU,GAAG,IAAI,CAAA;gBACjB,MAAM,CAAC,KAAK,CAAC,CAAA;YACf,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AppSlugError, CliVersionError, CreateProjectError, DetermineOrganizationError, Errored, UploadError } from './errors.js';
|
|
2
|
+
type AuxxError = {
|
|
3
|
+
message: string;
|
|
4
|
+
code: string;
|
|
5
|
+
uploadUrl?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
path?: string;
|
|
8
|
+
dest?: string;
|
|
9
|
+
src?: string;
|
|
10
|
+
error?: AuxxError;
|
|
11
|
+
workspace_slug?: string;
|
|
12
|
+
organization_slug?: string;
|
|
13
|
+
issues?: AuxxError[];
|
|
14
|
+
};
|
|
15
|
+
export declare function printFetcherError(message: string, { error }: any): void;
|
|
16
|
+
export declare function printUploadError(error: Errored<UploadError>): void;
|
|
17
|
+
export declare function printCreateProjectError(e: Errored<CreateProjectError>): undefined;
|
|
18
|
+
export declare function printPackageJsonError(result: Errored<AppSlugError>): void;
|
|
19
|
+
export declare function printCliVersionError({ error }: Errored<CliVersionError>): undefined;
|
|
20
|
+
export declare function printDetermineOrganizationError(e: Errored<DetermineOrganizationError>): void;
|
|
21
|
+
export declare function printKeychainError(error: {
|
|
22
|
+
code: string;
|
|
23
|
+
error: string;
|
|
24
|
+
}): void;
|
|
25
|
+
export declare function printLogSubscriptionError(error: AuxxError): string | void;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=print-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-errors.d.ts","sourceRoot":"","sources":["../src/print-errors.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,kBAAkB,EAElB,0BAA0B,EAC1B,OAAO,EACP,WAAW,EACZ,MAAM,aAAa,CAAA;AAIpB,KAAK,SAAS,GAAG;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM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