@sentry/junior-plugin-api 0.103.0 → 0.104.1
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/operations.d.ts +0 -16
- package/package.json +1 -1
- package/src/operations.ts +0 -31
package/dist/operations.d.ts
CHANGED
|
@@ -2,21 +2,6 @@ import { z } from "zod";
|
|
|
2
2
|
import type { PluginContext } from "./context";
|
|
3
3
|
import type { Dispatch, DispatchOptions, DispatchResult } from "./dispatch";
|
|
4
4
|
import type { PluginReadState, PluginState } from "./state";
|
|
5
|
-
export type PluginConversationStatus = "active" | "completed" | "failed" | "hung" | "superseded";
|
|
6
|
-
export interface PluginConversationSummary {
|
|
7
|
-
channelName?: string;
|
|
8
|
-
conversationId: string;
|
|
9
|
-
displayTitle: string;
|
|
10
|
-
lastActivityAt: string;
|
|
11
|
-
lastUpdatedAt: string;
|
|
12
|
-
source?: "api" | "internal" | "local" | "plugin" | "resource_event" | "scheduler" | "slack";
|
|
13
|
-
status: PluginConversationStatus;
|
|
14
|
-
}
|
|
15
|
-
export interface PluginConversations {
|
|
16
|
-
listRecent(options?: {
|
|
17
|
-
limit?: number;
|
|
18
|
-
}): Promise<PluginConversationSummary[]>;
|
|
19
|
-
}
|
|
20
5
|
export interface HeartbeatHookContext extends PluginContext {
|
|
21
6
|
agent: {
|
|
22
7
|
dispatch(options: DispatchOptions): Promise<DispatchResult>;
|
|
@@ -69,7 +54,6 @@ export interface PluginOperationalReport extends PluginOperationalReportContent
|
|
|
69
54
|
pluginName: string;
|
|
70
55
|
}
|
|
71
56
|
export interface OperationalReportHookContext extends PluginContext {
|
|
72
|
-
conversations: PluginConversations;
|
|
73
57
|
nowMs: number;
|
|
74
58
|
state: PluginReadState;
|
|
75
59
|
}
|
package/package.json
CHANGED
package/src/operations.ts
CHANGED
|
@@ -4,36 +4,6 @@ import type { Dispatch, DispatchOptions, DispatchResult } from "./dispatch";
|
|
|
4
4
|
import { nonBlankStringSchema } from "./schemas";
|
|
5
5
|
import type { PluginReadState, PluginState } from "./state";
|
|
6
6
|
|
|
7
|
-
export type PluginConversationStatus =
|
|
8
|
-
| "active"
|
|
9
|
-
| "completed"
|
|
10
|
-
| "failed"
|
|
11
|
-
| "hung"
|
|
12
|
-
| "superseded";
|
|
13
|
-
|
|
14
|
-
export interface PluginConversationSummary {
|
|
15
|
-
channelName?: string;
|
|
16
|
-
conversationId: string;
|
|
17
|
-
displayTitle: string;
|
|
18
|
-
lastActivityAt: string;
|
|
19
|
-
lastUpdatedAt: string;
|
|
20
|
-
source?:
|
|
21
|
-
| "api"
|
|
22
|
-
| "internal"
|
|
23
|
-
| "local"
|
|
24
|
-
| "plugin"
|
|
25
|
-
| "resource_event"
|
|
26
|
-
| "scheduler"
|
|
27
|
-
| "slack";
|
|
28
|
-
status: PluginConversationStatus;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface PluginConversations {
|
|
32
|
-
listRecent(options?: {
|
|
33
|
-
limit?: number;
|
|
34
|
-
}): Promise<PluginConversationSummary[]>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
7
|
export interface HeartbeatHookContext extends PluginContext {
|
|
38
8
|
agent: {
|
|
39
9
|
dispatch(options: DispatchOptions): Promise<DispatchResult>;
|
|
@@ -97,7 +67,6 @@ export interface PluginOperationalReport extends PluginOperationalReportContent
|
|
|
97
67
|
}
|
|
98
68
|
|
|
99
69
|
export interface OperationalReportHookContext extends PluginContext {
|
|
100
|
-
conversations: PluginConversations;
|
|
101
70
|
nowMs: number;
|
|
102
71
|
state: PluginReadState;
|
|
103
72
|
}
|