@keystrokehq/sentry 0.0.15 → 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.
Files changed (80) hide show
  1. package/README.md +40 -187
  2. package/dist/credential-sets/index.d.mts +2 -0
  3. package/dist/credential-sets/index.mjs +4 -0
  4. package/dist/index.d.mts +4 -1
  5. package/dist/index.mjs +6 -1
  6. package/dist/operations/index.d.mts +2 -0
  7. package/dist/operations/index.mjs +3 -0
  8. package/dist/{schemas.d.mts → schemas/index.d.mts} +3 -3
  9. package/dist/schemas/index.mjs +3 -0
  10. package/dist/{schemas.mjs → sentry-api-DjJ24hwX.mjs} +2 -2
  11. package/dist/sentry-app.credential-set-4DLRUKF9.d.mts +59 -0
  12. package/dist/sentry-app.credential-set-Cdj6Qxiz.mjs +23 -0
  13. package/dist/sentry.credential-set-2b3TPFqv.mjs +696 -0
  14. package/dist/view-organization-notification-actions.operation-BI2aB_Mj.mjs +4548 -0
  15. package/dist/view-organization-notification-actions.operation-C7pc8cl_.d.mts +6840 -0
  16. package/package.json +14 -121
  17. package/dist/_official/index.d.mts +0 -41
  18. package/dist/_official/index.mjs +0 -3
  19. package/dist/_runtime/index.d.mts +0 -2
  20. package/dist/_runtime/index.mjs +0 -3
  21. package/dist/alerts.d.mts +0 -462
  22. package/dist/alerts.mjs +0 -300
  23. package/dist/client.d.mts +0 -86
  24. package/dist/client.mjs +0 -233
  25. package/dist/connection.d.mts +0 -3
  26. package/dist/connection.mjs +0 -3
  27. package/dist/dashboards.d.mts +0 -162
  28. package/dist/dashboards.mjs +0 -122
  29. package/dist/debug-files.d.mts +0 -102
  30. package/dist/debug-files.mjs +0 -73
  31. package/dist/deploys.d.mts +0 -86
  32. package/dist/deploys.mjs +0 -67
  33. package/dist/discover.d.mts +0 -194
  34. package/dist/discover.mjs +0 -138
  35. package/dist/endpoint-factory-DcT49a8O.mjs +0 -96
  36. package/dist/environments.d.mts +0 -96
  37. package/dist/environments.mjs +0 -71
  38. package/dist/errors-DfEFwcTe.mjs +0 -142
  39. package/dist/events-api.d.mts +0 -254
  40. package/dist/events-api.mjs +0 -184
  41. package/dist/events.d.mts +0 -754
  42. package/dist/events.mjs +0 -142
  43. package/dist/feedback.d.mts +0 -82
  44. package/dist/feedback.mjs +0 -63
  45. package/dist/integration-D7KCM1-p.mjs +0 -75
  46. package/dist/integration-veqa_7yB.d.mts +0 -33
  47. package/dist/issues.d.mts +0 -458
  48. package/dist/issues.mjs +0 -324
  49. package/dist/members.d.mts +0 -308
  50. package/dist/members.mjs +0 -156
  51. package/dist/messaging.d.mts +0 -1
  52. package/dist/messaging.mjs +0 -1
  53. package/dist/monitors.d.mts +0 -458
  54. package/dist/monitors.mjs +0 -234
  55. package/dist/notifications.d.mts +0 -180
  56. package/dist/notifications.mjs +0 -133
  57. package/dist/organizations.d.mts +0 -442
  58. package/dist/organizations.mjs +0 -334
  59. package/dist/pagination-PlgAqbZt.mjs +0 -116
  60. package/dist/project-keys.d.mts +0 -246
  61. package/dist/project-keys.mjs +0 -122
  62. package/dist/projects.d.mts +0 -534
  63. package/dist/projects.mjs +0 -378
  64. package/dist/releases.d.mts +0 -780
  65. package/dist/releases.mjs +0 -479
  66. package/dist/replays.d.mts +0 -234
  67. package/dist/replays.mjs +0 -192
  68. package/dist/scim.d.mts +0 -324
  69. package/dist/scim.mjs +0 -249
  70. package/dist/scopes-RRU0vt-a.mjs +0 -36
  71. package/dist/teams.d.mts +0 -448
  72. package/dist/teams.mjs +0 -266
  73. package/dist/triggers.d.mts +0 -41
  74. package/dist/triggers.mjs +0 -56
  75. package/dist/user-emails.d.mts +0 -84
  76. package/dist/user-emails.mjs +0 -60
  77. package/dist/verification.d.mts +0 -30
  78. package/dist/verification.mjs +0 -83
  79. package/dist/webhooks.d.mts +0 -158
  80. package/dist/webhooks.mjs +0 -108
package/dist/projects.mjs DELETED
@@ -1,378 +0,0 @@
1
- import { orgProjectScopeInputSchema, sentryIdSchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema, sentryMemberSchema, sentryProjectDetailsSchema, sentryProjectSummarySchema, sentrySlugSchema, sentryTeamSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-DcT49a8O.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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: "sentry.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 };