-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathapi-client.ts
More file actions
180 lines (179 loc) · 4.24 KB
/
Copy pathapi-client.ts
File metadata and controls
180 lines (179 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/**
* Sentry API Client — barrel re-export
*
* All domain modules are re-exported here so existing imports
* (`import { ... } from "./api-client.js"`) continue to work.
*
* Domain modules live in `src/lib/api/` and are organized by entity:
* - infrastructure: shared helpers, types, constants, raw request functions
* - organizations: org CRUD and region discovery
* - projects: project CRUD, search, DSN keys
* - teams: team CRUD, project teams
* - repositories: repository listing
* - issues: issue listing, lookup, status updates
* - events: event retrieval and resolution
* - replays: replay listing and detail lookup
* - traces: trace details and transactions
* - logs: log listing, detailed fetch, trace-logs
* - seer: Seer AI root cause analysis and planning
* - trials: product trial management
* - users: current user info
*/
export {
createDashboard,
getDashboard,
listDashboardRevisionsPaginated,
listDashboardsPaginated,
queryAllWidgets,
restoreDashboardRevision,
updateDashboard,
} from "./api/dashboards.js";
export type { MetricMeta } from "./api/discover.js";
export { queryEvents, queryMetricsMeta } from "./api/discover.js";
export {
findEventAcrossOrgs,
getEvent,
getLatestEvent,
listIssueEvents,
type ResolvedEvent,
resolveEventInOrg,
} from "./api/events.js";
export {
API_MAX_PER_PAGE,
type ApiRequestOptions,
apiRequest,
apiRequestToRegion,
autoPaginate,
buildSearchParams,
ORG_FANOUT_CONCURRENCY,
type PaginatedResponse,
parseLinkHeader,
rawApiRequest,
} from "./api/infrastructure.js";
export {
buildIssueListCollapse,
getIssue,
getIssueByShortId,
getIssueInOrg,
getSharedIssue,
type IgnoreStatusDetails,
ISSUE_DETAIL_COLLAPSE,
type IssueCollapseField,
type IssueSort,
type IssuesPage,
listIssuesAllPages,
listIssuesPaginated,
type MergeIssuesResult,
mergeIssues,
type ParsedResolveSpec,
parseResolveSpec,
RESOLVE_COMMIT_EXPLICIT_PREFIX,
RESOLVE_COMMIT_SENTINEL,
RESOLVE_NEXT_RELEASE_SENTINEL,
type ResolveCommitSpec,
type ResolveStatusDetails,
tryGetIssueByShortId,
updateIssueStatus,
} from "./api/issues.js";
export {
getLogItemDetail,
getLogs,
type LogSortDirection,
listLogs,
listTraceLogs,
} from "./api/logs.js";
export {
getOrganization,
getUserRegions,
listOrganizations,
listOrganizationsInRegion,
listOrganizationsUncached,
} from "./api/organizations.js";
export {
type CreatedProjectDetails,
createProject,
createProjectWithAutoTeam,
createProjectWithDsn,
deleteProject,
findProjectByDsnKey,
findProjectsByPattern,
findProjectsBySlug,
getProject,
getProjectKeys,
listProjects,
listProjectsPaginated,
MEMBER_PROJECT_CREATION_DISABLED_DETAIL,
matchesWordBoundary,
type ProjectSearchResult,
type ProjectWithOrg,
resolveOrgDisplayName,
tryGetPrimaryDsn,
} from "./api/projects.js";
export {
createRelease,
createReleaseDeploy,
deleteRelease,
getRelease,
type ListReleasesOptions,
listProjectEnvironments,
listReleaseDeploys,
listReleasesForProject,
listReleasesPaginated,
NO_REPO_INTEGRATIONS_MESSAGE,
type ReleaseSortValue,
setCommitsAuto,
setCommitsLocal,
setCommitsWithRefs,
updateRelease,
} from "./api/releases.js";
export {
getReplay,
getReplayRecordingSegments,
isReplaySortValue,
type ListReplaysOptions,
listReplayIdsForIssue,
listReplays,
REPLAY_SORT_FIELDS,
type ReplaySortField,
type ReplaySortValue,
} from "./api/replays.js";
export {
listAllRepositories,
listRepositories,
listRepositoriesCached,
listRepositoriesPaginated,
} from "./api/repositories.js";
export {
getAutofixState,
triggerRootCauseAnalysis,
triggerSolutionPlanning,
} from "./api/seer.js";
export {
addMemberToTeam,
createTeam,
listProjectTeams,
listTeams,
listTeamsPaginated,
} from "./api/teams.js";
export type {
FetchMultiSpanDetailsOptions,
TraceItemAttribute,
TraceItemDetail,
} from "./api/traces.js";
export {
attributesToDict,
fetchMultiSpanDetails,
getDetailedTrace,
getSpanDetails,
getTraceMeta,
listSpans,
listTransactions,
normalizeTraceSpan,
REDUNDANT_DETAIL_ATTRS,
} from "./api/traces.js";
export {
getCustomerTrialInfo,
getProductTrials,
startProductTrial,
} from "./api/trials.js";
export { getCurrentUser } from "./api/users.js";