@sentry/junior-memory 0.188.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,46 +37,100 @@ 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;
44
- location: z.ZodOptional<z.ZodObject<{
45
- id: z.ZodString;
46
- provider: z.ZodString;
47
- tenantId: z.ZodOptional<z.ZodString>;
48
- providerId: z.ZodString;
49
- }, z.core.$strict>>;
50
44
  visibility: z.ZodEnum<{
51
45
  public: "public";
52
46
  private: "private";
53
47
  }>;
54
48
  messageTs: z.ZodOptional<z.ZodString>;
55
49
  threadTs: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strict>, z.ZodObject<{
57
- location: z.ZodOptional<z.ZodObject<{
50
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
58
51
  id: z.ZodString;
59
- provider: z.ZodString;
60
- tenantId: z.ZodOptional<z.ZodString>;
61
- providerId: z.ZodString;
62
- }, z.core.$strict>>;
52
+ provider: z.ZodLiteral<"slack">;
53
+ teamId: z.ZodString;
54
+ channelId: z.ZodString;
55
+ threadTs: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>], "provider">>;
57
+ }, z.core.$strict>, z.ZodObject<{
63
58
  platform: z.ZodLiteral<"local">;
64
59
  visibility: z.ZodLiteral<"private">;
65
60
  conversationId: z.ZodString;
66
- }, z.core.$strict>, z.ZodObject<{
67
- location: z.ZodOptional<z.ZodObject<{
61
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
68
62
  id: z.ZodString;
69
- provider: z.ZodString;
70
- tenantId: z.ZodOptional<z.ZodString>;
71
- providerId: z.ZodString;
72
- }, z.core.$strict>>;
63
+ provider: z.ZodLiteral<"slack">;
64
+ teamId: z.ZodString;
65
+ channelId: z.ZodString;
66
+ threadTs: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>], "provider">>;
68
+ }, z.core.$strict>, z.ZodObject<{
73
69
  platform: z.ZodLiteral<"web">;
74
70
  visibility: z.ZodEnum<{
75
71
  public: "public";
76
72
  private: "private";
77
73
  }>;
78
74
  conversationId: z.ZodString;
79
- }, 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
+ }>>;
80
134
  userId: z.ZodOptional<z.ZodString>;
81
135
  }, z.core.$strict>;
82
136
  sourceContext: z.ZodOptional<z.ZodObject<{
@@ -136,46 +190,100 @@ declare const extractSessionRequestSchema: z.ZodObject<{
136
190
  platform: z.ZodLiteral<"system">;
137
191
  name: z.ZodString;
138
192
  }, z.core.$strict>], "platform">>;
139
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
193
+ source: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
140
194
  platform: z.ZodLiteral<"slack">;
141
195
  teamId: z.ZodString;
142
196
  channelId: z.ZodString;
143
- location: z.ZodOptional<z.ZodObject<{
144
- id: z.ZodString;
145
- provider: z.ZodString;
146
- tenantId: z.ZodOptional<z.ZodString>;
147
- providerId: z.ZodString;
148
- }, z.core.$strict>>;
149
197
  visibility: z.ZodEnum<{
150
198
  public: "public";
151
199
  private: "private";
152
200
  }>;
153
201
  messageTs: z.ZodOptional<z.ZodString>;
154
202
  threadTs: z.ZodOptional<z.ZodString>;
155
- }, z.core.$strict>, z.ZodObject<{
156
- location: z.ZodOptional<z.ZodObject<{
203
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
157
204
  id: z.ZodString;
158
- provider: z.ZodString;
159
- tenantId: z.ZodOptional<z.ZodString>;
160
- providerId: z.ZodString;
161
- }, z.core.$strict>>;
205
+ provider: z.ZodLiteral<"slack">;
206
+ teamId: z.ZodString;
207
+ channelId: z.ZodString;
208
+ threadTs: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strict>], "provider">>;
210
+ }, z.core.$strict>, z.ZodObject<{
162
211
  platform: z.ZodLiteral<"local">;
163
212
  visibility: z.ZodLiteral<"private">;
164
213
  conversationId: z.ZodString;
165
- }, z.core.$strict>, z.ZodObject<{
166
- location: z.ZodOptional<z.ZodObject<{
214
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
167
215
  id: z.ZodString;
168
- provider: z.ZodString;
169
- tenantId: z.ZodOptional<z.ZodString>;
170
- providerId: z.ZodString;
171
- }, z.core.$strict>>;
216
+ provider: z.ZodLiteral<"slack">;
217
+ teamId: z.ZodString;
218
+ channelId: z.ZodString;
219
+ threadTs: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strict>], "provider">>;
221
+ }, z.core.$strict>, z.ZodObject<{
172
222
  platform: z.ZodLiteral<"web">;
173
223
  visibility: z.ZodEnum<{
174
224
  public: "public";
175
225
  private: "private";
176
226
  }>;
177
227
  conversationId: z.ZodString;
178
- }, 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
+ }>>;
179
287
  userId: z.ZodOptional<z.ZodString>;
180
288
  }, z.core.$strict>;
181
289
  transcript: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
package/dist/store.d.ts CHANGED
@@ -91,46 +91,100 @@ 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;
98
- location: z.ZodOptional<z.ZodObject<{
99
- id: z.ZodString;
100
- provider: z.ZodString;
101
- tenantId: z.ZodOptional<z.ZodString>;
102
- providerId: z.ZodString;
103
- }, z.core.$strict>>;
104
98
  visibility: z.ZodEnum<{
105
99
  public: "public";
106
100
  private: "private";
107
101
  }>;
108
102
  messageTs: z.ZodOptional<z.ZodString>;
109
103
  threadTs: z.ZodOptional<z.ZodString>;
110
- }, z.core.$strict>, z.ZodObject<{
111
- location: z.ZodOptional<z.ZodObject<{
104
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
112
105
  id: z.ZodString;
113
- provider: z.ZodString;
114
- tenantId: z.ZodOptional<z.ZodString>;
115
- providerId: z.ZodString;
116
- }, z.core.$strict>>;
106
+ provider: z.ZodLiteral<"slack">;
107
+ teamId: z.ZodString;
108
+ channelId: z.ZodString;
109
+ threadTs: z.ZodOptional<z.ZodString>;
110
+ }, z.core.$strict>], "provider">>;
111
+ }, z.core.$strict>, z.ZodObject<{
117
112
  platform: z.ZodLiteral<"local">;
118
113
  visibility: z.ZodLiteral<"private">;
119
114
  conversationId: z.ZodString;
120
- }, z.core.$strict>, z.ZodObject<{
121
- location: z.ZodOptional<z.ZodObject<{
115
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
122
116
  id: z.ZodString;
123
- provider: z.ZodString;
124
- tenantId: z.ZodOptional<z.ZodString>;
125
- providerId: z.ZodString;
126
- }, z.core.$strict>>;
117
+ provider: z.ZodLiteral<"slack">;
118
+ teamId: z.ZodString;
119
+ channelId: z.ZodString;
120
+ threadTs: z.ZodOptional<z.ZodString>;
121
+ }, z.core.$strict>], "provider">>;
122
+ }, z.core.$strict>, z.ZodObject<{
127
123
  platform: z.ZodLiteral<"web">;
128
124
  visibility: z.ZodEnum<{
129
125
  public: "public";
130
126
  private: "private";
131
127
  }>;
132
128
  conversationId: z.ZodString;
133
- }, 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
+ }>>;
134
188
  userId: z.ZodOptional<z.ZodString>;
135
189
  }, z.core.$strict>;
136
190
  }, z.core.$strict>;
package/dist/types.d.ts CHANGED
@@ -37,46 +37,100 @@ 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;
44
- location: z.ZodOptional<z.ZodObject<{
45
- id: z.ZodString;
46
- provider: z.ZodString;
47
- tenantId: z.ZodOptional<z.ZodString>;
48
- providerId: z.ZodString;
49
- }, z.core.$strict>>;
50
44
  visibility: z.ZodEnum<{
51
45
  public: "public";
52
46
  private: "private";
53
47
  }>;
54
48
  messageTs: z.ZodOptional<z.ZodString>;
55
49
  threadTs: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strict>, z.ZodObject<{
57
- location: z.ZodOptional<z.ZodObject<{
50
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
58
51
  id: z.ZodString;
59
- provider: z.ZodString;
60
- tenantId: z.ZodOptional<z.ZodString>;
61
- providerId: z.ZodString;
62
- }, z.core.$strict>>;
52
+ provider: z.ZodLiteral<"slack">;
53
+ teamId: z.ZodString;
54
+ channelId: z.ZodString;
55
+ threadTs: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>], "provider">>;
57
+ }, z.core.$strict>, z.ZodObject<{
63
58
  platform: z.ZodLiteral<"local">;
64
59
  visibility: z.ZodLiteral<"private">;
65
60
  conversationId: z.ZodString;
66
- }, z.core.$strict>, z.ZodObject<{
67
- location: z.ZodOptional<z.ZodObject<{
61
+ location: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
68
62
  id: z.ZodString;
69
- provider: z.ZodString;
70
- tenantId: z.ZodOptional<z.ZodString>;
71
- providerId: z.ZodString;
72
- }, z.core.$strict>>;
63
+ provider: z.ZodLiteral<"slack">;
64
+ teamId: z.ZodString;
65
+ channelId: z.ZodString;
66
+ threadTs: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>], "provider">>;
68
+ }, z.core.$strict>, z.ZodObject<{
73
69
  platform: z.ZodLiteral<"web">;
74
70
  visibility: z.ZodEnum<{
75
71
  public: "public";
76
72
  private: "private";
77
73
  }>;
78
74
  conversationId: z.ZodString;
79
- }, 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
+ }>>;
80
134
  userId: z.ZodOptional<z.ZodString>;
81
135
  }, z.core.$strict>;
82
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.188.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.188.0"
30
+ "@sentry/junior-plugin-api": "0.189.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@oxlint/plugins": "1.79.0",