1// Submissions over REST — the twin of app/wix/forms/submissions.ts. Same exports, same2// SubmissionDto; the rules come from submissions-core (the SAME file the SDK transport uses,3// deployed flat next to this one). Every call runs with the visitor token: `CreateSubmission` is4// listed under an owner scope and still returns 200 to an anonymous visitor, so a published site5// can submit its own forms. Submissions are write-only from a visitor — the resolved create IS6// the confirmation. A rejection throws a WixApiError whose `details` block `submissionErrors` and7// `formLevelError` map onto the page; let it throw.8// docs: https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/create-submission.md9// docs: https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/get-media-upload-url.md10// docs: https://dev.wix.com/docs/api-reference/business-management/headless/redirects/create-redirect-session.md11import { wixRequest } from "../../shared/rest/client.js";