@sentry/junior-plugin-api 0.310.0 → 0.311.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 +631 -5
- package/dist/index.js +36 -4
- package/package.json +1 -6
- package/dist/context-Buwf8ZyW.d.ts +0 -523
- package/dist/embeddings.d.ts +0 -171
- package/dist/embeddings.js +0 -147
package/dist/index.js
CHANGED
|
@@ -2,6 +2,12 @@ import * as z from "zod";
|
|
|
2
2
|
// src/object-facts.ts
|
|
3
3
|
const text = z.string().trim().min(1).max(160);
|
|
4
4
|
const count = z.number().int().nonnegative();
|
|
5
|
+
/** A code change's size as its provider counts it. Unknown parts stay unset. */
|
|
6
|
+
const codeChangeSizeSchema = z.strictObject({
|
|
7
|
+
changedFiles: count.optional(),
|
|
8
|
+
additions: count.optional(),
|
|
9
|
+
deletions: count.optional()
|
|
10
|
+
});
|
|
5
11
|
const duration = z.number().finite().nonnegative();
|
|
6
12
|
const imagePath = z.string().max(4e3).regex(/^\/api\/images\/[\w-]+\.[\w-]+\?w=\d+(&v=[\w-]+)?$/);
|
|
7
13
|
/** The longest object summary, in UTF-16 code units. */
|
|
@@ -30,6 +36,7 @@ const objectFactsSchema = z.discriminatedUnion("type", [
|
|
|
30
36
|
failed: count,
|
|
31
37
|
pending: count
|
|
32
38
|
}).optional(),
|
|
39
|
+
/** False while an open change conflicts with its target branch. */
|
|
33
40
|
mergeable: z.boolean().optional(),
|
|
34
41
|
changedFiles: count.optional(),
|
|
35
42
|
additions: count.optional(),
|
|
@@ -900,7 +907,9 @@ const conversationSidebarAnnotationSchema = z.object({
|
|
|
900
907
|
label: z.string().trim().min(1).max(256),
|
|
901
908
|
title: z.string().trim().min(1).max(512).optional(),
|
|
902
909
|
url: httpUrlSchema.optional(),
|
|
903
|
-
imageUrl: httpUrlSchema.optional()
|
|
910
|
+
imageUrl: httpUrlSchema.optional(),
|
|
911
|
+
/** A code change's size, so a card can show it without a live read. */
|
|
912
|
+
size: codeChangeSizeSchema.optional()
|
|
904
913
|
}).strict();
|
|
905
914
|
// src/code.ts
|
|
906
915
|
const codeChangeStateSchema = z.enum([
|
|
@@ -925,6 +934,11 @@ const codeChangeInputSchema = z.object({
|
|
|
925
934
|
providerId: z.string().min(1),
|
|
926
935
|
url: z.string().url().optional()
|
|
927
936
|
}).strict(),
|
|
937
|
+
/**
|
|
938
|
+
* The size as the provider counts it now. Junior keeps the stored value
|
|
939
|
+
* of each part that is omitted.
|
|
940
|
+
*/
|
|
941
|
+
size: codeChangeSizeSchema.optional(),
|
|
928
942
|
state: codeChangeStateSchema,
|
|
929
943
|
title: z.string().min(1).optional(),
|
|
930
944
|
updatedAt: z.date(),
|
|
@@ -1832,7 +1846,13 @@ const pluginEventDeclarationSchema = z.object({
|
|
|
1832
1846
|
* App guidance that the agent gets with each Event of this type, for every
|
|
1833
1847
|
* Watch and event automation.
|
|
1834
1848
|
*/
|
|
1835
|
-
guidance: z.string().trim().min(1).max(EVENT_GUIDANCE_MAX_LENGTH).optional()
|
|
1849
|
+
guidance: z.string().trim().min(1).max(EVENT_GUIDANCE_MAX_LENGTH).optional(),
|
|
1850
|
+
/**
|
|
1851
|
+
* How an Event of this type reads after the name of its resource, such
|
|
1852
|
+
* as `is merged` or `gets a new comment`. People read it in a sentence,
|
|
1853
|
+
* such as "When getsentry/junior#12 is merged".
|
|
1854
|
+
*/
|
|
1855
|
+
phrase: z.string().trim().min(1).max(80).optional()
|
|
1836
1856
|
}).strict();
|
|
1837
1857
|
const pluginEventsSchema = z.object({
|
|
1838
1858
|
resourceTypes: z.array(pluginEventTypeSchema).min(1),
|
|
@@ -1860,6 +1880,18 @@ const pluginEventsSchema = z.object({
|
|
|
1860
1880
|
resourceType: z.string()
|
|
1861
1881
|
})],
|
|
1862
1882
|
output: z.string().optional()
|
|
1883
|
+
}).optional(),
|
|
1884
|
+
/**
|
|
1885
|
+
* The resource that one web page shows, the inverse of `resourceUrl`, so
|
|
1886
|
+
* a link such as a Review item's subject can name an Event resource.
|
|
1887
|
+
* Returns undefined when no resource type of the source has the page.
|
|
1888
|
+
*/
|
|
1889
|
+
resourceForUrl: z.function({
|
|
1890
|
+
input: [z.string()],
|
|
1891
|
+
output: z.object({
|
|
1892
|
+
identifier: z.string(),
|
|
1893
|
+
resourceType: z.string()
|
|
1894
|
+
}).optional()
|
|
1863
1895
|
}).optional()
|
|
1864
1896
|
}).strict().superRefine((registration, context) => {
|
|
1865
1897
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -2724,7 +2756,7 @@ const pluginUserPageMetadataSchema = z.object({
|
|
|
2724
2756
|
}).strict();
|
|
2725
2757
|
const pluginUserPageActionSchema = z.object({
|
|
2726
2758
|
confirmation: nonBlankStringSchema.max(500).optional(),
|
|
2727
|
-
href: nonBlankStringSchema.max(500).regex(/^\/api\/plugins\/[a-z][a-z0-9-]*(?:\/|$)/),
|
|
2759
|
+
href: nonBlankStringSchema.max(500).regex(/^\/api\/(?:plugins\/)?[a-z][a-z0-9-]*(?:\/|$)/),
|
|
2728
2760
|
label: nonBlankStringSchema.max(80),
|
|
2729
2761
|
/**
|
|
2730
2762
|
* `DELETE` sends a request and refreshes the page. `GET` opens the plugin
|
|
@@ -2776,4 +2808,4 @@ const pluginUserPageInputSchema = z.object({
|
|
|
2776
2808
|
limit: z.number().int().min(1).max(50),
|
|
2777
2809
|
query: pluginUserPageQuerySchema
|
|
2778
2810
|
}).strict();
|
|
2779
|
-
export { EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, EgressPolicyDenied, OBJECT_FACTS_MAX_BYTES, OBJECT_SUMMARY_MAX_LENGTH, PluginToolInputError, REQUIRED_TOOL_ANNOTATION_KEYS, actorSchema, actorUserIdSchema, agentEventKeys, agentEventMatchKey, agentEventMatchSchema, agentInvocationSourceSchema, anyResourceEvents, anyResourceMatchFields, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, declaredEventKeys, decodeObjectImageRef, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, describeEventTrigger, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, encodeObjectImageRef, enforceEgressPolicy, escapeClosingTag, escapeClosingTags, escapeTagText, escapeTagTextAndQuotes, eventAuthorSchema, eventAutomationSourceSchema, eventDataSchema, eventIdentifierSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchFilterText, eventMatchSchema, eventMatches, eventPersonSchema, eventReachSchema, eventSchema, eventSourceSchema, eventTriggerChoices, eventTriggerFiltersText, eventTriggerProblems, eventTriggerText, eventTypeSchema, eventTypeText, eventsWithoutMatchField, findTag, findTags, formatDuration, getSourceKey, identityDispatchOptionsSchema, identitySchema, indentTagLines, isPluginModelCostEventName, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, mentionsTag, mergeEventMatchFields, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, normalizeEventMatch, objectAnnotationSchema, objectFactFields, objectFactsBytes, objectFactsMatchType, objectFactsSchema, objectIconPath, objectIconPaths, objectLinkFilterMatches, objectLinkFilterSchema, objectLinkFilterSpecificity, objectPresentation, objectSummary, objectTypeSchema, openingTag, ownedObjectAnnotationSchema, parseShellCommands, platformSchema, pluginApiRouteRequestContextSchema, pluginAuditAttributesSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventDeclarationSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginModelCostEventNames, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginToolReplySchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, readTag, renderEmptyTag, renderInlineTag, renderTag, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, startsWithTag, stripTags, subscribableResourceSchema, systemActorSchema, tagJson, taskOutcomeSchema, toolApprovalModeSchema, unescapeClosingTag, unescapeClosingTags, unescapeTagText, userSchema, watchResultSchema, webActorSchema, webSourceSchema, withToolContext, zodTool };
|
|
2811
|
+
export { EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, EgressPolicyDenied, OBJECT_FACTS_MAX_BYTES, OBJECT_SUMMARY_MAX_LENGTH, PluginToolInputError, REQUIRED_TOOL_ANNOTATION_KEYS, actorSchema, actorUserIdSchema, agentEventKeys, agentEventMatchKey, agentEventMatchSchema, agentInvocationSourceSchema, anyResourceEvents, anyResourceMatchFields, codeChangeInputSchema, codeChangeSizeSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, declaredEventKeys, decodeObjectImageRef, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, describeEventTrigger, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, encodeObjectImageRef, enforceEgressPolicy, escapeClosingTag, escapeClosingTags, escapeTagText, escapeTagTextAndQuotes, eventAuthorSchema, eventAutomationSourceSchema, eventDataSchema, eventIdentifierSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchFilterText, eventMatchSchema, eventMatches, eventPersonSchema, eventReachSchema, eventSchema, eventSourceSchema, eventTriggerChoices, eventTriggerFiltersText, eventTriggerProblems, eventTriggerText, eventTypeSchema, eventTypeText, eventsWithoutMatchField, findTag, findTags, formatDuration, getSourceKey, identityDispatchOptionsSchema, identitySchema, indentTagLines, isPluginModelCostEventName, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, mentionsTag, mergeEventMatchFields, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, normalizeEventMatch, objectAnnotationSchema, objectFactFields, objectFactsBytes, objectFactsMatchType, objectFactsSchema, objectIconPath, objectIconPaths, objectLinkFilterMatches, objectLinkFilterSchema, objectLinkFilterSpecificity, objectPresentation, objectSummary, objectTypeSchema, openingTag, ownedObjectAnnotationSchema, parseShellCommands, platformSchema, pluginApiRouteRequestContextSchema, pluginAuditAttributesSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventDeclarationSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginModelCostEventNames, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginToolReplySchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, readTag, renderEmptyTag, renderInlineTag, renderTag, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, startsWithTag, stripTags, subscribableResourceSchema, systemActorSchema, tagJson, taskOutcomeSchema, toolApprovalModeSchema, unescapeClosingTag, unescapeClosingTags, unescapeTagText, userSchema, watchResultSchema, webActorSchema, webSourceSchema, withToolContext, zodTool };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-plugin-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.311.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"default": "./dist/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./embeddings": {
|
|
20
|
-
"types": "./dist/embeddings.d.ts",
|
|
21
|
-
"default": "./dist/embeddings.js"
|
|
22
18
|
}
|
|
23
19
|
},
|
|
24
20
|
"files": [
|
|
@@ -27,7 +23,6 @@
|
|
|
27
23
|
],
|
|
28
24
|
"dependencies": {
|
|
29
25
|
"commander": "^14.0.3",
|
|
30
|
-
"drizzle-orm": "^0.45.4",
|
|
31
26
|
"zod": "^4.6.7"
|
|
32
27
|
},
|
|
33
28
|
"devDependencies": {
|
|
@@ -1,523 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ZodTypeAny } from "zod";
|
|
3
|
-
/** Exact non-blank actor user id that rejects the sentinel "unknown". */
|
|
4
|
-
declare const actorUserIdSchema: z.ZodString;
|
|
5
|
-
declare const nonBlankStringSchema: z.ZodString;
|
|
6
|
-
/** Complete Slack Location associated with a Conversation. */
|
|
7
|
-
declare const slackLocationSchema: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
provider: z.ZodLiteral<"slack">;
|
|
10
|
-
teamId: z.ZodString;
|
|
11
|
-
channelId: z.ZodString;
|
|
12
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strict>;
|
|
14
|
-
/** Complete Location types supported by Junior. */
|
|
15
|
-
declare const locationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
provider: z.ZodLiteral<"slack">;
|
|
18
|
-
teamId: z.ZodString;
|
|
19
|
-
channelId: z.ZodString;
|
|
20
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strict>], "provider">;
|
|
22
|
-
/** Runtime platform names supported by plugin public contracts. */
|
|
23
|
-
declare const platformSchema: z.ZodEnum<{
|
|
24
|
-
local: "local";
|
|
25
|
-
slack: "slack";
|
|
26
|
-
}>;
|
|
27
|
-
/** Runtime source visibility visible to plugins. */
|
|
28
|
-
declare const sourceVisibilitySchema: z.ZodEnum<{
|
|
29
|
-
private: "private";
|
|
30
|
-
public: "public";
|
|
31
|
-
}>;
|
|
32
|
-
/** Provider-neutral visibility of a routed destination. */
|
|
33
|
-
declare const destinationVisibilitySchema: z.ZodEnum<{
|
|
34
|
-
private: "private";
|
|
35
|
-
public: "public";
|
|
36
|
-
}>;
|
|
37
|
-
/** Runtime-owned Slack address for routing future work or side effects. */
|
|
38
|
-
declare const slackDestinationSchema: z.ZodObject<{
|
|
39
|
-
platform: z.ZodLiteral<"slack">;
|
|
40
|
-
teamId: z.ZodString;
|
|
41
|
-
channelId: z.ZodString;
|
|
42
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}, z.core.$strict>;
|
|
44
|
-
/** Runtime-owned local CLI conversation address. */
|
|
45
|
-
declare const localDestinationSchema: z.ZodObject<{
|
|
46
|
-
platform: z.ZodLiteral<"local">;
|
|
47
|
-
conversationId: z.ZodString;
|
|
48
|
-
}, z.core.$strict>;
|
|
49
|
-
/** Runtime-owned provider-neutral address for routing future work or side effects. */
|
|
50
|
-
declare const destinationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
-
platform: z.ZodLiteral<"slack">;
|
|
52
|
-
teamId: z.ZodString;
|
|
53
|
-
channelId: z.ZodString;
|
|
54
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
55
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
-
platform: z.ZodLiteral<"local">;
|
|
57
|
-
conversationId: z.ZodString;
|
|
58
|
-
}, z.core.$strict>], "platform">;
|
|
59
|
-
/** One visible effect after successful automated work. */
|
|
60
|
-
declare const taskOutcomeSchema: z.ZodObject<{
|
|
61
|
-
action: z.ZodLiteral<"send_message">;
|
|
62
|
-
destination: z.ZodObject<{
|
|
63
|
-
platform: z.ZodLiteral<"slack">;
|
|
64
|
-
teamId: z.ZodString;
|
|
65
|
-
channelId: z.ZodString;
|
|
66
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, z.core.$strict>;
|
|
68
|
-
}, z.core.$strict>;
|
|
69
|
-
/** Runtime-owned Slack input Source. */
|
|
70
|
-
declare const slackSourceSchema: z.ZodObject<{
|
|
71
|
-
kind: z.ZodLiteral<"slack">;
|
|
72
|
-
teamId: z.ZodString;
|
|
73
|
-
channelId: z.ZodString;
|
|
74
|
-
visibility: z.ZodEnum<{
|
|
75
|
-
private: "private";
|
|
76
|
-
public: "public";
|
|
77
|
-
}>;
|
|
78
|
-
messageTs: z.ZodOptional<z.ZodString>;
|
|
79
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
80
|
-
}, z.core.$strict>;
|
|
81
|
-
/** Runtime-owned local CLI input Source. */
|
|
82
|
-
declare const localSourceSchema: z.ZodObject<{
|
|
83
|
-
kind: z.ZodLiteral<"local">;
|
|
84
|
-
visibility: z.ZodLiteral<"private">;
|
|
85
|
-
conversationId: z.ZodString;
|
|
86
|
-
}, z.core.$strict>;
|
|
87
|
-
/** Runtime-owned dashboard input Source. */
|
|
88
|
-
declare const webSourceSchema: z.ZodObject<{
|
|
89
|
-
kind: z.ZodLiteral<"web">;
|
|
90
|
-
visibility: z.ZodEnum<{
|
|
91
|
-
private: "private";
|
|
92
|
-
public: "public";
|
|
93
|
-
}>;
|
|
94
|
-
conversationId: z.ZodString;
|
|
95
|
-
}, z.core.$strict>;
|
|
96
|
-
/** Runtime-owned Event input Source. */
|
|
97
|
-
declare const eventSourceSchema: z.ZodObject<{
|
|
98
|
-
kind: z.ZodLiteral<"event">;
|
|
99
|
-
eventKey: z.ZodString;
|
|
100
|
-
eventType: z.ZodString;
|
|
101
|
-
identifier: z.ZodString;
|
|
102
|
-
namespace: z.ZodString;
|
|
103
|
-
}, z.core.$strict>;
|
|
104
|
-
/** Runtime-owned Scheduled automation input Source. */
|
|
105
|
-
declare const scheduledAutomationSourceSchema: z.ZodObject<{
|
|
106
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
107
|
-
automationRunId: z.ZodOptional<z.ZodString>;
|
|
108
|
-
kind: z.ZodLiteral<"scheduled_automation">;
|
|
109
|
-
}, z.core.$strict>;
|
|
110
|
-
/** Runtime-owned Event automation input Source. */
|
|
111
|
-
declare const eventAutomationSourceSchema: z.ZodObject<{
|
|
112
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
113
|
-
automationRunId: z.ZodOptional<z.ZodString>;
|
|
114
|
-
kind: z.ZodLiteral<"event_automation">;
|
|
115
|
-
}, z.core.$strict>;
|
|
116
|
-
/** Runtime-owned Plugin dispatch input Source. */
|
|
117
|
-
declare const pluginDispatchSourceSchema: z.ZodObject<{
|
|
118
|
-
kind: z.ZodLiteral<"plugin_dispatch">;
|
|
119
|
-
}, z.core.$strict>;
|
|
120
|
-
/** Runtime-owned Agent invocation input Source. */
|
|
121
|
-
declare const agentInvocationSourceSchema: z.ZodObject<{
|
|
122
|
-
kind: z.ZodLiteral<"agent_invocation">;
|
|
123
|
-
}, z.core.$strict>;
|
|
124
|
-
/** Runtime-owned input Source. Stored `platform` and Location fields normalize on read. */
|
|
125
|
-
declare const sourceSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
-
kind: z.ZodLiteral<"slack">;
|
|
127
|
-
teamId: z.ZodString;
|
|
128
|
-
channelId: z.ZodString;
|
|
129
|
-
visibility: z.ZodEnum<{
|
|
130
|
-
private: "private";
|
|
131
|
-
public: "public";
|
|
132
|
-
}>;
|
|
133
|
-
messageTs: z.ZodOptional<z.ZodString>;
|
|
134
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
136
|
-
kind: z.ZodLiteral<"local">;
|
|
137
|
-
visibility: z.ZodLiteral<"private">;
|
|
138
|
-
conversationId: z.ZodString;
|
|
139
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
140
|
-
kind: z.ZodLiteral<"web">;
|
|
141
|
-
visibility: z.ZodEnum<{
|
|
142
|
-
private: "private";
|
|
143
|
-
public: "public";
|
|
144
|
-
}>;
|
|
145
|
-
conversationId: z.ZodString;
|
|
146
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
147
|
-
kind: z.ZodLiteral<"event">;
|
|
148
|
-
eventKey: z.ZodString;
|
|
149
|
-
eventType: z.ZodString;
|
|
150
|
-
identifier: z.ZodString;
|
|
151
|
-
namespace: z.ZodString;
|
|
152
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
153
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
154
|
-
automationRunId: z.ZodOptional<z.ZodString>;
|
|
155
|
-
kind: z.ZodLiteral<"scheduled_automation">;
|
|
156
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
157
|
-
automationId: z.ZodOptional<z.ZodString>;
|
|
158
|
-
automationRunId: z.ZodOptional<z.ZodString>;
|
|
159
|
-
kind: z.ZodLiteral<"event_automation">;
|
|
160
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
-
kind: z.ZodLiteral<"plugin_dispatch">;
|
|
162
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
-
kind: z.ZodLiteral<"agent_invocation">;
|
|
164
|
-
}, z.core.$strict>], "kind">, unknown>;
|
|
165
|
-
/** Stable user credential subject shape accepted from plugins. */
|
|
166
|
-
declare const pluginCredentialSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
167
|
-
type: z.ZodLiteral<"user">;
|
|
168
|
-
userId: z.ZodString;
|
|
169
|
-
allowedWhen: z.ZodLiteral<"private-direct-conversation">;
|
|
170
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
-
type: z.ZodLiteral<"user">;
|
|
172
|
-
userId: z.ZodString;
|
|
173
|
-
allowedWhen: z.ZodLiteral<"scheduled-automation">;
|
|
174
|
-
taskId: z.ZodString;
|
|
175
|
-
}, z.core.$strict>], "allowedWhen">;
|
|
176
|
-
declare const slackActorSchema: z.ZodObject<{
|
|
177
|
-
email: z.ZodOptional<z.ZodString>;
|
|
178
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
179
|
-
userId: z.ZodString;
|
|
180
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
181
|
-
platform: z.ZodLiteral<"slack">;
|
|
182
|
-
teamId: z.ZodString;
|
|
183
|
-
}, z.core.$strict>;
|
|
184
|
-
declare const localActorSchema: z.ZodObject<{
|
|
185
|
-
email: z.ZodOptional<z.ZodString>;
|
|
186
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
187
|
-
userId: z.ZodString;
|
|
188
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
189
|
-
platform: z.ZodLiteral<"local">;
|
|
190
|
-
}, z.core.$strict>;
|
|
191
|
-
declare const webActorSchema: z.ZodObject<{
|
|
192
|
-
email: z.ZodOptional<z.ZodString>;
|
|
193
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
194
|
-
userId: z.ZodString;
|
|
195
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
196
|
-
platform: z.ZodLiteral<"web">;
|
|
197
|
-
}, z.core.$strict>;
|
|
198
|
-
declare const systemActorSchema: z.ZodObject<{
|
|
199
|
-
platform: z.ZodLiteral<"system">;
|
|
200
|
-
name: z.ZodString;
|
|
201
|
-
}, z.core.$strict>;
|
|
202
|
-
/** Runtime-provided actor identity visible to plugin hooks. */
|
|
203
|
-
declare const actorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
204
|
-
email: z.ZodOptional<z.ZodString>;
|
|
205
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
206
|
-
userId: z.ZodString;
|
|
207
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
208
|
-
platform: z.ZodLiteral<"slack">;
|
|
209
|
-
teamId: z.ZodString;
|
|
210
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
211
|
-
email: z.ZodOptional<z.ZodString>;
|
|
212
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
213
|
-
userId: z.ZodString;
|
|
214
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
215
|
-
platform: z.ZodLiteral<"local">;
|
|
216
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
217
|
-
email: z.ZodOptional<z.ZodString>;
|
|
218
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
219
|
-
userId: z.ZodString;
|
|
220
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
221
|
-
platform: z.ZodLiteral<"web">;
|
|
222
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
223
|
-
platform: z.ZodLiteral<"system">;
|
|
224
|
-
name: z.ZodString;
|
|
225
|
-
}, z.core.$strict>], "platform">;
|
|
226
|
-
/** Core-owned provider account linked to a user when verified. */
|
|
227
|
-
declare const identitySchema: z.ZodObject<{
|
|
228
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
229
|
-
handle: z.ZodOptional<z.ZodString>;
|
|
230
|
-
id: z.ZodString;
|
|
231
|
-
provider: z.ZodString;
|
|
232
|
-
providerSubjectId: z.ZodString;
|
|
233
|
-
providerTenantId: z.ZodOptional<z.ZodString>;
|
|
234
|
-
}, z.core.$strict>;
|
|
235
|
-
/** Core-owned person with every linked provider identity. */
|
|
236
|
-
declare const userSchema: z.ZodObject<{
|
|
237
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
238
|
-
email: z.ZodString;
|
|
239
|
-
id: z.ZodString;
|
|
240
|
-
identities: z.ZodArray<z.ZodObject<{
|
|
241
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
242
|
-
handle: z.ZodOptional<z.ZodString>;
|
|
243
|
-
id: z.ZodString;
|
|
244
|
-
provider: z.ZodString;
|
|
245
|
-
providerSubjectId: z.ZodString;
|
|
246
|
-
providerTenantId: z.ZodOptional<z.ZodString>;
|
|
247
|
-
}, z.core.$strict>>;
|
|
248
|
-
isAdmin: z.ZodOptional<z.ZodLiteral<true>>;
|
|
249
|
-
}, z.core.$strict>;
|
|
250
|
-
/** Compact destination-visible context explaining what produced a reply. */
|
|
251
|
-
declare const replyAttributionSchema: z.ZodObject<{
|
|
252
|
-
label: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
253
|
-
detail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
|
|
254
|
-
}, z.core.$strict>;
|
|
255
|
-
/**
|
|
256
|
-
* Plugin request to start work for one person. `input` becomes that person's
|
|
257
|
-
* first Message in a new public Conversation, so it must be what they asked
|
|
258
|
-
* for, not text that someone else wrote. Name the person by exactly one of:
|
|
259
|
-
*
|
|
260
|
-
* - `subjectId`: the provider account id that the OAuth account-linking flow
|
|
261
|
-
* stored. Core binds the provider to the calling plugin.
|
|
262
|
-
* - `verifiedEmail`: an address that the plugin proved this person sent from,
|
|
263
|
-
* such as the From address of an email that passed DMARC. Never an address
|
|
264
|
-
* that only appears in content.
|
|
265
|
-
*/
|
|
266
|
-
declare const identityDispatchOptionsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
267
|
-
idempotencyKey: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
268
|
-
input: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
269
|
-
subjectId: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
270
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
271
|
-
idempotencyKey: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
272
|
-
input: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
273
|
-
verifiedEmail: z.ZodEmail;
|
|
274
|
-
}, z.core.$strict>]>;
|
|
275
|
-
/** Plugin dispatch request accepted by Junior core. */
|
|
276
|
-
declare const dispatchOptionsSchema: z.ZodObject<{
|
|
277
|
-
idempotencyKey: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
278
|
-
credentialSubject: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
279
|
-
type: z.ZodLiteral<"user">;
|
|
280
|
-
userId: z.ZodString;
|
|
281
|
-
allowedWhen: z.ZodLiteral<"private-direct-conversation">;
|
|
282
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
-
type: z.ZodLiteral<"user">;
|
|
284
|
-
userId: z.ZodString;
|
|
285
|
-
allowedWhen: z.ZodLiteral<"scheduled-automation">;
|
|
286
|
-
taskId: z.ZodString;
|
|
287
|
-
}, z.core.$strict>], "allowedWhen">>;
|
|
288
|
-
destination: z.ZodObject<{
|
|
289
|
-
platform: z.ZodLiteral<"slack">;
|
|
290
|
-
teamId: z.ZodString;
|
|
291
|
-
channelId: z.ZodString;
|
|
292
|
-
threadTs: z.ZodOptional<z.ZodString>;
|
|
293
|
-
}, z.core.$strict>;
|
|
294
|
-
destinationVisibility: z.ZodEnum<{
|
|
295
|
-
private: "private";
|
|
296
|
-
public: "public";
|
|
297
|
-
}>;
|
|
298
|
-
input: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
299
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
300
|
-
replyAttribution: z.ZodOptional<z.ZodObject<{
|
|
301
|
-
label: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
302
|
-
detail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
|
|
303
|
-
}, z.core.$strict>>;
|
|
304
|
-
title: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
|
|
305
|
-
}, z.core.$strict>;
|
|
306
|
-
/** A loaded value and how long to cache it. */
|
|
307
|
-
interface CacheEntry<T> {
|
|
308
|
-
/** Omit to return the value without caching it, such as for an incomplete response. */
|
|
309
|
-
ttlMs?: number;
|
|
310
|
-
/** Must survive JSON serialization. */
|
|
311
|
-
value: T;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Short-lived copies of values that are slow or costly to load, such as
|
|
315
|
-
* provider API reads. Junior can drop an entry at any time. A lost entry only
|
|
316
|
-
* costs a reload, so never keep data here that Junior must not lose. Use
|
|
317
|
-
* `PluginState` for that.
|
|
318
|
-
*/
|
|
319
|
-
interface PluginCache {
|
|
320
|
-
/**
|
|
321
|
-
* Return the cached value for `key`, or call `load` and cache its result.
|
|
322
|
-
* Concurrent callers share one load. A load that throws is not cached.
|
|
323
|
-
* `refresh` ignores the cached value and replaces it.
|
|
324
|
-
*/
|
|
325
|
-
getOrLoad<T>(key: string, load: () => Promise<CacheEntry<T>>, options?: {
|
|
326
|
-
refresh?: boolean;
|
|
327
|
-
}): Promise<T>;
|
|
328
|
-
}
|
|
329
|
-
/** Runtime platform name without source or destination coordinates. */
|
|
330
|
-
type Platform = z.output<typeof platformSchema>;
|
|
331
|
-
type Actor = z.output<typeof actorSchema>;
|
|
332
|
-
type SlackActor = z.output<typeof slackActorSchema>;
|
|
333
|
-
type LocalActor = z.output<typeof localActorSchema>;
|
|
334
|
-
type WebActor = z.output<typeof webActorSchema>;
|
|
335
|
-
type SystemActor = z.output<typeof systemActorSchema>;
|
|
336
|
-
type Identity = z.output<typeof identitySchema>;
|
|
337
|
-
type User = z.output<typeof userSchema>;
|
|
338
|
-
type Source = z.output<typeof sourceSchema>;
|
|
339
|
-
/** Validated Location associated with a Conversation. */
|
|
340
|
-
type Location = z.output<typeof locationSchema>;
|
|
341
|
-
/** Complete Slack Location associated with a Conversation. */
|
|
342
|
-
type SlackLocation = z.output<typeof slackLocationSchema>;
|
|
343
|
-
type SlackSource = Extract<Source, {
|
|
344
|
-
kind: "slack";
|
|
345
|
-
}>;
|
|
346
|
-
type LocalSource = Extract<Source, {
|
|
347
|
-
kind: "local";
|
|
348
|
-
}>;
|
|
349
|
-
type WebSource = Extract<Source, {
|
|
350
|
-
kind: "web";
|
|
351
|
-
}>;
|
|
352
|
-
type EventSource = Extract<Source, {
|
|
353
|
-
kind: "event";
|
|
354
|
-
}>;
|
|
355
|
-
type ScheduledAutomationSource = Extract<Source, {
|
|
356
|
-
kind: "scheduled_automation";
|
|
357
|
-
}>;
|
|
358
|
-
type EventAutomationSource = Extract<Source, {
|
|
359
|
-
kind: "event_automation";
|
|
360
|
-
}>;
|
|
361
|
-
type PluginDispatchSource = Extract<Source, {
|
|
362
|
-
kind: "plugin_dispatch";
|
|
363
|
-
}>;
|
|
364
|
-
type AgentInvocationSource = Extract<Source, {
|
|
365
|
-
kind: "agent_invocation";
|
|
366
|
-
}>;
|
|
367
|
-
type SourceVisibility = z.output<typeof sourceVisibilitySchema>;
|
|
368
|
-
type Destination = z.output<typeof destinationSchema>;
|
|
369
|
-
type SlackDestination = Extract<Destination, {
|
|
370
|
-
platform: "slack";
|
|
371
|
-
}>;
|
|
372
|
-
type LocalDestination = Extract<Destination, {
|
|
373
|
-
platform: "local";
|
|
374
|
-
}>;
|
|
375
|
-
interface PluginMetadata {
|
|
376
|
-
name: string;
|
|
377
|
-
}
|
|
378
|
-
interface PluginLogger {
|
|
379
|
-
error(message: string, metadata?: Record<string, unknown>): void;
|
|
380
|
-
info(message: string, metadata?: Record<string, unknown>): void;
|
|
381
|
-
warn(message: string, metadata?: Record<string, unknown>): void;
|
|
382
|
-
}
|
|
383
|
-
interface PluginModel {
|
|
384
|
-
/** Run a host-owned structured model call without exposing provider credentials. */
|
|
385
|
-
completeObject<TSchema extends ZodTypeAny>(input: {
|
|
386
|
-
/** Tokens for the object itself. The host adds room for reasoning. */
|
|
387
|
-
maxTokens?: number;
|
|
388
|
-
prompt: string;
|
|
389
|
-
schema: TSchema;
|
|
390
|
-
system?: string;
|
|
391
|
-
}): Promise<{
|
|
392
|
-
/** Best-effort estimated provider cost for this completion. */
|
|
393
|
-
costUsd?: number;
|
|
394
|
-
object: z.infer<TSchema>;
|
|
395
|
-
}>;
|
|
396
|
-
}
|
|
397
|
-
/** Host decision model: a fast classifier for one narrow choice, with no reasoning. */
|
|
398
|
-
interface PluginDecider {
|
|
399
|
-
/**
|
|
400
|
-
* Pick the choice whose criteria fit `state`. `instructions` say what to
|
|
401
|
-
* judge. Keep the state as evidence only; it is not instructions.
|
|
402
|
-
*/
|
|
403
|
-
decide<TChoice extends string>(input: {
|
|
404
|
-
criteria: Record<TChoice, string>;
|
|
405
|
-
instructions: string;
|
|
406
|
-
state: string;
|
|
407
|
-
}): Promise<{
|
|
408
|
-
choice: TChoice;
|
|
409
|
-
/** Best-effort estimated provider cost for this decision. */
|
|
410
|
-
costUsd?: number;
|
|
411
|
-
/** Probability of each choice, when the provider returns them. */
|
|
412
|
-
probabilities?: Partial<Record<TChoice, number>>;
|
|
413
|
-
}>;
|
|
414
|
-
}
|
|
415
|
-
/** How embedded text is used. Some models embed queries and documents differently. */
|
|
416
|
-
type PluginEmbeddingInputType = "document" | "query";
|
|
417
|
-
interface PluginEmbedder {
|
|
418
|
-
/** Configured embedding model id; embedTexts() reports the same value. */
|
|
419
|
-
model: string;
|
|
420
|
-
/** Provider name that embedTexts() reports. */
|
|
421
|
-
provider: string;
|
|
422
|
-
/** Embed plugin-owned text for derived retrieval without exposing provider credentials. */
|
|
423
|
-
embedTexts(input: {
|
|
424
|
-
inputType?: PluginEmbeddingInputType;
|
|
425
|
-
texts: string[];
|
|
426
|
-
}): Promise<{
|
|
427
|
-
/** Best-effort estimated provider cost for this embedding call. */
|
|
428
|
-
costUsd?: number;
|
|
429
|
-
dimensions: number;
|
|
430
|
-
model: string;
|
|
431
|
-
provider: string;
|
|
432
|
-
vectors: number[][];
|
|
433
|
-
}>;
|
|
434
|
-
}
|
|
435
|
-
interface PluginReranker {
|
|
436
|
-
/** Score plugin-owned documents against one query without exposing provider credentials. */
|
|
437
|
-
rerank(input: {
|
|
438
|
-
documents: string[];
|
|
439
|
-
query: string;
|
|
440
|
-
}): Promise<{
|
|
441
|
-
/** Best-effort provider cost for this reranking call. */
|
|
442
|
-
costUsd?: number;
|
|
443
|
-
/** One relevance score per document, in input order. Higher is more relevant. */
|
|
444
|
-
scores: number[];
|
|
445
|
-
}>;
|
|
446
|
-
}
|
|
447
|
-
interface PluginContext {
|
|
448
|
-
/** Short-lived cache scoped to this plugin. */
|
|
449
|
-
cache: PluginCache;
|
|
450
|
-
/** Shared Drizzle database connection for plugin runtime code. */
|
|
451
|
-
db: unknown;
|
|
452
|
-
log: PluginLogger;
|
|
453
|
-
plugin: PluginMetadata;
|
|
454
|
-
}
|
|
455
|
-
interface BaseInvocationContext {
|
|
456
|
-
/**
|
|
457
|
-
* Opaque Junior conversation/session identity for this invocation.
|
|
458
|
-
* Interactive Slack turns use `slack:{channelId}:{threadTs}`.
|
|
459
|
-
*/
|
|
460
|
-
conversationId?: string;
|
|
461
|
-
/** Location associated with this Conversation. */
|
|
462
|
-
locationId?: string | undefined;
|
|
463
|
-
}
|
|
464
|
-
interface SlackInvocationContext extends BaseInvocationContext {
|
|
465
|
-
/** Runtime-owned default outbound destination for this invocation. */
|
|
466
|
-
destination: SlackDestination;
|
|
467
|
-
actor?: SlackActor | undefined;
|
|
468
|
-
/** Runtime-owned source where the invocation came from. */
|
|
469
|
-
source: SlackSource;
|
|
470
|
-
}
|
|
471
|
-
interface LocalInvocationContext extends BaseInvocationContext {
|
|
472
|
-
/** Runtime-owned default outbound destination for this invocation. */
|
|
473
|
-
destination: LocalDestination;
|
|
474
|
-
actor?: LocalActor | undefined;
|
|
475
|
-
/** Runtime-owned source where the invocation came from. */
|
|
476
|
-
source: LocalSource;
|
|
477
|
-
}
|
|
478
|
-
interface WebInvocationContext extends BaseInvocationContext {
|
|
479
|
-
/** Existing conversation destination used for location and tool context. */
|
|
480
|
-
destination: Destination;
|
|
481
|
-
actor?: WebActor | undefined;
|
|
482
|
-
/** Runtime-owned dashboard/web source for this invocation. */
|
|
483
|
-
source: WebSource;
|
|
484
|
-
}
|
|
485
|
-
interface EventInvocationContext extends BaseInvocationContext {
|
|
486
|
-
/** Existing conversation destination used for tool context. */
|
|
487
|
-
destination: Destination;
|
|
488
|
-
actor?: Actor;
|
|
489
|
-
/** Runtime-owned Event Source for this invocation. */
|
|
490
|
-
source: EventSource;
|
|
491
|
-
}
|
|
492
|
-
type InvocationContext = LocalInvocationContext | SlackInvocationContext | WebInvocationContext | (BaseInvocationContext & {
|
|
493
|
-
destination: Destination;
|
|
494
|
-
actor?: Actor | undefined;
|
|
495
|
-
source: AgentInvocationSource | EventAutomationSource | PluginDispatchSource | EventSource | ScheduledAutomationSource;
|
|
496
|
-
});
|
|
497
|
-
/** Build a normalized Slack source from runtime-owned Slack coordinates. */
|
|
498
|
-
declare function createSlackSource(input: {
|
|
499
|
-
channelId: string;
|
|
500
|
-
messageTs?: string | undefined;
|
|
501
|
-
teamId: string;
|
|
502
|
-
threadTs?: string | undefined;
|
|
503
|
-
/** Runtime-normalized source visibility. */
|
|
504
|
-
visibility: SourceVisibility;
|
|
505
|
-
}): SlackSource;
|
|
506
|
-
/** Build a normalized local source from a local conversation id. */
|
|
507
|
-
declare function createLocalSource(conversationId: string): LocalSource;
|
|
508
|
-
/** Build a normalized web/dashboard source from a conversation id. */
|
|
509
|
-
declare function createWebSource(conversationId: string, visibility?: SourceVisibility): WebSource;
|
|
510
|
-
/** Build a normalized Event Source from one matched event. */
|
|
511
|
-
declare function createEventSource(input: {
|
|
512
|
-
eventKey: string;
|
|
513
|
-
eventType: string;
|
|
514
|
-
identifier: string;
|
|
515
|
-
namespace: string;
|
|
516
|
-
}): EventSource;
|
|
517
|
-
/** Return whether a source is private to a person or restricted group. */
|
|
518
|
-
declare function isPrivateSource(source: Source): boolean;
|
|
519
|
-
/** Return the stable source identity used for idempotency and attribution. */
|
|
520
|
-
declare function getSourceKey(source: Source): string | undefined;
|
|
521
|
-
/** Narrow a runtime destination to the Slack-specific address shape. */
|
|
522
|
-
declare function isSlackDestination(destination: Destination | undefined): destination is SlackDestination;
|
|
523
|
-
export { eventSourceSchema as $, Source as A, createWebSource as B, PluginReranker as C, SlackInvocationContext as D, SlackDestination as E, WebInvocationContext as F, PluginCache as G, isPrivateSource as H, WebSource as I, agentInvocationSourceSchema as J, actorSchema as K, createEventSource as L, SystemActor as M, User as N, SlackLocation as O, WebActor as P, eventAutomationSourceSchema as Q, createLocalSource as R, PluginModel as S, webSourceSchema as St, SlackActor as T, isSlackDestination as U, getSourceKey as V, CacheEntry as W, destinationVisibilitySchema as X, destinationSchema as Y, dispatchOptionsSchema as Z, PluginDispatchSource as _, sourceVisibilitySchema as _t, EventInvocationContext as a, locationSchema as at, PluginLogger as b, userSchema as bt, InvocationContext as c, pluginCredentialSubjectSchema as ct, LocalInvocationContext as d, scheduledAutomationSourceSchema as dt, identityDispatchOptionsSchema as et, LocalSource as f, slackActorSchema as ft, PluginDecider as g, sourceSchema as gt, PluginContext as h, slackSourceSchema as ht, EventAutomationSource as i, localSourceSchema as it, SourceVisibility as j, SlackSource as k, LocalActor as l, pluginDispatchSourceSchema as lt, Platform as m, slackLocationSchema as mt, AgentInvocationSource as n, localActorSchema as nt, EventSource as o, nonBlankStringSchema as ot, Location as p, slackDestinationSchema as pt, actorUserIdSchema as q, Destination as r, localDestinationSchema as rt, Identity as s, platformSchema as st, Actor as t, identitySchema as tt, LocalDestination as u, replyAttributionSchema as ut, PluginEmbedder as v, systemActorSchema as vt, ScheduledAutomationSource as w, PluginMetadata as x, webActorSchema as xt, PluginEmbeddingInputType as y, taskOutcomeSchema as yt, createSlackSource as z };
|