@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.
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} +5 -5
  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 +9 -117
  17. package/dist/_official/index.d.mts +0 -46
  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 -551
  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 -203
  28. package/dist/dashboards.mjs +0 -122
  29. package/dist/debug-files.d.mts +0 -127
  30. package/dist/debug-files.mjs +0 -73
  31. package/dist/deploys.d.mts +0 -103
  32. package/dist/deploys.mjs +0 -67
  33. package/dist/discover.d.mts +0 -235
  34. package/dist/discover.mjs +0 -138
  35. package/dist/endpoint-factory-C0WIFmtK.mjs +0 -95
  36. package/dist/environments.d.mts +0 -121
  37. package/dist/environments.mjs +0 -71
  38. package/dist/errors-DfEFwcTe.mjs +0 -142
  39. package/dist/events-api.d.mts +0 -311
  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 -99
  44. package/dist/feedback.mjs +0 -63
  45. package/dist/integration-DCNn_9vz.mjs +0 -356
  46. package/dist/integration-rmp485nJ.d.mts +0 -57
  47. package/dist/issues.d.mts +0 -563
  48. package/dist/issues.mjs +0 -324
  49. package/dist/members.d.mts +0 -365
  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 -539
  54. package/dist/monitors.mjs +0 -234
  55. package/dist/notifications.d.mts +0 -221
  56. package/dist/notifications.mjs +0 -133
  57. package/dist/organizations.d.mts +0 -563
  58. package/dist/organizations.mjs +0 -334
  59. package/dist/pagination-PlgAqbZt.mjs +0 -116
  60. package/dist/project-keys.d.mts +0 -287
  61. package/dist/project-keys.mjs +0 -122
  62. package/dist/projects.d.mts +0 -687
  63. package/dist/projects.mjs +0 -378
  64. package/dist/releases.d.mts +0 -949
  65. package/dist/releases.mjs +0 -479
  66. package/dist/replays.d.mts +0 -307
  67. package/dist/replays.mjs +0 -192
  68. package/dist/scim.d.mts +0 -413
  69. package/dist/scim.mjs +0 -249
  70. package/dist/scopes-RRU0vt-a.mjs +0 -36
  71. package/dist/teams.d.mts +0 -561
  72. package/dist/teams.mjs +0 -266
  73. package/dist/triggers.d.mts +0 -97
  74. package/dist/triggers.mjs +0 -106
  75. package/dist/user-emails.d.mts +0 -117
  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 -199
  80. package/dist/webhooks.mjs +0 -108
@@ -1,307 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
-
5
- //#region src/replays.d.ts
6
- declare const fetchOrganizationReplayCount: _keystrokehq_core0.Operation<z.ZodObject<{
7
- organization_slug: z.ZodOptional<z.ZodString>;
8
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
9
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
- statsPeriod: z.ZodOptional<z.ZodString>;
11
- query: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
13
- SENTRY_ACCESS_TOKEN: z.ZodString;
14
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
15
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
17
- SENTRY_ACCESS_TOKEN: z.ZodString;
18
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
19
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
20
- }, z.core.$strip>>[] | undefined>], undefined>;
21
- declare const fetchOrganizationReplayDetails: _keystrokehq_core0.Operation<z.ZodObject<{
22
- organization_slug: z.ZodOptional<z.ZodString>;
23
- replay_id: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- id: z.ZodString;
26
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
27
- replay_type: z.ZodOptional<z.ZodString>;
28
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
- started_at: z.ZodOptional<z.ZodISODateTime>;
30
- finished_at: z.ZodOptional<z.ZodISODateTime>;
31
- duration: z.ZodOptional<z.ZodNumber>;
32
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
33
- SENTRY_ACCESS_TOKEN: z.ZodString;
34
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
35
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
37
- SENTRY_ACCESS_TOKEN: z.ZodString;
38
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
39
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
40
- }, z.core.$strip>>[] | undefined>], undefined>;
41
- declare const fetchOrganizationReplaySelectors: _keystrokehq_core0.Operation<z.ZodObject<{
42
- cursor: z.ZodOptional<z.ZodString>;
43
- per_page: z.ZodOptional<z.ZodNumber>;
44
- organization_slug: z.ZodOptional<z.ZodString>;
45
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
46
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
- statsPeriod: z.ZodOptional<z.ZodString>;
48
- query: z.ZodOptional<z.ZodString>;
49
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
50
- SENTRY_ACCESS_TOKEN: z.ZodString;
51
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
52
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
53
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
54
- SENTRY_ACCESS_TOKEN: z.ZodString;
55
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
56
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
57
- }, z.core.$strip>>[] | undefined>], undefined>;
58
- declare const retrieveOrganizationReplays: _keystrokehq_core0.Operation<z.ZodObject<{
59
- cursor: z.ZodOptional<z.ZodString>;
60
- per_page: z.ZodOptional<z.ZodNumber>;
61
- organization_slug: z.ZodOptional<z.ZodString>;
62
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
63
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
- statsPeriod: z.ZodOptional<z.ZodString>;
65
- query: z.ZodOptional<z.ZodString>;
66
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
67
- id: z.ZodString;
68
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
69
- replay_type: z.ZodOptional<z.ZodString>;
70
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
- started_at: z.ZodOptional<z.ZodISODateTime>;
72
- finished_at: z.ZodOptional<z.ZodISODateTime>;
73
- duration: z.ZodOptional<z.ZodNumber>;
74
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
75
- SENTRY_ACCESS_TOKEN: z.ZodString;
76
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
77
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
78
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
79
- SENTRY_ACCESS_TOKEN: z.ZodString;
80
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
81
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
82
- }, z.core.$strip>>[] | undefined>], undefined>;
83
- declare const fetchProjectReplayClicks: _keystrokehq_core0.Operation<z.ZodObject<{
84
- cursor: z.ZodOptional<z.ZodString>;
85
- per_page: z.ZodOptional<z.ZodNumber>;
86
- query: z.ZodOptional<z.ZodString>;
87
- organization_slug: z.ZodOptional<z.ZodString>;
88
- project_slug: z.ZodString;
89
- replay_id: z.ZodString;
90
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
91
- SENTRY_ACCESS_TOKEN: z.ZodString;
92
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
93
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
94
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
95
- SENTRY_ACCESS_TOKEN: z.ZodString;
96
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
97
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
98
- }, z.core.$strip>>[] | undefined>], undefined>;
99
- declare const fetchReplayRecordingSegment: _keystrokehq_core0.Operation<z.ZodObject<{
100
- organization_slug: z.ZodOptional<z.ZodString>;
101
- project_slug: z.ZodString;
102
- replay_id: z.ZodString;
103
- segment_id: z.ZodString;
104
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
109
- SENTRY_ACCESS_TOKEN: z.ZodString;
110
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
111
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
112
- }, z.core.$strip>>[] | undefined>], undefined>;
113
- declare const retrieveReplayRecordingSegments: _keystrokehq_core0.Operation<z.ZodObject<{
114
- cursor: z.ZodOptional<z.ZodString>;
115
- per_page: z.ZodOptional<z.ZodNumber>;
116
- query: z.ZodOptional<z.ZodString>;
117
- organization_slug: z.ZodOptional<z.ZodString>;
118
- project_slug: z.ZodString;
119
- replay_id: z.ZodString;
120
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
121
- SENTRY_ACCESS_TOKEN: z.ZodString;
122
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
123
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
124
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
125
- SENTRY_ACCESS_TOKEN: z.ZodString;
126
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
127
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
128
- }, z.core.$strip>>[] | undefined>], undefined>;
129
- declare const getWhoViewedReplayByProject: _keystrokehq_core0.Operation<z.ZodObject<{
130
- organization_slug: z.ZodOptional<z.ZodString>;
131
- project_slug: z.ZodString;
132
- replay_id: z.ZodString;
133
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
134
- SENTRY_ACCESS_TOKEN: z.ZodString;
135
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
136
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
137
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
138
- SENTRY_ACCESS_TOKEN: z.ZodString;
139
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
140
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
141
- }, z.core.$strip>>[] | undefined>], undefined>;
142
- declare const deleteProjectReplay: _keystrokehq_core0.Operation<z.ZodObject<{
143
- organization_slug: z.ZodOptional<z.ZodString>;
144
- project_slug: z.ZodString;
145
- replay_id: z.ZodString;
146
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
147
- SENTRY_ACCESS_TOKEN: z.ZodString;
148
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
149
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
150
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
151
- SENTRY_ACCESS_TOKEN: z.ZodString;
152
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
153
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
154
- }, z.core.$strip>>[] | undefined>], undefined>;
155
- declare const sentryReplayOperations: {
156
- readonly fetchOrganizationReplayCount: _keystrokehq_core0.Operation<z.ZodObject<{
157
- organization_slug: z.ZodOptional<z.ZodString>;
158
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
159
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
- statsPeriod: z.ZodOptional<z.ZodString>;
161
- query: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
163
- SENTRY_ACCESS_TOKEN: z.ZodString;
164
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
165
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
166
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
167
- SENTRY_ACCESS_TOKEN: z.ZodString;
168
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
169
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
170
- }, z.core.$strip>>[] | undefined>], undefined>;
171
- readonly fetchOrganizationReplayDetails: _keystrokehq_core0.Operation<z.ZodObject<{
172
- organization_slug: z.ZodOptional<z.ZodString>;
173
- replay_id: z.ZodString;
174
- }, z.core.$strip>, z.ZodObject<{
175
- id: z.ZodString;
176
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
177
- replay_type: z.ZodOptional<z.ZodString>;
178
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
- started_at: z.ZodOptional<z.ZodISODateTime>;
180
- finished_at: z.ZodOptional<z.ZodISODateTime>;
181
- duration: z.ZodOptional<z.ZodNumber>;
182
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
183
- SENTRY_ACCESS_TOKEN: z.ZodString;
184
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
185
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
186
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
187
- SENTRY_ACCESS_TOKEN: z.ZodString;
188
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
189
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
190
- }, z.core.$strip>>[] | undefined>], undefined>;
191
- readonly fetchOrganizationReplaySelectors: _keystrokehq_core0.Operation<z.ZodObject<{
192
- cursor: z.ZodOptional<z.ZodString>;
193
- per_page: z.ZodOptional<z.ZodNumber>;
194
- organization_slug: z.ZodOptional<z.ZodString>;
195
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
196
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
- statsPeriod: z.ZodOptional<z.ZodString>;
198
- query: z.ZodOptional<z.ZodString>;
199
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
200
- SENTRY_ACCESS_TOKEN: z.ZodString;
201
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
202
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
203
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
204
- SENTRY_ACCESS_TOKEN: z.ZodString;
205
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
206
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
207
- }, z.core.$strip>>[] | undefined>], undefined>;
208
- readonly retrieveOrganizationReplays: _keystrokehq_core0.Operation<z.ZodObject<{
209
- cursor: z.ZodOptional<z.ZodString>;
210
- per_page: z.ZodOptional<z.ZodNumber>;
211
- organization_slug: z.ZodOptional<z.ZodString>;
212
- project: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
213
- environment: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
- statsPeriod: z.ZodOptional<z.ZodString>;
215
- query: z.ZodOptional<z.ZodString>;
216
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
217
- id: z.ZodString;
218
- project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
219
- replay_type: z.ZodOptional<z.ZodString>;
220
- trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
- started_at: z.ZodOptional<z.ZodISODateTime>;
222
- finished_at: z.ZodOptional<z.ZodISODateTime>;
223
- duration: z.ZodOptional<z.ZodNumber>;
224
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
225
- SENTRY_ACCESS_TOKEN: z.ZodString;
226
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
227
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
228
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
229
- SENTRY_ACCESS_TOKEN: z.ZodString;
230
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
231
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
232
- }, z.core.$strip>>[] | undefined>], undefined>;
233
- readonly fetchProjectReplayClicks: _keystrokehq_core0.Operation<z.ZodObject<{
234
- cursor: z.ZodOptional<z.ZodString>;
235
- per_page: z.ZodOptional<z.ZodNumber>;
236
- query: z.ZodOptional<z.ZodString>;
237
- organization_slug: z.ZodOptional<z.ZodString>;
238
- project_slug: z.ZodString;
239
- replay_id: z.ZodString;
240
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
241
- SENTRY_ACCESS_TOKEN: z.ZodString;
242
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
243
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
244
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
245
- SENTRY_ACCESS_TOKEN: z.ZodString;
246
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
247
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
248
- }, z.core.$strip>>[] | undefined>], undefined>;
249
- readonly fetchReplayRecordingSegment: _keystrokehq_core0.Operation<z.ZodObject<{
250
- organization_slug: z.ZodOptional<z.ZodString>;
251
- project_slug: z.ZodString;
252
- replay_id: z.ZodString;
253
- segment_id: z.ZodString;
254
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
255
- SENTRY_ACCESS_TOKEN: z.ZodString;
256
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
257
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
258
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
259
- SENTRY_ACCESS_TOKEN: z.ZodString;
260
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
261
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
262
- }, z.core.$strip>>[] | undefined>], undefined>;
263
- readonly retrieveReplayRecordingSegments: _keystrokehq_core0.Operation<z.ZodObject<{
264
- cursor: z.ZodOptional<z.ZodString>;
265
- per_page: z.ZodOptional<z.ZodNumber>;
266
- query: z.ZodOptional<z.ZodString>;
267
- organization_slug: z.ZodOptional<z.ZodString>;
268
- project_slug: z.ZodString;
269
- replay_id: z.ZodString;
270
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
271
- SENTRY_ACCESS_TOKEN: z.ZodString;
272
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
273
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
274
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
275
- SENTRY_ACCESS_TOKEN: z.ZodString;
276
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
277
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
278
- }, z.core.$strip>>[] | undefined>], undefined>;
279
- readonly getWhoViewedReplayByProject: _keystrokehq_core0.Operation<z.ZodObject<{
280
- organization_slug: z.ZodOptional<z.ZodString>;
281
- project_slug: z.ZodString;
282
- replay_id: z.ZodString;
283
- }, z.core.$strip>, z.ZodArray<z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
284
- SENTRY_ACCESS_TOKEN: z.ZodString;
285
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
286
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
287
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
288
- SENTRY_ACCESS_TOKEN: z.ZodString;
289
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
290
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
291
- }, z.core.$strip>>[] | undefined>], undefined>;
292
- readonly deleteProjectReplay: _keystrokehq_core0.Operation<z.ZodObject<{
293
- organization_slug: z.ZodOptional<z.ZodString>;
294
- project_slug: z.ZodString;
295
- replay_id: z.ZodString;
296
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
297
- SENTRY_ACCESS_TOKEN: z.ZodString;
298
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
299
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
300
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
301
- SENTRY_ACCESS_TOKEN: z.ZodString;
302
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
303
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
304
- }, z.core.$strip>>[] | undefined>], undefined>;
305
- };
306
- //#endregion
307
- 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-C0WIFmtK.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 };