@sentry/junior-memory 0.187.0 → 0.189.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/agent.d.ts CHANGED
@@ -37,7 +37,7 @@ declare const createMemoryRequestSchema: z.ZodObject<{
37
37
  platform: z.ZodLiteral<"system">;
38
38
  name: z.ZodString;
39
39
  }, z.core.$strict>], "platform">>;
40
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
40
+ source: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
41
41
  platform: z.ZodLiteral<"slack">;
42
42
  teamId: z.ZodString;
43
43
  channelId: z.ZodString;
@@ -47,10 +47,24 @@ declare const createMemoryRequestSchema: z.ZodObject<{
47
47
  }>;
48
48
  messageTs: z.ZodOptional<z.ZodString>;
49
49
  threadTs: z.ZodOptional<z.ZodString>;
50
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ id: z.ZodString;
52
+ provider: z.ZodLiteral<"slack">;
53
+ teamId: z.ZodString;
54
+ channelId: z.ZodString;
55
+ threadTs: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>], "provider">>;
50
57
  }, z.core.$strict>, z.ZodObject<{
51
58
  platform: z.ZodLiteral<"local">;
52
59
  visibility: z.ZodLiteral<"private">;
53
60
  conversationId: z.ZodString;
61
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ id: z.ZodString;
63
+ provider: z.ZodLiteral<"slack">;
64
+ teamId: z.ZodString;
65
+ channelId: z.ZodString;
66
+ threadTs: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>], "provider">>;
54
68
  }, z.core.$strict>, z.ZodObject<{
55
69
  platform: z.ZodLiteral<"web">;
56
70
  visibility: z.ZodEnum<{
@@ -58,7 +72,65 @@ declare const createMemoryRequestSchema: z.ZodObject<{
58
72
  private: "private";
59
73
  }>;
60
74
  conversationId: z.ZodString;
61
- }, z.core.$strict>], "platform">;
75
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
76
+ id: z.ZodString;
77
+ provider: z.ZodLiteral<"slack">;
78
+ teamId: z.ZodString;
79
+ channelId: z.ZodString;
80
+ threadTs: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strict>], "provider">>;
82
+ }, z.core.$strict>], "platform">, z.ZodTransform<{
83
+ platform: "slack";
84
+ teamId: string;
85
+ channelId: string;
86
+ visibility: "public" | "private";
87
+ messageTs?: string | undefined;
88
+ threadTs?: string | undefined;
89
+ } | {
90
+ platform: "local";
91
+ visibility: "private";
92
+ conversationId: string;
93
+ } | {
94
+ platform: "web";
95
+ visibility: "public" | "private";
96
+ conversationId: string;
97
+ }, {
98
+ platform: "slack";
99
+ teamId: string;
100
+ channelId: string;
101
+ visibility: "public" | "private";
102
+ messageTs?: string | undefined;
103
+ threadTs?: string | undefined;
104
+ location?: {
105
+ id: string;
106
+ provider: "slack";
107
+ teamId: string;
108
+ channelId: string;
109
+ threadTs?: string | undefined;
110
+ } | undefined;
111
+ } | {
112
+ platform: "local";
113
+ visibility: "private";
114
+ conversationId: string;
115
+ location?: {
116
+ id: string;
117
+ provider: "slack";
118
+ teamId: string;
119
+ channelId: string;
120
+ threadTs?: string | undefined;
121
+ } | undefined;
122
+ } | {
123
+ platform: "web";
124
+ visibility: "public" | "private";
125
+ conversationId: string;
126
+ location?: {
127
+ id: string;
128
+ provider: "slack";
129
+ teamId: string;
130
+ channelId: string;
131
+ threadTs?: string | undefined;
132
+ } | undefined;
133
+ }>>;
62
134
  userId: z.ZodOptional<z.ZodString>;
63
135
  }, z.core.$strict>;
64
136
  sourceContext: z.ZodOptional<z.ZodObject<{
@@ -118,7 +190,7 @@ declare const extractSessionRequestSchema: z.ZodObject<{
118
190
  platform: z.ZodLiteral<"system">;
119
191
  name: z.ZodString;
120
192
  }, z.core.$strict>], "platform">>;
121
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
193
+ source: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
122
194
  platform: z.ZodLiteral<"slack">;
123
195
  teamId: z.ZodString;
124
196
  channelId: z.ZodString;
@@ -128,10 +200,24 @@ declare const extractSessionRequestSchema: z.ZodObject<{
128
200
  }>;
129
201
  messageTs: z.ZodOptional<z.ZodString>;
130
202
  threadTs: z.ZodOptional<z.ZodString>;
203
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
204
+ id: z.ZodString;
205
+ provider: z.ZodLiteral<"slack">;
206
+ teamId: z.ZodString;
207
+ channelId: z.ZodString;
208
+ threadTs: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strict>], "provider">>;
131
210
  }, z.core.$strict>, z.ZodObject<{
132
211
  platform: z.ZodLiteral<"local">;
133
212
  visibility: z.ZodLiteral<"private">;
134
213
  conversationId: z.ZodString;
214
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
215
+ id: z.ZodString;
216
+ provider: z.ZodLiteral<"slack">;
217
+ teamId: z.ZodString;
218
+ channelId: z.ZodString;
219
+ threadTs: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strict>], "provider">>;
135
221
  }, z.core.$strict>, z.ZodObject<{
136
222
  platform: z.ZodLiteral<"web">;
137
223
  visibility: z.ZodEnum<{
@@ -139,7 +225,65 @@ declare const extractSessionRequestSchema: z.ZodObject<{
139
225
  private: "private";
140
226
  }>;
141
227
  conversationId: z.ZodString;
142
- }, z.core.$strict>], "platform">;
228
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
229
+ id: z.ZodString;
230
+ provider: z.ZodLiteral<"slack">;
231
+ teamId: z.ZodString;
232
+ channelId: z.ZodString;
233
+ threadTs: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strict>], "provider">>;
235
+ }, z.core.$strict>], "platform">, z.ZodTransform<{
236
+ platform: "slack";
237
+ teamId: string;
238
+ channelId: string;
239
+ visibility: "public" | "private";
240
+ messageTs?: string | undefined;
241
+ threadTs?: string | undefined;
242
+ } | {
243
+ platform: "local";
244
+ visibility: "private";
245
+ conversationId: string;
246
+ } | {
247
+ platform: "web";
248
+ visibility: "public" | "private";
249
+ conversationId: string;
250
+ }, {
251
+ platform: "slack";
252
+ teamId: string;
253
+ channelId: string;
254
+ visibility: "public" | "private";
255
+ messageTs?: string | undefined;
256
+ threadTs?: string | undefined;
257
+ location?: {
258
+ id: string;
259
+ provider: "slack";
260
+ teamId: string;
261
+ channelId: string;
262
+ threadTs?: string | undefined;
263
+ } | undefined;
264
+ } | {
265
+ platform: "local";
266
+ visibility: "private";
267
+ conversationId: string;
268
+ location?: {
269
+ id: string;
270
+ provider: "slack";
271
+ teamId: string;
272
+ channelId: string;
273
+ threadTs?: string | undefined;
274
+ } | undefined;
275
+ } | {
276
+ platform: "web";
277
+ visibility: "public" | "private";
278
+ conversationId: string;
279
+ location?: {
280
+ id: string;
281
+ provider: "slack";
282
+ teamId: string;
283
+ channelId: string;
284
+ threadTs?: string | undefined;
285
+ } | undefined;
286
+ }>>;
143
287
  userId: z.ZodOptional<z.ZodString>;
144
288
  }, z.core.$strict>;
145
289
  transcript: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
package/dist/store.d.ts CHANGED
@@ -91,7 +91,7 @@ export declare const memorySupersessionInputSchema: z.ZodObject<{
91
91
  platform: z.ZodLiteral<"system">;
92
92
  name: z.ZodString;
93
93
  }, z.core.$strict>], "platform">>;
94
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
94
+ source: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
95
95
  platform: z.ZodLiteral<"slack">;
96
96
  teamId: z.ZodString;
97
97
  channelId: z.ZodString;
@@ -101,10 +101,24 @@ export declare const memorySupersessionInputSchema: z.ZodObject<{
101
101
  }>;
102
102
  messageTs: z.ZodOptional<z.ZodString>;
103
103
  threadTs: z.ZodOptional<z.ZodString>;
104
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
105
+ id: z.ZodString;
106
+ provider: z.ZodLiteral<"slack">;
107
+ teamId: z.ZodString;
108
+ channelId: z.ZodString;
109
+ threadTs: z.ZodOptional<z.ZodString>;
110
+ }, z.core.$strict>], "provider">>;
104
111
  }, z.core.$strict>, z.ZodObject<{
105
112
  platform: z.ZodLiteral<"local">;
106
113
  visibility: z.ZodLiteral<"private">;
107
114
  conversationId: z.ZodString;
115
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
116
+ id: z.ZodString;
117
+ provider: z.ZodLiteral<"slack">;
118
+ teamId: z.ZodString;
119
+ channelId: z.ZodString;
120
+ threadTs: z.ZodOptional<z.ZodString>;
121
+ }, z.core.$strict>], "provider">>;
108
122
  }, z.core.$strict>, z.ZodObject<{
109
123
  platform: z.ZodLiteral<"web">;
110
124
  visibility: z.ZodEnum<{
@@ -112,7 +126,65 @@ export declare const memorySupersessionInputSchema: z.ZodObject<{
112
126
  private: "private";
113
127
  }>;
114
128
  conversationId: z.ZodString;
115
- }, z.core.$strict>], "platform">;
129
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
130
+ id: z.ZodString;
131
+ provider: z.ZodLiteral<"slack">;
132
+ teamId: z.ZodString;
133
+ channelId: z.ZodString;
134
+ threadTs: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strict>], "provider">>;
136
+ }, z.core.$strict>], "platform">, z.ZodTransform<{
137
+ platform: "slack";
138
+ teamId: string;
139
+ channelId: string;
140
+ visibility: "public" | "private";
141
+ messageTs?: string | undefined;
142
+ threadTs?: string | undefined;
143
+ } | {
144
+ platform: "local";
145
+ visibility: "private";
146
+ conversationId: string;
147
+ } | {
148
+ platform: "web";
149
+ visibility: "public" | "private";
150
+ conversationId: string;
151
+ }, {
152
+ platform: "slack";
153
+ teamId: string;
154
+ channelId: string;
155
+ visibility: "public" | "private";
156
+ messageTs?: string | undefined;
157
+ threadTs?: string | undefined;
158
+ location?: {
159
+ id: string;
160
+ provider: "slack";
161
+ teamId: string;
162
+ channelId: string;
163
+ threadTs?: string | undefined;
164
+ } | undefined;
165
+ } | {
166
+ platform: "local";
167
+ visibility: "private";
168
+ conversationId: string;
169
+ location?: {
170
+ id: string;
171
+ provider: "slack";
172
+ teamId: string;
173
+ channelId: string;
174
+ threadTs?: string | undefined;
175
+ } | undefined;
176
+ } | {
177
+ platform: "web";
178
+ visibility: "public" | "private";
179
+ conversationId: string;
180
+ location?: {
181
+ id: string;
182
+ provider: "slack";
183
+ teamId: string;
184
+ channelId: string;
185
+ threadTs?: string | undefined;
186
+ } | undefined;
187
+ }>>;
116
188
  userId: z.ZodOptional<z.ZodString>;
117
189
  }, z.core.$strict>;
118
190
  }, z.core.$strict>;
package/dist/types.d.ts CHANGED
@@ -37,7 +37,7 @@ export declare const memoryRuntimeContextSchema: z.ZodObject<{
37
37
  platform: z.ZodLiteral<"system">;
38
38
  name: z.ZodString;
39
39
  }, z.core.$strict>], "platform">>;
40
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
40
+ source: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
41
41
  platform: z.ZodLiteral<"slack">;
42
42
  teamId: z.ZodString;
43
43
  channelId: z.ZodString;
@@ -47,10 +47,24 @@ export declare const memoryRuntimeContextSchema: z.ZodObject<{
47
47
  }>;
48
48
  messageTs: z.ZodOptional<z.ZodString>;
49
49
  threadTs: z.ZodOptional<z.ZodString>;
50
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ id: z.ZodString;
52
+ provider: z.ZodLiteral<"slack">;
53
+ teamId: z.ZodString;
54
+ channelId: z.ZodString;
55
+ threadTs: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>], "provider">>;
50
57
  }, z.core.$strict>, z.ZodObject<{
51
58
  platform: z.ZodLiteral<"local">;
52
59
  visibility: z.ZodLiteral<"private">;
53
60
  conversationId: z.ZodString;
61
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ id: z.ZodString;
63
+ provider: z.ZodLiteral<"slack">;
64
+ teamId: z.ZodString;
65
+ channelId: z.ZodString;
66
+ threadTs: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>], "provider">>;
54
68
  }, z.core.$strict>, z.ZodObject<{
55
69
  platform: z.ZodLiteral<"web">;
56
70
  visibility: z.ZodEnum<{
@@ -58,7 +72,65 @@ export declare const memoryRuntimeContextSchema: z.ZodObject<{
58
72
  private: "private";
59
73
  }>;
60
74
  conversationId: z.ZodString;
61
- }, z.core.$strict>], "platform">;
75
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
76
+ id: z.ZodString;
77
+ provider: z.ZodLiteral<"slack">;
78
+ teamId: z.ZodString;
79
+ channelId: z.ZodString;
80
+ threadTs: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strict>], "provider">>;
82
+ }, z.core.$strict>], "platform">, z.ZodTransform<{
83
+ platform: "slack";
84
+ teamId: string;
85
+ channelId: string;
86
+ visibility: "public" | "private";
87
+ messageTs?: string | undefined;
88
+ threadTs?: string | undefined;
89
+ } | {
90
+ platform: "local";
91
+ visibility: "private";
92
+ conversationId: string;
93
+ } | {
94
+ platform: "web";
95
+ visibility: "public" | "private";
96
+ conversationId: string;
97
+ }, {
98
+ platform: "slack";
99
+ teamId: string;
100
+ channelId: string;
101
+ visibility: "public" | "private";
102
+ messageTs?: string | undefined;
103
+ threadTs?: string | undefined;
104
+ location?: {
105
+ id: string;
106
+ provider: "slack";
107
+ teamId: string;
108
+ channelId: string;
109
+ threadTs?: string | undefined;
110
+ } | undefined;
111
+ } | {
112
+ platform: "local";
113
+ visibility: "private";
114
+ conversationId: string;
115
+ location?: {
116
+ id: string;
117
+ provider: "slack";
118
+ teamId: string;
119
+ channelId: string;
120
+ threadTs?: string | undefined;
121
+ } | undefined;
122
+ } | {
123
+ platform: "web";
124
+ visibility: "public" | "private";
125
+ conversationId: string;
126
+ location?: {
127
+ id: string;
128
+ provider: "slack";
129
+ teamId: string;
130
+ channelId: string;
131
+ threadTs?: string | undefined;
132
+ } | undefined;
133
+ }>>;
62
134
  userId: z.ZodOptional<z.ZodString>;
63
135
  }, z.core.$strict>;
64
136
  export type MemoryRuntimeContext = z.output<typeof memoryRuntimeContextSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-memory",
3
- "version": "0.187.0",
3
+ "version": "0.189.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  "commander": "^14.0.3",
28
28
  "drizzle-orm": "^0.45.2",
29
29
  "zod": "^4.4.3",
30
- "@sentry/junior-plugin-api": "0.187.0"
30
+ "@sentry/junior-plugin-api": "0.189.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@oxlint/plugins": "1.79.0",