@aiquants/chat 0.3.0 → 0.4.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.
- package/CHANGELOG.md +21 -0
- package/README.md +40 -3
- package/dist/{ChatAnswerHtml-UNWOOMYK.js → ChatAnswerHtml-NAD7XPMQ.js} +1 -1
- package/dist/chunk-BTDHRYBO.js +1 -0
- package/dist/react.cjs +2 -2
- package/dist/react.d.cts +156 -100
- package/dist/react.d.ts +156 -100
- package/dist/react.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-5MWD2PSY.js +0 -1
package/dist/react.d.cts
CHANGED
|
@@ -249,50 +249,6 @@ type ChatComposerProblem = {
|
|
|
249
249
|
} | {
|
|
250
250
|
readonly cause: "incompatible";
|
|
251
251
|
});
|
|
252
|
-
type ChatComposerPhase = "ready" | "sending" | "running" | "stopping";
|
|
253
|
-
type ChatComposerRestore = {
|
|
254
|
-
readonly modelName: string;
|
|
255
|
-
readonly onRestore: () => void;
|
|
256
|
-
};
|
|
257
|
-
type ChatComposerLimits = ChatAttachmentLimits & Readonly<Pick<Record<ChatLimitKey, number>, "CHAT_USER_MESSAGE_MAX_CHARS">>;
|
|
258
|
-
type ChatComposerAttachments = {
|
|
259
|
-
readonly items: readonly ChatComposerAttachment[];
|
|
260
|
-
readonly model: ChatModelAttachmentFlags | null;
|
|
261
|
-
readonly onAdd: (files: readonly File[]) => void;
|
|
262
|
-
readonly onRemove: (key: string) => void;
|
|
263
|
-
readonly onRetry: (key: string) => void;
|
|
264
|
-
readonly onSaveAltText: ChatComposerSaveAltText;
|
|
265
|
-
readonly restore: ChatComposerRestore | null;
|
|
266
|
-
readonly microphone: ChatMicrophone | null;
|
|
267
|
-
};
|
|
268
|
-
type ChatComposerProps = {
|
|
269
|
-
readonly value: string;
|
|
270
|
-
readonly onValueChange: (value: string) => void;
|
|
271
|
-
readonly phase: ChatComposerPhase;
|
|
272
|
-
readonly runElsewhere: boolean;
|
|
273
|
-
readonly onSend: (text: string) => void;
|
|
274
|
-
readonly onStop: () => void;
|
|
275
|
-
readonly notice: ChatStreamNotice | null;
|
|
276
|
-
readonly onNoticeAction: (action: ChatStreamNoticeAction) => void;
|
|
277
|
-
readonly problem: ChatComposerProblem | null;
|
|
278
|
-
readonly attachments: ChatComposerAttachments;
|
|
279
|
-
readonly limits: ChatComposerLimits;
|
|
280
|
-
readonly sendKey: ChatVocabulary<"send_keys">;
|
|
281
|
-
readonly contentBaseUrl: string;
|
|
282
|
-
readonly inputRef: RefObject<HTMLTextAreaElement | null> | null;
|
|
283
|
-
readonly testId: string;
|
|
284
|
-
};
|
|
285
|
-
declare const ChatComposer: (props: ChatComposerProps) => react.JSX.Element;
|
|
286
|
-
type ChatConsentConversationProps = {
|
|
287
|
-
readonly transport: ChatTransport;
|
|
288
|
-
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
289
|
-
readonly conversationUid: string;
|
|
290
|
-
readonly onChanged: () => void;
|
|
291
|
-
readonly onDeleted: (conversation: ChatConversation) => void;
|
|
292
|
-
readonly headingLevel: 1 | 2 | 3;
|
|
293
|
-
readonly testId: string;
|
|
294
|
-
};
|
|
295
|
-
declare const ChatConsentConversation: (props: ChatConsentConversationProps) => ReactNode;
|
|
296
252
|
type ChatTextLanguage = "ja" | "en" | "screen";
|
|
297
253
|
type ChatMessageAuthor = {
|
|
298
254
|
readonly role: "user";
|
|
@@ -301,60 +257,6 @@ type ChatMessageAuthor = {
|
|
|
301
257
|
readonly model: string | null;
|
|
302
258
|
readonly status: ChatAnswerStatus;
|
|
303
259
|
};
|
|
304
|
-
type ChatSendOptions = {
|
|
305
|
-
readonly transport: ChatTransport;
|
|
306
|
-
readonly window: ChatConversationWindow;
|
|
307
|
-
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
308
|
-
};
|
|
309
|
-
type ChatSendMessage = {
|
|
310
|
-
readonly text: string;
|
|
311
|
-
readonly attachmentIds: readonly string[];
|
|
312
|
-
};
|
|
313
|
-
type ChatSendOutcome = "accepted" | "not-sent";
|
|
314
|
-
type ChatRewriteKind = "edit" | "regenerate";
|
|
315
|
-
type ChatRewriteOutcome = {
|
|
316
|
-
readonly kind: "accepted";
|
|
317
|
-
readonly siblingUid: string;
|
|
318
|
-
} | {
|
|
319
|
-
readonly kind: "not-sent";
|
|
320
|
-
};
|
|
321
|
-
type ChatRewriteProblem = {
|
|
322
|
-
readonly messageUid: string;
|
|
323
|
-
readonly kind: ChatRewriteKind;
|
|
324
|
-
readonly occurrence: number;
|
|
325
|
-
} & ({
|
|
326
|
-
readonly cause: "unreached";
|
|
327
|
-
} | {
|
|
328
|
-
readonly cause: "refused";
|
|
329
|
-
readonly refusal: ChatRefusal;
|
|
330
|
-
} | {
|
|
331
|
-
readonly cause: "incompatible";
|
|
332
|
-
});
|
|
333
|
-
type ChatRewriteState = {
|
|
334
|
-
readonly pending: {
|
|
335
|
-
readonly messageUid: string;
|
|
336
|
-
readonly kind: ChatRewriteKind;
|
|
337
|
-
} | null;
|
|
338
|
-
readonly accepted: {
|
|
339
|
-
readonly messageUid: string;
|
|
340
|
-
readonly kind: ChatRewriteKind;
|
|
341
|
-
readonly siblingUid: string;
|
|
342
|
-
} | null;
|
|
343
|
-
readonly problem: ChatRewriteProblem | null;
|
|
344
|
-
readonly block: "sending" | "writing" | null;
|
|
345
|
-
};
|
|
346
|
-
type ChatSend = {
|
|
347
|
-
readonly phase: ChatComposerPhase;
|
|
348
|
-
readonly problem: ChatComposerProblem | null;
|
|
349
|
-
readonly runElsewhere: boolean;
|
|
350
|
-
readonly sentMessageUid: string | null;
|
|
351
|
-
readonly send: (message: ChatSendMessage) => Promise<ChatSendOutcome>;
|
|
352
|
-
readonly edit: (messageUid: string, message: ChatSendMessage) => Promise<ChatRewriteOutcome>;
|
|
353
|
-
readonly regenerate: (messageUid: string) => Promise<ChatRewriteOutcome>;
|
|
354
|
-
readonly rewrite: ChatRewriteState;
|
|
355
|
-
readonly stop: () => void;
|
|
356
|
-
};
|
|
357
|
-
declare const useChatSend: (options: ChatSendOptions) => ChatSend;
|
|
358
260
|
type ChatListMessage = {
|
|
359
261
|
readonly messageUid: string;
|
|
360
262
|
readonly author: ChatMessageAuthor;
|
|
@@ -393,9 +295,17 @@ type ChatMessageListProps = {
|
|
|
393
295
|
readonly rewrite: ChatRewriteState;
|
|
394
296
|
readonly messageActionsDisplay: ChatVocabulary<"message_actions_displays">;
|
|
395
297
|
readonly sendKey: ChatVocabulary<"send_keys">;
|
|
298
|
+
readonly landing: ChatMessageLanding | null;
|
|
299
|
+
readonly messageHrefOf: (messageUid: string) => string;
|
|
396
300
|
readonly testId: string;
|
|
397
301
|
};
|
|
398
|
-
|
|
302
|
+
type ChatMessageLanding = {
|
|
303
|
+
readonly messageUid: string;
|
|
304
|
+
readonly focus: boolean;
|
|
305
|
+
readonly marked: boolean;
|
|
306
|
+
readonly occurrence: number;
|
|
307
|
+
};
|
|
308
|
+
declare const ChatMessageList: ({ messages, notificationLevel, followScroll, reduceMotion, sentMessageUid, labelledBy, headingLevel, limits, older, onLoadOlder, olderReading, olderFailure, onSwitchBranch, branchSwitch, onEditMessage, onRegenerateMessage, rewrite, messageActionsDisplay, sendKey, landing, messageHrefOf, testId, }: ChatMessageListProps) => react.JSX.Element;
|
|
399
309
|
type ChatConversationOptions = {
|
|
400
310
|
readonly transport: ChatTransport;
|
|
401
311
|
readonly streams: ChatRunStreams;
|
|
@@ -430,7 +340,46 @@ type ChatConversationWindow = {
|
|
|
430
340
|
readonly switchBranch: (messageUid: string, siblingUid: string) => Promise<ChatBranchSwitchOutcome>;
|
|
431
341
|
readonly branchSwitch: ChatBranchSwitchState;
|
|
432
342
|
readonly runElsewhere: boolean;
|
|
343
|
+
readonly path: ChatWindowPath;
|
|
344
|
+
readonly goTo: (messageUid: string, via: ChatGoToVia) => Promise<ChatGoToOutcome>;
|
|
345
|
+
readonly chooseBranch: () => Promise<boolean>;
|
|
346
|
+
readonly returnToChosen: () => Promise<boolean>;
|
|
347
|
+
readonly pathChange: ChatPathChangeState;
|
|
348
|
+
};
|
|
349
|
+
type ChatWindowPath = {
|
|
350
|
+
readonly kind: "chosen";
|
|
351
|
+
} | {
|
|
352
|
+
readonly kind: "branch";
|
|
353
|
+
readonly endMessageUid: string;
|
|
354
|
+
};
|
|
355
|
+
type ChatGoToVia = "link" | "screen";
|
|
356
|
+
type ChatGoToOutcome = "shown" | "missing" | "not-gone";
|
|
357
|
+
type ChatPathChangeState = {
|
|
358
|
+
readonly going: {
|
|
359
|
+
readonly messageUid: string;
|
|
360
|
+
} | null;
|
|
361
|
+
readonly choosing: boolean;
|
|
362
|
+
readonly returning: boolean;
|
|
363
|
+
readonly problem: ChatPathChangeProblem | null;
|
|
433
364
|
};
|
|
365
|
+
type ChatPathChangeFailure = {
|
|
366
|
+
readonly cause: "unreached";
|
|
367
|
+
} | {
|
|
368
|
+
readonly cause: "refused";
|
|
369
|
+
readonly refusal: ChatRefusal;
|
|
370
|
+
} | {
|
|
371
|
+
readonly cause: "incompatible";
|
|
372
|
+
};
|
|
373
|
+
type ChatPathChangeProblem = ({
|
|
374
|
+
readonly change: "go-to";
|
|
375
|
+
readonly via: ChatGoToVia;
|
|
376
|
+
readonly occurrence: number;
|
|
377
|
+
} & ({
|
|
378
|
+
readonly cause: "missing";
|
|
379
|
+
} | ChatPathChangeFailure)) | ({
|
|
380
|
+
readonly change: "choose" | "return";
|
|
381
|
+
readonly occurrence: number;
|
|
382
|
+
} & ChatPathChangeFailure);
|
|
434
383
|
type ChatBranchSwitchState = {
|
|
435
384
|
readonly switching: {
|
|
436
385
|
readonly messageUid: string;
|
|
@@ -455,6 +404,107 @@ type ChatOlderFailure = {
|
|
|
455
404
|
readonly occurrence: number;
|
|
456
405
|
};
|
|
457
406
|
declare const useChatConversation: (options: ChatConversationOptions) => ChatConversationWindow;
|
|
407
|
+
type ChatSendOptions = {
|
|
408
|
+
readonly transport: ChatTransport;
|
|
409
|
+
readonly window: ChatConversationWindow;
|
|
410
|
+
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
411
|
+
};
|
|
412
|
+
type ChatSendMessage = {
|
|
413
|
+
readonly text: string;
|
|
414
|
+
readonly attachmentIds: readonly string[];
|
|
415
|
+
};
|
|
416
|
+
type ChatSendOutcome = "accepted" | "not-sent";
|
|
417
|
+
type ChatSendPathBlock = "branch" | "going";
|
|
418
|
+
type ChatRewriteKind = "edit" | "regenerate";
|
|
419
|
+
type ChatRewriteOutcome = {
|
|
420
|
+
readonly kind: "accepted";
|
|
421
|
+
readonly siblingUid: string;
|
|
422
|
+
} | {
|
|
423
|
+
readonly kind: "not-sent";
|
|
424
|
+
};
|
|
425
|
+
type ChatRewriteProblem = {
|
|
426
|
+
readonly messageUid: string;
|
|
427
|
+
readonly kind: ChatRewriteKind;
|
|
428
|
+
readonly occurrence: number;
|
|
429
|
+
} & ({
|
|
430
|
+
readonly cause: "unreached";
|
|
431
|
+
} | {
|
|
432
|
+
readonly cause: "refused";
|
|
433
|
+
readonly refusal: ChatRefusal;
|
|
434
|
+
} | {
|
|
435
|
+
readonly cause: "incompatible";
|
|
436
|
+
});
|
|
437
|
+
type ChatRewriteState = {
|
|
438
|
+
readonly pending: {
|
|
439
|
+
readonly messageUid: string;
|
|
440
|
+
readonly kind: ChatRewriteKind;
|
|
441
|
+
} | null;
|
|
442
|
+
readonly accepted: {
|
|
443
|
+
readonly messageUid: string;
|
|
444
|
+
readonly kind: ChatRewriteKind;
|
|
445
|
+
readonly siblingUid: string;
|
|
446
|
+
} | null;
|
|
447
|
+
readonly problem: ChatRewriteProblem | null;
|
|
448
|
+
readonly block: "sending" | ChatSendPathBlock | "writing" | null;
|
|
449
|
+
};
|
|
450
|
+
type ChatSend = {
|
|
451
|
+
readonly phase: ChatComposerPhase;
|
|
452
|
+
readonly problem: ChatComposerProblem | null;
|
|
453
|
+
readonly runElsewhere: boolean;
|
|
454
|
+
readonly pathBlock: ChatSendPathBlock | null;
|
|
455
|
+
readonly sentMessageUid: string | null;
|
|
456
|
+
readonly send: (message: ChatSendMessage) => Promise<ChatSendOutcome>;
|
|
457
|
+
readonly edit: (messageUid: string, message: ChatSendMessage) => Promise<ChatRewriteOutcome>;
|
|
458
|
+
readonly regenerate: (messageUid: string) => Promise<ChatRewriteOutcome>;
|
|
459
|
+
readonly rewrite: ChatRewriteState;
|
|
460
|
+
readonly stop: () => void;
|
|
461
|
+
};
|
|
462
|
+
declare const useChatSend: (options: ChatSendOptions) => ChatSend;
|
|
463
|
+
type ChatComposerPhase = "ready" | "sending" | "running" | "stopping";
|
|
464
|
+
type ChatComposerRestore = {
|
|
465
|
+
readonly modelName: string;
|
|
466
|
+
readonly onRestore: () => void;
|
|
467
|
+
};
|
|
468
|
+
type ChatComposerLimits = ChatAttachmentLimits & Readonly<Pick<Record<ChatLimitKey, number>, "CHAT_USER_MESSAGE_MAX_CHARS">>;
|
|
469
|
+
type ChatComposerAttachments = {
|
|
470
|
+
readonly items: readonly ChatComposerAttachment[];
|
|
471
|
+
readonly model: ChatModelAttachmentFlags | null;
|
|
472
|
+
readonly onAdd: (files: readonly File[]) => void;
|
|
473
|
+
readonly onRemove: (key: string) => void;
|
|
474
|
+
readonly onRetry: (key: string) => void;
|
|
475
|
+
readonly onSaveAltText: ChatComposerSaveAltText;
|
|
476
|
+
readonly restore: ChatComposerRestore | null;
|
|
477
|
+
readonly microphone: ChatMicrophone | null;
|
|
478
|
+
};
|
|
479
|
+
type ChatComposerProps = {
|
|
480
|
+
readonly value: string;
|
|
481
|
+
readonly onValueChange: (value: string) => void;
|
|
482
|
+
readonly phase: ChatComposerPhase;
|
|
483
|
+
readonly runElsewhere: boolean;
|
|
484
|
+
readonly pathBlock: ChatSendPathBlock | null;
|
|
485
|
+
readonly onSend: (text: string) => void;
|
|
486
|
+
readonly onStop: () => void;
|
|
487
|
+
readonly notice: ChatStreamNotice | null;
|
|
488
|
+
readonly onNoticeAction: (action: ChatStreamNoticeAction) => void;
|
|
489
|
+
readonly problem: ChatComposerProblem | null;
|
|
490
|
+
readonly attachments: ChatComposerAttachments;
|
|
491
|
+
readonly limits: ChatComposerLimits;
|
|
492
|
+
readonly sendKey: ChatVocabulary<"send_keys">;
|
|
493
|
+
readonly contentBaseUrl: string;
|
|
494
|
+
readonly inputRef: RefObject<HTMLTextAreaElement | null> | null;
|
|
495
|
+
readonly testId: string;
|
|
496
|
+
};
|
|
497
|
+
declare const ChatComposer: (props: ChatComposerProps) => react.JSX.Element;
|
|
498
|
+
type ChatConsentConversationProps = {
|
|
499
|
+
readonly transport: ChatTransport;
|
|
500
|
+
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
501
|
+
readonly conversationUid: string;
|
|
502
|
+
readonly onChanged: () => void;
|
|
503
|
+
readonly onDeleted: (conversation: ChatConversation) => void;
|
|
504
|
+
readonly headingLevel: 1 | 2 | 3;
|
|
505
|
+
readonly testId: string;
|
|
506
|
+
};
|
|
507
|
+
declare const ChatConsentConversation: (props: ChatConsentConversationProps) => ReactNode;
|
|
458
508
|
type ChatConversationGateProps = {
|
|
459
509
|
readonly conversation: ChatConversationWindow;
|
|
460
510
|
readonly onReopen: () => void;
|
|
@@ -737,6 +787,12 @@ type ChatSettingsGateProps = {
|
|
|
737
787
|
readonly testId: string;
|
|
738
788
|
};
|
|
739
789
|
declare const ChatSettingsGate: ({ settings, focusAfterOpen, children, testId }: ChatSettingsGateProps) => ReactNode;
|
|
790
|
+
type ChatShownBranchBandProps = {
|
|
791
|
+
readonly window: Pick<ChatConversationWindow, "path" | "pathChange" | "branchSwitch" | "chooseBranch" | "returnToChosen">;
|
|
792
|
+
readonly focusAfterChange: RefObject<HTMLElement | null>;
|
|
793
|
+
readonly testId: string;
|
|
794
|
+
};
|
|
795
|
+
declare const ChatShownBranchBand: ({ window: conversationWindow, focusAfterChange, testId }: ChatShownBranchBandProps) => react.JSX.Element | null;
|
|
740
796
|
type ChatTalkFlowProps = {
|
|
741
797
|
readonly children: ReactNode;
|
|
742
798
|
readonly testId: string;
|
|
@@ -782,4 +838,4 @@ type ChatComposerAttachmentsState = {
|
|
|
782
838
|
declare const useChatComposerAttachments: (options: ChatComposerAttachmentsOptions) => ChatComposerAttachmentsState;
|
|
783
839
|
declare const useChatConversationCreatedAnnouncer: () => (() => void);
|
|
784
840
|
declare const useChatConversationDeletedAnnouncer: () => ((conversation: Pick<ChatConversation, "title">) => void);
|
|
785
|
-
export { CHAT_LAYOUT, type ChatAnswerRenderLimits, ChatAnswerRendering, type ChatAnswerRenderingProps, type ChatAnswerStatus, type ChatAttachmentLimits, type ChatAttachmentPrecheckRefusal, type ChatBranchSwitchOutcome, type ChatBranchSwitchProblem, type ChatBranchSwitchState, type ChatChoosableModel, ChatComposer, type ChatComposerAltTextOutcome, type ChatComposerAttachment, type ChatComposerAttachments, type ChatComposerAttachmentsLimits, type ChatComposerAttachmentsOptions, type ChatComposerAttachmentsState, type ChatComposerLimits, type ChatComposerPhase, type ChatComposerProblem, type ChatComposerProps, type ChatComposerRestore, type ChatComposerSaveAltText, ChatConsentConversation, type ChatConsentConversationProps, type ChatConversationAction, type ChatConversationActionOutcome, type ChatConversationActionPhase, type ChatConversationActionProblem, type ChatConversationActions, type ChatConversationActionsOptions, ChatConversationGate, type ChatConversationGateProps, ChatConversationHeading, type ChatConversationHeadingProps, type ChatConversationLimits, ChatConversationList, type ChatConversationListLimits, type ChatConversationListOptions, type ChatConversationListProps, type ChatConversationListState, type ChatConversationListViewLimits, type ChatConversationOptions, type ChatConversationSection, type ChatConversationState, type ChatConversationWindow, type ChatConversionLimits, type ChatConverterTimeouts, type ChatDiagramFileContext, type ChatDiagramFormat, ChatFrame, type ChatFrameProps, type ChatHostRefusalCodes, type ChatLayoutColumn, type ChatLayoutColumns, type ChatLayoutPlan, type ChatLayoutRule, type ChatListMessage, type ChatMarkdownConverterFactory, type ChatMediaRecorderLike, type ChatMediaStreamLike, type ChatMessageAuthor, type ChatMessageBranch, ChatMessageList, type ChatMessageListLimits, type ChatMessageListProps, type ChatMessageText, type ChatMicrophone, type ChatMicrophoneProblem, type ChatMicrophoneScope, type ChatModelAttachmentFlags, type ChatModels, type ChatModelsOptions, type ChatModelsQuery, type ChatModelsState, type ChatNewConversation, type ChatNewConversationChoice, type ChatNewConversationChoiceOptions, ChatNewConversationChoices, type ChatNewConversationChoicesProps, type ChatNewConversationMessage, type ChatNewConversationOptions, type ChatNewConversationOutcome, type ChatOlderFailure, type ChatPinnedSide, type ChatPolicyAccess, type ChatPolicyConsentOutcome, type ChatPolicyConsentProblem, ChatPolicyGate, type ChatPolicyGateProps, type ChatPolicyOptions, type ChatPolicyState, type ChatRecording, type ChatRecordingListener, type ChatRecordingRequest, type ChatRecordingStart, type ChatRefusal, type ChatRefusalStatusClass, type ChatRewriteKind, type ChatRewriteOutcome, type ChatRewriteProblem, type ChatRewriteState, type ChatSend, type ChatSendMessage, type ChatSendOptions, type ChatSendOutcome, type ChatSettingsAccess, ChatSettingsForm, type ChatSettingsFormProps, ChatSettingsGate, type ChatSettingsGateProps, type ChatSettingsOptions, type ChatSettingsProblem, type ChatSettingsSaveOutcome, type ChatSettingsState, ChatTalkFlow, type ChatTalkFlowProps, ChatTalkHeading, type ChatTalkHeadingProps, assertValidChatHostRefusalCodes, chatAttachmentHasUnreadText, chatAttachmentsRefusedByModel, chatBrowserMicrophone, chatConversationShownRow, chatDeclaredAttachmentKind, chatFilePickerAccept, chatFrameBlockSizePx, chatLayoutPlan, chatLayoutRule, chatModelAttachmentKinds, chatModelTakesKind, chatRefusal, diagramFileName, precheckChatAttachment, useChatComposerAttachments, useChatConversation, useChatConversationActions, useChatConversationCreatedAnnouncer, useChatConversationDeletedAnnouncer, useChatConversationList, useChatModels, useChatNewConversation, useChatNewConversationChoice, useChatPolicy, useChatSend, useChatSettings };
|
|
841
|
+
export { CHAT_LAYOUT, type ChatAnswerRenderLimits, ChatAnswerRendering, type ChatAnswerRenderingProps, type ChatAnswerStatus, type ChatAttachmentLimits, type ChatAttachmentPrecheckRefusal, type ChatBranchSwitchOutcome, type ChatBranchSwitchProblem, type ChatBranchSwitchState, type ChatChoosableModel, ChatComposer, type ChatComposerAltTextOutcome, type ChatComposerAttachment, type ChatComposerAttachments, type ChatComposerAttachmentsLimits, type ChatComposerAttachmentsOptions, type ChatComposerAttachmentsState, type ChatComposerLimits, type ChatComposerPhase, type ChatComposerProblem, type ChatComposerProps, type ChatComposerRestore, type ChatComposerSaveAltText, ChatConsentConversation, type ChatConsentConversationProps, type ChatConversationAction, type ChatConversationActionOutcome, type ChatConversationActionPhase, type ChatConversationActionProblem, type ChatConversationActions, type ChatConversationActionsOptions, ChatConversationGate, type ChatConversationGateProps, ChatConversationHeading, type ChatConversationHeadingProps, type ChatConversationLimits, ChatConversationList, type ChatConversationListLimits, type ChatConversationListOptions, type ChatConversationListProps, type ChatConversationListState, type ChatConversationListViewLimits, type ChatConversationOptions, type ChatConversationSection, type ChatConversationState, type ChatConversationWindow, type ChatConversionLimits, type ChatConverterTimeouts, type ChatDiagramFileContext, type ChatDiagramFormat, ChatFrame, type ChatFrameProps, type ChatGoToOutcome, type ChatGoToVia, type ChatHostRefusalCodes, type ChatLayoutColumn, type ChatLayoutColumns, type ChatLayoutPlan, type ChatLayoutRule, type ChatListMessage, type ChatMarkdownConverterFactory, type ChatMediaRecorderLike, type ChatMediaStreamLike, type ChatMessageAuthor, type ChatMessageBranch, type ChatMessageLanding, ChatMessageList, type ChatMessageListLimits, type ChatMessageListProps, type ChatMessageText, type ChatMicrophone, type ChatMicrophoneProblem, type ChatMicrophoneScope, type ChatModelAttachmentFlags, type ChatModels, type ChatModelsOptions, type ChatModelsQuery, type ChatModelsState, type ChatNewConversation, type ChatNewConversationChoice, type ChatNewConversationChoiceOptions, ChatNewConversationChoices, type ChatNewConversationChoicesProps, type ChatNewConversationMessage, type ChatNewConversationOptions, type ChatNewConversationOutcome, type ChatOlderFailure, type ChatPathChangeFailure, type ChatPathChangeProblem, type ChatPathChangeState, type ChatPinnedSide, type ChatPolicyAccess, type ChatPolicyConsentOutcome, type ChatPolicyConsentProblem, ChatPolicyGate, type ChatPolicyGateProps, type ChatPolicyOptions, type ChatPolicyState, type ChatRecording, type ChatRecordingListener, type ChatRecordingRequest, type ChatRecordingStart, type ChatRefusal, type ChatRefusalStatusClass, type ChatRewriteKind, type ChatRewriteOutcome, type ChatRewriteProblem, type ChatRewriteState, type ChatSend, type ChatSendMessage, type ChatSendOptions, type ChatSendOutcome, type ChatSendPathBlock, type ChatSettingsAccess, ChatSettingsForm, type ChatSettingsFormProps, ChatSettingsGate, type ChatSettingsGateProps, type ChatSettingsOptions, type ChatSettingsProblem, type ChatSettingsSaveOutcome, type ChatSettingsState, ChatShownBranchBand, type ChatShownBranchBandProps, ChatTalkFlow, type ChatTalkFlowProps, ChatTalkHeading, type ChatTalkHeadingProps, type ChatWindowPath, assertValidChatHostRefusalCodes, chatAttachmentHasUnreadText, chatAttachmentsRefusedByModel, chatBrowserMicrophone, chatConversationShownRow, chatDeclaredAttachmentKind, chatFilePickerAccept, chatFrameBlockSizePx, chatLayoutPlan, chatLayoutRule, chatModelAttachmentKinds, chatModelTakesKind, chatRefusal, diagramFileName, precheckChatAttachment, useChatComposerAttachments, useChatConversation, useChatConversationActions, useChatConversationCreatedAnnouncer, useChatConversationDeletedAnnouncer, useChatConversationList, useChatModels, useChatNewConversation, useChatNewConversationChoice, useChatPolicy, useChatSend, useChatSettings };
|
package/dist/react.d.ts
CHANGED
|
@@ -249,50 +249,6 @@ type ChatComposerProblem = {
|
|
|
249
249
|
} | {
|
|
250
250
|
readonly cause: "incompatible";
|
|
251
251
|
});
|
|
252
|
-
type ChatComposerPhase = "ready" | "sending" | "running" | "stopping";
|
|
253
|
-
type ChatComposerRestore = {
|
|
254
|
-
readonly modelName: string;
|
|
255
|
-
readonly onRestore: () => void;
|
|
256
|
-
};
|
|
257
|
-
type ChatComposerLimits = ChatAttachmentLimits & Readonly<Pick<Record<ChatLimitKey, number>, "CHAT_USER_MESSAGE_MAX_CHARS">>;
|
|
258
|
-
type ChatComposerAttachments = {
|
|
259
|
-
readonly items: readonly ChatComposerAttachment[];
|
|
260
|
-
readonly model: ChatModelAttachmentFlags | null;
|
|
261
|
-
readonly onAdd: (files: readonly File[]) => void;
|
|
262
|
-
readonly onRemove: (key: string) => void;
|
|
263
|
-
readonly onRetry: (key: string) => void;
|
|
264
|
-
readonly onSaveAltText: ChatComposerSaveAltText;
|
|
265
|
-
readonly restore: ChatComposerRestore | null;
|
|
266
|
-
readonly microphone: ChatMicrophone | null;
|
|
267
|
-
};
|
|
268
|
-
type ChatComposerProps = {
|
|
269
|
-
readonly value: string;
|
|
270
|
-
readonly onValueChange: (value: string) => void;
|
|
271
|
-
readonly phase: ChatComposerPhase;
|
|
272
|
-
readonly runElsewhere: boolean;
|
|
273
|
-
readonly onSend: (text: string) => void;
|
|
274
|
-
readonly onStop: () => void;
|
|
275
|
-
readonly notice: ChatStreamNotice | null;
|
|
276
|
-
readonly onNoticeAction: (action: ChatStreamNoticeAction) => void;
|
|
277
|
-
readonly problem: ChatComposerProblem | null;
|
|
278
|
-
readonly attachments: ChatComposerAttachments;
|
|
279
|
-
readonly limits: ChatComposerLimits;
|
|
280
|
-
readonly sendKey: ChatVocabulary<"send_keys">;
|
|
281
|
-
readonly contentBaseUrl: string;
|
|
282
|
-
readonly inputRef: RefObject<HTMLTextAreaElement | null> | null;
|
|
283
|
-
readonly testId: string;
|
|
284
|
-
};
|
|
285
|
-
declare const ChatComposer: (props: ChatComposerProps) => react.JSX.Element;
|
|
286
|
-
type ChatConsentConversationProps = {
|
|
287
|
-
readonly transport: ChatTransport;
|
|
288
|
-
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
289
|
-
readonly conversationUid: string;
|
|
290
|
-
readonly onChanged: () => void;
|
|
291
|
-
readonly onDeleted: (conversation: ChatConversation) => void;
|
|
292
|
-
readonly headingLevel: 1 | 2 | 3;
|
|
293
|
-
readonly testId: string;
|
|
294
|
-
};
|
|
295
|
-
declare const ChatConsentConversation: (props: ChatConsentConversationProps) => ReactNode;
|
|
296
252
|
type ChatTextLanguage = "ja" | "en" | "screen";
|
|
297
253
|
type ChatMessageAuthor = {
|
|
298
254
|
readonly role: "user";
|
|
@@ -301,60 +257,6 @@ type ChatMessageAuthor = {
|
|
|
301
257
|
readonly model: string | null;
|
|
302
258
|
readonly status: ChatAnswerStatus;
|
|
303
259
|
};
|
|
304
|
-
type ChatSendOptions = {
|
|
305
|
-
readonly transport: ChatTransport;
|
|
306
|
-
readonly window: ChatConversationWindow;
|
|
307
|
-
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
308
|
-
};
|
|
309
|
-
type ChatSendMessage = {
|
|
310
|
-
readonly text: string;
|
|
311
|
-
readonly attachmentIds: readonly string[];
|
|
312
|
-
};
|
|
313
|
-
type ChatSendOutcome = "accepted" | "not-sent";
|
|
314
|
-
type ChatRewriteKind = "edit" | "regenerate";
|
|
315
|
-
type ChatRewriteOutcome = {
|
|
316
|
-
readonly kind: "accepted";
|
|
317
|
-
readonly siblingUid: string;
|
|
318
|
-
} | {
|
|
319
|
-
readonly kind: "not-sent";
|
|
320
|
-
};
|
|
321
|
-
type ChatRewriteProblem = {
|
|
322
|
-
readonly messageUid: string;
|
|
323
|
-
readonly kind: ChatRewriteKind;
|
|
324
|
-
readonly occurrence: number;
|
|
325
|
-
} & ({
|
|
326
|
-
readonly cause: "unreached";
|
|
327
|
-
} | {
|
|
328
|
-
readonly cause: "refused";
|
|
329
|
-
readonly refusal: ChatRefusal;
|
|
330
|
-
} | {
|
|
331
|
-
readonly cause: "incompatible";
|
|
332
|
-
});
|
|
333
|
-
type ChatRewriteState = {
|
|
334
|
-
readonly pending: {
|
|
335
|
-
readonly messageUid: string;
|
|
336
|
-
readonly kind: ChatRewriteKind;
|
|
337
|
-
} | null;
|
|
338
|
-
readonly accepted: {
|
|
339
|
-
readonly messageUid: string;
|
|
340
|
-
readonly kind: ChatRewriteKind;
|
|
341
|
-
readonly siblingUid: string;
|
|
342
|
-
} | null;
|
|
343
|
-
readonly problem: ChatRewriteProblem | null;
|
|
344
|
-
readonly block: "sending" | "writing" | null;
|
|
345
|
-
};
|
|
346
|
-
type ChatSend = {
|
|
347
|
-
readonly phase: ChatComposerPhase;
|
|
348
|
-
readonly problem: ChatComposerProblem | null;
|
|
349
|
-
readonly runElsewhere: boolean;
|
|
350
|
-
readonly sentMessageUid: string | null;
|
|
351
|
-
readonly send: (message: ChatSendMessage) => Promise<ChatSendOutcome>;
|
|
352
|
-
readonly edit: (messageUid: string, message: ChatSendMessage) => Promise<ChatRewriteOutcome>;
|
|
353
|
-
readonly regenerate: (messageUid: string) => Promise<ChatRewriteOutcome>;
|
|
354
|
-
readonly rewrite: ChatRewriteState;
|
|
355
|
-
readonly stop: () => void;
|
|
356
|
-
};
|
|
357
|
-
declare const useChatSend: (options: ChatSendOptions) => ChatSend;
|
|
358
260
|
type ChatListMessage = {
|
|
359
261
|
readonly messageUid: string;
|
|
360
262
|
readonly author: ChatMessageAuthor;
|
|
@@ -393,9 +295,17 @@ type ChatMessageListProps = {
|
|
|
393
295
|
readonly rewrite: ChatRewriteState;
|
|
394
296
|
readonly messageActionsDisplay: ChatVocabulary<"message_actions_displays">;
|
|
395
297
|
readonly sendKey: ChatVocabulary<"send_keys">;
|
|
298
|
+
readonly landing: ChatMessageLanding | null;
|
|
299
|
+
readonly messageHrefOf: (messageUid: string) => string;
|
|
396
300
|
readonly testId: string;
|
|
397
301
|
};
|
|
398
|
-
|
|
302
|
+
type ChatMessageLanding = {
|
|
303
|
+
readonly messageUid: string;
|
|
304
|
+
readonly focus: boolean;
|
|
305
|
+
readonly marked: boolean;
|
|
306
|
+
readonly occurrence: number;
|
|
307
|
+
};
|
|
308
|
+
declare const ChatMessageList: ({ messages, notificationLevel, followScroll, reduceMotion, sentMessageUid, labelledBy, headingLevel, limits, older, onLoadOlder, olderReading, olderFailure, onSwitchBranch, branchSwitch, onEditMessage, onRegenerateMessage, rewrite, messageActionsDisplay, sendKey, landing, messageHrefOf, testId, }: ChatMessageListProps) => react.JSX.Element;
|
|
399
309
|
type ChatConversationOptions = {
|
|
400
310
|
readonly transport: ChatTransport;
|
|
401
311
|
readonly streams: ChatRunStreams;
|
|
@@ -430,7 +340,46 @@ type ChatConversationWindow = {
|
|
|
430
340
|
readonly switchBranch: (messageUid: string, siblingUid: string) => Promise<ChatBranchSwitchOutcome>;
|
|
431
341
|
readonly branchSwitch: ChatBranchSwitchState;
|
|
432
342
|
readonly runElsewhere: boolean;
|
|
343
|
+
readonly path: ChatWindowPath;
|
|
344
|
+
readonly goTo: (messageUid: string, via: ChatGoToVia) => Promise<ChatGoToOutcome>;
|
|
345
|
+
readonly chooseBranch: () => Promise<boolean>;
|
|
346
|
+
readonly returnToChosen: () => Promise<boolean>;
|
|
347
|
+
readonly pathChange: ChatPathChangeState;
|
|
348
|
+
};
|
|
349
|
+
type ChatWindowPath = {
|
|
350
|
+
readonly kind: "chosen";
|
|
351
|
+
} | {
|
|
352
|
+
readonly kind: "branch";
|
|
353
|
+
readonly endMessageUid: string;
|
|
354
|
+
};
|
|
355
|
+
type ChatGoToVia = "link" | "screen";
|
|
356
|
+
type ChatGoToOutcome = "shown" | "missing" | "not-gone";
|
|
357
|
+
type ChatPathChangeState = {
|
|
358
|
+
readonly going: {
|
|
359
|
+
readonly messageUid: string;
|
|
360
|
+
} | null;
|
|
361
|
+
readonly choosing: boolean;
|
|
362
|
+
readonly returning: boolean;
|
|
363
|
+
readonly problem: ChatPathChangeProblem | null;
|
|
433
364
|
};
|
|
365
|
+
type ChatPathChangeFailure = {
|
|
366
|
+
readonly cause: "unreached";
|
|
367
|
+
} | {
|
|
368
|
+
readonly cause: "refused";
|
|
369
|
+
readonly refusal: ChatRefusal;
|
|
370
|
+
} | {
|
|
371
|
+
readonly cause: "incompatible";
|
|
372
|
+
};
|
|
373
|
+
type ChatPathChangeProblem = ({
|
|
374
|
+
readonly change: "go-to";
|
|
375
|
+
readonly via: ChatGoToVia;
|
|
376
|
+
readonly occurrence: number;
|
|
377
|
+
} & ({
|
|
378
|
+
readonly cause: "missing";
|
|
379
|
+
} | ChatPathChangeFailure)) | ({
|
|
380
|
+
readonly change: "choose" | "return";
|
|
381
|
+
readonly occurrence: number;
|
|
382
|
+
} & ChatPathChangeFailure);
|
|
434
383
|
type ChatBranchSwitchState = {
|
|
435
384
|
readonly switching: {
|
|
436
385
|
readonly messageUid: string;
|
|
@@ -455,6 +404,107 @@ type ChatOlderFailure = {
|
|
|
455
404
|
readonly occurrence: number;
|
|
456
405
|
};
|
|
457
406
|
declare const useChatConversation: (options: ChatConversationOptions) => ChatConversationWindow;
|
|
407
|
+
type ChatSendOptions = {
|
|
408
|
+
readonly transport: ChatTransport;
|
|
409
|
+
readonly window: ChatConversationWindow;
|
|
410
|
+
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
411
|
+
};
|
|
412
|
+
type ChatSendMessage = {
|
|
413
|
+
readonly text: string;
|
|
414
|
+
readonly attachmentIds: readonly string[];
|
|
415
|
+
};
|
|
416
|
+
type ChatSendOutcome = "accepted" | "not-sent";
|
|
417
|
+
type ChatSendPathBlock = "branch" | "going";
|
|
418
|
+
type ChatRewriteKind = "edit" | "regenerate";
|
|
419
|
+
type ChatRewriteOutcome = {
|
|
420
|
+
readonly kind: "accepted";
|
|
421
|
+
readonly siblingUid: string;
|
|
422
|
+
} | {
|
|
423
|
+
readonly kind: "not-sent";
|
|
424
|
+
};
|
|
425
|
+
type ChatRewriteProblem = {
|
|
426
|
+
readonly messageUid: string;
|
|
427
|
+
readonly kind: ChatRewriteKind;
|
|
428
|
+
readonly occurrence: number;
|
|
429
|
+
} & ({
|
|
430
|
+
readonly cause: "unreached";
|
|
431
|
+
} | {
|
|
432
|
+
readonly cause: "refused";
|
|
433
|
+
readonly refusal: ChatRefusal;
|
|
434
|
+
} | {
|
|
435
|
+
readonly cause: "incompatible";
|
|
436
|
+
});
|
|
437
|
+
type ChatRewriteState = {
|
|
438
|
+
readonly pending: {
|
|
439
|
+
readonly messageUid: string;
|
|
440
|
+
readonly kind: ChatRewriteKind;
|
|
441
|
+
} | null;
|
|
442
|
+
readonly accepted: {
|
|
443
|
+
readonly messageUid: string;
|
|
444
|
+
readonly kind: ChatRewriteKind;
|
|
445
|
+
readonly siblingUid: string;
|
|
446
|
+
} | null;
|
|
447
|
+
readonly problem: ChatRewriteProblem | null;
|
|
448
|
+
readonly block: "sending" | ChatSendPathBlock | "writing" | null;
|
|
449
|
+
};
|
|
450
|
+
type ChatSend = {
|
|
451
|
+
readonly phase: ChatComposerPhase;
|
|
452
|
+
readonly problem: ChatComposerProblem | null;
|
|
453
|
+
readonly runElsewhere: boolean;
|
|
454
|
+
readonly pathBlock: ChatSendPathBlock | null;
|
|
455
|
+
readonly sentMessageUid: string | null;
|
|
456
|
+
readonly send: (message: ChatSendMessage) => Promise<ChatSendOutcome>;
|
|
457
|
+
readonly edit: (messageUid: string, message: ChatSendMessage) => Promise<ChatRewriteOutcome>;
|
|
458
|
+
readonly regenerate: (messageUid: string) => Promise<ChatRewriteOutcome>;
|
|
459
|
+
readonly rewrite: ChatRewriteState;
|
|
460
|
+
readonly stop: () => void;
|
|
461
|
+
};
|
|
462
|
+
declare const useChatSend: (options: ChatSendOptions) => ChatSend;
|
|
463
|
+
type ChatComposerPhase = "ready" | "sending" | "running" | "stopping";
|
|
464
|
+
type ChatComposerRestore = {
|
|
465
|
+
readonly modelName: string;
|
|
466
|
+
readonly onRestore: () => void;
|
|
467
|
+
};
|
|
468
|
+
type ChatComposerLimits = ChatAttachmentLimits & Readonly<Pick<Record<ChatLimitKey, number>, "CHAT_USER_MESSAGE_MAX_CHARS">>;
|
|
469
|
+
type ChatComposerAttachments = {
|
|
470
|
+
readonly items: readonly ChatComposerAttachment[];
|
|
471
|
+
readonly model: ChatModelAttachmentFlags | null;
|
|
472
|
+
readonly onAdd: (files: readonly File[]) => void;
|
|
473
|
+
readonly onRemove: (key: string) => void;
|
|
474
|
+
readonly onRetry: (key: string) => void;
|
|
475
|
+
readonly onSaveAltText: ChatComposerSaveAltText;
|
|
476
|
+
readonly restore: ChatComposerRestore | null;
|
|
477
|
+
readonly microphone: ChatMicrophone | null;
|
|
478
|
+
};
|
|
479
|
+
type ChatComposerProps = {
|
|
480
|
+
readonly value: string;
|
|
481
|
+
readonly onValueChange: (value: string) => void;
|
|
482
|
+
readonly phase: ChatComposerPhase;
|
|
483
|
+
readonly runElsewhere: boolean;
|
|
484
|
+
readonly pathBlock: ChatSendPathBlock | null;
|
|
485
|
+
readonly onSend: (text: string) => void;
|
|
486
|
+
readonly onStop: () => void;
|
|
487
|
+
readonly notice: ChatStreamNotice | null;
|
|
488
|
+
readonly onNoticeAction: (action: ChatStreamNoticeAction) => void;
|
|
489
|
+
readonly problem: ChatComposerProblem | null;
|
|
490
|
+
readonly attachments: ChatComposerAttachments;
|
|
491
|
+
readonly limits: ChatComposerLimits;
|
|
492
|
+
readonly sendKey: ChatVocabulary<"send_keys">;
|
|
493
|
+
readonly contentBaseUrl: string;
|
|
494
|
+
readonly inputRef: RefObject<HTMLTextAreaElement | null> | null;
|
|
495
|
+
readonly testId: string;
|
|
496
|
+
};
|
|
497
|
+
declare const ChatComposer: (props: ChatComposerProps) => react.JSX.Element;
|
|
498
|
+
type ChatConsentConversationProps = {
|
|
499
|
+
readonly transport: ChatTransport;
|
|
500
|
+
readonly hostRefusalCodes: ChatHostRefusalCodes;
|
|
501
|
+
readonly conversationUid: string;
|
|
502
|
+
readonly onChanged: () => void;
|
|
503
|
+
readonly onDeleted: (conversation: ChatConversation) => void;
|
|
504
|
+
readonly headingLevel: 1 | 2 | 3;
|
|
505
|
+
readonly testId: string;
|
|
506
|
+
};
|
|
507
|
+
declare const ChatConsentConversation: (props: ChatConsentConversationProps) => ReactNode;
|
|
458
508
|
type ChatConversationGateProps = {
|
|
459
509
|
readonly conversation: ChatConversationWindow;
|
|
460
510
|
readonly onReopen: () => void;
|
|
@@ -737,6 +787,12 @@ type ChatSettingsGateProps = {
|
|
|
737
787
|
readonly testId: string;
|
|
738
788
|
};
|
|
739
789
|
declare const ChatSettingsGate: ({ settings, focusAfterOpen, children, testId }: ChatSettingsGateProps) => ReactNode;
|
|
790
|
+
type ChatShownBranchBandProps = {
|
|
791
|
+
readonly window: Pick<ChatConversationWindow, "path" | "pathChange" | "branchSwitch" | "chooseBranch" | "returnToChosen">;
|
|
792
|
+
readonly focusAfterChange: RefObject<HTMLElement | null>;
|
|
793
|
+
readonly testId: string;
|
|
794
|
+
};
|
|
795
|
+
declare const ChatShownBranchBand: ({ window: conversationWindow, focusAfterChange, testId }: ChatShownBranchBandProps) => react.JSX.Element | null;
|
|
740
796
|
type ChatTalkFlowProps = {
|
|
741
797
|
readonly children: ReactNode;
|
|
742
798
|
readonly testId: string;
|
|
@@ -782,4 +838,4 @@ type ChatComposerAttachmentsState = {
|
|
|
782
838
|
declare const useChatComposerAttachments: (options: ChatComposerAttachmentsOptions) => ChatComposerAttachmentsState;
|
|
783
839
|
declare const useChatConversationCreatedAnnouncer: () => (() => void);
|
|
784
840
|
declare const useChatConversationDeletedAnnouncer: () => ((conversation: Pick<ChatConversation, "title">) => void);
|
|
785
|
-
export { CHAT_LAYOUT, type ChatAnswerRenderLimits, ChatAnswerRendering, type ChatAnswerRenderingProps, type ChatAnswerStatus, type ChatAttachmentLimits, type ChatAttachmentPrecheckRefusal, type ChatBranchSwitchOutcome, type ChatBranchSwitchProblem, type ChatBranchSwitchState, type ChatChoosableModel, ChatComposer, type ChatComposerAltTextOutcome, type ChatComposerAttachment, type ChatComposerAttachments, type ChatComposerAttachmentsLimits, type ChatComposerAttachmentsOptions, type ChatComposerAttachmentsState, type ChatComposerLimits, type ChatComposerPhase, type ChatComposerProblem, type ChatComposerProps, type ChatComposerRestore, type ChatComposerSaveAltText, ChatConsentConversation, type ChatConsentConversationProps, type ChatConversationAction, type ChatConversationActionOutcome, type ChatConversationActionPhase, type ChatConversationActionProblem, type ChatConversationActions, type ChatConversationActionsOptions, ChatConversationGate, type ChatConversationGateProps, ChatConversationHeading, type ChatConversationHeadingProps, type ChatConversationLimits, ChatConversationList, type ChatConversationListLimits, type ChatConversationListOptions, type ChatConversationListProps, type ChatConversationListState, type ChatConversationListViewLimits, type ChatConversationOptions, type ChatConversationSection, type ChatConversationState, type ChatConversationWindow, type ChatConversionLimits, type ChatConverterTimeouts, type ChatDiagramFileContext, type ChatDiagramFormat, ChatFrame, type ChatFrameProps, type ChatHostRefusalCodes, type ChatLayoutColumn, type ChatLayoutColumns, type ChatLayoutPlan, type ChatLayoutRule, type ChatListMessage, type ChatMarkdownConverterFactory, type ChatMediaRecorderLike, type ChatMediaStreamLike, type ChatMessageAuthor, type ChatMessageBranch, ChatMessageList, type ChatMessageListLimits, type ChatMessageListProps, type ChatMessageText, type ChatMicrophone, type ChatMicrophoneProblem, type ChatMicrophoneScope, type ChatModelAttachmentFlags, type ChatModels, type ChatModelsOptions, type ChatModelsQuery, type ChatModelsState, type ChatNewConversation, type ChatNewConversationChoice, type ChatNewConversationChoiceOptions, ChatNewConversationChoices, type ChatNewConversationChoicesProps, type ChatNewConversationMessage, type ChatNewConversationOptions, type ChatNewConversationOutcome, type ChatOlderFailure, type ChatPinnedSide, type ChatPolicyAccess, type ChatPolicyConsentOutcome, type ChatPolicyConsentProblem, ChatPolicyGate, type ChatPolicyGateProps, type ChatPolicyOptions, type ChatPolicyState, type ChatRecording, type ChatRecordingListener, type ChatRecordingRequest, type ChatRecordingStart, type ChatRefusal, type ChatRefusalStatusClass, type ChatRewriteKind, type ChatRewriteOutcome, type ChatRewriteProblem, type ChatRewriteState, type ChatSend, type ChatSendMessage, type ChatSendOptions, type ChatSendOutcome, type ChatSettingsAccess, ChatSettingsForm, type ChatSettingsFormProps, ChatSettingsGate, type ChatSettingsGateProps, type ChatSettingsOptions, type ChatSettingsProblem, type ChatSettingsSaveOutcome, type ChatSettingsState, ChatTalkFlow, type ChatTalkFlowProps, ChatTalkHeading, type ChatTalkHeadingProps, assertValidChatHostRefusalCodes, chatAttachmentHasUnreadText, chatAttachmentsRefusedByModel, chatBrowserMicrophone, chatConversationShownRow, chatDeclaredAttachmentKind, chatFilePickerAccept, chatFrameBlockSizePx, chatLayoutPlan, chatLayoutRule, chatModelAttachmentKinds, chatModelTakesKind, chatRefusal, diagramFileName, precheckChatAttachment, useChatComposerAttachments, useChatConversation, useChatConversationActions, useChatConversationCreatedAnnouncer, useChatConversationDeletedAnnouncer, useChatConversationList, useChatModels, useChatNewConversation, useChatNewConversationChoice, useChatPolicy, useChatSend, useChatSettings };
|
|
841
|
+
export { CHAT_LAYOUT, type ChatAnswerRenderLimits, ChatAnswerRendering, type ChatAnswerRenderingProps, type ChatAnswerStatus, type ChatAttachmentLimits, type ChatAttachmentPrecheckRefusal, type ChatBranchSwitchOutcome, type ChatBranchSwitchProblem, type ChatBranchSwitchState, type ChatChoosableModel, ChatComposer, type ChatComposerAltTextOutcome, type ChatComposerAttachment, type ChatComposerAttachments, type ChatComposerAttachmentsLimits, type ChatComposerAttachmentsOptions, type ChatComposerAttachmentsState, type ChatComposerLimits, type ChatComposerPhase, type ChatComposerProblem, type ChatComposerProps, type ChatComposerRestore, type ChatComposerSaveAltText, ChatConsentConversation, type ChatConsentConversationProps, type ChatConversationAction, type ChatConversationActionOutcome, type ChatConversationActionPhase, type ChatConversationActionProblem, type ChatConversationActions, type ChatConversationActionsOptions, ChatConversationGate, type ChatConversationGateProps, ChatConversationHeading, type ChatConversationHeadingProps, type ChatConversationLimits, ChatConversationList, type ChatConversationListLimits, type ChatConversationListOptions, type ChatConversationListProps, type ChatConversationListState, type ChatConversationListViewLimits, type ChatConversationOptions, type ChatConversationSection, type ChatConversationState, type ChatConversationWindow, type ChatConversionLimits, type ChatConverterTimeouts, type ChatDiagramFileContext, type ChatDiagramFormat, ChatFrame, type ChatFrameProps, type ChatGoToOutcome, type ChatGoToVia, type ChatHostRefusalCodes, type ChatLayoutColumn, type ChatLayoutColumns, type ChatLayoutPlan, type ChatLayoutRule, type ChatListMessage, type ChatMarkdownConverterFactory, type ChatMediaRecorderLike, type ChatMediaStreamLike, type ChatMessageAuthor, type ChatMessageBranch, type ChatMessageLanding, ChatMessageList, type ChatMessageListLimits, type ChatMessageListProps, type ChatMessageText, type ChatMicrophone, type ChatMicrophoneProblem, type ChatMicrophoneScope, type ChatModelAttachmentFlags, type ChatModels, type ChatModelsOptions, type ChatModelsQuery, type ChatModelsState, type ChatNewConversation, type ChatNewConversationChoice, type ChatNewConversationChoiceOptions, ChatNewConversationChoices, type ChatNewConversationChoicesProps, type ChatNewConversationMessage, type ChatNewConversationOptions, type ChatNewConversationOutcome, type ChatOlderFailure, type ChatPathChangeFailure, type ChatPathChangeProblem, type ChatPathChangeState, type ChatPinnedSide, type ChatPolicyAccess, type ChatPolicyConsentOutcome, type ChatPolicyConsentProblem, ChatPolicyGate, type ChatPolicyGateProps, type ChatPolicyOptions, type ChatPolicyState, type ChatRecording, type ChatRecordingListener, type ChatRecordingRequest, type ChatRecordingStart, type ChatRefusal, type ChatRefusalStatusClass, type ChatRewriteKind, type ChatRewriteOutcome, type ChatRewriteProblem, type ChatRewriteState, type ChatSend, type ChatSendMessage, type ChatSendOptions, type ChatSendOutcome, type ChatSendPathBlock, type ChatSettingsAccess, ChatSettingsForm, type ChatSettingsFormProps, ChatSettingsGate, type ChatSettingsGateProps, type ChatSettingsOptions, type ChatSettingsProblem, type ChatSettingsSaveOutcome, type ChatSettingsState, ChatShownBranchBand, type ChatShownBranchBandProps, ChatTalkFlow, type ChatTalkFlowProps, ChatTalkHeading, type ChatTalkHeadingProps, type ChatWindowPath, assertValidChatHostRefusalCodes, chatAttachmentHasUnreadText, chatAttachmentsRefusedByModel, chatBrowserMicrophone, chatConversationShownRow, chatDeclaredAttachmentKind, chatFilePickerAccept, chatFrameBlockSizePx, chatLayoutPlan, chatLayoutRule, chatModelAttachmentKinds, chatModelTakesKind, chatRefusal, diagramFileName, precheckChatAttachment, useChatComposerAttachments, useChatConversation, useChatConversationActions, useChatConversationCreatedAnnouncer, useChatConversationDeletedAnnouncer, useChatConversationList, useChatModels, useChatNewConversation, useChatNewConversationChoice, useChatPolicy, useChatSend, useChatSettings };
|