Skip to content

WarmHubClient

new WarmHubClient(apiUrl?, options?): WarmHubClient

string

WarmHubClientOptions

WarmHubClient

new WarmHubClient(options?): WarmHubClient

WarmHubClientOptions

WarmHubClient

readonly apiUrl: string


readonly auth: object

getClientId: () => Promise<string>

Promise<string>

sync: () => Promise<AuthSyncResult>

Promise<AuthSyncResult>

currentUser: () => Promise<CurrentUserInfo>

Promise<CurrentUserInfo>


readonly access: object

checkRepoPermission: (orgName, repoName, permission) => Promise<boolean>

string

string

string

Promise<boolean>

checkOrgPermission: (orgName, permission) => Promise<boolean>

string

string

Promise<boolean>


readonly diagnostics: object

ping: () => Promise<PingResult>

Promise<PingResult>

capabilities: () => Promise<Capabilities>

Promise<Capabilities>


readonly component: object

list: (orgName, repoName, opts?) => Promise<ComponentListResult>

string

string

ComponentListOptions

Promise<ComponentListResult>

get: (orgName, repoName, componentId, opts?) => Promise<ComponentDetail>

string

string

string

ComponentGetOptions

Promise<ComponentDetail>


readonly commit: object

apply: (orgName, repoName, author, message, operations, opts?) => Promise<CommitApplyResult>

string

string

string

string | undefined

Operation[]

string

string

number

Promise<CommitApplyResult>

log: (orgName, repoName, opts?) => Promise<LogResult>

string

string

LogOptions

Promise<LogResult>


readonly org: object

get: (orgName) => Promise<Org>

string

Promise<Org>

getCallerRole: (orgName) => Promise<"owner" | "admin" | "editor" | "viewer" | null>

string

Promise<"owner" | "admin" | "editor" | "viewer" | null>

list: (opts?) => Promise<Page<Org>>

OrgListOptions

Promise<Page<Org>>

create: (name, displayName?, description?) => Promise<Org>

string

string

string

Promise<Org>

setDescription: (orgName, description?) => Promise<Org>

string

string

Promise<Org>

rename: (orgName, newName) => Promise<Org>

string

string

Promise<Org>

addMember: (orgName, email, role) => Promise<OrgMember>

string

string

"owner" | "admin" | "editor" | "viewer"

Promise<OrgMember>

removeMember: (orgName, email) => Promise<void>

string

string

Promise<void>

changeMemberRole: (orgName, email, role) => Promise<OrgMember>

string

string

"owner" | "admin" | "editor" | "viewer"

Promise<OrgMember>

setMemberScopes: (orgName, email, scopes) => Promise<void>

string

string

WireScopeEntry[]

Promise<void>

clearMemberScopes: (orgName, email) => Promise<void>

string

string

Promise<void>

listMembers: (orgName, opts?) => Promise<OrgMemberList>

string

OrgListMembersOptions

Promise<OrgMemberList>

archive: (orgName) => Promise<Org>

string

Promise<Org>

unarchive: (orgName) => Promise<Org>

string

Promise<Org>


readonly repo: object

get: (orgName, repoName) => Promise<Repo>

string

string

Promise<Repo>

getStats: (orgName, repoName) => Promise<RepoStats>

string

string

Promise<RepoStats>

getConfigureStats: (orgName, repoName) => Promise<RepoConfigureStats>

string

string

Promise<RepoConfigureStats>

list: (orgName, opts?) => Promise<RepoListResult>

string

RepoListOptions

Promise<RepoListResult>

create: (orgName, repoName, description?, visibility?) => Promise<Repo>

string

string

string

RepoVisibility

Promise<Repo>

setDescription: (orgName, repoName, description?) => Promise<Repo>

string

string

string

Promise<Repo>

setVisibility: (orgName, repoName, visibility) => Promise<Repo>

string

string

RepoVisibility

Promise<Repo>

rename: (orgName, repoName, newName) => Promise<Repo>

string

string

string

Promise<Repo>

archive: (orgName, repoName) => Promise<Repo>

string

string

Promise<Repo>

unarchive: (orgName, repoName) => Promise<Repo>

string

string

Promise<Repo>

listPage: (orgName, opts?) => Promise<RepoListPageResult>

string

RepoListPageOptions

Promise<RepoListPageResult>

getReadme: (orgName, repoName) => Promise<ThingDetail | null>

string

string

Promise<ThingDetail | null>


readonly shape: object

list: (orgName, repoName, opts?) => Promise<ShapeListResult>

string

string

ShapeListOptions

Promise<ShapeListResult>

get: (orgName, repoName, shapeName, opts?) => Promise<ShapeGetResult>

string

string

string

ShapeGetOptions

Promise<ShapeGetResult>

create: (orgName, repoName, shapeName, fields, opts?) => Promise<ShapeChangeResult>

string

string

string

Record<string, unknown>

ShapeCreateOptions

Promise<ShapeChangeResult>

revise: (orgName, repoName, shapeName, newFields, opts?) => Promise<ShapeChangeResult>

string

string

string

Record<string, unknown>

ShapeReviseOptions

Promise<ShapeChangeResult>

remove: (orgName, repoName, shapeName) => Promise<ShapeRemoveResult>

string

string

string

Promise<ShapeRemoveResult>

rename: (orgName, repoName, oldName, newName) => Promise<RenameResult>

string

string

string

string

Promise<RenameResult>


readonly subscription: object

create: (input) => Promise<SubscriptionInfo>

SubscriptionCompatCreateInput

Promise<SubscriptionInfo>

get: (orgName, repoName, name) => Promise<SubscriptionInfo>

string

string

string

Promise<SubscriptionInfo>

list: (orgName, repoName) => Promise<SubscriptionList>

string

string

Promise<SubscriptionList>

update: (input) => Promise<SubscriptionInfo>

SubscriptionCompatUpdateInput

Promise<SubscriptionInfo>

pause: (orgName, repoName, name) => Promise<{ name: string; active: boolean; }>

string

string

string

Promise<{ name: string; active: boolean; }>

resume: (orgName, repoName, name) => Promise<{ name: string; active: boolean; }>

string

string

string

Promise<{ name: string; active: boolean; }>

remove: (orgName, repoName, name) => Promise<{ ok: true; }>

string

string

string

Promise<{ ok: true; }>

bindCredentials: (orgName, repoName, subscriptionName, credentialSetName) => Promise<SubscriptionBindCredentialsResult>

string

string

string

string

Promise<SubscriptionBindCredentialsResult>

unbindCredentials: (orgName, repoName, subscriptionName) => Promise<SubscriptionUnbindCredentialsResult>

string

string

string

Promise<SubscriptionUnbindCredentialsResult>


readonly action: object

acquireLease: (orgName, repoName, subscriptionName, holderId, holderType, opts?) => Promise<ActionLeaseAcquire>

string

string

string

string

"sdk" | "sprite" | "cli"

number

number

Promise<ActionLeaseAcquire>

heartbeatLease: (orgName, repoName, subscriptionName, holderId, ttlMs?) => Promise<ActionLeaseOp>

string

string

string

string

number

Promise<ActionLeaseOp>

releaseLease: (orgName, repoName, subscriptionName, holderId) => Promise<ActionLeaseOp>

string

string

string

string

Promise<ActionLeaseOp>

claimDelivery: (orgName, repoName, subscriptionName, commitId, holderId) => Promise<ActionLeaseOp>

string

string

string

string

string

Promise<ActionLeaseOp>

completeDelivery: (orgName, repoName, subscriptionName, commitId, holderId) => Promise<ActionLeaseOp>

string

string

string

string

string

Promise<ActionLeaseOp>

liveFeed: (orgName, repoName, subscriptionName, opts?) => Promise<ActionLiveFeedResult>

string

string

string

ActionLiveFeedOptions

Promise<ActionLiveFeedResult>

listRuns: (orgName, repoName, opts?) => Promise<ActionRun[]>

string

string

ActionListRunsOptions

Promise<ActionRun[]>

getRunAttempts: (orgName, repoName, subscriptionName, commitId) => Promise<ActionAttempt[]>

string

string

string

string

Promise<ActionAttempt[]>

listNotifications: (orgName, repoName, opts?) => Promise<ActionNotification[]>

string

string

ActionListNotificationsOptions

Promise<ActionNotification[]>


readonly thing: object

head: (orgName, repoName, opts?) => Promise<HeadResult>

string

string

ThingHeadOptions

Promise<HeadResult>

get: (orgName, repoName, wref, version?, opts?) => Promise<ThingDetail>

string

string

string

number

ThingGetOptions

Promise<ThingDetail>

getMany: (orgName, repoName, wrefs, version?, opts?) => Promise<ThingGetManyResult>

string

string

string[]

number

string

Promise<ThingGetManyResult>

history: (orgName, repoName, opts) => Promise<HistoryResult>

string

string

ThingHistoryOptions

Promise<HistoryResult>

rename: (orgName, repoName, shapeName, oldName, newName) => Promise<RenameResult>

string

string

string

string

string

Promise<RenameResult>

resolve: (orgName, repoName, wref, opts?) => Promise<ThingDetail>

string

string

string

string

Promise<ThingDetail>

about: (orgName, repoName, wref, opts?) => Promise<AboutResult>

string

string

string

AboutOptions

Promise<AboutResult>

query: (orgName, repoName, opts?) => Promise<HeadResult>

string

string

FilterOptions

Promise<HeadResult>

search: (orgName, repoName, query, opts?) => Promise<HeadResult>

string

string

string

SearchOptions

Promise<HeadResult>

count: (orgName, repoName, opts?) => Promise<CountResult>

string

string

FilterOptions

Promise<CountResult>

refs: (orgName, repoName, wref, opts?) => Promise<RefsResult>

string

string

string

RefsOptions

Promise<RefsResult>


readonly live: object

thingHead: (orgName, repoName, opts, onUpdate) => Promise<LiveHandle>

string

string

LiveThingHeadOptions | undefined

(result) => void | Promise<void>

Promise<LiveHandle>

thingHistory: (orgName, repoName, opts, onUpdate) => Promise<LiveHandle>

string

string

LiveThingHistoryOptions

(result) => void | Promise<void>

Promise<LiveHandle>

subscriptionLog: (orgName, repoName, subscriptionName, opts, onUpdate) => Promise<LiveHandle>

string

string

string

LiveSubscriptionLogOptions | undefined

(result) => void | Promise<void>

Promise<LiveHandle>


readonly workspace: object

create: (orgName, repoName, name, description?) => Promise<WorkspaceRef>

string

string

string

string

Promise<WorkspaceRef>

list: (orgName, repoName, opts?) => Promise<WorkspaceList>

string

string

WorkspaceListOptions

Promise<WorkspaceList>

get: (orgName, repoName, workspaceName) => Promise<WorkspaceDetail>

string

string

string

Promise<WorkspaceDetail>

remove: (orgName, repoName, workspaceName) => Promise<WorkspaceRemoveResult>

string

string

string

Promise<WorkspaceRemoveResult>

revert: (orgName, repoName, workspaceName, wref) => Promise<WorkspaceRevertResult>

string

string

string

string

Promise<WorkspaceRevertResult>

discard: (orgName, repoName, workspaceName, wref) => Promise<WorkspaceDiscardResult>

string

string

string

string

Promise<WorkspaceDiscardResult>

status: (orgName, repoName, workspaceName) => Promise<WorkspaceStatusResult>

string

string

string

Promise<WorkspaceStatusResult>

validate: (orgName, repoName, workspaceName) => Promise<WorkspaceValidateResult>

string

string

string

Promise<WorkspaceValidateResult>

rebase: (orgName, repoName, workspaceName) => Promise<WorkspaceRebaseResult>

string

string

string

Promise<WorkspaceRebaseResult>


readonly token: object

create: (input) => Promise<TokenCreateResult>

TokenCreateInput

Promise<TokenCreateResult>

list: () => Promise<TokenInfo[]>

Promise<TokenInfo[]>

get: (name) => Promise<TokenInfo | null>

string

Promise<TokenInfo | null>

revoke: (name) => Promise<TokenRevokeResult>

string

Promise<TokenRevokeResult>


readonly ingest: object

begin: (input) => Promise<IngestBeginResult>

IngestBeginInput

Promise<IngestBeginResult>

append: (input) => Promise<IngestAppendResult>

IngestAppendInput

Promise<IngestAppendResult>

finalize: (input) => Promise<IngestFinalizeResult>

IngestFinalizeInput

Promise<IngestFinalizeResult>

status: (input) => Promise<IngestStatusResult>

IngestStatusInput

Promise<IngestStatusResult>


readonly credential: object

createSet: (orgName, repoName, name, opts?) => Promise<CredentialInfo>

string

string

string

"repo" | "org"

string

Promise<CredentialInfo>

listSets: (orgName, repoName) => Promise<CredentialInfo[]>

string

string

Promise<CredentialInfo[]>

getSet: (orgName, repoName, name) => Promise<CredentialInfo>

string

string

string

Promise<CredentialInfo>

setKey: (orgName, repoName, setName, keyName, value) => Promise<CredentialKeyMutationResult>

string

string

string

string

string

Promise<CredentialKeyMutationResult>

setKeys: (orgName, repoName, setName, secrets) => Promise<CredentialKeyMutationResult>

string

string

string

Record<string, string>

Promise<CredentialKeyMutationResult>

unsetKey: (orgName, repoName, setName, keyName) => Promise<CredentialKeyMutationResult>

string

string

string

string

Promise<CredentialKeyMutationResult>

deleteSet: (orgName, repoName, setName) => Promise<CredentialDeleteResult>

string

string

string

Promise<CredentialDeleteResult>

grantRepo: (orgName, repoName, setName, targetRepoName) => Promise<CredentialGrantResult>

string

string

string

string

Promise<CredentialGrantResult>

ungrantRepo: (orgName, repoName, setName, targetRepoName) => Promise<CredentialUngrantResult>

string

string

string

string

Promise<CredentialUngrantResult>

listAuditLog: (orgName, repoName, setName, opts?) => Promise<CredentialAuditEntry[]>

string

string

string

number

Promise<CredentialAuditEntry[]>

revokeSet: (orgName, repoName, setName, opts?) => Promise<CredentialRevokeResult>

string

string

string

string

Promise<CredentialRevokeResult>


readonly credentials: object

createSet: (orgName, repoName, name, opts?) => Promise<CredentialInfo>

string

string

string

"repo" | "org"

string

Promise<CredentialInfo>

listSets: (orgName, repoName) => Promise<CredentialInfo[]>

string

string

Promise<CredentialInfo[]>

getSet: (orgName, repoName, name) => Promise<CredentialInfo>

string

string

string

Promise<CredentialInfo>

setKey: (orgName, repoName, setName, keyName, value) => Promise<CredentialKeyMutationResult>

string

string

string

string

string

Promise<CredentialKeyMutationResult>

setKeys: (orgName, repoName, setName, secrets) => Promise<CredentialKeyMutationResult>

string

string

string

Record<string, string>

Promise<CredentialKeyMutationResult>

unsetKey: (orgName, repoName, setName, keyName) => Promise<CredentialKeyMutationResult>

string

string

string

string

Promise<CredentialKeyMutationResult>

deleteSet: (orgName, repoName, setName) => Promise<CredentialDeleteResult>

string

string

string

Promise<CredentialDeleteResult>

grantRepo: (orgName, repoName, setName, targetRepoName) => Promise<CredentialGrantResult>

string

string

string

string

Promise<CredentialGrantResult>

ungrantRepo: (orgName, repoName, setName, targetRepoName) => Promise<CredentialUngrantResult>

string

string

string

string

Promise<CredentialUngrantResult>

listAuditLog: (orgName, repoName, setName, opts?) => Promise<CredentialAuditEntry[]>

string

string

string

number

Promise<CredentialAuditEntry[]>

revokeSet: (orgName, repoName, setName, opts?) => Promise<CredentialRevokeResult>

string

string

string

string

Promise<CredentialRevokeResult>


readonly actions: object

acquireLease: (orgName, repoName, subscriptionName, holderId, holderType, opts?) => Promise<ActionLeaseAcquire>

string

string

string

string

"sdk" | "sprite" | "cli"

number

number

Promise<ActionLeaseAcquire>

heartbeatLease: (orgName, repoName, subscriptionName, holderId, ttlMs?) => Promise<ActionLeaseOp>

string

string

string

string

number

Promise<ActionLeaseOp>

releaseLease: (orgName, repoName, subscriptionName, holderId) => Promise<ActionLeaseOp>

string

string

string

string

Promise<ActionLeaseOp>

claimDelivery: (orgName, repoName, subscriptionName, commitId, holderId) => Promise<ActionLeaseOp>

string

string

string

string

string

Promise<ActionLeaseOp>

completeDelivery: (orgName, repoName, subscriptionName, commitId, holderId) => Promise<ActionLeaseOp>

string

string

string

string

string

Promise<ActionLeaseOp>

liveFeed: (orgName, repoName, subscriptionName, opts?) => Promise<ActionLiveFeedResult>

string

string

string

ActionLiveFeedOptions

Promise<ActionLiveFeedResult>

listRuns: (orgName, repoName, opts?) => Promise<ActionRun[]>

string

string

ActionListRunsOptions

Promise<ActionRun[]>

getRunAttempts: (orgName, repoName, subscriptionName, commitId) => Promise<ActionAttempt[]>

string

string

string

string

Promise<ActionAttempt[]>

listNotifications: (orgName, repoName, opts?) => Promise<ActionNotification[]>

string

string

ActionListNotificationsOptions

Promise<ActionNotification[]>


readonly changeset: object

publish: (orgName, repoName, workspaceName, message, rationale?, opts?) => Promise<ChangesetRef>

string

string

string

string

string

boolean

Promise<ChangesetRef>

list: (orgName, repoName, opts?) => Promise<Page<ChangesetDetail>>

string

string

string

number

Promise<Page<ChangesetDetail>>

get: (orgName, repoName, changesetNumber) => Promise<ChangesetDetail>

string

string

number

Promise<ChangesetDetail>

accept: (orgName, repoName, changesetNumber) => Promise<ChangesetAcceptResult>

string

string

number

Promise<ChangesetAcceptResult>

reject: (orgName, repoName, changesetNumber, reason?) => Promise<ChangesetAcceptResult>

string

string

number

string

Promise<ChangesetAcceptResult>

withdraw: (orgName, repoName, changesetNumber) => Promise<ChangesetAcceptResult>

string

string

number

Promise<ChangesetAcceptResult>

validate: (orgName, repoName, changesetNumber) => Promise<ChangesetValidation>

string

string

number

Promise<ChangesetValidation>

withAccessToken(accessToken): WarmHubClient

AccessTokenProvider

WarmHubClient