@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/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
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 {}
|
package/lib/api/api.d.ts
ADDED
|
@@ -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,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAKhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAoB/C,MAAM,MAAM,QAAQ,GAChB;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,0BAA0B,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GACzD;IAA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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
|
+
}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AAE,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"}
|