v0.4.0
Released on 2026-04-24.
globalaccess modifier for cross-namespace visibility. A third tier alongside private (default) andpub,globalemits the Apexglobalkeyword required by managed-package APIs,@RestResourceclasses,@InvocableMethodmethods used in subscribers, andBatchable/Schedulable/Queueableclasses exposed cross-namespace. Applies tofn,type,opaque type, andconstdeclarations. When any declaration in a module isglobal, the generated outer Apex class is emitted asglobaltoo. Composes with the sharing annotations:global with sharing class,global without sharing class, andglobal inherited sharing classare all valid. Full reference at vertex-run.github.io/reference/visibility.- REST resources as a first-class language feature. A
.vtxfile annotated with@RestResource(urlMapping: "/...")at module level becomes a Salesforce custom Apex REST endpoint. Handler functions use@Get,@Post,@Put,@Patch, and@Deletewith an optional path suffix:@Get("/{accountId}")binds the captured segment to a same-namedStringparameter on the handler. Handlers have the shapefn(req: Request, <captures: String>...): Response; return aResponsevalue built with factory functions likeResponse.ok(body: x),Response.text(status: 200, body: "..."),Response.no_content(). A single module supports multiple handlers per verb, dispatched at runtime by path-pattern specificity (literal segments beat captures). Full reference at vertex-run.github.io/reference/salesforce/rest-resources.