@sentry/junior-plugin-api 0.102.2 → 0.103.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/tools.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { PluginContext, LocalInvocationContext, PluginEmbedder, PluginModel, Actor, SlackInvocationContext } from "./context";
2
2
  import type { PluginCredentialSubject } from "./credentials";
3
+ import type { SlackConversationLink } from "./operations";
3
4
  import type { PluginState } from "./state";
4
5
  import { z, type ZodType, type ZodTypeAny } from "zod";
5
6
  export interface PluginEnv {
@@ -153,6 +154,8 @@ export interface SlackToolRegistrationHookContext {
153
154
  canCreateCanvas: boolean;
154
155
  canPostToChannel: boolean;
155
156
  };
157
+ /** Host-owned link to this conversation, preferring the dashboard when enabled. */
158
+ conversationLink?: SlackConversationLink;
156
159
  credentialSubject?: Extract<PluginCredentialSubject, {
157
160
  allowedWhen: "private-direct-conversation";
158
161
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.102.2",
3
+ "version": "0.103.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/tools.ts CHANGED
@@ -7,6 +7,7 @@ import type {
7
7
  SlackInvocationContext,
8
8
  } from "./context";
9
9
  import type { PluginCredentialSubject } from "./credentials";
10
+ import type { SlackConversationLink } from "./operations";
10
11
  import type { PluginState } from "./state";
11
12
  import { z, type ZodType, type ZodTypeAny } from "zod";
12
13
 
@@ -277,6 +278,8 @@ export interface SlackToolRegistrationHookContext {
277
278
  canCreateCanvas: boolean;
278
279
  canPostToChannel: boolean;
279
280
  };
281
+ /** Host-owned link to this conversation, preferring the dashboard when enabled. */
282
+ conversationLink?: SlackConversationLink;
280
283
  credentialSubject?: Extract<
281
284
  PluginCredentialSubject,
282
285
  { allowedWhen: "private-direct-conversation" }