@peasant-labs/schema 0.17.0 → 0.19.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/README.md +4 -0
- package/dist/fixtures/session-graph-capability.d.ts +454 -0
- package/dist/fixtures/session-graph-capability.js +4 -0
- package/dist/fixtures/session-graph.d.ts +7349 -0
- package/dist/fixtures/session-graph.js +4 -0
- package/dist/fixtures.d.ts +2 -0
- package/dist/fixtures.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +227 -39
- package/dist/internal/generated/content-capabilities.gen.d.ts +7 -0
- package/dist/internal/generated/content-capabilities.gen.js +48 -2
- package/dist/internal/generated/contract/zod.gen.d.ts +9558 -1328
- package/dist/internal/generated/contract/zod.gen.js +597 -27
- package/dist/internal/generated/enums.gen.d.ts +136 -0
- package/dist/internal/generated/enums.gen.js +149 -0
- package/dist/internal/generated/local-api.d.ts +308 -6
- package/dist/internal/generated/metadata-limits.gen.d.ts +1 -0
- package/dist/internal/generated/metadata-limits.gen.js +2 -0
- package/dist/internal/generated/public-contract.gen.d.ts +2 -2
- package/dist/internal/generated/public-contract.gen.js +1 -1
- package/dist/internal/generated/session-graph-capability-fixtures.gen.d.ts +454 -0
- package/dist/internal/generated/session-graph-capability-fixtures.gen.js +570 -0
- package/dist/internal/generated/session-graph-fixtures.gen.d.ts +7349 -0
- package/dist/internal/generated/session-graph-fixtures.gen.js +8052 -0
- package/dist/internal/generated/versions.gen.d.ts +4 -4
- package/dist/internal/generated/versions.gen.js +4 -4
- package/dist/internal/generated/village-api.d.ts +512 -8
- package/package.json +9 -1
|
@@ -61,6 +61,19 @@ import { type NativePiMessageRole as NativePiMessageRoleContract } from "./contr
|
|
|
61
61
|
import { type DigestItemKind as DigestItemKindContract } from "./contract/zod.gen.js";
|
|
62
62
|
import { type VillagePullRequestAttachmentState as VillagePullRequestAttachmentStateContract } from "./contract/zod.gen.js";
|
|
63
63
|
import { type VillagePromptsCheckMode as VillagePromptsCheckModeContract } from "./contract/zod.gen.js";
|
|
64
|
+
import { type SessionRelationshipKind as SessionRelationshipKindContract } from "./contract/zod.gen.js";
|
|
65
|
+
import { type RelationshipTargetState as RelationshipTargetStateContract } from "./contract/zod.gen.js";
|
|
66
|
+
import { type EvidenceKind as EvidenceKindContract } from "./contract/zod.gen.js";
|
|
67
|
+
import { type SessionPurpose as SessionPurposeContract } from "./contract/zod.gen.js";
|
|
68
|
+
import { type ContentOrigin as ContentOriginContract } from "./contract/zod.gen.js";
|
|
69
|
+
import { type ActorOrigin as ActorOriginContract } from "./contract/zod.gen.js";
|
|
70
|
+
import { type DeliveryOrigin as DeliveryOriginContract } from "./contract/zod.gen.js";
|
|
71
|
+
import { type ContentOwnership as ContentOwnershipContract } from "./contract/zod.gen.js";
|
|
72
|
+
import { type InputModality as InputModalityContract } from "./contract/zod.gen.js";
|
|
73
|
+
import { type PublicSourceAnchorKind as PublicSourceAnchorKindContract } from "./contract/zod.gen.js";
|
|
74
|
+
import { type EarlierHistoryState as EarlierHistoryStateContract } from "./contract/zod.gen.js";
|
|
75
|
+
import { type RelationshipNavigationStatus as RelationshipNavigationStatusContract } from "./contract/zod.gen.js";
|
|
76
|
+
import { type SessionListItemKind as SessionListItemKindContract } from "./contract/zod.gen.js";
|
|
64
77
|
export type PublishOperationKind = PublishOperationKindContract;
|
|
65
78
|
export declare const PublishOperationKind: Readonly<{
|
|
66
79
|
readonly Preserve: "replace" | "append" | "preserve";
|
|
@@ -637,3 +650,126 @@ export declare const VillagePromptsCheckMode: Readonly<{
|
|
|
637
650
|
}>;
|
|
638
651
|
export declare const AllVillagePromptsCheckModes: readonly VillagePromptsCheckMode[];
|
|
639
652
|
export declare function isVillagePromptsCheckMode(value: unknown): value is VillagePromptsCheckMode;
|
|
653
|
+
export type SessionRelationshipKind = SessionRelationshipKindContract;
|
|
654
|
+
export declare const SessionRelationshipKind: Readonly<{
|
|
655
|
+
readonly StartedBy: "started_by" | "context_from";
|
|
656
|
+
readonly ContextFrom: "started_by" | "context_from";
|
|
657
|
+
}>;
|
|
658
|
+
export declare const AllSessionRelationshipKinds: readonly SessionRelationshipKind[];
|
|
659
|
+
export declare function isSessionRelationshipKind(value: unknown): value is SessionRelationshipKind;
|
|
660
|
+
export type RelationshipTargetState = RelationshipTargetStateContract;
|
|
661
|
+
export declare const RelationshipTargetState: Readonly<{
|
|
662
|
+
readonly Known: "unknown" | "target_known" | "target_known_retained" | "explicit_none" | "conflicting_current_native_evidence";
|
|
663
|
+
readonly KnownRetained: "unknown" | "target_known" | "target_known_retained" | "explicit_none" | "conflicting_current_native_evidence";
|
|
664
|
+
readonly ExplicitNone: "unknown" | "target_known" | "target_known_retained" | "explicit_none" | "conflicting_current_native_evidence";
|
|
665
|
+
readonly Unknown: "unknown" | "target_known" | "target_known_retained" | "explicit_none" | "conflicting_current_native_evidence";
|
|
666
|
+
readonly ConflictingCurrentNativeEvidence: "unknown" | "target_known" | "target_known_retained" | "explicit_none" | "conflicting_current_native_evidence";
|
|
667
|
+
}>;
|
|
668
|
+
export declare const AllRelationshipTargetStates: readonly RelationshipTargetState[];
|
|
669
|
+
export declare function isRelationshipTargetState(value: unknown): value is RelationshipTargetState;
|
|
670
|
+
export type EvidenceKind = EvidenceKindContract;
|
|
671
|
+
export declare const EvidenceKind: Readonly<{
|
|
672
|
+
readonly NativeTyped: "unknown" | "native_typed" | "lifecycle_typed" | "existing_adapter" | "retained_last_good" | "conflict";
|
|
673
|
+
readonly LifecycleTyped: "unknown" | "native_typed" | "lifecycle_typed" | "existing_adapter" | "retained_last_good" | "conflict";
|
|
674
|
+
readonly ExistingAdapter: "unknown" | "native_typed" | "lifecycle_typed" | "existing_adapter" | "retained_last_good" | "conflict";
|
|
675
|
+
readonly RetainedLastGood: "unknown" | "native_typed" | "lifecycle_typed" | "existing_adapter" | "retained_last_good" | "conflict";
|
|
676
|
+
readonly Unknown: "unknown" | "native_typed" | "lifecycle_typed" | "existing_adapter" | "retained_last_good" | "conflict";
|
|
677
|
+
readonly Conflict: "unknown" | "native_typed" | "lifecycle_typed" | "existing_adapter" | "retained_last_good" | "conflict";
|
|
678
|
+
}>;
|
|
679
|
+
export declare const AllEvidenceKinds: readonly EvidenceKind[];
|
|
680
|
+
export declare function isEvidenceKind(value: unknown): value is EvidenceKind;
|
|
681
|
+
export type SessionPurpose = SessionPurposeContract;
|
|
682
|
+
export declare const SessionPurpose: Readonly<{
|
|
683
|
+
readonly Interaction: "unknown" | "interaction" | "delegated_work" | "helper_review";
|
|
684
|
+
readonly DelegatedWork: "unknown" | "interaction" | "delegated_work" | "helper_review";
|
|
685
|
+
readonly HelperReview: "unknown" | "interaction" | "delegated_work" | "helper_review";
|
|
686
|
+
readonly Unknown: "unknown" | "interaction" | "delegated_work" | "helper_review";
|
|
687
|
+
}>;
|
|
688
|
+
export declare const AllSessionPurposes: readonly SessionPurpose[];
|
|
689
|
+
export declare function isSessionPurpose(value: unknown): value is SessionPurpose;
|
|
690
|
+
export type ContentOrigin = ContentOriginContract;
|
|
691
|
+
export declare const ContentOrigin: Readonly<{
|
|
692
|
+
readonly SubmittedInput: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
693
|
+
readonly HarnessContext: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
694
|
+
readonly AgentOutput: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
695
|
+
readonly AgentCommunication: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
696
|
+
readonly ToolActivity: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
697
|
+
readonly SystemControl: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
698
|
+
readonly GeneratedSummary: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
699
|
+
readonly Unknown: "unknown" | "submitted_input" | "harness_context" | "agent_output" | "agent_communication" | "tool_activity" | "system_control" | "generated_summary";
|
|
700
|
+
}>;
|
|
701
|
+
export declare const AllContentOrigins: readonly ContentOrigin[];
|
|
702
|
+
export declare function isContentOrigin(value: unknown): value is ContentOrigin;
|
|
703
|
+
export type ActorOrigin = ActorOriginContract;
|
|
704
|
+
export declare const ActorOrigin: Readonly<{
|
|
705
|
+
readonly Operator: "unknown" | "operator" | "agent_delegate" | "harness";
|
|
706
|
+
readonly AgentDelegate: "unknown" | "operator" | "agent_delegate" | "harness";
|
|
707
|
+
readonly Harness: "unknown" | "operator" | "agent_delegate" | "harness";
|
|
708
|
+
readonly Unknown: "unknown" | "operator" | "agent_delegate" | "harness";
|
|
709
|
+
}>;
|
|
710
|
+
export declare const AllActorOrigins: readonly ActorOrigin[];
|
|
711
|
+
export declare function isActorOrigin(value: unknown): value is ActorOrigin;
|
|
712
|
+
export type DeliveryOrigin = DeliveryOriginContract;
|
|
713
|
+
export declare const DeliveryOrigin: Readonly<{
|
|
714
|
+
readonly SessionAdmission: "unknown" | "session_admission" | "guardian_review" | "subagent_delivery" | "inherited_context" | "tool_delivery" | "system_lifecycle";
|
|
715
|
+
readonly GuardianReview: "unknown" | "session_admission" | "guardian_review" | "subagent_delivery" | "inherited_context" | "tool_delivery" | "system_lifecycle";
|
|
716
|
+
readonly SubagentDelivery: "unknown" | "session_admission" | "guardian_review" | "subagent_delivery" | "inherited_context" | "tool_delivery" | "system_lifecycle";
|
|
717
|
+
readonly InheritedContext: "unknown" | "session_admission" | "guardian_review" | "subagent_delivery" | "inherited_context" | "tool_delivery" | "system_lifecycle";
|
|
718
|
+
readonly ToolDelivery: "unknown" | "session_admission" | "guardian_review" | "subagent_delivery" | "inherited_context" | "tool_delivery" | "system_lifecycle";
|
|
719
|
+
readonly SystemLifecycle: "unknown" | "session_admission" | "guardian_review" | "subagent_delivery" | "inherited_context" | "tool_delivery" | "system_lifecycle";
|
|
720
|
+
readonly Unknown: "unknown" | "session_admission" | "guardian_review" | "subagent_delivery" | "inherited_context" | "tool_delivery" | "system_lifecycle";
|
|
721
|
+
}>;
|
|
722
|
+
export declare const AllDeliveryOrigins: readonly DeliveryOrigin[];
|
|
723
|
+
export declare function isDeliveryOrigin(value: unknown): value is DeliveryOrigin;
|
|
724
|
+
export type ContentOwnership = ContentOwnershipContract;
|
|
725
|
+
export declare const ContentOwnership: Readonly<{
|
|
726
|
+
readonly Local: "local" | "inherited" | "uncertain";
|
|
727
|
+
readonly Inherited: "local" | "inherited" | "uncertain";
|
|
728
|
+
readonly Uncertain: "local" | "inherited" | "uncertain";
|
|
729
|
+
}>;
|
|
730
|
+
export declare const AllContentOwnerships: readonly ContentOwnership[];
|
|
731
|
+
export declare function isContentOwnership(value: unknown): value is ContentOwnership;
|
|
732
|
+
export type InputModality = InputModalityContract;
|
|
733
|
+
export declare const InputModality: Readonly<{
|
|
734
|
+
readonly None: "none" | "media" | "unknown" | "text" | "user_action" | "mixed";
|
|
735
|
+
readonly Text: "none" | "media" | "unknown" | "text" | "user_action" | "mixed";
|
|
736
|
+
readonly Media: "none" | "media" | "unknown" | "text" | "user_action" | "mixed";
|
|
737
|
+
readonly UserAction: "none" | "media" | "unknown" | "text" | "user_action" | "mixed";
|
|
738
|
+
readonly Mixed: "none" | "media" | "unknown" | "text" | "user_action" | "mixed";
|
|
739
|
+
readonly Unknown: "none" | "media" | "unknown" | "text" | "user_action" | "mixed";
|
|
740
|
+
}>;
|
|
741
|
+
export declare const AllInputModalities: readonly InputModality[];
|
|
742
|
+
export declare function isInputModality(value: unknown): value is InputModality;
|
|
743
|
+
export type PublicSourceAnchorKind = PublicSourceAnchorKindContract;
|
|
744
|
+
export declare const PublicSourceAnchorKind: Readonly<{
|
|
745
|
+
readonly General: "general_source_session" | "before_redacted_entry" | "through_redacted_entry";
|
|
746
|
+
readonly Before: "general_source_session" | "before_redacted_entry" | "through_redacted_entry";
|
|
747
|
+
readonly Through: "general_source_session" | "before_redacted_entry" | "through_redacted_entry";
|
|
748
|
+
}>;
|
|
749
|
+
export declare const AllPublicSourceAnchorKinds: readonly PublicSourceAnchorKind[];
|
|
750
|
+
export declare function isPublicSourceAnchorKind(value: unknown): value is PublicSourceAnchorKind;
|
|
751
|
+
export type EarlierHistoryState = EarlierHistoryStateContract;
|
|
752
|
+
export declare const EarlierHistoryState: Readonly<{
|
|
753
|
+
readonly UncertainMigrated: "uncertain_migrated" | "uncertain_unresolved";
|
|
754
|
+
readonly UncertainUnresolved: "uncertain_migrated" | "uncertain_unresolved";
|
|
755
|
+
}>;
|
|
756
|
+
export declare const AllEarlierHistoryStates: readonly EarlierHistoryState[];
|
|
757
|
+
export declare function isEarlierHistoryState(value: unknown): value is EarlierHistoryState;
|
|
758
|
+
export type RelationshipNavigationStatus = RelationshipNavigationStatusContract;
|
|
759
|
+
export declare const RelationshipNavigationStatus: Readonly<{
|
|
760
|
+
readonly Resolved: "unknown" | "resolved" | "general_link_only" | "known_unavailable" | "inaccessible" | "conflicting";
|
|
761
|
+
readonly GeneralLinkOnly: "unknown" | "resolved" | "general_link_only" | "known_unavailable" | "inaccessible" | "conflicting";
|
|
762
|
+
readonly KnownUnavailable: "unknown" | "resolved" | "general_link_only" | "known_unavailable" | "inaccessible" | "conflicting";
|
|
763
|
+
readonly Inaccessible: "unknown" | "resolved" | "general_link_only" | "known_unavailable" | "inaccessible" | "conflicting";
|
|
764
|
+
readonly Unknown: "unknown" | "resolved" | "general_link_only" | "known_unavailable" | "inaccessible" | "conflicting";
|
|
765
|
+
readonly Conflicting: "unknown" | "resolved" | "general_link_only" | "known_unavailable" | "inaccessible" | "conflicting";
|
|
766
|
+
}>;
|
|
767
|
+
export declare const AllRelationshipNavigationStatuses: readonly RelationshipNavigationStatus[];
|
|
768
|
+
export declare function isRelationshipNavigationStatus(value: unknown): value is RelationshipNavigationStatus;
|
|
769
|
+
export type SessionListItemKind = SessionListItemKindContract;
|
|
770
|
+
export declare const SessionListItemKind: Readonly<{
|
|
771
|
+
readonly Transcript: "transcript" | "context_container";
|
|
772
|
+
readonly ContextContainer: "transcript" | "context_container";
|
|
773
|
+
}>;
|
|
774
|
+
export declare const AllSessionListItemKinds: readonly SessionListItemKind[];
|
|
775
|
+
export declare function isSessionListItemKind(value: unknown): value is SessionListItemKind;
|
|
@@ -62,6 +62,19 @@ import { zNativePiMessageRole } from "./contract/zod.gen.js";
|
|
|
62
62
|
import { zDigestItemKind } from "./contract/zod.gen.js";
|
|
63
63
|
import { zVillagePullRequestAttachmentState } from "./contract/zod.gen.js";
|
|
64
64
|
import { zVillagePromptsCheckMode } from "./contract/zod.gen.js";
|
|
65
|
+
import { zSessionRelationshipKind } from "./contract/zod.gen.js";
|
|
66
|
+
import { zRelationshipTargetState } from "./contract/zod.gen.js";
|
|
67
|
+
import { zEvidenceKind } from "./contract/zod.gen.js";
|
|
68
|
+
import { zSessionPurpose } from "./contract/zod.gen.js";
|
|
69
|
+
import { zContentOrigin } from "./contract/zod.gen.js";
|
|
70
|
+
import { zActorOrigin } from "./contract/zod.gen.js";
|
|
71
|
+
import { zDeliveryOrigin } from "./contract/zod.gen.js";
|
|
72
|
+
import { zContentOwnership } from "./contract/zod.gen.js";
|
|
73
|
+
import { zInputModality } from "./contract/zod.gen.js";
|
|
74
|
+
import { zPublicSourceAnchorKind } from "./contract/zod.gen.js";
|
|
75
|
+
import { zEarlierHistoryState } from "./contract/zod.gen.js";
|
|
76
|
+
import { zRelationshipNavigationStatus } from "./contract/zod.gen.js";
|
|
77
|
+
import { zSessionListItemKind } from "./contract/zod.gen.js";
|
|
65
78
|
export const PublishOperationKind = Object.freeze({
|
|
66
79
|
Preserve: zPublishOperationKind.parse("preserve"),
|
|
67
80
|
Replace: zPublishOperationKind.parse("replace"),
|
|
@@ -701,3 +714,139 @@ export const AllVillagePromptsCheckModes = Object.freeze([VillagePromptsCheckMod
|
|
|
701
714
|
export function isVillagePromptsCheckMode(value) {
|
|
702
715
|
return zVillagePromptsCheckMode.safeParse(value).success;
|
|
703
716
|
}
|
|
717
|
+
export const SessionRelationshipKind = Object.freeze({
|
|
718
|
+
StartedBy: zSessionRelationshipKind.parse("started_by"),
|
|
719
|
+
ContextFrom: zSessionRelationshipKind.parse("context_from"),
|
|
720
|
+
});
|
|
721
|
+
export const AllSessionRelationshipKinds = Object.freeze([SessionRelationshipKind.StartedBy, SessionRelationshipKind.ContextFrom]);
|
|
722
|
+
export function isSessionRelationshipKind(value) {
|
|
723
|
+
return zSessionRelationshipKind.safeParse(value).success;
|
|
724
|
+
}
|
|
725
|
+
export const RelationshipTargetState = Object.freeze({
|
|
726
|
+
Known: zRelationshipTargetState.parse("target_known"),
|
|
727
|
+
KnownRetained: zRelationshipTargetState.parse("target_known_retained"),
|
|
728
|
+
ExplicitNone: zRelationshipTargetState.parse("explicit_none"),
|
|
729
|
+
Unknown: zRelationshipTargetState.parse("unknown"),
|
|
730
|
+
ConflictingCurrentNativeEvidence: zRelationshipTargetState.parse("conflicting_current_native_evidence"),
|
|
731
|
+
});
|
|
732
|
+
export const AllRelationshipTargetStates = Object.freeze([RelationshipTargetState.Known, RelationshipTargetState.KnownRetained, RelationshipTargetState.ExplicitNone, RelationshipTargetState.Unknown, RelationshipTargetState.ConflictingCurrentNativeEvidence]);
|
|
733
|
+
export function isRelationshipTargetState(value) {
|
|
734
|
+
return zRelationshipTargetState.safeParse(value).success;
|
|
735
|
+
}
|
|
736
|
+
export const EvidenceKind = Object.freeze({
|
|
737
|
+
NativeTyped: zEvidenceKind.parse("native_typed"),
|
|
738
|
+
LifecycleTyped: zEvidenceKind.parse("lifecycle_typed"),
|
|
739
|
+
ExistingAdapter: zEvidenceKind.parse("existing_adapter"),
|
|
740
|
+
RetainedLastGood: zEvidenceKind.parse("retained_last_good"),
|
|
741
|
+
Unknown: zEvidenceKind.parse("unknown"),
|
|
742
|
+
Conflict: zEvidenceKind.parse("conflict"),
|
|
743
|
+
});
|
|
744
|
+
export const AllEvidenceKinds = Object.freeze([EvidenceKind.NativeTyped, EvidenceKind.LifecycleTyped, EvidenceKind.ExistingAdapter, EvidenceKind.RetainedLastGood, EvidenceKind.Unknown, EvidenceKind.Conflict]);
|
|
745
|
+
export function isEvidenceKind(value) {
|
|
746
|
+
return zEvidenceKind.safeParse(value).success;
|
|
747
|
+
}
|
|
748
|
+
export const SessionPurpose = Object.freeze({
|
|
749
|
+
Interaction: zSessionPurpose.parse("interaction"),
|
|
750
|
+
DelegatedWork: zSessionPurpose.parse("delegated_work"),
|
|
751
|
+
HelperReview: zSessionPurpose.parse("helper_review"),
|
|
752
|
+
Unknown: zSessionPurpose.parse("unknown"),
|
|
753
|
+
});
|
|
754
|
+
export const AllSessionPurposes = Object.freeze([SessionPurpose.Interaction, SessionPurpose.DelegatedWork, SessionPurpose.HelperReview, SessionPurpose.Unknown]);
|
|
755
|
+
export function isSessionPurpose(value) {
|
|
756
|
+
return zSessionPurpose.safeParse(value).success;
|
|
757
|
+
}
|
|
758
|
+
export const ContentOrigin = Object.freeze({
|
|
759
|
+
SubmittedInput: zContentOrigin.parse("submitted_input"),
|
|
760
|
+
HarnessContext: zContentOrigin.parse("harness_context"),
|
|
761
|
+
AgentOutput: zContentOrigin.parse("agent_output"),
|
|
762
|
+
AgentCommunication: zContentOrigin.parse("agent_communication"),
|
|
763
|
+
ToolActivity: zContentOrigin.parse("tool_activity"),
|
|
764
|
+
SystemControl: zContentOrigin.parse("system_control"),
|
|
765
|
+
GeneratedSummary: zContentOrigin.parse("generated_summary"),
|
|
766
|
+
Unknown: zContentOrigin.parse("unknown"),
|
|
767
|
+
});
|
|
768
|
+
export const AllContentOrigins = Object.freeze([ContentOrigin.SubmittedInput, ContentOrigin.HarnessContext, ContentOrigin.AgentOutput, ContentOrigin.AgentCommunication, ContentOrigin.ToolActivity, ContentOrigin.SystemControl, ContentOrigin.GeneratedSummary, ContentOrigin.Unknown]);
|
|
769
|
+
export function isContentOrigin(value) {
|
|
770
|
+
return zContentOrigin.safeParse(value).success;
|
|
771
|
+
}
|
|
772
|
+
export const ActorOrigin = Object.freeze({
|
|
773
|
+
Operator: zActorOrigin.parse("operator"),
|
|
774
|
+
AgentDelegate: zActorOrigin.parse("agent_delegate"),
|
|
775
|
+
Harness: zActorOrigin.parse("harness"),
|
|
776
|
+
Unknown: zActorOrigin.parse("unknown"),
|
|
777
|
+
});
|
|
778
|
+
export const AllActorOrigins = Object.freeze([ActorOrigin.Operator, ActorOrigin.AgentDelegate, ActorOrigin.Harness, ActorOrigin.Unknown]);
|
|
779
|
+
export function isActorOrigin(value) {
|
|
780
|
+
return zActorOrigin.safeParse(value).success;
|
|
781
|
+
}
|
|
782
|
+
export const DeliveryOrigin = Object.freeze({
|
|
783
|
+
SessionAdmission: zDeliveryOrigin.parse("session_admission"),
|
|
784
|
+
GuardianReview: zDeliveryOrigin.parse("guardian_review"),
|
|
785
|
+
SubagentDelivery: zDeliveryOrigin.parse("subagent_delivery"),
|
|
786
|
+
InheritedContext: zDeliveryOrigin.parse("inherited_context"),
|
|
787
|
+
ToolDelivery: zDeliveryOrigin.parse("tool_delivery"),
|
|
788
|
+
SystemLifecycle: zDeliveryOrigin.parse("system_lifecycle"),
|
|
789
|
+
Unknown: zDeliveryOrigin.parse("unknown"),
|
|
790
|
+
});
|
|
791
|
+
export const AllDeliveryOrigins = Object.freeze([DeliveryOrigin.SessionAdmission, DeliveryOrigin.GuardianReview, DeliveryOrigin.SubagentDelivery, DeliveryOrigin.InheritedContext, DeliveryOrigin.ToolDelivery, DeliveryOrigin.SystemLifecycle, DeliveryOrigin.Unknown]);
|
|
792
|
+
export function isDeliveryOrigin(value) {
|
|
793
|
+
return zDeliveryOrigin.safeParse(value).success;
|
|
794
|
+
}
|
|
795
|
+
export const ContentOwnership = Object.freeze({
|
|
796
|
+
Local: zContentOwnership.parse("local"),
|
|
797
|
+
Inherited: zContentOwnership.parse("inherited"),
|
|
798
|
+
Uncertain: zContentOwnership.parse("uncertain"),
|
|
799
|
+
});
|
|
800
|
+
export const AllContentOwnerships = Object.freeze([ContentOwnership.Local, ContentOwnership.Inherited, ContentOwnership.Uncertain]);
|
|
801
|
+
export function isContentOwnership(value) {
|
|
802
|
+
return zContentOwnership.safeParse(value).success;
|
|
803
|
+
}
|
|
804
|
+
export const InputModality = Object.freeze({
|
|
805
|
+
None: zInputModality.parse("none"),
|
|
806
|
+
Text: zInputModality.parse("text"),
|
|
807
|
+
Media: zInputModality.parse("media"),
|
|
808
|
+
UserAction: zInputModality.parse("user_action"),
|
|
809
|
+
Mixed: zInputModality.parse("mixed"),
|
|
810
|
+
Unknown: zInputModality.parse("unknown"),
|
|
811
|
+
});
|
|
812
|
+
export const AllInputModalities = Object.freeze([InputModality.None, InputModality.Text, InputModality.Media, InputModality.UserAction, InputModality.Mixed, InputModality.Unknown]);
|
|
813
|
+
export function isInputModality(value) {
|
|
814
|
+
return zInputModality.safeParse(value).success;
|
|
815
|
+
}
|
|
816
|
+
export const PublicSourceAnchorKind = Object.freeze({
|
|
817
|
+
General: zPublicSourceAnchorKind.parse("general_source_session"),
|
|
818
|
+
Before: zPublicSourceAnchorKind.parse("before_redacted_entry"),
|
|
819
|
+
Through: zPublicSourceAnchorKind.parse("through_redacted_entry"),
|
|
820
|
+
});
|
|
821
|
+
export const AllPublicSourceAnchorKinds = Object.freeze([PublicSourceAnchorKind.General, PublicSourceAnchorKind.Before, PublicSourceAnchorKind.Through]);
|
|
822
|
+
export function isPublicSourceAnchorKind(value) {
|
|
823
|
+
return zPublicSourceAnchorKind.safeParse(value).success;
|
|
824
|
+
}
|
|
825
|
+
export const EarlierHistoryState = Object.freeze({
|
|
826
|
+
UncertainMigrated: zEarlierHistoryState.parse("uncertain_migrated"),
|
|
827
|
+
UncertainUnresolved: zEarlierHistoryState.parse("uncertain_unresolved"),
|
|
828
|
+
});
|
|
829
|
+
export const AllEarlierHistoryStates = Object.freeze([EarlierHistoryState.UncertainMigrated, EarlierHistoryState.UncertainUnresolved]);
|
|
830
|
+
export function isEarlierHistoryState(value) {
|
|
831
|
+
return zEarlierHistoryState.safeParse(value).success;
|
|
832
|
+
}
|
|
833
|
+
export const RelationshipNavigationStatus = Object.freeze({
|
|
834
|
+
Resolved: zRelationshipNavigationStatus.parse("resolved"),
|
|
835
|
+
GeneralLinkOnly: zRelationshipNavigationStatus.parse("general_link_only"),
|
|
836
|
+
KnownUnavailable: zRelationshipNavigationStatus.parse("known_unavailable"),
|
|
837
|
+
Inaccessible: zRelationshipNavigationStatus.parse("inaccessible"),
|
|
838
|
+
Unknown: zRelationshipNavigationStatus.parse("unknown"),
|
|
839
|
+
Conflicting: zRelationshipNavigationStatus.parse("conflicting"),
|
|
840
|
+
});
|
|
841
|
+
export const AllRelationshipNavigationStatuses = Object.freeze([RelationshipNavigationStatus.Resolved, RelationshipNavigationStatus.GeneralLinkOnly, RelationshipNavigationStatus.KnownUnavailable, RelationshipNavigationStatus.Inaccessible, RelationshipNavigationStatus.Unknown, RelationshipNavigationStatus.Conflicting]);
|
|
842
|
+
export function isRelationshipNavigationStatus(value) {
|
|
843
|
+
return zRelationshipNavigationStatus.safeParse(value).success;
|
|
844
|
+
}
|
|
845
|
+
export const SessionListItemKind = Object.freeze({
|
|
846
|
+
Transcript: zSessionListItemKind.parse("transcript"),
|
|
847
|
+
ContextContainer: zSessionListItemKind.parse("context_container"),
|
|
848
|
+
});
|
|
849
|
+
export const AllSessionListItemKinds = Object.freeze([SessionListItemKind.Transcript, SessionListItemKind.ContextContainer]);
|
|
850
|
+
export function isSessionListItemKind(value) {
|
|
851
|
+
return zSessionListItemKind.safeParse(value).success;
|
|
852
|
+
}
|