@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/README.md +9 -2
- package/dist/{chunk-RE7BC2GC.mjs → chunk-5S6OYWE3.mjs} +448 -267
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +448 -266
- package/dist/index.mjs +1 -1
- package/dist/index.node.d.mts +1 -1
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.js +448 -266
- package/dist/index.node.mjs +1 -1
- package/dist/index.workers.d.mts +1 -1
- package/dist/index.workers.d.ts +1 -1
- package/dist/index.workers.js +448 -266
- package/dist/index.workers.mjs +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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 };
|