mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 02:57:36 +00:00
* chore: audit preload root comments and track repository coverage * docs: track repository comment audit coverage * chore: keep comment audit tracker local * chore: shorten preload API contract comments --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
68 lines
2.7 KiB
TypeScript
68 lines
2.7 KiB
TypeScript
import type {
|
|
OrcaCloudSignInProgress,
|
|
ConnectCurrentOrcaProfileResult,
|
|
CreateCloudLinkedOrcaProfileArgs,
|
|
CreateCloudLinkedOrcaProfileResult,
|
|
CreateLocalOrcaProfileArgs,
|
|
CreateLocalOrcaProfileResult,
|
|
FindOrcaProfileProjectsByPathArgs,
|
|
FindOrcaProfileProjectsByPathResult,
|
|
OrcaProfileAuthStatus,
|
|
OrcaProfileListResult,
|
|
OrcaProfileOrgInviteRevokeArgs,
|
|
OrcaProfileOrgMemberChangeRoleArgs,
|
|
OrcaProfileOrgMemberInviteArgs,
|
|
OrcaProfileOrgMemberMutationResult,
|
|
OrcaProfileOrgMemberRemoveArgs,
|
|
OrcaProfileOrgMembersListArgs,
|
|
OrcaProfileOrgMembersListResult,
|
|
RefreshCurrentOrcaProfileAuthResult,
|
|
SelectOrcaProfileOrgArgs,
|
|
SelectOrcaProfileOrgResult,
|
|
SignOutCurrentOrcaProfileResult,
|
|
SwitchOrcaProfileArgs,
|
|
SwitchOrcaProfileResult,
|
|
TransferOrcaProfileProjectArgs,
|
|
TransferOrcaProfileProjectResult
|
|
} from '../../shared/orca-profiles'
|
|
|
|
export type OrcaProfileApi = {
|
|
list: () => Promise<OrcaProfileListResult>
|
|
authStatus: () => Promise<OrcaProfileAuthStatus>
|
|
/** Fires when main changed the stored auth status on its own (e.g. a revoked session). */
|
|
onAuthStatusChanged: (callback: () => void) => () => void
|
|
createLocal: (args?: CreateLocalOrcaProfileArgs) => Promise<CreateLocalOrcaProfileResult>
|
|
createCloudLinked: (
|
|
args?: CreateCloudLinkedOrcaProfileArgs
|
|
) => Promise<CreateCloudLinkedOrcaProfileResult>
|
|
switchProfile: (args: SwitchOrcaProfileArgs) => Promise<SwitchOrcaProfileResult>
|
|
transferProject: (
|
|
args: TransferOrcaProfileProjectArgs
|
|
) => Promise<TransferOrcaProfileProjectResult>
|
|
findProjectProfiles: (
|
|
args: FindOrcaProfileProjectsByPathArgs
|
|
) => Promise<FindOrcaProfileProjectsByPathResult>
|
|
connectCurrent: () => Promise<ConnectCurrentOrcaProfileResult>
|
|
signInProgress: () => Promise<OrcaCloudSignInProgress | null>
|
|
onSignInProgressChanged: (
|
|
callback: (progress: OrcaCloudSignInProgress | null) => void
|
|
) => () => void
|
|
cancelSignIn: () => Promise<void>
|
|
refreshAuth: () => Promise<RefreshCurrentOrcaProfileAuthResult>
|
|
signOutCurrent: () => Promise<SignOutCurrentOrcaProfileResult>
|
|
selectOrg: (args: SelectOrcaProfileOrgArgs) => Promise<SelectOrcaProfileOrgResult>
|
|
orgMembersList: (args: OrcaProfileOrgMembersListArgs) => Promise<OrcaProfileOrgMembersListResult>
|
|
orgMemberInvite: (
|
|
args: OrcaProfileOrgMemberInviteArgs
|
|
) => Promise<OrcaProfileOrgMemberMutationResult>
|
|
orgInviteRevoke: (
|
|
args: OrcaProfileOrgInviteRevokeArgs
|
|
) => Promise<OrcaProfileOrgMemberMutationResult>
|
|
orgMemberChangeRole: (
|
|
args: OrcaProfileOrgMemberChangeRoleArgs
|
|
) => Promise<OrcaProfileOrgMemberMutationResult>
|
|
orgMemberRemove: (
|
|
args: OrcaProfileOrgMemberRemoveArgs
|
|
) => Promise<OrcaProfileOrgMemberMutationResult>
|
|
}
|