@kmmao/happy-wire 0.7.0 → 0.7.1
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/dist/index.cjs +23 -0
- package/dist/index.d.cts +41 -4
- package/dist/index.d.mts +41 -4
- package/dist/index.mjs +21 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -579,6 +579,26 @@ const TurnKnowledgeExtractionSchema = z__namespace.object({
|
|
|
579
579
|
})
|
|
580
580
|
});
|
|
581
581
|
|
|
582
|
+
const VoiceTokenAllowedSchema = z__namespace.object({
|
|
583
|
+
allowed: z__namespace.literal(true),
|
|
584
|
+
token: z__namespace.string(),
|
|
585
|
+
agentId: z__namespace.string(),
|
|
586
|
+
elevenUserId: z__namespace.string(),
|
|
587
|
+
usedSeconds: z__namespace.number(),
|
|
588
|
+
limitSeconds: z__namespace.number()
|
|
589
|
+
});
|
|
590
|
+
const VoiceTokenDeniedSchema = z__namespace.object({
|
|
591
|
+
allowed: z__namespace.literal(false),
|
|
592
|
+
reason: z__namespace.enum(["voice_limit_reached", "subscription_required"]),
|
|
593
|
+
usedSeconds: z__namespace.number(),
|
|
594
|
+
limitSeconds: z__namespace.number(),
|
|
595
|
+
agentId: z__namespace.string()
|
|
596
|
+
});
|
|
597
|
+
const VoiceTokenResponseSchema = z__namespace.discriminatedUnion("allowed", [
|
|
598
|
+
VoiceTokenAllowedSchema,
|
|
599
|
+
VoiceTokenDeniedSchema
|
|
600
|
+
]);
|
|
601
|
+
|
|
582
602
|
exports.AgentMessageSchema = AgentMessageSchema;
|
|
583
603
|
exports.ApiMessageSchema = ApiMessageSchema;
|
|
584
604
|
exports.ApiUpdateMachineStateSchema = ApiUpdateMachineStateSchema;
|
|
@@ -626,6 +646,9 @@ exports.UserMessageSchema = UserMessageSchema;
|
|
|
626
646
|
exports.VersionedEncryptedValueSchema = VersionedEncryptedValueSchema;
|
|
627
647
|
exports.VersionedMachineEncryptedValueSchema = VersionedMachineEncryptedValueSchema;
|
|
628
648
|
exports.VersionedNullableEncryptedValueSchema = VersionedNullableEncryptedValueSchema;
|
|
649
|
+
exports.VoiceTokenAllowedSchema = VoiceTokenAllowedSchema;
|
|
650
|
+
exports.VoiceTokenDeniedSchema = VoiceTokenDeniedSchema;
|
|
651
|
+
exports.VoiceTokenResponseSchema = VoiceTokenResponseSchema;
|
|
629
652
|
exports.createEnvelope = createEnvelope;
|
|
630
653
|
exports.sessionContextUsageCategorySchema = sessionContextUsageCategorySchema;
|
|
631
654
|
exports.sessionContextUsageEventSchema = sessionContextUsageEventSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1517,8 +1517,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
1517
1517
|
}>;
|
|
1518
1518
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
1519
1519
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
1520
|
-
user: "user";
|
|
1521
1520
|
session: "session";
|
|
1521
|
+
user: "user";
|
|
1522
1522
|
supervisor: "supervisor";
|
|
1523
1523
|
}>;
|
|
1524
1524
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
@@ -1550,8 +1550,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
1550
1550
|
warning: "warning";
|
|
1551
1551
|
}>;
|
|
1552
1552
|
contributorType: z.ZodEnum<{
|
|
1553
|
-
user: "user";
|
|
1554
1553
|
session: "session";
|
|
1554
|
+
user: "user";
|
|
1555
1555
|
supervisor: "supervisor";
|
|
1556
1556
|
}>;
|
|
1557
1557
|
action: z.ZodEnum<{
|
|
@@ -1823,5 +1823,42 @@ declare const TurnKnowledgeExtractionSchema: z.ZodObject<{
|
|
|
1823
1823
|
}, z.core.$strip>;
|
|
1824
1824
|
type TurnKnowledgeExtraction = z.infer<typeof TurnKnowledgeExtractionSchema>;
|
|
1825
1825
|
|
|
1826
|
-
|
|
1827
|
-
|
|
1826
|
+
declare const VoiceTokenAllowedSchema: z.ZodObject<{
|
|
1827
|
+
allowed: z.ZodLiteral<true>;
|
|
1828
|
+
token: z.ZodString;
|
|
1829
|
+
agentId: z.ZodString;
|
|
1830
|
+
elevenUserId: z.ZodString;
|
|
1831
|
+
usedSeconds: z.ZodNumber;
|
|
1832
|
+
limitSeconds: z.ZodNumber;
|
|
1833
|
+
}, z.core.$strip>;
|
|
1834
|
+
declare const VoiceTokenDeniedSchema: z.ZodObject<{
|
|
1835
|
+
allowed: z.ZodLiteral<false>;
|
|
1836
|
+
reason: z.ZodEnum<{
|
|
1837
|
+
voice_limit_reached: "voice_limit_reached";
|
|
1838
|
+
subscription_required: "subscription_required";
|
|
1839
|
+
}>;
|
|
1840
|
+
usedSeconds: z.ZodNumber;
|
|
1841
|
+
limitSeconds: z.ZodNumber;
|
|
1842
|
+
agentId: z.ZodString;
|
|
1843
|
+
}, z.core.$strip>;
|
|
1844
|
+
declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1845
|
+
allowed: z.ZodLiteral<true>;
|
|
1846
|
+
token: z.ZodString;
|
|
1847
|
+
agentId: z.ZodString;
|
|
1848
|
+
elevenUserId: z.ZodString;
|
|
1849
|
+
usedSeconds: z.ZodNumber;
|
|
1850
|
+
limitSeconds: z.ZodNumber;
|
|
1851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1852
|
+
allowed: z.ZodLiteral<false>;
|
|
1853
|
+
reason: z.ZodEnum<{
|
|
1854
|
+
voice_limit_reached: "voice_limit_reached";
|
|
1855
|
+
subscription_required: "subscription_required";
|
|
1856
|
+
}>;
|
|
1857
|
+
usedSeconds: z.ZodNumber;
|
|
1858
|
+
limitSeconds: z.ZodNumber;
|
|
1859
|
+
agentId: z.ZodString;
|
|
1860
|
+
}, z.core.$strip>], "allowed">;
|
|
1861
|
+
type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
1862
|
+
|
|
1863
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
1864
|
+
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.d.mts
CHANGED
|
@@ -1517,8 +1517,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
1517
1517
|
}>;
|
|
1518
1518
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
1519
1519
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
1520
|
-
user: "user";
|
|
1521
1520
|
session: "session";
|
|
1521
|
+
user: "user";
|
|
1522
1522
|
supervisor: "supervisor";
|
|
1523
1523
|
}>;
|
|
1524
1524
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
@@ -1550,8 +1550,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
1550
1550
|
warning: "warning";
|
|
1551
1551
|
}>;
|
|
1552
1552
|
contributorType: z.ZodEnum<{
|
|
1553
|
-
user: "user";
|
|
1554
1553
|
session: "session";
|
|
1554
|
+
user: "user";
|
|
1555
1555
|
supervisor: "supervisor";
|
|
1556
1556
|
}>;
|
|
1557
1557
|
action: z.ZodEnum<{
|
|
@@ -1823,5 +1823,42 @@ declare const TurnKnowledgeExtractionSchema: z.ZodObject<{
|
|
|
1823
1823
|
}, z.core.$strip>;
|
|
1824
1824
|
type TurnKnowledgeExtraction = z.infer<typeof TurnKnowledgeExtractionSchema>;
|
|
1825
1825
|
|
|
1826
|
-
|
|
1827
|
-
|
|
1826
|
+
declare const VoiceTokenAllowedSchema: z.ZodObject<{
|
|
1827
|
+
allowed: z.ZodLiteral<true>;
|
|
1828
|
+
token: z.ZodString;
|
|
1829
|
+
agentId: z.ZodString;
|
|
1830
|
+
elevenUserId: z.ZodString;
|
|
1831
|
+
usedSeconds: z.ZodNumber;
|
|
1832
|
+
limitSeconds: z.ZodNumber;
|
|
1833
|
+
}, z.core.$strip>;
|
|
1834
|
+
declare const VoiceTokenDeniedSchema: z.ZodObject<{
|
|
1835
|
+
allowed: z.ZodLiteral<false>;
|
|
1836
|
+
reason: z.ZodEnum<{
|
|
1837
|
+
voice_limit_reached: "voice_limit_reached";
|
|
1838
|
+
subscription_required: "subscription_required";
|
|
1839
|
+
}>;
|
|
1840
|
+
usedSeconds: z.ZodNumber;
|
|
1841
|
+
limitSeconds: z.ZodNumber;
|
|
1842
|
+
agentId: z.ZodString;
|
|
1843
|
+
}, z.core.$strip>;
|
|
1844
|
+
declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1845
|
+
allowed: z.ZodLiteral<true>;
|
|
1846
|
+
token: z.ZodString;
|
|
1847
|
+
agentId: z.ZodString;
|
|
1848
|
+
elevenUserId: z.ZodString;
|
|
1849
|
+
usedSeconds: z.ZodNumber;
|
|
1850
|
+
limitSeconds: z.ZodNumber;
|
|
1851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1852
|
+
allowed: z.ZodLiteral<false>;
|
|
1853
|
+
reason: z.ZodEnum<{
|
|
1854
|
+
voice_limit_reached: "voice_limit_reached";
|
|
1855
|
+
subscription_required: "subscription_required";
|
|
1856
|
+
}>;
|
|
1857
|
+
usedSeconds: z.ZodNumber;
|
|
1858
|
+
limitSeconds: z.ZodNumber;
|
|
1859
|
+
agentId: z.ZodString;
|
|
1860
|
+
}, z.core.$strip>], "allowed">;
|
|
1861
|
+
type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
1862
|
+
|
|
1863
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
1864
|
+
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.mjs
CHANGED
|
@@ -558,4 +558,24 @@ const TurnKnowledgeExtractionSchema = z.object({
|
|
|
558
558
|
})
|
|
559
559
|
});
|
|
560
560
|
|
|
561
|
-
|
|
561
|
+
const VoiceTokenAllowedSchema = z.object({
|
|
562
|
+
allowed: z.literal(true),
|
|
563
|
+
token: z.string(),
|
|
564
|
+
agentId: z.string(),
|
|
565
|
+
elevenUserId: z.string(),
|
|
566
|
+
usedSeconds: z.number(),
|
|
567
|
+
limitSeconds: z.number()
|
|
568
|
+
});
|
|
569
|
+
const VoiceTokenDeniedSchema = z.object({
|
|
570
|
+
allowed: z.literal(false),
|
|
571
|
+
reason: z.enum(["voice_limit_reached", "subscription_required"]),
|
|
572
|
+
usedSeconds: z.number(),
|
|
573
|
+
limitSeconds: z.number(),
|
|
574
|
+
agentId: z.string()
|
|
575
|
+
});
|
|
576
|
+
const VoiceTokenResponseSchema = z.discriminatedUnion("allowed", [
|
|
577
|
+
VoiceTokenAllowedSchema,
|
|
578
|
+
VoiceTokenDeniedSchema
|
|
579
|
+
]);
|
|
580
|
+
|
|
581
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|