@sentry/junior-plugin-api 0.65.0 → 0.66.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 +7 -5
- package/package.json +1 -1
- package/src/index.ts +8 -5
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
96
96
|
canPostToChannel: boolean;
|
|
97
97
|
};
|
|
98
98
|
channelId?: string;
|
|
99
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
99
100
|
messageTs?: string;
|
|
100
101
|
requester?: AgentPluginRequester;
|
|
101
102
|
state: AgentPluginState;
|
|
@@ -103,12 +104,13 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
103
104
|
threadTs?: string;
|
|
104
105
|
userText?: string;
|
|
105
106
|
}
|
|
107
|
+
export interface AgentPluginCredentialSubject {
|
|
108
|
+
type: "user";
|
|
109
|
+
userId: string;
|
|
110
|
+
allowedWhen: "private-direct-conversation";
|
|
111
|
+
}
|
|
106
112
|
export interface DispatchOptions {
|
|
107
|
-
credentialSubject?:
|
|
108
|
-
type: "user";
|
|
109
|
-
userId: string;
|
|
110
|
-
allowedWhen: "private-direct-conversation";
|
|
111
|
-
};
|
|
113
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
112
114
|
destination: {
|
|
113
115
|
platform: "slack";
|
|
114
116
|
teamId: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -110,6 +110,7 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
110
110
|
canPostToChannel: boolean;
|
|
111
111
|
};
|
|
112
112
|
channelId?: string;
|
|
113
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
113
114
|
messageTs?: string;
|
|
114
115
|
requester?: AgentPluginRequester;
|
|
115
116
|
state: AgentPluginState;
|
|
@@ -118,12 +119,14 @@ export interface ToolRegistrationHookContext extends AgentPluginContext {
|
|
|
118
119
|
userText?: string;
|
|
119
120
|
}
|
|
120
121
|
|
|
122
|
+
export interface AgentPluginCredentialSubject {
|
|
123
|
+
type: "user";
|
|
124
|
+
userId: string;
|
|
125
|
+
allowedWhen: "private-direct-conversation";
|
|
126
|
+
}
|
|
127
|
+
|
|
121
128
|
export interface DispatchOptions {
|
|
122
|
-
credentialSubject?:
|
|
123
|
-
type: "user";
|
|
124
|
-
userId: string;
|
|
125
|
-
allowedWhen: "private-direct-conversation";
|
|
126
|
-
};
|
|
129
|
+
credentialSubject?: AgentPluginCredentialSubject;
|
|
127
130
|
destination: {
|
|
128
131
|
platform: "slack";
|
|
129
132
|
teamId: string;
|