@keystrokehq/sentry 0.0.12 → 0.0.16-integration-id-canonicalization.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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} +5 -5
- package/dist/schemas/index.mjs +3 -0
- package/dist/{schemas.mjs → sentry-api-DjJ24hwX.mjs} +2 -2
- package/dist/sentry-app.credential-set-4DLRUKF9.d.mts +59 -0
- package/dist/sentry-app.credential-set-Cdj6Qxiz.mjs +23 -0
- package/dist/sentry.credential-set-2b3TPFqv.mjs +696 -0
- package/dist/view-organization-notification-actions.operation-BI2aB_Mj.mjs +4548 -0
- package/dist/view-organization-notification-actions.operation-C7pc8cl_.d.mts +6840 -0
- package/package.json +9 -117
- package/dist/_official/index.d.mts +0 -46
- 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 -551
- 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 -203
- package/dist/dashboards.mjs +0 -122
- package/dist/debug-files.d.mts +0 -127
- package/dist/debug-files.mjs +0 -73
- package/dist/deploys.d.mts +0 -103
- package/dist/deploys.mjs +0 -67
- package/dist/discover.d.mts +0 -235
- package/dist/discover.mjs +0 -138
- package/dist/endpoint-factory-C0WIFmtK.mjs +0 -95
- package/dist/environments.d.mts +0 -121
- package/dist/environments.mjs +0 -71
- package/dist/errors-DfEFwcTe.mjs +0 -142
- package/dist/events-api.d.mts +0 -311
- 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 -99
- package/dist/feedback.mjs +0 -63
- package/dist/integration-DCNn_9vz.mjs +0 -356
- package/dist/integration-rmp485nJ.d.mts +0 -57
- package/dist/issues.d.mts +0 -563
- package/dist/issues.mjs +0 -324
- package/dist/members.d.mts +0 -365
- 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 -539
- package/dist/monitors.mjs +0 -234
- package/dist/notifications.d.mts +0 -221
- package/dist/notifications.mjs +0 -133
- package/dist/organizations.d.mts +0 -563
- package/dist/organizations.mjs +0 -334
- package/dist/pagination-PlgAqbZt.mjs +0 -116
- package/dist/project-keys.d.mts +0 -287
- package/dist/project-keys.mjs +0 -122
- package/dist/projects.d.mts +0 -687
- package/dist/projects.mjs +0 -378
- package/dist/releases.d.mts +0 -949
- package/dist/releases.mjs +0 -479
- package/dist/replays.d.mts +0 -307
- package/dist/replays.mjs +0 -192
- package/dist/scim.d.mts +0 -413
- package/dist/scim.mjs +0 -249
- package/dist/scopes-RRU0vt-a.mjs +0 -36
- package/dist/teams.d.mts +0 -561
- package/dist/teams.mjs +0 -266
- package/dist/triggers.d.mts +0 -97
- package/dist/triggers.mjs +0 -106
- package/dist/user-emails.d.mts +0 -117
- 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 -199
- package/dist/webhooks.mjs +0 -108
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
-
//#region src/schemas.ts
|
|
3
|
+
//#region src/schemas/sentry-api.ts
|
|
4
4
|
/**
|
|
5
5
|
* Shared Zod v4 schemas for the Sentry management API.
|
|
6
6
|
*
|
|
@@ -315,4 +315,4 @@ const orgIssueScopeInputSchema = orgScopeInputSchema.extend({ issue_id: sentryId
|
|
|
315
315
|
const orgReleaseScopeInputSchema = orgScopeInputSchema.extend({ version: z.string().min(1) });
|
|
316
316
|
|
|
317
317
|
//#endregion
|
|
318
|
-
export {
|
|
318
|
+
export { sentryNotificationActionSchema as A, sentryReleaseFileSchema as B, sentryJsonArraySchema as C, sentryMetricAlertRuleSchema as D, sentryMemberSchema as E, sentryPerPageSchema as F, sentryScimUserSchema as G, sentryReplaySchema as H, sentryProjectDetailsSchema as I, sentryUserEmailSchema as J, sentrySlugSchema as K, sentryProjectHookSchema as L, sentryOrganizationDetailsSchema as M, sentryOrganizationSummarySchema as N, sentryMonitorSchema as O, sentryPaginationInputSchema as P, sentryProjectKeySchema as R, sentryJsonAnySchema as S, sentryListInputSchema as T, sentryRepositorySchema as U, sentryReleaseSchema as V, sentryScimGroupSchema as W, sentryIsoDateOrNullSchema as _, orgTeamScopeInputSchema as a, sentryIssueSchema as b, sentryCursorSchema as c, sentryDeploySchema as d, sentryDiscoverSavedQuerySchema as f, sentryIdSchema as g, sentryFeedbackSchema as h, orgScopeInputSchema as i, sentryNullableStringSchema as j, sentryMonitorStatusSchema as k, sentryDashboardSchema as l, sentryEventSchema as m, orgProjectScopeInputSchema as n, sentryActorSchema as o, sentryEnvironmentSchema as p, sentryTeamSchema as q, orgReleaseScopeInputSchema as r, sentryCommitSchema as s, orgIssueScopeInputSchema as t, sentryDebugFileSchema as u, sentryIsoDateSchema as v, sentryJsonObjectSchema as w, sentryIssueStatusSchema as x, sentryIssueAlertRuleSchema as y, sentryProjectSummarySchema as z };
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
exchangeCode: (ctx: _keystrokehq_core_credential_set0.ExchangeCodeContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
|
|
29
|
+
extractInstallationInfo: ({
|
|
30
|
+
tokenResult
|
|
31
|
+
}: _keystrokehq_core_credential_set0.ExtractInstallationContext) => {
|
|
32
|
+
externalInstallationId: string | undefined;
|
|
33
|
+
externalWorkspaceId: string | undefined;
|
|
34
|
+
externalBotUserId: string | undefined;
|
|
35
|
+
metadata: Record<string, string>;
|
|
36
|
+
};
|
|
37
|
+
id: string;
|
|
38
|
+
}[]>;
|
|
39
|
+
type SentryCredentials = InferCredentialSetAuth<typeof sentryCredentialSet>;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/credential-sets/sentry-app.credential-set.d.ts
|
|
42
|
+
/**
|
|
43
|
+
* Internal Keystroke-owned Sentry Public Integration credentials.
|
|
44
|
+
*
|
|
45
|
+
* For Sentry, `clientSecret` doubles as the webhook signing secret per
|
|
46
|
+
* https://docs.sentry.io/organization/integrations/integration-platform/webhooks/
|
|
47
|
+
*/
|
|
48
|
+
declare const sentryAppCredentialSet: CredentialSet<"sentry-app", z.ZodObject<{
|
|
49
|
+
clientId: z.ZodString;
|
|
50
|
+
clientSecret: z.ZodString;
|
|
51
|
+
webhookSecret: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
53
|
+
clientId: z.ZodString;
|
|
54
|
+
clientSecret: z.ZodString;
|
|
55
|
+
webhookSecret: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>[] | undefined>;
|
|
57
|
+
type SentryAppCredentials = InferCredentialSetAuth<typeof sentryAppCredentialSet>;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { sentryCredentialSet as i, sentryAppCredentialSet as n, SentryCredentials as r, SentryAppCredentials as t };
|
|
@@ -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 };
|