@keystrokehq/sentry 0.0.12 → 0.0.16-integration-id-canonicalization.0
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 +40 -187
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/{schemas.d.mts → schemas/index.d.mts} +5 -5
- package/dist/schemas/index.mjs +3 -0
- package/dist/{schemas.mjs → sentry-api-DjJ24hwX.mjs} +2 -2
- package/dist/sentry-app.credential-set-4DLRUKF9.d.mts +59 -0
- package/dist/sentry-app.credential-set-Cdj6Qxiz.mjs +23 -0
- package/dist/sentry.credential-set-2b3TPFqv.mjs +696 -0
- package/dist/view-organization-notification-actions.operation-BI2aB_Mj.mjs +4548 -0
- package/dist/view-organization-notification-actions.operation-C7pc8cl_.d.mts +6840 -0
- package/package.json +9 -117
- package/dist/_official/index.d.mts +0 -46
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -2
- package/dist/_runtime/index.mjs +0 -3
- package/dist/alerts.d.mts +0 -551
- package/dist/alerts.mjs +0 -300
- package/dist/client.d.mts +0 -86
- package/dist/client.mjs +0 -233
- package/dist/connection.d.mts +0 -3
- package/dist/connection.mjs +0 -3
- package/dist/dashboards.d.mts +0 -203
- package/dist/dashboards.mjs +0 -122
- package/dist/debug-files.d.mts +0 -127
- package/dist/debug-files.mjs +0 -73
- package/dist/deploys.d.mts +0 -103
- package/dist/deploys.mjs +0 -67
- package/dist/discover.d.mts +0 -235
- package/dist/discover.mjs +0 -138
- package/dist/endpoint-factory-C0WIFmtK.mjs +0 -95
- package/dist/environments.d.mts +0 -121
- package/dist/environments.mjs +0 -71
- package/dist/errors-DfEFwcTe.mjs +0 -142
- package/dist/events-api.d.mts +0 -311
- package/dist/events-api.mjs +0 -184
- package/dist/events.d.mts +0 -754
- package/dist/events.mjs +0 -142
- package/dist/feedback.d.mts +0 -99
- package/dist/feedback.mjs +0 -63
- package/dist/integration-DCNn_9vz.mjs +0 -356
- package/dist/integration-rmp485nJ.d.mts +0 -57
- package/dist/issues.d.mts +0 -563
- package/dist/issues.mjs +0 -324
- package/dist/members.d.mts +0 -365
- package/dist/members.mjs +0 -156
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitors.d.mts +0 -539
- package/dist/monitors.mjs +0 -234
- package/dist/notifications.d.mts +0 -221
- package/dist/notifications.mjs +0 -133
- package/dist/organizations.d.mts +0 -563
- package/dist/organizations.mjs +0 -334
- package/dist/pagination-PlgAqbZt.mjs +0 -116
- package/dist/project-keys.d.mts +0 -287
- package/dist/project-keys.mjs +0 -122
- package/dist/projects.d.mts +0 -687
- package/dist/projects.mjs +0 -378
- package/dist/releases.d.mts +0 -949
- package/dist/releases.mjs +0 -479
- package/dist/replays.d.mts +0 -307
- package/dist/replays.mjs +0 -192
- package/dist/scim.d.mts +0 -413
- package/dist/scim.mjs +0 -249
- package/dist/scopes-RRU0vt-a.mjs +0 -36
- package/dist/teams.d.mts +0 -561
- package/dist/teams.mjs +0 -266
- package/dist/triggers.d.mts +0 -97
- package/dist/triggers.mjs +0 -106
- package/dist/user-emails.d.mts +0 -117
- package/dist/user-emails.mjs +0 -60
- package/dist/verification.d.mts +0 -30
- package/dist/verification.mjs +0 -83
- package/dist/webhooks.d.mts +0 -199
- package/dist/webhooks.mjs +0 -108
package/dist/releases.mjs
DELETED
|
@@ -1,479 +0,0 @@
|
|
|
1
|
-
import { orgProjectScopeInputSchema, orgReleaseScopeInputSchema, orgScopeInputSchema, sentryCommitSchema, sentryIdSchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema, sentryReleaseFileSchema, sentryReleaseSchema, sentryRepositorySchema } from "./schemas.mjs";
|
|
2
|
-
import { t as defineSentryEndpoint } from "./endpoint-factory-C0WIFmtK.mjs";
|
|
3
|
-
import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/releases.ts
|
|
7
|
-
/**
|
|
8
|
-
* Sentry release operations (21 actions — PLAN.md §6.8).
|
|
9
|
-
* Covers releases, release files, repositories, commits, and release-threshold statuses.
|
|
10
|
-
*/
|
|
11
|
-
const ORG = [{
|
|
12
|
-
name: "organization_slug",
|
|
13
|
-
placeholder: "{organization_slug}"
|
|
14
|
-
}];
|
|
15
|
-
const ORG_VERSION = [...ORG, {
|
|
16
|
-
name: "version",
|
|
17
|
-
placeholder: "{version}"
|
|
18
|
-
}];
|
|
19
|
-
const ORG_PROJECT_VERSION = [
|
|
20
|
-
...ORG,
|
|
21
|
-
{
|
|
22
|
-
name: "project_slug",
|
|
23
|
-
placeholder: "{project_slug}"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: "version",
|
|
27
|
-
placeholder: "{version}"
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
const ORG_REPO = [...ORG, {
|
|
31
|
-
name: "repo_id",
|
|
32
|
-
placeholder: "{repo_id}"
|
|
33
|
-
}];
|
|
34
|
-
const listOrganizationReleases = defineSentryEndpoint({
|
|
35
|
-
id: "sentry.list-organization-releases",
|
|
36
|
-
name: "List Organization Releases",
|
|
37
|
-
description: "List releases for an organization.",
|
|
38
|
-
method: "GET",
|
|
39
|
-
path: "/api/0/organizations/{organization_slug}/releases/",
|
|
40
|
-
pathParams: ORG,
|
|
41
|
-
input: sentryListInputSchema.merge(orgScopeInputSchema).extend({
|
|
42
|
-
project: z.array(z.number().int()).optional(),
|
|
43
|
-
environment: z.array(z.string()).optional(),
|
|
44
|
-
statsPeriod: z.string().optional(),
|
|
45
|
-
sort: z.enum([
|
|
46
|
-
"date",
|
|
47
|
-
"sessions",
|
|
48
|
-
"users",
|
|
49
|
-
"crash_free_users",
|
|
50
|
-
"crash_free_sessions"
|
|
51
|
-
]).optional(),
|
|
52
|
-
status: z.enum(["open", "archived"]).optional()
|
|
53
|
-
}),
|
|
54
|
-
queryFields: [
|
|
55
|
-
"cursor",
|
|
56
|
-
"per_page",
|
|
57
|
-
"query",
|
|
58
|
-
"project",
|
|
59
|
-
"environment",
|
|
60
|
-
"statsPeriod",
|
|
61
|
-
"sort",
|
|
62
|
-
"status"
|
|
63
|
-
],
|
|
64
|
-
output: z.array(sentryReleaseSchema),
|
|
65
|
-
pagination: "cursor",
|
|
66
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
67
|
-
});
|
|
68
|
-
const createReleaseForOrganization = defineSentryEndpoint({
|
|
69
|
-
id: "sentry.create-release-for-organization",
|
|
70
|
-
name: "Create Release",
|
|
71
|
-
description: "Create a release at the organization level.",
|
|
72
|
-
method: "POST",
|
|
73
|
-
path: "/api/0/organizations/{organization_slug}/releases/",
|
|
74
|
-
pathParams: ORG,
|
|
75
|
-
input: orgScopeInputSchema.extend({
|
|
76
|
-
version: z.string().min(1),
|
|
77
|
-
ref: z.string().optional(),
|
|
78
|
-
url: z.string().url().optional(),
|
|
79
|
-
projects: z.array(z.string()).min(1),
|
|
80
|
-
dateReleased: z.iso.datetime().optional(),
|
|
81
|
-
commits: z.array(sentryJsonObjectSchema).optional(),
|
|
82
|
-
refs: z.array(sentryJsonObjectSchema).optional()
|
|
83
|
-
}),
|
|
84
|
-
bodyFields: [
|
|
85
|
-
"version",
|
|
86
|
-
"ref",
|
|
87
|
-
"url",
|
|
88
|
-
"projects",
|
|
89
|
-
"dateReleased",
|
|
90
|
-
"commits",
|
|
91
|
-
"refs"
|
|
92
|
-
],
|
|
93
|
-
output: sentryReleaseSchema,
|
|
94
|
-
needsApproval: true,
|
|
95
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
96
|
-
});
|
|
97
|
-
const getOrganizationReleaseVersion = defineSentryEndpoint({
|
|
98
|
-
id: "sentry.get-organization-release-version",
|
|
99
|
-
name: "Get Release",
|
|
100
|
-
description: "Fetch a release by version.",
|
|
101
|
-
method: "GET",
|
|
102
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/",
|
|
103
|
-
pathParams: ORG_VERSION,
|
|
104
|
-
input: orgReleaseScopeInputSchema,
|
|
105
|
-
output: sentryReleaseSchema,
|
|
106
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
107
|
-
});
|
|
108
|
-
const updateReleaseDetailsForOrganization = defineSentryEndpoint({
|
|
109
|
-
id: "sentry.update-release-details-for-organization",
|
|
110
|
-
name: "Update Release",
|
|
111
|
-
description: "Update release metadata (e.g. `dateReleased`, `ref`, commits).",
|
|
112
|
-
method: "PUT",
|
|
113
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/",
|
|
114
|
-
pathParams: ORG_VERSION,
|
|
115
|
-
input: orgReleaseScopeInputSchema.extend({
|
|
116
|
-
ref: z.string().optional(),
|
|
117
|
-
url: z.string().url().optional(),
|
|
118
|
-
dateReleased: z.iso.datetime().optional(),
|
|
119
|
-
commits: z.array(sentryJsonObjectSchema).optional(),
|
|
120
|
-
refs: z.array(sentryJsonObjectSchema).optional(),
|
|
121
|
-
projects: z.array(z.string()).optional()
|
|
122
|
-
}),
|
|
123
|
-
bodyFields: [
|
|
124
|
-
"ref",
|
|
125
|
-
"url",
|
|
126
|
-
"dateReleased",
|
|
127
|
-
"commits",
|
|
128
|
-
"refs",
|
|
129
|
-
"projects"
|
|
130
|
-
],
|
|
131
|
-
output: sentryReleaseSchema,
|
|
132
|
-
needsApproval: true,
|
|
133
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
134
|
-
});
|
|
135
|
-
const deleteOrganizationRelease = defineSentryEndpoint({
|
|
136
|
-
id: "sentry.delete-organization-release",
|
|
137
|
-
name: "Delete Release",
|
|
138
|
-
description: "Delete a release by version.",
|
|
139
|
-
method: "DELETE",
|
|
140
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/",
|
|
141
|
-
pathParams: ORG_VERSION,
|
|
142
|
-
input: orgReleaseScopeInputSchema,
|
|
143
|
-
output: z.unknown(),
|
|
144
|
-
needsApproval: true,
|
|
145
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
146
|
-
});
|
|
147
|
-
const retrieveOrganizationReleaseCommits = defineSentryEndpoint({
|
|
148
|
-
id: "sentry.retrieve-organization-release-commits",
|
|
149
|
-
name: "Retrieve Release Commits (Org)",
|
|
150
|
-
description: "List the commits associated with a release.",
|
|
151
|
-
method: "GET",
|
|
152
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/commits/",
|
|
153
|
-
pathParams: ORG_VERSION,
|
|
154
|
-
input: sentryListInputSchema.merge(orgReleaseScopeInputSchema),
|
|
155
|
-
queryFields: [
|
|
156
|
-
"cursor",
|
|
157
|
-
"per_page",
|
|
158
|
-
"query"
|
|
159
|
-
],
|
|
160
|
-
output: z.array(sentryCommitSchema),
|
|
161
|
-
pagination: "cursor",
|
|
162
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
163
|
-
});
|
|
164
|
-
const retrieveReleaseCommits = defineSentryEndpoint({
|
|
165
|
-
id: "sentry.retrieve-release-commits",
|
|
166
|
-
name: "Retrieve Release Commits (Project)",
|
|
167
|
-
description: "List the commits associated with a release for a specific project.",
|
|
168
|
-
method: "GET",
|
|
169
|
-
path: "/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/commits/",
|
|
170
|
-
pathParams: ORG_PROJECT_VERSION,
|
|
171
|
-
input: sentryListInputSchema.merge(orgProjectScopeInputSchema).extend({ version: z.string().min(1) }),
|
|
172
|
-
queryFields: [
|
|
173
|
-
"cursor",
|
|
174
|
-
"per_page",
|
|
175
|
-
"query"
|
|
176
|
-
],
|
|
177
|
-
output: z.array(sentryCommitSchema),
|
|
178
|
-
pagination: "cursor",
|
|
179
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
180
|
-
});
|
|
181
|
-
const retrieveCommitFilesForRelease = defineSentryEndpoint({
|
|
182
|
-
id: "sentry.retrieve-commit-files-for-release",
|
|
183
|
-
name: "Retrieve Commit Files For Release",
|
|
184
|
-
description: "List the file-level commit metadata attached to a release.",
|
|
185
|
-
method: "GET",
|
|
186
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/commitfiles/",
|
|
187
|
-
pathParams: ORG_VERSION,
|
|
188
|
-
input: sentryListInputSchema.merge(orgReleaseScopeInputSchema),
|
|
189
|
-
queryFields: [
|
|
190
|
-
"cursor",
|
|
191
|
-
"per_page",
|
|
192
|
-
"query"
|
|
193
|
-
],
|
|
194
|
-
output: sentryJsonArraySchema,
|
|
195
|
-
pagination: "cursor",
|
|
196
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
197
|
-
});
|
|
198
|
-
const retrieveCommitsForOrganizationRepo = defineSentryEndpoint({
|
|
199
|
-
id: "sentry.retrieve-commits-for-organization-repo",
|
|
200
|
-
name: "Retrieve Commits For Org Repo",
|
|
201
|
-
description: "List commits for a repository linked to the organization.",
|
|
202
|
-
method: "GET",
|
|
203
|
-
path: "/api/0/organizations/{organization_slug}/repos/{repo_id}/commits/",
|
|
204
|
-
pathParams: ORG_REPO,
|
|
205
|
-
input: sentryListInputSchema.merge(orgScopeInputSchema).extend({ repo_id: sentryIdSchema }),
|
|
206
|
-
queryFields: [
|
|
207
|
-
"cursor",
|
|
208
|
-
"per_page",
|
|
209
|
-
"query"
|
|
210
|
-
],
|
|
211
|
-
output: z.array(sentryCommitSchema),
|
|
212
|
-
pagination: "cursor",
|
|
213
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
214
|
-
});
|
|
215
|
-
const listOrganizationRepositories = defineSentryEndpoint({
|
|
216
|
-
id: "sentry.list-organization-repositories",
|
|
217
|
-
name: "List Organization Repositories",
|
|
218
|
-
description: "List repositories linked to the organization.",
|
|
219
|
-
method: "GET",
|
|
220
|
-
path: "/api/0/organizations/{organization_slug}/repos/",
|
|
221
|
-
pathParams: ORG,
|
|
222
|
-
input: sentryListInputSchema.merge(orgScopeInputSchema).extend({ status: z.enum([
|
|
223
|
-
"active",
|
|
224
|
-
"disabled",
|
|
225
|
-
"pending_deletion",
|
|
226
|
-
"deletion_in_progress"
|
|
227
|
-
]).optional() }),
|
|
228
|
-
queryFields: [
|
|
229
|
-
"cursor",
|
|
230
|
-
"per_page",
|
|
231
|
-
"query",
|
|
232
|
-
"status"
|
|
233
|
-
],
|
|
234
|
-
output: z.array(sentryRepositorySchema),
|
|
235
|
-
pagination: "cursor",
|
|
236
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
237
|
-
});
|
|
238
|
-
const retrieveFilesForRelease = defineSentryEndpoint({
|
|
239
|
-
id: "sentry.retrieve-files-for-release",
|
|
240
|
-
name: "Retrieve Release Files (Org)",
|
|
241
|
-
description: "List the uploaded artifact files attached to an org-level release.",
|
|
242
|
-
method: "GET",
|
|
243
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/files/",
|
|
244
|
-
pathParams: ORG_VERSION,
|
|
245
|
-
input: sentryListInputSchema.merge(orgReleaseScopeInputSchema),
|
|
246
|
-
queryFields: [
|
|
247
|
-
"cursor",
|
|
248
|
-
"per_page",
|
|
249
|
-
"query"
|
|
250
|
-
],
|
|
251
|
-
output: z.array(sentryReleaseFileSchema),
|
|
252
|
-
pagination: "cursor",
|
|
253
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
254
|
-
});
|
|
255
|
-
const fetchProjectReleaseFiles = defineSentryEndpoint({
|
|
256
|
-
id: "sentry.fetch-project-release-files",
|
|
257
|
-
name: "Retrieve Project Release Files",
|
|
258
|
-
description: "List the uploaded artifact files attached to a project release.",
|
|
259
|
-
method: "GET",
|
|
260
|
-
path: "/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/",
|
|
261
|
-
pathParams: ORG_PROJECT_VERSION,
|
|
262
|
-
input: sentryListInputSchema.merge(orgProjectScopeInputSchema).extend({ version: z.string().min(1) }),
|
|
263
|
-
queryFields: [
|
|
264
|
-
"cursor",
|
|
265
|
-
"per_page",
|
|
266
|
-
"query"
|
|
267
|
-
],
|
|
268
|
-
output: z.array(sentryReleaseFileSchema),
|
|
269
|
-
pagination: "cursor",
|
|
270
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
271
|
-
});
|
|
272
|
-
const retrieveProjectReleaseFileDetails = defineSentryEndpoint({
|
|
273
|
-
id: "sentry.retrieve-project-release-file-details",
|
|
274
|
-
name: "Retrieve Project Release File",
|
|
275
|
-
description: "Fetch a single release artifact file by id.",
|
|
276
|
-
method: "GET",
|
|
277
|
-
path: "/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/",
|
|
278
|
-
pathParams: [...ORG_PROJECT_VERSION, {
|
|
279
|
-
name: "file_id",
|
|
280
|
-
placeholder: "{file_id}"
|
|
281
|
-
}],
|
|
282
|
-
input: orgProjectScopeInputSchema.extend({
|
|
283
|
-
version: z.string().min(1),
|
|
284
|
-
file_id: sentryIdSchema
|
|
285
|
-
}),
|
|
286
|
-
output: sentryReleaseFileSchema,
|
|
287
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
288
|
-
});
|
|
289
|
-
const retrieveReleaseFileById = defineSentryEndpoint({
|
|
290
|
-
id: "sentry.retrieve-release-file-by-id",
|
|
291
|
-
name: "Retrieve Release File (Org)",
|
|
292
|
-
description: "Fetch a single release artifact file at the org level by id.",
|
|
293
|
-
method: "GET",
|
|
294
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/",
|
|
295
|
-
pathParams: [...ORG_VERSION, {
|
|
296
|
-
name: "file_id",
|
|
297
|
-
placeholder: "{file_id}"
|
|
298
|
-
}],
|
|
299
|
-
input: orgReleaseScopeInputSchema.extend({ file_id: sentryIdSchema }),
|
|
300
|
-
output: sentryReleaseFileSchema,
|
|
301
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
302
|
-
});
|
|
303
|
-
const uploadReleaseFileToOrganization = defineSentryEndpoint({
|
|
304
|
-
id: "sentry.upload-release-file-to-organization",
|
|
305
|
-
name: "Upload Release File (Org)",
|
|
306
|
-
description: "Record the metadata for a release artifact file at the organization level. Actual multipart uploads use the `client.request` escape hatch with `rawBody`.",
|
|
307
|
-
method: "POST",
|
|
308
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/files/",
|
|
309
|
-
pathParams: ORG_VERSION,
|
|
310
|
-
input: orgReleaseScopeInputSchema.extend({
|
|
311
|
-
name: z.string().min(1),
|
|
312
|
-
dist: z.string().optional(),
|
|
313
|
-
headers: z.record(z.string(), z.string()).optional()
|
|
314
|
-
}),
|
|
315
|
-
bodyFields: [
|
|
316
|
-
"name",
|
|
317
|
-
"dist",
|
|
318
|
-
"headers"
|
|
319
|
-
],
|
|
320
|
-
output: sentryReleaseFileSchema,
|
|
321
|
-
needsApproval: true,
|
|
322
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
323
|
-
});
|
|
324
|
-
const uploadFileToProjectRelease = defineSentryEndpoint({
|
|
325
|
-
id: "sentry.upload-file-to-project-release",
|
|
326
|
-
name: "Upload Release File (Project)",
|
|
327
|
-
description: "Record the metadata for a release artifact file on a project release. Actual multipart uploads use the `client.request` escape hatch with `rawBody`.",
|
|
328
|
-
method: "POST",
|
|
329
|
-
path: "/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/",
|
|
330
|
-
pathParams: ORG_PROJECT_VERSION,
|
|
331
|
-
input: orgProjectScopeInputSchema.extend({
|
|
332
|
-
version: z.string().min(1),
|
|
333
|
-
name: z.string().min(1),
|
|
334
|
-
dist: z.string().optional(),
|
|
335
|
-
headers: z.record(z.string(), z.string()).optional()
|
|
336
|
-
}),
|
|
337
|
-
bodyFields: [
|
|
338
|
-
"name",
|
|
339
|
-
"dist",
|
|
340
|
-
"headers"
|
|
341
|
-
],
|
|
342
|
-
output: sentryReleaseFileSchema,
|
|
343
|
-
needsApproval: true,
|
|
344
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
345
|
-
});
|
|
346
|
-
const modifyReleaseFileAttributes = defineSentryEndpoint({
|
|
347
|
-
id: "sentry.modify-release-file-attributes",
|
|
348
|
-
name: "Modify Release File Attributes (Org)",
|
|
349
|
-
description: "Update metadata on a release artifact file at the org level.",
|
|
350
|
-
method: "PUT",
|
|
351
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/",
|
|
352
|
-
pathParams: [...ORG_VERSION, {
|
|
353
|
-
name: "file_id",
|
|
354
|
-
placeholder: "{file_id}"
|
|
355
|
-
}],
|
|
356
|
-
input: orgReleaseScopeInputSchema.extend({
|
|
357
|
-
file_id: sentryIdSchema,
|
|
358
|
-
name: z.string().optional(),
|
|
359
|
-
dist: z.string().optional(),
|
|
360
|
-
headers: z.record(z.string(), z.string()).optional()
|
|
361
|
-
}),
|
|
362
|
-
bodyFields: [
|
|
363
|
-
"name",
|
|
364
|
-
"dist",
|
|
365
|
-
"headers"
|
|
366
|
-
],
|
|
367
|
-
output: sentryReleaseFileSchema,
|
|
368
|
-
needsApproval: true,
|
|
369
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
370
|
-
});
|
|
371
|
-
const updateProjectReleaseFileDetails = defineSentryEndpoint({
|
|
372
|
-
id: "sentry.update-project-release-file-details",
|
|
373
|
-
name: "Update Project Release File",
|
|
374
|
-
description: "Update metadata on a release artifact file for a project release.",
|
|
375
|
-
method: "PUT",
|
|
376
|
-
path: "/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/",
|
|
377
|
-
pathParams: [...ORG_PROJECT_VERSION, {
|
|
378
|
-
name: "file_id",
|
|
379
|
-
placeholder: "{file_id}"
|
|
380
|
-
}],
|
|
381
|
-
input: orgProjectScopeInputSchema.extend({
|
|
382
|
-
version: z.string().min(1),
|
|
383
|
-
file_id: sentryIdSchema,
|
|
384
|
-
name: z.string().optional(),
|
|
385
|
-
dist: z.string().optional(),
|
|
386
|
-
headers: z.record(z.string(), z.string()).optional()
|
|
387
|
-
}),
|
|
388
|
-
bodyFields: [
|
|
389
|
-
"name",
|
|
390
|
-
"dist",
|
|
391
|
-
"headers"
|
|
392
|
-
],
|
|
393
|
-
output: sentryReleaseFileSchema,
|
|
394
|
-
needsApproval: true,
|
|
395
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
396
|
-
});
|
|
397
|
-
const deleteReleaseFile = defineSentryEndpoint({
|
|
398
|
-
id: "sentry.delete-release-file",
|
|
399
|
-
name: "Delete Release File (Project)",
|
|
400
|
-
description: "Delete a release artifact file for a project release.",
|
|
401
|
-
method: "DELETE",
|
|
402
|
-
path: "/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/",
|
|
403
|
-
pathParams: [...ORG_PROJECT_VERSION, {
|
|
404
|
-
name: "file_id",
|
|
405
|
-
placeholder: "{file_id}"
|
|
406
|
-
}],
|
|
407
|
-
input: orgProjectScopeInputSchema.extend({
|
|
408
|
-
version: z.string().min(1),
|
|
409
|
-
file_id: sentryIdSchema
|
|
410
|
-
}),
|
|
411
|
-
output: z.unknown(),
|
|
412
|
-
needsApproval: true,
|
|
413
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
414
|
-
});
|
|
415
|
-
const deleteReleaseFileById = defineSentryEndpoint({
|
|
416
|
-
id: "sentry.delete-release-file-by-id",
|
|
417
|
-
name: "Delete Release File (Org)",
|
|
418
|
-
description: "Delete a release artifact file at the org level by id.",
|
|
419
|
-
method: "DELETE",
|
|
420
|
-
path: "/api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/",
|
|
421
|
-
pathParams: [...ORG_VERSION, {
|
|
422
|
-
name: "file_id",
|
|
423
|
-
placeholder: "{file_id}"
|
|
424
|
-
}],
|
|
425
|
-
input: orgReleaseScopeInputSchema.extend({ file_id: sentryIdSchema }),
|
|
426
|
-
output: z.unknown(),
|
|
427
|
-
needsApproval: true,
|
|
428
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
429
|
-
});
|
|
430
|
-
const fetchOrganizationReleaseThresholdStatuses = defineSentryEndpoint({
|
|
431
|
-
id: "sentry.fetch-organization-release-threshold-statuses",
|
|
432
|
-
name: "Fetch Release Threshold Statuses",
|
|
433
|
-
description: "Return the release-threshold evaluation statuses for the organization.",
|
|
434
|
-
method: "GET",
|
|
435
|
-
path: "/api/0/organizations/{organization_slug}/release-threshold-statuses/",
|
|
436
|
-
pathParams: ORG,
|
|
437
|
-
input: orgScopeInputSchema.extend({
|
|
438
|
-
project: z.array(z.number().int()).optional(),
|
|
439
|
-
environment: z.array(z.string()).optional(),
|
|
440
|
-
release: z.array(z.string()).optional(),
|
|
441
|
-
start: z.string().optional(),
|
|
442
|
-
end: z.string().optional()
|
|
443
|
-
}),
|
|
444
|
-
queryFields: [
|
|
445
|
-
"project",
|
|
446
|
-
"environment",
|
|
447
|
-
"release",
|
|
448
|
-
"start",
|
|
449
|
-
"end"
|
|
450
|
-
],
|
|
451
|
-
output: sentryJsonObjectSchema,
|
|
452
|
-
requiredOAuthScopes: [...SENTRY_SCOPE.releaseAdmin]
|
|
453
|
-
});
|
|
454
|
-
const sentryReleaseOperations = {
|
|
455
|
-
listOrganizationReleases,
|
|
456
|
-
createReleaseForOrganization,
|
|
457
|
-
getOrganizationReleaseVersion,
|
|
458
|
-
updateReleaseDetailsForOrganization,
|
|
459
|
-
deleteOrganizationRelease,
|
|
460
|
-
retrieveOrganizationReleaseCommits,
|
|
461
|
-
retrieveReleaseCommits,
|
|
462
|
-
retrieveCommitFilesForRelease,
|
|
463
|
-
retrieveCommitsForOrganizationRepo,
|
|
464
|
-
listOrganizationRepositories,
|
|
465
|
-
retrieveFilesForRelease,
|
|
466
|
-
fetchProjectReleaseFiles,
|
|
467
|
-
retrieveProjectReleaseFileDetails,
|
|
468
|
-
retrieveReleaseFileById,
|
|
469
|
-
uploadReleaseFileToOrganization,
|
|
470
|
-
uploadFileToProjectRelease,
|
|
471
|
-
modifyReleaseFileAttributes,
|
|
472
|
-
updateProjectReleaseFileDetails,
|
|
473
|
-
deleteReleaseFile,
|
|
474
|
-
deleteReleaseFileById,
|
|
475
|
-
fetchOrganizationReleaseThresholdStatuses
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
//#endregion
|
|
479
|
-
export { createReleaseForOrganization, deleteOrganizationRelease, deleteReleaseFile, deleteReleaseFileById, fetchOrganizationReleaseThresholdStatuses, fetchProjectReleaseFiles, getOrganizationReleaseVersion, listOrganizationReleases, listOrganizationRepositories, modifyReleaseFileAttributes, retrieveCommitFilesForRelease, retrieveCommitsForOrganizationRepo, retrieveFilesForRelease, retrieveOrganizationReleaseCommits, retrieveProjectReleaseFileDetails, retrieveReleaseCommits, retrieveReleaseFileById, sentryReleaseOperations, updateProjectReleaseFileDetails, updateReleaseDetailsForOrganization, uploadFileToProjectRelease, uploadReleaseFileToOrganization };
|