@sentry/junior-plugin-api 0.225.0 → 0.226.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 (3) hide show
  1. package/dist/index.d.ts +219 -8
  2. package/dist/index.js +375 -266
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,14 +1,26 @@
1
1
  import { z, ZodTypeAny } from 'zod';
2
2
  import { Command } from 'commander';
3
3
 
4
- /** Verified object facts shared by Conversation annotations and Message cards. */
4
+ /**
5
+ * Verified facts shared by Conversation annotations and Message cards.
6
+ * Plugins select small facts from responses they already have. Each surface owns
7
+ * its layout. Omit unknown facts; do not infer approval or passing checks.
8
+ *
9
+ * Code changes show merge blockers. Tasks show ownership and planning context.
10
+ * Deployments show the target and revision. Automations show the trigger, state,
11
+ * and warning; their existing detail view owns instructions and run history.
12
+ * Other Items keep a title, source link, and optional status.
13
+ *
14
+ * Keep raw responses, diffs, logs, credentials, and comments out of this schema.
15
+ * See "Object facts" in packages/junior/src/chat/conversations/README.md.
16
+ */
5
17
  declare const objectAnnotationSchema: z.ZodObject<{
6
18
  kind: z.ZodLiteral<"object">;
7
19
  key: z.ZodString;
8
20
  label: z.ZodString;
9
21
  objectType: z.ZodEnum<{
10
- task: "task";
11
22
  code_change: "code_change";
23
+ task: "task";
12
24
  automation: "automation";
13
25
  item: "item";
14
26
  }>;
@@ -18,6 +30,43 @@ declare const objectAnnotationSchema: z.ZodObject<{
18
30
  status: z.ZodOptional<z.ZodString>;
19
31
  trigger: z.ZodOptional<z.ZodString>;
20
32
  warning: z.ZodOptional<z.ZodString>;
33
+ displayType: z.ZodOptional<z.ZodString>;
34
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
35
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36
+ type: z.ZodLiteral<"code_change">;
37
+ author: z.ZodOptional<z.ZodString>;
38
+ sourceBranch: z.ZodOptional<z.ZodString>;
39
+ targetBranch: z.ZodOptional<z.ZodString>;
40
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ review: z.ZodOptional<z.ZodEnum<{
42
+ required: "required";
43
+ approved: "approved";
44
+ changes_requested: "changes_requested";
45
+ }>>;
46
+ checks: z.ZodOptional<z.ZodObject<{
47
+ passed: z.ZodNumber;
48
+ failed: z.ZodNumber;
49
+ pending: z.ZodNumber;
50
+ }, z.core.$strict>>;
51
+ mergeable: z.ZodOptional<z.ZodBoolean>;
52
+ changedFiles: z.ZodOptional<z.ZodNumber>;
53
+ additions: z.ZodOptional<z.ZodNumber>;
54
+ deletions: z.ZodOptional<z.ZodNumber>;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ type: z.ZodLiteral<"task">;
57
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ priority: z.ZodOptional<z.ZodString>;
59
+ project: z.ZodOptional<z.ZodString>;
60
+ cycle: z.ZodOptional<z.ZodString>;
61
+ dueDate: z.ZodOptional<z.ZodISODate>;
62
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ type: z.ZodLiteral<"deployment">;
65
+ project: z.ZodOptional<z.ZodString>;
66
+ environment: z.ZodOptional<z.ZodString>;
67
+ revision: z.ZodOptional<z.ZodString>;
68
+ branch: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strict>], "type">>;
21
70
  }, z.core.$strict>;
22
71
  type ObjectAnnotation = z.output<typeof objectAnnotationSchema>;
23
72
  /** A saved object snapshot with its trusted owner. */
@@ -26,8 +75,8 @@ declare const ownedObjectAnnotationSchema: z.ZodObject<{
26
75
  key: z.ZodString;
27
76
  label: z.ZodString;
28
77
  objectType: z.ZodEnum<{
29
- task: "task";
30
78
  code_change: "code_change";
79
+ task: "task";
31
80
  automation: "automation";
32
81
  item: "item";
33
82
  }>;
@@ -37,10 +86,92 @@ declare const ownedObjectAnnotationSchema: z.ZodObject<{
37
86
  status: z.ZodOptional<z.ZodString>;
38
87
  trigger: z.ZodOptional<z.ZodString>;
39
88
  warning: z.ZodOptional<z.ZodString>;
89
+ displayType: z.ZodOptional<z.ZodString>;
90
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
91
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
92
+ type: z.ZodLiteral<"code_change">;
93
+ author: z.ZodOptional<z.ZodString>;
94
+ sourceBranch: z.ZodOptional<z.ZodString>;
95
+ targetBranch: z.ZodOptional<z.ZodString>;
96
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
97
+ review: z.ZodOptional<z.ZodEnum<{
98
+ required: "required";
99
+ approved: "approved";
100
+ changes_requested: "changes_requested";
101
+ }>>;
102
+ checks: z.ZodOptional<z.ZodObject<{
103
+ passed: z.ZodNumber;
104
+ failed: z.ZodNumber;
105
+ pending: z.ZodNumber;
106
+ }, z.core.$strict>>;
107
+ mergeable: z.ZodOptional<z.ZodBoolean>;
108
+ changedFiles: z.ZodOptional<z.ZodNumber>;
109
+ additions: z.ZodOptional<z.ZodNumber>;
110
+ deletions: z.ZodOptional<z.ZodNumber>;
111
+ }, z.core.$strict>, z.ZodObject<{
112
+ type: z.ZodLiteral<"task">;
113
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ priority: z.ZodOptional<z.ZodString>;
115
+ project: z.ZodOptional<z.ZodString>;
116
+ cycle: z.ZodOptional<z.ZodString>;
117
+ dueDate: z.ZodOptional<z.ZodISODate>;
118
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ type: z.ZodLiteral<"deployment">;
121
+ project: z.ZodOptional<z.ZodString>;
122
+ environment: z.ZodOptional<z.ZodString>;
123
+ revision: z.ZodOptional<z.ZodString>;
124
+ branch: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strict>], "type">>;
40
126
  plugin: z.ZodString;
41
127
  }, z.core.$strict>;
42
128
  type OwnedObjectAnnotation = z.output<typeof ownedObjectAnnotationSchema>;
43
129
 
130
+ /** Small, provider-neutral facts. Missing values mean unknown, not success. */
131
+ declare const objectFactsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
132
+ type: z.ZodLiteral<"code_change">;
133
+ author: z.ZodOptional<z.ZodString>;
134
+ sourceBranch: z.ZodOptional<z.ZodString>;
135
+ targetBranch: z.ZodOptional<z.ZodString>;
136
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
+ review: z.ZodOptional<z.ZodEnum<{
138
+ required: "required";
139
+ approved: "approved";
140
+ changes_requested: "changes_requested";
141
+ }>>;
142
+ checks: z.ZodOptional<z.ZodObject<{
143
+ passed: z.ZodNumber;
144
+ failed: z.ZodNumber;
145
+ pending: z.ZodNumber;
146
+ }, z.core.$strict>>;
147
+ mergeable: z.ZodOptional<z.ZodBoolean>;
148
+ changedFiles: z.ZodOptional<z.ZodNumber>;
149
+ additions: z.ZodOptional<z.ZodNumber>;
150
+ deletions: z.ZodOptional<z.ZodNumber>;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ type: z.ZodLiteral<"task">;
153
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
+ priority: z.ZodOptional<z.ZodString>;
155
+ project: z.ZodOptional<z.ZodString>;
156
+ cycle: z.ZodOptional<z.ZodString>;
157
+ dueDate: z.ZodOptional<z.ZodISODate>;
158
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ type: z.ZodLiteral<"deployment">;
161
+ project: z.ZodOptional<z.ZodString>;
162
+ environment: z.ZodOptional<z.ZodString>;
163
+ revision: z.ZodOptional<z.ZodString>;
164
+ branch: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strict>], "type">;
166
+ type ObjectFacts = z.output<typeof objectFactsSchema>;
167
+ type ObjectField = {
168
+ key: string;
169
+ label: string;
170
+ value: string;
171
+ };
172
+ /** Give Slack, web, and text the same field meaning and reading order. */
173
+ declare function objectFactFields(facts: ObjectFacts | undefined): ObjectField[];
174
+
44
175
  /** Exact non-blank actor user id that rejects the sentinel "unknown". */
45
176
  declare const actorUserIdSchema: z.ZodString;
46
177
  declare const nonBlankStringSchema: z.ZodString;
@@ -62,8 +193,8 @@ declare const locationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
193
  }, z.core.$strict>], "provider">;
63
194
  /** Runtime platform names supported by plugin public contracts. */
64
195
  declare const platformSchema: z.ZodEnum<{
65
- slack: "slack";
66
196
  local: "local";
197
+ slack: "slack";
67
198
  }>;
68
199
  /** Runtime source visibility visible to plugins. */
69
200
  declare const sourceVisibilitySchema: z.ZodEnum<{
@@ -470,6 +601,12 @@ declare function getSourceKey(source: Source): string | undefined;
470
601
  /** Narrow a runtime destination to the Slack-specific address shape. */
471
602
  declare function isSlackDestination(destination: Destination | undefined): destination is SlackDestination;
472
603
 
604
+ /**
605
+ * Link an object to a Conversation when the owner has no typed object preview.
606
+ * Keep a stable key, compact label, source URL, and optional short context or
607
+ * status. Do not fetch a full object merely to save a link. Rich preview intent
608
+ * belongs to objectAnnotationSchema, not a second set of resource-link fields.
609
+ */
473
610
  declare const resourceLinkAnnotationSchema: z.ZodObject<{
474
611
  kind: z.ZodLiteral<"resource_link">;
475
612
  key: z.ZodString;
@@ -503,8 +640,8 @@ declare const conversationAnnotationInputSchema: z.ZodDiscriminatedUnion<[z.ZodO
503
640
  key: z.ZodString;
504
641
  label: z.ZodString;
505
642
  objectType: z.ZodEnum<{
506
- task: "task";
507
643
  code_change: "code_change";
644
+ task: "task";
508
645
  automation: "automation";
509
646
  item: "item";
510
647
  }>;
@@ -514,6 +651,43 @@ declare const conversationAnnotationInputSchema: z.ZodDiscriminatedUnion<[z.ZodO
514
651
  status: z.ZodOptional<z.ZodString>;
515
652
  trigger: z.ZodOptional<z.ZodString>;
516
653
  warning: z.ZodOptional<z.ZodString>;
654
+ displayType: z.ZodOptional<z.ZodString>;
655
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
656
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
657
+ type: z.ZodLiteral<"code_change">;
658
+ author: z.ZodOptional<z.ZodString>;
659
+ sourceBranch: z.ZodOptional<z.ZodString>;
660
+ targetBranch: z.ZodOptional<z.ZodString>;
661
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
662
+ review: z.ZodOptional<z.ZodEnum<{
663
+ required: "required";
664
+ approved: "approved";
665
+ changes_requested: "changes_requested";
666
+ }>>;
667
+ checks: z.ZodOptional<z.ZodObject<{
668
+ passed: z.ZodNumber;
669
+ failed: z.ZodNumber;
670
+ pending: z.ZodNumber;
671
+ }, z.core.$strict>>;
672
+ mergeable: z.ZodOptional<z.ZodBoolean>;
673
+ changedFiles: z.ZodOptional<z.ZodNumber>;
674
+ additions: z.ZodOptional<z.ZodNumber>;
675
+ deletions: z.ZodOptional<z.ZodNumber>;
676
+ }, z.core.$strict>, z.ZodObject<{
677
+ type: z.ZodLiteral<"task">;
678
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
679
+ priority: z.ZodOptional<z.ZodString>;
680
+ project: z.ZodOptional<z.ZodString>;
681
+ cycle: z.ZodOptional<z.ZodString>;
682
+ dueDate: z.ZodOptional<z.ZodISODate>;
683
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
684
+ }, z.core.$strict>, z.ZodObject<{
685
+ type: z.ZodLiteral<"deployment">;
686
+ project: z.ZodOptional<z.ZodString>;
687
+ environment: z.ZodOptional<z.ZodString>;
688
+ revision: z.ZodOptional<z.ZodString>;
689
+ branch: z.ZodOptional<z.ZodString>;
690
+ }, z.core.$strict>], "type">>;
517
691
  }, z.core.$strict>], "kind">;
518
692
  type ConversationAnnotationInput = z.output<typeof conversationAnnotationInputSchema>;
519
693
  type ConversationAnnotation = ConversationAnnotationInput & {
@@ -1666,8 +1840,8 @@ declare const pluginToolOutputSchema: z.ZodObject<{
1666
1840
  key: z.ZodString;
1667
1841
  label: z.ZodString;
1668
1842
  objectType: z.ZodEnum<{
1669
- task: "task";
1670
1843
  code_change: "code_change";
1844
+ task: "task";
1671
1845
  automation: "automation";
1672
1846
  item: "item";
1673
1847
  }>;
@@ -1677,6 +1851,43 @@ declare const pluginToolOutputSchema: z.ZodObject<{
1677
1851
  status: z.ZodOptional<z.ZodString>;
1678
1852
  trigger: z.ZodOptional<z.ZodString>;
1679
1853
  warning: z.ZodOptional<z.ZodString>;
1854
+ displayType: z.ZodOptional<z.ZodString>;
1855
+ sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
1856
+ facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1857
+ type: z.ZodLiteral<"code_change">;
1858
+ author: z.ZodOptional<z.ZodString>;
1859
+ sourceBranch: z.ZodOptional<z.ZodString>;
1860
+ targetBranch: z.ZodOptional<z.ZodString>;
1861
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1862
+ review: z.ZodOptional<z.ZodEnum<{
1863
+ required: "required";
1864
+ approved: "approved";
1865
+ changes_requested: "changes_requested";
1866
+ }>>;
1867
+ checks: z.ZodOptional<z.ZodObject<{
1868
+ passed: z.ZodNumber;
1869
+ failed: z.ZodNumber;
1870
+ pending: z.ZodNumber;
1871
+ }, z.core.$strict>>;
1872
+ mergeable: z.ZodOptional<z.ZodBoolean>;
1873
+ changedFiles: z.ZodOptional<z.ZodNumber>;
1874
+ additions: z.ZodOptional<z.ZodNumber>;
1875
+ deletions: z.ZodOptional<z.ZodNumber>;
1876
+ }, z.core.$strict>, z.ZodObject<{
1877
+ type: z.ZodLiteral<"task">;
1878
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
1879
+ priority: z.ZodOptional<z.ZodString>;
1880
+ project: z.ZodOptional<z.ZodString>;
1881
+ cycle: z.ZodOptional<z.ZodString>;
1882
+ dueDate: z.ZodOptional<z.ZodISODate>;
1883
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1884
+ }, z.core.$strict>, z.ZodObject<{
1885
+ type: z.ZodLiteral<"deployment">;
1886
+ project: z.ZodOptional<z.ZodString>;
1887
+ environment: z.ZodOptional<z.ZodString>;
1888
+ revision: z.ZodOptional<z.ZodString>;
1889
+ branch: z.ZodOptional<z.ZodString>;
1890
+ }, z.core.$strict>], "type">>;
1680
1891
  }, z.core.$strict>>>;
1681
1892
  target: z.ZodOptional<z.ZodString>;
1682
1893
  truncated: z.ZodOptional<z.ZodBoolean>;
@@ -1699,8 +1910,8 @@ type PluginToolExecute<TInput = unknown, TOutput = unknown> = {
1699
1910
  * Core resolves the effective mode immediately before execution.
1700
1911
  */
1701
1912
  declare const toolApprovalModeSchema: z.ZodEnum<{
1702
- auto: "auto";
1703
1913
  review: "review";
1914
+ auto: "auto";
1704
1915
  approve: "approve";
1705
1916
  }>;
1706
1917
  type ToolApprovalMode = z.output<typeof toolApprovalModeSchema>;
@@ -2144,4 +2355,4 @@ interface PluginRegistration extends PluginRegistrationInput {
2144
2355
  /** Define one Junior plugin registration for app and build-time wiring. */
2145
2356
  declare function defineJuniorPlugin(plugin: PluginRegistrationInput): PluginRegistration;
2146
2357
 
2147
- export { type Actor, type AfterMcpToolHookContext, type AgentInvocationSource, type ApiRouteRegistrationHookContext, type BeforeToolExecuteHookContext, type CodeChangeInput, type CodeChangePublisher, type CodeChangeState, type ConversationAnnotation, type ConversationAnnotationInput, type ConversationEventPresentation, type ConversationSidebarAnnotation, type ConversationSidebarHookContext, type ConversationSidebarResult, type DefinedConversationEvent, type Destination, type DestinationVisibility, type Dispatch, type DispatchOptions, type DispatchResult, EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, type EgressHookContext, EgressPolicyDenied, type EgressResponseHookContext, type Event, type EventAutomationSource, type EventData, type EventInput, type EventInvocationContext, type EventMatch, type EventMatchFields, type EventPublisher, type EventSource, type FormatMarkdownHookContext, type HeartbeatHookContext, type HeartbeatResult, type Identity, type InvocationContext, type IssueCredentialHookContext, type LocalActor, type LocalDestination, type LocalInvocationContext, type LocalSource, type Location, type ObjectAnnotation, type OperationalReportHookContext, type OwnedObjectAnnotation, type Platform, type PluginAnnotations, type PluginApiRouteRequestContext, type PluginAuthorization, type PluginCliActionCommand, type PluginCliActionContext, type PluginCliActionHandler, type PluginCliCommandDefinition, type PluginCliDefinition, type PluginCliHost, type PluginCliIo, type PluginContext, type PluginConversationAnnotations, type PluginConversationEventCostDay, type PluginConversationEventDefinition, type PluginConversationEventReader, type PluginConversationEventRecord, type PluginConversationEventStats, type PluginConversationEventValue, type PluginConversationEvents, type PluginCredentialActor, type PluginCredentialHeaderTransform, type PluginCredentialLease, type PluginCredentialResult, type PluginCredentialSubject, type PluginCredentials, type PluginDecision, type PluginDispatchSource, type PluginEgress, type PluginEgressRequest, type PluginEgressResponse, type PluginEmbedder, type PluginEnv, type PluginEnvVarDeclaration, type PluginEventToolContext, type PluginEventType, type PluginEvents, type PluginGrant, type PluginGrantAccess, type PluginHooks, type PluginLogger, type PluginManifest, type PluginMcp, type PluginMcpAuthConfig, type PluginMcpAuthorizationPending, type PluginMcpConfig, type PluginMcpContent, type PluginMcpToolError, type PluginMcpToolResult, type PluginMcpToolSuccess, type PluginMetadata, type PluginModel, type PluginModelConfig, type PluginNpmRuntimeDependency, type PluginOAuthBearerCredentials, type PluginOAuthConfig, type PluginOperationalBarChartWidget, type PluginOperationalChartCategory, type PluginOperationalChartSeries, type PluginOperationalField, type PluginOperationalMetric, type PluginOperationalRecord, type PluginOperationalRecordSet, type PluginOperationalReport, type PluginOperationalReportContent, type PluginOperationalTone, type PluginProviderAccount, type PluginReadState, type PluginRegistration, type PluginRegistrationInput, type PluginResolvedCredentialUser, type PluginRoute, type PluginRouteApp, type PluginRouteHandler, type PluginRouteMethod, type PluginRunContext, type PluginRunTranscriptEntry, type PluginRunTranscriptProvenance, type PluginRuntimeDependency, type PluginRuntimePostinstallCommand, type PluginSandbox, type PluginState, type PluginStoredTokens, type PluginSystemRuntimeDependency, type PluginSystemRuntimeDependencyFromUrl, type PluginTaskContext, type PluginTaskDefinition, type PluginTasks, type PluginTokenStore, type PluginToolContent, type PluginToolDefinition, type PluginToolExecute, type PluginToolExecuteOptions, PluginToolInputError, type PluginToolOutput, type PluginToolOutputEnvelope, type PluginUserPageContent, type PluginUserPageContext, type PluginUserPageDefinition, type PluginUserPageInput, type PluginUserPageLink, type PluginUserTokenSlot, type PluginWorkspaceToolContext, type ProfileReportHookContext, type PromptContext, type PromptContextContribution, type PromptMessage, REQUIRED_TOOL_ANNOTATION_KEYS, type ReplyAttribution, type RequiredToolAnnotationKey, type ResolveOAuthAccountHookContext, type RouteRegistrationHookContext, type SandboxPrepareHookContext, type ScheduledAutomationSource, type SlackActor, type SlackConversationLink, type SlackConversationLinkHookContext, type SlackDestination, type SlackInvocationContext, type SlackLocation, type SlackSource, type SlackToolRegistrationHookContext, type Source, type SourceVisibility, type SubscribableResource, type SystemActor, type SystemPromptContext, type TaskOutcome, type ToolAnnotations, type ToolApprovalMetadata, type ToolApprovalMode, type ToolExposure, type ToolRegistrationHookContext, type UnfinishedWorkHookContext, type UnfinishedWorkResult, type User, type UserPromptContext, type UserPromptContribution, type WatchResult, type WebActor, type WebInvocationContext, type WebSource, type WorkspaceFinalize, type WorkspacePrepareHookContext, actorSchema, actorUserIdSchema, agentInvocationSourceSchema, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, enforceEgressPolicy, eventAutomationSourceSchema, eventDataSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchSchema, eventMatches, eventSchema, eventSourceSchema, eventTypeSchema, getSourceKey, identitySchema, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, objectAnnotationSchema, ownedObjectAnnotationSchema, platformSchema, pluginApiRouteRequestContextSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, subscribableResourceSchema, systemActorSchema, taskOutcomeSchema, toolApprovalModeSchema, userSchema, watchResultSchema, webActorSchema, webSourceSchema, zodTool };
2358
+ export { type Actor, type AfterMcpToolHookContext, type AgentInvocationSource, type ApiRouteRegistrationHookContext, type BeforeToolExecuteHookContext, type CodeChangeInput, type CodeChangePublisher, type CodeChangeState, type ConversationAnnotation, type ConversationAnnotationInput, type ConversationEventPresentation, type ConversationSidebarAnnotation, type ConversationSidebarHookContext, type ConversationSidebarResult, type DefinedConversationEvent, type Destination, type DestinationVisibility, type Dispatch, type DispatchOptions, type DispatchResult, EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, type EgressHookContext, EgressPolicyDenied, type EgressResponseHookContext, type Event, type EventAutomationSource, type EventData, type EventInput, type EventInvocationContext, type EventMatch, type EventMatchFields, type EventPublisher, type EventSource, type FormatMarkdownHookContext, type HeartbeatHookContext, type HeartbeatResult, type Identity, type InvocationContext, type IssueCredentialHookContext, type LocalActor, type LocalDestination, type LocalInvocationContext, type LocalSource, type Location, type ObjectAnnotation, type ObjectFacts, type OperationalReportHookContext, type OwnedObjectAnnotation, type Platform, type PluginAnnotations, type PluginApiRouteRequestContext, type PluginAuthorization, type PluginCliActionCommand, type PluginCliActionContext, type PluginCliActionHandler, type PluginCliCommandDefinition, type PluginCliDefinition, type PluginCliHost, type PluginCliIo, type PluginContext, type PluginConversationAnnotations, type PluginConversationEventCostDay, type PluginConversationEventDefinition, type PluginConversationEventReader, type PluginConversationEventRecord, type PluginConversationEventStats, type PluginConversationEventValue, type PluginConversationEvents, type PluginCredentialActor, type PluginCredentialHeaderTransform, type PluginCredentialLease, type PluginCredentialResult, type PluginCredentialSubject, type PluginCredentials, type PluginDecision, type PluginDispatchSource, type PluginEgress, type PluginEgressRequest, type PluginEgressResponse, type PluginEmbedder, type PluginEnv, type PluginEnvVarDeclaration, type PluginEventToolContext, type PluginEventType, type PluginEvents, type PluginGrant, type PluginGrantAccess, type PluginHooks, type PluginLogger, type PluginManifest, type PluginMcp, type PluginMcpAuthConfig, type PluginMcpAuthorizationPending, type PluginMcpConfig, type PluginMcpContent, type PluginMcpToolError, type PluginMcpToolResult, type PluginMcpToolSuccess, type PluginMetadata, type PluginModel, type PluginModelConfig, type PluginNpmRuntimeDependency, type PluginOAuthBearerCredentials, type PluginOAuthConfig, type PluginOperationalBarChartWidget, type PluginOperationalChartCategory, type PluginOperationalChartSeries, type PluginOperationalField, type PluginOperationalMetric, type PluginOperationalRecord, type PluginOperationalRecordSet, type PluginOperationalReport, type PluginOperationalReportContent, type PluginOperationalTone, type PluginProviderAccount, type PluginReadState, type PluginRegistration, type PluginRegistrationInput, type PluginResolvedCredentialUser, type PluginRoute, type PluginRouteApp, type PluginRouteHandler, type PluginRouteMethod, type PluginRunContext, type PluginRunTranscriptEntry, type PluginRunTranscriptProvenance, type PluginRuntimeDependency, type PluginRuntimePostinstallCommand, type PluginSandbox, type PluginState, type PluginStoredTokens, type PluginSystemRuntimeDependency, type PluginSystemRuntimeDependencyFromUrl, type PluginTaskContext, type PluginTaskDefinition, type PluginTasks, type PluginTokenStore, type PluginToolContent, type PluginToolDefinition, type PluginToolExecute, type PluginToolExecuteOptions, PluginToolInputError, type PluginToolOutput, type PluginToolOutputEnvelope, type PluginUserPageContent, type PluginUserPageContext, type PluginUserPageDefinition, type PluginUserPageInput, type PluginUserPageLink, type PluginUserTokenSlot, type PluginWorkspaceToolContext, type ProfileReportHookContext, type PromptContext, type PromptContextContribution, type PromptMessage, REQUIRED_TOOL_ANNOTATION_KEYS, type ReplyAttribution, type RequiredToolAnnotationKey, type ResolveOAuthAccountHookContext, type RouteRegistrationHookContext, type SandboxPrepareHookContext, type ScheduledAutomationSource, type SlackActor, type SlackConversationLink, type SlackConversationLinkHookContext, type SlackDestination, type SlackInvocationContext, type SlackLocation, type SlackSource, type SlackToolRegistrationHookContext, type Source, type SourceVisibility, type SubscribableResource, type SystemActor, type SystemPromptContext, type TaskOutcome, type ToolAnnotations, type ToolApprovalMetadata, type ToolApprovalMode, type ToolExposure, type ToolRegistrationHookContext, type UnfinishedWorkHookContext, type UnfinishedWorkResult, type User, type UserPromptContext, type UserPromptContribution, type WatchResult, type WebActor, type WebInvocationContext, type WebSource, type WorkspaceFinalize, type WorkspacePrepareHookContext, actorSchema, actorUserIdSchema, agentInvocationSourceSchema, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, enforceEgressPolicy, eventAutomationSourceSchema, eventDataSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchSchema, eventMatches, eventSchema, eventSourceSchema, eventTypeSchema, getSourceKey, identitySchema, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, objectAnnotationSchema, objectFactFields, objectFactsSchema, ownedObjectAnnotationSchema, platformSchema, pluginApiRouteRequestContextSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, subscribableResourceSchema, systemActorSchema, taskOutcomeSchema, toolApprovalModeSchema, userSchema, watchResultSchema, webActorSchema, webSourceSchema, zodTool };