Skip to content

createSentryClient

createSentryClient(opts): object

Defined in: clients/sentry-client/dist/index.d.mts:208

Create a Sentry client with auth, projects, sentryApps and workflows groups, all sharing one REST client built from opts.

SentryClientOptions

object

auth: object

getOrg: (org) => Promise<SentryOrganization>

string

Promise<SentryOrganization>

organizations: () => Promise<SentryOrganization[]>

Promise<SentryOrganization[]>

projects: object

create: (org, team, input) => Promise<SentryProject>

string

string

CreateSentryProjectInput

Promise<SentryProject>

get: (org, slug) => Promise<SentryProject>

string

string

Promise<SentryProject>

keys: (org, slug) => Promise<SentryKey[]>

string

string

Promise<SentryKey[]>

list: (org) => Promise<SentryProject[]>

string

Promise<SentryProject[]>

sentryApps: object

create: (org, input) => Promise<SentryApp>

string

SentryAppInput

Promise<SentryApp>

get: (slug) => Promise<SentryApp>

string

Promise<SentryApp>

installations: (org) => Promise<SentryAppInstallation[]>

string

Promise<SentryAppInstallation[]>

list: (org) => Promise<SentryApp[]>

string

Promise<SentryApp[]>

update: (slug, input) => Promise<SentryApp>

string

SentryAppInput

Promise<SentryApp>

workflows: object

create: (org, input) => Promise<SentryWorkflow>

string

SentryWorkflowInput

Promise<SentryWorkflow>

delete: (org, id) => Promise<void>

string

string

Promise<void>

detectors: (org) => Promise<SentryDetector[]>

string

Promise<SentryDetector[]>

get: (org, id) => Promise<SentryWorkflow>

string

string

Promise<SentryWorkflow>

list: (org) => Promise<SentryWorkflow[]>

string

Promise<SentryWorkflow[]>

update: (org, id, input) => Promise<SentryWorkflow>

string

string

SentryWorkflowInput

Promise<SentryWorkflow>