@keystrokehq/sentry 0.0.11 → 0.0.12

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 (56) hide show
  1. package/dist/_official/index.d.mts +1 -1
  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 -22
  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 -10
  10. package/dist/dashboards.mjs +1 -1
  11. package/dist/debug-files.d.mts +6 -6
  12. package/dist/debug-files.mjs +1 -1
  13. package/dist/deploys.d.mts +4 -4
  14. package/dist/deploys.mjs +1 -1
  15. package/dist/discover.d.mts +10 -10
  16. package/dist/discover.mjs +1 -1
  17. package/dist/{endpoint-factory-Cizk4imV.mjs → endpoint-factory-C0WIFmtK.mjs} +1 -2
  18. package/dist/environments.d.mts +6 -6
  19. package/dist/environments.mjs +1 -1
  20. package/dist/events-api.d.mts +14 -14
  21. package/dist/events-api.mjs +1 -1
  22. package/dist/feedback.d.mts +4 -4
  23. package/dist/feedback.mjs +1 -1
  24. package/dist/integration-DCNn_9vz.mjs +356 -0
  25. package/dist/{integration-BaLZqIqf.d.mts → integration-rmp485nJ.d.mts} +2 -3
  26. package/dist/issues.d.mts +36 -36
  27. package/dist/issues.mjs +1 -1
  28. package/dist/members.d.mts +14 -14
  29. package/dist/members.mjs +1 -1
  30. package/dist/monitors.d.mts +44 -44
  31. package/dist/monitors.mjs +1 -1
  32. package/dist/notifications.d.mts +10 -10
  33. package/dist/notifications.mjs +1 -1
  34. package/dist/organizations.d.mts +30 -30
  35. package/dist/organizations.mjs +1 -1
  36. package/dist/project-keys.d.mts +10 -10
  37. package/dist/project-keys.mjs +1 -1
  38. package/dist/projects.d.mts +38 -38
  39. package/dist/projects.mjs +1 -1
  40. package/dist/releases.d.mts +44 -44
  41. package/dist/releases.mjs +1 -1
  42. package/dist/replays.d.mts +18 -18
  43. package/dist/replays.mjs +1 -1
  44. package/dist/schemas.d.mts +6 -6
  45. package/dist/scim.d.mts +22 -22
  46. package/dist/scim.mjs +1 -1
  47. package/dist/teams.d.mts +28 -28
  48. package/dist/teams.mjs +1 -1
  49. package/dist/triggers.d.mts +59 -3
  50. package/dist/triggers.mjs +51 -1
  51. package/dist/user-emails.d.mts +8 -8
  52. package/dist/user-emails.mjs +1 -1
  53. package/dist/webhooks.d.mts +10 -10
  54. package/dist/webhooks.mjs +1 -1
  55. package/package.json +5 -5
  56. package/dist/integration-Q9y2TMhZ.mjs +0 -156
package/dist/scim.d.mts CHANGED
@@ -11,7 +11,7 @@ declare const listScimV2OrganizationUsers: _keystrokehq_core0.Operation<z.ZodObj
11
11
  startIndex: z.ZodOptional<z.ZodNumber>;
12
12
  count: z.ZodOptional<z.ZodNumber>;
13
13
  filter: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
14
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
15
15
  SENTRY_ACCESS_TOKEN: z.ZodString;
16
16
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
17
17
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -31,7 +31,7 @@ declare const retrieveUserViaScimApi: _keystrokehq_core0.Operation<z.ZodObject<{
31
31
  emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
32
  value: z.ZodString;
33
33
  }, z.core.$loose>>>;
34
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
34
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
35
35
  SENTRY_ACCESS_TOKEN: z.ZodString;
36
36
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
37
37
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -61,7 +61,7 @@ declare const createUserForSamlIntegration: _keystrokehq_core0.Operation<z.ZodOb
61
61
  emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
62
  value: z.ZodString;
63
63
  }, z.core.$loose>>>;
64
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
64
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
65
65
  SENTRY_ACCESS_TOKEN: z.ZodString;
66
66
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
67
67
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -84,7 +84,7 @@ declare const createScimGroupForOrganization: _keystrokehq_core0.Operation<z.Zod
84
84
  value: z.ZodString;
85
85
  display: z.ZodOptional<z.ZodString>;
86
86
  }, z.core.$loose>>>;
87
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
87
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
88
88
  SENTRY_ACCESS_TOKEN: z.ZodString;
89
89
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
90
90
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -103,7 +103,7 @@ declare const getScimGroupByTeamId: _keystrokehq_core0.Operation<z.ZodObject<{
103
103
  value: z.ZodString;
104
104
  display: z.ZodOptional<z.ZodString>;
105
105
  }, z.core.$loose>>>;
106
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
106
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
107
107
  SENTRY_ACCESS_TOKEN: z.ZodString;
108
108
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
109
109
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -120,7 +120,7 @@ declare const retrieveOrganizationScimGroups: _keystrokehq_core0.Operation<z.Zod
120
120
  startIndex: z.ZodOptional<z.ZodNumber>;
121
121
  count: z.ZodOptional<z.ZodNumber>;
122
122
  filter: z.ZodOptional<z.ZodString>;
123
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
123
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
124
124
  SENTRY_ACCESS_TOKEN: z.ZodString;
125
125
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
126
126
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -140,7 +140,7 @@ declare const patchScimGroupOperations: _keystrokehq_core0.Operation<z.ZodObject
140
140
  value: z.ZodString;
141
141
  display: z.ZodOptional<z.ZodString>;
142
142
  }, z.core.$loose>>>;
143
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
143
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
144
144
  SENTRY_ACCESS_TOKEN: z.ZodString;
145
145
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
146
146
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -152,7 +152,7 @@ declare const patchScimGroupOperations: _keystrokehq_core0.Operation<z.ZodObject
152
152
  declare const deleteTeamFromOrgScimV2: _keystrokehq_core0.Operation<z.ZodObject<{
153
153
  organization_slug: z.ZodOptional<z.ZodString>;
154
154
  group_id: z.ZodString;
155
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
155
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
156
156
  SENTRY_ACCESS_TOKEN: z.ZodString;
157
157
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
158
158
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -168,7 +168,7 @@ declare const createExternalUserForOrganization: _keystrokehq_core0.Operation<z.
168
168
  provider: z.ZodString;
169
169
  externalId: z.ZodOptional<z.ZodString>;
170
170
  integrationId: z.ZodOptional<z.ZodString>;
171
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
171
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
172
172
  SENTRY_ACCESS_TOKEN: z.ZodString;
173
173
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
174
174
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -184,7 +184,7 @@ declare const updateExternalUserForOrganization: _keystrokehq_core0.Operation<z.
184
184
  provider: z.ZodOptional<z.ZodString>;
185
185
  externalId: z.ZodOptional<z.ZodString>;
186
186
  integrationId: z.ZodOptional<z.ZodString>;
187
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
187
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
188
188
  SENTRY_ACCESS_TOKEN: z.ZodString;
189
189
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
190
190
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -196,7 +196,7 @@ declare const updateExternalUserForOrganization: _keystrokehq_core0.Operation<z.
196
196
  declare const deleteExternalUserFromOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
197
197
  organization_slug: z.ZodOptional<z.ZodString>;
198
198
  external_user_id: z.ZodString;
199
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
199
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
200
200
  SENTRY_ACCESS_TOKEN: z.ZodString;
201
201
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
202
202
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -214,7 +214,7 @@ declare const sentryScimOperations: {
214
214
  startIndex: z.ZodOptional<z.ZodNumber>;
215
215
  count: z.ZodOptional<z.ZodNumber>;
216
216
  filter: z.ZodOptional<z.ZodString>;
217
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
217
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
218
218
  SENTRY_ACCESS_TOKEN: z.ZodString;
219
219
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
220
220
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -234,7 +234,7 @@ declare const sentryScimOperations: {
234
234
  emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
235
235
  value: z.ZodString;
236
236
  }, z.core.$loose>>>;
237
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
237
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
238
238
  SENTRY_ACCESS_TOKEN: z.ZodString;
239
239
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
240
240
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -264,7 +264,7 @@ declare const sentryScimOperations: {
264
264
  emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
265
265
  value: z.ZodString;
266
266
  }, z.core.$loose>>>;
267
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
267
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
268
268
  SENTRY_ACCESS_TOKEN: z.ZodString;
269
269
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
270
270
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -287,7 +287,7 @@ declare const sentryScimOperations: {
287
287
  value: z.ZodString;
288
288
  display: z.ZodOptional<z.ZodString>;
289
289
  }, z.core.$loose>>>;
290
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
290
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
291
291
  SENTRY_ACCESS_TOKEN: z.ZodString;
292
292
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
293
293
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -306,7 +306,7 @@ declare const sentryScimOperations: {
306
306
  value: z.ZodString;
307
307
  display: z.ZodOptional<z.ZodString>;
308
308
  }, z.core.$loose>>>;
309
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
309
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
310
310
  SENTRY_ACCESS_TOKEN: z.ZodString;
311
311
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
312
312
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -323,7 +323,7 @@ declare const sentryScimOperations: {
323
323
  startIndex: z.ZodOptional<z.ZodNumber>;
324
324
  count: z.ZodOptional<z.ZodNumber>;
325
325
  filter: z.ZodOptional<z.ZodString>;
326
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
326
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
327
327
  SENTRY_ACCESS_TOKEN: z.ZodString;
328
328
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
329
329
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -343,7 +343,7 @@ declare const sentryScimOperations: {
343
343
  value: z.ZodString;
344
344
  display: z.ZodOptional<z.ZodString>;
345
345
  }, z.core.$loose>>>;
346
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
346
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
347
347
  SENTRY_ACCESS_TOKEN: z.ZodString;
348
348
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
349
349
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -355,7 +355,7 @@ declare const sentryScimOperations: {
355
355
  readonly deleteTeamFromOrgScimV2: _keystrokehq_core0.Operation<z.ZodObject<{
356
356
  organization_slug: z.ZodOptional<z.ZodString>;
357
357
  group_id: z.ZodString;
358
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
358
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
359
359
  SENTRY_ACCESS_TOKEN: z.ZodString;
360
360
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
361
361
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -371,7 +371,7 @@ declare const sentryScimOperations: {
371
371
  provider: z.ZodString;
372
372
  externalId: z.ZodOptional<z.ZodString>;
373
373
  integrationId: z.ZodOptional<z.ZodString>;
374
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
374
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
375
375
  SENTRY_ACCESS_TOKEN: z.ZodString;
376
376
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
377
377
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -387,7 +387,7 @@ declare const sentryScimOperations: {
387
387
  provider: z.ZodOptional<z.ZodString>;
388
388
  externalId: z.ZodOptional<z.ZodString>;
389
389
  integrationId: z.ZodOptional<z.ZodString>;
390
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
390
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
391
391
  SENTRY_ACCESS_TOKEN: z.ZodString;
392
392
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
393
393
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -399,7 +399,7 @@ declare const sentryScimOperations: {
399
399
  readonly deleteExternalUserFromOrganization: _keystrokehq_core0.Operation<z.ZodObject<{
400
400
  organization_slug: z.ZodOptional<z.ZodString>;
401
401
  external_user_id: z.ZodString;
402
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
402
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
403
403
  SENTRY_ACCESS_TOKEN: z.ZodString;
404
404
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
405
405
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
package/dist/scim.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { orgScopeInputSchema, sentryIdSchema, sentryJsonObjectSchema, sentryListInputSchema, sentryScimGroupSchema, sentryScimUserSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-Cizk4imV.mjs";
2
+ import { t as defineSentryEndpoint } from "./endpoint-factory-C0WIFmtK.mjs";
3
3
  import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
4
4
  import { z } from "zod";
5
5
 
package/dist/teams.d.mts CHANGED
@@ -15,7 +15,7 @@ declare const listTeamsInOrganization: _keystrokehq_core0.Operation<z.ZodObject<
15
15
  name: z.ZodString;
16
16
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
17
17
  isMember: z.ZodOptional<z.ZodBoolean>;
18
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
18
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
19
19
  SENTRY_ACCESS_TOKEN: z.ZodString;
20
20
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
21
21
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -32,7 +32,7 @@ declare const listOrganizationUserTeams: _keystrokehq_core0.Operation<z.ZodObjec
32
32
  name: z.ZodString;
33
33
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
34
34
  isMember: z.ZodOptional<z.ZodBoolean>;
35
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
35
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
36
36
  SENTRY_ACCESS_TOKEN: z.ZodString;
37
37
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
38
38
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -52,7 +52,7 @@ declare const createOrganizationTeam: _keystrokehq_core0.Operation<z.ZodObject<{
52
52
  name: z.ZodString;
53
53
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
54
54
  isMember: z.ZodOptional<z.ZodBoolean>;
55
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
55
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
56
56
  SENTRY_ACCESS_TOKEN: z.ZodString;
57
57
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
58
58
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -70,7 +70,7 @@ declare const retrieveTeamInfoViaOrganizationIdOrSlug: _keystrokehq_core0.Operat
70
70
  name: z.ZodString;
71
71
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
72
72
  isMember: z.ZodOptional<z.ZodBoolean>;
73
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
73
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
74
74
  SENTRY_ACCESS_TOKEN: z.ZodString;
75
75
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
76
76
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -90,7 +90,7 @@ declare const updateTeamInformationByOrganizationId: _keystrokehq_core0.Operatio
90
90
  name: z.ZodString;
91
91
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
92
92
  isMember: z.ZodOptional<z.ZodBoolean>;
93
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
93
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
94
94
  SENTRY_ACCESS_TOKEN: z.ZodString;
95
95
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
96
96
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -102,7 +102,7 @@ declare const updateTeamInformationByOrganizationId: _keystrokehq_core0.Operatio
102
102
  declare const deleteTeamByOrganizationOrTeamSlug: _keystrokehq_core0.Operation<z.ZodObject<{
103
103
  organization_slug: z.ZodOptional<z.ZodString>;
104
104
  team_slug: z.ZodString;
105
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
105
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
106
106
  SENTRY_ACCESS_TOKEN: z.ZodString;
107
107
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
108
108
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -130,7 +130,7 @@ declare const addTeamMemberInOrganization: _keystrokehq_core0.Operation<z.ZodObj
130
130
  email: z.ZodOptional<z.ZodString>;
131
131
  name: z.ZodOptional<z.ZodString>;
132
132
  }, z.core.$loose>>>;
133
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
133
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
134
134
  SENTRY_ACCESS_TOKEN: z.ZodString;
135
135
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
136
136
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -160,7 +160,7 @@ declare const getTeamMembersByIdOrSlug: _keystrokehq_core0.Operation<z.ZodObject
160
160
  email: z.ZodOptional<z.ZodString>;
161
161
  name: z.ZodOptional<z.ZodString>;
162
162
  }, z.core.$loose>>>;
163
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
163
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
164
164
  SENTRY_ACCESS_TOKEN: z.ZodString;
165
165
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
166
166
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -173,7 +173,7 @@ declare const deleteMemberFromTeam: _keystrokehq_core0.Operation<z.ZodObject<{
173
173
  organization_slug: z.ZodOptional<z.ZodString>;
174
174
  team_slug: z.ZodString;
175
175
  member_id: z.ZodString;
176
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
176
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
177
177
  SENTRY_ACCESS_TOKEN: z.ZodString;
178
178
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
179
179
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -202,7 +202,7 @@ declare const switchTeamRoleForMember: _keystrokehq_core0.Operation<z.ZodObject<
202
202
  email: z.ZodOptional<z.ZodString>;
203
203
  name: z.ZodOptional<z.ZodString>;
204
204
  }, z.core.$loose>>>;
205
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
205
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
206
206
  SENTRY_ACCESS_TOKEN: z.ZodString;
207
207
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
208
208
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -225,7 +225,7 @@ declare const retrieveTeamProjects: _keystrokehq_core0.Operation<z.ZodObject<{
225
225
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
226
226
  isMember: z.ZodOptional<z.ZodBoolean>;
227
227
  status: z.ZodOptional<z.ZodString>;
228
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
228
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
229
229
  SENTRY_ACCESS_TOKEN: z.ZodString;
230
230
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
231
231
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -241,7 +241,7 @@ declare const manageTeamExternalIntegrations: _keystrokehq_core0.Operation<z.Zod
241
241
  provider: z.ZodString;
242
242
  externalId: z.ZodOptional<z.ZodString>;
243
243
  integrationId: z.ZodOptional<z.ZodString>;
244
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
244
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
245
245
  SENTRY_ACCESS_TOKEN: z.ZodString;
246
246
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
247
247
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -257,7 +257,7 @@ declare const updateExternalTeamIntegration: _keystrokehq_core0.Operation<z.ZodO
257
257
  externalName: z.ZodOptional<z.ZodString>;
258
258
  integrationId: z.ZodOptional<z.ZodString>;
259
259
  externalId: z.ZodOptional<z.ZodString>;
260
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
260
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
261
261
  SENTRY_ACCESS_TOKEN: z.ZodString;
262
262
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
263
263
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -270,7 +270,7 @@ declare const deleteExternalTeamById: _keystrokehq_core0.Operation<z.ZodObject<{
270
270
  organization_slug: z.ZodOptional<z.ZodString>;
271
271
  team_slug: z.ZodString;
272
272
  external_team_id: z.ZodString;
273
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
273
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
274
274
  SENTRY_ACCESS_TOKEN: z.ZodString;
275
275
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
276
276
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -292,7 +292,7 @@ declare const sentryTeamOperations: {
292
292
  name: z.ZodString;
293
293
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
294
294
  isMember: z.ZodOptional<z.ZodBoolean>;
295
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
295
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
296
296
  SENTRY_ACCESS_TOKEN: z.ZodString;
297
297
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
298
298
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -309,7 +309,7 @@ declare const sentryTeamOperations: {
309
309
  name: z.ZodString;
310
310
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
311
311
  isMember: z.ZodOptional<z.ZodBoolean>;
312
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
312
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
313
313
  SENTRY_ACCESS_TOKEN: z.ZodString;
314
314
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
315
315
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -329,7 +329,7 @@ declare const sentryTeamOperations: {
329
329
  name: z.ZodString;
330
330
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
331
331
  isMember: z.ZodOptional<z.ZodBoolean>;
332
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
332
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
333
333
  SENTRY_ACCESS_TOKEN: z.ZodString;
334
334
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
335
335
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -347,7 +347,7 @@ declare const sentryTeamOperations: {
347
347
  name: z.ZodString;
348
348
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
349
349
  isMember: z.ZodOptional<z.ZodBoolean>;
350
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
350
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
351
351
  SENTRY_ACCESS_TOKEN: z.ZodString;
352
352
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
353
353
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -367,7 +367,7 @@ declare const sentryTeamOperations: {
367
367
  name: z.ZodString;
368
368
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
369
369
  isMember: z.ZodOptional<z.ZodBoolean>;
370
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
370
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
371
371
  SENTRY_ACCESS_TOKEN: z.ZodString;
372
372
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
373
373
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -379,7 +379,7 @@ declare const sentryTeamOperations: {
379
379
  readonly deleteTeamByOrganizationOrTeamSlug: _keystrokehq_core0.Operation<z.ZodObject<{
380
380
  organization_slug: z.ZodOptional<z.ZodString>;
381
381
  team_slug: z.ZodString;
382
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
382
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
383
383
  SENTRY_ACCESS_TOKEN: z.ZodString;
384
384
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
385
385
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -407,7 +407,7 @@ declare const sentryTeamOperations: {
407
407
  email: z.ZodOptional<z.ZodString>;
408
408
  name: z.ZodOptional<z.ZodString>;
409
409
  }, z.core.$loose>>>;
410
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
410
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
411
411
  SENTRY_ACCESS_TOKEN: z.ZodString;
412
412
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
413
413
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -437,7 +437,7 @@ declare const sentryTeamOperations: {
437
437
  email: z.ZodOptional<z.ZodString>;
438
438
  name: z.ZodOptional<z.ZodString>;
439
439
  }, z.core.$loose>>>;
440
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
440
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
441
441
  SENTRY_ACCESS_TOKEN: z.ZodString;
442
442
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
443
443
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -450,7 +450,7 @@ declare const sentryTeamOperations: {
450
450
  organization_slug: z.ZodOptional<z.ZodString>;
451
451
  team_slug: z.ZodString;
452
452
  member_id: z.ZodString;
453
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
453
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
454
454
  SENTRY_ACCESS_TOKEN: z.ZodString;
455
455
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
456
456
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -479,7 +479,7 @@ declare const sentryTeamOperations: {
479
479
  email: z.ZodOptional<z.ZodString>;
480
480
  name: z.ZodOptional<z.ZodString>;
481
481
  }, z.core.$loose>>>;
482
- }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
482
+ }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
483
483
  SENTRY_ACCESS_TOKEN: z.ZodString;
484
484
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
485
485
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -502,7 +502,7 @@ declare const sentryTeamOperations: {
502
502
  dateCreated: z.ZodOptional<z.ZodISODateTime>;
503
503
  isMember: z.ZodOptional<z.ZodBoolean>;
504
504
  status: z.ZodOptional<z.ZodString>;
505
- }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
505
+ }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
506
506
  SENTRY_ACCESS_TOKEN: z.ZodString;
507
507
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
508
508
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -518,7 +518,7 @@ declare const sentryTeamOperations: {
518
518
  provider: z.ZodString;
519
519
  externalId: z.ZodOptional<z.ZodString>;
520
520
  integrationId: z.ZodOptional<z.ZodString>;
521
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
521
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
522
522
  SENTRY_ACCESS_TOKEN: z.ZodString;
523
523
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
524
524
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -534,7 +534,7 @@ declare const sentryTeamOperations: {
534
534
  externalName: z.ZodOptional<z.ZodString>;
535
535
  integrationId: z.ZodOptional<z.ZodString>;
536
536
  externalId: z.ZodOptional<z.ZodString>;
537
- }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
537
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
538
538
  SENTRY_ACCESS_TOKEN: z.ZodString;
539
539
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
540
540
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
@@ -547,7 +547,7 @@ declare const sentryTeamOperations: {
547
547
  organization_slug: z.ZodOptional<z.ZodString>;
548
548
  team_slug: z.ZodString;
549
549
  external_team_id: z.ZodString;
550
- }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:sentry", z.ZodObject<{
550
+ }, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"sentry", z.ZodObject<{
551
551
  SENTRY_ACCESS_TOKEN: z.ZodString;
552
552
  SENTRY_REGION_URL: z.ZodOptional<z.ZodString>;
553
553
  SENTRY_ORG_SLUG: z.ZodOptional<z.ZodString>;
package/dist/teams.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { orgScopeInputSchema, orgTeamScopeInputSchema, sentryIdSchema, sentryJsonObjectSchema, sentryListInputSchema, sentryMemberSchema, sentryProjectSummarySchema, sentrySlugSchema, sentryTeamSchema } from "./schemas.mjs";
2
- import { t as defineSentryEndpoint } from "./endpoint-factory-Cizk4imV.mjs";
2
+ import { t as defineSentryEndpoint } from "./endpoint-factory-C0WIFmtK.mjs";
3
3
  import { t as SENTRY_SCOPE } from "./scopes-RRU0vt-a.mjs";
4
4
  import { z } from "zod";
5
5
 
@@ -1,9 +1,65 @@
1
1
  import { createSentryClient } from "./client.mjs";
2
2
  import { SentryDiscoverEventsPollResponse } from "./events.mjs";
3
- import { BoundTrigger } from "@keystrokehq/core";
4
- import { IntegrationTriggerBindingOptions, createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
5
- import { PollingTriggerManifest } from "@keystrokehq/core/trigger";
3
+ import { BoundTrigger, Operation, TriggerBindOptions, TriggerManifest } from "@keystrokehq/core";
4
+ import { z } from "zod";
5
+ import { PollingTriggerManifest, pollingTrigger } from "@keystrokehq/core/trigger";
6
+ import { AnyCredentialSet, InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
7
 
8
+ //#region ../../packages/integration-authoring/dist/index.d.mts
9
+ //#endregion
10
+ //#region src/triggers/types.d.ts
11
+ interface IntegrationTriggerMetadata {
12
+ readonly id?: string;
13
+ readonly description?: string;
14
+ }
15
+ interface IntegrationTriggerBindingOptions<TPayload, TOutput = TPayload, TRequest = undefined> extends IntegrationTriggerMetadata {
16
+ readonly transform?: TriggerBindOptions<TPayload, TOutput, TRequest>['transform'];
17
+ }
18
+ type IntegrationTriggerBindingFactory<TAuthorPayload, TCredentialSets extends readonly AnyCredentialSet[] | undefined, TManifest extends TriggerManifest = TriggerManifest, TRuntimePayload = TAuthorPayload, TRequest = undefined> = <TOutput = TAuthorPayload>(options?: IntegrationTriggerBindingOptions<TAuthorPayload, TOutput, TRequest>) => BoundTrigger<TRuntimePayload, TCredentialSets, TManifest, TOutput, TRequest>; //#endregion
19
+ //#region src/triggers/shared.d.ts
20
+ type MappedPayloadFn<TPayload, TMappedPayload> = (payload: TPayload) => TMappedPayload | null; //#endregion
21
+ //#region src/triggers/polling.d.ts
22
+ type PollingPrimitiveConfig<TResponseSchema extends z.ZodTypeAny, TCredentialSets extends readonly AnyCredentialSet[] = readonly []> = Parameters<typeof pollingTrigger<TResponseSchema, TCredentialSets>>[0];
23
+ /**
24
+ * Authoring config for an integration polling trigger binding.
25
+ *
26
+ * Notes about the new core surface:
27
+ * - Polling no longer supports any form of `idempotencyKey` (only webhook does).
28
+ * - `filter` must be a pure Zod schema (no `.refine`, `.transform`, etc.).
29
+ * - `mapPayload` curates the validated polling response into the friendlier
30
+ * shape surfaced to authors. It is applied as a default `transform` at bind
31
+ * time; authors can still pass their own `transform` to override or compose.
32
+ */
33
+ interface IntegrationPollingTriggerBindingConfig<TResponseSchema extends z.ZodTypeAny, TEvent = z.output<TResponseSchema>, TCredentialSets extends readonly AnyCredentialSet[] = readonly []> {
34
+ readonly defaultId: string;
35
+ readonly defaultDescription: string;
36
+ readonly schedule: PollingPrimitiveConfig<TResponseSchema, TCredentialSets>['schedule'];
37
+ readonly response: TResponseSchema;
38
+ readonly poll: PollingPrimitiveConfig<TResponseSchema, TCredentialSets>['poll'];
39
+ readonly credentialSets?: TCredentialSets;
40
+ readonly filter?: z.ZodTypeAny;
41
+ readonly mapPayload?: MappedPayloadFn<z.output<TResponseSchema>, TEvent>;
42
+ }
43
+ declare function createPollingTriggerBindingFactory<TResponseSchema extends z.ZodTypeAny, TEvent = z.output<TResponseSchema>, TCredentialSets extends readonly AnyCredentialSet[] = readonly []>(config: IntegrationPollingTriggerBindingConfig<TResponseSchema, TEvent, TCredentialSets>): IntegrationTriggerBindingFactory<TEvent, TCredentialSets, PollingTriggerManifest, z.output<TResponseSchema>>; //#endregion
44
+ //#region src/triggers/webhook.d.ts
45
+ /**
46
+ * Authoring config for an integration webhook trigger binding.
47
+ *
48
+ * Notes about the new core surface:
49
+ * - The platform owns the HTTP surface for `source: { type: 'custom' }` webhooks
50
+ * and authenticates with a Keystroke-issued secret. There is no `path`,
51
+ * `method`, `verify`, or `response` here anymore.
52
+ * - `filter` must be a pure Zod schema (no `.refine`, `.transform`, etc.).
53
+ * Use it to narrow the raw payload to the events this binding is interested
54
+ * in. Filtering happens server-side before any VM hop.
55
+ * - `idempotencyKey` is declarative (`IdempotencyKeyConfig`) — point it at a
56
+ * payload path or a header. Function-style idempotency is no longer
57
+ * supported.
58
+ * - `mapPayload` curates the validated raw payload into the friendlier shape
59
+ * surfaced to authors. It is applied as a default `transform` at bind time;
60
+ * authors can still pass their own `transform` to override or compose.
61
+ */
62
+ //#endregion
7
63
  //#region src/triggers.d.ts
8
64
  type Schedule = Parameters<typeof createPollingTriggerBindingFactory>[0]['schedule'];
9
65
  interface DiscoverEventsPollParams {
package/dist/triggers.mjs CHANGED
@@ -1,7 +1,57 @@
1
1
  import { createSentryClient } from "./client.mjs";
2
2
  import { sentryDiscoverEventsPollResponseSchema } from "./events.mjs";
3
- import { createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
3
+ import { Operation } from "@keystrokehq/core";
4
+ import { z } from "zod";
5
+ import { pollingTrigger } from "@keystrokehq/core/trigger";
4
6
 
7
+ //#region ../../packages/integration-authoring/dist/index.mjs
8
+ const IntegrationConfigSchema = z.object({
9
+ id: z.string().min(1),
10
+ name: z.string().min(1),
11
+ description: z.string().optional()
12
+ });
13
+ function resolveMetadata(metadata, defaults) {
14
+ return {
15
+ id: metadata?.id ?? defaults.defaultId,
16
+ description: metadata?.description ?? defaults.defaultDescription
17
+ };
18
+ }
19
+ function resolveAuthorPayload(payload, mapPayload) {
20
+ if (!mapPayload) return payload;
21
+ return mapPayload(payload);
22
+ }
23
+ function createIntegrationTriggerBindingFactory(config) {
24
+ const bind = (options) => {
25
+ const resolvedMetadata = resolveMetadata(options, config);
26
+ const baseTrigger = config.createBaseTrigger(resolvedMetadata);
27
+ const userTransform = options?.transform;
28
+ return baseTrigger({ transform: userTransform || config.mapPayload ? (runtimePayload, request) => {
29
+ const authorPayload = resolveAuthorPayload(runtimePayload, config.mapPayload);
30
+ if (authorPayload === null) throw new Error(`Trigger "${resolvedMetadata.id}" mapPayload returned null after the trigger filter passed; tighten the trigger filter schema.`);
31
+ if (!userTransform) return authorPayload;
32
+ return userTransform(authorPayload, request);
33
+ } : void 0 });
34
+ };
35
+ return Object.freeze(bind);
36
+ }
37
+ function createPollingTriggerBindingFactory(config) {
38
+ return createIntegrationTriggerBindingFactory({
39
+ defaultId: config.defaultId,
40
+ defaultDescription: config.defaultDescription,
41
+ mapPayload: config.mapPayload,
42
+ createBaseTrigger: (metadata) => pollingTrigger({
43
+ id: metadata.id,
44
+ description: metadata.description,
45
+ schedule: config.schedule,
46
+ response: config.response,
47
+ poll: config.poll,
48
+ ...config.credentialSets ? { credentialSets: config.credentialSets } : {},
49
+ ...config.filter ? { filter: config.filter } : {}
50
+ })
51
+ });
52
+ }
53
+
54
+ //#endregion
5
55
  //#region src/triggers.ts
6
56
  function withDefaultSchedule(schedule) {
7
57
  if (schedule === void 0) return "5m";