@xpert-ai/contracts 3.28.0 → 3.29.0

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.
@@ -0,0 +1,65 @@
1
+ /** Explicit Artifact source identity for platform-owned conversation snapshots. */
2
+ export declare const CONVERSATION_SHARE_ARTIFACT_SOURCE: {
3
+ readonly pluginName: "@xpert-ai/platform";
4
+ readonly resourceType: "conversation_snapshot";
5
+ };
6
+ /** A share contains inert text only; it never grants access to the original conversation. */
7
+ export type ConversationShareAudience = 'organization' | 'public';
8
+ export interface ConversationShareSnapshot {
9
+ title: string;
10
+ messages: {
11
+ role: 'human' | 'ai';
12
+ text: string;
13
+ }[];
14
+ }
15
+ export interface ConversationSharePreview {
16
+ snapshot: ConversationShareSnapshot;
17
+ digest: string;
18
+ publicSharingEnabled: boolean;
19
+ managementUrl?: string;
20
+ }
21
+ export interface ConversationShareCreate {
22
+ threadId: string;
23
+ digest: string;
24
+ audience: ConversationShareAudience;
25
+ expiresInDays: 1 | 7 | 30;
26
+ acknowledgePublic?: boolean;
27
+ }
28
+ export interface ConversationShareInfo {
29
+ id: string;
30
+ audience: ConversationShareAudience;
31
+ createdAt: string;
32
+ expiresAt: string;
33
+ /** Owner-only URL. Absent when the share is unavailable. */
34
+ url?: string;
35
+ }
36
+ export interface ConversationShareCreated extends ConversationShareInfo {
37
+ url: string;
38
+ }
39
+ export interface SharedConversation extends ConversationShareSnapshot {
40
+ sharedAt: string;
41
+ expiresAt: string;
42
+ audience: ConversationShareAudience;
43
+ }
44
+ export interface ManagedConversationShare extends ConversationShareInfo {
45
+ title: string;
46
+ type: 'conversation';
47
+ status: 'active' | 'expired' | 'unavailable';
48
+ }
49
+ export interface ConversationShareListQuery {
50
+ limit?: number;
51
+ offset?: number;
52
+ search?: string;
53
+ before?: string;
54
+ }
55
+ export interface ConversationShareList {
56
+ items: ManagedConversationShare[];
57
+ total: number;
58
+ totalAll: number;
59
+ /** Server cutoff retained across pagination and bulk revocation. */
60
+ asOf: string;
61
+ }
62
+ export interface ConversationShareRevokeAll {
63
+ confirmation: 'revoke-all';
64
+ before: string;
65
+ }