@8wave/ai-elements 0.116.0-beta.3 → 0.117.0-beta.12

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.
Files changed (41) hide show
  1. package/dist/_chunks/Agent-BxyaZeuL.js.map +1 -1
  2. package/dist/_chunks/{PkToolShowSources-BnpzLyxs.js → PkToolShowSources-BgnumOzQ.js} +2 -2
  3. package/dist/_chunks/{PkToolShowSources-BnpzLyxs.js.map → PkToolShowSources-BgnumOzQ.js.map} +1 -1
  4. package/dist/_chunks/{browser-CUX1HiwU.js → browser-BJcsjj9S.js} +7 -3
  5. package/dist/_chunks/{browser-CUX1HiwU.js.map → browser-BJcsjj9S.js.map} +1 -1
  6. package/dist/_chunks/{markdown-CqYYB88s.js → markdown-DCYDJNwF.js} +6 -3
  7. package/dist/_chunks/markdown-DCYDJNwF.js.map +1 -0
  8. package/dist/ai-elements.es.js +40 -16
  9. package/dist/ai-elements.es.js.map +1 -1
  10. package/dist-vue/PkChatbot.js +1 -1
  11. package/dist-vue/PkChatbotMessages.js +1 -1
  12. package/dist-vue/PkChatbotViewChat.js +1 -1
  13. package/dist-vue/PkChatbotViewFiles.js +1 -1
  14. package/dist-vue/_chunks/{Document-DoWHaIlA.js → Document-Ol8nGgij.js} +6 -3
  15. package/dist-vue/_chunks/Document-Ol8nGgij.js.map +1 -0
  16. package/dist-vue/_chunks/Media-Cv7ou2tP.js.map +1 -1
  17. package/dist-vue/_chunks/{PkChatbot-VqMDgwEm.js → PkChatbot-BmpFnkde.js} +3 -3
  18. package/dist-vue/_chunks/{PkChatbot-VqMDgwEm.js.map → PkChatbot-BmpFnkde.js.map} +1 -1
  19. package/dist-vue/_chunks/{PkChatbotMessages-DrlWn01K.js → PkChatbotMessages-CztL_AMB.js} +3 -3
  20. package/dist-vue/_chunks/{PkChatbotMessages-DrlWn01K.js.map → PkChatbotMessages-CztL_AMB.js.map} +1 -1
  21. package/dist-vue/_chunks/{PkChatbotViewChat-DP9PaWaa.js → PkChatbotViewChat-DZbQQNQn.js} +3 -3
  22. package/dist-vue/_chunks/{PkChatbotViewChat-DP9PaWaa.js.map → PkChatbotViewChat-DZbQQNQn.js.map} +1 -1
  23. package/dist-vue/_chunks/{PkChatbotViewFiles-NRidzZgV.js → PkChatbotViewFiles--wM5SVAl.js} +2 -2
  24. package/dist-vue/_chunks/{PkChatbotViewFiles-NRidzZgV.js.map → PkChatbotViewFiles--wM5SVAl.js.map} +1 -1
  25. package/dist-vue/_chunks/{PkToolShowDiagram-KjhjQe3_.js → PkToolShowDiagram-9THUQfbg.js} +2 -2
  26. package/dist-vue/_chunks/{PkToolShowDiagram-KjhjQe3_.js.map → PkToolShowDiagram-9THUQfbg.js.map} +1 -1
  27. package/dist-vue/_chunks/{PkToolShowSources-DsKrrIEK.js → PkToolShowSources-BfWNsyLw.js} +2 -2
  28. package/dist-vue/_chunks/{PkToolShowSources-DsKrrIEK.js.map → PkToolShowSources-BfWNsyLw.js.map} +1 -1
  29. package/dist-vue/composables.js +36 -12
  30. package/dist-vue/composables.js.map +1 -1
  31. package/dist-vue/index.js +2723 -2845
  32. package/dist-vue/index.js.map +1 -1
  33. package/dist-vue/packages/components/src/index.d.ts +1 -2
  34. package/dist-vue/packages/models/src/schema/Document.d.ts +2 -2
  35. package/dist-vue/packages/models/src/schema/Media.d.ts +28 -1
  36. package/dist-vue/packages/models/src/schema/Member.d.ts +19 -0
  37. package/dist-vue/style.css +1 -1
  38. package/package.json +1 -5
  39. package/dist/_chunks/markdown-CqYYB88s.js.map +0 -1
  40. package/dist-vue/_chunks/Document-DoWHaIlA.js.map +0 -1
  41. package/dist-vue/packages/components/src/PkEditorWyswyg.d.ts +0 -23
@@ -10,7 +10,6 @@ import { default as PkEditorPrompt } from './PkEditorPrompt';
10
10
  import { default as PkEditorRadioButtons } from './PkEditorRadioButtons';
11
11
  import { default as PkEditorCheckboxButtons } from './PkEditorCheckboxButtons';
12
12
  import { default as PkEditorRepeater } from './PkEditorRepeater';
13
- import { default as PkEditorWyswyg } from './PkEditorWyswyg';
14
13
  import { default as PkCheckboxField } from './PkCheckboxField';
15
14
  import { default as PkFieldset } from './PkFieldset';
16
15
  import { default as PkInfobox } from './PkInfobox';
@@ -33,4 +32,4 @@ export * from './chat';
33
32
  export * from './input';
34
33
  export * from './table';
35
34
  export * from './types';
36
- export { PkBadge, PkEditorAgentType, PkEditorDocumentType, PkEditorNotificationType, PkEditorCode, PkEditorJsonSchema, PkEditorMarkdown, PkEditorMedia, PkEditorPrompt, PkEditorRadioButtons, PkEditorCheckboxButtons, PkEditorRepeater, PkEditorWyswyg, PkCheckboxField, PkFieldset, PkInfobox, PkSchemaField, PkIntegrationProvider, PkLazyImg, PkLightbox, PkLoader, PkMedia, PkOfflineScreen, PkPwaNotices, PkQrCode, PkRelativeTime, PkSkeleton, PkSvgViewer, PkUrl, };
35
+ export { PkBadge, PkEditorAgentType, PkEditorDocumentType, PkEditorNotificationType, PkEditorCode, PkEditorJsonSchema, PkEditorMarkdown, PkEditorMedia, PkEditorPrompt, PkEditorRadioButtons, PkEditorCheckboxButtons, PkEditorRepeater, PkCheckboxField, PkFieldset, PkInfobox, PkSchemaField, PkIntegrationProvider, PkLazyImg, PkLightbox, PkLoader, PkMedia, PkOfflineScreen, PkPwaNotices, PkQrCode, PkRelativeTime, PkSkeleton, PkSvgViewer, PkUrl, };
@@ -492,13 +492,13 @@ export type DocumentQueueMessage = DocumentProcessingJob | SpreadsheetConversion
492
492
  * Why a document is not processed because of the organization's AI settings,
493
493
  * as `DocumentRefusal` in `database/documentAi` says.
494
494
  */
495
- export declare const DOCUMENT_REFUSAL_REASONS: readonly ["gateway-disabled", "endpoint-off", "model-unavailable", "no-model", "format-unsupported", "credit-exhausted"];
495
+ export declare const DOCUMENT_REFUSAL_REASONS: readonly ["gateway-disabled", "endpoint-off", "model-unavailable", "no-model", "format-unsupported", "credit-exhausted", "transcription-off"];
496
496
  export type DocumentRefusalReason = (typeof DOCUMENT_REFUSAL_REASONS)[number];
497
497
  /**
498
498
  * Why a file is refused for what it is, as `UnprocessableFileError` in the
499
499
  * document processor says.
500
500
  */
501
- export declare const UNPROCESSABLE_FILE_REASONS: readonly ["file-unreadable", "file-protected", "file-type-unsupported", "spreadsheet-protected", "spreadsheet-unreadable", "spreadsheet-macros", "spreadsheet-too-large", "spreadsheet-no-table"];
501
+ export declare const UNPROCESSABLE_FILE_REASONS: readonly ["file-unreadable", "file-protected", "file-type-unsupported", "spreadsheet-protected", "spreadsheet-unreadable", "spreadsheet-macros", "spreadsheet-too-large", "spreadsheet-no-table", "audio-no-speech", "audio-too-large"];
502
502
  export type UnprocessableFileReason = (typeof UNPROCESSABLE_FILE_REASONS)[number];
503
503
  /** Every `reason` a failed document can carry in `metadata.lastIndexError`. */
504
504
  export declare const DOCUMENT_INDEX_ERROR_REASONS: readonly (DocumentRefusalReason | UnprocessableFileReason)[];
@@ -1,9 +1,36 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MAX_FILE_SIZE: number;
3
+ /**
4
+ * The largest audio that is transcribed (spec `audio-file-transcription.md`,
5
+ * D2): about seven hours of m4a at 32 kbps, ten minutes of CD quality wav.
6
+ * The SDK sends it as base64 inside a JSON body, so a job holds about four
7
+ * times this in memory. The upload alert
8
+ * (`problemReasons.file-upload-validation.audio-too-large`) states it in MB.
9
+ */
10
+ export declare const MAX_AUDIO_FILE_SIZE: number;
3
11
  export declare const MIME_TYPE_REGEX: RegExp;
4
12
  export declare const SUPPORTED_IMAGE_TYPES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/svg+xml"];
5
13
  export declare const SUPPORTED_VIDEO_TYPES: readonly ["video/mp4", "video/webm", "video/ogg"];
6
- export declare const SUPPORTED_AUDIO_TYPES: readonly ["audio/mpeg", "audio/wav", "audio/ogg"];
14
+ /**
15
+ * The audio a transcription model reads (spec `audio-file-transcription.md`,
16
+ * D2), by every type a browser or a drive declares for it: an m4a arrives as
17
+ * `audio/mp4` or `audio/x-m4a` depending on the system, a wav as any of three.
18
+ * `audio/webm`, what a browser records, waits for a test.
19
+ */
20
+ export declare const SUPPORTED_AUDIO_TYPES: readonly ["audio/mpeg", "audio/mp4", "audio/x-m4a", "audio/aac", "audio/wav", "audio/x-wav", "audio/wave", "audio/ogg", "audio/flac", "audio/x-flac"];
21
+ /**
22
+ * Whether a file is audio of any kind, read or not: what a channel that does
23
+ * not transcribe has to keep away from the model, since most models refuse an
24
+ * audio part and the whole turn with it.
25
+ */
26
+ export declare const isAudioFile: (name?: string, mimeType?: string) => boolean;
27
+ /**
28
+ * Whether a file is audio the transcription reads: by its type, else by its
29
+ * extension when the type says nothing (none, `application/octet-stream`) or
30
+ * is another system's name for an audio of ours (`audio/mp3`,
31
+ * `audio/vnd.wave`, `audio/opus`): the model reads the bytes, not the type.
32
+ */
33
+ export declare const isTranscribableAudio: (name?: string, mimeType?: string) => boolean;
7
34
  export declare enum StoragePolicy {
8
35
  DEFAULT = "default",
9
36
  COLD = "cold",
@@ -132,6 +132,25 @@ export declare const MemberSchema: z.ZodObject<{
132
132
  }, z.core.$strip>;
133
133
  }, z.core.$strip>;
134
134
  export type Member = z.infer<typeof MemberSchema>;
135
+ /**
136
+ * One of the caller's own memberships, as the Organizations section of the
137
+ * profile shows it beside the organization's name: what the session's list
138
+ * of organizations does not carry.
139
+ */
140
+ export declare const OwnMembershipSchema: z.ZodObject<{
141
+ organizationId: z.ZodString;
142
+ role: z.ZodEnum<{
143
+ user: "user";
144
+ member: "member";
145
+ admin: "admin";
146
+ owner: "owner";
147
+ }>;
148
+ memberSince: z.ZodCoercedDate<unknown>;
149
+ memberCount: z.ZodNumber;
150
+ isOnlyOwner: z.ZodBoolean;
151
+ requiresTwoFactor: z.ZodBoolean;
152
+ }, z.core.$strip>;
153
+ export type OwnMembership = z.infer<typeof OwnMembershipSchema>;
135
154
  export declare const MemberUpdateSchema: z.ZodObject<{
136
155
  id: z.ZodString;
137
156
  organizationId: z.ZodString;