Account
20 methods on the Account resource.
20 methods · 0 available to app tokens40 pages in SDK Reference
import { Compozy } from "@compozy/client";20 of 20
accountBillingPortalcancelAccountLogincheckoutAccountcreateAccountTokendecideAccountApprovaldeleteAccountdismissAccountSignInNoticesgetAccountgetAccountApprovallistAccountApprovalslistAccountDeviceslistAccountTokenslogoutAccountpatchAccountDevicepatchAccountEmailrevokeAccountDevicerevokeAccountTokenstartAccountLoginstreamAccountssestreamAccountSignInsse
accountBillingPortal
Open account billing
compozy.account.accountBillingPortal() → Promise<AccountBillingResponse>
POST /api/account/billing-portalapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.accountBillingPortal();cancelAccountLogin
Cancel account sign-in
compozy.account.cancelAccountLogin({ query }) → Promise<void>
Options
- attempt_idstringquery
- Cancel only the named sign-in attempt
DELETE /api/account/loginapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.cancelAccountLogin();checkoutAccount
Start a Pro checkout
compozy.account.checkoutAccount({ body }) → Promise<AccountBillingResponse>
Request bodyAccountCheckoutRequest
POST /api/account/checkoutapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.checkoutAccount({ body: { /* request fields */ } });createAccountToken
Create an account token for local use
compozy.account.createAccountToken({ body }) → Promise<AccountTokenCreated>
Request bodyAccountTokenCreate
POST /api/account/tokensapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.createAccountToken({ body: { /* request fields */ } });decideAccountApproval
Deliver an approval decision
compozy.account.decideAccountApproval({ path, body }) → Promise<ApprovalDelivery>
Options
- idstringpathrequired
- Account resource ID
Request bodyAccountApprovalDecisionRequest
POST /api/account/approvals/{id}/decisionapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.decideAccountApproval({ path: { "id": "id" }, body: { /* request fields */ } });deleteAccount
Start account deletion and sign out
compozy.account.deleteAccount({ body }) → Promise<AccountDeleteResponse>
Request bodyAccountDeleteRequest
DELETE /api/accountapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.deleteAccount({ body: { /* request fields */ } });dismissAccountSignInNotices
Dismiss sign-in notices on this installation
compozy.account.dismissAccountSignInNotices() → Promise<void>
POST /api/account/sign-in-notices/dismissapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.dismissAccountSignInNotices();getAccount
Read the installation account
compozy.account.getAccount({ query }) → Promise<AccountStatusResponse>
Options
- refreshbooleanquery
- Refresh account details from Compozy Cloud
GET /api/accountapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.getAccount();getAccountApproval
Read an approval and its applied result
compozy.account.getAccountApproval({ path }) → Promise<AccountApproval>
Options
- idstringpathrequired
- Account resource ID
GET /api/account/approvals/{id}app tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.getAccountApproval({ path: { "id": "id" } });listAccountApprovals
List pending and recently decided approvals
compozy.account.listAccountApprovals() → Promise<AccountApprovalsResponse>
GET /api/account/approvalsapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.listAccountApprovals();Show all 20 methods
listAccountDevices
List the account's devices
compozy.account.listAccountDevices() → Promise<AccountDevicesResponse>
GET /api/account/devicesapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.listAccountDevices();listAccountTokens
List account tokens
compozy.account.listAccountTokens() → Promise<AccountTokenList>
GET /api/account/tokensapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.listAccountTokens();logoutAccount
Sign out this installation
compozy.account.logoutAccount({ body }) → Promise<AccountLogoutResponse>
Request bodyAccountLogoutRequest
POST /api/account/logoutapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.logoutAccount({ body: { /* request fields */ } });patchAccountDevice
Update a device on this account
compozy.account.patchAccountDevice({ path, body }) → Promise<AccountDevice>
Options
- idstringpathrequired
- Account resource ID
Request bodyAccountDevicePatch
PATCH /api/account/devices/{id}app tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.patchAccountDevice({ path: { "id": "id" }, body: { /* request fields */ } });patchAccountEmail
Update the product news preference
compozy.account.patchAccountEmail({ body }) → Promise<AccountStatusResponse>
Request bodyAccountEmailPatchRequest
PATCH /api/accountapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.patchAccountEmail({ body: { /* request fields */ } });revokeAccountDevice
Revoke a device on this account
compozy.account.revokeAccountDevice({ path }) → Promise<void>
Options
- idstringpathrequired
- Account resource ID
DELETE /api/account/devices/{id}app tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.revokeAccountDevice({ path: { "id": "id" } });revokeAccountToken
Revoke an account token
compozy.account.revokeAccountToken({ path }) → Promise<void>
Options
- idstringpathrequired
- Account resource ID
DELETE /api/account/tokens/{id}app tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.revokeAccountToken({ path: { "id": "id" } });startAccountLogin
Start account sign-in
compozy.account.startAccountLogin({ body }) → Promise<AccountLoginResponse>
Request bodyAccountLoginRequest
POST /api/account/loginapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();const result = await compozy.account.startAccountLogin({ body: { /* request fields */ } });streamAccount
Stream changes for the active account
compozy.events("streamAccount", { query }) → AsyncIterable<StreamEvent<SseFrame<"streamAccount">>>
Options
- after_sequencestringquery
- Last account event ID in this auth generation
GET /api/account/streamapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();for await (const frame of compozy.events("streamAccount", {})) { console.log(frame);}streamAccountSignIn
Stream anonymous sign-in progress
compozy.events("streamAccountSignIn", {}) → AsyncIterable<StreamEvent<SseFrame<"streamAccountSignIn">>>
GET /api/account/sign-in/eventsapp tokens denied
import { Compozy } from "@compozy/client"; const compozy = await Compozy.connect();for await (const frame of compozy.events("streamAccountSignIn", {})) { console.log(frame);}