@paymanai/payman-ask-sdk 1.2.24 → 1.2.26
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 +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +601 -151
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -152
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +47 -0
- package/dist/index.native.js.map +1 -1
- package/dist/styles.css +79 -21
- package/dist/styles.css.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -452,4 +452,23 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
452
452
|
*/
|
|
453
453
|
declare function formatDate(timestamp: string | Date): string;
|
|
454
454
|
|
|
455
|
-
|
|
455
|
+
interface ChatSessionContext {
|
|
456
|
+
sessionId?: string;
|
|
457
|
+
sessionOwnerId?: string;
|
|
458
|
+
workflowName?: string;
|
|
459
|
+
executionId?: string;
|
|
460
|
+
cfRay?: string;
|
|
461
|
+
route?: string;
|
|
462
|
+
customerId?: string;
|
|
463
|
+
customerEmail?: string;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Reports an error to Sentry enriched with chat session context.
|
|
467
|
+
* Tags and context are scoped to this event so they don't leak
|
|
468
|
+
* to unrelated errors.
|
|
469
|
+
*
|
|
470
|
+
* No-op when Sentry is not initialised.
|
|
471
|
+
*/
|
|
472
|
+
declare function captureSentryError(error: Error | string, context: ChatSessionContext): void;
|
|
473
|
+
|
|
474
|
+
export { type AgentMessageProps, type AssistantMessageActionsConfig, type ChatCallbacks, type ChatConfig, type ChatHeaderProps, type ChatInputProps, type ChatSessionContext, type MessageActionsConfig, type MessageListProps, type MessageListV2Props, type MessageRowProps, type OtpInputProps, PaymanChat, PaymanChatContext, type PaymanChatContextValue, type PaymanChatProps, type PaymanChatRef, type StreamingMessageProps, type UserActionModalProps, type UserMessageActionsConfig, type UserMessageProps, captureSentryError, cn, formatDate, usePaymanChat };
|
package/dist/index.d.ts
CHANGED
|
@@ -452,4 +452,23 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
452
452
|
*/
|
|
453
453
|
declare function formatDate(timestamp: string | Date): string;
|
|
454
454
|
|
|
455
|
-
|
|
455
|
+
interface ChatSessionContext {
|
|
456
|
+
sessionId?: string;
|
|
457
|
+
sessionOwnerId?: string;
|
|
458
|
+
workflowName?: string;
|
|
459
|
+
executionId?: string;
|
|
460
|
+
cfRay?: string;
|
|
461
|
+
route?: string;
|
|
462
|
+
customerId?: string;
|
|
463
|
+
customerEmail?: string;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Reports an error to Sentry enriched with chat session context.
|
|
467
|
+
* Tags and context are scoped to this event so they don't leak
|
|
468
|
+
* to unrelated errors.
|
|
469
|
+
*
|
|
470
|
+
* No-op when Sentry is not initialised.
|
|
471
|
+
*/
|
|
472
|
+
declare function captureSentryError(error: Error | string, context: ChatSessionContext): void;
|
|
473
|
+
|
|
474
|
+
export { type AgentMessageProps, type AssistantMessageActionsConfig, type ChatCallbacks, type ChatConfig, type ChatHeaderProps, type ChatInputProps, type ChatSessionContext, type MessageActionsConfig, type MessageListProps, type MessageListV2Props, type MessageRowProps, type OtpInputProps, PaymanChat, PaymanChatContext, type PaymanChatContextValue, type PaymanChatProps, type PaymanChatRef, type StreamingMessageProps, type UserActionModalProps, type UserMessageActionsConfig, type UserMessageProps, captureSentryError, cn, formatDate, usePaymanChat };
|