@raindrop-ai/ai-sdk 0.0.4 → 0.0.6

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/index.d.mts CHANGED
@@ -79,6 +79,8 @@ declare function currentSpan(): ContextSpan;
79
79
  */
80
80
  declare function withCurrent<R>(span: ContextSpan, callback: () => R): R;
81
81
 
82
+ declare function _resetWarnedMissingUserId(): void;
83
+
82
84
  /**
83
85
  * Options for creating event metadata for call-time context override.
84
86
  */
@@ -154,7 +156,7 @@ type RaindropAISDKOptions = {
154
156
  };
155
157
  };
156
158
  type RaindropAISDKContext = {
157
- userId: string;
159
+ userId?: string;
158
160
  eventId?: string;
159
161
  eventName?: string;
160
162
  convoId?: string;
@@ -247,4 +249,4 @@ type RaindropAISDKClient = {
247
249
  };
248
250
  declare function createRaindropAISDK(opts: RaindropAISDKOptions): RaindropAISDKClient;
249
251
 
250
- export { type AISDKMessage, type Attachment, type BuildEventPatch, ContextManager, type ContextSpan, type EventBuilder, type EventMetadataOptions, type IdentifyInput, type RaindropAISDKClient, type RaindropAISDKContext, type RaindropAISDKOptions, type WrapAISDKOptions, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent };
252
+ export { type AISDKMessage, type Attachment, type BuildEventPatch, ContextManager, type ContextSpan, type EventBuilder, type EventMetadataOptions, type IdentifyInput, type RaindropAISDKClient, type RaindropAISDKContext, type RaindropAISDKOptions, type WrapAISDKOptions, _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent };
package/dist/index.d.ts CHANGED
@@ -79,6 +79,8 @@ declare function currentSpan(): ContextSpan;
79
79
  */
80
80
  declare function withCurrent<R>(span: ContextSpan, callback: () => R): R;
81
81
 
82
+ declare function _resetWarnedMissingUserId(): void;
83
+
82
84
  /**
83
85
  * Options for creating event metadata for call-time context override.
84
86
  */
@@ -154,7 +156,7 @@ type RaindropAISDKOptions = {
154
156
  };
155
157
  };
156
158
  type RaindropAISDKContext = {
157
- userId: string;
159
+ userId?: string;
158
160
  eventId?: string;
159
161
  eventName?: string;
160
162
  convoId?: string;
@@ -247,4 +249,4 @@ type RaindropAISDKClient = {
247
249
  };
248
250
  declare function createRaindropAISDK(opts: RaindropAISDKOptions): RaindropAISDKClient;
249
251
 
250
- export { type AISDKMessage, type Attachment, type BuildEventPatch, ContextManager, type ContextSpan, type EventBuilder, type EventMetadataOptions, type IdentifyInput, type RaindropAISDKClient, type RaindropAISDKContext, type RaindropAISDKOptions, type WrapAISDKOptions, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent };
252
+ export { type AISDKMessage, type Attachment, type BuildEventPatch, ContextManager, type ContextSpan, type EventBuilder, type EventMetadataOptions, type IdentifyInput, type RaindropAISDKClient, type RaindropAISDKContext, type RaindropAISDKOptions, type WrapAISDKOptions, _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent };