@epam/ai-dial-chat-shared 1.0.4 → 1.0.5

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.
@@ -2,7 +2,10 @@
2
2
  export declare enum ConversationTransferJobStatus {
3
3
  InProgress = "inProgress",
4
4
  Success = "success",
5
- Failed = "failed"
5
+ /** Delivered its file, but not everything the user asked for made it in. */
6
+ Warning = "warning",
7
+ Failed = "failed",
8
+ Canceled = "canceled"
6
9
  }
7
10
  /** Whether a transfer job's subject is a single named conversation or the whole history. */
8
11
  export declare enum ConversationTransferSubjectKind {
@@ -19,10 +22,73 @@ export type ConversationTransferSubject = {
19
22
  } | {
20
23
  kind: ConversationTransferSubjectKind.All;
21
24
  };
25
+ /** Reason a transfer job failed. Translation-free; hosts map each member to their own copy. */
26
+ export declare enum ConversationTransferErrorCode {
27
+ Unauthorized = "unauthorized",
28
+ NotFound = "notFound",
29
+ UnsupportedFormat = "unsupportedFormat",
30
+ MissingBucket = "missingBucket",
31
+ FileTooLarge = "fileTooLarge",
32
+ Unknown = "unknown"
33
+ }
34
+ /**
35
+ * Reason a transfer job completed with a non-fatal warning. Translation-free;
36
+ * hosts map each member to their own copy.
37
+ */
38
+ export declare enum ConversationTransferWarningCode {
39
+ AttachmentSkipped = "attachmentSkipped"
40
+ }
41
+ /** What one unit of a transfer job's discoverable work represents. */
42
+ export declare enum ConversationTransferUnitKind {
43
+ Attachment = "attachment",
44
+ Conversation = "conversation"
45
+ }
46
+ /**
47
+ * Countable progress within the phase a job is currently working through —
48
+ * downloaded/uploaded attachments, or fetched/saved conversations. Describes
49
+ * only that phase, never the job as a whole.
50
+ */
51
+ export interface ConversationTransferProgressUnits {
52
+ /** Units settled so far in the current phase. */
53
+ completed: number;
54
+ /** Units the current phase will settle in total. */
55
+ total: number;
56
+ /** What a unit represents. */
57
+ kind: ConversationTransferUnitKind;
58
+ }
59
+ /**
60
+ * A transfer job's completion, always determinate — there is no indeterminate
61
+ * state, so a job is renderable as a real percentage from its first frame.
62
+ */
63
+ export interface ConversationTransferProgress {
64
+ /**
65
+ * Completion as an integer 0–100. Monotonically non-decreasing for the life
66
+ * of a job id: a write that would lower it is discarded rather than applied,
67
+ * so a discovered unit count can subdivide the work still to do but can
68
+ * never move the indicator backwards.
69
+ */
70
+ percent: number;
71
+ /**
72
+ * Readout for the phase currently advancing, for assistive technology.
73
+ * Absent while the phase's unit count is unknown.
74
+ */
75
+ units?: ConversationTransferProgressUnits;
76
+ }
22
77
  /** A queued export or import job. */
23
78
  export interface ConversationTransferJob {
24
79
  id: string;
25
80
  subject: ConversationTransferSubject;
26
81
  status: ConversationTransferJobStatus;
82
+ /** Name of the file this job writes (export) or reads (import), known at enqueue time. */
83
+ fileName: string;
84
+ /** Determinate completion of this job. */
85
+ progress: ConversationTransferProgress;
86
+ /** Why the job failed. Set only alongside {@link ConversationTransferJobStatus.Failed}. */
87
+ errorCode?: ConversationTransferErrorCode;
88
+ /**
89
+ * What was incomplete about an otherwise-delivered job. Set only alongside
90
+ * {@link ConversationTransferJobStatus.Warning}.
91
+ */
92
+ warningCode?: ConversationTransferWarningCode;
27
93
  }
28
94
  //# sourceMappingURL=conversation-transfer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-transfer.d.ts","sourceRoot":"","sources":["../../src/models/conversation-transfer.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,oBAAY,6BAA6B;IACvC,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,4FAA4F;AAC5F,oBAAY,+BAA+B;IACzC,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,6FAA6F;AAC7F,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,+BAA+B,CAAC,MAAM,CAAC;IAC7C,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IAAE,IAAI,EAAE,+BAA+B,CAAC,GAAG,CAAA;CAAE,CAAC;AAElD,qCAAqC;AACrC,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,2BAA2B,CAAC;IACrC,MAAM,EAAE,6BAA6B,CAAC;CACvC"}
1
+ {"version":3,"file":"conversation-transfer.d.ts","sourceRoot":"","sources":["../../src/models/conversation-transfer.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,oBAAY,6BAA6B;IACvC,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,4EAA4E;IAC5E,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,4FAA4F;AAC5F,oBAAY,+BAA+B;IACzC,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,6FAA6F;AAC7F,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,+BAA+B,CAAC,MAAM,CAAC;IAC7C,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GACD;IAAE,IAAI,EAAE,+BAA+B,CAAC,GAAG,CAAA;CAAE,CAAC;AAElD,+FAA+F;AAC/F,oBAAY,6BAA6B;IACvC,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,OAAO,YAAY;CACpB;AAED;;;GAGG;AACH,oBAAY,+BAA+B;IACzC,iBAAiB,sBAAsB;CACxC;AAED,sEAAsE;AACtE,oBAAY,4BAA4B;IACtC,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,iCAAiC,CAAC;CAC3C;AAED,qCAAqC;AACrC,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,2BAA2B,CAAC;IACrC,MAAM,EAAE,6BAA6B,CAAC;IACtC,0FAA0F;IAC1F,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,EAAE,4BAA4B,CAAC;IACvC,2FAA2F;IAC3F,SAAS,CAAC,EAAE,6BAA6B,CAAC;IAC1C;;;OAGG;IACH,WAAW,CAAC,EAAE,+BAA+B,CAAC;CAC/C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-shared",
3
3
  "description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",