@keystrokehq/sentry 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +218 -0
- package/dist/_official/index.d.mts +3 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +2 -0
- package/dist/_runtime/index.mjs +3 -0
- package/dist/alerts.d.mts +551 -0
- package/dist/alerts.mjs +300 -0
- package/dist/client.d.mts +86 -0
- package/dist/client.mjs +233 -0
- package/dist/connection.d.mts +3 -0
- package/dist/connection.mjs +3 -0
- package/dist/dashboards.d.mts +203 -0
- package/dist/dashboards.mjs +122 -0
- package/dist/debug-files.d.mts +127 -0
- package/dist/debug-files.mjs +73 -0
- package/dist/deploys.d.mts +103 -0
- package/dist/deploys.mjs +67 -0
- package/dist/discover.d.mts +235 -0
- package/dist/discover.mjs +138 -0
- package/dist/endpoint-factory-BwjbcPwW.mjs +96 -0
- package/dist/environments.d.mts +121 -0
- package/dist/environments.mjs +71 -0
- package/dist/errors-DfEFwcTe.mjs +142 -0
- package/dist/events-api.d.mts +311 -0
- package/dist/events-api.mjs +184 -0
- package/dist/events.d.mts +754 -0
- package/dist/events.mjs +142 -0
- package/dist/feedback.d.mts +99 -0
- package/dist/feedback.mjs +63 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-C8KHkeNG.d.mts +58 -0
- package/dist/integration-WwY95cWE.mjs +156 -0
- package/dist/issues.d.mts +563 -0
- package/dist/issues.mjs +324 -0
- package/dist/members.d.mts +365 -0
- package/dist/members.mjs +156 -0
- package/dist/messaging.d.mts +1 -0
- package/dist/messaging.mjs +1 -0
- package/dist/monitors.d.mts +539 -0
- package/dist/monitors.mjs +234 -0
- package/dist/notifications.d.mts +221 -0
- package/dist/notifications.mjs +133 -0
- package/dist/organizations.d.mts +563 -0
- package/dist/organizations.mjs +334 -0
- package/dist/pagination-PlgAqbZt.mjs +116 -0
- package/dist/project-keys.d.mts +287 -0
- package/dist/project-keys.mjs +122 -0
- package/dist/projects.d.mts +687 -0
- package/dist/projects.mjs +378 -0
- package/dist/provider-app-BANn4KOL.d.mts +45 -0
- package/dist/releases.d.mts +949 -0
- package/dist/releases.mjs +479 -0
- package/dist/replays.d.mts +307 -0
- package/dist/replays.mjs +192 -0
- package/dist/schemas.d.mts +381 -0
- package/dist/schemas.mjs +318 -0
- package/dist/scim.d.mts +413 -0
- package/dist/scim.mjs +249 -0
- package/dist/scopes-RRU0vt-a.mjs +36 -0
- package/dist/teams.d.mts +561 -0
- package/dist/teams.mjs +266 -0
- package/dist/triggers.d.mts +83 -0
- package/dist/triggers.mjs +263 -0
- package/dist/user-emails.d.mts +117 -0
- package/dist/user-emails.mjs +60 -0
- package/dist/verification.d.mts +30 -0
- package/dist/verification.mjs +83 -0
- package/dist/webhooks.d.mts +199 -0
- package/dist/webhooks.mjs +108 -0
- package/package.json +178 -0
|
@@ -0,0 +1,307 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { orgProjectScopeInputSchema, orgScopeInputSchema, sentryIdSchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema, sentryReplaySchema } from "./schemas.mjs";
|
|
2
|
+
import { t as defineSentryEndpoint } from "./endpoint-factory-BwjbcPwW.mjs";
|
|
3
|
+
import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/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: "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: "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: "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: "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: "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: "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: "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: "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: "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 };
|