raindrop-ai 0.0.29 → 0.0.31
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.
|
@@ -152,6 +152,9 @@ var createTracing = (analytics, _apiUrl, _writeKey, _options) => ({
|
|
|
152
152
|
if (!traceContext.eventId) {
|
|
153
153
|
traceContext.eventId = v4_default();
|
|
154
154
|
}
|
|
155
|
+
analytics._trackAiPartial({
|
|
156
|
+
...traceContext
|
|
157
|
+
});
|
|
155
158
|
return new NonLiveInteraction(
|
|
156
159
|
traceContext,
|
|
157
160
|
void 0,
|
package/dist/index.js
CHANGED
|
@@ -61,11 +61,11 @@ var IdentifySchema = import_zod.z.object({
|
|
|
61
61
|
}).strict();
|
|
62
62
|
var TrackEventSchema = import_zod.z.object({
|
|
63
63
|
event_id: import_zod.z.string(),
|
|
64
|
-
event: import_zod.z.string(),
|
|
64
|
+
event: import_zod.z.string().min(1, "Event name cannot be empty"),
|
|
65
65
|
properties: import_zod.z.record(import_zod.z.any()).optional(),
|
|
66
66
|
timestamp: import_zod.z.coerce.date(),
|
|
67
67
|
received_at: import_zod.z.coerce.date(),
|
|
68
|
-
user_id: import_zod.z.coerce.string(),
|
|
68
|
+
user_id: import_zod.z.coerce.string().min(1, "User ID cannot be empty"),
|
|
69
69
|
attachments: import_zod.z.array(AttachmentSchema).optional()
|
|
70
70
|
}).strict();
|
|
71
71
|
var AiDataSchema = import_zod.z.object({
|
|
@@ -164,7 +164,7 @@ var v4_default = v4;
|
|
|
164
164
|
// package.json
|
|
165
165
|
var package_default = {
|
|
166
166
|
name: "raindrop-ai",
|
|
167
|
-
version: "0.0.
|
|
167
|
+
version: "0.0.31",
|
|
168
168
|
main: "dist/index.js",
|
|
169
169
|
module: "dist/index.mjs",
|
|
170
170
|
types: "dist/index.d.ts",
|
|
@@ -211,7 +211,7 @@ var package_default = {
|
|
|
211
211
|
zod: "^3.23.8"
|
|
212
212
|
},
|
|
213
213
|
peerDependencies: {
|
|
214
|
-
ai: "^
|
|
214
|
+
ai: "^2.1.17",
|
|
215
215
|
"@traceloop/node-server-sdk": "^0.12.2"
|
|
216
216
|
},
|
|
217
217
|
optionalDependencies: {
|
|
@@ -432,6 +432,9 @@ var createTracing = (analytics, _apiUrl, _writeKey, _options) => ({
|
|
|
432
432
|
if (!traceContext.eventId) {
|
|
433
433
|
traceContext.eventId = v4_default();
|
|
434
434
|
}
|
|
435
|
+
analytics._trackAiPartial({
|
|
436
|
+
...traceContext
|
|
437
|
+
});
|
|
435
438
|
return new NonLiveInteraction(
|
|
436
439
|
traceContext,
|
|
437
440
|
void 0,
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tracing,
|
|
3
3
|
v4_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PRJJKZIH.mjs";
|
|
5
5
|
|
|
6
6
|
// ../schemas/src/ingest/index.ts
|
|
7
7
|
import { z } from "zod";
|
|
@@ -28,11 +28,11 @@ var IdentifySchema = z.object({
|
|
|
28
28
|
}).strict();
|
|
29
29
|
var TrackEventSchema = z.object({
|
|
30
30
|
event_id: z.string(),
|
|
31
|
-
event: z.string(),
|
|
31
|
+
event: z.string().min(1, "Event name cannot be empty"),
|
|
32
32
|
properties: z.record(z.any()).optional(),
|
|
33
33
|
timestamp: z.coerce.date(),
|
|
34
34
|
received_at: z.coerce.date(),
|
|
35
|
-
user_id: z.coerce.string(),
|
|
35
|
+
user_id: z.coerce.string().min(1, "User ID cannot be empty"),
|
|
36
36
|
attachments: z.array(AttachmentSchema).optional()
|
|
37
37
|
}).strict();
|
|
38
38
|
var AiDataSchema = z.object({
|
|
@@ -84,7 +84,7 @@ var CategorizationRequestSchema = z.object({
|
|
|
84
84
|
// package.json
|
|
85
85
|
var package_default = {
|
|
86
86
|
name: "raindrop-ai",
|
|
87
|
-
version: "0.0.
|
|
87
|
+
version: "0.0.31",
|
|
88
88
|
main: "dist/index.js",
|
|
89
89
|
module: "dist/index.mjs",
|
|
90
90
|
types: "dist/index.d.ts",
|
|
@@ -131,7 +131,7 @@ var package_default = {
|
|
|
131
131
|
zod: "^3.23.8"
|
|
132
132
|
},
|
|
133
133
|
peerDependencies: {
|
|
134
|
-
ai: "^
|
|
134
|
+
ai: "^2.1.17",
|
|
135
135
|
"@traceloop/node-server-sdk": "^0.12.2"
|
|
136
136
|
},
|
|
137
137
|
optionalDependencies: {
|
package/dist/tracing/index.js
CHANGED
|
@@ -292,6 +292,9 @@ var createTracing = (analytics, _apiUrl, _writeKey, _options) => ({
|
|
|
292
292
|
if (!traceContext.eventId) {
|
|
293
293
|
traceContext.eventId = v4_default();
|
|
294
294
|
}
|
|
295
|
+
analytics._trackAiPartial({
|
|
296
|
+
...traceContext
|
|
297
|
+
});
|
|
295
298
|
return new NonLiveInteraction(
|
|
296
299
|
traceContext,
|
|
297
300
|
void 0,
|
package/dist/tracing/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "raindrop-ai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"zod": "^3.23.8"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"ai": "^
|
|
50
|
+
"ai": "^2.1.17",
|
|
51
51
|
"@traceloop/node-server-sdk": "^0.12.2"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|