@keystrokehq/sentry 0.0.15 → 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.
Files changed (80) hide show
  1. package/README.md +40 -187
  2. package/dist/credential-sets/index.d.mts +2 -0
  3. package/dist/credential-sets/index.mjs +4 -0
  4. package/dist/index.d.mts +4 -1
  5. package/dist/index.mjs +6 -1
  6. package/dist/operations/index.d.mts +2 -0
  7. package/dist/operations/index.mjs +3 -0
  8. package/dist/{schemas.d.mts → schemas/index.d.mts} +3 -3
  9. package/dist/schemas/index.mjs +3 -0
  10. package/dist/{schemas.mjs → sentry-api-DjJ24hwX.mjs} +2 -2
  11. package/dist/sentry-app.credential-set-4DLRUKF9.d.mts +59 -0
  12. package/dist/sentry-app.credential-set-Cdj6Qxiz.mjs +23 -0
  13. package/dist/sentry.credential-set-2b3TPFqv.mjs +696 -0
  14. package/dist/view-organization-notification-actions.operation-BI2aB_Mj.mjs +4548 -0
  15. package/dist/view-organization-notification-actions.operation-C7pc8cl_.d.mts +6840 -0
  16. package/package.json +14 -121
  17. package/dist/_official/index.d.mts +0 -41
  18. package/dist/_official/index.mjs +0 -3
  19. package/dist/_runtime/index.d.mts +0 -2
  20. package/dist/_runtime/index.mjs +0 -3
  21. package/dist/alerts.d.mts +0 -462
  22. package/dist/alerts.mjs +0 -300
  23. package/dist/client.d.mts +0 -86
  24. package/dist/client.mjs +0 -233
  25. package/dist/connection.d.mts +0 -3
  26. package/dist/connection.mjs +0 -3
  27. package/dist/dashboards.d.mts +0 -162
  28. package/dist/dashboards.mjs +0 -122
  29. package/dist/debug-files.d.mts +0 -102
  30. package/dist/debug-files.mjs +0 -73
  31. package/dist/deploys.d.mts +0 -86
  32. package/dist/deploys.mjs +0 -67
  33. package/dist/discover.d.mts +0 -194
  34. package/dist/discover.mjs +0 -138
  35. package/dist/endpoint-factory-DcT49a8O.mjs +0 -96
  36. package/dist/environments.d.mts +0 -96
  37. package/dist/environments.mjs +0 -71
  38. package/dist/errors-DfEFwcTe.mjs +0 -142
  39. package/dist/events-api.d.mts +0 -254
  40. package/dist/events-api.mjs +0 -184
  41. package/dist/events.d.mts +0 -754
  42. package/dist/events.mjs +0 -142
  43. package/dist/feedback.d.mts +0 -82
  44. package/dist/feedback.mjs +0 -63
  45. package/dist/integration-D7KCM1-p.mjs +0 -75
  46. package/dist/integration-veqa_7yB.d.mts +0 -33
  47. package/dist/issues.d.mts +0 -458
  48. package/dist/issues.mjs +0 -324
  49. package/dist/members.d.mts +0 -308
  50. package/dist/members.mjs +0 -156
  51. package/dist/messaging.d.mts +0 -1
  52. package/dist/messaging.mjs +0 -1
  53. package/dist/monitors.d.mts +0 -458
  54. package/dist/monitors.mjs +0 -234
  55. package/dist/notifications.d.mts +0 -180
  56. package/dist/notifications.mjs +0 -133
  57. package/dist/organizations.d.mts +0 -442
  58. package/dist/organizations.mjs +0 -334
  59. package/dist/pagination-PlgAqbZt.mjs +0 -116
  60. package/dist/project-keys.d.mts +0 -246
  61. package/dist/project-keys.mjs +0 -122
  62. package/dist/projects.d.mts +0 -534
  63. package/dist/projects.mjs +0 -378
  64. package/dist/releases.d.mts +0 -780
  65. package/dist/releases.mjs +0 -479
  66. package/dist/replays.d.mts +0 -234
  67. package/dist/replays.mjs +0 -192
  68. package/dist/scim.d.mts +0 -324
  69. package/dist/scim.mjs +0 -249
  70. package/dist/scopes-RRU0vt-a.mjs +0 -36
  71. package/dist/teams.d.mts +0 -448
  72. package/dist/teams.mjs +0 -266
  73. package/dist/triggers.d.mts +0 -41
  74. package/dist/triggers.mjs +0 -56
  75. package/dist/user-emails.d.mts +0 -84
  76. package/dist/user-emails.mjs +0 -60
  77. package/dist/verification.d.mts +0 -30
  78. package/dist/verification.mjs +0 -83
  79. package/dist/webhooks.d.mts +0 -158
  80. package/dist/webhooks.mjs +0 -108
package/dist/scim.d.mts DELETED
@@ -1,324 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
-
4
- //#region src/scim.d.ts
5
- declare const listScimV2OrganizationUsers: _keystrokehq_core0.Operation<z.ZodObject<{
6
- cursor: z.ZodOptional<z.ZodString>;
7
- per_page: z.ZodOptional<z.ZodNumber>;
8
- query: z.ZodOptional<z.ZodString>;
9
- organization_slug: z.ZodOptional<z.ZodString>;
10
- startIndex: z.ZodOptional<z.ZodNumber>;
11
- count: z.ZodOptional<z.ZodNumber>;
12
- filter: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
14
- SENTRY_ACCESS_TOKEN: z.ZodString;
15
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
16
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
17
- }, z.core.$strip>>], undefined>;
18
- declare const retrieveUserViaScimApi: _keystrokehq_core0.Operation<z.ZodObject<{
19
- organization_slug: z.ZodOptional<z.ZodString>;
20
- member_id: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- id: z.ZodString;
23
- userName: z.ZodOptional<z.ZodString>;
24
- active: z.ZodOptional<z.ZodBoolean>;
25
- displayName: z.ZodOptional<z.ZodString>;
26
- emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
- value: z.ZodString;
28
- }, z.core.$loose>>>;
29
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
30
- SENTRY_ACCESS_TOKEN: z.ZodString;
31
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
32
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>>], undefined>;
34
- declare const createUserForSamlIntegration: _keystrokehq_core0.Operation<z.ZodObject<{
35
- organization_slug: z.ZodOptional<z.ZodString>;
36
- userName: z.ZodString;
37
- active: z.ZodOptional<z.ZodBoolean>;
38
- displayName: z.ZodOptional<z.ZodString>;
39
- emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
- value: z.ZodString;
41
- primary: z.ZodOptional<z.ZodBoolean>;
42
- }, z.core.$strip>>>;
43
- name: z.ZodOptional<z.ZodObject<{
44
- givenName: z.ZodOptional<z.ZodString>;
45
- familyName: z.ZodOptional<z.ZodString>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>, z.ZodObject<{
48
- id: z.ZodString;
49
- userName: z.ZodOptional<z.ZodString>;
50
- active: z.ZodOptional<z.ZodBoolean>;
51
- displayName: z.ZodOptional<z.ZodString>;
52
- emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
- value: z.ZodString;
54
- }, z.core.$loose>>>;
55
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
56
- SENTRY_ACCESS_TOKEN: z.ZodString;
57
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
58
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strip>>], undefined>;
60
- declare const createScimGroupForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
61
- organization_slug: z.ZodOptional<z.ZodString>;
62
- displayName: z.ZodString;
63
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
- value: z.ZodString;
65
- display: z.ZodOptional<z.ZodString>;
66
- }, z.core.$strip>>>;
67
- }, z.core.$strip>, z.ZodObject<{
68
- id: z.ZodString;
69
- displayName: z.ZodString;
70
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
- value: z.ZodString;
72
- display: z.ZodOptional<z.ZodString>;
73
- }, z.core.$loose>>>;
74
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
75
- SENTRY_ACCESS_TOKEN: z.ZodString;
76
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
77
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
78
- }, z.core.$strip>>], undefined>;
79
- declare const getScimGroupByTeamId: _keystrokehq_core0.Operation<z.ZodObject<{
80
- organization_slug: z.ZodOptional<z.ZodString>;
81
- group_id: z.ZodString;
82
- }, z.core.$strip>, z.ZodObject<{
83
- id: z.ZodString;
84
- displayName: z.ZodString;
85
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
- value: z.ZodString;
87
- display: z.ZodOptional<z.ZodString>;
88
- }, z.core.$loose>>>;
89
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", 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>;
94
- declare const retrieveOrganizationScimGroups: _keystrokehq_core0.Operation<z.ZodObject<{
95
- cursor: z.ZodOptional<z.ZodString>;
96
- per_page: z.ZodOptional<z.ZodNumber>;
97
- query: z.ZodOptional<z.ZodString>;
98
- organization_slug: z.ZodOptional<z.ZodString>;
99
- startIndex: z.ZodOptional<z.ZodNumber>;
100
- count: z.ZodOptional<z.ZodNumber>;
101
- filter: z.ZodOptional<z.ZodString>;
102
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", 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>;
107
- declare const patchScimGroupOperations: _keystrokehq_core0.Operation<z.ZodObject<{
108
- organization_slug: z.ZodOptional<z.ZodString>;
109
- group_id: z.ZodString;
110
- Operations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
111
- }, z.core.$strip>, z.ZodObject<{
112
- id: z.ZodString;
113
- displayName: z.ZodString;
114
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
- value: z.ZodString;
116
- display: z.ZodOptional<z.ZodString>;
117
- }, z.core.$loose>>>;
118
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
119
- SENTRY_ACCESS_TOKEN: z.ZodString;
120
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
121
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
122
- }, z.core.$strip>>], undefined>;
123
- declare const deleteTeamFromOrgScimV2: _keystrokehq_core0.Operation<z.ZodObject<{
124
- organization_slug: z.ZodOptional<z.ZodString>;
125
- group_id: z.ZodString;
126
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
127
- SENTRY_ACCESS_TOKEN: z.ZodString;
128
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
129
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strip>>], undefined>;
131
- declare const createExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
132
- organization_slug: z.ZodOptional<z.ZodString>;
133
- userId: z.ZodString;
134
- externalName: z.ZodString;
135
- provider: z.ZodString;
136
- externalId: z.ZodOptional<z.ZodString>;
137
- integrationId: z.ZodOptional<z.ZodString>;
138
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
139
- SENTRY_ACCESS_TOKEN: z.ZodString;
140
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
141
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
142
- }, z.core.$strip>>], undefined>;
143
- declare const updateExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
144
- organization_slug: z.ZodOptional<z.ZodString>;
145
- external_user_id: z.ZodString;
146
- externalName: z.ZodOptional<z.ZodString>;
147
- provider: z.ZodOptional<z.ZodString>;
148
- externalId: z.ZodOptional<z.ZodString>;
149
- integrationId: z.ZodOptional<z.ZodString>;
150
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
151
- SENTRY_ACCESS_TOKEN: z.ZodString;
152
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
153
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
154
- }, z.core.$strip>>], undefined>;
155
- declare const deleteExternalUserFromOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
156
- organization_slug: z.ZodOptional<z.ZodString>;
157
- external_user_id: z.ZodString;
158
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
159
- SENTRY_ACCESS_TOKEN: z.ZodString;
160
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
161
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strip>>], undefined>;
163
- declare const sentryScimOperations: {
164
- readonly listScimV2OrganizationUsers: _keystrokehq_core0.Operation<z.ZodObject<{
165
- cursor: z.ZodOptional<z.ZodString>;
166
- per_page: z.ZodOptional<z.ZodNumber>;
167
- query: z.ZodOptional<z.ZodString>;
168
- organization_slug: z.ZodOptional<z.ZodString>;
169
- startIndex: z.ZodOptional<z.ZodNumber>;
170
- count: z.ZodOptional<z.ZodNumber>;
171
- filter: z.ZodOptional<z.ZodString>;
172
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
173
- SENTRY_ACCESS_TOKEN: z.ZodString;
174
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
175
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
176
- }, z.core.$strip>>], undefined>;
177
- readonly retrieveUserViaScimApi: _keystrokehq_core0.Operation<z.ZodObject<{
178
- organization_slug: z.ZodOptional<z.ZodString>;
179
- member_id: z.ZodString;
180
- }, z.core.$strip>, z.ZodObject<{
181
- id: z.ZodString;
182
- userName: z.ZodOptional<z.ZodString>;
183
- active: z.ZodOptional<z.ZodBoolean>;
184
- displayName: z.ZodOptional<z.ZodString>;
185
- emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
186
- value: z.ZodString;
187
- }, z.core.$loose>>>;
188
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
189
- SENTRY_ACCESS_TOKEN: z.ZodString;
190
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
191
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
192
- }, z.core.$strip>>], undefined>;
193
- readonly createUserForSamlIntegration: _keystrokehq_core0.Operation<z.ZodObject<{
194
- organization_slug: z.ZodOptional<z.ZodString>;
195
- userName: z.ZodString;
196
- active: z.ZodOptional<z.ZodBoolean>;
197
- displayName: z.ZodOptional<z.ZodString>;
198
- emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
199
- value: z.ZodString;
200
- primary: z.ZodOptional<z.ZodBoolean>;
201
- }, z.core.$strip>>>;
202
- name: z.ZodOptional<z.ZodObject<{
203
- givenName: z.ZodOptional<z.ZodString>;
204
- familyName: z.ZodOptional<z.ZodString>;
205
- }, z.core.$strip>>;
206
- }, z.core.$strip>, z.ZodObject<{
207
- id: z.ZodString;
208
- userName: z.ZodOptional<z.ZodString>;
209
- active: z.ZodOptional<z.ZodBoolean>;
210
- displayName: z.ZodOptional<z.ZodString>;
211
- emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
212
- value: z.ZodString;
213
- }, z.core.$loose>>>;
214
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
215
- SENTRY_ACCESS_TOKEN: z.ZodString;
216
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
217
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
218
- }, z.core.$strip>>], undefined>;
219
- readonly createScimGroupForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
220
- organization_slug: z.ZodOptional<z.ZodString>;
221
- displayName: z.ZodString;
222
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
223
- value: z.ZodString;
224
- display: z.ZodOptional<z.ZodString>;
225
- }, z.core.$strip>>>;
226
- }, z.core.$strip>, z.ZodObject<{
227
- id: z.ZodString;
228
- displayName: z.ZodString;
229
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
230
- value: z.ZodString;
231
- display: z.ZodOptional<z.ZodString>;
232
- }, z.core.$loose>>>;
233
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
234
- SENTRY_ACCESS_TOKEN: z.ZodString;
235
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
236
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
237
- }, z.core.$strip>>], undefined>;
238
- readonly getScimGroupByTeamId: _keystrokehq_core0.Operation<z.ZodObject<{
239
- organization_slug: z.ZodOptional<z.ZodString>;
240
- group_id: z.ZodString;
241
- }, z.core.$strip>, z.ZodObject<{
242
- id: z.ZodString;
243
- displayName: z.ZodString;
244
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
- value: z.ZodString;
246
- display: z.ZodOptional<z.ZodString>;
247
- }, z.core.$loose>>>;
248
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
249
- SENTRY_ACCESS_TOKEN: z.ZodString;
250
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
251
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
252
- }, z.core.$strip>>], undefined>;
253
- readonly retrieveOrganizationScimGroups: _keystrokehq_core0.Operation<z.ZodObject<{
254
- cursor: z.ZodOptional<z.ZodString>;
255
- per_page: z.ZodOptional<z.ZodNumber>;
256
- query: z.ZodOptional<z.ZodString>;
257
- organization_slug: z.ZodOptional<z.ZodString>;
258
- startIndex: z.ZodOptional<z.ZodNumber>;
259
- count: z.ZodOptional<z.ZodNumber>;
260
- filter: z.ZodOptional<z.ZodString>;
261
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
262
- SENTRY_ACCESS_TOKEN: z.ZodString;
263
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
264
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
265
- }, z.core.$strip>>], undefined>;
266
- readonly patchScimGroupOperations: _keystrokehq_core0.Operation<z.ZodObject<{
267
- organization_slug: z.ZodOptional<z.ZodString>;
268
- group_id: z.ZodString;
269
- Operations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
270
- }, z.core.$strip>, z.ZodObject<{
271
- id: z.ZodString;
272
- displayName: z.ZodString;
273
- members: z.ZodOptional<z.ZodArray<z.ZodObject<{
274
- value: z.ZodString;
275
- display: z.ZodOptional<z.ZodString>;
276
- }, z.core.$loose>>>;
277
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
278
- SENTRY_ACCESS_TOKEN: z.ZodString;
279
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
280
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
281
- }, z.core.$strip>>], undefined>;
282
- readonly deleteTeamFromOrgScimV2: _keystrokehq_core0.Operation<z.ZodObject<{
283
- organization_slug: z.ZodOptional<z.ZodString>;
284
- group_id: z.ZodString;
285
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
286
- SENTRY_ACCESS_TOKEN: z.ZodString;
287
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
288
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
289
- }, z.core.$strip>>], undefined>;
290
- readonly createExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
291
- organization_slug: z.ZodOptional<z.ZodString>;
292
- userId: z.ZodString;
293
- externalName: z.ZodString;
294
- provider: z.ZodString;
295
- externalId: z.ZodOptional<z.ZodString>;
296
- integrationId: z.ZodOptional<z.ZodString>;
297
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
298
- SENTRY_ACCESS_TOKEN: z.ZodString;
299
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
300
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
301
- }, z.core.$strip>>], undefined>;
302
- readonly updateExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
303
- organization_slug: z.ZodOptional<z.ZodString>;
304
- external_user_id: z.ZodString;
305
- externalName: z.ZodOptional<z.ZodString>;
306
- provider: z.ZodOptional<z.ZodString>;
307
- externalId: z.ZodOptional<z.ZodString>;
308
- integrationId: z.ZodOptional<z.ZodString>;
309
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
310
- SENTRY_ACCESS_TOKEN: z.ZodString;
311
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
312
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
313
- }, z.core.$strip>>], undefined>;
314
- readonly deleteExternalUserFromOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
315
- organization_slug: z.ZodOptional<z.ZodString>;
316
- external_user_id: z.ZodString;
317
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
318
- SENTRY_ACCESS_TOKEN: z.ZodString;
319
- SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
320
- SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
321
- }, z.core.$strip>>], undefined>;
322
- };
323
- //#endregion
324
- export { createExternalUserForOrganization, createScimGroupForOrganization, createUserForSamlIntegration, deleteExternalUserFromOrganization, deleteTeamFromOrgScimV2, getScimGroupByTeamId, listScimV2OrganizationUsers, patchScimGroupOperations, retrieveOrganizationScimGroups, retrieveUserViaScimApi, sentryScimOperations, updateExternalUserForOrganization };
package/dist/scim.mjs DELETED
@@ -1,249 +0,0 @@
1
- import { orgScopeInputSchema, sentryIdSchema, sentryJsonObjectSchema, sentryListInputSchema, sentryScimGroupSchema, sentryScimUserSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-DcT49a8O.mjs";
3
- import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
4
- import { z } from "zod";
5
-
6
- //#region src/scim.ts
7
- /**
8
- * Sentry SCIM + SAML + external-user operations.
9
- * Maps to PLAN.md §6.20 (11 actions).
10
- */
11
- const ORG = [{
12
- name: "organization_slug",
13
- placeholder: "{organization_slug}"
14
- }];
15
- const ORG_SCIM_USER = [...ORG, {
16
- name: "member_id",
17
- placeholder: "{member_id}"
18
- }];
19
- const ORG_SCIM_GROUP = [...ORG, {
20
- name: "group_id",
21
- placeholder: "{group_id}"
22
- }];
23
- const ORG_EXT_USER = [...ORG, {
24
- name: "external_user_id",
25
- placeholder: "{external_user_id}"
26
- }];
27
- const listScimV2OrganizationUsers = defineSentryEndpoint({
28
- id: "sentry.list-scim-v2-organization-users",
29
- name: "List SCIM Users",
30
- description: "List organization SCIM v2 users.",
31
- method: "GET",
32
- path: "/api/0/organizations/{organization_slug}/scim/v2/Users",
33
- pathParams: ORG,
34
- input: sentryListInputSchema.merge(orgScopeInputSchema).extend({
35
- startIndex: z.number().int().optional(),
36
- count: z.number().int().optional(),
37
- filter: z.string().optional()
38
- }),
39
- queryFields: [
40
- "cursor",
41
- "per_page",
42
- "query",
43
- "startIndex",
44
- "count",
45
- "filter"
46
- ],
47
- output: sentryJsonObjectSchema,
48
- requiredOAuthScopes: [...SENTRY_SCOPE.memberRead]
49
- });
50
- const retrieveUserViaScimApi = defineSentryEndpoint({
51
- id: "sentry.retrieve-user-via-scim-api",
52
- name: "Retrieve SCIM User",
53
- description: "Fetch a SCIM user by member id.",
54
- method: "GET",
55
- path: "/api/0/organizations/{organization_slug}/scim/v2/Users/{member_id}",
56
- pathParams: ORG_SCIM_USER,
57
- input: orgScopeInputSchema.extend({ member_id: sentryIdSchema }),
58
- output: sentryScimUserSchema,
59
- requiredOAuthScopes: [...SENTRY_SCOPE.memberRead]
60
- });
61
- const createUserForSamlIntegration = defineSentryEndpoint({
62
- id: "sentry.create-user-for-saml-integration",
63
- name: "Create SAML User",
64
- description: "Provision a new SAML/SCIM user.",
65
- method: "POST",
66
- path: "/api/0/organizations/{organization_slug}/scim/v2/Users",
67
- pathParams: ORG,
68
- input: orgScopeInputSchema.extend({
69
- userName: z.string().min(1),
70
- active: z.boolean().optional(),
71
- displayName: z.string().optional(),
72
- emails: z.array(z.object({
73
- value: z.string().email(),
74
- primary: z.boolean().optional()
75
- })).optional(),
76
- name: z.object({
77
- givenName: z.string().optional(),
78
- familyName: z.string().optional()
79
- }).optional()
80
- }),
81
- bodyFields: [
82
- "userName",
83
- "active",
84
- "displayName",
85
- "emails",
86
- "name"
87
- ],
88
- output: sentryScimUserSchema,
89
- needsApproval: true,
90
- requiredOAuthScopes: [...SENTRY_SCOPE.memberAdmin]
91
- });
92
- const createScimGroupForOrganization = defineSentryEndpoint({
93
- id: "sentry.create-scim-group-for-organization",
94
- name: "Create SCIM Group",
95
- description: "Create a new SCIM group.",
96
- method: "POST",
97
- path: "/api/0/organizations/{organization_slug}/scim/v2/Groups",
98
- pathParams: ORG,
99
- input: orgScopeInputSchema.extend({
100
- displayName: z.string().min(1),
101
- members: z.array(z.object({
102
- value: sentryIdSchema,
103
- display: z.string().optional()
104
- })).optional()
105
- }),
106
- bodyFields: ["displayName", "members"],
107
- output: sentryScimGroupSchema,
108
- needsApproval: true,
109
- requiredOAuthScopes: [...SENTRY_SCOPE.teamAdmin]
110
- });
111
- const getScimGroupByTeamId = defineSentryEndpoint({
112
- id: "sentry.get-scim-group-by-team-id",
113
- name: "Get SCIM Group",
114
- description: "Fetch a SCIM group by id.",
115
- method: "GET",
116
- path: "/api/0/organizations/{organization_slug}/scim/v2/Groups/{group_id}",
117
- pathParams: ORG_SCIM_GROUP,
118
- input: orgScopeInputSchema.extend({ group_id: sentryIdSchema }),
119
- output: sentryScimGroupSchema,
120
- requiredOAuthScopes: [...SENTRY_SCOPE.teamRead]
121
- });
122
- const retrieveOrganizationScimGroups = defineSentryEndpoint({
123
- id: "sentry.retrieve-organization-scim-groups",
124
- name: "List SCIM Groups",
125
- description: "List SCIM groups for the organization.",
126
- method: "GET",
127
- path: "/api/0/organizations/{organization_slug}/scim/v2/Groups",
128
- pathParams: ORG,
129
- input: sentryListInputSchema.merge(orgScopeInputSchema).extend({
130
- startIndex: z.number().int().optional(),
131
- count: z.number().int().optional(),
132
- filter: z.string().optional()
133
- }),
134
- queryFields: [
135
- "cursor",
136
- "per_page",
137
- "query",
138
- "startIndex",
139
- "count",
140
- "filter"
141
- ],
142
- output: sentryJsonObjectSchema,
143
- requiredOAuthScopes: [...SENTRY_SCOPE.teamRead]
144
- });
145
- const patchScimGroupOperations = defineSentryEndpoint({
146
- id: "sentry.patch-scim-group-operations",
147
- name: "Patch SCIM Group",
148
- description: "Apply PATCH operations to a SCIM group.",
149
- method: "PATCH",
150
- path: "/api/0/organizations/{organization_slug}/scim/v2/Groups/{group_id}",
151
- pathParams: ORG_SCIM_GROUP,
152
- input: orgScopeInputSchema.extend({
153
- group_id: sentryIdSchema,
154
- Operations: z.array(sentryJsonObjectSchema).min(1)
155
- }),
156
- bodyFields: ["Operations"],
157
- output: sentryScimGroupSchema,
158
- needsApproval: true,
159
- requiredOAuthScopes: [...SENTRY_SCOPE.teamAdmin]
160
- });
161
- const deleteTeamFromOrgScimV2 = defineSentryEndpoint({
162
- id: "sentry.delete-team-from-org-scim-v2",
163
- name: "Delete SCIM Group",
164
- description: "Delete a SCIM group by id.",
165
- method: "DELETE",
166
- path: "/api/0/organizations/{organization_slug}/scim/v2/Groups/{group_id}",
167
- pathParams: ORG_SCIM_GROUP,
168
- input: orgScopeInputSchema.extend({ group_id: sentryIdSchema }),
169
- output: z.unknown(),
170
- needsApproval: true,
171
- requiredOAuthScopes: [...SENTRY_SCOPE.teamAdmin]
172
- });
173
- const createExternalUserForOrganization = defineSentryEndpoint({
174
- id: "sentry.create-external-user-for-organization",
175
- name: "Create External User",
176
- description: "Link a Sentry user to an external-provider user (github, slack, etc.).",
177
- method: "POST",
178
- path: "/api/0/organizations/{organization_slug}/external-users/",
179
- pathParams: ORG,
180
- input: orgScopeInputSchema.extend({
181
- userId: sentryIdSchema,
182
- externalName: z.string().min(1),
183
- provider: z.string().min(1),
184
- externalId: z.string().optional(),
185
- integrationId: z.string().optional()
186
- }),
187
- bodyFields: [
188
- "userId",
189
- "externalName",
190
- "provider",
191
- "externalId",
192
- "integrationId"
193
- ],
194
- output: sentryJsonObjectSchema,
195
- needsApproval: true,
196
- requiredOAuthScopes: [...SENTRY_SCOPE.memberAdmin]
197
- });
198
- const updateExternalUserForOrganization = defineSentryEndpoint({
199
- id: "sentry.update-external-user-for-organization",
200
- name: "Update External User",
201
- description: "Update an external-user link.",
202
- method: "PUT",
203
- path: "/api/0/organizations/{organization_slug}/external-users/{external_user_id}/",
204
- pathParams: ORG_EXT_USER,
205
- input: orgScopeInputSchema.extend({
206
- external_user_id: sentryIdSchema,
207
- externalName: z.string().optional(),
208
- provider: z.string().optional(),
209
- externalId: z.string().optional(),
210
- integrationId: z.string().optional()
211
- }),
212
- bodyFields: [
213
- "externalName",
214
- "provider",
215
- "externalId",
216
- "integrationId"
217
- ],
218
- output: sentryJsonObjectSchema,
219
- needsApproval: true,
220
- requiredOAuthScopes: [...SENTRY_SCOPE.memberAdmin]
221
- });
222
- const deleteExternalUserFromOrganization = defineSentryEndpoint({
223
- id: "sentry.delete-external-user-from-organization",
224
- name: "Delete External User",
225
- description: "Remove an external-user link by id.",
226
- method: "DELETE",
227
- path: "/api/0/organizations/{organization_slug}/external-users/{external_user_id}/",
228
- pathParams: ORG_EXT_USER,
229
- input: orgScopeInputSchema.extend({ external_user_id: sentryIdSchema }),
230
- output: z.unknown(),
231
- needsApproval: true,
232
- requiredOAuthScopes: [...SENTRY_SCOPE.memberAdmin]
233
- });
234
- const sentryScimOperations = {
235
- listScimV2OrganizationUsers,
236
- retrieveUserViaScimApi,
237
- createUserForSamlIntegration,
238
- createScimGroupForOrganization,
239
- getScimGroupByTeamId,
240
- retrieveOrganizationScimGroups,
241
- patchScimGroupOperations,
242
- deleteTeamFromOrgScimV2,
243
- createExternalUserForOrganization,
244
- updateExternalUserForOrganization,
245
- deleteExternalUserFromOrganization
246
- };
247
-
248
- //#endregion
249
- export { createExternalUserForOrganization, createScimGroupForOrganization, createUserForSamlIntegration, deleteExternalUserFromOrganization, deleteTeamFromOrgScimV2, getScimGroupByTeamId, listScimV2OrganizationUsers, patchScimGroupOperations, retrieveOrganizationScimGroups, retrieveUserViaScimApi, sentryScimOperations, updateExternalUserForOrganization };
@@ -1,36 +0,0 @@
1
- //#region src/scopes.ts
2
- /**
3
- * Centralised OAuth scope constants for Sentry.
4
- *
5
- * Every exported operation declares the minimum set of scopes the platform
6
- * must see on the connected token before invoking it. These drive the
7
- * per-operation scope-composition check that `@keystrokehq/core`
8
- * performs at runtime (see #263).
9
- *
10
- * Scope strings are lifted verbatim from Sentry's API permission matrix at
11
- * <https://docs.sentry.io/api/permissions/>.
12
- */
13
- const SENTRY_SCOPE = {
14
- orgRead: ["org:read"],
15
- orgWrite: ["org:write"],
16
- orgAdmin: ["org:admin"],
17
- memberRead: ["member:read"],
18
- memberWrite: ["member:write"],
19
- memberAdmin: ["member:admin"],
20
- teamRead: ["team:read"],
21
- teamWrite: ["team:write"],
22
- teamAdmin: ["team:admin"],
23
- projectRead: ["project:read"],
24
- projectWrite: ["project:write"],
25
- projectAdmin: ["project:admin"],
26
- projectReleases: ["project:releases"],
27
- eventRead: ["event:read"],
28
- eventWrite: ["event:write"],
29
- eventAdmin: ["event:admin"],
30
- alertsRead: ["alerts:read"],
31
- alertsWrite: ["alerts:write"],
32
- releaseAdmin: ["release:admin"]
33
- };
34
-
35
- //#endregion
36
- export { SENTRY_SCOPE as t };