@sentry/junior-plugin-api 0.271.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 +3 -1
- package/dist/index.js +8 -1
- package/package.json +1 -1
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
|
-
*
|
|
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>;
|
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
|
-
*
|
|
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),
|