@iota-uz/sdk 0.4.16 → 0.4.19

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.
@@ -175,6 +175,7 @@ interface Citation$1 {
175
175
  interface Attachment$1 {
176
176
  id?: string;
177
177
  clientKey: string;
178
+ uploadId?: number;
178
179
  filename: string;
179
180
  mimeType: string;
180
181
  sizeBytes: number;
@@ -242,6 +243,7 @@ interface SessionArtifact {
242
243
  id: string;
243
244
  sessionId: string;
244
245
  messageId?: string;
246
+ uploadId?: number;
245
247
  type: string;
246
248
  name: string;
247
249
  description?: string;
@@ -984,7 +986,7 @@ declare function DownloadCard({ artifact }: DownloadCardProps): react_jsx_runtim
984
986
  interface InlineQuestionFormProps {
985
987
  pendingQuestion: PendingQuestion$1;
986
988
  }
987
- declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element | null;
989
+ declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element;
988
990
 
989
991
  interface MessageInputRef {
990
992
  focus: () => void;
@@ -1435,6 +1437,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
1435
1437
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
1436
1438
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
1437
1439
  handleReset: () => void;
1440
+ handleFallbackError: (error: Error, errorInfo: ErrorInfo) => void;
1438
1441
  render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
1439
1442
  }
1440
1443
 
@@ -2915,6 +2918,7 @@ interface HttpDataSourceConfig {
2915
2918
  baseUrl: string;
2916
2919
  rpcEndpoint: string;
2917
2920
  streamEndpoint?: string;
2921
+ uploadEndpoint?: string;
2918
2922
  csrfToken?: string | (() => string);
2919
2923
  headers?: Record<string, string>;
2920
2924
  timeout?: number;
@@ -2948,6 +2952,10 @@ declare class HttpDataSource implements ChatDataSource {
2948
2952
  * Create headers for HTTP requests
2949
2953
  */
2950
2954
  private createHeaders;
2955
+ private createUploadHeaders;
2956
+ private uploadFile;
2957
+ private attachmentToFile;
2958
+ private ensureAttachmentUpload;
2951
2959
  private callRPC;
2952
2960
  /**
2953
2961
  * Create a new chat session
@@ -3107,6 +3115,7 @@ interface Artifact {
3107
3115
  id: string;
3108
3116
  sessionId: string;
3109
3117
  messageId?: string;
3118
+ uploadId?: number;
3110
3119
  type: string;
3111
3120
  name: string;
3112
3121
  description?: string;
@@ -3140,11 +3149,11 @@ interface AssistantTurn {
3140
3149
  createdAt: string;
3141
3150
  }
3142
3151
  interface Attachment {
3143
- id: string;
3144
- filename: string;
3145
- mimeType: string;
3146
- sizeBytes: number;
3147
- base64Data?: string;
3152
+ id?: string;
3153
+ uploadId?: number;
3154
+ filename?: string;
3155
+ mimeType?: string;
3156
+ sizeBytes?: number;
3148
3157
  url?: string;
3149
3158
  }
3150
3159
  interface Citation {
@@ -175,6 +175,7 @@ interface Citation$1 {
175
175
  interface Attachment$1 {
176
176
  id?: string;
177
177
  clientKey: string;
178
+ uploadId?: number;
178
179
  filename: string;
179
180
  mimeType: string;
180
181
  sizeBytes: number;
@@ -242,6 +243,7 @@ interface SessionArtifact {
242
243
  id: string;
243
244
  sessionId: string;
244
245
  messageId?: string;
246
+ uploadId?: number;
245
247
  type: string;
246
248
  name: string;
247
249
  description?: string;
@@ -984,7 +986,7 @@ declare function DownloadCard({ artifact }: DownloadCardProps): react_jsx_runtim
984
986
  interface InlineQuestionFormProps {
985
987
  pendingQuestion: PendingQuestion$1;
986
988
  }
987
- declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element | null;
989
+ declare function InlineQuestionForm({ pendingQuestion }: InlineQuestionFormProps): react_jsx_runtime.JSX.Element;
988
990
 
989
991
  interface MessageInputRef {
990
992
  focus: () => void;
@@ -1435,6 +1437,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
1435
1437
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
1436
1438
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
1437
1439
  handleReset: () => void;
1440
+ handleFallbackError: (error: Error, errorInfo: ErrorInfo) => void;
1438
1441
  render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
1439
1442
  }
1440
1443
 
@@ -2915,6 +2918,7 @@ interface HttpDataSourceConfig {
2915
2918
  baseUrl: string;
2916
2919
  rpcEndpoint: string;
2917
2920
  streamEndpoint?: string;
2921
+ uploadEndpoint?: string;
2918
2922
  csrfToken?: string | (() => string);
2919
2923
  headers?: Record<string, string>;
2920
2924
  timeout?: number;
@@ -2948,6 +2952,10 @@ declare class HttpDataSource implements ChatDataSource {
2948
2952
  * Create headers for HTTP requests
2949
2953
  */
2950
2954
  private createHeaders;
2955
+ private createUploadHeaders;
2956
+ private uploadFile;
2957
+ private attachmentToFile;
2958
+ private ensureAttachmentUpload;
2951
2959
  private callRPC;
2952
2960
  /**
2953
2961
  * Create a new chat session
@@ -3107,6 +3115,7 @@ interface Artifact {
3107
3115
  id: string;
3108
3116
  sessionId: string;
3109
3117
  messageId?: string;
3118
+ uploadId?: number;
3110
3119
  type: string;
3111
3120
  name: string;
3112
3121
  description?: string;
@@ -3140,11 +3149,11 @@ interface AssistantTurn {
3140
3149
  createdAt: string;
3141
3150
  }
3142
3151
  interface Attachment {
3143
- id: string;
3144
- filename: string;
3145
- mimeType: string;
3146
- sizeBytes: number;
3147
- base64Data?: string;
3152
+ id?: string;
3153
+ uploadId?: number;
3154
+ filename?: string;
3155
+ mimeType?: string;
3156
+ sizeBytes?: number;
3148
3157
  url?: string;
3149
3158
  }
3150
3159
  interface Citation {