@keystrokehq/sentry 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +218 -0
- package/dist/_official/index.d.mts +3 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +2 -0
- package/dist/_runtime/index.mjs +3 -0
- package/dist/alerts.d.mts +551 -0
- package/dist/alerts.mjs +300 -0
- package/dist/client.d.mts +86 -0
- package/dist/client.mjs +233 -0
- package/dist/connection.d.mts +3 -0
- package/dist/connection.mjs +3 -0
- package/dist/dashboards.d.mts +203 -0
- package/dist/dashboards.mjs +122 -0
- package/dist/debug-files.d.mts +127 -0
- package/dist/debug-files.mjs +73 -0
- package/dist/deploys.d.mts +103 -0
- package/dist/deploys.mjs +67 -0
- package/dist/discover.d.mts +235 -0
- package/dist/discover.mjs +138 -0
- package/dist/endpoint-factory-BwjbcPwW.mjs +96 -0
- package/dist/environments.d.mts +121 -0
- package/dist/environments.mjs +71 -0
- package/dist/errors-DfEFwcTe.mjs +142 -0
- package/dist/events-api.d.mts +311 -0
- package/dist/events-api.mjs +184 -0
- package/dist/events.d.mts +754 -0
- package/dist/events.mjs +142 -0
- package/dist/feedback.d.mts +99 -0
- package/dist/feedback.mjs +63 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-C8KHkeNG.d.mts +58 -0
- package/dist/integration-WwY95cWE.mjs +156 -0
- package/dist/issues.d.mts +563 -0
- package/dist/issues.mjs +324 -0
- package/dist/members.d.mts +365 -0
- package/dist/members.mjs +156 -0
- package/dist/messaging.d.mts +1 -0
- package/dist/messaging.mjs +1 -0
- package/dist/monitors.d.mts +539 -0
- package/dist/monitors.mjs +234 -0
- package/dist/notifications.d.mts +221 -0
- package/dist/notifications.mjs +133 -0
- package/dist/organizations.d.mts +563 -0
- package/dist/organizations.mjs +334 -0
- package/dist/pagination-PlgAqbZt.mjs +116 -0
- package/dist/project-keys.d.mts +287 -0
- package/dist/project-keys.mjs +122 -0
- package/dist/projects.d.mts +687 -0
- package/dist/projects.mjs +378 -0
- package/dist/provider-app-BANn4KOL.d.mts +45 -0
- package/dist/releases.d.mts +949 -0
- package/dist/releases.mjs +479 -0
- package/dist/replays.d.mts +307 -0
- package/dist/replays.mjs +192 -0
- package/dist/schemas.d.mts +381 -0
- package/dist/schemas.mjs +318 -0
- package/dist/scim.d.mts +413 -0
- package/dist/scim.mjs +249 -0
- package/dist/scopes-RRU0vt-a.mjs +36 -0
- package/dist/teams.d.mts +561 -0
- package/dist/teams.mjs +266 -0
- package/dist/triggers.d.mts +83 -0
- package/dist/triggers.mjs +263 -0
- package/dist/user-emails.d.mts +117 -0
- package/dist/user-emails.mjs +60 -0
- package/dist/verification.d.mts +30 -0
- package/dist/verification.mjs +83 -0
- package/dist/webhooks.d.mts +199 -0
- package/dist/webhooks.mjs +108 -0
- package/package.json +178 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { orgProjectScopeInputSchema, sentryIdSchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema, sentryMemberSchema, sentryProjectDetailsSchema, sentryProjectSummarySchema, sentrySlugSchema, sentryTeamSchema } from "./schemas.mjs";
|
|
2
|
+
import { t as defineSentryEndpoint } from "./endpoint-factory-BwjbcPwW.mjs";
|
|
3
|
+
import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/projects.ts
|
|
7
|
+
/**
|
|
8
|
+
* Sentry project operations. Maps to PLAN.md §6.4 (19 actions).
|
|
9
|
+
*/
|
|
10
|
+
const ORG_PROJECT = [{
|
|
11
|
+
name: "organization_slug",
|
|
12
|
+
placeholder: "{organization_slug}"
|
|
13
|
+
}, {
|
|
14
|
+
name: "project_slug",
|
|
15
|
+
placeholder: "{project_slug}"
|
|
16
|
+
}];
|
|
17
|
+
const ORG_PROJECT_TEAM = [...ORG_PROJECT, {
|
|
18
|
+
name: "team_slug",
|
|
19
|
+
placeholder: "{team_slug}"
|
|
20
|
+
}];
|
|
21
|
+
const ORG_TEAM_FOR_PROJECT = [{
|
|
22
|
+
name: "organization_slug",
|
|
23
|
+
placeholder: "{organization_slug}"
|
|
24
|
+
}, {
|
|
25
|
+
name: "team_slug",
|
|
26
|
+
placeholder: "{team_slug}"
|
|
27
|
+
}];
|
|
28
|
+
const accessProjectInformation = defineSentryEndpoint({
|
|
29
|
+
id: "access_project_information",
|
|
30
|
+
name: "Access Project Information",
|
|
31
|
+
description: "Fetch a project by its org slug + project slug.",
|
|
32
|
+
method: "GET",
|
|
33
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/",
|
|
34
|
+
pathParams: ORG_PROJECT,
|
|
35
|
+
input: orgProjectScopeInputSchema,
|
|
36
|
+
output: sentryProjectDetailsSchema,
|
|
37
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
38
|
+
});
|
|
39
|
+
const getProjectList = defineSentryEndpoint({
|
|
40
|
+
id: "get_project_list",
|
|
41
|
+
name: "List Projects",
|
|
42
|
+
description: "List projects visible to the authenticated token across all orgs.",
|
|
43
|
+
method: "GET",
|
|
44
|
+
path: "/api/0/projects/",
|
|
45
|
+
input: sentryListInputSchema,
|
|
46
|
+
queryFields: [
|
|
47
|
+
"cursor",
|
|
48
|
+
"per_page",
|
|
49
|
+
"query"
|
|
50
|
+
],
|
|
51
|
+
output: z.array(sentryProjectSummarySchema),
|
|
52
|
+
pagination: "cursor",
|
|
53
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
54
|
+
});
|
|
55
|
+
const updateProjectDetails = defineSentryEndpoint({
|
|
56
|
+
id: "update_project_details",
|
|
57
|
+
name: "Update Project Details",
|
|
58
|
+
description: "Patch project-level settings.",
|
|
59
|
+
method: "PUT",
|
|
60
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/",
|
|
61
|
+
pathParams: ORG_PROJECT,
|
|
62
|
+
input: orgProjectScopeInputSchema.extend({
|
|
63
|
+
name: z.string().min(1).optional(),
|
|
64
|
+
slug: sentrySlugSchema.optional(),
|
|
65
|
+
platform: z.string().optional(),
|
|
66
|
+
team: sentrySlugSchema.optional(),
|
|
67
|
+
digestsMinDelay: z.number().int().optional(),
|
|
68
|
+
digestsMaxDelay: z.number().int().optional(),
|
|
69
|
+
resolveAge: z.number().int().optional(),
|
|
70
|
+
dataScrubber: z.boolean().optional(),
|
|
71
|
+
dataScrubberDefaults: z.boolean().optional(),
|
|
72
|
+
sensitiveFields: z.array(z.string()).optional(),
|
|
73
|
+
safeFields: z.array(z.string()).optional(),
|
|
74
|
+
scrubIPAddresses: z.boolean().optional(),
|
|
75
|
+
storeCrashReports: z.number().int().optional(),
|
|
76
|
+
relayPiiConfig: z.string().optional(),
|
|
77
|
+
allowedDomains: z.array(z.string()).optional()
|
|
78
|
+
}),
|
|
79
|
+
bodyFields: [
|
|
80
|
+
"name",
|
|
81
|
+
"slug",
|
|
82
|
+
"platform",
|
|
83
|
+
"team",
|
|
84
|
+
"digestsMinDelay",
|
|
85
|
+
"digestsMaxDelay",
|
|
86
|
+
"resolveAge",
|
|
87
|
+
"dataScrubber",
|
|
88
|
+
"dataScrubberDefaults",
|
|
89
|
+
"sensitiveFields",
|
|
90
|
+
"safeFields",
|
|
91
|
+
"scrubIPAddresses",
|
|
92
|
+
"storeCrashReports",
|
|
93
|
+
"relayPiiConfig",
|
|
94
|
+
"allowedDomains"
|
|
95
|
+
],
|
|
96
|
+
output: sentryProjectDetailsSchema,
|
|
97
|
+
needsApproval: true,
|
|
98
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectWrite]
|
|
99
|
+
});
|
|
100
|
+
const deleteProjectById = defineSentryEndpoint({
|
|
101
|
+
id: "delete_project_by_id",
|
|
102
|
+
name: "Delete Project",
|
|
103
|
+
description: "Delete a project by slug.",
|
|
104
|
+
method: "DELETE",
|
|
105
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/",
|
|
106
|
+
pathParams: ORG_PROJECT,
|
|
107
|
+
input: orgProjectScopeInputSchema,
|
|
108
|
+
output: z.unknown(),
|
|
109
|
+
needsApproval: true,
|
|
110
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectAdmin]
|
|
111
|
+
});
|
|
112
|
+
const createTeamProjectForOrganization = defineSentryEndpoint({
|
|
113
|
+
id: "create_team_project_for_organization",
|
|
114
|
+
name: "Create Team Project",
|
|
115
|
+
description: "Create a new project owned by a team.",
|
|
116
|
+
method: "POST",
|
|
117
|
+
path: "/api/0/teams/{organization_slug}/{team_slug}/projects/",
|
|
118
|
+
pathParams: ORG_TEAM_FOR_PROJECT,
|
|
119
|
+
input: z.object({
|
|
120
|
+
organization_slug: sentrySlugSchema.optional(),
|
|
121
|
+
team_slug: sentrySlugSchema,
|
|
122
|
+
name: z.string().min(1),
|
|
123
|
+
slug: sentrySlugSchema.optional(),
|
|
124
|
+
platform: z.string().optional(),
|
|
125
|
+
default_rules: z.boolean().optional()
|
|
126
|
+
}),
|
|
127
|
+
bodyFields: [
|
|
128
|
+
"name",
|
|
129
|
+
"slug",
|
|
130
|
+
"platform",
|
|
131
|
+
"default_rules"
|
|
132
|
+
],
|
|
133
|
+
output: sentryProjectDetailsSchema,
|
|
134
|
+
needsApproval: true,
|
|
135
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectWrite]
|
|
136
|
+
});
|
|
137
|
+
const addTeamToProject = defineSentryEndpoint({
|
|
138
|
+
id: "add_team_to_project",
|
|
139
|
+
name: "Add Team To Project",
|
|
140
|
+
description: "Grant a team access to an existing project.",
|
|
141
|
+
method: "POST",
|
|
142
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/teams/{team_slug}/",
|
|
143
|
+
pathParams: ORG_PROJECT_TEAM,
|
|
144
|
+
input: orgProjectScopeInputSchema.extend({ team_slug: sentrySlugSchema }),
|
|
145
|
+
output: sentryProjectDetailsSchema,
|
|
146
|
+
needsApproval: true,
|
|
147
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectWrite]
|
|
148
|
+
});
|
|
149
|
+
const retrieveProjectTeams = defineSentryEndpoint({
|
|
150
|
+
id: "retrieve_project_teams",
|
|
151
|
+
name: "Retrieve Project Teams",
|
|
152
|
+
description: "List the teams that own a project.",
|
|
153
|
+
method: "GET",
|
|
154
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/teams/",
|
|
155
|
+
pathParams: ORG_PROJECT,
|
|
156
|
+
input: sentryListInputSchema.merge(orgProjectScopeInputSchema),
|
|
157
|
+
queryFields: [
|
|
158
|
+
"cursor",
|
|
159
|
+
"per_page",
|
|
160
|
+
"query"
|
|
161
|
+
],
|
|
162
|
+
output: z.array(sentryTeamSchema),
|
|
163
|
+
pagination: "cursor",
|
|
164
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
165
|
+
});
|
|
166
|
+
const deleteProjectTeamAssociation = defineSentryEndpoint({
|
|
167
|
+
id: "delete_project_team_association",
|
|
168
|
+
name: "Delete Project Team Association",
|
|
169
|
+
description: "Revoke a team’s access to a project.",
|
|
170
|
+
method: "DELETE",
|
|
171
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/teams/{team_slug}/",
|
|
172
|
+
pathParams: ORG_PROJECT_TEAM,
|
|
173
|
+
input: orgProjectScopeInputSchema.extend({ team_slug: sentrySlugSchema }),
|
|
174
|
+
output: z.unknown(),
|
|
175
|
+
needsApproval: true,
|
|
176
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectWrite]
|
|
177
|
+
});
|
|
178
|
+
const retrieveProjectMembersList = defineSentryEndpoint({
|
|
179
|
+
id: "retrieve_project_members_list",
|
|
180
|
+
name: "Retrieve Project Members",
|
|
181
|
+
description: "List the members who have access to a project.",
|
|
182
|
+
method: "GET",
|
|
183
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/members/",
|
|
184
|
+
pathParams: ORG_PROJECT,
|
|
185
|
+
input: sentryListInputSchema.merge(orgProjectScopeInputSchema),
|
|
186
|
+
queryFields: [
|
|
187
|
+
"cursor",
|
|
188
|
+
"per_page",
|
|
189
|
+
"query"
|
|
190
|
+
],
|
|
191
|
+
output: z.array(sentryMemberSchema),
|
|
192
|
+
pagination: "cursor",
|
|
193
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
194
|
+
});
|
|
195
|
+
const listProjectUsers = defineSentryEndpoint({
|
|
196
|
+
id: "list_project_users",
|
|
197
|
+
name: "List Project Users",
|
|
198
|
+
description: "List distinct end users who have reported events for a project.",
|
|
199
|
+
method: "GET",
|
|
200
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/users/",
|
|
201
|
+
pathParams: ORG_PROJECT,
|
|
202
|
+
input: sentryListInputSchema.merge(orgProjectScopeInputSchema),
|
|
203
|
+
queryFields: [
|
|
204
|
+
"cursor",
|
|
205
|
+
"per_page",
|
|
206
|
+
"query"
|
|
207
|
+
],
|
|
208
|
+
output: sentryJsonArraySchema,
|
|
209
|
+
pagination: "cursor",
|
|
210
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
211
|
+
});
|
|
212
|
+
const retrieveProjectFilterData = defineSentryEndpoint({
|
|
213
|
+
id: "retrieve_project_filter_data",
|
|
214
|
+
name: "Retrieve Project Filter Data",
|
|
215
|
+
description: "Return project-level inbound filter configuration.",
|
|
216
|
+
method: "GET",
|
|
217
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/filters/",
|
|
218
|
+
pathParams: ORG_PROJECT,
|
|
219
|
+
input: orgProjectScopeInputSchema,
|
|
220
|
+
output: sentryJsonArraySchema,
|
|
221
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
222
|
+
});
|
|
223
|
+
const toggleProjectFilterStatus = defineSentryEndpoint({
|
|
224
|
+
id: "toggle_project_filter_status",
|
|
225
|
+
name: "Toggle Project Filter",
|
|
226
|
+
description: "Enable or disable a single project inbound filter by id.",
|
|
227
|
+
method: "PUT",
|
|
228
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/filters/{filter_id}/",
|
|
229
|
+
pathParams: [...ORG_PROJECT, {
|
|
230
|
+
name: "filter_id",
|
|
231
|
+
placeholder: "{filter_id}"
|
|
232
|
+
}],
|
|
233
|
+
input: orgProjectScopeInputSchema.extend({
|
|
234
|
+
filter_id: z.string().min(1),
|
|
235
|
+
active: z.union([z.boolean(), z.array(z.string())]).optional(),
|
|
236
|
+
subfilters: z.array(z.string()).optional()
|
|
237
|
+
}),
|
|
238
|
+
bodyFields: ["active", "subfilters"],
|
|
239
|
+
output: sentryJsonObjectSchema,
|
|
240
|
+
needsApproval: true,
|
|
241
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectWrite]
|
|
242
|
+
});
|
|
243
|
+
const fetchProjectOwnershipDetails = defineSentryEndpoint({
|
|
244
|
+
id: "fetch_project_ownership_details",
|
|
245
|
+
name: "Fetch Project Ownership",
|
|
246
|
+
description: "Retrieve a project’s ownership rules configuration.",
|
|
247
|
+
method: "GET",
|
|
248
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/ownership/",
|
|
249
|
+
pathParams: ORG_PROJECT,
|
|
250
|
+
input: orgProjectScopeInputSchema,
|
|
251
|
+
output: sentryJsonObjectSchema,
|
|
252
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
253
|
+
});
|
|
254
|
+
const updateProjectOwnershipSettings = defineSentryEndpoint({
|
|
255
|
+
id: "update_project_ownership_settings",
|
|
256
|
+
name: "Update Project Ownership",
|
|
257
|
+
description: "Update a project’s ownership rule set and fallthrough.",
|
|
258
|
+
method: "PUT",
|
|
259
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/ownership/",
|
|
260
|
+
pathParams: ORG_PROJECT,
|
|
261
|
+
input: orgProjectScopeInputSchema.extend({
|
|
262
|
+
raw: z.string().optional(),
|
|
263
|
+
fallthrough: z.boolean().optional(),
|
|
264
|
+
autoAssignment: z.enum([
|
|
265
|
+
"Auto Assign to Issue Owner",
|
|
266
|
+
"Auto Assign to Suspect Commits",
|
|
267
|
+
"Turn off Auto-Assignment"
|
|
268
|
+
]).optional(),
|
|
269
|
+
codeownersAutoSync: z.boolean().optional()
|
|
270
|
+
}),
|
|
271
|
+
bodyFields: [
|
|
272
|
+
"raw",
|
|
273
|
+
"fallthrough",
|
|
274
|
+
"autoAssignment",
|
|
275
|
+
"codeownersAutoSync"
|
|
276
|
+
],
|
|
277
|
+
output: sentryJsonObjectSchema,
|
|
278
|
+
needsApproval: true,
|
|
279
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectWrite]
|
|
280
|
+
});
|
|
281
|
+
const retrieveProjectTagValues = defineSentryEndpoint({
|
|
282
|
+
id: "retrieve_project_tag_values",
|
|
283
|
+
name: "Retrieve Project Tag Values",
|
|
284
|
+
description: "List the distinct values observed for a given tag key on a project.",
|
|
285
|
+
method: "GET",
|
|
286
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/tags/{tag_key}/values/",
|
|
287
|
+
pathParams: [...ORG_PROJECT, {
|
|
288
|
+
name: "tag_key",
|
|
289
|
+
placeholder: "{tag_key}"
|
|
290
|
+
}],
|
|
291
|
+
input: sentryListInputSchema.merge(orgProjectScopeInputSchema).extend({ tag_key: z.string().min(1) }),
|
|
292
|
+
queryFields: [
|
|
293
|
+
"cursor",
|
|
294
|
+
"per_page",
|
|
295
|
+
"query"
|
|
296
|
+
],
|
|
297
|
+
output: sentryJsonArraySchema,
|
|
298
|
+
pagination: "cursor",
|
|
299
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectRead]
|
|
300
|
+
});
|
|
301
|
+
const postProjectSymbolSources = defineSentryEndpoint({
|
|
302
|
+
id: "post_project_symbol_sources",
|
|
303
|
+
name: "Create Project Symbol Source",
|
|
304
|
+
description: "Register a new custom symbol source on a project.",
|
|
305
|
+
method: "POST",
|
|
306
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/symbol-sources/",
|
|
307
|
+
pathParams: ORG_PROJECT,
|
|
308
|
+
input: orgProjectScopeInputSchema.extend({ source: sentryJsonObjectSchema }),
|
|
309
|
+
bodyFields: ["source"],
|
|
310
|
+
output: sentryJsonObjectSchema,
|
|
311
|
+
needsApproval: true,
|
|
312
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectAdmin]
|
|
313
|
+
});
|
|
314
|
+
const retrieveProjectSymbolSources = defineSentryEndpoint({
|
|
315
|
+
id: "retrieve_project_symbol_sources",
|
|
316
|
+
name: "Retrieve Project Symbol Sources",
|
|
317
|
+
description: "List the custom symbol sources configured on a project.",
|
|
318
|
+
method: "GET",
|
|
319
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/symbol-sources/",
|
|
320
|
+
pathParams: ORG_PROJECT,
|
|
321
|
+
input: orgProjectScopeInputSchema,
|
|
322
|
+
output: sentryJsonArraySchema,
|
|
323
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectAdmin]
|
|
324
|
+
});
|
|
325
|
+
const updateSymbolSourceSettings = defineSentryEndpoint({
|
|
326
|
+
id: "update_symbol_source_settings",
|
|
327
|
+
name: "Update Project Symbol Source",
|
|
328
|
+
description: "Update a project symbol source by its id.",
|
|
329
|
+
method: "PUT",
|
|
330
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/symbol-sources/",
|
|
331
|
+
pathParams: ORG_PROJECT,
|
|
332
|
+
input: orgProjectScopeInputSchema.extend({
|
|
333
|
+
id: sentryIdSchema,
|
|
334
|
+
source: sentryJsonObjectSchema
|
|
335
|
+
}),
|
|
336
|
+
queryFields: ["id"],
|
|
337
|
+
bodyFields: ["source"],
|
|
338
|
+
output: sentryJsonObjectSchema,
|
|
339
|
+
needsApproval: true,
|
|
340
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectAdmin]
|
|
341
|
+
});
|
|
342
|
+
const deleteProjectSymbolSources = defineSentryEndpoint({
|
|
343
|
+
id: "delete_project_symbol_sources",
|
|
344
|
+
name: "Delete Project Symbol Source",
|
|
345
|
+
description: "Delete a project symbol source by id.",
|
|
346
|
+
method: "DELETE",
|
|
347
|
+
path: "/api/0/projects/{organization_slug}/{project_slug}/symbol-sources/",
|
|
348
|
+
pathParams: ORG_PROJECT,
|
|
349
|
+
input: orgProjectScopeInputSchema.extend({ id: sentryIdSchema }),
|
|
350
|
+
queryFields: ["id"],
|
|
351
|
+
output: z.unknown(),
|
|
352
|
+
needsApproval: true,
|
|
353
|
+
requiredOAuthScopes: [...SENTRY_SCOPE.projectAdmin]
|
|
354
|
+
});
|
|
355
|
+
const sentryProjectOperations = {
|
|
356
|
+
accessProjectInformation,
|
|
357
|
+
getProjectList,
|
|
358
|
+
updateProjectDetails,
|
|
359
|
+
deleteProjectById,
|
|
360
|
+
createTeamProjectForOrganization,
|
|
361
|
+
addTeamToProject,
|
|
362
|
+
retrieveProjectTeams,
|
|
363
|
+
deleteProjectTeamAssociation,
|
|
364
|
+
retrieveProjectMembersList,
|
|
365
|
+
listProjectUsers,
|
|
366
|
+
retrieveProjectFilterData,
|
|
367
|
+
toggleProjectFilterStatus,
|
|
368
|
+
fetchProjectOwnershipDetails,
|
|
369
|
+
updateProjectOwnershipSettings,
|
|
370
|
+
retrieveProjectTagValues,
|
|
371
|
+
postProjectSymbolSources,
|
|
372
|
+
retrieveProjectSymbolSources,
|
|
373
|
+
updateSymbolSourceSettings,
|
|
374
|
+
deleteProjectSymbolSources
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
//#endregion
|
|
378
|
+
export { accessProjectInformation, addTeamToProject, createTeamProjectForOrganization, deleteProjectById, deleteProjectSymbolSources, deleteProjectTeamAssociation, fetchProjectOwnershipDetails, getProjectList, listProjectUsers, postProjectSymbolSources, retrieveProjectFilterData, retrieveProjectMembersList, retrieveProjectSymbolSources, retrieveProjectTagValues, retrieveProjectTeams, sentryProjectOperations, toggleProjectFilterStatus, updateProjectDetails, updateProjectOwnershipSettings, updateSymbolSourceSettings };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
|
+
|
|
6
|
+
//#region src/_official/provider-app.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Internal Keystroke-owned Sentry app credentials.
|
|
9
|
+
*
|
|
10
|
+
* For Sentry, `clientSecret` doubles as the webhook signing secret per
|
|
11
|
+
* <https://docs.sentry.io/organization/integrations/integration-platform/webhooks/>,
|
|
12
|
+
* so `webhookSecret` is kept as a discrete field for symmetry with other
|
|
13
|
+
* integrations even though in practice platforms will populate both from the
|
|
14
|
+
* same Sentry-issued value.
|
|
15
|
+
*/
|
|
16
|
+
declare const sentryAppCredentialSet: CredentialSet<"sentry-app", z.ZodObject<{
|
|
17
|
+
clientId: z.ZodString;
|
|
18
|
+
clientSecret: z.ZodString;
|
|
19
|
+
webhookSecret: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
21
|
+
clientId: z.ZodString;
|
|
22
|
+
clientSecret: z.ZodString;
|
|
23
|
+
webhookSecret: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>[] | undefined>;
|
|
25
|
+
type SentryAppCredentials = InferCredentialSetAuth<typeof sentryAppCredentialSet>;
|
|
26
|
+
declare const sentryPlatformProviderSeed: {
|
|
27
|
+
readonly provider: "sentry";
|
|
28
|
+
readonly appRef: "sentry-platform";
|
|
29
|
+
readonly displayName: "Sentry Platform";
|
|
30
|
+
readonly credentialSetName: "Keystroke Sentry Platform App";
|
|
31
|
+
readonly envShape: {
|
|
32
|
+
readonly KEYSTROKE_PLATFORM_SENTRY_CLIENT_ID: z.ZodOptional<z.ZodString>;
|
|
33
|
+
readonly KEYSTROKE_PLATFORM_SENTRY_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
|
|
34
|
+
readonly KEYSTROKE_PLATFORM_SENTRY_WEBHOOK_SECRET: z.ZodOptional<z.ZodString>;
|
|
35
|
+
};
|
|
36
|
+
readonly requiredEnvKeys: readonly ["KEYSTROKE_PLATFORM_SENTRY_CLIENT_ID", "KEYSTROKE_PLATFORM_SENTRY_CLIENT_SECRET", "KEYSTROKE_PLATFORM_SENTRY_WEBHOOK_SECRET"];
|
|
37
|
+
readonly externalAppIdEnvKey: "KEYSTROKE_PLATFORM_SENTRY_CLIENT_ID";
|
|
38
|
+
readonly buildCredentials: (env: Record<string, string | undefined>) => {
|
|
39
|
+
clientId: string | undefined;
|
|
40
|
+
clientSecret: string | undefined;
|
|
41
|
+
webhookSecret: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { sentryAppCredentialSet as n, sentryPlatformProviderSeed as r, SentryAppCredentials as t };
|