@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
@@ -1,234 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
-
4
- //#region src/replays.d.ts
5
- declare const fetchOrganizationReplayCount: _keystrokehq_core0.Operation<z.ZodObject<{
6
- organization_slug: z.ZodOptional<z.ZodString>;
7
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
8
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
- statsPeriod: z.ZodOptional<z.ZodString>;
10
- query: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
12
- SENTRY_ACCESS_TOKEN: z.ZodString;
13
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
14
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
15
- }, z.core.$strip>>], undefined>;
16
- declare const fetchOrganizationReplayDetails: _keystrokehq_core0.Operation<z.ZodObject<{
17
- organization_slug: z.ZodOptional<z.ZodString>;
18
- replay_id: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- id: z.ZodString;
21
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
22
- replay_type: z.ZodOptional<z.ZodString>;
23
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
- started_at: z.ZodOptional<z.ZodISODateTime>;
25
- finished_at: z.ZodOptional<z.ZodISODateTime>;
26
- duration: z.ZodOptional<z.ZodNumber>;
27
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
28
- SENTRY_ACCESS_TOKEN: z.ZodString;
29
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
30
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
31
- }, z.core.$strip>>], undefined>;
32
- declare const fetchOrganizationReplaySelectors: _keystrokehq_core0.Operation<z.ZodObject<{
33
- cursor: z.ZodOptional<z.ZodString>;
34
- per_page: z.ZodOptional<z.ZodNumber>;
35
- organization_slug: z.ZodOptional<z.ZodString>;
36
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
37
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
- statsPeriod: z.ZodOptional<z.ZodString>;
39
- query: z.ZodOptional<z.ZodString>;
40
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
41
- SENTRY_ACCESS_TOKEN: z.ZodString;
42
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
43
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>>], undefined>;
45
- declare const retrieveOrganizationReplays: _keystrokehq_core0.Operation<z.ZodObject<{
46
- cursor: z.ZodOptional<z.ZodString>;
47
- per_page: z.ZodOptional<z.ZodNumber>;
48
- organization_slug: z.ZodOptional<z.ZodString>;
49
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
50
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
- statsPeriod: z.ZodOptional<z.ZodString>;
52
- query: z.ZodOptional<z.ZodString>;
53
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
54
- id: z.ZodString;
55
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
56
- replay_type: z.ZodOptional<z.ZodString>;
57
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
- started_at: z.ZodOptional<z.ZodISODateTime>;
59
- finished_at: z.ZodOptional<z.ZodISODateTime>;
60
- duration: z.ZodOptional<z.ZodNumber>;
61
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
62
- SENTRY_ACCESS_TOKEN: z.ZodString;
63
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
64
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
65
- }, z.core.$strip>>], undefined>;
66
- declare const fetchProjectReplayClicks: _keystrokehq_core0.Operation<z.ZodObject<{
67
- cursor: z.ZodOptional<z.ZodString>;
68
- per_page: z.ZodOptional<z.ZodNumber>;
69
- query: z.ZodOptional<z.ZodString>;
70
- organization_slug: z.ZodOptional<z.ZodString>;
71
- project_slug: z.ZodString;
72
- replay_id: z.ZodString;
73
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
74
- SENTRY_ACCESS_TOKEN: z.ZodString;
75
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
76
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
77
- }, z.core.$strip>>], undefined>;
78
- declare const fetchReplayRecordingSegment: _keystrokehq_core0.Operation<z.ZodObject<{
79
- organization_slug: z.ZodOptional<z.ZodString>;
80
- project_slug: z.ZodString;
81
- replay_id: z.ZodString;
82
- segment_id: z.ZodString;
83
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
84
- SENTRY_ACCESS_TOKEN: z.ZodString;
85
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
86
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
87
- }, z.core.$strip>>], undefined>;
88
- declare const retrieveReplayRecordingSegments: _keystrokehq_core0.Operation<z.ZodObject<{
89
- cursor: z.ZodOptional<z.ZodString>;
90
- per_page: z.ZodOptional<z.ZodNumber>;
91
- query: z.ZodOptional<z.ZodString>;
92
- organization_slug: z.ZodOptional<z.ZodString>;
93
- project_slug: z.ZodString;
94
- replay_id: z.ZodString;
95
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
96
- SENTRY_ACCESS_TOKEN: z.ZodString;
97
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
98
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
99
- }, z.core.$strip>>], undefined>;
100
- declare const getWhoViewedReplayByProject: _keystrokehq_core0.Operation<z.ZodObject<{
101
- organization_slug: z.ZodOptional<z.ZodString>;
102
- project_slug: z.ZodString;
103
- replay_id: z.ZodString;
104
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
105
- SENTRY_ACCESS_TOKEN: z.ZodString;
106
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
107
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
108
- }, z.core.$strip>>], undefined>;
109
- declare const deleteProjectReplay: _keystrokehq_core0.Operation<z.ZodObject<{
110
- organization_slug: z.ZodOptional<z.ZodString>;
111
- project_slug: z.ZodString;
112
- replay_id: z.ZodString;
113
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
114
- SENTRY_ACCESS_TOKEN: z.ZodString;
115
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
116
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
117
- }, z.core.$strip>>], undefined>;
118
- declare const sentryReplayOperations: {
119
- readonly fetchOrganizationReplayCount: _keystrokehq_core0.Operation<z.ZodObject<{
120
- organization_slug: z.ZodOptional<z.ZodString>;
121
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
122
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
- statsPeriod: z.ZodOptional<z.ZodString>;
124
- query: z.ZodOptional<z.ZodString>;
125
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
126
- SENTRY_ACCESS_TOKEN: z.ZodString;
127
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
128
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
129
- }, z.core.$strip>>], undefined>;
130
- readonly fetchOrganizationReplayDetails: _keystrokehq_core0.Operation<z.ZodObject<{
131
- organization_slug: z.ZodOptional<z.ZodString>;
132
- replay_id: z.ZodString;
133
- }, z.core.$strip>, z.ZodObject<{
134
- id: z.ZodString;
135
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
136
- replay_type: z.ZodOptional<z.ZodString>;
137
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
- started_at: z.ZodOptional<z.ZodISODateTime>;
139
- finished_at: z.ZodOptional<z.ZodISODateTime>;
140
- duration: z.ZodOptional<z.ZodNumber>;
141
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
142
- SENTRY_ACCESS_TOKEN: z.ZodString;
143
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
144
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strip>>], undefined>;
146
- readonly fetchOrganizationReplaySelectors: _keystrokehq_core0.Operation<z.ZodObject<{
147
- cursor: z.ZodOptional<z.ZodString>;
148
- per_page: z.ZodOptional<z.ZodNumber>;
149
- organization_slug: z.ZodOptional<z.ZodString>;
150
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
151
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
- statsPeriod: z.ZodOptional<z.ZodString>;
153
- query: z.ZodOptional<z.ZodString>;
154
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
155
- SENTRY_ACCESS_TOKEN: z.ZodString;
156
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
157
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
158
- }, z.core.$strip>>], undefined>;
159
- readonly retrieveOrganizationReplays: _keystrokehq_core0.Operation<z.ZodObject<{
160
- cursor: z.ZodOptional<z.ZodString>;
161
- per_page: z.ZodOptional<z.ZodNumber>;
162
- organization_slug: z.ZodOptional<z.ZodString>;
163
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
164
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
- statsPeriod: z.ZodOptional<z.ZodString>;
166
- query: z.ZodOptional<z.ZodString>;
167
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
168
- id: z.ZodString;
169
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
170
- replay_type: z.ZodOptional<z.ZodString>;
171
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
172
- started_at: z.ZodOptional<z.ZodISODateTime>;
173
- finished_at: z.ZodOptional<z.ZodISODateTime>;
174
- duration: z.ZodOptional<z.ZodNumber>;
175
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
176
- SENTRY_ACCESS_TOKEN: z.ZodString;
177
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
178
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
179
- }, z.core.$strip>>], undefined>;
180
- readonly fetchProjectReplayClicks: _keystrokehq_core0.Operation<z.ZodObject<{
181
- cursor: z.ZodOptional<z.ZodString>;
182
- per_page: z.ZodOptional<z.ZodNumber>;
183
- query: z.ZodOptional<z.ZodString>;
184
- organization_slug: z.ZodOptional<z.ZodString>;
185
- project_slug: z.ZodString;
186
- replay_id: z.ZodString;
187
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
188
- SENTRY_ACCESS_TOKEN: z.ZodString;
189
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
190
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
191
- }, z.core.$strip>>], undefined>;
192
- readonly fetchReplayRecordingSegment: _keystrokehq_core0.Operation<z.ZodObject<{
193
- organization_slug: z.ZodOptional<z.ZodString>;
194
- project_slug: z.ZodString;
195
- replay_id: z.ZodString;
196
- segment_id: z.ZodString;
197
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
198
- SENTRY_ACCESS_TOKEN: z.ZodString;
199
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
200
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
201
- }, z.core.$strip>>], undefined>;
202
- readonly retrieveReplayRecordingSegments: _keystrokehq_core0.Operation<z.ZodObject<{
203
- cursor: z.ZodOptional<z.ZodString>;
204
- per_page: z.ZodOptional<z.ZodNumber>;
205
- query: z.ZodOptional<z.ZodString>;
206
- organization_slug: z.ZodOptional<z.ZodString>;
207
- project_slug: z.ZodString;
208
- replay_id: z.ZodString;
209
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
210
- SENTRY_ACCESS_TOKEN: z.ZodString;
211
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
212
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
213
- }, z.core.$strip>>], undefined>;
214
- readonly getWhoViewedReplayByProject: _keystrokehq_core0.Operation<z.ZodObject<{
215
- organization_slug: z.ZodOptional<z.ZodString>;
216
- project_slug: z.ZodString;
217
- replay_id: z.ZodString;
218
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
219
- SENTRY_ACCESS_TOKEN: z.ZodString;
220
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
221
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
222
- }, z.core.$strip>>], undefined>;
223
- readonly deleteProjectReplay: _keystrokehq_core0.Operation<z.ZodObject<{
224
- organization_slug: z.ZodOptional<z.ZodString>;
225
- project_slug: z.ZodString;
226
- replay_id: z.ZodString;
227
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
228
- SENTRY_ACCESS_TOKEN: z.ZodString;
229
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
230
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
231
- }, z.core.$strip>>], undefined>;
232
- };
233
- //#endregion
234
- export { deleteProjectReplay, fetchOrganizationReplayCount, fetchOrganizationReplayDetails, fetchOrganizationReplaySelectors, fetchProjectReplayClicks, fetchReplayRecordingSegment, getWhoViewedReplayByProject, retrieveOrganizationReplays, retrieveReplayRecordingSegments, sentryReplayOperations };
package/dist/replays.mjs DELETED
@@ -1,192 +0,0 @@
1
- import { orgProjectScopeInputSchema, orgScopeInputSchema, sentryIdSchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema, sentryReplaySchema } 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/replays.ts
7
- /**
8
- * Sentry Session Replay operations. Maps to PLAN.md §6.17 (9 actions).
9
- */
10
- const ORG = [{
11
- name: "organization_slug",
12
- placeholder: "{organization_slug}"
13
- }];
14
- const ORG_REPLAY = [...ORG, {
15
- name: "replay_id",
16
- placeholder: "{replay_id}"
17
- }];
18
- const ORG_PROJECT_REPLAY = [...[...ORG, {
19
- name: "project_slug",
20
- placeholder: "{project_slug}"
21
- }], {
22
- name: "replay_id",
23
- placeholder: "{replay_id}"
24
- }];
25
- const ORG_PROJECT_REPLAY_SEGMENT = [...ORG_PROJECT_REPLAY, {
26
- name: "segment_id",
27
- placeholder: "{segment_id}"
28
- }];
29
- const fetchOrganizationReplayCount = defineSentryEndpoint({
30
- id: "sentry.fetch-organization-replay-count",
31
- name: "Fetch Replay Count",
32
- description: "Return total replay counts for an organization query.",
33
- method: "GET",
34
- path: "/api/0/organizations/{organization_slug}/replay-count/",
35
- pathParams: ORG,
36
- input: orgScopeInputSchema.extend({
37
- project: z.array(z.number().int()).optional(),
38
- environment: z.array(z.string()).optional(),
39
- statsPeriod: z.string().optional(),
40
- query: z.string().optional()
41
- }),
42
- queryFields: [
43
- "project",
44
- "environment",
45
- "statsPeriod",
46
- "query"
47
- ],
48
- output: sentryJsonObjectSchema,
49
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
50
- });
51
- const fetchOrganizationReplayDetails = defineSentryEndpoint({
52
- id: "sentry.fetch-organization-replay-details",
53
- name: "Fetch Replay Details",
54
- description: "Fetch a single replay’s details by replay id.",
55
- method: "GET",
56
- path: "/api/0/organizations/{organization_slug}/replays/{replay_id}/",
57
- pathParams: ORG_REPLAY,
58
- input: orgScopeInputSchema.extend({ replay_id: sentryIdSchema }),
59
- output: sentryReplaySchema,
60
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
61
- });
62
- const fetchOrganizationReplaySelectors = defineSentryEndpoint({
63
- id: "sentry.fetch-organization-replay-selectors",
64
- name: "Fetch Replay Selectors",
65
- description: "List the dead-click / rage-click selectors observed in replays.",
66
- method: "GET",
67
- path: "/api/0/organizations/{organization_slug}/replay-selectors/",
68
- pathParams: ORG,
69
- input: sentryListInputSchema.merge(orgScopeInputSchema).extend({
70
- project: z.array(z.number().int()).optional(),
71
- environment: z.array(z.string()).optional(),
72
- statsPeriod: z.string().optional(),
73
- query: z.string().optional()
74
- }),
75
- queryFields: [
76
- "cursor",
77
- "per_page",
78
- "project",
79
- "environment",
80
- "statsPeriod",
81
- "query"
82
- ],
83
- output: sentryJsonArraySchema,
84
- pagination: "cursor",
85
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
86
- });
87
- const retrieveOrganizationReplays = defineSentryEndpoint({
88
- id: "sentry.retrieve-organization-replays",
89
- name: "List Organization Replays",
90
- description: "List replays for an organization.",
91
- method: "GET",
92
- path: "/api/0/organizations/{organization_slug}/replays/",
93
- pathParams: ORG,
94
- input: sentryListInputSchema.merge(orgScopeInputSchema).extend({
95
- project: z.array(z.number().int()).optional(),
96
- environment: z.array(z.string()).optional(),
97
- statsPeriod: z.string().optional(),
98
- query: z.string().optional()
99
- }),
100
- queryFields: [
101
- "cursor",
102
- "per_page",
103
- "project",
104
- "environment",
105
- "statsPeriod",
106
- "query"
107
- ],
108
- output: z.array(sentryReplaySchema),
109
- pagination: "cursor",
110
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
111
- });
112
- const fetchProjectReplayClicks = defineSentryEndpoint({
113
- id: "sentry.fetch-project-replay-clicks",
114
- name: "Fetch Replay Clicks",
115
- description: "Fetch the clickstream for a replay.",
116
- method: "GET",
117
- path: "/api/0/projects/{organization_slug}/{project_slug}/replays/{replay_id}/clicks/",
118
- pathParams: ORG_PROJECT_REPLAY,
119
- input: sentryListInputSchema.merge(orgProjectScopeInputSchema).extend({ replay_id: sentryIdSchema }),
120
- queryFields: [
121
- "cursor",
122
- "per_page",
123
- "query"
124
- ],
125
- output: sentryJsonArraySchema,
126
- pagination: "cursor",
127
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
128
- });
129
- const fetchReplayRecordingSegment = defineSentryEndpoint({
130
- id: "sentry.fetch-replay-recording-segment",
131
- name: "Fetch Replay Segment",
132
- description: "Fetch a specific rrweb segment for a replay.",
133
- method: "GET",
134
- path: "/api/0/projects/{organization_slug}/{project_slug}/replays/{replay_id}/recording-segments/{segment_id}/",
135
- pathParams: ORG_PROJECT_REPLAY_SEGMENT,
136
- input: orgProjectScopeInputSchema.extend({
137
- replay_id: sentryIdSchema,
138
- segment_id: sentryIdSchema
139
- }),
140
- output: sentryJsonObjectSchema,
141
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
142
- });
143
- const retrieveReplayRecordingSegments = defineSentryEndpoint({
144
- id: "sentry.retrieve-replay-recording-segments",
145
- name: "List Replay Segments",
146
- description: "List the rrweb segments for a replay.",
147
- method: "GET",
148
- path: "/api/0/projects/{organization_slug}/{project_slug}/replays/{replay_id}/recording-segments/",
149
- pathParams: ORG_PROJECT_REPLAY,
150
- input: sentryListInputSchema.merge(orgProjectScopeInputSchema).extend({ replay_id: sentryIdSchema }),
151
- queryFields: ["cursor", "per_page"],
152
- output: sentryJsonArraySchema,
153
- pagination: "cursor",
154
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
155
- });
156
- const getWhoViewedReplayByProject = defineSentryEndpoint({
157
- id: "sentry.get-who-viewed-replay-by-project",
158
- name: "Get Replay Viewers",
159
- description: "List users who viewed a replay.",
160
- method: "GET",
161
- path: "/api/0/projects/{organization_slug}/{project_slug}/replays/{replay_id}/viewed-by/",
162
- pathParams: ORG_PROJECT_REPLAY,
163
- input: orgProjectScopeInputSchema.extend({ replay_id: sentryIdSchema }),
164
- output: sentryJsonArraySchema,
165
- requiredOAuthScopes: [...SENTRY_SCOPE.eventRead]
166
- });
167
- const deleteProjectReplay = defineSentryEndpoint({
168
- id: "sentry.delete-project-replay",
169
- name: "Delete Project Replay",
170
- description: "Delete a replay by id.",
171
- method: "DELETE",
172
- path: "/api/0/projects/{organization_slug}/{project_slug}/replays/{replay_id}/",
173
- pathParams: ORG_PROJECT_REPLAY,
174
- input: orgProjectScopeInputSchema.extend({ replay_id: sentryIdSchema }),
175
- output: z.unknown(),
176
- needsApproval: true,
177
- requiredOAuthScopes: [...SENTRY_SCOPE.eventAdmin]
178
- });
179
- const sentryReplayOperations = {
180
- fetchOrganizationReplayCount,
181
- fetchOrganizationReplayDetails,
182
- fetchOrganizationReplaySelectors,
183
- retrieveOrganizationReplays,
184
- fetchProjectReplayClicks,
185
- fetchReplayRecordingSegment,
186
- retrieveReplayRecordingSegments,
187
- getWhoViewedReplayByProject,
188
- deleteProjectReplay
189
- };
190
-
191
- //#endregion
192
- export { deleteProjectReplay, fetchOrganizationReplayCount, fetchOrganizationReplayDetails, fetchOrganizationReplaySelectors, fetchProjectReplayClicks, fetchReplayRecordingSegment, getWhoViewedReplayByProject, retrieveOrganizationReplays, retrieveReplayRecordingSegments, sentryReplayOperations };