VantageClient
Defined in: packages/sdk/src/client.ts:73
Top-level client. Construct one per token; resource handles are
created eagerly in the constructor so callers can dot through
vc.websites, vc.seo, etc. without lazy-init surprises.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VantageClient(
opts):VantageClient
Defined in: packages/sdk/src/client.ts:89
Parameters
Section titled “Parameters”Returns
Section titled “Returns”VantageClient
Properties
Section titled “Properties”analytics
Section titled “analytics”
readonlyanalytics:AnalyticsApi
Defined in: packages/sdk/src/client.ts:85
blueprint
Section titled “blueprint”
readonlyblueprint:BlueprintApi
Defined in: packages/sdk/src/client.ts:79
bookings
Section titled “bookings”
readonlybookings:BookingsApi
Defined in: packages/sdk/src/client.ts:81
clients
Section titled “clients”
readonlyclients:ClientsApi
Defined in: packages/sdk/src/client.ts:84
content
Section titled “content”
readonlycontent:ContentApi
Defined in: packages/sdk/src/client.ts:77
domains
Section titled “domains”
readonlydomains:DomainsApi
Defined in: packages/sdk/src/client.ts:80
readonlyjobs:JobsApi
Defined in: packages/sdk/src/client.ts:86
readonlyme:MeApi
Defined in: packages/sdk/src/client.ts:87
readonlymedia:MediaApi
Defined in: packages/sdk/src/client.ts:78
newsletter
Section titled “newsletter”
readonlynewsletter:NewsletterApi
Defined in: packages/sdk/src/client.ts:83
readonlyseo:SeoApi
Defined in: packages/sdk/src/client.ts:82
websites
Section titled “websites”
readonlywebsites:WebsitesApi
Defined in: packages/sdk/src/client.ts:76
Methods
Section titled “Methods”whoami()
Section titled “whoami()”whoami():
Promise<{auth:unknown; }>
Defined in: packages/sdk/src/client.ts:114
Sanity check: returns whoever the token belongs to. Useful as a “did I log in correctly” probe before doing real work.
Returns
Section titled “Returns”Promise<{ auth: unknown; }>