@sentry/junior-plugin-api 0.270.0 → 0.272.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9,7 +9,8 @@ import { Command } from "commander";
9
9
  * selects the fields it needs; preview rules must not remove saved facts.
10
10
  *
11
11
  * Keep raw responses, diffs, logs, credentials, and comments out of this schema.
12
- * See "Object annotations and Message cards" in packages/junior/src/chat/conversations/AGENTS.md.
12
+ * Return only facts that the Conversation audience may see. An annotation
13
+ * never grants provider access.
13
14
  */
14
15
  export declare const objectAnnotationSchema: z.ZodObject<{
15
16
  kind: z.ZodLiteral<"object">;
@@ -1232,6 +1233,7 @@ export declare function normalizeEventIdentifier(registration: Pick<PluginEvents
1232
1233
  export declare const subscribableResourceSchema: z.ZodObject<{
1233
1234
  identifier: z.ZodString;
1234
1235
  label: z.ZodString;
1236
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
1235
1237
  namespace: z.ZodString;
1236
1238
  suggestedEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1237
1239
  supportedEvents: z.ZodArray<z.ZodString>;
@@ -1878,7 +1880,10 @@ export interface IssueCredentialHookContext extends PluginContext {
1878
1880
  }
1879
1881
  /** A notice that a plugin puts on the review desk. */
1880
1882
  export interface PluginReviewNotice {
1881
- /** Junior assigns the User linked to each Identity. */
1883
+ /**
1884
+ * Junior assigns the User linked to each Identity, but only when that User
1885
+ * is in the notice's Conversation. It leaves out the others.
1886
+ */
1882
1887
  assigneeIdentityIds: string[];
1883
1888
  /** Markdown details for the person. */
1884
1889
  body: string;
package/dist/index.js CHANGED
@@ -157,7 +157,8 @@ function objectIconPath(icon) {
157
157
  * selects the fields it needs; preview rules must not remove saved facts.
158
158
  *
159
159
  * Keep raw responses, diffs, logs, credentials, and comments out of this schema.
160
- * See "Object annotations and Message cards" in packages/junior/src/chat/conversations/AGENTS.md.
160
+ * Return only facts that the Conversation audience may see. An annotation
161
+ * never grants provider access.
161
162
  */
162
163
  const objectAnnotationSchema = z.object({
163
164
  kind: z.literal("object"),
@@ -983,6 +984,12 @@ function normalizeEventIdentifier(registration, identifier) {
983
984
  const subscribableResourceSchema = z.object({
984
985
  identifier: z.string().min(1),
985
986
  label: z.string().min(1),
987
+ /**
988
+ * Filters that select the events of this resource in an event automation
989
+ * trigger, such as `{ repo, pullRequest }`. A Watch uses `identifier`.
990
+ * Missing when event automations cannot use this resource.
991
+ */
992
+ match: eventMatchSchema.optional(),
986
993
  namespace: z.string().min(1),
987
994
  suggestedEvents: z.array(eventTypeSchema).optional(),
988
995
  supportedEvents: z.array(eventTypeSchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.270.0",
3
+ "version": "0.272.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"