@krak-stack/registry 0.10.14 → 0.10.15
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 +7 -0
- package/dist/components/support-dialog.js +215 -173
- package/dist/components/ui/dialog.d.ts +8 -4
- package/dist/components/ui/map-menu.js +23 -11
- package/dist/components/ui/search-menu.js +16 -14
- package/dist/lib/docs.integrations.server.js +1 -0
- package/dist/lib/docs.js +16 -14
- package/dist/lib/docs.server.js +1 -0
- package/dist/lib/documentation-toolkit.js +1 -0
- package/dist/services/agent/client/index.js +21 -23
- package/dist/services/clamav/index.d.ts +31 -0
- package/dist/services/clamav/index.js +124 -0
- package/dist/services/events/client/tracking-notice.js +34 -18
- package/dist/services/speech/api.js +18 -0
- package/dist/services/speech/index.js +37 -11
- package/dist/services/speech/schema.d.ts +25 -0
- package/dist/services/speech/schema.js +20 -0
- package/dist/services/webhooks/client/delivery-table.js +15 -13
- package/package.json +5 -1
|
@@ -32,10 +32,35 @@ export declare const SynthesizeSpeech: Schema.Struct<{
|
|
|
32
32
|
readonly language: Schema.Literals<readonly ["en", "fr", "es", "zh", "ja", "ko"]>;
|
|
33
33
|
}>;
|
|
34
34
|
export type SynthesizeSpeech = typeof SynthesizeSpeech.Type;
|
|
35
|
+
export declare const ElevenLabsSpeechRequest: Schema.Struct<{
|
|
36
|
+
readonly model: Schema.Literal<"elevenlabs/eleven-flash-v2-5">;
|
|
37
|
+
readonly input: Schema.Struct<{
|
|
38
|
+
readonly text: Schema.String;
|
|
39
|
+
readonly language_code: Schema.Literals<readonly ["en", "fr", "es", "zh", "ja", "ko"]>;
|
|
40
|
+
readonly voice_id: Schema.NonEmptyString;
|
|
41
|
+
readonly output_format: Schema.Literal<"mp3_44100_128">;
|
|
42
|
+
}>;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const GatewaySpeechResponse: Schema.Union<readonly [Schema.Struct<{
|
|
45
|
+
readonly success: Schema.Literal<true>;
|
|
46
|
+
readonly result: Schema.Struct<{
|
|
47
|
+
readonly state: Schema.Literal<"Completed">;
|
|
48
|
+
readonly result: Schema.Struct<{
|
|
49
|
+
readonly audio: Schema.URLFromString;
|
|
50
|
+
}>;
|
|
51
|
+
}>;
|
|
52
|
+
}>, Schema.Struct<{
|
|
53
|
+
readonly state: Schema.Literal<"Completed">;
|
|
54
|
+
readonly result: Schema.Struct<{
|
|
55
|
+
readonly audio: Schema.URLFromString;
|
|
56
|
+
}>;
|
|
57
|
+
}>]>;
|
|
58
|
+
/** @deprecated Legacy wire schema; the service no longer calls MeloTTS. */
|
|
35
59
|
export declare const MeloRequest: Schema.Struct<{
|
|
36
60
|
readonly prompt: Schema.String;
|
|
37
61
|
readonly lang: Schema.Literals<readonly ["en", "fr", "es", "zh", "ja", "ko"]>;
|
|
38
62
|
}>;
|
|
63
|
+
/** @deprecated Legacy wire schema; the service no longer calls MeloTTS. */
|
|
39
64
|
export declare const MeloResponse: Schema.Struct<{
|
|
40
65
|
readonly success: Schema.Literal<true>;
|
|
41
66
|
readonly result: Schema.Struct<{
|
|
@@ -32,6 +32,24 @@ var SynthesizeSpeech = Schema.Struct({
|
|
|
32
32
|
text: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(4000), Schema.isPattern(/\S/)),
|
|
33
33
|
language: Schema.Literals(["en", "fr", "es", "zh", "ja", "ko"])
|
|
34
34
|
}).annotate({ identifier: "SynthesizeSpeech" });
|
|
35
|
+
var ElevenLabsSpeechRequest = Schema.Struct({
|
|
36
|
+
model: Schema.Literal("elevenlabs/eleven-flash-v2-5"),
|
|
37
|
+
input: Schema.Struct({
|
|
38
|
+
text: SynthesizeSpeech.fields.text,
|
|
39
|
+
language_code: SynthesizeSpeech.fields.language,
|
|
40
|
+
voice_id: Schema.NonEmptyString,
|
|
41
|
+
output_format: Schema.Literal("mp3_44100_128")
|
|
42
|
+
})
|
|
43
|
+
}).annotate({ identifier: "GatewayElevenLabsSpeechRequest" });
|
|
44
|
+
var GatewayAudioUrl = Schema.URLFromString.check(Schema.makeFilter((url) => url.protocol === "https:" && !url.port && !url.username && !url.password && (url.hostname.endsWith(".r2.cloudflarestorage.com") || url.hostname.endsWith(".r2.dev") || url.hostname === "examples.aig.cloudflare.com") || "Expected an HTTPS Cloudflare audio URL")).annotate({ identifier: "GatewayAudioUrl" });
|
|
45
|
+
var CompletedSpeech = Schema.Struct({
|
|
46
|
+
state: Schema.Literal("Completed"),
|
|
47
|
+
result: Schema.Struct({ audio: GatewayAudioUrl })
|
|
48
|
+
});
|
|
49
|
+
var GatewaySpeechResponse = Schema.Union([
|
|
50
|
+
Schema.Struct({ success: Schema.Literal(true), result: CompletedSpeech }),
|
|
51
|
+
CompletedSpeech
|
|
52
|
+
]).annotate({ identifier: "GatewaySpeechResponse" });
|
|
35
53
|
var MeloRequest = Schema.Struct({
|
|
36
54
|
prompt: SynthesizeSpeech.fields.text,
|
|
37
55
|
lang: SynthesizeSpeech.fields.language
|
|
@@ -44,6 +62,8 @@ var MeloResponse = Schema.Struct({
|
|
|
44
62
|
}).annotate({ identifier: "GatewayMeloResponse" });
|
|
45
63
|
export {
|
|
46
64
|
AudioMimeType,
|
|
65
|
+
ElevenLabsSpeechRequest,
|
|
66
|
+
GatewaySpeechResponse,
|
|
47
67
|
MAX_AUDIO_BYTES,
|
|
48
68
|
MeloRequest,
|
|
49
69
|
MeloResponse,
|
|
@@ -4854,6 +4854,7 @@ function CodeBlock({
|
|
|
4854
4854
|
|
|
4855
4855
|
// ../../src/components/ui/dialog.tsx
|
|
4856
4856
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
4857
|
+
import { cn as cn2 } from "cn";
|
|
4857
4858
|
import { XIcon } from "lucide-react";
|
|
4858
4859
|
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4859
4860
|
function Dialog({ ...props }) {
|
|
@@ -4874,13 +4875,14 @@ function DialogOverlay({
|
|
|
4874
4875
|
}) {
|
|
4875
4876
|
return /* @__PURE__ */ jsx18(DialogPrimitive.Backdrop, {
|
|
4876
4877
|
"data-slot": "dialog-overlay",
|
|
4877
|
-
className:
|
|
4878
|
+
className: cn2("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs", className),
|
|
4878
4879
|
...props
|
|
4879
4880
|
});
|
|
4880
4881
|
}
|
|
4881
4882
|
function DialogContent({
|
|
4882
4883
|
className,
|
|
4883
4884
|
children,
|
|
4885
|
+
showCloseButton = true,
|
|
4884
4886
|
...props
|
|
4885
4887
|
}) {
|
|
4886
4888
|
return /* @__PURE__ */ jsxs12(DialogPortal, {
|
|
@@ -4888,16 +4890,19 @@ function DialogContent({
|
|
|
4888
4890
|
/* @__PURE__ */ jsx18(DialogOverlay, {}),
|
|
4889
4891
|
/* @__PURE__ */ jsxs12(DialogPrimitive.Popup, {
|
|
4890
4892
|
"data-slot": "dialog-content",
|
|
4891
|
-
className:
|
|
4893
|
+
className: cn2("bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl p-6 text-sm ring-1 duration-100 outline-none sm:max-w-md", className),
|
|
4892
4894
|
...props,
|
|
4893
4895
|
children: [
|
|
4894
4896
|
children,
|
|
4895
|
-
/* @__PURE__ */ jsxs12(DialogPrimitive.Close, {
|
|
4896
|
-
|
|
4897
|
+
showCloseButton && /* @__PURE__ */ jsxs12(DialogPrimitive.Close, {
|
|
4898
|
+
"data-slot": "dialog-close",
|
|
4899
|
+
render: /* @__PURE__ */ jsx18(Button, {
|
|
4900
|
+
variant: "ghost",
|
|
4901
|
+
className: "absolute top-4 right-4",
|
|
4902
|
+
size: "icon-sm"
|
|
4903
|
+
}),
|
|
4897
4904
|
children: [
|
|
4898
|
-
/* @__PURE__ */ jsx18(XIcon, {
|
|
4899
|
-
className: "size-4"
|
|
4900
|
-
}),
|
|
4905
|
+
/* @__PURE__ */ jsx18(XIcon, {}),
|
|
4901
4906
|
/* @__PURE__ */ jsx18("span", {
|
|
4902
4907
|
className: "sr-only",
|
|
4903
4908
|
children: "Close"
|
|
@@ -4912,17 +4917,14 @@ function DialogContent({
|
|
|
4912
4917
|
function DialogHeader({ className, ...props }) {
|
|
4913
4918
|
return /* @__PURE__ */ jsx18("div", {
|
|
4914
4919
|
"data-slot": "dialog-header",
|
|
4915
|
-
className:
|
|
4920
|
+
className: cn2("flex flex-col gap-2", className),
|
|
4916
4921
|
...props
|
|
4917
4922
|
});
|
|
4918
4923
|
}
|
|
4919
|
-
function DialogTitle({
|
|
4920
|
-
className,
|
|
4921
|
-
...props
|
|
4922
|
-
}) {
|
|
4924
|
+
function DialogTitle({ className, ...props }) {
|
|
4923
4925
|
return /* @__PURE__ */ jsx18(DialogPrimitive.Title, {
|
|
4924
4926
|
"data-slot": "dialog-title",
|
|
4925
|
-
className:
|
|
4927
|
+
className: cn2("leading-none font-medium", className),
|
|
4926
4928
|
...props
|
|
4927
4929
|
});
|
|
4928
4930
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/registry",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.15",
|
|
4
4
|
"description": "Tree-shakable KrakStack components and Effect services.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -396,6 +396,10 @@
|
|
|
396
396
|
"types": "./dist/services/notification/persistence/schema.d.ts",
|
|
397
397
|
"import": "./dist/services/notification/persistence/schema.js"
|
|
398
398
|
},
|
|
399
|
+
"./clamav": {
|
|
400
|
+
"types": "./dist/services/clamav/index.d.ts",
|
|
401
|
+
"import": "./dist/services/clamav/index.js"
|
|
402
|
+
},
|
|
399
403
|
"./service-s3": {
|
|
400
404
|
"types": "./dist/services/s3/index.d.ts",
|
|
401
405
|
"import": "./dist/services/s3/index.js"
|