@keystrokehq/sentry 0.0.12 → 0.0.15
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/dist/_official/index.d.mts +2 -7
- package/dist/_official/index.mjs +1 -1
- package/dist/_runtime/index.d.mts +1 -1
- package/dist/_runtime/index.mjs +1 -1
- package/dist/alerts.d.mts +44 -133
- package/dist/alerts.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/dashboards.d.mts +20 -61
- package/dist/dashboards.mjs +1 -1
- package/dist/debug-files.d.mts +12 -37
- package/dist/debug-files.mjs +1 -1
- package/dist/deploys.d.mts +8 -25
- package/dist/deploys.mjs +1 -1
- package/dist/discover.d.mts +20 -61
- package/dist/discover.mjs +1 -1
- package/dist/{endpoint-factory-C0WIFmtK.mjs → endpoint-factory-DcT49a8O.mjs} +2 -1
- package/dist/environments.d.mts +12 -37
- package/dist/environments.mjs +1 -1
- package/dist/events-api.d.mts +30 -87
- package/dist/events-api.mjs +1 -1
- package/dist/feedback.d.mts +8 -25
- package/dist/feedback.mjs +1 -1
- package/dist/integration-D7KCM1-p.mjs +75 -0
- package/dist/integration-veqa_7yB.d.mts +33 -0
- package/dist/issues.d.mts +60 -165
- package/dist/issues.mjs +1 -1
- package/dist/members.d.mts +28 -85
- package/dist/members.mjs +1 -1
- package/dist/monitors.d.mts +40 -121
- package/dist/monitors.mjs +1 -1
- package/dist/notifications.d.mts +20 -61
- package/dist/notifications.mjs +1 -1
- package/dist/organizations.d.mts +60 -181
- package/dist/organizations.mjs +1 -1
- package/dist/project-keys.d.mts +20 -61
- package/dist/project-keys.mjs +1 -1
- package/dist/projects.d.mts +76 -229
- package/dist/projects.mjs +1 -1
- package/dist/releases.d.mts +86 -255
- package/dist/releases.mjs +1 -1
- package/dist/replays.d.mts +36 -109
- package/dist/replays.mjs +1 -1
- package/dist/schemas.d.mts +2 -2
- package/dist/scim.d.mts +44 -133
- package/dist/scim.mjs +1 -1
- package/dist/teams.d.mts +56 -169
- package/dist/teams.mjs +1 -1
- package/dist/triggers.d.mts +3 -59
- package/dist/triggers.mjs +1 -51
- package/dist/user-emails.d.mts +16 -49
- package/dist/user-emails.mjs +1 -1
- package/dist/webhooks.d.mts +20 -61
- package/dist/webhooks.mjs +1 -1
- package/package.json +5 -6
- package/dist/integration-DCNn_9vz.mjs +0 -356
- package/dist/integration-rmp485nJ.d.mts +0 -57
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
import { SENTRY_DEFAULT_BASE_URL } from "./client.mjs";
|
|
2
|
-
import { CredentialSet, Operation } from "@keystrokehq/core";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region ../../packages/integration-authoring/dist/official/runtime.mjs
|
|
6
|
-
const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
|
|
7
|
-
function getRegistry() {
|
|
8
|
-
const globalStore = globalThis;
|
|
9
|
-
if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
|
|
10
|
-
return globalStore[REGISTRY_KEY];
|
|
11
|
-
}
|
|
12
|
-
function registerOfficialOperation(operation, metadata) {
|
|
13
|
-
getRegistry().set(operation, Object.freeze({ ...metadata }));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region ../../packages/integration-authoring/dist/official/index.mjs
|
|
18
|
-
const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
|
|
19
|
-
function officialCredentialSetId(id) {
|
|
20
|
-
return `${OFFICIAL_CREDENTIAL_SET_ID_PREFIX}${id}`;
|
|
21
|
-
}
|
|
22
|
-
function stripOfficialCredentialSetIdPrefix(id) {
|
|
23
|
-
return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Creates a factory for Keystroke-official integration operations.
|
|
27
|
-
*
|
|
28
|
-
* It keeps the same flat `run(input, credentials)` ergonomics as the generic
|
|
29
|
-
* operation factory, while registering official metadata for builder/runtime
|
|
30
|
-
* operation metadata.
|
|
31
|
-
*/
|
|
32
|
-
function createOfficialOperationFactory(credentialSet) {
|
|
33
|
-
const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
|
|
34
|
-
return (config) => {
|
|
35
|
-
const wrappedRun = async (input, ctx) => {
|
|
36
|
-
const creds = ctx.credentials[credentialSet.id];
|
|
37
|
-
return config.run(input, creds);
|
|
38
|
-
};
|
|
39
|
-
const operation = new Operation({
|
|
40
|
-
id: config.id,
|
|
41
|
-
name: config.name,
|
|
42
|
-
description: config.description,
|
|
43
|
-
input: config.input,
|
|
44
|
-
output: config.output,
|
|
45
|
-
credentialSets: [credentialSet],
|
|
46
|
-
...config.tags !== void 0 ? { tags: config.tags } : {},
|
|
47
|
-
...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
|
|
48
|
-
...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
|
|
49
|
-
...config.retries !== void 0 ? { retries: config.retries } : {},
|
|
50
|
-
...config.timeout !== void 0 ? { timeout: config.timeout } : {},
|
|
51
|
-
...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
|
|
52
|
-
run: wrappedRun
|
|
53
|
-
});
|
|
54
|
-
registerOfficialOperation(operation, { integrationId });
|
|
55
|
-
return operation;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Creates an official integration bundle from a single config object.
|
|
60
|
-
*
|
|
61
|
-
* - Creates the public `CredentialSet` internally.
|
|
62
|
-
* - Accepts optional `internal` fields for Keystroke-owned platform credentials.
|
|
63
|
-
*/
|
|
64
|
-
function defineOfficialIntegration(config) {
|
|
65
|
-
const internalCredentialSets = config.internal ?? {};
|
|
66
|
-
const allInternalCredentialSets = [
|
|
67
|
-
...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
|
|
68
|
-
...internalCredentialSets.providerAppVariants ?? [],
|
|
69
|
-
...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
|
|
70
|
-
...internalCredentialSets.other ?? []
|
|
71
|
-
];
|
|
72
|
-
const credentialSet = new CredentialSet({
|
|
73
|
-
id: config.id,
|
|
74
|
-
name: config.name,
|
|
75
|
-
description: config.description,
|
|
76
|
-
auth: config.auth,
|
|
77
|
-
...config.connections ? { connections: config.connections } : {},
|
|
78
|
-
...config.proxy ? { proxy: config.proxy } : {},
|
|
79
|
-
...config.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
80
|
-
});
|
|
81
|
-
return Object.freeze({
|
|
82
|
-
integration: {
|
|
83
|
-
id: config.id,
|
|
84
|
-
name: config.name,
|
|
85
|
-
...config.description !== void 0 ? { description: config.description } : {},
|
|
86
|
-
auth: config.auth,
|
|
87
|
-
...config.proxy ? { proxy: config.proxy } : {},
|
|
88
|
-
...config.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
89
|
-
...config.connections ? { connections: config.connections } : {}
|
|
90
|
-
},
|
|
91
|
-
credentialSet,
|
|
92
|
-
internalCredentialSets,
|
|
93
|
-
allInternalCredentialSets
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/_official/provider-app.ts
|
|
99
|
-
/**
|
|
100
|
-
* Internal Keystroke-owned Sentry app credentials.
|
|
101
|
-
*
|
|
102
|
-
* For Sentry, `clientSecret` doubles as the webhook signing secret per
|
|
103
|
-
* <https://docs.sentry.io/organization/integrations/integration-platform/webhooks/>,
|
|
104
|
-
* so `webhookSecret` is kept as a discrete field for symmetry with other
|
|
105
|
-
* integrations even though in practice platforms will populate both from the
|
|
106
|
-
* same Sentry-issued value.
|
|
107
|
-
*/
|
|
108
|
-
const sentryAppCredentialSet = new CredentialSet({
|
|
109
|
-
id: officialCredentialSetId("sentry-app"),
|
|
110
|
-
exposure: "platform-only",
|
|
111
|
-
name: "Sentry App",
|
|
112
|
-
auth: z.object({
|
|
113
|
-
clientId: z.string(),
|
|
114
|
-
clientSecret: z.string(),
|
|
115
|
-
webhookSecret: z.string()
|
|
116
|
-
})
|
|
117
|
-
});
|
|
118
|
-
const sentryOfficialProviderSeed = {
|
|
119
|
-
provider: "sentry",
|
|
120
|
-
appRef: "sentry-official",
|
|
121
|
-
displayName: "Sentry Platform",
|
|
122
|
-
credentialSetName: "Keystroke Sentry Platform App",
|
|
123
|
-
envShape: {
|
|
124
|
-
KEYSTROKE_OFFICIAL_SENTRY_CLIENT_ID: z.string().optional(),
|
|
125
|
-
KEYSTROKE_OFFICIAL_SENTRY_CLIENT_SECRET: z.string().optional(),
|
|
126
|
-
KEYSTROKE_OFFICIAL_SENTRY_WEBHOOK_SECRET: z.string().optional()
|
|
127
|
-
},
|
|
128
|
-
requiredEnvKeys: [
|
|
129
|
-
"KEYSTROKE_OFFICIAL_SENTRY_CLIENT_ID",
|
|
130
|
-
"KEYSTROKE_OFFICIAL_SENTRY_CLIENT_SECRET",
|
|
131
|
-
"KEYSTROKE_OFFICIAL_SENTRY_WEBHOOK_SECRET"
|
|
132
|
-
],
|
|
133
|
-
externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SENTRY_CLIENT_ID",
|
|
134
|
-
buildCredentials: (env) => ({
|
|
135
|
-
clientId: env.KEYSTROKE_OFFICIAL_SENTRY_CLIENT_ID,
|
|
136
|
-
clientSecret: env.KEYSTROKE_OFFICIAL_SENTRY_CLIENT_SECRET,
|
|
137
|
-
webhookSecret: env.KEYSTROKE_OFFICIAL_SENTRY_WEBHOOK_SECRET
|
|
138
|
-
})
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
//#endregion
|
|
142
|
-
//#region ../../packages/credential-connection/dist/defaults-YE9AvLIc.mjs
|
|
143
|
-
/**
|
|
144
|
-
* Shared OAuth 2.0 token-response plumbing.
|
|
145
|
-
*
|
|
146
|
-
* `parseOAuthTokenResponse` handles the two common wire formats (JSON and
|
|
147
|
-
* form-urlencoded, the latter used by GitHub unless you explicitly ask for
|
|
148
|
-
* JSON). `normalizeOAuthTokens` pulls the standard fields out of the parsed
|
|
149
|
-
* body in both the flat form and Slack's nested `authed_user.access_token`
|
|
150
|
-
* form. These helpers are exposed so integration authors overriding
|
|
151
|
-
* `exchangeCode` / `refreshToken` do not have to re-implement them.
|
|
152
|
-
*/
|
|
153
|
-
var TokenExchangeError = class extends Error {
|
|
154
|
-
httpStatus;
|
|
155
|
-
constructor(httpStatus) {
|
|
156
|
-
super(`Token exchange failed: HTTP ${httpStatus}`);
|
|
157
|
-
this.name = "TokenExchangeError";
|
|
158
|
-
this.httpStatus = httpStatus;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
async function parseOAuthTokenResponse(response) {
|
|
162
|
-
const contentType = response.headers.get("content-type")?.toLowerCase() ?? "";
|
|
163
|
-
if (contentType.includes("application/json")) return await response.json();
|
|
164
|
-
const text = await response.text();
|
|
165
|
-
if (!text.trim()) return {};
|
|
166
|
-
if (contentType.includes("application/x-www-form-urlencoded") || text.includes("=")) {
|
|
167
|
-
const params = new URLSearchParams(text);
|
|
168
|
-
return Object.fromEntries(params.entries());
|
|
169
|
-
}
|
|
170
|
-
throw new Error(`Unsupported OAuth token response content type: ${contentType || "unknown"}`);
|
|
171
|
-
}
|
|
172
|
-
function normalizeOAuthTokens(tokenData) {
|
|
173
|
-
const authedUser = tokenData.authed_user;
|
|
174
|
-
const rawAccessToken = tokenData.access_token ?? authedUser?.access_token;
|
|
175
|
-
const rawRefreshToken = tokenData.refresh_token;
|
|
176
|
-
const rawExpiresIn = tokenData.expires_in;
|
|
177
|
-
const rawInstanceUrl = tokenData.instance_url;
|
|
178
|
-
return {
|
|
179
|
-
accessToken: typeof rawAccessToken === "string" ? rawAccessToken : void 0,
|
|
180
|
-
refreshToken: typeof rawRefreshToken === "string" ? rawRefreshToken : void 0,
|
|
181
|
-
expiresIn: typeof rawExpiresIn === "number" ? rawExpiresIn : typeof rawExpiresIn === "string" ? Number(rawExpiresIn) || void 0 : void 0,
|
|
182
|
-
instanceUrl: typeof rawInstanceUrl === "string" ? rawInstanceUrl : void 0
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
function buildAuthUrl(ctx) {
|
|
186
|
-
const { oauthClient, redirectUri, state, connection } = ctx;
|
|
187
|
-
const scopes = ctx.requestedScopes ?? connection.scopes;
|
|
188
|
-
const url = new URL(connection.authUrl);
|
|
189
|
-
url.searchParams.set("client_id", oauthClient.clientId);
|
|
190
|
-
url.searchParams.set("scope", scopes.join(" "));
|
|
191
|
-
url.searchParams.set("redirect_uri", redirectUri);
|
|
192
|
-
url.searchParams.set("state", state);
|
|
193
|
-
url.searchParams.set("response_type", "code");
|
|
194
|
-
return url.toString();
|
|
195
|
-
}
|
|
196
|
-
async function exchangeToken(params) {
|
|
197
|
-
const response = await fetch(params.tokenUrl, {
|
|
198
|
-
method: "POST",
|
|
199
|
-
headers: {
|
|
200
|
-
Accept: "application/json",
|
|
201
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
202
|
-
},
|
|
203
|
-
body: params.body
|
|
204
|
-
});
|
|
205
|
-
if (!response.ok) throw new TokenExchangeError(response.status);
|
|
206
|
-
const raw = await parseOAuthTokenResponse(response);
|
|
207
|
-
const { accessToken, refreshToken, expiresIn, instanceUrl } = normalizeOAuthTokens(raw);
|
|
208
|
-
if (!accessToken) throw new Error("No access token in response");
|
|
209
|
-
return {
|
|
210
|
-
accessToken,
|
|
211
|
-
refreshToken,
|
|
212
|
-
expiresIn,
|
|
213
|
-
instanceUrl,
|
|
214
|
-
raw
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
async function exchangeCode(ctx) {
|
|
218
|
-
const { oauthClient, code, redirectUri, connection } = ctx;
|
|
219
|
-
if (!code) throw new Error("Missing authorization code");
|
|
220
|
-
return exchangeToken({
|
|
221
|
-
tokenUrl: connection.tokenUrl,
|
|
222
|
-
body: new URLSearchParams({
|
|
223
|
-
code,
|
|
224
|
-
client_id: oauthClient.clientId,
|
|
225
|
-
client_secret: oauthClient.clientSecret,
|
|
226
|
-
redirect_uri: redirectUri,
|
|
227
|
-
grant_type: "authorization_code"
|
|
228
|
-
})
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
async function refreshToken(ctx) {
|
|
232
|
-
const { oauthClient, refreshToken, connection } = ctx;
|
|
233
|
-
return exchangeToken({
|
|
234
|
-
tokenUrl: connection.tokenUrl,
|
|
235
|
-
body: new URLSearchParams({
|
|
236
|
-
grant_type: "refresh_token",
|
|
237
|
-
refresh_token: refreshToken,
|
|
238
|
-
client_id: oauthClient.clientId,
|
|
239
|
-
client_secret: oauthClient.clientSecret
|
|
240
|
-
})
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
const oauthDefaults = {
|
|
244
|
-
buildAuthUrl,
|
|
245
|
-
exchangeCode,
|
|
246
|
-
exchangeToken,
|
|
247
|
-
refreshToken
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/oauth-connection.ts
|
|
252
|
-
const SENTRY_OAUTH_SCOPES = [
|
|
253
|
-
"org:read",
|
|
254
|
-
"project:read",
|
|
255
|
-
"project:write",
|
|
256
|
-
"project:admin",
|
|
257
|
-
"team:read",
|
|
258
|
-
"team:write",
|
|
259
|
-
"team:admin",
|
|
260
|
-
"member:read",
|
|
261
|
-
"member:write",
|
|
262
|
-
"event:read",
|
|
263
|
-
"event:admin",
|
|
264
|
-
"alerts:read",
|
|
265
|
-
"alerts:write",
|
|
266
|
-
"release:admin"
|
|
267
|
-
];
|
|
268
|
-
const sentryOAuthConnection = {
|
|
269
|
-
kind: "oauth",
|
|
270
|
-
tokenType: "refreshable",
|
|
271
|
-
authUrl: "https://sentry.io/oauth/authorize/",
|
|
272
|
-
tokenUrl: "https://sentry.io/oauth/token/",
|
|
273
|
-
revokeUrl: null,
|
|
274
|
-
scopes: [...SENTRY_OAUTH_SCOPES],
|
|
275
|
-
vault: { accessToken: "SENTRY_ACCESS_TOKEN" },
|
|
276
|
-
async exchangeCode(ctx) {
|
|
277
|
-
const result = await oauthDefaults.exchangeCode(ctx);
|
|
278
|
-
const orgResponse = await fetch(`${SENTRY_DEFAULT_BASE_URL}/api/0/organizations/`, {
|
|
279
|
-
method: "GET",
|
|
280
|
-
headers: {
|
|
281
|
-
Authorization: `Bearer ${result.accessToken}`,
|
|
282
|
-
Accept: "application/json"
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
let firstOrg = null;
|
|
286
|
-
if (orgResponse.ok) {
|
|
287
|
-
const orgs = await orgResponse.json();
|
|
288
|
-
if (Array.isArray(orgs) && orgs.length > 0 && isOrganizationProbe(orgs[0])) firstOrg = orgs[0];
|
|
289
|
-
}
|
|
290
|
-
result.raw._sentryOrganization = firstOrg;
|
|
291
|
-
result.raw._sentryUser = pickUser(result.raw);
|
|
292
|
-
result.raw._sentryScopes = typeof result.raw.scope === "string" ? result.raw.scope : void 0;
|
|
293
|
-
return result;
|
|
294
|
-
},
|
|
295
|
-
extractInstallationInfo({ tokenResult }) {
|
|
296
|
-
const org = tokenResult.raw._sentryOrganization;
|
|
297
|
-
const user = tokenResult.raw._sentryUser;
|
|
298
|
-
const metadata = {};
|
|
299
|
-
if (org?.name) metadata.organizationName = org.name;
|
|
300
|
-
if (org?.slug) metadata.organizationSlug = org.slug;
|
|
301
|
-
const regionUrl = org?.links?.regionUrl;
|
|
302
|
-
if (regionUrl) metadata.regionUrl = regionUrl;
|
|
303
|
-
if (user?.name) metadata.userName = user.name;
|
|
304
|
-
if (user?.email) metadata.userEmail = user.email;
|
|
305
|
-
return {
|
|
306
|
-
externalInstallationId: org?.slug,
|
|
307
|
-
externalWorkspaceId: org?.id,
|
|
308
|
-
externalBotUserId: user?.id,
|
|
309
|
-
metadata
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
function isOrganizationProbe(value) {
|
|
314
|
-
return typeof value === "object" && value !== null;
|
|
315
|
-
}
|
|
316
|
-
function pickUser(raw) {
|
|
317
|
-
const user = raw.user;
|
|
318
|
-
if (user == null || typeof user !== "object") return null;
|
|
319
|
-
const u = user;
|
|
320
|
-
return {
|
|
321
|
-
id: typeof u.id === "string" ? u.id : void 0,
|
|
322
|
-
name: typeof u.name === "string" ? u.name : void 0,
|
|
323
|
-
email: typeof u.email === "string" ? u.email : void 0
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
//#endregion
|
|
328
|
-
//#region src/integration.ts
|
|
329
|
-
const sentryAuthSchema = z.object({
|
|
330
|
-
SENTRY_ACCESS_TOKEN: z.string().min(1),
|
|
331
|
-
SENTRY_REGION_URL: z.string().url().optional(),
|
|
332
|
-
SENTRY_ORG_SLUG: z.string().min(1).optional()
|
|
333
|
-
});
|
|
334
|
-
const sentryOfficialIntegration = {
|
|
335
|
-
id: "sentry",
|
|
336
|
-
name: "Sentry",
|
|
337
|
-
description: "Sentry — issue lifecycle, release tracking, alerts, monitors, replays, feedback, and integration-platform webhook triggers",
|
|
338
|
-
auth: sentryAuthSchema,
|
|
339
|
-
proxy: { hosts: [
|
|
340
|
-
"sentry.io",
|
|
341
|
-
"us.sentry.io",
|
|
342
|
-
"de.sentry.io"
|
|
343
|
-
] },
|
|
344
|
-
connections: [{
|
|
345
|
-
id: "oauth",
|
|
346
|
-
...sentryOAuthConnection
|
|
347
|
-
}]
|
|
348
|
-
};
|
|
349
|
-
const sentryBundle = defineOfficialIntegration({
|
|
350
|
-
...sentryOfficialIntegration,
|
|
351
|
-
internal: { providerApp: sentryAppCredentialSet }
|
|
352
|
-
});
|
|
353
|
-
const sentry = sentryBundle.credentialSet;
|
|
354
|
-
|
|
355
|
-
//#endregion
|
|
356
|
-
export { sentryOfficialProviderSeed as a, sentryAppCredentialSet as i, sentryBundle as n, createOfficialOperationFactory as o, sentryOfficialIntegration as r, sentry as t };
|
|
@@ -1,57 +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
|
-
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
5
|
-
|
|
6
|
-
//#region src/integration.d.ts
|
|
7
|
-
declare const sentryOfficialIntegration: {
|
|
8
|
-
id: "sentry";
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
auth: z.ZodObject<{
|
|
12
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
13
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
14
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
proxy: {
|
|
17
|
-
hosts: string[];
|
|
18
|
-
};
|
|
19
|
-
connections: {
|
|
20
|
-
kind: "oauth";
|
|
21
|
-
tokenType: "refreshable";
|
|
22
|
-
authUrl: "https://sentry.io/oauth/authorize/";
|
|
23
|
-
tokenUrl: "https://sentry.io/oauth/token/";
|
|
24
|
-
revokeUrl: null;
|
|
25
|
-
scopes: readonly ["org:read", "project:read", "project:write", "project:admin", "team:read", "team:write", "team:admin", "member:read", "member:write", "event:read", "event:admin", "alerts:read", "alerts:write", "release:admin"];
|
|
26
|
-
vault: {
|
|
27
|
-
readonly accessToken: "SENTRY_ACCESS_TOKEN";
|
|
28
|
-
};
|
|
29
|
-
exchangeCode: (ctx: _keystrokehq_core_credential_set0.ExchangeCodeContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
|
|
30
|
-
extractInstallationInfo: ({
|
|
31
|
-
tokenResult
|
|
32
|
-
}: _keystrokehq_core_credential_set0.ExtractInstallationContext) => {
|
|
33
|
-
externalInstallationId: string | undefined;
|
|
34
|
-
externalWorkspaceId: string | undefined;
|
|
35
|
-
externalBotUserId: string | undefined;
|
|
36
|
-
metadata: Record<string, string>;
|
|
37
|
-
};
|
|
38
|
-
id: string;
|
|
39
|
-
}[];
|
|
40
|
-
};
|
|
41
|
-
declare const sentryBundle: undefined<"sentry", z.ZodObject<{
|
|
42
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
43
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
44
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
45
|
-
}, z.core.$strip>>;
|
|
46
|
-
declare const sentry: _keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
47
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
48
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
49
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
50
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
51
|
-
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
52
|
-
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
53
|
-
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, z.core.$strip>>[] | undefined>;
|
|
55
|
-
type SentryIntegrationCredentials = InferCredentialSetAuth<typeof sentry>;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { sentryOfficialIntegration as i, sentry as n, sentryBundle as r, SentryIntegrationCredentials as t };
|