@keystrokehq/sentry 0.0.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 +218 -0
- package/dist/_official/index.d.mts +3 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +2 -0
- package/dist/_runtime/index.mjs +3 -0
- package/dist/alerts.d.mts +551 -0
- package/dist/alerts.mjs +300 -0
- package/dist/client.d.mts +86 -0
- package/dist/client.mjs +233 -0
- package/dist/connection.d.mts +3 -0
- package/dist/connection.mjs +3 -0
- package/dist/dashboards.d.mts +203 -0
- package/dist/dashboards.mjs +122 -0
- package/dist/debug-files.d.mts +127 -0
- package/dist/debug-files.mjs +73 -0
- package/dist/deploys.d.mts +103 -0
- package/dist/deploys.mjs +67 -0
- package/dist/discover.d.mts +235 -0
- package/dist/discover.mjs +138 -0
- package/dist/endpoint-factory-BwjbcPwW.mjs +96 -0
- package/dist/environments.d.mts +121 -0
- package/dist/environments.mjs +71 -0
- package/dist/errors-DfEFwcTe.mjs +142 -0
- package/dist/events-api.d.mts +311 -0
- package/dist/events-api.mjs +184 -0
- package/dist/events.d.mts +754 -0
- package/dist/events.mjs +142 -0
- package/dist/feedback.d.mts +99 -0
- package/dist/feedback.mjs +63 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-C8KHkeNG.d.mts +58 -0
- package/dist/integration-WwY95cWE.mjs +156 -0
- package/dist/issues.d.mts +563 -0
- package/dist/issues.mjs +324 -0
- package/dist/members.d.mts +365 -0
- package/dist/members.mjs +156 -0
- package/dist/messaging.d.mts +1 -0
- package/dist/messaging.mjs +1 -0
- package/dist/monitors.d.mts +539 -0
- package/dist/monitors.mjs +234 -0
- package/dist/notifications.d.mts +221 -0
- package/dist/notifications.mjs +133 -0
- package/dist/organizations.d.mts +563 -0
- package/dist/organizations.mjs +334 -0
- package/dist/pagination-PlgAqbZt.mjs +116 -0
- package/dist/project-keys.d.mts +287 -0
- package/dist/project-keys.mjs +122 -0
- package/dist/projects.d.mts +687 -0
- package/dist/projects.mjs +378 -0
- package/dist/provider-app-BANn4KOL.d.mts +45 -0
- package/dist/releases.d.mts +949 -0
- package/dist/releases.mjs +479 -0
- package/dist/replays.d.mts +307 -0
- package/dist/replays.mjs +192 -0
- package/dist/schemas.d.mts +381 -0
- package/dist/schemas.mjs +318 -0
- package/dist/scim.d.mts +413 -0
- package/dist/scim.mjs +249 -0
- package/dist/scopes-RRU0vt-a.mjs +36 -0
- package/dist/teams.d.mts +561 -0
- package/dist/teams.mjs +266 -0
- package/dist/triggers.d.mts +83 -0
- package/dist/triggers.mjs +263 -0
- package/dist/user-emails.d.mts +117 -0
- package/dist/user-emails.mjs +60 -0
- package/dist/verification.d.mts +30 -0
- package/dist/verification.mjs +83 -0
- package/dist/webhooks.d.mts +199 -0
- package/dist/webhooks.mjs +108 -0
- package/package.json +178 -0
package/dist/scim.d.mts
ADDED
|
@@ -0,0 +1,413 @@
|
|
|
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
|
+
|
|
5
|
+
//#region src/scim.d.ts
|
|
6
|
+
declare const listScimV2OrganizationUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
query: z.ZodOptional<z.ZodString>;
|
|
10
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
11
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
19
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
20
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
21
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
23
|
+
declare const retrieveUserViaScimApi: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
24
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
25
|
+
member_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
29
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
31
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
+
value: z.ZodString;
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
35
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
36
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
37
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
39
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
40
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
41
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
43
|
+
declare const createUserForSamlIntegration: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
44
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
45
|
+
userName: z.ZodString;
|
|
46
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
48
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
+
value: z.ZodString;
|
|
50
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
givenName: z.ZodOptional<z.ZodString>;
|
|
54
|
+
familyName: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
59
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
61
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
value: z.ZodString;
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
65
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
66
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
67
|
+
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>;
|
|
73
|
+
declare const createScimGroupForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
74
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
75
|
+
displayName: z.ZodString;
|
|
76
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
+
value: z.ZodString;
|
|
78
|
+
display: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
displayName: z.ZodString;
|
|
83
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
value: z.ZodString;
|
|
85
|
+
display: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$loose>>>;
|
|
87
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
88
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
89
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
90
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
92
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
93
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
94
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
96
|
+
declare const getScimGroupByTeamId: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
97
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
98
|
+
group_id: z.ZodString;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
displayName: z.ZodString;
|
|
102
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
103
|
+
value: z.ZodString;
|
|
104
|
+
display: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$loose>>>;
|
|
106
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
107
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
108
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
109
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
111
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
112
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
113
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
115
|
+
declare const retrieveOrganizationScimGroups: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
116
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
117
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
query: z.ZodOptional<z.ZodString>;
|
|
119
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
120
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
124
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
125
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
126
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
128
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
129
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
130
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
132
|
+
declare const patchScimGroupOperations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
133
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
134
|
+
group_id: z.ZodString;
|
|
135
|
+
Operations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
displayName: z.ZodString;
|
|
139
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
value: z.ZodString;
|
|
141
|
+
display: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$loose>>>;
|
|
143
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
144
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
145
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
146
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
147
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
148
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
149
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
150
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
152
|
+
declare const deleteTeamFromOrgScimV2: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
153
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
154
|
+
group_id: z.ZodString;
|
|
155
|
+
}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
156
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
157
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
158
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
160
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
161
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
162
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
164
|
+
declare const createExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
165
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
166
|
+
userId: z.ZodString;
|
|
167
|
+
externalName: z.ZodString;
|
|
168
|
+
provider: z.ZodString;
|
|
169
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
170
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
172
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
173
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
174
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
175
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
176
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
177
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
178
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
180
|
+
declare const updateExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
181
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
182
|
+
external_user_id: z.ZodString;
|
|
183
|
+
externalName: z.ZodOptional<z.ZodString>;
|
|
184
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
185
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
186
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
188
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
189
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
190
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
192
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
193
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
194
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
196
|
+
declare const deleteExternalUserFromOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
197
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
198
|
+
external_user_id: z.ZodString;
|
|
199
|
+
}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
200
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
201
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
202
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
204
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
205
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
206
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
208
|
+
declare const sentryScimOperations: {
|
|
209
|
+
readonly listScimV2OrganizationUsers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
210
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
211
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
212
|
+
query: z.ZodOptional<z.ZodString>;
|
|
213
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
214
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
218
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
219
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
220
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
222
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
223
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
224
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
226
|
+
readonly retrieveUserViaScimApi: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
227
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
228
|
+
member_id: z.ZodString;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
id: z.ZodString;
|
|
231
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
232
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
234
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
235
|
+
value: z.ZodString;
|
|
236
|
+
}, z.core.$loose>>>;
|
|
237
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
238
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
239
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
240
|
+
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>;
|
|
246
|
+
readonly createUserForSamlIntegration: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
247
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
248
|
+
userName: z.ZodString;
|
|
249
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
251
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
|
+
value: z.ZodString;
|
|
253
|
+
primary: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
}, z.core.$strip>>>;
|
|
255
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
256
|
+
givenName: z.ZodOptional<z.ZodString>;
|
|
257
|
+
familyName: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
+
id: z.ZodString;
|
|
261
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
262
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
264
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
265
|
+
value: z.ZodString;
|
|
266
|
+
}, z.core.$loose>>>;
|
|
267
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
268
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
269
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
270
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
272
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
273
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
274
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
275
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
276
|
+
readonly createScimGroupForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
277
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
278
|
+
displayName: z.ZodString;
|
|
279
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
280
|
+
value: z.ZodString;
|
|
281
|
+
display: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, z.core.$strip>>>;
|
|
283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
displayName: z.ZodString;
|
|
286
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
+
value: z.ZodString;
|
|
288
|
+
display: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$loose>>>;
|
|
290
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
291
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
292
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
293
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
295
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
296
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
297
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
299
|
+
readonly getScimGroupByTeamId: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
300
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
301
|
+
group_id: z.ZodString;
|
|
302
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
303
|
+
id: z.ZodString;
|
|
304
|
+
displayName: z.ZodString;
|
|
305
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
306
|
+
value: z.ZodString;
|
|
307
|
+
display: z.ZodOptional<z.ZodString>;
|
|
308
|
+
}, z.core.$loose>>>;
|
|
309
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
314
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
315
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
316
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
318
|
+
readonly retrieveOrganizationScimGroups: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
319
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
320
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
query: z.ZodOptional<z.ZodString>;
|
|
322
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
323
|
+
startIndex: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
327
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
328
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
329
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
331
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
332
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
333
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
335
|
+
readonly patchScimGroupOperations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
336
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
337
|
+
group_id: z.ZodString;
|
|
338
|
+
Operations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
+
id: z.ZodString;
|
|
341
|
+
displayName: z.ZodString;
|
|
342
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
343
|
+
value: z.ZodString;
|
|
344
|
+
display: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.core.$loose>>>;
|
|
346
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
347
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
348
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
349
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
350
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
351
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
352
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
353
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
355
|
+
readonly deleteTeamFromOrgScimV2: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
356
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
357
|
+
group_id: z.ZodString;
|
|
358
|
+
}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
359
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
360
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
361
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
363
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
364
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
365
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
367
|
+
readonly createExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
368
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
369
|
+
userId: z.ZodString;
|
|
370
|
+
externalName: z.ZodString;
|
|
371
|
+
provider: z.ZodString;
|
|
372
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
374
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
375
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
376
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
377
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
378
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
379
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
380
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
381
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
382
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
383
|
+
readonly updateExternalUserForOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
384
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
385
|
+
external_user_id: z.ZodString;
|
|
386
|
+
externalName: z.ZodOptional<z.ZodString>;
|
|
387
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
388
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
389
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
390
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
391
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
392
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
393
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
395
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
396
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
397
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
398
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
399
|
+
readonly deleteExternalUserFromOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
400
|
+
organization_slug: z.ZodOptional<z.ZodString>;
|
|
401
|
+
external_user_id: z.ZodString;
|
|
402
|
+
}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
|
|
403
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
404
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
405
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
407
|
+
SENTRY_ACCESS_TOKEN: z.ZodString;
|
|
408
|
+
SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
|
|
409
|
+
SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
|
|
410
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
411
|
+
};
|
|
412
|
+
//#endregion
|
|
413
|
+
export { createExternalUserForOrganization, createScimGroupForOrganization, createUserForSamlIntegration, deleteExternalUserFromOrganization, deleteTeamFromOrgScimV2, getScimGroupByTeamId, listScimV2OrganizationUsers, patchScimGroupOperations, retrieveOrganizationScimGroups, retrieveUserViaScimApi, sentryScimOperations, updateExternalUserForOrganization };
|
package/dist/scim.mjs
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { orgScopeInputSchema, sentryIdSchema, sentryJsonObjectSchema, sentryListInputSchema, sentryScimGroupSchema, sentryScimUserSchema } from "./schemas.mjs";
|
|
2
|
+
import { t as defineSentryEndpoint } from "./endpoint-factory-BwjbcPwW.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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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 };
|