The me area has 4 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).
meChannelGet
Which build of the hosted app the caller sees and why: their own pick, the team’s channel and lock
- Request:
GETon/v1/me/channel
meChannelGet(args?: Record<string, never>, options?: CallOptions): Promise<ViewerChannel>meChannelPut
Pick the build you see: follow the team, stable or beta; the internal build is for Overlane staff only
- Request:
PUTon/v1/me/channel
meChannelPut(args: { body: PutViewerChannel }, options?: CallOptions): Promise<ViewerChannel>meDelete
Delete the caller’s own account: leaves every team, removes personal rows and returns a receipt with counts per table (a person does this; refused while the caller is the last owner of a team that still has other members)
- Request:
DELETEon/v1/me/account
meDelete(args?: Record<string, never>, options?: CallOptions): Promise<AccountDeletionReceipt>meGet
Who the bearer token belongs to
- Request:
GETon/v1/me
meGet(args?: Record<string, never>, options?: CallOptions): Promise<WhoAmI>