@keystrokehq/sentry 0.0.11 → 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.
Files changed (54) hide show
  1. package/dist/_official/index.d.mts +2 -7
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/_runtime/index.d.mts +1 -1
  4. package/dist/_runtime/index.mjs +1 -1
  5. package/dist/alerts.d.mts +22 -111
  6. package/dist/alerts.mjs +1 -1
  7. package/dist/connection.d.mts +1 -1
  8. package/dist/connection.mjs +1 -1
  9. package/dist/dashboards.d.mts +10 -51
  10. package/dist/dashboards.mjs +1 -1
  11. package/dist/debug-files.d.mts +6 -31
  12. package/dist/debug-files.mjs +1 -1
  13. package/dist/deploys.d.mts +4 -21
  14. package/dist/deploys.mjs +1 -1
  15. package/dist/discover.d.mts +10 -51
  16. package/dist/discover.mjs +1 -1
  17. package/dist/{endpoint-factory-Cizk4imV.mjs → endpoint-factory-DcT49a8O.mjs} +1 -1
  18. package/dist/environments.d.mts +6 -31
  19. package/dist/environments.mjs +1 -1
  20. package/dist/events-api.d.mts +16 -73
  21. package/dist/events-api.mjs +1 -1
  22. package/dist/feedback.d.mts +4 -21
  23. package/dist/feedback.mjs +1 -1
  24. package/dist/{integration-Q9y2TMhZ.mjs → integration-D7KCM1-p.mjs} +2 -83
  25. package/dist/integration-veqa_7yB.d.mts +33 -0
  26. package/dist/issues.d.mts +28 -133
  27. package/dist/issues.mjs +1 -1
  28. package/dist/members.d.mts +14 -71
  29. package/dist/members.mjs +1 -1
  30. package/dist/monitors.d.mts +44 -125
  31. package/dist/monitors.mjs +1 -1
  32. package/dist/notifications.d.mts +10 -51
  33. package/dist/notifications.mjs +1 -1
  34. package/dist/organizations.d.mts +30 -151
  35. package/dist/organizations.mjs +1 -1
  36. package/dist/project-keys.d.mts +10 -51
  37. package/dist/project-keys.mjs +1 -1
  38. package/dist/projects.d.mts +38 -191
  39. package/dist/projects.mjs +1 -1
  40. package/dist/releases.d.mts +42 -211
  41. package/dist/releases.mjs +1 -1
  42. package/dist/replays.d.mts +18 -91
  43. package/dist/replays.mjs +1 -1
  44. package/dist/schemas.d.mts +4 -4
  45. package/dist/scim.d.mts +22 -111
  46. package/dist/scim.mjs +1 -1
  47. package/dist/teams.d.mts +28 -141
  48. package/dist/teams.mjs +1 -1
  49. package/dist/user-emails.d.mts +8 -41
  50. package/dist/user-emails.mjs +1 -1
  51. package/dist/webhooks.d.mts +10 -51
  52. package/dist/webhooks.mjs +1 -1
  53. package/package.json +4 -5
  54. package/dist/integration-BaLZqIqf.d.mts +0 -58
@@ -1,6 +1,5 @@
1
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
2
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/discover.d.ts
6
5
  declare const saveOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -27,11 +26,7 @@ declare const saveOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodO
27
26
  SENTRY_ACCESS_TOKEN: z.ZodString;
28
27
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
29
28
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
30
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
31
- SENTRY_ACCESS_TOKEN: z.ZodString;
32
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
33
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>[] | undefined>], undefined>;
29
+ }, z.core.$strip>>], undefined>;
35
30
  declare const retrieveSavedDiscoverQueries: _keystrokehq_core0.Operation<z.ZodObject<{
36
31
  cursor: z.ZodOptional<z.ZodString>;
37
32
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -49,11 +44,7 @@ declare const retrieveSavedDiscoverQueries: _keystrokehq_core0.Operation<z.ZodOb
49
44
  SENTRY_ACCESS_TOKEN: z.ZodString;
50
45
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
51
46
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
52
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
53
- SENTRY_ACCESS_TOKEN: z.ZodString;
54
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
55
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strip>>[] | undefined>], undefined>;
47
+ }, z.core.$strip>>], undefined>;
57
48
  declare const retrieveSavedDiscoverQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
58
49
  organization_slug: z.ZodOptional<z.ZodString>;
59
50
  query_id: z.ZodString;
@@ -69,11 +60,7 @@ declare const retrieveSavedDiscoverQueryForOrganization: _keystrokehq_core0.Oper
69
60
  SENTRY_ACCESS_TOKEN: z.ZodString;
70
61
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
71
62
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
72
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
73
- SENTRY_ACCESS_TOKEN: z.ZodString;
74
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
75
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
76
- }, z.core.$strip>>[] | undefined>], undefined>;
63
+ }, z.core.$strip>>], undefined>;
77
64
  declare const updateSavedQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
78
65
  organization_slug: z.ZodOptional<z.ZodString>;
79
66
  query_id: z.ZodString;
@@ -99,11 +86,7 @@ declare const updateSavedQueryForOrganization: _keystrokehq_core0.Operation<z.Zo
99
86
  SENTRY_ACCESS_TOKEN: z.ZodString;
100
87
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
101
88
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
102
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
103
- SENTRY_ACCESS_TOKEN: z.ZodString;
104
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
105
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
106
- }, z.core.$strip>>[] | undefined>], undefined>;
89
+ }, z.core.$strip>>], undefined>;
107
90
  declare const deleteOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
108
91
  organization_slug: z.ZodOptional<z.ZodString>;
109
92
  query_id: z.ZodString;
@@ -111,11 +94,7 @@ declare const deleteOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.Zo
111
94
  SENTRY_ACCESS_TOKEN: z.ZodString;
112
95
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
113
96
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
114
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
115
- SENTRY_ACCESS_TOKEN: z.ZodString;
116
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
117
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
118
- }, z.core.$strip>>[] | undefined>], undefined>;
97
+ }, z.core.$strip>>], undefined>;
119
98
  declare const sentryDiscoverOperations: {
120
99
  readonly saveOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
121
100
  organization_slug: z.ZodOptional<z.ZodString>;
@@ -141,11 +120,7 @@ declare const sentryDiscoverOperations: {
141
120
  SENTRY_ACCESS_TOKEN: z.ZodString;
142
121
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
143
122
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
144
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
145
- SENTRY_ACCESS_TOKEN: z.ZodString;
146
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
147
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
148
- }, z.core.$strip>>[] | undefined>], undefined>;
123
+ }, z.core.$strip>>], undefined>;
149
124
  readonly retrieveSavedDiscoverQueries: _keystrokehq_core0.Operation<z.ZodObject<{
150
125
  cursor: z.ZodOptional<z.ZodString>;
151
126
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -163,11 +138,7 @@ declare const sentryDiscoverOperations: {
163
138
  SENTRY_ACCESS_TOKEN: z.ZodString;
164
139
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
165
140
  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>;
141
+ }, z.core.$strip>>], undefined>;
171
142
  readonly retrieveSavedDiscoverQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
172
143
  organization_slug: z.ZodOptional<z.ZodString>;
173
144
  query_id: z.ZodString;
@@ -183,11 +154,7 @@ declare const sentryDiscoverOperations: {
183
154
  SENTRY_ACCESS_TOKEN: z.ZodString;
184
155
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
185
156
  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>;
157
+ }, z.core.$strip>>], undefined>;
191
158
  readonly updateSavedQueryForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
192
159
  organization_slug: z.ZodOptional<z.ZodString>;
193
160
  query_id: z.ZodString;
@@ -213,11 +180,7 @@ declare const sentryDiscoverOperations: {
213
180
  SENTRY_ACCESS_TOKEN: z.ZodString;
214
181
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
215
182
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
216
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
217
- SENTRY_ACCESS_TOKEN: z.ZodString;
218
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
219
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
220
- }, z.core.$strip>>[] | undefined>], undefined>;
183
+ }, z.core.$strip>>], undefined>;
221
184
  readonly deleteOrganizationDiscoverQuery: _keystrokehq_core0.Operation<z.ZodObject<{
222
185
  organization_slug: z.ZodOptional<z.ZodString>;
223
186
  query_id: z.ZodString;
@@ -225,11 +188,7 @@ declare const sentryDiscoverOperations: {
225
188
  SENTRY_ACCESS_TOKEN: z.ZodString;
226
189
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
227
190
  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>;
191
+ }, z.core.$strip>>], undefined>;
233
192
  };
234
193
  //#endregion
235
194
  export { deleteOrganizationDiscoverQuery, retrieveSavedDiscoverQueries, retrieveSavedDiscoverQueryForOrganization, saveOrganizationDiscoverQuery, sentryDiscoverOperations, updateSavedQueryForOrganization };
package/dist/discover.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { orgScopeInputSchema, sentryDiscoverSavedQuerySchema, sentryIdSchema, sentryListInputSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-Cizk4imV.mjs";
2
+ import { t as defineSentryEndpoint } from "./endpoint-factory-DcT49a8O.mjs";
3
3
  import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
4
4
  import { z } from "zod";
5
5
 
@@ -1,4 +1,4 @@
1
- import { t as sentry } from "./integration-Q9y2TMhZ.mjs";
1
+ import { t as sentry } from "./integration-D7KCM1-p.mjs";
2
2
  import { createSentryClient } from "./client.mjs";
3
3
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
4
4
 
@@ -1,6 +1,5 @@
1
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
2
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/environments.d.ts
6
5
  declare const retrieveProjectEnvironments: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -19,11 +18,7 @@ declare const retrieveProjectEnvironments: _keystrokehq_core0.Operation<z.ZodObj
19
18
  SENTRY_ACCESS_TOKEN: z.ZodString;
20
19
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
21
20
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
23
- SENTRY_ACCESS_TOKEN: z.ZodString;
24
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
25
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>>[] | undefined>], undefined>;
21
+ }, z.core.$strip>>], undefined>;
27
22
  declare const fetchProjectEnvironmentDetails: _keystrokehq_core0.Operation<z.ZodObject<{
28
23
  organization_slug: z.ZodOptional<z.ZodString>;
29
24
  project_slug: z.ZodString;
@@ -36,11 +31,7 @@ declare const fetchProjectEnvironmentDetails: _keystrokehq_core0.Operation<z.Zod
36
31
  SENTRY_ACCESS_TOKEN: z.ZodString;
37
32
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
38
33
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
39
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
40
- SENTRY_ACCESS_TOKEN: z.ZodString;
41
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
42
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
43
- }, z.core.$strip>>[] | undefined>], undefined>;
34
+ }, z.core.$strip>>], undefined>;
44
35
  declare const updateEnvironmentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
45
36
  organization_slug: z.ZodOptional<z.ZodString>;
46
37
  project_slug: z.ZodString;
@@ -54,11 +45,7 @@ declare const updateEnvironmentVisibility: _keystrokehq_core0.Operation<z.ZodObj
54
45
  SENTRY_ACCESS_TOKEN: z.ZodString;
55
46
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
56
47
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
57
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
58
- SENTRY_ACCESS_TOKEN: z.ZodString;
59
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
60
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strip>>[] | undefined>], undefined>;
48
+ }, z.core.$strip>>], undefined>;
62
49
  declare const sentryEnvironmentOperations: {
63
50
  readonly retrieveProjectEnvironments: _keystrokehq_core0.Operation<z.ZodObject<{
64
51
  organization_slug: z.ZodOptional<z.ZodString>;
@@ -76,11 +63,7 @@ declare const sentryEnvironmentOperations: {
76
63
  SENTRY_ACCESS_TOKEN: z.ZodString;
77
64
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
78
65
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
79
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
80
- SENTRY_ACCESS_TOKEN: z.ZodString;
81
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
82
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
83
- }, z.core.$strip>>[] | undefined>], undefined>;
66
+ }, z.core.$strip>>], undefined>;
84
67
  readonly fetchProjectEnvironmentDetails: _keystrokehq_core0.Operation<z.ZodObject<{
85
68
  organization_slug: z.ZodOptional<z.ZodString>;
86
69
  project_slug: z.ZodString;
@@ -93,11 +76,7 @@ declare const sentryEnvironmentOperations: {
93
76
  SENTRY_ACCESS_TOKEN: z.ZodString;
94
77
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
95
78
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
97
- SENTRY_ACCESS_TOKEN: z.ZodString;
98
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
99
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
100
- }, z.core.$strip>>[] | undefined>], undefined>;
79
+ }, z.core.$strip>>], undefined>;
101
80
  readonly updateEnvironmentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
102
81
  organization_slug: z.ZodOptional<z.ZodString>;
103
82
  project_slug: z.ZodString;
@@ -111,11 +90,7 @@ declare const sentryEnvironmentOperations: {
111
90
  SENTRY_ACCESS_TOKEN: z.ZodString;
112
91
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
113
92
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
114
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
115
- SENTRY_ACCESS_TOKEN: z.ZodString;
116
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
117
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
118
- }, z.core.$strip>>[] | undefined>], undefined>;
93
+ }, z.core.$strip>>], undefined>;
119
94
  };
120
95
  //#endregion
121
96
  export { fetchProjectEnvironmentDetails, retrieveProjectEnvironments, sentryEnvironmentOperations, updateEnvironmentVisibility };
@@ -1,5 +1,5 @@
1
1
  import { orgProjectScopeInputSchema, sentryEnvironmentSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-Cizk4imV.mjs";
2
+ import { t as defineSentryEndpoint } from "./endpoint-factory-DcT49a8O.mjs";
3
3
  import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
4
4
  import { z } from "zod";
5
5
 
@@ -1,6 +1,5 @@
1
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
2
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/events-api.d.ts
6
5
  declare const fetchIssueEventById: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -19,11 +18,7 @@ declare const fetchIssueEventById: _keystrokehq_core0.Operation<z.ZodObject<{
19
18
  SENTRY_ACCESS_TOKEN: z.ZodString;
20
19
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
21
20
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
23
- SENTRY_ACCESS_TOKEN: z.ZodString;
24
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
25
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>>[] | undefined>], undefined>;
21
+ }, z.core.$strip>>], undefined>;
27
22
  declare const retrieveProjectEventById: _keystrokehq_core0.Operation<z.ZodObject<{
28
23
  organization_slug: z.ZodOptional<z.ZodString>;
29
24
  project_slug: z.ZodString;
@@ -40,11 +35,7 @@ declare const retrieveProjectEventById: _keystrokehq_core0.Operation<z.ZodObject
40
35
  SENTRY_ACCESS_TOKEN: z.ZodString;
41
36
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
42
37
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
43
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
44
- SENTRY_ACCESS_TOKEN: z.ZodString;
45
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
46
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
47
- }, z.core.$strip>>[] | undefined>], undefined>;
38
+ }, z.core.$strip>>], undefined>;
48
39
  declare const getProjectEvents: _keystrokehq_core0.Operation<z.ZodObject<{
49
40
  cursor: z.ZodOptional<z.ZodString>;
50
41
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -65,19 +56,15 @@ declare const getProjectEvents: _keystrokehq_core0.Operation<z.ZodObject<{
65
56
  SENTRY_ACCESS_TOKEN: z.ZodString;
66
57
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
67
58
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
68
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
69
- SENTRY_ACCESS_TOKEN: z.ZodString;
70
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
71
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
72
- }, z.core.$strip>>[] | undefined>], undefined>;
59
+ }, z.core.$strip>>], undefined>;
73
60
  declare const getProjectEventStats: _keystrokehq_core0.Operation<z.ZodObject<{
74
61
  organization_slug: z.ZodOptional<z.ZodString>;
75
62
  project_slug: z.ZodString;
76
63
  stat: z.ZodOptional<z.ZodEnum<{
77
- generated: "generated";
78
64
  received: "received";
79
65
  rejected: "rejected";
80
66
  blacklisted: "blacklisted";
67
+ generated: "generated";
81
68
  }>>;
82
69
  since: z.ZodOptional<z.ZodString>;
83
70
  until: z.ZodOptional<z.ZodString>;
@@ -86,11 +73,7 @@ declare const getProjectEventStats: _keystrokehq_core0.Operation<z.ZodObject<{
86
73
  SENTRY_ACCESS_TOKEN: z.ZodString;
87
74
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
88
75
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
89
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
90
- SENTRY_ACCESS_TOKEN: z.ZodString;
91
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
92
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
93
- }, z.core.$strip>>[] | undefined>], undefined>;
76
+ }, z.core.$strip>>], undefined>;
94
77
  declare const retrieveOrganizationEvents: _keystrokehq_core0.Operation<z.ZodObject<{
95
78
  cursor: z.ZodOptional<z.ZodString>;
96
79
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -114,11 +97,7 @@ declare const retrieveOrganizationEvents: _keystrokehq_core0.Operation<z.ZodObje
114
97
  SENTRY_ACCESS_TOKEN: z.ZodString;
115
98
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
116
99
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
117
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
118
- SENTRY_ACCESS_TOKEN: z.ZodString;
119
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
120
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>>[] | undefined>], undefined>;
100
+ }, z.core.$strip>>], undefined>;
122
101
  declare const retrieveEventIdForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
123
102
  organization_slug: z.ZodOptional<z.ZodString>;
124
103
  event_id: z.ZodString;
@@ -134,11 +113,7 @@ declare const retrieveEventIdForOrganization: _keystrokehq_core0.Operation<z.Zod
134
113
  SENTRY_ACCESS_TOKEN: z.ZodString;
135
114
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
136
115
  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>;
116
+ }, z.core.$strip>>], undefined>;
142
117
  declare const retrieveSourceMapDebugEvent: _keystrokehq_core0.Operation<z.ZodObject<{
143
118
  organization_slug: z.ZodOptional<z.ZodString>;
144
119
  project_slug: z.ZodString;
@@ -149,11 +124,7 @@ declare const retrieveSourceMapDebugEvent: _keystrokehq_core0.Operation<z.ZodObj
149
124
  SENTRY_ACCESS_TOKEN: z.ZodString;
150
125
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
151
126
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
152
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
153
- SENTRY_ACCESS_TOKEN: z.ZodString;
154
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
155
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
156
- }, z.core.$strip>>[] | undefined>], undefined>;
127
+ }, z.core.$strip>>], undefined>;
157
128
  declare const sentryEventOperations: {
158
129
  readonly fetchIssueEventById: _keystrokehq_core0.Operation<z.ZodObject<{
159
130
  organization_slug: z.ZodOptional<z.ZodString>;
@@ -171,11 +142,7 @@ declare const sentryEventOperations: {
171
142
  SENTRY_ACCESS_TOKEN: z.ZodString;
172
143
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
173
144
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
174
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
175
- SENTRY_ACCESS_TOKEN: z.ZodString;
176
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
177
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
178
- }, z.core.$strip>>[] | undefined>], undefined>;
145
+ }, z.core.$strip>>], undefined>;
179
146
  readonly retrieveProjectEventById: _keystrokehq_core0.Operation<z.ZodObject<{
180
147
  organization_slug: z.ZodOptional<z.ZodString>;
181
148
  project_slug: z.ZodString;
@@ -192,11 +159,7 @@ declare const sentryEventOperations: {
192
159
  SENTRY_ACCESS_TOKEN: z.ZodString;
193
160
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
194
161
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
195
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
196
- SENTRY_ACCESS_TOKEN: z.ZodString;
197
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
198
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
199
- }, z.core.$strip>>[] | undefined>], undefined>;
162
+ }, z.core.$strip>>], undefined>;
200
163
  readonly getProjectEvents: _keystrokehq_core0.Operation<z.ZodObject<{
201
164
  cursor: z.ZodOptional<z.ZodString>;
202
165
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -217,19 +180,15 @@ declare const sentryEventOperations: {
217
180
  SENTRY_ACCESS_TOKEN: z.ZodString;
218
181
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
219
182
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
220
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
221
- SENTRY_ACCESS_TOKEN: z.ZodString;
222
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
223
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
224
- }, z.core.$strip>>[] | undefined>], undefined>;
183
+ }, z.core.$strip>>], undefined>;
225
184
  readonly getProjectEventStats: _keystrokehq_core0.Operation<z.ZodObject<{
226
185
  organization_slug: z.ZodOptional<z.ZodString>;
227
186
  project_slug: z.ZodString;
228
187
  stat: z.ZodOptional<z.ZodEnum<{
229
- generated: "generated";
230
188
  received: "received";
231
189
  rejected: "rejected";
232
190
  blacklisted: "blacklisted";
191
+ generated: "generated";
233
192
  }>>;
234
193
  since: z.ZodOptional<z.ZodString>;
235
194
  until: z.ZodOptional<z.ZodString>;
@@ -238,11 +197,7 @@ declare const sentryEventOperations: {
238
197
  SENTRY_ACCESS_TOKEN: z.ZodString;
239
198
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
240
199
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
241
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
242
- SENTRY_ACCESS_TOKEN: z.ZodString;
243
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
244
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
245
- }, z.core.$strip>>[] | undefined>], undefined>;
200
+ }, z.core.$strip>>], undefined>;
246
201
  readonly retrieveOrganizationEvents: _keystrokehq_core0.Operation<z.ZodObject<{
247
202
  cursor: z.ZodOptional<z.ZodString>;
248
203
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -266,11 +221,7 @@ declare const sentryEventOperations: {
266
221
  SENTRY_ACCESS_TOKEN: z.ZodString;
267
222
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
268
223
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
269
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
270
- SENTRY_ACCESS_TOKEN: z.ZodString;
271
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
272
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
273
- }, z.core.$strip>>[] | undefined>], undefined>;
224
+ }, z.core.$strip>>], undefined>;
274
225
  readonly retrieveEventIdForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
275
226
  organization_slug: z.ZodOptional<z.ZodString>;
276
227
  event_id: z.ZodString;
@@ -286,11 +237,7 @@ declare const sentryEventOperations: {
286
237
  SENTRY_ACCESS_TOKEN: z.ZodString;
287
238
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
288
239
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
289
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
290
- SENTRY_ACCESS_TOKEN: z.ZodString;
291
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
292
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
293
- }, z.core.$strip>>[] | undefined>], undefined>;
240
+ }, z.core.$strip>>], undefined>;
294
241
  readonly retrieveSourceMapDebugEvent: _keystrokehq_core0.Operation<z.ZodObject<{
295
242
  organization_slug: z.ZodOptional<z.ZodString>;
296
243
  project_slug: z.ZodString;
@@ -301,11 +248,7 @@ declare const sentryEventOperations: {
301
248
  SENTRY_ACCESS_TOKEN: z.ZodString;
302
249
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
303
250
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
304
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
305
- SENTRY_ACCESS_TOKEN: z.ZodString;
306
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
307
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
308
- }, z.core.$strip>>[] | undefined>], undefined>;
251
+ }, z.core.$strip>>], undefined>;
309
252
  };
310
253
  //#endregion
311
254
  export { fetchIssueEventById, getProjectEventStats, getProjectEvents, retrieveEventIdForOrganization, retrieveOrganizationEvents, retrieveProjectEventById, retrieveSourceMapDebugEvent, sentryEventOperations };
@@ -1,5 +1,5 @@
1
1
  import { orgIssueScopeInputSchema, orgProjectScopeInputSchema, orgScopeInputSchema, sentryEventSchema, sentryIdSchema, sentryJsonArraySchema, sentryJsonObjectSchema, sentryListInputSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-Cizk4imV.mjs";
2
+ import { t as defineSentryEndpoint } from "./endpoint-factory-DcT49a8O.mjs";
3
3
  import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
4
4
  import { z } from "zod";
5
5
 
@@ -1,6 +1,5 @@
1
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
2
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/feedback.d.ts
6
5
  declare const retrieveUserFeedbackForProject: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -20,11 +19,7 @@ declare const retrieveUserFeedbackForProject: _keystrokehq_core0.Operation<z.Zod
20
19
  SENTRY_ACCESS_TOKEN: z.ZodString;
21
20
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
22
21
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
24
- SENTRY_ACCESS_TOKEN: z.ZodString;
25
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
26
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
27
- }, z.core.$strip>>[] | undefined>], undefined>;
22
+ }, z.core.$strip>>], undefined>;
28
23
  declare const submitProjectUserFeedback: _keystrokehq_core0.Operation<z.ZodObject<{
29
24
  organization_slug: z.ZodOptional<z.ZodString>;
30
25
  project_slug: z.ZodString;
@@ -43,11 +38,7 @@ declare const submitProjectUserFeedback: _keystrokehq_core0.Operation<z.ZodObjec
43
38
  SENTRY_ACCESS_TOKEN: z.ZodString;
44
39
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
45
40
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
46
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>>[] | undefined>], undefined>;
41
+ }, z.core.$strip>>], undefined>;
51
42
  declare const sentryFeedbackOperations: {
52
43
  readonly retrieveUserFeedbackForProject: _keystrokehq_core0.Operation<z.ZodObject<{
53
44
  cursor: z.ZodOptional<z.ZodString>;
@@ -66,11 +57,7 @@ declare const sentryFeedbackOperations: {
66
57
  SENTRY_ACCESS_TOKEN: z.ZodString;
67
58
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
68
59
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
69
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
70
- SENTRY_ACCESS_TOKEN: z.ZodString;
71
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
72
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
73
- }, z.core.$strip>>[] | undefined>], undefined>;
60
+ }, z.core.$strip>>], undefined>;
74
61
  readonly submitProjectUserFeedback: _keystrokehq_core0.Operation<z.ZodObject<{
75
62
  organization_slug: z.ZodOptional<z.ZodString>;
76
63
  project_slug: z.ZodString;
@@ -89,11 +76,7 @@ declare const sentryFeedbackOperations: {
89
76
  SENTRY_ACCESS_TOKEN: z.ZodString;
90
77
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
91
78
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
92
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
93
- SENTRY_ACCESS_TOKEN: z.ZodString;
94
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
95
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strip>>[] | undefined>], undefined>;
79
+ }, z.core.$strip>>], undefined>;
97
80
  };
98
81
  //#endregion
99
82
  export { retrieveUserFeedbackForProject, sentryFeedbackOperations, submitProjectUserFeedback };
package/dist/feedback.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { orgProjectScopeInputSchema, sentryFeedbackSchema, sentryIdSchema, sentryListInputSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-Cizk4imV.mjs";
2
+ import { t as defineSentryEndpoint } from "./endpoint-factory-DcT49a8O.mjs";
3
3
  import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
4
4
  import { z } from "zod";
5
5
 
@@ -1,8 +1,6 @@
1
- import { SENTRY_DEFAULT_BASE_URL } from "./client.mjs";
2
1
  import { CredentialSet } from "@keystrokehq/core";
3
2
  import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
4
3
  import { z } from "zod";
5
- import { oauthDefaults } from "@keystrokehq/credential-connection";
6
4
 
7
5
  //#region src/_official/provider-app.ts
8
6
  /**
@@ -16,6 +14,7 @@ import { oauthDefaults } from "@keystrokehq/credential-connection";
16
14
  */
17
15
  const sentryAppCredentialSet = new CredentialSet({
18
16
  id: officialCredentialSetId("sentry-app"),
17
+ credentialType: "manual",
19
18
  exposure: "platform-only",
20
19
  name: "Sentry App",
21
20
  auth: z.object({
@@ -47,83 +46,6 @@ const sentryOfficialProviderSeed = {
47
46
  })
48
47
  };
49
48
 
50
- //#endregion
51
- //#region src/oauth-connection.ts
52
- const SENTRY_OAUTH_SCOPES = [
53
- "org:read",
54
- "project:read",
55
- "project:write",
56
- "project:admin",
57
- "team:read",
58
- "team:write",
59
- "team:admin",
60
- "member:read",
61
- "member:write",
62
- "event:read",
63
- "event:admin",
64
- "alerts:read",
65
- "alerts:write",
66
- "release:admin"
67
- ];
68
- const sentryOAuthConnection = {
69
- kind: "oauth",
70
- tokenType: "refreshable",
71
- authUrl: "https://sentry.io/oauth/authorize/",
72
- tokenUrl: "https://sentry.io/oauth/token/",
73
- revokeUrl: null,
74
- scopes: [...SENTRY_OAUTH_SCOPES],
75
- vault: { accessToken: "SENTRY_ACCESS_TOKEN" },
76
- async exchangeCode(ctx) {
77
- const result = await oauthDefaults.exchangeCode(ctx);
78
- const orgResponse = await fetch(`${SENTRY_DEFAULT_BASE_URL}/api/0/organizations/`, {
79
- method: "GET",
80
- headers: {
81
- Authorization: `Bearer ${result.accessToken}`,
82
- Accept: "application/json"
83
- }
84
- });
85
- let firstOrg = null;
86
- if (orgResponse.ok) {
87
- const orgs = await orgResponse.json();
88
- if (Array.isArray(orgs) && orgs.length > 0 && isOrganizationProbe(orgs[0])) firstOrg = orgs[0];
89
- }
90
- result.raw._sentryOrganization = firstOrg;
91
- result.raw._sentryUser = pickUser(result.raw);
92
- result.raw._sentryScopes = typeof result.raw.scope === "string" ? result.raw.scope : void 0;
93
- return result;
94
- },
95
- extractInstallationInfo({ tokenResult }) {
96
- const org = tokenResult.raw._sentryOrganization;
97
- const user = tokenResult.raw._sentryUser;
98
- const metadata = {};
99
- if (org?.name) metadata.organizationName = org.name;
100
- if (org?.slug) metadata.organizationSlug = org.slug;
101
- const regionUrl = org?.links?.regionUrl;
102
- if (regionUrl) metadata.regionUrl = regionUrl;
103
- if (user?.name) metadata.userName = user.name;
104
- if (user?.email) metadata.userEmail = user.email;
105
- return {
106
- externalInstallationId: org?.slug,
107
- externalWorkspaceId: org?.id,
108
- externalBotUserId: user?.id,
109
- metadata
110
- };
111
- }
112
- };
113
- function isOrganizationProbe(value) {
114
- return typeof value === "object" && value !== null;
115
- }
116
- function pickUser(raw) {
117
- const user = raw.user;
118
- if (user == null || typeof user !== "object") return null;
119
- const u = user;
120
- return {
121
- id: typeof u.id === "string" ? u.id : void 0,
122
- name: typeof u.name === "string" ? u.name : void 0,
123
- email: typeof u.email === "string" ? u.email : void 0
124
- };
125
- }
126
-
127
49
  //#endregion
128
50
  //#region src/integration.ts
129
51
  const sentryAuthSchema = z.object({
@@ -141,10 +63,7 @@ const sentryOfficialIntegration = {
141
63
  "us.sentry.io",
142
64
  "de.sentry.io"
143
65
  ] },
144
- connections: [{
145
- id: "oauth",
146
- ...sentryOAuthConnection
147
- }]
66
+ credentialType: "oauth"
148
67
  };
149
68
  const sentryBundle = defineOfficialIntegration({
150
69
  ...sentryOfficialIntegration,