@keystrokehq/sentry 0.0.15 → 0.0.16-integration-id-canonicalization.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 +40 -187
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/{schemas.d.mts → schemas/index.d.mts} +3 -3
- package/dist/schemas/index.mjs +3 -0
- package/dist/{schemas.mjs → sentry-api-DjJ24hwX.mjs} +2 -2
- package/dist/sentry-app.credential-set-Cdj6Qxiz.mjs +23 -0
- package/dist/sentry-app.credential-set-DxK7J7JO.d.mts +50 -0
- package/dist/sentry.credential-set-CyS3KAfW.mjs +62 -0
- package/dist/view-organization-notification-actions.operation-BXT4VBys.mjs +5021 -0
- package/dist/view-organization-notification-actions.operation-DfkZimCZ.d.mts +5255 -0
- package/package.json +13 -121
- package/dist/_official/index.d.mts +0 -41
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -2
- package/dist/_runtime/index.mjs +0 -3
- package/dist/alerts.d.mts +0 -462
- package/dist/alerts.mjs +0 -300
- package/dist/client.d.mts +0 -86
- package/dist/client.mjs +0 -233
- package/dist/connection.d.mts +0 -3
- package/dist/connection.mjs +0 -3
- package/dist/dashboards.d.mts +0 -162
- package/dist/dashboards.mjs +0 -122
- package/dist/debug-files.d.mts +0 -102
- package/dist/debug-files.mjs +0 -73
- package/dist/deploys.d.mts +0 -86
- package/dist/deploys.mjs +0 -67
- package/dist/discover.d.mts +0 -194
- package/dist/discover.mjs +0 -138
- package/dist/endpoint-factory-DcT49a8O.mjs +0 -96
- package/dist/environments.d.mts +0 -96
- package/dist/environments.mjs +0 -71
- package/dist/errors-DfEFwcTe.mjs +0 -142
- package/dist/events-api.d.mts +0 -254
- package/dist/events-api.mjs +0 -184
- package/dist/events.d.mts +0 -754
- package/dist/events.mjs +0 -142
- package/dist/feedback.d.mts +0 -82
- package/dist/feedback.mjs +0 -63
- package/dist/integration-D7KCM1-p.mjs +0 -75
- package/dist/integration-veqa_7yB.d.mts +0 -33
- package/dist/issues.d.mts +0 -458
- package/dist/issues.mjs +0 -324
- package/dist/members.d.mts +0 -308
- package/dist/members.mjs +0 -156
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitors.d.mts +0 -458
- package/dist/monitors.mjs +0 -234
- package/dist/notifications.d.mts +0 -180
- package/dist/notifications.mjs +0 -133
- package/dist/organizations.d.mts +0 -442
- package/dist/organizations.mjs +0 -334
- package/dist/pagination-PlgAqbZt.mjs +0 -116
- package/dist/project-keys.d.mts +0 -246
- package/dist/project-keys.mjs +0 -122
- package/dist/projects.d.mts +0 -534
- package/dist/projects.mjs +0 -378
- package/dist/releases.d.mts +0 -780
- package/dist/releases.mjs +0 -479
- package/dist/replays.d.mts +0 -234
- package/dist/replays.mjs +0 -192
- package/dist/scim.d.mts +0 -324
- package/dist/scim.mjs +0 -249
- package/dist/scopes-RRU0vt-a.mjs +0 -36
- package/dist/teams.d.mts +0 -448
- package/dist/teams.mjs +0 -266
- package/dist/triggers.d.mts +0 -41
- package/dist/triggers.mjs +0 -56
- package/dist/user-emails.d.mts +0 -84
- package/dist/user-emails.mjs +0 -60
- package/dist/verification.d.mts +0 -30
- package/dist/verification.mjs +0 -83
- package/dist/webhooks.d.mts +0 -158
- package/dist/webhooks.mjs +0 -108
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/credential-sets/sentry-app.credential-set.ts
|
|
5
|
+
/**
|
|
6
|
+
* Internal Keystroke-owned Sentry Public Integration credentials.
|
|
7
|
+
*
|
|
8
|
+
* For Sentry, `clientSecret` doubles as the webhook signing secret per
|
|
9
|
+
* https://docs.sentry.io/organization/integrations/integration-platform/webhooks/
|
|
10
|
+
*/
|
|
11
|
+
const sentryAppCredentialSet = new CredentialSet({
|
|
12
|
+
id: "sentry-app",
|
|
13
|
+
exposure: "platform-only",
|
|
14
|
+
name: "Sentry App",
|
|
15
|
+
auth: z.object({
|
|
16
|
+
clientId: z.string(),
|
|
17
|
+
clientSecret: z.string(),
|
|
18
|
+
webhookSecret: z.string()
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { sentryAppCredentialSet as t };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CredentialSet } 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/credential-sets/sentry.credential-set.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* User-facing Sentry credentials.
|
|
9
|
+
*
|
|
10
|
+
* Supports OAuth-installed integrations (Internal/Public Integrations) and
|
|
11
|
+
* manual personal/organization auth tokens via the same vault shape:
|
|
12
|
+
* `SENTRY_ACCESS_TOKEN` holds the bearer token in both cases.
|
|
13
|
+
*/
|
|
14
|
+
declare const sentryCredentialSet: CredentialSet<"sentry", z.ZodObject<{
|
|
15
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
16
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
17
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>, {
|
|
19
|
+
kind: "oauth";
|
|
20
|
+
tokenType: "refreshable";
|
|
21
|
+
authUrl: "https://sentry.io/oauth/authorize/";
|
|
22
|
+
tokenUrl: "https://sentry.io/oauth/token/";
|
|
23
|
+
revokeUrl: null;
|
|
24
|
+
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"];
|
|
25
|
+
vault: {
|
|
26
|
+
readonly accessToken: "SENTRY_ACCESS_TOKEN";
|
|
27
|
+
};
|
|
28
|
+
id: string;
|
|
29
|
+
}[]>;
|
|
30
|
+
type SentryCredentials = InferCredentialSetAuth<typeof sentryCredentialSet>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/credential-sets/sentry-app.credential-set.d.ts
|
|
33
|
+
/**
|
|
34
|
+
* Internal Keystroke-owned Sentry Public Integration credentials.
|
|
35
|
+
*
|
|
36
|
+
* For Sentry, `clientSecret` doubles as the webhook signing secret per
|
|
37
|
+
* https://docs.sentry.io/organization/integrations/integration-platform/webhooks/
|
|
38
|
+
*/
|
|
39
|
+
declare const sentryAppCredentialSet: CredentialSet<"sentry-app", z.ZodObject<{
|
|
40
|
+
clientId: z.ZodString;
|
|
41
|
+
clientSecret: z.ZodString;
|
|
42
|
+
webhookSecret: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
44
|
+
clientId: z.ZodString;
|
|
45
|
+
clientSecret: z.ZodString;
|
|
46
|
+
webhookSecret: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>[] | undefined>;
|
|
48
|
+
type SentryAppCredentials = InferCredentialSetAuth<typeof sentryAppCredentialSet>;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { sentryCredentialSet as i, sentryAppCredentialSet as n, SentryCredentials as r, SentryAppCredentials as t };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CredentialSet } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/oauth-connection.ts
|
|
5
|
+
const SENTRY_OAUTH_SCOPES = [
|
|
6
|
+
"org:read",
|
|
7
|
+
"project:read",
|
|
8
|
+
"project:write",
|
|
9
|
+
"project:admin",
|
|
10
|
+
"team:read",
|
|
11
|
+
"team:write",
|
|
12
|
+
"team:admin",
|
|
13
|
+
"member:read",
|
|
14
|
+
"member:write",
|
|
15
|
+
"event:read",
|
|
16
|
+
"event:admin",
|
|
17
|
+
"alerts:read",
|
|
18
|
+
"alerts:write",
|
|
19
|
+
"release:admin"
|
|
20
|
+
];
|
|
21
|
+
const sentryOAuthConnection = {
|
|
22
|
+
kind: "oauth",
|
|
23
|
+
tokenType: "refreshable",
|
|
24
|
+
authUrl: "https://sentry.io/oauth/authorize/",
|
|
25
|
+
tokenUrl: "https://sentry.io/oauth/token/",
|
|
26
|
+
revokeUrl: null,
|
|
27
|
+
scopes: [...SENTRY_OAUTH_SCOPES],
|
|
28
|
+
vault: { accessToken: "SENTRY_ACCESS_TOKEN" }
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/credential-sets/sentry.credential-set.ts
|
|
33
|
+
const sentryAuthSchema = z.object({
|
|
34
|
+
SENTRY_ACCESS_TOKEN: z.string().min(1),
|
|
35
|
+
SENTRY_REGION_URL: z.string().url().optional(),
|
|
36
|
+
SENTRY_ORG_SLUG: z.string().min(1).optional()
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* User-facing Sentry credentials.
|
|
40
|
+
*
|
|
41
|
+
* Supports OAuth-installed integrations (Internal/Public Integrations) and
|
|
42
|
+
* manual personal/organization auth tokens via the same vault shape:
|
|
43
|
+
* `SENTRY_ACCESS_TOKEN` holds the bearer token in both cases.
|
|
44
|
+
*/
|
|
45
|
+
const sentryCredentialSet = new CredentialSet({
|
|
46
|
+
id: "sentry",
|
|
47
|
+
name: "Sentry",
|
|
48
|
+
description: "Sentry — issue lifecycle, release tracking, alerts, monitors, replays, feedback, and integration-platform webhook triggers",
|
|
49
|
+
auth: sentryAuthSchema,
|
|
50
|
+
proxy: { hosts: [
|
|
51
|
+
"sentry.io",
|
|
52
|
+
"us.sentry.io",
|
|
53
|
+
"de.sentry.io"
|
|
54
|
+
] },
|
|
55
|
+
connections: [{
|
|
56
|
+
id: "oauth",
|
|
57
|
+
...sentryOAuthConnection
|
|
58
|
+
}]
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { sentryCredentialSet as t };
|