@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,381 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas.d.ts
|
|
4
|
+
declare const sentryIdSchema: z.ZodString;
|
|
5
|
+
declare const sentrySlugSchema: z.ZodString;
|
|
6
|
+
declare const sentryIsoDateSchema: z.ZodISODateTime;
|
|
7
|
+
declare const sentryIsoDateOrNullSchema: z.ZodNullable<z.ZodISODateTime>;
|
|
8
|
+
declare const sentryNullableStringSchema: z.ZodNullable<z.ZodString>;
|
|
9
|
+
declare const sentryCursorSchema: z.ZodOptional<z.ZodString>;
|
|
10
|
+
declare const sentryPerPageSchema: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
declare const sentryPaginationInputSchema: z.ZodObject<{
|
|
12
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
13
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
/** Standard query-only input for "list me all of {resource}" endpoints. */
|
|
16
|
+
declare const sentryListInputSchema: z.ZodObject<{
|
|
17
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
18
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
query: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const sentryActorSchema: z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
user: "user";
|
|
24
|
+
team: "team";
|
|
25
|
+
application: "application";
|
|
26
|
+
}>;
|
|
27
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
28
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
type SentryActor = z.output<typeof sentryActorSchema>;
|
|
32
|
+
declare const sentryOrganizationSummarySchema: z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
slug: z.ZodString;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
37
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
organizationUrl: z.ZodOptional<z.ZodString>;
|
|
43
|
+
regionUrl: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
declare const sentryOrganizationDetailsSchema: z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
slug: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
51
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
organizationUrl: z.ZodOptional<z.ZodString>;
|
|
57
|
+
regionUrl: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
type SentryOrganizationSummary = z.output<typeof sentryOrganizationSummarySchema>;
|
|
61
|
+
type SentryOrganizationDetails = z.output<typeof sentryOrganizationDetailsSchema>;
|
|
62
|
+
declare const sentryProjectSummarySchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
slug: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
68
|
+
isMember: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
status: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
declare const sentryProjectDetailsSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
slug: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
77
|
+
isMember: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
status: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$loose>;
|
|
80
|
+
type SentryProjectSummary = z.output<typeof sentryProjectSummarySchema>;
|
|
81
|
+
declare const sentryTeamSchema: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
slug: z.ZodString;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
86
|
+
isMember: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
}, z.core.$loose>;
|
|
88
|
+
type SentryTeam = z.output<typeof sentryTeamSchema>;
|
|
89
|
+
declare const sentryMemberSchema: z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
role: z.ZodOptional<z.ZodString>;
|
|
94
|
+
orgRole: z.ZodOptional<z.ZodString>;
|
|
95
|
+
teamRoles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
teamSlug: z.ZodString;
|
|
97
|
+
role: z.ZodNullable<z.ZodString>;
|
|
98
|
+
}, z.core.$loose>>>;
|
|
99
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
email: z.ZodOptional<z.ZodString>;
|
|
102
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$loose>>>;
|
|
104
|
+
}, z.core.$loose>;
|
|
105
|
+
type SentryMember = z.output<typeof sentryMemberSchema>;
|
|
106
|
+
declare const sentryIssueStatusSchema: z.ZodEnum<{
|
|
107
|
+
resolved: "resolved";
|
|
108
|
+
unresolved: "unresolved";
|
|
109
|
+
ignored: "ignored";
|
|
110
|
+
archived: "archived";
|
|
111
|
+
reprocessing: "reprocessing";
|
|
112
|
+
}>;
|
|
113
|
+
declare const sentryIssueSchema: z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
shortId: z.ZodOptional<z.ZodString>;
|
|
116
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
resolved: "resolved";
|
|
118
|
+
unresolved: "unresolved";
|
|
119
|
+
ignored: "ignored";
|
|
120
|
+
archived: "archived";
|
|
121
|
+
reprocessing: "reprocessing";
|
|
122
|
+
}>>;
|
|
123
|
+
title: z.ZodOptional<z.ZodString>;
|
|
124
|
+
culprit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
level: z.ZodOptional<z.ZodString>;
|
|
126
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
type: z.ZodOptional<z.ZodString>;
|
|
128
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
id: z.ZodOptional<z.ZodString>;
|
|
130
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
131
|
+
name: z.ZodOptional<z.ZodString>;
|
|
132
|
+
platform: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
133
|
+
dateCreated: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
134
|
+
isMember: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
135
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
136
|
+
}, z.core.$loose>>;
|
|
137
|
+
firstSeen: z.ZodOptional<z.ZodISODateTime>;
|
|
138
|
+
lastSeen: z.ZodOptional<z.ZodISODateTime>;
|
|
139
|
+
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
140
|
+
userCount: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
}, z.core.$loose>;
|
|
142
|
+
type SentryIssue = z.output<typeof sentryIssueSchema>;
|
|
143
|
+
declare const sentryEventSchema: z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
eventID: z.ZodOptional<z.ZodString>;
|
|
146
|
+
groupID: z.ZodOptional<z.ZodString>;
|
|
147
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
148
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
+
type: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, z.core.$loose>;
|
|
152
|
+
type SentryEvent = z.output<typeof sentryEventSchema>;
|
|
153
|
+
declare const sentryReleaseSchema: z.ZodObject<{
|
|
154
|
+
version: z.ZodString;
|
|
155
|
+
shortVersion: z.ZodOptional<z.ZodString>;
|
|
156
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
157
|
+
dateReleased: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
158
|
+
projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
|
+
id: z.ZodOptional<z.ZodString>;
|
|
160
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
161
|
+
name: z.ZodOptional<z.ZodString>;
|
|
162
|
+
platform: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
163
|
+
dateCreated: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
|
|
164
|
+
isMember: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
165
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
166
|
+
}, z.core.$loose>>>;
|
|
167
|
+
}, z.core.$loose>;
|
|
168
|
+
type SentryRelease = z.output<typeof sentryReleaseSchema>;
|
|
169
|
+
declare const sentryDeploySchema: z.ZodObject<{
|
|
170
|
+
id: z.ZodOptional<z.ZodString>;
|
|
171
|
+
environment: z.ZodString;
|
|
172
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
dateStarted: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
175
|
+
dateFinished: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
176
|
+
}, z.core.$loose>;
|
|
177
|
+
declare const sentryEnvironmentSchema: z.ZodObject<{
|
|
178
|
+
id: z.ZodOptional<z.ZodString>;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
}, z.core.$loose>;
|
|
182
|
+
declare const sentryMetricAlertRuleSchema: z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
name: z.ZodString;
|
|
185
|
+
thresholdType: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
dataset: z.ZodOptional<z.ZodString>;
|
|
187
|
+
query: z.ZodOptional<z.ZodString>;
|
|
188
|
+
aggregate: z.ZodOptional<z.ZodString>;
|
|
189
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
190
|
+
}, z.core.$loose>;
|
|
191
|
+
declare const sentryIssueAlertRuleSchema: z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
actionMatch: z.ZodOptional<z.ZodString>;
|
|
195
|
+
filterMatch: z.ZodOptional<z.ZodString>;
|
|
196
|
+
frequency: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
198
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
199
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
200
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
201
|
+
}, z.core.$loose>;
|
|
202
|
+
declare const sentryMonitorStatusSchema: z.ZodEnum<{
|
|
203
|
+
error: "error";
|
|
204
|
+
active: "active";
|
|
205
|
+
disabled: "disabled";
|
|
206
|
+
ok: "ok";
|
|
207
|
+
missed_checkin: "missed_checkin";
|
|
208
|
+
timeout: "timeout";
|
|
209
|
+
pending_deletion: "pending_deletion";
|
|
210
|
+
deletion_in_progress: "deletion_in_progress";
|
|
211
|
+
}>;
|
|
212
|
+
declare const sentryMonitorSchema: z.ZodObject<{
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
slug: z.ZodString;
|
|
215
|
+
name: z.ZodString;
|
|
216
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
error: "error";
|
|
218
|
+
active: "active";
|
|
219
|
+
disabled: "disabled";
|
|
220
|
+
ok: "ok";
|
|
221
|
+
missed_checkin: "missed_checkin";
|
|
222
|
+
timeout: "timeout";
|
|
223
|
+
pending_deletion: "pending_deletion";
|
|
224
|
+
deletion_in_progress: "deletion_in_progress";
|
|
225
|
+
}>>;
|
|
226
|
+
type: z.ZodOptional<z.ZodString>;
|
|
227
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
228
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
229
|
+
}, z.core.$loose>;
|
|
230
|
+
declare const sentryDashboardSchema: z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
title: z.ZodString;
|
|
233
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
234
|
+
createdBy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
235
|
+
widgets: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
236
|
+
}, z.core.$loose>;
|
|
237
|
+
declare const sentryDiscoverSavedQuerySchema: z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
query: z.ZodOptional<z.ZodString>;
|
|
241
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
|
+
orderby: z.ZodOptional<z.ZodString>;
|
|
243
|
+
projects: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
244
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
245
|
+
}, z.core.$loose>;
|
|
246
|
+
declare const sentryProjectHookSchema: z.ZodObject<{
|
|
247
|
+
id: z.ZodString;
|
|
248
|
+
url: z.ZodString;
|
|
249
|
+
events: z.ZodArray<z.ZodString>;
|
|
250
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
251
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
}, z.core.$loose>;
|
|
253
|
+
declare const sentryReplaySchema: z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
project_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
256
|
+
replay_type: z.ZodOptional<z.ZodString>;
|
|
257
|
+
trace_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
258
|
+
started_at: z.ZodOptional<z.ZodISODateTime>;
|
|
259
|
+
finished_at: z.ZodOptional<z.ZodISODateTime>;
|
|
260
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
}, z.core.$loose>;
|
|
262
|
+
declare const sentryFeedbackSchema: z.ZodObject<{
|
|
263
|
+
id: z.ZodOptional<z.ZodString>;
|
|
264
|
+
event_id: z.ZodOptional<z.ZodString>;
|
|
265
|
+
name: z.ZodOptional<z.ZodString>;
|
|
266
|
+
email: z.ZodOptional<z.ZodString>;
|
|
267
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
268
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
269
|
+
}, z.core.$loose>;
|
|
270
|
+
declare const sentryDebugFileSchema: z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
273
|
+
symbolType: z.ZodOptional<z.ZodString>;
|
|
274
|
+
cpuName: z.ZodOptional<z.ZodString>;
|
|
275
|
+
objectName: z.ZodOptional<z.ZodString>;
|
|
276
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
277
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
}, z.core.$loose>;
|
|
279
|
+
declare const sentryScimUserSchema: z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
282
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
284
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
|
+
value: z.ZodString;
|
|
286
|
+
}, z.core.$loose>>>;
|
|
287
|
+
}, z.core.$loose>;
|
|
288
|
+
declare const sentryScimGroupSchema: z.ZodObject<{
|
|
289
|
+
id: z.ZodString;
|
|
290
|
+
displayName: z.ZodString;
|
|
291
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
292
|
+
value: z.ZodString;
|
|
293
|
+
display: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$loose>>>;
|
|
295
|
+
}, z.core.$loose>;
|
|
296
|
+
declare const sentryProjectKeySchema: z.ZodObject<{
|
|
297
|
+
id: z.ZodString;
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
label: z.ZodOptional<z.ZodString>;
|
|
300
|
+
public: z.ZodOptional<z.ZodString>;
|
|
301
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
302
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
303
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
rateLimit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
305
|
+
window: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
306
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
307
|
+
}, z.core.$loose>>>;
|
|
308
|
+
dsn: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
309
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
310
|
+
}, z.core.$loose>;
|
|
311
|
+
declare const sentryNotificationActionSchema: z.ZodObject<{
|
|
312
|
+
id: z.ZodString;
|
|
313
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
314
|
+
serviceType: z.ZodOptional<z.ZodString>;
|
|
315
|
+
targetType: z.ZodOptional<z.ZodString>;
|
|
316
|
+
targetDisplay: z.ZodOptional<z.ZodString>;
|
|
317
|
+
targetIdentifier: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$loose>;
|
|
319
|
+
declare const sentryUserEmailSchema: z.ZodObject<{
|
|
320
|
+
email: z.ZodString;
|
|
321
|
+
isPrimary: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
+
isVerified: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
+
}, z.core.$loose>;
|
|
324
|
+
declare const sentryCommitSchema: z.ZodObject<{
|
|
325
|
+
id: z.ZodString;
|
|
326
|
+
repository: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
327
|
+
message: z.ZodOptional<z.ZodString>;
|
|
328
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
329
|
+
}, z.core.$loose>;
|
|
330
|
+
declare const sentryRepositorySchema: z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
name: z.ZodString;
|
|
333
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
334
|
+
id: z.ZodString;
|
|
335
|
+
name: z.ZodString;
|
|
336
|
+
}, z.core.$loose>>>;
|
|
337
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
status: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, z.core.$loose>;
|
|
340
|
+
declare const sentryReleaseFileSchema: z.ZodObject<{
|
|
341
|
+
id: z.ZodString;
|
|
342
|
+
name: z.ZodString;
|
|
343
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
sha1: z.ZodOptional<z.ZodString>;
|
|
345
|
+
dateCreated: z.ZodOptional<z.ZodISODateTime>;
|
|
346
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
347
|
+
}, z.core.$loose>;
|
|
348
|
+
/**
|
|
349
|
+
* Fallback schema for endpoints whose exhaustive shape is still stabilising
|
|
350
|
+
* upstream. Every operation-level output still constrains the top-level
|
|
351
|
+
* shape; this fallback only appears as a leaf.
|
|
352
|
+
*/
|
|
353
|
+
declare const sentryJsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
354
|
+
declare const sentryJsonArraySchema: z.ZodArray<z.ZodUnknown>;
|
|
355
|
+
declare const sentryJsonAnySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
|
|
356
|
+
/**
|
|
357
|
+
* Shared input fragment for any org-scoped endpoint. We always allow the org
|
|
358
|
+
* slug to be omitted at input time because the client can fall back to the
|
|
359
|
+
* `SENTRY_ORG_SLUG` field on the credentials.
|
|
360
|
+
*/
|
|
361
|
+
declare const orgScopeInputSchema: z.ZodObject<{
|
|
362
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
declare const orgProjectScopeInputSchema: z.ZodObject<{
|
|
365
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
366
|
+
project_slug: z.ZodString;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
declare const orgTeamScopeInputSchema: z.ZodObject<{
|
|
369
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
370
|
+
team_slug: z.ZodString;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
declare const orgIssueScopeInputSchema: z.ZodObject<{
|
|
373
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
374
|
+
issue_id: z.ZodString;
|
|
375
|
+
}, z.core.$strip>;
|
|
376
|
+
declare const orgReleaseScopeInputSchema: z.ZodObject<{
|
|
377
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
378
|
+
version: z.ZodString;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
//#endregion
|
|
381
|
+
export { SentryActor, SentryEvent, SentryIssue, SentryMember, SentryOrganizationDetails, SentryOrganizationSummary, SentryProjectSummary, SentryRelease, SentryTeam, orgIssueScopeInputSchema, orgProjectScopeInputSchema, orgReleaseScopeInputSchema, orgScopeInputSchema, orgTeamScopeInputSchema, sentryActorSchema, sentryCommitSchema, sentryCursorSchema, sentryDashboardSchema, sentryDebugFileSchema, sentryDeploySchema, sentryDiscoverSavedQuerySchema, sentryEnvironmentSchema, sentryEventSchema, sentryFeedbackSchema, sentryIdSchema, sentryIsoDateOrNullSchema, sentryIsoDateSchema, sentryIssueAlertRuleSchema, sentryIssueSchema, sentryIssueStatusSchema, sentryJsonAnySchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema, sentryMemberSchema, sentryMetricAlertRuleSchema, sentryMonitorSchema, sentryMonitorStatusSchema, sentryNotificationActionSchema, sentryNullableStringSchema, sentryOrganizationDetailsSchema, sentryOrganizationSummarySchema, sentryPaginationInputSchema, sentryPerPageSchema, sentryProjectDetailsSchema, sentryProjectHookSchema, sentryProjectKeySchema, sentryProjectSummarySchema, sentryReleaseFileSchema, sentryReleaseSchema, sentryReplaySchema, sentryRepositorySchema, sentryScimGroupSchema, sentryScimUserSchema, sentrySlugSchema, sentryTeamSchema, sentryUserEmailSchema };
|
package/dist/schemas.mjs
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas.ts
|
|
4
|
+
/**
|
|
5
|
+
* Shared Zod v4 schemas for the Sentry management API.
|
|
6
|
+
*
|
|
7
|
+
* Philosophy: every I/O boundary goes through a named schema so the
|
|
8
|
+
* operation builders can hand them to Zod at runtime and `z.infer` them at
|
|
9
|
+
* compile time. Many Sentry responses are large, evolving objects; to keep
|
|
10
|
+
* the package boundary strict without forcing a rewrite every time Sentry
|
|
11
|
+
* extends a field, we parse top-level response shape strictly and allow
|
|
12
|
+
* extra keys via `.passthrough()` on nested payloads.
|
|
13
|
+
*/
|
|
14
|
+
const sentryIdSchema = z.string().min(1);
|
|
15
|
+
const sentrySlugSchema = z.string().min(1);
|
|
16
|
+
const sentryIsoDateSchema = z.iso.datetime();
|
|
17
|
+
const sentryIsoDateOrNullSchema = sentryIsoDateSchema.nullable();
|
|
18
|
+
const sentryNullableStringSchema = z.string().nullable();
|
|
19
|
+
const sentryCursorSchema = z.string().min(1).optional();
|
|
20
|
+
const sentryPerPageSchema = z.number().int().min(1).max(100).optional();
|
|
21
|
+
const sentryPaginationInputSchema = z.object({
|
|
22
|
+
cursor: sentryCursorSchema,
|
|
23
|
+
per_page: sentryPerPageSchema
|
|
24
|
+
});
|
|
25
|
+
/** Standard query-only input for "list me all of {resource}" endpoints. */
|
|
26
|
+
const sentryListInputSchema = sentryPaginationInputSchema.extend({ query: z.string().optional() });
|
|
27
|
+
const sentryActorSchema = z.object({
|
|
28
|
+
type: z.enum([
|
|
29
|
+
"user",
|
|
30
|
+
"team",
|
|
31
|
+
"application"
|
|
32
|
+
]),
|
|
33
|
+
id: z.union([z.string(), z.number()]).nullable().optional(),
|
|
34
|
+
name: z.string().nullable().optional(),
|
|
35
|
+
email: z.string().email().nullable().optional()
|
|
36
|
+
}).passthrough();
|
|
37
|
+
const sentryOrganizationSummarySchema = z.object({
|
|
38
|
+
id: sentryIdSchema,
|
|
39
|
+
slug: sentrySlugSchema,
|
|
40
|
+
name: z.string(),
|
|
41
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
42
|
+
status: z.object({
|
|
43
|
+
id: z.string(),
|
|
44
|
+
name: z.string()
|
|
45
|
+
}).passthrough().optional(),
|
|
46
|
+
links: z.object({
|
|
47
|
+
organizationUrl: z.string().optional(),
|
|
48
|
+
regionUrl: z.string().optional()
|
|
49
|
+
}).passthrough().optional()
|
|
50
|
+
}).passthrough();
|
|
51
|
+
const sentryOrganizationDetailsSchema = sentryOrganizationSummarySchema.passthrough();
|
|
52
|
+
const sentryProjectSummarySchema = z.object({
|
|
53
|
+
id: sentryIdSchema,
|
|
54
|
+
slug: sentrySlugSchema,
|
|
55
|
+
name: z.string(),
|
|
56
|
+
platform: z.string().nullable().optional(),
|
|
57
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
58
|
+
isMember: z.boolean().optional(),
|
|
59
|
+
status: z.string().optional()
|
|
60
|
+
}).passthrough();
|
|
61
|
+
const sentryProjectDetailsSchema = sentryProjectSummarySchema.passthrough();
|
|
62
|
+
const sentryTeamSchema = z.object({
|
|
63
|
+
id: sentryIdSchema,
|
|
64
|
+
slug: sentrySlugSchema,
|
|
65
|
+
name: z.string(),
|
|
66
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
67
|
+
isMember: z.boolean().optional()
|
|
68
|
+
}).passthrough();
|
|
69
|
+
const sentryMemberSchema = z.object({
|
|
70
|
+
id: sentryIdSchema,
|
|
71
|
+
email: z.string().email().nullable().optional(),
|
|
72
|
+
name: z.string().nullable().optional(),
|
|
73
|
+
role: z.string().optional(),
|
|
74
|
+
orgRole: z.string().optional(),
|
|
75
|
+
teamRoles: z.array(z.object({
|
|
76
|
+
teamSlug: sentrySlugSchema,
|
|
77
|
+
role: z.string().nullable()
|
|
78
|
+
}).passthrough()).optional(),
|
|
79
|
+
user: z.object({
|
|
80
|
+
id: sentryIdSchema,
|
|
81
|
+
email: z.string().email().optional(),
|
|
82
|
+
name: z.string().optional()
|
|
83
|
+
}).passthrough().nullable().optional()
|
|
84
|
+
}).passthrough();
|
|
85
|
+
const sentryIssueStatusSchema = z.enum([
|
|
86
|
+
"unresolved",
|
|
87
|
+
"resolved",
|
|
88
|
+
"ignored",
|
|
89
|
+
"archived",
|
|
90
|
+
"reprocessing"
|
|
91
|
+
]);
|
|
92
|
+
const sentryIssueSchema = z.object({
|
|
93
|
+
id: sentryIdSchema,
|
|
94
|
+
shortId: z.string().optional(),
|
|
95
|
+
status: sentryIssueStatusSchema.optional(),
|
|
96
|
+
title: z.string().optional(),
|
|
97
|
+
culprit: z.string().nullable().optional(),
|
|
98
|
+
level: z.string().optional(),
|
|
99
|
+
platform: z.string().nullable().optional(),
|
|
100
|
+
type: z.string().optional(),
|
|
101
|
+
project: sentryProjectSummarySchema.partial().passthrough().optional(),
|
|
102
|
+
firstSeen: sentryIsoDateSchema.optional(),
|
|
103
|
+
lastSeen: sentryIsoDateSchema.optional(),
|
|
104
|
+
count: z.union([z.string(), z.number()]).optional(),
|
|
105
|
+
userCount: z.number().optional()
|
|
106
|
+
}).passthrough();
|
|
107
|
+
const sentryEventSchema = z.object({
|
|
108
|
+
id: sentryIdSchema,
|
|
109
|
+
eventID: sentryIdSchema.optional(),
|
|
110
|
+
groupID: sentryIdSchema.optional(),
|
|
111
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
112
|
+
message: z.string().nullable().optional(),
|
|
113
|
+
platform: z.string().nullable().optional(),
|
|
114
|
+
type: z.string().optional()
|
|
115
|
+
}).passthrough();
|
|
116
|
+
const sentryReleaseSchema = z.object({
|
|
117
|
+
version: z.string().min(1),
|
|
118
|
+
shortVersion: z.string().optional(),
|
|
119
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
120
|
+
dateReleased: sentryIsoDateOrNullSchema.optional(),
|
|
121
|
+
projects: z.array(sentryProjectSummarySchema.partial().passthrough()).optional()
|
|
122
|
+
}).passthrough();
|
|
123
|
+
const sentryDeploySchema = z.object({
|
|
124
|
+
id: sentryIdSchema.optional(),
|
|
125
|
+
environment: z.string(),
|
|
126
|
+
name: z.string().nullable().optional(),
|
|
127
|
+
url: z.string().nullable().optional(),
|
|
128
|
+
dateStarted: sentryIsoDateOrNullSchema.optional(),
|
|
129
|
+
dateFinished: sentryIsoDateOrNullSchema.optional()
|
|
130
|
+
}).passthrough();
|
|
131
|
+
const sentryEnvironmentSchema = z.object({
|
|
132
|
+
id: sentryIdSchema.optional(),
|
|
133
|
+
name: z.string(),
|
|
134
|
+
isHidden: z.boolean().optional()
|
|
135
|
+
}).passthrough();
|
|
136
|
+
const sentryMetricAlertRuleSchema = z.object({
|
|
137
|
+
id: sentryIdSchema,
|
|
138
|
+
name: z.string(),
|
|
139
|
+
thresholdType: z.number().optional(),
|
|
140
|
+
dataset: z.string().optional(),
|
|
141
|
+
query: z.string().optional(),
|
|
142
|
+
aggregate: z.string().optional(),
|
|
143
|
+
triggers: z.array(z.record(z.string(), z.unknown())).optional()
|
|
144
|
+
}).passthrough();
|
|
145
|
+
const sentryIssueAlertRuleSchema = z.object({
|
|
146
|
+
id: sentryIdSchema,
|
|
147
|
+
name: z.string(),
|
|
148
|
+
actionMatch: z.string().optional(),
|
|
149
|
+
filterMatch: z.string().optional(),
|
|
150
|
+
frequency: z.number().optional(),
|
|
151
|
+
conditions: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
152
|
+
filters: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
153
|
+
actions: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
154
|
+
dateCreated: sentryIsoDateSchema.optional()
|
|
155
|
+
}).passthrough();
|
|
156
|
+
const sentryMonitorStatusSchema = z.enum([
|
|
157
|
+
"active",
|
|
158
|
+
"disabled",
|
|
159
|
+
"ok",
|
|
160
|
+
"error",
|
|
161
|
+
"missed_checkin",
|
|
162
|
+
"timeout",
|
|
163
|
+
"pending_deletion",
|
|
164
|
+
"deletion_in_progress"
|
|
165
|
+
]);
|
|
166
|
+
const sentryMonitorSchema = z.object({
|
|
167
|
+
id: sentryIdSchema,
|
|
168
|
+
slug: sentrySlugSchema,
|
|
169
|
+
name: z.string(),
|
|
170
|
+
status: sentryMonitorStatusSchema.optional(),
|
|
171
|
+
type: z.string().optional(),
|
|
172
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
173
|
+
config: z.record(z.string(), z.unknown()).optional()
|
|
174
|
+
}).passthrough();
|
|
175
|
+
const sentryDashboardSchema = z.object({
|
|
176
|
+
id: sentryIdSchema,
|
|
177
|
+
title: z.string(),
|
|
178
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
179
|
+
createdBy: z.record(z.string(), z.unknown()).optional(),
|
|
180
|
+
widgets: z.array(z.record(z.string(), z.unknown())).optional()
|
|
181
|
+
}).passthrough();
|
|
182
|
+
const sentryDiscoverSavedQuerySchema = z.object({
|
|
183
|
+
id: sentryIdSchema,
|
|
184
|
+
name: z.string(),
|
|
185
|
+
query: z.string().optional(),
|
|
186
|
+
fields: z.array(z.string()).optional(),
|
|
187
|
+
orderby: z.string().optional(),
|
|
188
|
+
projects: z.array(z.number()).optional(),
|
|
189
|
+
dateCreated: sentryIsoDateSchema.optional()
|
|
190
|
+
}).passthrough();
|
|
191
|
+
const sentryProjectHookSchema = z.object({
|
|
192
|
+
id: sentryIdSchema,
|
|
193
|
+
url: z.string().url(),
|
|
194
|
+
events: z.array(z.string()),
|
|
195
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
196
|
+
disabled: z.boolean().optional()
|
|
197
|
+
}).passthrough();
|
|
198
|
+
const sentryReplaySchema = z.object({
|
|
199
|
+
id: sentryIdSchema,
|
|
200
|
+
project_id: z.union([z.string(), z.number()]).optional(),
|
|
201
|
+
replay_type: z.string().optional(),
|
|
202
|
+
trace_ids: z.array(z.string()).optional(),
|
|
203
|
+
started_at: sentryIsoDateSchema.optional(),
|
|
204
|
+
finished_at: sentryIsoDateSchema.optional(),
|
|
205
|
+
duration: z.number().optional()
|
|
206
|
+
}).passthrough();
|
|
207
|
+
const sentryFeedbackSchema = z.object({
|
|
208
|
+
id: sentryIdSchema.optional(),
|
|
209
|
+
event_id: sentryIdSchema.optional(),
|
|
210
|
+
name: z.string().optional(),
|
|
211
|
+
email: z.string().email().optional(),
|
|
212
|
+
comments: z.string().optional(),
|
|
213
|
+
dateCreated: sentryIsoDateSchema.optional()
|
|
214
|
+
}).passthrough();
|
|
215
|
+
const sentryDebugFileSchema = z.object({
|
|
216
|
+
id: sentryIdSchema,
|
|
217
|
+
uuid: sentryIdSchema.optional(),
|
|
218
|
+
symbolType: z.string().optional(),
|
|
219
|
+
cpuName: z.string().optional(),
|
|
220
|
+
objectName: z.string().optional(),
|
|
221
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
222
|
+
size: z.number().optional()
|
|
223
|
+
}).passthrough();
|
|
224
|
+
const sentryScimUserSchema = z.object({
|
|
225
|
+
id: sentryIdSchema,
|
|
226
|
+
userName: z.string().optional(),
|
|
227
|
+
active: z.boolean().optional(),
|
|
228
|
+
displayName: z.string().optional(),
|
|
229
|
+
emails: z.array(z.object({ value: z.string() }).passthrough()).optional()
|
|
230
|
+
}).passthrough();
|
|
231
|
+
const sentryScimGroupSchema = z.object({
|
|
232
|
+
id: sentryIdSchema,
|
|
233
|
+
displayName: z.string(),
|
|
234
|
+
members: z.array(z.object({
|
|
235
|
+
value: sentryIdSchema,
|
|
236
|
+
display: z.string().optional()
|
|
237
|
+
}).passthrough()).optional()
|
|
238
|
+
}).passthrough();
|
|
239
|
+
const sentryProjectKeySchema = z.object({
|
|
240
|
+
id: sentryIdSchema,
|
|
241
|
+
name: z.string(),
|
|
242
|
+
label: z.string().optional(),
|
|
243
|
+
public: z.string().optional(),
|
|
244
|
+
secret: z.string().optional(),
|
|
245
|
+
projectId: z.union([z.string(), z.number()]).optional(),
|
|
246
|
+
isActive: z.boolean().optional(),
|
|
247
|
+
rateLimit: z.object({
|
|
248
|
+
window: z.number().nullable(),
|
|
249
|
+
count: z.number().nullable()
|
|
250
|
+
}).partial().passthrough().nullable().optional(),
|
|
251
|
+
dsn: z.record(z.string(), z.string()).optional(),
|
|
252
|
+
dateCreated: sentryIsoDateSchema.optional()
|
|
253
|
+
}).passthrough();
|
|
254
|
+
const sentryNotificationActionSchema = z.object({
|
|
255
|
+
id: sentryIdSchema,
|
|
256
|
+
organizationId: sentryIdSchema.optional(),
|
|
257
|
+
serviceType: z.string().optional(),
|
|
258
|
+
targetType: z.string().optional(),
|
|
259
|
+
targetDisplay: z.string().optional(),
|
|
260
|
+
targetIdentifier: z.string().optional()
|
|
261
|
+
}).passthrough();
|
|
262
|
+
const sentryUserEmailSchema = z.object({
|
|
263
|
+
email: z.string().email(),
|
|
264
|
+
isPrimary: z.boolean().optional(),
|
|
265
|
+
isVerified: z.boolean().optional()
|
|
266
|
+
}).passthrough();
|
|
267
|
+
const sentryCommitSchema = z.object({
|
|
268
|
+
id: sentryIdSchema,
|
|
269
|
+
repository: z.record(z.string(), z.unknown()).optional(),
|
|
270
|
+
message: z.string().optional(),
|
|
271
|
+
dateCreated: sentryIsoDateSchema.optional()
|
|
272
|
+
}).passthrough();
|
|
273
|
+
const sentryRepositorySchema = z.object({
|
|
274
|
+
id: sentryIdSchema,
|
|
275
|
+
name: z.string(),
|
|
276
|
+
provider: z.object({
|
|
277
|
+
id: z.string(),
|
|
278
|
+
name: z.string()
|
|
279
|
+
}).passthrough().nullable().optional(),
|
|
280
|
+
url: z.string().nullable().optional(),
|
|
281
|
+
status: z.string().optional()
|
|
282
|
+
}).passthrough();
|
|
283
|
+
const sentryReleaseFileSchema = z.object({
|
|
284
|
+
id: sentryIdSchema,
|
|
285
|
+
name: z.string(),
|
|
286
|
+
size: z.number().optional(),
|
|
287
|
+
sha1: z.string().optional(),
|
|
288
|
+
dateCreated: sentryIsoDateSchema.optional(),
|
|
289
|
+
headers: z.record(z.string(), z.string()).optional()
|
|
290
|
+
}).passthrough();
|
|
291
|
+
/**
|
|
292
|
+
* Fallback schema for endpoints whose exhaustive shape is still stabilising
|
|
293
|
+
* upstream. Every operation-level output still constrains the top-level
|
|
294
|
+
* shape; this fallback only appears as a leaf.
|
|
295
|
+
*/
|
|
296
|
+
const sentryJsonObjectSchema = z.record(z.string(), z.unknown());
|
|
297
|
+
const sentryJsonArraySchema = z.array(z.unknown());
|
|
298
|
+
const sentryJsonAnySchema = z.union([
|
|
299
|
+
z.string(),
|
|
300
|
+
z.number(),
|
|
301
|
+
z.boolean(),
|
|
302
|
+
z.null(),
|
|
303
|
+
sentryJsonObjectSchema,
|
|
304
|
+
sentryJsonArraySchema
|
|
305
|
+
]);
|
|
306
|
+
/**
|
|
307
|
+
* Shared input fragment for any org-scoped endpoint. We always allow the org
|
|
308
|
+
* slug to be omitted at input time because the client can fall back to the
|
|
309
|
+
* `SENTRY_ORG_SLUG` field on the credentials.
|
|
310
|
+
*/
|
|
311
|
+
const orgScopeInputSchema = z.object({ organization_slug: sentrySlugSchema.optional() });
|
|
312
|
+
const orgProjectScopeInputSchema = orgScopeInputSchema.extend({ project_slug: sentrySlugSchema });
|
|
313
|
+
const orgTeamScopeInputSchema = orgScopeInputSchema.extend({ team_slug: sentrySlugSchema });
|
|
314
|
+
const orgIssueScopeInputSchema = orgScopeInputSchema.extend({ issue_id: sentryIdSchema });
|
|
315
|
+
const orgReleaseScopeInputSchema = orgScopeInputSchema.extend({ version: z.string().min(1) });
|
|
316
|
+
|
|
317
|
+
//#endregion
|
|
318
|
+
export { orgIssueScopeInputSchema, orgProjectScopeInputSchema, orgReleaseScopeInputSchema, orgScopeInputSchema, orgTeamScopeInputSchema, sentryActorSchema, sentryCommitSchema, sentryCursorSchema, sentryDashboardSchema, sentryDebugFileSchema, sentryDeploySchema, sentryDiscoverSavedQuerySchema, sentryEnvironmentSchema, sentryEventSchema, sentryFeedbackSchema, sentryIdSchema, sentryIsoDateOrNullSchema, sentryIsoDateSchema, sentryIssueAlertRuleSchema, sentryIssueSchema, sentryIssueStatusSchema, sentryJsonAnySchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema, sentryMemberSchema, sentryMetricAlertRuleSchema, sentryMonitorSchema, sentryMonitorStatusSchema, sentryNotificationActionSchema, sentryNullableStringSchema, sentryOrganizationDetailsSchema, sentryOrganizationSummarySchema, sentryPaginationInputSchema, sentryPerPageSchema, sentryProjectDetailsSchema, sentryProjectHookSchema, sentryProjectKeySchema, sentryProjectSummarySchema, sentryReleaseFileSchema, sentryReleaseSchema, sentryReplaySchema, sentryRepositorySchema, sentryScimGroupSchema, sentryScimUserSchema, sentrySlugSchema, sentryTeamSchema, sentryUserEmailSchema };
|