@dynamicalsystems/idl 0.9.0 → 0.11.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/dist/index.d.mts CHANGED
@@ -31,14 +31,14 @@ declare const PersonReference: TObject<{
31
31
  * "lease", "refusal"); vectors address a shape as "<literal>#<shape>". */
32
32
  type ProfileEntry = {
33
33
  readonly literal: `dsg.${string}.${string}/${number}`;
34
- readonly shapes: Readonly<Record<string, TSchema>>;
34
+ readonly documents: Readonly<Record<string, TSchema>>;
35
35
  /** Set ONLY when the wire cannot carry the literal as a field of any
36
36
  * shape (a frozen /1); names exactly where the literal lives instead. */
37
37
  readonly literalNote?: string;
38
38
  /** Names the shape non-TS consumers validate a whole document against;
39
39
  * the emitted JSON Schema gains a root $ref to it. Only meaningful for
40
40
  * profiles with a single document root. */
41
- readonly rootShape?: string;
41
+ readonly rootDocument?: string;
42
42
  };
43
43
  //#endregion
44
44
  //#region src/kernel/dispatch-consume.v1.d.ts
@@ -110,6 +110,7 @@ declare const DispatchRefusalSchemaValue: import("@sinclair/typebox").TObject<{
110
110
  }>;
111
111
  declare const DispatchRefusalSchema: typeof DispatchRefusalSchemaValue;
112
112
  type DispatchRefusal = Static<typeof DispatchRefusalSchema>;
113
+ declare const dispatchConsumeV1: ProfileEntry;
113
114
  //#endregion
114
115
  //#region src/run/operation.v1.d.ts
115
116
  declare const OPERATION_PROFILE: "dsg.run.operation/1";
@@ -308,6 +309,7 @@ declare const OperationStatusSchema: import("@sinclair/typebox").TObject<{
308
309
  cost: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"reserved">, import("@sinclair/typebox").TLiteral<"provisional">, import("@sinclair/typebox").TLiteral<"reconciled">]>;
309
310
  }>;
310
311
  type OperationStatus = Readback;
312
+ declare const operationV1: ProfileEntry;
311
313
  //#endregion
312
314
  //#region src/infra/signed-law.v1.d.ts
313
315
  declare const SIGNED_LAW_PROFILE: "dsg.infra.signed-law/1";
@@ -479,6 +481,7 @@ declare const SignedLawBundleSchema: import("@sinclair/typebox").TObject<{
479
481
  }>;
480
482
  }>;
481
483
  type SignedLawBundle = Static<typeof SignedLawBundleSchema>;
484
+ declare const signedLawV1: ProfileEntry;
482
485
  //#endregion
483
486
  //#region src/infra/resource-descriptor.v1.d.ts
484
487
  declare const RESOURCE_DESCRIPTOR_PROFILE: "dsg.infra.resource-descriptor/1";
@@ -509,6 +512,7 @@ declare const ResourceDescriptorSchemaValue: import("@sinclair/typebox").TObject
509
512
  }>;
510
513
  declare const ResourceDescriptorSchema: typeof ResourceDescriptorSchemaValue;
511
514
  type ResourceDescriptor = Static<typeof ResourceDescriptorSchema>;
515
+ declare const resourceDescriptorV1: ProfileEntry;
512
516
  //#endregion
513
517
  //#region src/infra/adoption-fact.v1.d.ts
514
518
  declare const ADOPTION_FACT_PROFILE: "dsg.infra.adoption-fact/1";
@@ -532,6 +536,7 @@ declare const AdoptionFactSchemaValue: import("@sinclair/typebox").TObject<{
532
536
  }>;
533
537
  declare const AdoptionFactSchema: typeof AdoptionFactSchemaValue;
534
538
  type AdoptionFact = Static<typeof AdoptionFactSchema>;
539
+ declare const adoptionFactV1: ProfileEntry;
535
540
  //#endregion
536
541
  //#region src/registry/revocations.v1.d.ts
537
542
  declare const REVOCATIONS_PROFILE: "dsg.registry.revocations/1";
@@ -568,6 +573,7 @@ declare const RevocationPointerSchemaValue: import("@sinclair/typebox").TObject<
568
573
  }>;
569
574
  declare const RevocationPointerSchema: typeof RevocationPointerSchemaValue;
570
575
  type RevocationPointer = Static<typeof RevocationPointerSchema>;
576
+ declare const revocationsV1: ProfileEntry;
571
577
  //#endregion
572
578
  //#region src/kernel/bootstrap.v1.d.ts
573
579
  declare const BOOTSTRAP_PROFILE: "dsg.kernel.bootstrap/1";
@@ -629,6 +635,7 @@ declare const SignedBootstrapIntentSchemaValue: import("@sinclair/typebox").TObj
629
635
  }>;
630
636
  declare const SignedBootstrapIntentSchema: typeof SignedBootstrapIntentSchemaValue;
631
637
  type SignedBootstrapIntent = Static<typeof SignedBootstrapIntentSchema>;
638
+ declare const bootstrapV1: ProfileEntry;
632
639
  //#endregion
633
640
  //#region src/kernel/standing-order-activation.v1.d.ts
634
641
  declare const STANDING_ORDER_ACTIVATION_PROFILE: "dsg.kernel.standing-order-activation/1";
@@ -729,6 +736,7 @@ declare const SignedStandingOrderActivationSchemaValue: import("@sinclair/typebo
729
736
  }>;
730
737
  declare const SignedStandingOrderActivationSchema: typeof SignedStandingOrderActivationSchemaValue;
731
738
  type SignedStandingOrderActivation = Static<typeof SignedStandingOrderActivationSchema>;
739
+ declare const standingOrderActivationV1: ProfileEntry;
732
740
  //#endregion
733
741
  //#region src/kernel/ordinary-authority.v1.d.ts
734
742
  declare const ORDINARY_AUTHORITY_PROFILE: "dsg.kernel.ordinary-authority/1";
@@ -761,6 +769,7 @@ declare const OrdinaryAuthoritySchemaValue: import("@sinclair/typebox").TObject<
761
769
  }>;
762
770
  declare const OrdinaryAuthoritySchema: typeof OrdinaryAuthoritySchemaValue;
763
771
  type OrdinaryAuthority = Static<typeof OrdinaryAuthoritySchema>;
772
+ declare const ordinaryAuthorityV1: ProfileEntry;
764
773
  //#endregion
765
774
  //#region src/run/contract-versions.d.ts
766
775
  declare const EXECUTOR_PROTOCOL_VERSION: "dsg.run.executor/1";
@@ -815,6 +824,7 @@ declare const EventStreamSealSchemaValue: import("@sinclair/typebox").TObject<{
815
824
  }>;
816
825
  declare const EventStreamSealSchema: typeof EventStreamSealSchemaValue;
817
826
  type EventStreamSeal = Static<typeof EventStreamSealSchema>;
827
+ declare const eventV1: ProfileEntry;
818
828
  //#endregion
819
829
  //#region src/run/request.v1.d.ts
820
830
  declare const REQUEST_PROFILE: "dsg.run.request/1";
@@ -859,6 +869,7 @@ declare const RunRequestSchemaValue: import("@sinclair/typebox").TObject<{
859
869
  }>;
860
870
  declare const RunRequestSchema: typeof RunRequestSchemaValue;
861
871
  type RunRequest = Static<typeof RunRequestSchema>;
872
+ declare const requestV1: ProfileEntry;
862
873
  //#endregion
863
874
  //#region src/run/decision.v1.d.ts
864
875
  declare const DECISION_PROFILE: "dsg.run.decision/1";
@@ -874,6 +885,7 @@ declare const RunDecisionSchemaValue: import("@sinclair/typebox").TObject<{
874
885
  }>;
875
886
  declare const RunDecisionSchema: typeof RunDecisionSchemaValue;
876
887
  type RunDecision = Static<typeof RunDecisionSchema>;
888
+ declare const decisionV1: ProfileEntry;
877
889
  //#endregion
878
890
  //#region src/run/run-summary.v1.d.ts
879
891
  declare const RUN_SUMMARY_PROFILE: "dsg.run.run-summary/1";
@@ -914,6 +926,7 @@ declare const RunSummarySchemaValue: import("@sinclair/typebox").TObject<{
914
926
  }>;
915
927
  declare const RunSummarySchema: typeof RunSummarySchemaValue;
916
928
  type RunSummary = Static<typeof RunSummarySchema>;
929
+ declare const runSummaryV1: ProfileEntry;
917
930
  //#endregion
918
931
  //#region src/core/refusal.v1.d.ts
919
932
  declare const REFUSAL_PROFILE: "dsg.core.refusal/1";
@@ -927,23 +940,64 @@ declare const RefusalSchemaValue: import("@sinclair/typebox").TObject<{
927
940
  }>;
928
941
  declare const RefusalSchema: typeof RefusalSchemaValue;
929
942
  type Refusal = Static<typeof RefusalSchema>;
943
+ declare const refusalV1: ProfileEntry;
930
944
  //#endregion
931
945
  //#region src/core/refusal.v2.d.ts
932
946
  declare const REFUSAL_V2_PROFILE: "dsg.core.refusal/2";
933
947
  declare const RefusalCodeV2SchemaValue: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"assertion_invalid">, import("@sinclair/typebox").TLiteral<"audience_mismatch">, import("@sinclair/typebox").TLiteral<"expired">, import("@sinclair/typebox").TLiteral<"issuer_unknown">, import("@sinclair/typebox").TLiteral<"transport_unverified">, import("@sinclair/typebox").TLiteral<"relay_untrusted">, import("@sinclair/typebox").TLiteral<"identity_unbound">, import("@sinclair/typebox").TLiteral<"binding_expired">, import("@sinclair/typebox").TLiteral<"principal_suspended">, import("@sinclair/typebox").TLiteral<"not_dsg_account">, import("@sinclair/typebox").TLiteral<"session_expired">, import("@sinclair/typebox").TLiteral<"unknown_workload_class">, import("@sinclair/typebox").TLiteral<"image_not_pinned">, import("@sinclair/typebox").TLiteral<"not_a_requester">, import("@sinclair/typebox").TLiteral<"document_invalid">, import("@sinclair/typebox").TLiteral<"self_decision">, import("@sinclair/typebox").TLiteral<"no_ceiling">, import("@sinclair/typebox").TLiteral<"validation_unavailable">, import("@sinclair/typebox").TLiteral<"confirmation_expired">]>;
934
948
  declare const RefusalCodeV2Schema: typeof RefusalCodeV2SchemaValue;
935
949
  type RefusalCodeV2 = Static<typeof RefusalCodeV2Schema>;
950
+ declare const RefusalStageV2SchemaValue: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"proxy">, import("@sinclair/typebox").TLiteral<"provider">, import("@sinclair/typebox").TLiteral<"identity_read">, import("@sinclair/typebox").TLiteral<"plane">]>;
951
+ declare const RefusalStageV2Schema: typeof RefusalStageV2SchemaValue;
952
+ type RefusalStageV2 = Static<typeof RefusalStageV2Schema>;
936
953
  declare const RefusalV2SchemaValue: import("@sinclair/typebox").TObject<{
937
954
  profile: import("@sinclair/typebox").TLiteral<"dsg.core.refusal/2">;
938
955
  code: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"assertion_invalid">, import("@sinclair/typebox").TLiteral<"audience_mismatch">, import("@sinclair/typebox").TLiteral<"expired">, import("@sinclair/typebox").TLiteral<"issuer_unknown">, import("@sinclair/typebox").TLiteral<"transport_unverified">, import("@sinclair/typebox").TLiteral<"relay_untrusted">, import("@sinclair/typebox").TLiteral<"identity_unbound">, import("@sinclair/typebox").TLiteral<"binding_expired">, import("@sinclair/typebox").TLiteral<"principal_suspended">, import("@sinclair/typebox").TLiteral<"not_dsg_account">, import("@sinclair/typebox").TLiteral<"session_expired">, import("@sinclair/typebox").TLiteral<"unknown_workload_class">, import("@sinclair/typebox").TLiteral<"image_not_pinned">, import("@sinclair/typebox").TLiteral<"not_a_requester">, import("@sinclair/typebox").TLiteral<"document_invalid">, import("@sinclair/typebox").TLiteral<"self_decision">, import("@sinclair/typebox").TLiteral<"no_ceiling">, import("@sinclair/typebox").TLiteral<"validation_unavailable">, import("@sinclair/typebox").TLiteral<"confirmation_expired">]>;
939
956
  sentence: import("@sinclair/typebox").TString;
957
+ stage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"proxy">, import("@sinclair/typebox").TLiteral<"provider">, import("@sinclair/typebox").TLiteral<"identity_read">, import("@sinclair/typebox").TLiteral<"plane">]>>;
958
+ correlationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
940
959
  }>;
941
960
  declare const RefusalV2Schema: typeof RefusalV2SchemaValue;
942
961
  type RefusalV2 = Static<typeof RefusalV2Schema>;
962
+ declare const refusalV2: ProfileEntry;
963
+ //#endregion
964
+ //#region src/core/google-identity.v1.d.ts
965
+ declare const GOOGLE_IDENTITY_PROFILE: "dsg.core.google-identity/1";
966
+ declare const GOOGLE_SIGN_IN_ISSUER: "https://accounts.google.com";
967
+ declare const GoogleIdentitySchemaValue: import("@sinclair/typebox").TObject<{
968
+ profile: import("@sinclair/typebox").TLiteral<"dsg.core.google-identity/1">;
969
+ issuer: import("@sinclair/typebox").TLiteral<"https://accounts.google.com">;
970
+ googleSubject: import("@sinclair/typebox").TString;
971
+ audience: import("@sinclair/typebox").TString;
972
+ hostedDomain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
973
+ email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
974
+ }>;
975
+ declare const GoogleIdentitySchema: typeof GoogleIdentitySchemaValue;
976
+ type GoogleIdentity = Static<typeof GoogleIdentitySchema>;
977
+ declare const googleIdentityV1: ProfileEntry;
978
+ //#endregion
979
+ //#region src/core/refusal.v3.d.ts
980
+ declare const REFUSAL_V3_PROFILE: "dsg.core.refusal/3";
981
+ declare const RefusalCodeV3SchemaValue: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"organization_absent">, import("@sinclair/typebox").TLiteral<"organization_exists">, import("@sinclair/typebox").TLiteral<"domain_mismatch">, import("@sinclair/typebox").TLiteral<"suspended">, import("@sinclair/typebox").TLiteral<"organization_disabled">, import("@sinclair/typebox").TLiteral<"claims_missing">, import("@sinclair/typebox").TLiteral<"not_qualified">, import("@sinclair/typebox").TLiteral<"subject_conflict">]>;
982
+ declare const RefusalCodeV3Schema: typeof RefusalCodeV3SchemaValue;
983
+ type RefusalCodeV3 = Static<typeof RefusalCodeV3Schema>;
984
+ declare const RefusalStageV3SchemaValue: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"proxy">, import("@sinclair/typebox").TLiteral<"provider">, import("@sinclair/typebox").TLiteral<"identity_read">, import("@sinclair/typebox").TLiteral<"plane">, import("@sinclair/typebox").TLiteral<"console">, import("@sinclair/typebox").TLiteral<"kernel">, import("@sinclair/typebox").TLiteral<"record">, import("@sinclair/typebox").TLiteral<"claim">]>;
985
+ declare const RefusalStageV3Schema: typeof RefusalStageV3SchemaValue;
986
+ type RefusalStageV3 = Static<typeof RefusalStageV3Schema>;
987
+ declare const RefusalV3SchemaValue: import("@sinclair/typebox").TObject<{
988
+ profile: import("@sinclair/typebox").TLiteral<"dsg.core.refusal/3">;
989
+ code: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"organization_absent">, import("@sinclair/typebox").TLiteral<"organization_exists">, import("@sinclair/typebox").TLiteral<"domain_mismatch">, import("@sinclair/typebox").TLiteral<"suspended">, import("@sinclair/typebox").TLiteral<"organization_disabled">, import("@sinclair/typebox").TLiteral<"claims_missing">, import("@sinclair/typebox").TLiteral<"not_qualified">, import("@sinclair/typebox").TLiteral<"subject_conflict">]>;
990
+ sentence: import("@sinclair/typebox").TString;
991
+ stage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"proxy">, import("@sinclair/typebox").TLiteral<"provider">, import("@sinclair/typebox").TLiteral<"identity_read">, import("@sinclair/typebox").TLiteral<"plane">, import("@sinclair/typebox").TLiteral<"console">, import("@sinclair/typebox").TLiteral<"kernel">, import("@sinclair/typebox").TLiteral<"record">, import("@sinclair/typebox").TLiteral<"claim">]>>;
992
+ correlationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
993
+ detail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
994
+ }>;
995
+ declare const RefusalV3Schema: typeof RefusalV3SchemaValue;
996
+ type RefusalV3 = Static<typeof RefusalV3Schema>;
997
+ declare const refusalV3: ProfileEntry;
943
998
  //#endregion
944
999
  //#region src/core/identity-binding.v1.d.ts
945
1000
  declare const IDENTITY_BINDING_PROFILE: "dsg.core.identity-binding/1";
946
- declare const GOOGLE_SIGN_IN_ISSUER: "https://accounts.google.com";
947
1001
  declare const IdentityBindingSchemaValue: import("@sinclair/typebox").TObject<{
948
1002
  profile: import("@sinclair/typebox").TLiteral<"dsg.core.identity-binding/1">;
949
1003
  principal: import("@sinclair/typebox").TString;
@@ -955,13 +1009,33 @@ declare const IdentityBindingSchemaValue: import("@sinclair/typebox").TObject<{
955
1009
  }>;
956
1010
  declare const IdentityBindingSchema: typeof IdentityBindingSchemaValue;
957
1011
  type IdentityBinding = Static<typeof IdentityBindingSchema>;
1012
+ declare const identityBindingV1: ProfileEntry;
958
1013
  //#endregion
959
1014
  //#region src/index.d.ts
960
1015
  /** Every profile this version of the package defines, keyed by literal.
961
1016
  * Profile modules are added here as they are extracted; the rules test
962
1017
  * and the schema emitter walk this registry, so a module that is not
963
1018
  * registered does not exist. */
964
- declare const PROFILES: Readonly<Record<string, ProfileEntry>>;
1019
+ declare const PROFILES: {
1020
+ [dispatchConsumeV1.literal]: ProfileEntry;
1021
+ [operationV1.literal]: ProfileEntry;
1022
+ [eventV1.literal]: ProfileEntry;
1023
+ [requestV1.literal]: ProfileEntry;
1024
+ [decisionV1.literal]: ProfileEntry;
1025
+ [runSummaryV1.literal]: ProfileEntry;
1026
+ [refusalV1.literal]: ProfileEntry;
1027
+ [refusalV2.literal]: ProfileEntry;
1028
+ [refusalV3.literal]: ProfileEntry;
1029
+ [googleIdentityV1.literal]: ProfileEntry;
1030
+ [identityBindingV1.literal]: ProfileEntry;
1031
+ [signedLawV1.literal]: ProfileEntry;
1032
+ [resourceDescriptorV1.literal]: ProfileEntry;
1033
+ [adoptionFactV1.literal]: ProfileEntry;
1034
+ [revocationsV1.literal]: ProfileEntry;
1035
+ [bootstrapV1.literal]: ProfileEntry;
1036
+ [ordinaryAuthorityV1.literal]: ProfileEntry;
1037
+ [standingOrderActivationV1.literal]: ProfileEntry;
1038
+ };
965
1039
  //#endregion
966
- export { ADOPTION_FACT_PROFILE, type Accepted, AcceptedSchema, type AdoptionFact, AdoptionFactSchema, BOOTSTRAP_PROFILE, type BootstrapAction, BootstrapActionSchema, type BootstrapIntent, BootstrapIntentSchema, DECISION_PROFILE, DISPATCH_CONSUME_PROFILE, DISPATCH_MAX_SKEW_SECONDS, type DispatchConsumeRequest, DispatchConsumeRequestSchema, type DispatchLease, DispatchLeaseSchema, type DispatchRefusal, type DispatchRefusalCode, DispatchRefusalCodeSchema, DispatchRefusalSchema, EVENT_LINE_PREFIX, EVENT_PROFILE, EXECUTOR_PROTOCOL_VERSION, type Event, EventSchema, type EventStreamSeal, EventStreamSealSchema, type ExecutionDocument, ExecutionDocumentSchema, type ExecutionLaw, ExecutionLawSchema, type ExecutionResources, ExecutionResourcesSchema, type ExecutorProtocolVersion, type ExperimentRef, ExperimentRefSchema, GOOGLE_SIGN_IN_ISSUER, Hex64, IDENTITY_BINDING_PROFILE, type IdentityBinding, IdentityBindingSchema, LIFECYCLE_KINDS, NonEmptyString, OPERATION_PROFILE, ORDINARY_AUTHORITY_PROFILE, type OperationBefore, OperationBeforeSchema, type OperationCleanup, OperationCleanupSchema, type OperationCost, OperationCostSchema, type OperationEvidence, OperationEvidenceSchema, type OperationExecution, OperationExecutionSchema, type OperationRequest, OperationRequestSchema, type OperationStatus, OperationStatusSchema, type OrdinaryAuthority, OrdinaryAuthoritySchema, Orn, PRICE_PROFILE_REFERENCE, PROFILES, PROVIDER_PROTOCOL_VERSION, PersonReference, type ProfileEntry, type ProviderProtocolVersion, REFUSAL_PROFILE, REFUSAL_V2_PROFILE, REQUEST_PROFILE, RESOURCE_DESCRIPTOR_KIND, RESOURCE_DESCRIPTOR_PROFILE, REVOCATIONS_PROFILE, RUN_SUMMARY_PROFILE, type Readback, ReadbackSchema, Reference, type Refusal, type RefusalCode, RefusalCodeSchema, type RefusalCodeV2, RefusalCodeV2Schema, RefusalSchema, type RefusalV2, RefusalV2Schema, type RequestCeilings, RequestCeilingsSchema, type ResourceDescriptor, ResourceDescriptorSchema, type RevocationPointer, RevocationPointerSchema, RevocationSchema, type RevocationSnapshot, type RunDecision, RunDecisionSchema, type RunRequest, RunRequestSchema, type RunSummary, type RunSummaryDecision, RunSummaryDecisionSchema, RunSummarySchema, SCOPE_REFERENCE, SIGNED_LAW_DOMAIN, SIGNED_LAW_PROFILE, STANDING_ORDER_ACTIVATION_EVENT_KIND, STANDING_ORDER_ACTIVATION_PROFILE, SafeInt, type SignedBootstrapIntent, SignedBootstrapIntentSchema, type SignedLawBundle, SignedLawBundleSchema, type SignedStandingOrderActivation, SignedStandingOrderActivationSchema, type StandingOrderActivation, type StandingOrderActivationEvent, StandingOrderActivationEventSchema, StandingOrderActivationSchema, type StandingOrderMode, StandingOrderModeSchema, UtcSecond, closed };
1040
+ export { ADOPTION_FACT_PROFILE, type Accepted, AcceptedSchema, type AdoptionFact, AdoptionFactSchema, BOOTSTRAP_PROFILE, type BootstrapAction, BootstrapActionSchema, type BootstrapIntent, BootstrapIntentSchema, DECISION_PROFILE, DISPATCH_CONSUME_PROFILE, DISPATCH_MAX_SKEW_SECONDS, type DispatchConsumeRequest, DispatchConsumeRequestSchema, type DispatchLease, DispatchLeaseSchema, type DispatchRefusal, type DispatchRefusalCode, DispatchRefusalCodeSchema, DispatchRefusalSchema, EVENT_LINE_PREFIX, EVENT_PROFILE, EXECUTOR_PROTOCOL_VERSION, type Event, EventSchema, type EventStreamSeal, EventStreamSealSchema, type ExecutionDocument, ExecutionDocumentSchema, type ExecutionLaw, ExecutionLawSchema, type ExecutionResources, ExecutionResourcesSchema, type ExecutorProtocolVersion, type ExperimentRef, ExperimentRefSchema, GOOGLE_IDENTITY_PROFILE, GOOGLE_SIGN_IN_ISSUER, type GoogleIdentity, GoogleIdentitySchema, Hex64, IDENTITY_BINDING_PROFILE, type IdentityBinding, IdentityBindingSchema, LIFECYCLE_KINDS, NonEmptyString, OPERATION_PROFILE, ORDINARY_AUTHORITY_PROFILE, type OperationBefore, OperationBeforeSchema, type OperationCleanup, OperationCleanupSchema, type OperationCost, OperationCostSchema, type OperationEvidence, OperationEvidenceSchema, type OperationExecution, OperationExecutionSchema, type OperationRequest, OperationRequestSchema, type OperationStatus, OperationStatusSchema, type OrdinaryAuthority, OrdinaryAuthoritySchema, Orn, PRICE_PROFILE_REFERENCE, PROFILES, PROVIDER_PROTOCOL_VERSION, PersonReference, type ProfileEntry, type ProviderProtocolVersion, REFUSAL_PROFILE, REFUSAL_V2_PROFILE, REFUSAL_V3_PROFILE, REQUEST_PROFILE, RESOURCE_DESCRIPTOR_KIND, RESOURCE_DESCRIPTOR_PROFILE, REVOCATIONS_PROFILE, RUN_SUMMARY_PROFILE, type Readback, ReadbackSchema, Reference, type Refusal, type RefusalCode, RefusalCodeSchema, type RefusalCodeV2, RefusalCodeV2Schema, type RefusalCodeV3, RefusalCodeV3Schema, RefusalSchema, type RefusalStageV2, RefusalStageV2Schema, type RefusalStageV3, RefusalStageV3Schema, type RefusalV2, RefusalV2Schema, type RefusalV3, RefusalV3Schema, type RequestCeilings, RequestCeilingsSchema, type ResourceDescriptor, ResourceDescriptorSchema, type RevocationPointer, RevocationPointerSchema, RevocationSchema, type RevocationSnapshot, type RunDecision, RunDecisionSchema, type RunRequest, RunRequestSchema, type RunSummary, type RunSummaryDecision, RunSummaryDecisionSchema, RunSummarySchema, SCOPE_REFERENCE, SIGNED_LAW_DOMAIN, SIGNED_LAW_PROFILE, STANDING_ORDER_ACTIVATION_EVENT_KIND, STANDING_ORDER_ACTIVATION_PROFILE, SafeInt, type SignedBootstrapIntent, SignedBootstrapIntentSchema, type SignedLawBundle, SignedLawBundleSchema, type SignedStandingOrderActivation, SignedStandingOrderActivationSchema, type StandingOrderActivation, type StandingOrderActivationEvent, StandingOrderActivationEventSchema, StandingOrderActivationSchema, type StandingOrderMode, StandingOrderModeSchema, UtcSecond, closed };
967
1041
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/primitives.ts","../src/kernel/dispatch-consume.v1.ts","../src/run/operation.v1.ts","../src/infra/signed-law.v1.ts","../src/infra/resource-descriptor.v1.ts","../src/infra/adoption-fact.v1.ts","../src/registry/revocations.v1.ts","../src/kernel/bootstrap.v1.ts","../src/kernel/standing-order-activation.v1.ts","../src/kernel/ordinary-authority.v1.ts","../src/run/contract-versions.ts","../src/run/event.v1.ts","../src/run/request.v1.ts","../src/run/decision.v1.ts","../src/run/run-summary.v1.ts","../src/core/refusal.v1.ts","../src/core/refusal.v2.ts","../src/core/identity-binding.v1.ts","../src/index.ts"],"mappings":";;;cAOa,SAAU,UAAU,aAAW,YAAc,MAAI,QAAQ;;cAIzD,mCAAK;;cAGL,uCAAS;cAIT,4CAAc;cAEd,qCAAO;;;;;;cAOP,iCAAG;;cAGH,WAAS;;;;;;cAOT,iBAAe;;;;;;;;KAShB;WACD;WACA,QAAQ,SAAS,eAAe;;;WAGhC;;;;WAIA;;;;cC3BE;;cAGA;cAEP,+DAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,qCAAqC;KAEtC,yBAAyB,cAAc;cAE7C,sDAAwB;;;;;;;;;;;;;;;;;;;;;;;;cAqBjB,4BAA4B;KAC7B,gBAAgB,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../src/infra/resource-descriptor.v1.ts","../src/infra/adoption-fact.v1.ts","../src/registry/revocations.v1.ts","../src/kernel/bootstrap.v1.ts","../src/kernel/standing-order-activation.v1.ts","../src/kernel/ordinary-authority.v1.ts","../src/run/contract-versions.ts","../src/run/event.v1.ts","../src/run/request.v1.ts","../src/run/decision.v1.ts","../src/run/run-summary.v1.ts","../src/core/refusal.v1.ts","../src/core/refusal.v2.ts","../src/core/google-identity.v1.ts","../src/core/refusal.v3.ts","../src/core/identity-binding.v1.ts","../src/index.ts"],"mappings":";;;cAOa,SAAU,UAAU,aAAW,YAAc,MAAI,QAAQ;;cAIzD,mCAAK;;cAGL,uCAAS;cAIT,4CAAc;cAEd,qCAAO;;;;;;cAOP,iCAAG;;cAGH,WAAS;;;;;;cAOT,iBAAe;;;;;;;;KAShB;WACD;WACA,WAAW,SAAS,eAAe;;;WAGnC;;;;WAIA;;;;cC3BE;;cAGA;cAEP,+DAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwB1B,qCAAqC;KAEtC,yBAAyB,cAAc;cAE7C,sDAAwB;;;;;;;;;;;;;;;;;;;;;;;;cAqBjB,4BAA4B;KAC7B,gBAAgB,cAAc;cAEpC,4DAA8B,oCAAA,2DAAA,wDAAA,0DAAA,iDAAA,2DAAA,+EAAA;cASvB,kCAAkC;KAEnC,sBAAsB,cAAc;cAE1C,wDAA0B;;;;;cAKnB,8BAA8B;KAC/B,kBAAkB,cAAc;cAE/B,mBAAmB;;;cC7EnB;cAEP,2DAA6B;;;;;cAKtB,iCAAiC;KAElC,qBAAqB,cAAc;cAEzC,qDAAuB;;;;;;;;;;cAIhB,2BAA2B;KAC5B,eAAe,cAAc;cAEnC,0DAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYrB,gCAAgC;KAEjC,oBAAoB,cAAc;cAExC,wDAA0B;;;;cAInB,8BAA8B;KAC/B,kBAAkB,cAAc;cAEtC,yDAA2B;;;;;;;;;;;;;;;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B,kBAAkB,cAAc;cAE/B,mBAAmB;;;;;;;cC8JnB;GACV,kBAAkB,UAAQ;GAC1B,YAAY,UAAQ;GACpB,QAAQ,UAAQ;GAChB,UAAU,UAAQ;GAClB,WAAW,UAAQ;GACnB,aAAa,UAAQ;GACrB,UAAU,UAAQ;GAClB,UAAU,UAAQ;GAClB,UAAU,UAAQ;GAClB,iBAAiB,UAAQ;GACzB,kBAAkB,UAAQ;GAC1B,YAAY,UAAQ;GACpB,qBAAqB,UAAQ;GAC7B,eAAe,UAAQ;GACvB,cAAc,UAAQ;GACtB,YAAY,UAAQ;GACpB,oBAAoB,UAAQ;GAC5B,0BAA0B,UAAQ"}
package/dist/index.mjs CHANGED
@@ -99,7 +99,7 @@ const DispatchRefusalSchema = closed({
99
99
  });
100
100
  const dispatchConsumeV1 = {
101
101
  literal: DISPATCH_CONSUME_PROFILE,
102
- shapes: {
102
+ documents: {
103
103
  request: DispatchConsumeRequestSchema,
104
104
  lease: DispatchLeaseSchema,
105
105
  refusal: DispatchRefusalSchema
@@ -186,7 +186,7 @@ const ReadbackSchema = closed({
186
186
  const OperationStatusSchema = ReadbackSchema;
187
187
  const operationV1 = {
188
188
  literal: OPERATION_PROFILE,
189
- shapes: {
189
+ documents: {
190
190
  request: OperationRequestSchema,
191
191
  accepted: AcceptedSchema,
192
192
  readback: ReadbackSchema
@@ -224,8 +224,8 @@ const ResourceDescriptorSchema = closed({
224
224
  const resourceDescriptorV1 = {
225
225
  literal: RESOURCE_DESCRIPTOR_PROFILE,
226
226
  literalNote: "carried as kind (unversioned) plus schemaVersion on the document; the /1 literal is the version marker signed-law pins",
227
- rootShape: "descriptor",
228
- shapes: { descriptor: ResourceDescriptorSchema }
227
+ rootDocument: "descriptor",
228
+ documents: { descriptor: ResourceDescriptorSchema }
229
229
  };
230
230
  //#endregion
231
231
  //#region src/infra/signed-law.v1.ts
@@ -437,7 +437,7 @@ const SignedLawBundleSchema = Type.Object({
437
437
  const signedLawV1 = {
438
438
  literal: SIGNED_LAW_PROFILE,
439
439
  literalNote: "carried as the domain member of the canonical signature input, not as a bundle field",
440
- shapes: { bundle: SignedLawBundleSchema }
440
+ documents: { bundle: SignedLawBundleSchema }
441
441
  };
442
442
  //#endregion
443
443
  //#region src/infra/adoption-fact.v1.ts
@@ -465,8 +465,8 @@ const AdoptionFactSchema = closed({
465
465
  });
466
466
  const adoptionFactV1 = {
467
467
  literal: ADOPTION_FACT_PROFILE,
468
- rootShape: "fact",
469
- shapes: { fact: AdoptionFactSchema }
468
+ rootDocument: "fact",
469
+ documents: { fact: AdoptionFactSchema }
470
470
  };
471
471
  //#endregion
472
472
  //#region src/registry/revocations.v1.ts
@@ -529,7 +529,7 @@ const RevocationPointerSchema = Type.Object({
529
529
  }, closed$1);
530
530
  const revocationsV1 = {
531
531
  literal: REVOCATIONS_PROFILE,
532
- shapes: {
532
+ documents: {
533
533
  snapshot: RevocationSchema,
534
534
  pointer: RevocationPointerSchema
535
535
  }
@@ -579,7 +579,7 @@ const SignedBootstrapIntentSchema = closed({
579
579
  });
580
580
  const bootstrapV1 = {
581
581
  literal: BOOTSTRAP_PROFILE,
582
- shapes: {
582
+ documents: {
583
583
  intent: BootstrapIntentSchema,
584
584
  signed: SignedBootstrapIntentSchema
585
585
  }
@@ -620,8 +620,8 @@ const SignedStandingOrderActivationSchema = closed({
620
620
  });
621
621
  const standingOrderActivationV1 = {
622
622
  literal: STANDING_ORDER_ACTIVATION_PROFILE,
623
- rootShape: "event",
624
- shapes: {
623
+ rootDocument: "event",
624
+ documents: {
625
625
  activation: StandingOrderActivationSchema,
626
626
  signed: SignedStandingOrderActivationSchema,
627
627
  event: StandingOrderActivationEventSchema
@@ -667,8 +667,8 @@ const OrdinaryAuthoritySchema = closed({
667
667
  });
668
668
  const ordinaryAuthorityV1 = {
669
669
  literal: ORDINARY_AUTHORITY_PROFILE,
670
- rootShape: "authority",
671
- shapes: { authority: OrdinaryAuthoritySchema }
670
+ rootDocument: "authority",
671
+ documents: { authority: OrdinaryAuthoritySchema }
672
672
  };
673
673
  //#endregion
674
674
  //#region src/run/contract-versions.ts
@@ -730,8 +730,8 @@ const EventStreamSealSchema = closed({
730
730
  });
731
731
  const eventV1 = {
732
732
  literal: EVENT_PROFILE,
733
- rootShape: "event",
734
- shapes: {
733
+ rootDocument: "event",
734
+ documents: {
735
735
  event: EventSchema,
736
736
  streamSeal: EventStreamSealSchema
737
737
  }
@@ -761,8 +761,8 @@ const RunRequestSchema = closed({
761
761
  });
762
762
  const requestV1 = {
763
763
  literal: REQUEST_PROFILE,
764
- rootShape: "request",
765
- shapes: { request: RunRequestSchema }
764
+ rootDocument: "request",
765
+ documents: { request: RunRequestSchema }
766
766
  };
767
767
  //#endregion
768
768
  //#region src/run/decision.v1.ts
@@ -779,8 +779,8 @@ const RunDecisionSchema = closed({
779
779
  });
780
780
  const decisionV1 = {
781
781
  literal: DECISION_PROFILE,
782
- rootShape: "decision",
783
- shapes: { decision: RunDecisionSchema }
782
+ rootDocument: "decision",
783
+ documents: { decision: RunDecisionSchema }
784
784
  };
785
785
  //#endregion
786
786
  //#region src/run/run-summary.v1.ts
@@ -802,8 +802,8 @@ const RunSummarySchema = closed({
802
802
  });
803
803
  const runSummaryV1 = {
804
804
  literal: RUN_SUMMARY_PROFILE,
805
- rootShape: "summary",
806
- shapes: { summary: RunSummarySchema }
805
+ rootDocument: "summary",
806
+ documents: { summary: RunSummarySchema }
807
807
  };
808
808
  //#endregion
809
809
  //#region src/core/refusal.v1.ts
@@ -834,8 +834,8 @@ const RefusalSchema = closed({
834
834
  });
835
835
  const refusalV1 = {
836
836
  literal: REFUSAL_PROFILE,
837
- rootShape: "refusal",
838
- shapes: { refusal: RefusalSchema }
837
+ rootDocument: "refusal",
838
+ documents: { refusal: RefusalSchema }
839
839
  };
840
840
  //#endregion
841
841
  //#region src/core/refusal.v2.ts
@@ -861,24 +861,85 @@ const RefusalCodeV2Schema = Type.Union([
861
861
  Type.Literal("validation_unavailable"),
862
862
  Type.Literal("confirmation_expired")
863
863
  ]);
864
+ const RefusalStageV2Schema = Type.Union([
865
+ Type.Literal("proxy"),
866
+ Type.Literal("provider"),
867
+ Type.Literal("identity_read"),
868
+ Type.Literal("plane")
869
+ ]);
864
870
  const RefusalV2Schema = closed({
865
871
  profile: Type.Literal(REFUSAL_V2_PROFILE),
866
872
  code: RefusalCodeV2Schema,
867
- sentence: NonEmptyString
873
+ sentence: NonEmptyString,
874
+ stage: Type.Optional(RefusalStageV2Schema),
875
+ correlationId: Type.Optional(NonEmptyString)
868
876
  });
869
877
  const refusalV2 = {
870
878
  literal: REFUSAL_V2_PROFILE,
871
- rootShape: "refusal",
872
- shapes: { refusal: RefusalV2Schema }
879
+ rootDocument: "refusal",
880
+ documents: { refusal: RefusalV2Schema }
881
+ };
882
+ //#endregion
883
+ //#region src/core/google-identity.v1.ts
884
+ const GOOGLE_IDENTITY_PROFILE = "dsg.core.google-identity/1";
885
+ const GOOGLE_SIGN_IN_ISSUER = "https://accounts.google.com";
886
+ const GoogleAccountSubject = Type.String({ pattern: "^accounts\\.google\\.com:[0-9]+$" });
887
+ const GoogleIdentitySchema = closed({
888
+ profile: Type.Literal(GOOGLE_IDENTITY_PROFILE),
889
+ issuer: Type.Literal(GOOGLE_SIGN_IN_ISSUER),
890
+ googleSubject: GoogleAccountSubject,
891
+ audience: NonEmptyString,
892
+ hostedDomain: Type.Optional(NonEmptyString),
893
+ email: Type.Optional(NonEmptyString)
894
+ });
895
+ const googleIdentityV1 = {
896
+ literal: GOOGLE_IDENTITY_PROFILE,
897
+ rootDocument: "googleIdentity",
898
+ documents: { googleIdentity: GoogleIdentitySchema }
899
+ };
900
+ //#endregion
901
+ //#region src/core/refusal.v3.ts
902
+ const REFUSAL_V3_PROFILE = "dsg.core.refusal/3";
903
+ const RefusalCodeV3Schema = Type.Union([
904
+ Type.Literal("organization_absent"),
905
+ Type.Literal("organization_exists"),
906
+ Type.Literal("domain_mismatch"),
907
+ Type.Literal("suspended"),
908
+ Type.Literal("organization_disabled"),
909
+ Type.Literal("claims_missing"),
910
+ Type.Literal("not_qualified"),
911
+ Type.Literal("subject_conflict")
912
+ ]);
913
+ const RefusalStageV3Schema = Type.Union([
914
+ Type.Literal("proxy"),
915
+ Type.Literal("provider"),
916
+ Type.Literal("identity_read"),
917
+ Type.Literal("plane"),
918
+ Type.Literal("console"),
919
+ Type.Literal("kernel"),
920
+ Type.Literal("record"),
921
+ Type.Literal("claim")
922
+ ]);
923
+ const RefusalV3Schema = closed({
924
+ profile: Type.Literal(REFUSAL_V3_PROFILE),
925
+ code: RefusalCodeV3Schema,
926
+ sentence: NonEmptyString,
927
+ stage: Type.Optional(RefusalStageV3Schema),
928
+ correlationId: Type.Optional(NonEmptyString),
929
+ detail: Type.Optional(NonEmptyString)
930
+ });
931
+ const refusalV3 = {
932
+ literal: REFUSAL_V3_PROFILE,
933
+ rootDocument: "refusal",
934
+ documents: { refusal: RefusalV3Schema }
873
935
  };
874
936
  //#endregion
875
937
  //#region src/core/identity-binding.v1.ts
876
938
  const IDENTITY_BINDING_PROFILE = "dsg.core.identity-binding/1";
877
- const GOOGLE_SIGN_IN_ISSUER = "https://accounts.google.com";
878
939
  const IdentityBindingSchema = closed({
879
940
  profile: Type.Literal(IDENTITY_BINDING_PROFILE),
880
941
  principal: Orn,
881
- issuer: Type.Literal(GOOGLE_SIGN_IN_ISSUER),
942
+ issuer: Type.Literal("https://accounts.google.com"),
882
943
  subject: NonEmptyString,
883
944
  decider: Orn,
884
945
  boundAt: UtcSecond,
@@ -886,8 +947,8 @@ const IdentityBindingSchema = closed({
886
947
  });
887
948
  const identityBindingV1 = {
888
949
  literal: IDENTITY_BINDING_PROFILE,
889
- rootShape: "binding",
890
- shapes: { binding: IdentityBindingSchema }
950
+ rootDocument: "binding",
951
+ documents: { binding: IdentityBindingSchema }
891
952
  };
892
953
  //#endregion
893
954
  //#region src/index.ts
@@ -904,6 +965,8 @@ const PROFILES = {
904
965
  [runSummaryV1.literal]: runSummaryV1,
905
966
  [refusalV1.literal]: refusalV1,
906
967
  [refusalV2.literal]: refusalV2,
968
+ [refusalV3.literal]: refusalV3,
969
+ [googleIdentityV1.literal]: googleIdentityV1,
907
970
  [identityBindingV1.literal]: identityBindingV1,
908
971
  [signedLawV1.literal]: signedLawV1,
909
972
  [resourceDescriptorV1.literal]: resourceDescriptorV1,
@@ -914,6 +977,6 @@ const PROFILES = {
914
977
  [standingOrderActivationV1.literal]: standingOrderActivationV1
915
978
  };
916
979
  //#endregion
917
- export { ADOPTION_FACT_PROFILE, AcceptedSchema, AdoptionFactSchema, BOOTSTRAP_PROFILE, BootstrapActionSchema, BootstrapIntentSchema, DECISION_PROFILE, DISPATCH_CONSUME_PROFILE, DISPATCH_MAX_SKEW_SECONDS, DispatchConsumeRequestSchema, DispatchLeaseSchema, DispatchRefusalCodeSchema, DispatchRefusalSchema, EVENT_LINE_PREFIX, EVENT_PROFILE, EXECUTOR_PROTOCOL_VERSION, EventSchema, EventStreamSealSchema, ExecutionDocumentSchema, ExecutionLawSchema, ExecutionResourcesSchema, ExperimentRefSchema, GOOGLE_SIGN_IN_ISSUER, Hex64, IDENTITY_BINDING_PROFILE, IdentityBindingSchema, LIFECYCLE_KINDS, NonEmptyString, OPERATION_PROFILE, ORDINARY_AUTHORITY_PROFILE, OperationBeforeSchema, OperationCleanupSchema, OperationCostSchema, OperationEvidenceSchema, OperationExecutionSchema, OperationRequestSchema, OperationStatusSchema, OrdinaryAuthoritySchema, Orn, PRICE_PROFILE_REFERENCE, PROFILES, PROVIDER_PROTOCOL_VERSION, PersonReference, REFUSAL_PROFILE, REFUSAL_V2_PROFILE, REQUEST_PROFILE, RESOURCE_DESCRIPTOR_KIND, RESOURCE_DESCRIPTOR_PROFILE, REVOCATIONS_PROFILE, RUN_SUMMARY_PROFILE, ReadbackSchema, Reference, RefusalCodeSchema, RefusalCodeV2Schema, RefusalSchema, RefusalV2Schema, RequestCeilingsSchema, ResourceDescriptorSchema, RevocationPointerSchema, RevocationSchema, RunDecisionSchema, RunRequestSchema, RunSummaryDecisionSchema, RunSummarySchema, SCOPE_REFERENCE, SIGNED_LAW_DOMAIN, SIGNED_LAW_PROFILE, STANDING_ORDER_ACTIVATION_EVENT_KIND, STANDING_ORDER_ACTIVATION_PROFILE, SafeInt, SignedBootstrapIntentSchema, SignedLawBundleSchema, SignedStandingOrderActivationSchema, StandingOrderActivationEventSchema, StandingOrderActivationSchema, StandingOrderModeSchema, UtcSecond, closed };
980
+ export { ADOPTION_FACT_PROFILE, AcceptedSchema, AdoptionFactSchema, BOOTSTRAP_PROFILE, BootstrapActionSchema, BootstrapIntentSchema, DECISION_PROFILE, DISPATCH_CONSUME_PROFILE, DISPATCH_MAX_SKEW_SECONDS, DispatchConsumeRequestSchema, DispatchLeaseSchema, DispatchRefusalCodeSchema, DispatchRefusalSchema, EVENT_LINE_PREFIX, EVENT_PROFILE, EXECUTOR_PROTOCOL_VERSION, EventSchema, EventStreamSealSchema, ExecutionDocumentSchema, ExecutionLawSchema, ExecutionResourcesSchema, ExperimentRefSchema, GOOGLE_IDENTITY_PROFILE, GOOGLE_SIGN_IN_ISSUER, GoogleIdentitySchema, Hex64, IDENTITY_BINDING_PROFILE, IdentityBindingSchema, LIFECYCLE_KINDS, NonEmptyString, OPERATION_PROFILE, ORDINARY_AUTHORITY_PROFILE, OperationBeforeSchema, OperationCleanupSchema, OperationCostSchema, OperationEvidenceSchema, OperationExecutionSchema, OperationRequestSchema, OperationStatusSchema, OrdinaryAuthoritySchema, Orn, PRICE_PROFILE_REFERENCE, PROFILES, PROVIDER_PROTOCOL_VERSION, PersonReference, REFUSAL_PROFILE, REFUSAL_V2_PROFILE, REFUSAL_V3_PROFILE, REQUEST_PROFILE, RESOURCE_DESCRIPTOR_KIND, RESOURCE_DESCRIPTOR_PROFILE, REVOCATIONS_PROFILE, RUN_SUMMARY_PROFILE, ReadbackSchema, Reference, RefusalCodeSchema, RefusalCodeV2Schema, RefusalCodeV3Schema, RefusalSchema, RefusalStageV2Schema, RefusalStageV3Schema, RefusalV2Schema, RefusalV3Schema, RequestCeilingsSchema, ResourceDescriptorSchema, RevocationPointerSchema, RevocationSchema, RunDecisionSchema, RunRequestSchema, RunSummaryDecisionSchema, RunSummarySchema, SCOPE_REFERENCE, SIGNED_LAW_DOMAIN, SIGNED_LAW_PROFILE, STANDING_ORDER_ACTIVATION_EVENT_KIND, STANDING_ORDER_ACTIVATION_PROFILE, SafeInt, SignedBootstrapIntentSchema, SignedLawBundleSchema, SignedStandingOrderActivationSchema, StandingOrderActivationEventSchema, StandingOrderActivationSchema, StandingOrderModeSchema, UtcSecond, closed };
918
981
 
919
982
  //# sourceMappingURL=index.mjs.map