@hlos-ai/schemas 0.6.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/README.md +1 -1
- package/dist/index.cjs +178 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +389 -9
- package/dist/index.d.ts +389 -9
- package/dist/index.js +162 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3645,13 +3645,391 @@ type SignedRejectionReceiptV0 = z.infer<typeof SignedRejectionReceiptV0Schema>;
|
|
|
3645
3645
|
*/
|
|
3646
3646
|
type UnsignedSrrV0 = Omit<SignedRejectionReceiptV0, 'signature'>;
|
|
3647
3647
|
|
|
3648
|
+
declare const LIABILITY_WAIVER_TERMS_TYPE_URI: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3649
|
+
declare const LIABILITY_WAIVER_TERMS_VERSION: 0;
|
|
3650
|
+
declare const LiabilityDispositionSchema: z.ZodEnum<["ABSORB", "RELEASE", "TRANSFER", "DISPUTE"]>;
|
|
3651
|
+
type LiabilityDisposition = z.infer<typeof LiabilityDispositionSchema>;
|
|
3652
|
+
declare const LiabilityWaiverTermsPartiesSchema: z.ZodObject<{
|
|
3653
|
+
offered_by: z.ZodOptional<z.ZodString>;
|
|
3654
|
+
offered_to: z.ZodOptional<z.ZodString>;
|
|
3655
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
3656
|
+
burdened_party: z.ZodOptional<z.ZodString>;
|
|
3657
|
+
}, "strict", z.ZodTypeAny, {
|
|
3658
|
+
offered_by?: string | undefined;
|
|
3659
|
+
offered_to?: string | undefined;
|
|
3660
|
+
beneficiary?: string | undefined;
|
|
3661
|
+
burdened_party?: string | undefined;
|
|
3662
|
+
}, {
|
|
3663
|
+
offered_by?: string | undefined;
|
|
3664
|
+
offered_to?: string | undefined;
|
|
3665
|
+
beneficiary?: string | undefined;
|
|
3666
|
+
burdened_party?: string | undefined;
|
|
3667
|
+
}>;
|
|
3668
|
+
declare const LiabilityWaiverTermsScopeSchema: z.ZodObject<{
|
|
3669
|
+
crossing_id: z.ZodOptional<z.ZodString>;
|
|
3670
|
+
commitment_hash: z.ZodOptional<z.ZodString>;
|
|
3671
|
+
claim_scope: z.ZodOptional<z.ZodString>;
|
|
3672
|
+
}, "strict", z.ZodTypeAny, {
|
|
3673
|
+
crossing_id?: string | undefined;
|
|
3674
|
+
commitment_hash?: string | undefined;
|
|
3675
|
+
claim_scope?: string | undefined;
|
|
3676
|
+
}, {
|
|
3677
|
+
crossing_id?: string | undefined;
|
|
3678
|
+
commitment_hash?: string | undefined;
|
|
3679
|
+
claim_scope?: string | undefined;
|
|
3680
|
+
}>;
|
|
3681
|
+
declare const LiabilityWaiverTermsConditionsSchema: z.ZodObject<{
|
|
3682
|
+
effective_if: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3683
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
3684
|
+
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
3685
|
+
}, "strict", z.ZodTypeAny, {
|
|
3686
|
+
expires_at?: string | undefined;
|
|
3687
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3688
|
+
jurisdiction?: string | undefined;
|
|
3689
|
+
}, {
|
|
3690
|
+
expires_at?: string | undefined;
|
|
3691
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3692
|
+
jurisdiction?: string | undefined;
|
|
3693
|
+
}>;
|
|
3694
|
+
declare const LiabilityWaiverTermsHashInputSchema: z.ZodObject<{
|
|
3695
|
+
parties: z.ZodObject<{
|
|
3696
|
+
offered_by: z.ZodOptional<z.ZodString>;
|
|
3697
|
+
offered_to: z.ZodOptional<z.ZodString>;
|
|
3698
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
3699
|
+
burdened_party: z.ZodOptional<z.ZodString>;
|
|
3700
|
+
}, "strict", z.ZodTypeAny, {
|
|
3701
|
+
offered_by?: string | undefined;
|
|
3702
|
+
offered_to?: string | undefined;
|
|
3703
|
+
beneficiary?: string | undefined;
|
|
3704
|
+
burdened_party?: string | undefined;
|
|
3705
|
+
}, {
|
|
3706
|
+
offered_by?: string | undefined;
|
|
3707
|
+
offered_to?: string | undefined;
|
|
3708
|
+
beneficiary?: string | undefined;
|
|
3709
|
+
burdened_party?: string | undefined;
|
|
3710
|
+
}>;
|
|
3711
|
+
liability_effect: z.ZodEnum<["ABSORB", "RELEASE", "TRANSFER", "DISPUTE"]>;
|
|
3712
|
+
scope: z.ZodObject<{
|
|
3713
|
+
crossing_id: z.ZodOptional<z.ZodString>;
|
|
3714
|
+
commitment_hash: z.ZodOptional<z.ZodString>;
|
|
3715
|
+
claim_scope: z.ZodOptional<z.ZodString>;
|
|
3716
|
+
}, "strict", z.ZodTypeAny, {
|
|
3717
|
+
crossing_id?: string | undefined;
|
|
3718
|
+
commitment_hash?: string | undefined;
|
|
3719
|
+
claim_scope?: string | undefined;
|
|
3720
|
+
}, {
|
|
3721
|
+
crossing_id?: string | undefined;
|
|
3722
|
+
commitment_hash?: string | undefined;
|
|
3723
|
+
claim_scope?: string | undefined;
|
|
3724
|
+
}>;
|
|
3725
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
3726
|
+
effective_if: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3727
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
3728
|
+
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
3729
|
+
}, "strict", z.ZodTypeAny, {
|
|
3730
|
+
expires_at?: string | undefined;
|
|
3731
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3732
|
+
jurisdiction?: string | undefined;
|
|
3733
|
+
}, {
|
|
3734
|
+
expires_at?: string | undefined;
|
|
3735
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3736
|
+
jurisdiction?: string | undefined;
|
|
3737
|
+
}>>;
|
|
3738
|
+
canonical_terms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3739
|
+
}, "strict", z.ZodTypeAny, {
|
|
3740
|
+
parties: {
|
|
3741
|
+
offered_by?: string | undefined;
|
|
3742
|
+
offered_to?: string | undefined;
|
|
3743
|
+
beneficiary?: string | undefined;
|
|
3744
|
+
burdened_party?: string | undefined;
|
|
3745
|
+
};
|
|
3746
|
+
liability_effect: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
3747
|
+
scope: {
|
|
3748
|
+
crossing_id?: string | undefined;
|
|
3749
|
+
commitment_hash?: string | undefined;
|
|
3750
|
+
claim_scope?: string | undefined;
|
|
3751
|
+
};
|
|
3752
|
+
conditions?: {
|
|
3753
|
+
expires_at?: string | undefined;
|
|
3754
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3755
|
+
jurisdiction?: string | undefined;
|
|
3756
|
+
} | undefined;
|
|
3757
|
+
canonical_terms?: Record<string, unknown> | undefined;
|
|
3758
|
+
}, {
|
|
3759
|
+
parties: {
|
|
3760
|
+
offered_by?: string | undefined;
|
|
3761
|
+
offered_to?: string | undefined;
|
|
3762
|
+
beneficiary?: string | undefined;
|
|
3763
|
+
burdened_party?: string | undefined;
|
|
3764
|
+
};
|
|
3765
|
+
liability_effect: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
3766
|
+
scope: {
|
|
3767
|
+
crossing_id?: string | undefined;
|
|
3768
|
+
commitment_hash?: string | undefined;
|
|
3769
|
+
claim_scope?: string | undefined;
|
|
3770
|
+
};
|
|
3771
|
+
conditions?: {
|
|
3772
|
+
expires_at?: string | undefined;
|
|
3773
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3774
|
+
jurisdiction?: string | undefined;
|
|
3775
|
+
} | undefined;
|
|
3776
|
+
canonical_terms?: Record<string, unknown> | undefined;
|
|
3777
|
+
}>;
|
|
3778
|
+
type LiabilityWaiverTermsHashInput = z.infer<typeof LiabilityWaiverTermsHashInputSchema>;
|
|
3779
|
+
declare const LiabilityWaiverTermsRefV0Schema: z.ZodObject<{
|
|
3780
|
+
waiver_id: z.ZodOptional<z.ZodString>;
|
|
3781
|
+
terms_hash: z.ZodString;
|
|
3782
|
+
type: z.ZodLiteral<"https://hlos.ai/schema/LiabilityWaiverTermsV0">;
|
|
3783
|
+
version: z.ZodLiteral<0>;
|
|
3784
|
+
}, "strict", z.ZodTypeAny, {
|
|
3785
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3786
|
+
version: 0;
|
|
3787
|
+
terms_hash: string;
|
|
3788
|
+
waiver_id?: string | undefined;
|
|
3789
|
+
}, {
|
|
3790
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3791
|
+
version: 0;
|
|
3792
|
+
terms_hash: string;
|
|
3793
|
+
waiver_id?: string | undefined;
|
|
3794
|
+
}>;
|
|
3795
|
+
declare const LiabilityWaiverTermsV0Schema: z.ZodObject<{
|
|
3796
|
+
'@type': z.ZodLiteral<"https://hlos.ai/schema/LiabilityWaiverTermsV0">;
|
|
3797
|
+
version: z.ZodLiteral<0>;
|
|
3798
|
+
waiver_id: z.ZodString;
|
|
3799
|
+
terms_hash: z.ZodString;
|
|
3800
|
+
parties: z.ZodObject<{
|
|
3801
|
+
offered_by: z.ZodOptional<z.ZodString>;
|
|
3802
|
+
offered_to: z.ZodOptional<z.ZodString>;
|
|
3803
|
+
beneficiary: z.ZodOptional<z.ZodString>;
|
|
3804
|
+
burdened_party: z.ZodOptional<z.ZodString>;
|
|
3805
|
+
}, "strict", z.ZodTypeAny, {
|
|
3806
|
+
offered_by?: string | undefined;
|
|
3807
|
+
offered_to?: string | undefined;
|
|
3808
|
+
beneficiary?: string | undefined;
|
|
3809
|
+
burdened_party?: string | undefined;
|
|
3810
|
+
}, {
|
|
3811
|
+
offered_by?: string | undefined;
|
|
3812
|
+
offered_to?: string | undefined;
|
|
3813
|
+
beneficiary?: string | undefined;
|
|
3814
|
+
burdened_party?: string | undefined;
|
|
3815
|
+
}>;
|
|
3816
|
+
liability_effect: z.ZodEnum<["ABSORB", "RELEASE", "TRANSFER", "DISPUTE"]>;
|
|
3817
|
+
scope: z.ZodObject<{
|
|
3818
|
+
crossing_id: z.ZodOptional<z.ZodString>;
|
|
3819
|
+
commitment_hash: z.ZodOptional<z.ZodString>;
|
|
3820
|
+
claim_scope: z.ZodOptional<z.ZodString>;
|
|
3821
|
+
}, "strict", z.ZodTypeAny, {
|
|
3822
|
+
crossing_id?: string | undefined;
|
|
3823
|
+
commitment_hash?: string | undefined;
|
|
3824
|
+
claim_scope?: string | undefined;
|
|
3825
|
+
}, {
|
|
3826
|
+
crossing_id?: string | undefined;
|
|
3827
|
+
commitment_hash?: string | undefined;
|
|
3828
|
+
claim_scope?: string | undefined;
|
|
3829
|
+
}>;
|
|
3830
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
3831
|
+
effective_if: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3832
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
3833
|
+
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
3834
|
+
}, "strict", z.ZodTypeAny, {
|
|
3835
|
+
expires_at?: string | undefined;
|
|
3836
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3837
|
+
jurisdiction?: string | undefined;
|
|
3838
|
+
}, {
|
|
3839
|
+
expires_at?: string | undefined;
|
|
3840
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3841
|
+
jurisdiction?: string | undefined;
|
|
3842
|
+
}>>;
|
|
3843
|
+
human_readable_summary: z.ZodOptional<z.ZodString>;
|
|
3844
|
+
canonical_terms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3845
|
+
}, "strict", z.ZodTypeAny, {
|
|
3846
|
+
'@type': "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3847
|
+
version: 0;
|
|
3848
|
+
parties: {
|
|
3849
|
+
offered_by?: string | undefined;
|
|
3850
|
+
offered_to?: string | undefined;
|
|
3851
|
+
beneficiary?: string | undefined;
|
|
3852
|
+
burdened_party?: string | undefined;
|
|
3853
|
+
};
|
|
3854
|
+
liability_effect: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
3855
|
+
scope: {
|
|
3856
|
+
crossing_id?: string | undefined;
|
|
3857
|
+
commitment_hash?: string | undefined;
|
|
3858
|
+
claim_scope?: string | undefined;
|
|
3859
|
+
};
|
|
3860
|
+
waiver_id: string;
|
|
3861
|
+
terms_hash: string;
|
|
3862
|
+
conditions?: {
|
|
3863
|
+
expires_at?: string | undefined;
|
|
3864
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3865
|
+
jurisdiction?: string | undefined;
|
|
3866
|
+
} | undefined;
|
|
3867
|
+
canonical_terms?: Record<string, unknown> | undefined;
|
|
3868
|
+
human_readable_summary?: string | undefined;
|
|
3869
|
+
}, {
|
|
3870
|
+
'@type': "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3871
|
+
version: 0;
|
|
3872
|
+
parties: {
|
|
3873
|
+
offered_by?: string | undefined;
|
|
3874
|
+
offered_to?: string | undefined;
|
|
3875
|
+
beneficiary?: string | undefined;
|
|
3876
|
+
burdened_party?: string | undefined;
|
|
3877
|
+
};
|
|
3878
|
+
liability_effect: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
3879
|
+
scope: {
|
|
3880
|
+
crossing_id?: string | undefined;
|
|
3881
|
+
commitment_hash?: string | undefined;
|
|
3882
|
+
claim_scope?: string | undefined;
|
|
3883
|
+
};
|
|
3884
|
+
waiver_id: string;
|
|
3885
|
+
terms_hash: string;
|
|
3886
|
+
conditions?: {
|
|
3887
|
+
expires_at?: string | undefined;
|
|
3888
|
+
effective_if?: Record<string, unknown> | undefined;
|
|
3889
|
+
jurisdiction?: string | undefined;
|
|
3890
|
+
} | undefined;
|
|
3891
|
+
canonical_terms?: Record<string, unknown> | undefined;
|
|
3892
|
+
human_readable_summary?: string | undefined;
|
|
3893
|
+
}>;
|
|
3894
|
+
type LiabilityWaiverTermsRefV0 = z.infer<typeof LiabilityWaiverTermsRefV0Schema>;
|
|
3895
|
+
type LiabilityWaiverTermsV0 = z.infer<typeof LiabilityWaiverTermsV0Schema>;
|
|
3896
|
+
declare function toLiabilityWaiverTermsHashInput(terms: Pick<LiabilityWaiverTermsV0, 'parties' | 'liability_effect' | 'scope' | 'conditions' | 'canonical_terms'>): LiabilityWaiverTermsHashInput;
|
|
3897
|
+
declare function computeLiabilityWaiverTermsHash(input: LiabilityWaiverTermsHashInput): string;
|
|
3898
|
+
|
|
3899
|
+
declare const SRR_V1_TYPE_URI: "https://hlos.ai/schema/SignedRejectionReceiptV1";
|
|
3900
|
+
declare const SRR_V1_VERSION: 1;
|
|
3901
|
+
declare const SRR_V1_REJECTION_DOMAIN: "kernel:u:rejection:v1";
|
|
3902
|
+
declare const SRR_V1_SIGNATURE_ALGORITHM: "Ed25519";
|
|
3903
|
+
declare const SignedRejectionReceiptV1Schema: z.ZodEffects<z.ZodObject<{
|
|
3904
|
+
'@type': z.ZodLiteral<"https://hlos.ai/schema/SignedRejectionReceiptV1">;
|
|
3905
|
+
version: z.ZodLiteral<1>;
|
|
3906
|
+
receipt_id: z.ZodString;
|
|
3907
|
+
crossing_id: z.ZodString;
|
|
3908
|
+
reason_code: z.ZodString;
|
|
3909
|
+
reason_message: z.ZodString;
|
|
3910
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3911
|
+
commitment_hash: z.ZodOptional<z.ZodString>;
|
|
3912
|
+
issuer_id: z.ZodString;
|
|
3913
|
+
rejected_at: z.ZodString;
|
|
3914
|
+
issuer_public_key_ref: z.ZodString;
|
|
3915
|
+
signature_algorithm: z.ZodLiteral<"Ed25519">;
|
|
3916
|
+
liability_disposition: z.ZodEnum<["ABSORB", "RELEASE", "TRANSFER", "DISPUTE"]>;
|
|
3917
|
+
waiver_terms_ref: z.ZodOptional<z.ZodObject<{
|
|
3918
|
+
waiver_id: z.ZodOptional<z.ZodString>;
|
|
3919
|
+
terms_hash: z.ZodString;
|
|
3920
|
+
type: z.ZodLiteral<"https://hlos.ai/schema/LiabilityWaiverTermsV0">;
|
|
3921
|
+
version: z.ZodLiteral<0>;
|
|
3922
|
+
}, "strict", z.ZodTypeAny, {
|
|
3923
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3924
|
+
version: 0;
|
|
3925
|
+
terms_hash: string;
|
|
3926
|
+
waiver_id?: string | undefined;
|
|
3927
|
+
}, {
|
|
3928
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3929
|
+
version: 0;
|
|
3930
|
+
terms_hash: string;
|
|
3931
|
+
waiver_id?: string | undefined;
|
|
3932
|
+
}>>;
|
|
3933
|
+
signature: z.ZodString;
|
|
3934
|
+
}, "strict", z.ZodTypeAny, {
|
|
3935
|
+
'@type': "https://hlos.ai/schema/SignedRejectionReceiptV1";
|
|
3936
|
+
version: 1;
|
|
3937
|
+
signature: string;
|
|
3938
|
+
receipt_id: string;
|
|
3939
|
+
crossing_id: string;
|
|
3940
|
+
reason_code: string;
|
|
3941
|
+
reason_message: string;
|
|
3942
|
+
issuer_id: string;
|
|
3943
|
+
rejected_at: string;
|
|
3944
|
+
issuer_public_key_ref: string;
|
|
3945
|
+
signature_algorithm: "Ed25519";
|
|
3946
|
+
liability_disposition: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
3947
|
+
details?: Record<string, unknown> | undefined;
|
|
3948
|
+
commitment_hash?: string | undefined;
|
|
3949
|
+
waiver_terms_ref?: {
|
|
3950
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3951
|
+
version: 0;
|
|
3952
|
+
terms_hash: string;
|
|
3953
|
+
waiver_id?: string | undefined;
|
|
3954
|
+
} | undefined;
|
|
3955
|
+
}, {
|
|
3956
|
+
'@type': "https://hlos.ai/schema/SignedRejectionReceiptV1";
|
|
3957
|
+
version: 1;
|
|
3958
|
+
signature: string;
|
|
3959
|
+
receipt_id: string;
|
|
3960
|
+
crossing_id: string;
|
|
3961
|
+
reason_code: string;
|
|
3962
|
+
reason_message: string;
|
|
3963
|
+
issuer_id: string;
|
|
3964
|
+
rejected_at: string;
|
|
3965
|
+
issuer_public_key_ref: string;
|
|
3966
|
+
signature_algorithm: "Ed25519";
|
|
3967
|
+
liability_disposition: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
3968
|
+
details?: Record<string, unknown> | undefined;
|
|
3969
|
+
commitment_hash?: string | undefined;
|
|
3970
|
+
waiver_terms_ref?: {
|
|
3971
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3972
|
+
version: 0;
|
|
3973
|
+
terms_hash: string;
|
|
3974
|
+
waiver_id?: string | undefined;
|
|
3975
|
+
} | undefined;
|
|
3976
|
+
}>, {
|
|
3977
|
+
'@type': "https://hlos.ai/schema/SignedRejectionReceiptV1";
|
|
3978
|
+
version: 1;
|
|
3979
|
+
signature: string;
|
|
3980
|
+
receipt_id: string;
|
|
3981
|
+
crossing_id: string;
|
|
3982
|
+
reason_code: string;
|
|
3983
|
+
reason_message: string;
|
|
3984
|
+
issuer_id: string;
|
|
3985
|
+
rejected_at: string;
|
|
3986
|
+
issuer_public_key_ref: string;
|
|
3987
|
+
signature_algorithm: "Ed25519";
|
|
3988
|
+
liability_disposition: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
3989
|
+
details?: Record<string, unknown> | undefined;
|
|
3990
|
+
commitment_hash?: string | undefined;
|
|
3991
|
+
waiver_terms_ref?: {
|
|
3992
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
3993
|
+
version: 0;
|
|
3994
|
+
terms_hash: string;
|
|
3995
|
+
waiver_id?: string | undefined;
|
|
3996
|
+
} | undefined;
|
|
3997
|
+
}, {
|
|
3998
|
+
'@type': "https://hlos.ai/schema/SignedRejectionReceiptV1";
|
|
3999
|
+
version: 1;
|
|
4000
|
+
signature: string;
|
|
4001
|
+
receipt_id: string;
|
|
4002
|
+
crossing_id: string;
|
|
4003
|
+
reason_code: string;
|
|
4004
|
+
reason_message: string;
|
|
4005
|
+
issuer_id: string;
|
|
4006
|
+
rejected_at: string;
|
|
4007
|
+
issuer_public_key_ref: string;
|
|
4008
|
+
signature_algorithm: "Ed25519";
|
|
4009
|
+
liability_disposition: "ABSORB" | "RELEASE" | "TRANSFER" | "DISPUTE";
|
|
4010
|
+
details?: Record<string, unknown> | undefined;
|
|
4011
|
+
commitment_hash?: string | undefined;
|
|
4012
|
+
waiver_terms_ref?: {
|
|
4013
|
+
type: "https://hlos.ai/schema/LiabilityWaiverTermsV0";
|
|
4014
|
+
version: 0;
|
|
4015
|
+
terms_hash: string;
|
|
4016
|
+
waiver_id?: string | undefined;
|
|
4017
|
+
} | undefined;
|
|
4018
|
+
}>;
|
|
4019
|
+
type SignedRejectionReceiptV1 = z.infer<typeof SignedRejectionReceiptV1Schema>;
|
|
4020
|
+
type UnsignedSrrV1 = Omit<SignedRejectionReceiptV1, 'signature'>;
|
|
4021
|
+
|
|
3648
4022
|
/**
|
|
3649
4023
|
* @hlos-ai/schemas - SRR Signing Payload and Digest
|
|
3650
4024
|
*
|
|
3651
|
-
* Domain-separated signing payload construction for
|
|
3652
|
-
*
|
|
4025
|
+
* Domain-separated signing payload construction for SignedRejectionReceipt (V0 and V1).
|
|
4026
|
+
* Canonical SRR signing construction:
|
|
3653
4027
|
* signingPayload = UTF8(DOMAIN) || SHA-256(JCS(unsignedFields))
|
|
3654
4028
|
*
|
|
4029
|
+
* Each version uses its own domain prefix for formal domain separation:
|
|
4030
|
+
* V0: 'kernel:k:rejection:v1'
|
|
4031
|
+
* V1: 'kernel:u:rejection:v1'
|
|
4032
|
+
*
|
|
3655
4033
|
* This is an intentional tightening over K-08, which requires domain separation
|
|
3656
4034
|
* and deterministic payloads but does not prescribe this exact byte recipe.
|
|
3657
4035
|
*
|
|
@@ -3661,12 +4039,14 @@ type UnsignedSrrV0 = Omit<SignedRejectionReceiptV0, 'signature'>;
|
|
|
3661
4039
|
/**
|
|
3662
4040
|
* Compute the domain-separated signing payload for an unsigned SRR.
|
|
3663
4041
|
*
|
|
3664
|
-
* signingPayload = UTF8(
|
|
4042
|
+
* signingPayload = UTF8(DOMAIN) || SHA-256(JCS(unsignedFields))
|
|
4043
|
+
*
|
|
4044
|
+
* DOMAIN is version-specific (V0: 'kernel:k:rejection:v1', V1: 'kernel:u:rejection:v1').
|
|
3665
4045
|
*
|
|
3666
4046
|
* @param unsignedSrr - All SRR fields EXCEPT signature
|
|
3667
4047
|
* @returns Uint8Array payload (domain bytes + 32 SHA-256)
|
|
3668
4048
|
*/
|
|
3669
|
-
declare function computeSrrSigningPayload(unsignedSrr: UnsignedSrrV0): Uint8Array;
|
|
4049
|
+
declare function computeSrrSigningPayload(unsignedSrr: UnsignedSrrV0 | UnsignedSrrV1): Uint8Array;
|
|
3670
4050
|
/**
|
|
3671
4051
|
* Compute the replay/idempotency digest for a full signed SRR.
|
|
3672
4052
|
*
|
|
@@ -3678,12 +4058,12 @@ declare function computeSrrSigningPayload(unsignedSrr: UnsignedSrrV0): Uint8Arra
|
|
|
3678
4058
|
* @param signedSrr - Complete signed SRR
|
|
3679
4059
|
* @returns 43-char base64url string
|
|
3680
4060
|
*/
|
|
3681
|
-
declare function computeSrrDigest(signedSrr: SignedRejectionReceiptV0): string;
|
|
4061
|
+
declare function computeSrrDigest(signedSrr: SignedRejectionReceiptV0 | SignedRejectionReceiptV1): string;
|
|
3682
4062
|
|
|
3683
4063
|
/**
|
|
3684
4064
|
* @hlos-ai/schemas - SRR Verification
|
|
3685
4065
|
*
|
|
3686
|
-
* Ed25519 signature verification for
|
|
4066
|
+
* Ed25519 signature verification for SignedRejectionReceipt (V0 and V1).
|
|
3687
4067
|
* Shared primitive (verifyDetachedEd25519) + SRR-specific entrypoint.
|
|
3688
4068
|
*
|
|
3689
4069
|
* Requires @noble/ed25519 as peer dependency.
|
|
@@ -3705,7 +4085,7 @@ type SrrVerificationResult = {
|
|
|
3705
4085
|
reason: 'UNSUPPORTED_ALGORITHM' | 'SCHEMA_VIOLATION' | 'PAYLOAD_CONSTRUCTION_ERROR' | 'INVALID_SIGNATURE';
|
|
3706
4086
|
};
|
|
3707
4087
|
/**
|
|
3708
|
-
* Verify a
|
|
4088
|
+
* Verify a SignedRejectionReceipt artifact.
|
|
3709
4089
|
*
|
|
3710
4090
|
* 1. Algorithm check (must be Ed25519) — checked BEFORE schema so the
|
|
3711
4091
|
* caller gets a meaningful UNSUPPORTED_ALGORITHM rather than a
|
|
@@ -3721,8 +4101,8 @@ type SrrVerificationResult = {
|
|
|
3721
4101
|
* - Issuer authorization — only checks signature matches key
|
|
3722
4102
|
*/
|
|
3723
4103
|
declare function verifySignedRejectionReceipt(params: {
|
|
3724
|
-
srr: SignedRejectionReceiptV0;
|
|
4104
|
+
srr: SignedRejectionReceiptV0 | SignedRejectionReceiptV1 | unknown;
|
|
3725
4105
|
publicKey: Uint8Array;
|
|
3726
4106
|
}): Promise<SrrVerificationResult>;
|
|
3727
4107
|
|
|
3728
|
-
export { type AAREnvelopeV0, AAREnvelopeV0Schema, AAREnvelopeV0TypedSchema, AAR_ENVELOPE_TYPE, AAR_ENVELOPE_VERSION, type AgentListItem, AgentListItemSchema, type AgentPassportStubResponse, AgentPassportStubResponseSchema, type AgentStatus, AgentStatusSchema, type AgentType, AgentTypeSchema, type AgentsListResponse, AgentsListResponseSchema, type ApiResponse, type ArtifactRef, ArtifactRefSchema, type AvailabilityType, AvailabilityTypeSchema, BASE64URL_SHA256_REGEX, Base64urlEd25519SigSchema, Base64urlSha256Schema, CHAIN_STAGE_ORDER, type ChainStageType, ChainStageTypeSchema, type CredentialSource, CredentialSourceSchema, type CrossingHashInputV0, CrossingHashInputV0Schema, CrossingIdFormatSchema, type CrossingSettledReceipt, CrossingSettledReceiptSchema, type CrossingSnapshotV0, CrossingSnapshotV0Schema, type CustodyReceiptContent, CustodyReceiptContentSchema, type DispatchChainContent, DispatchChainContentSchema, DispatchId, DispatchIdBrand, ERROR_CODE_STATUS, EVAL_GOLDEN_FIXTURES, type EconomicGateProofContent, EconomicGateProofContentSchema, type ErrorResponse, ErrorResponseSchema, type EvalArtifact, EvalArtifactSchema, type EvalFailure, EvalFailureSchema, type EvalGraderResult, EvalGraderResultSchema, type EvalTranscriptStep, EvalTranscriptStepSchema, FINALITY_GOLDEN_FIXTURES, FinalityLevel, type FundingSource, FundingSourceSchema, GOLDEN_FIXTURES, type KernelError, type KernelErrorCode, KernelErrorCodeSchema, KernelErrorSchema, type KernelOk, KernelOkSchema, type LiabilityAttestationContent, LiabilityAttestationContentSchema, type LogInclusionProof, LogInclusionProofSchema, NA_ID_PREFIX, type NotarizeResponse, NotarizeResponseSchema, type NotarizeStatus, NotarizeStatusSchema, type NotaryAttestation, NotaryAttestationIdFormatSchema, NotaryAttestationSchema, type NotaryRequest, NotaryRequestSchema, PassportIdFormatSchema, type ProviderRole, ProviderRoleSchema, REASON_CODE_PATTERN, type RPID, RPIDSchema, ReceiptIdFormatSchema, type RelyingPartyId, RelyingPartyIdSchema, type RotationEpoch, RotationEpochSchema, SETTLEMENT_AUTHORITY, SRR_INITIAL_REASON_CODES, SRR_REJECTION_DOMAIN, SRR_SIGNATURE_ALGORITHM, SRR_TYPE_URI, SRR_VERSION, SURFACES, type SettlementAnchorContent, SettlementAnchorContentSchema, type SettlementExecuteError, SettlementExecuteErrorSchema, type SettlementExecuteRequest, SettlementExecuteRequestSchema, type SettlementExecuteResponse, SettlementExecuteResponseSchema, type SettlementExecuteSuccess, SettlementExecuteSuccessSchema, type SignedRejectionReceiptV0, SignedRejectionReceiptV0Schema, type SrrVerificationResult, type Stack, type StackConnection, StackConnectionSchema, type StackProvider, StackProviderSchema, StackSchema, type SuccessResponse, SuccessResponseSchema, type Surface, SurfaceSchema, type TransactionContext, type TransactionContextHash, TransactionContextHashSchema, TransactionContextSchema, type UnsignedSrrV0, W_GOLDEN_FIXTURES, W_RPID_DOMAIN, W_TXCTX_DOMAIN, WalletIdFormatSchema, assertRootHash, assertValidChainLink, base64urlToBytes, bytesToBase64url, computeSrrDigest, computeSrrSigningPayload, deriveFundingSource, encodeEpoch, error, isCrossingHashInputV0, isCrossingSettledReceipt, isNotaryAttestation, isNotaryRequest, isSettlementExecuteError, isSettlementExecuteSuccess, kernelError, kernelOk, success, validateTimeWindow, verifyAAR, verifyDetachedEd25519, verifySignedRejectionReceipt };
|
|
4108
|
+
export { type AAREnvelopeV0, AAREnvelopeV0Schema, AAREnvelopeV0TypedSchema, AAR_ENVELOPE_TYPE, AAR_ENVELOPE_VERSION, type AgentListItem, AgentListItemSchema, type AgentPassportStubResponse, AgentPassportStubResponseSchema, type AgentStatus, AgentStatusSchema, type AgentType, AgentTypeSchema, type AgentsListResponse, AgentsListResponseSchema, type ApiResponse, type ArtifactRef, ArtifactRefSchema, type AvailabilityType, AvailabilityTypeSchema, BASE64URL_SHA256_REGEX, Base64urlEd25519SigSchema, Base64urlSha256Schema, CHAIN_STAGE_ORDER, type ChainStageType, ChainStageTypeSchema, type CredentialSource, CredentialSourceSchema, type CrossingHashInputV0, CrossingHashInputV0Schema, CrossingIdFormatSchema, type CrossingSettledReceipt, CrossingSettledReceiptSchema, type CrossingSnapshotV0, CrossingSnapshotV0Schema, type CustodyReceiptContent, CustodyReceiptContentSchema, type DispatchChainContent, DispatchChainContentSchema, DispatchId, DispatchIdBrand, ERROR_CODE_STATUS, EVAL_GOLDEN_FIXTURES, type EconomicGateProofContent, EconomicGateProofContentSchema, type ErrorResponse, ErrorResponseSchema, type EvalArtifact, EvalArtifactSchema, type EvalFailure, EvalFailureSchema, type EvalGraderResult, EvalGraderResultSchema, type EvalTranscriptStep, EvalTranscriptStepSchema, FINALITY_GOLDEN_FIXTURES, FinalityLevel, type FundingSource, FundingSourceSchema, GOLDEN_FIXTURES, type KernelError, type KernelErrorCode, KernelErrorCodeSchema, KernelErrorSchema, type KernelOk, KernelOkSchema, LIABILITY_WAIVER_TERMS_TYPE_URI, LIABILITY_WAIVER_TERMS_VERSION, type LiabilityAttestationContent, LiabilityAttestationContentSchema, type LiabilityDisposition, LiabilityDispositionSchema, LiabilityWaiverTermsConditionsSchema, type LiabilityWaiverTermsHashInput, LiabilityWaiverTermsHashInputSchema, LiabilityWaiverTermsPartiesSchema, type LiabilityWaiverTermsRefV0, LiabilityWaiverTermsRefV0Schema, LiabilityWaiverTermsScopeSchema, type LiabilityWaiverTermsV0, LiabilityWaiverTermsV0Schema, type LogInclusionProof, LogInclusionProofSchema, NA_ID_PREFIX, type NotarizeResponse, NotarizeResponseSchema, type NotarizeStatus, NotarizeStatusSchema, type NotaryAttestation, NotaryAttestationIdFormatSchema, NotaryAttestationSchema, type NotaryRequest, NotaryRequestSchema, PassportIdFormatSchema, type ProviderRole, ProviderRoleSchema, REASON_CODE_PATTERN, type RPID, RPIDSchema, ReceiptIdFormatSchema, type RelyingPartyId, RelyingPartyIdSchema, type RotationEpoch, RotationEpochSchema, SETTLEMENT_AUTHORITY, SRR_INITIAL_REASON_CODES, SRR_REJECTION_DOMAIN, SRR_SIGNATURE_ALGORITHM, SRR_TYPE_URI, SRR_V1_REJECTION_DOMAIN, SRR_V1_SIGNATURE_ALGORITHM, SRR_V1_TYPE_URI, SRR_V1_VERSION, SRR_VERSION, SURFACES, type SettlementAnchorContent, SettlementAnchorContentSchema, type SettlementExecuteError, SettlementExecuteErrorSchema, type SettlementExecuteRequest, SettlementExecuteRequestSchema, type SettlementExecuteResponse, SettlementExecuteResponseSchema, type SettlementExecuteSuccess, SettlementExecuteSuccessSchema, type SignedRejectionReceiptV0, SignedRejectionReceiptV0Schema, type SignedRejectionReceiptV1, SignedRejectionReceiptV1Schema, type SrrVerificationResult, type Stack, type StackConnection, StackConnectionSchema, type StackProvider, StackProviderSchema, StackSchema, type SuccessResponse, SuccessResponseSchema, type Surface, SurfaceSchema, type TransactionContext, type TransactionContextHash, TransactionContextHashSchema, TransactionContextSchema, type UnsignedSrrV0, type UnsignedSrrV1, W_GOLDEN_FIXTURES, W_RPID_DOMAIN, W_TXCTX_DOMAIN, WalletIdFormatSchema, assertRootHash, assertValidChainLink, base64urlToBytes, bytesToBase64url, computeLiabilityWaiverTermsHash, computeSrrDigest, computeSrrSigningPayload, deriveFundingSource, encodeEpoch, error, isCrossingHashInputV0, isCrossingSettledReceipt, isNotaryAttestation, isNotaryRequest, isSettlementExecuteError, isSettlementExecuteSuccess, kernelError, kernelOk, success, toLiabilityWaiverTermsHashInput, validateTimeWindow, verifyAAR, verifyDetachedEd25519, verifySignedRejectionReceipt };
|