@xpert-ai/contracts 3.37.0 → 3.38.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.
@@ -14,6 +14,12 @@ export interface IFileAssetSource {
14
14
  filePath?: string;
15
15
  metadata?: Record<string, any>;
16
16
  }
17
+ /** Serializable public failure details, independent of the upload transport. */
18
+ export interface IFileUploadFailure {
19
+ statusCode: number;
20
+ code?: string;
21
+ message: string | string[];
22
+ }
17
23
  export interface IFileAssetDestination {
18
24
  kind: FileAssetDestinationKind;
19
25
  status: 'success' | 'failed';
@@ -22,6 +28,7 @@ export interface IFileAssetDestination {
22
28
  referenceId?: string;
23
29
  metadata?: Record<string, any>;
24
30
  error?: string;
31
+ failure?: IFileUploadFailure;
25
32
  }
26
33
  export interface IFileAsset {
27
34
  name?: string;
@@ -39,7 +39,23 @@ export interface ITaskControlPublication extends IBasePerTenantAndOrganizationEn
39
39
  transport: TaskControlTransport;
40
40
  payload: unknown;
41
41
  result: unknown | null;
42
+ diagnostic?: TaskPublicationDiagnostic | null;
42
43
  nextAttemptAt: Date;
43
44
  publishedAt: Date | null;
44
45
  }
45
46
  export type TaskControlTransport = 'handoff' | 'managed-queue' | 'managed-queue-v3';
47
+ /** Safe publication evidence; never contains handler errors, payloads or credentials. */
48
+ export interface TaskPublicationDiagnostic {
49
+ code: 'schema' | 'worker' | 'handler' | 'protocol' | 'scope' | 'payload' | 'transport' | 'legacy_review' | 'receipt_recovered';
50
+ retryable: boolean;
51
+ recordedAt: string;
52
+ }
53
+ /** The callback returned; uncertain results do not authorize settlement or replay. */
54
+ export interface HandoffTaskReceipt {
55
+ version: 1;
56
+ kind: 'handoff-receipt';
57
+ workerId: string;
58
+ workerClaim: string;
59
+ outcome: 'succeeded' | 'failed' | 'uncertain';
60
+ result: unknown;
61
+ }
@@ -39,4 +39,6 @@ export interface XpertViewAssistantIdentity {
39
39
  currentId: string;
40
40
  versionIds: string[];
41
41
  principalUserId?: string | null;
42
+ /** Persisted Assistant ownership, independent of the viewer's selected organization. */
43
+ organizationId?: string | null;
42
44
  }