raindrop-ai 0.0.43 → 0.0.44

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.
@@ -21,6 +21,7 @@ interface TrackEvent {
21
21
  type BasicSignal = {
22
22
  eventId: string;
23
23
  name: "thumbs_up" | "thumbs_down" | string;
24
+ sentiment?: "POSITIVE" | "NEGATIVE";
24
25
  timestamp?: string;
25
26
  properties?: {
26
27
  [key: string]: any;
@@ -21,6 +21,7 @@ interface TrackEvent {
21
21
  type BasicSignal = {
22
22
  eventId: string;
23
23
  name: "thumbs_up" | "thumbs_down" | string;
24
+ sentiment?: "POSITIVE" | "NEGATIVE";
24
25
  timestamp?: string;
25
26
  properties?: {
26
27
  [key: string]: any;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-CPL3oZVf.mjs';
1
+ export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-S4-ILTbE.mjs';
2
2
  import '@dawn/schemas/ingest';
3
3
  import '@opentelemetry/api';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-CPL3oZVf.js';
1
+ export { M as MAX_INGEST_SIZE_BYTES, R as Raindrop, R as default } from './index-S4-ILTbE.js';
2
2
  import '@dawn/schemas/ingest';
3
3
  import '@opentelemetry/api';
package/dist/index.js CHANGED
@@ -86,8 +86,9 @@ var SignalEventSchema = import_zod.z.object({
86
86
  event_id: import_zod.z.string(),
87
87
  signal_name: import_zod.z.string(),
88
88
  timestamp: import_zod.z.coerce.date().optional(),
89
- properties: import_zod.z.record(import_zod.z.any()).optional(),
90
- attachment_id: import_zod.z.string().optional(),
89
+ properties: import_zod.z.record(import_zod.z.any()).optional().nullable(),
90
+ attachment_id: import_zod.z.string().optional().nullable(),
91
+ sentiment: import_zod.z.enum(["POSITIVE", "NEGATIVE"]).optional().nullable(),
91
92
  signal_type: import_zod.z.enum(["default", "feedback", "edit", "standard"]).default("default")
92
93
  });
93
94
  var LegacyAiTrackEventSchema = TrackEventSchema.extend({
@@ -107,7 +108,7 @@ var CategorizationRequestSchema = import_zod.z.object({
107
108
  // package.json
108
109
  var package_default = {
109
110
  name: "raindrop-ai",
110
- version: "0.0.43",
111
+ version: "0.0.44",
111
112
  main: "dist/index.js",
112
113
  module: "dist/index.mjs",
113
114
  types: "dist/index.d.ts",
@@ -621,6 +622,7 @@ var Raindrop = class {
621
622
  event_id: s.eventId,
622
623
  signal_name: s.name,
623
624
  timestamp: s.timestamp,
625
+ sentiment: s.sentiment,
624
626
  properties: {
625
627
  ...s.properties,
626
628
  ..."comment" in s ? { comment: s.comment } : {},
package/dist/index.mjs CHANGED
@@ -62,8 +62,9 @@ var SignalEventSchema = z.object({
62
62
  event_id: z.string(),
63
63
  signal_name: z.string(),
64
64
  timestamp: z.coerce.date().optional(),
65
- properties: z.record(z.any()).optional(),
66
- attachment_id: z.string().optional(),
65
+ properties: z.record(z.any()).optional().nullable(),
66
+ attachment_id: z.string().optional().nullable(),
67
+ sentiment: z.enum(["POSITIVE", "NEGATIVE"]).optional().nullable(),
67
68
  signal_type: z.enum(["default", "feedback", "edit", "standard"]).default("default")
68
69
  });
69
70
  var LegacyAiTrackEventSchema = TrackEventSchema.extend({
@@ -83,7 +84,7 @@ var CategorizationRequestSchema = z.object({
83
84
  // package.json
84
85
  var package_default = {
85
86
  name: "raindrop-ai",
86
- version: "0.0.43",
87
+ version: "0.0.44",
87
88
  main: "dist/index.js",
88
89
  module: "dist/index.mjs",
89
90
  types: "dist/index.d.ts",
@@ -427,6 +428,7 @@ var Raindrop = class {
427
428
  event_id: s.eventId,
428
429
  signal_name: s.name,
429
430
  timestamp: s.timestamp,
431
+ sentiment: s.sentiment,
430
432
  properties: {
431
433
  ...s.properties,
432
434
  ..."comment" in s ? { comment: s.comment } : {},
@@ -1,5 +1,5 @@
1
1
  import * as traceloop from '@traceloop/node-server-sdk';
2
- import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction } from '../index-CPL3oZVf.mjs';
2
+ import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction } from '../index-S4-ILTbE.mjs';
3
3
  import '@dawn/schemas/ingest';
4
4
  import '@opentelemetry/api';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as traceloop from '@traceloop/node-server-sdk';
2
- import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction } from '../index-CPL3oZVf.js';
2
+ import { R as Raindrop, P as PartialAiTrackEvent, I as Interaction } from '../index-S4-ILTbE.js';
3
3
  import '@dawn/schemas/ingest';
4
4
  import '@opentelemetry/api';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -60,4 +60,4 @@
60
60
  "dts": true,
61
61
  "clean": true
62
62
  }
63
- }
63
+ }