@dynamicalsystems/idl 0.10.0 → 0.12.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.cjs +295 -30
- package/dist/index.d.cts +249 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +249 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +276 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
- package/schema/dsg-core-google-identity-v1.json +39 -0
- package/schema/dsg-core-refusal-v3.json +103 -0
- package/schema/dsg-organization-source-v2.json +623 -0
- package/src/core/google-identity.v1.ts +42 -0
- package/src/core/identity-binding.v1.ts +2 -2
- package/src/core/refusal.v1.ts +2 -2
- package/src/core/refusal.v2.ts +2 -2
- package/src/core/refusal.v3.ts +50 -0
- package/src/index.ts +50 -6
- package/src/infra/adoption-fact.v1.ts +2 -2
- package/src/infra/resource-descriptor.v1.ts +2 -2
- package/src/infra/signed-law.v1.ts +1 -1
- package/src/kernel/bootstrap.v1.ts +1 -1
- package/src/kernel/dispatch-consume.v1.ts +1 -1
- package/src/kernel/ordinary-authority.v1.ts +2 -2
- package/src/kernel/standing-order-activation.v1.ts +2 -2
- package/src/organization/source.v2.ts +219 -0
- package/src/primitives.ts +2 -2
- package/src/registry/revocations.v1.ts +1 -1
- package/src/run/decision.v1.ts +2 -2
- package/src/run/event.v1.ts +2 -2
- package/src/run/operation.v1.ts +1 -1
- package/src/run/request.v1.ts +2 -2
- package/src/run/run-summary.v1.ts +2 -2
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
228
|
-
|
|
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
|
-
|
|
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
|
-
|
|
469
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
624
|
-
|
|
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
|
-
|
|
671
|
-
|
|
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
|
-
|
|
734
|
-
|
|
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
|
-
|
|
765
|
-
|
|
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
|
-
|
|
783
|
-
|
|
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
|
-
|
|
806
|
-
|
|
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
|
-
|
|
838
|
-
|
|
837
|
+
rootDocument: "refusal",
|
|
838
|
+
documents: { refusal: RefusalSchema }
|
|
839
839
|
};
|
|
840
840
|
//#endregion
|
|
841
841
|
//#region src/core/refusal.v2.ts
|
|
@@ -876,17 +876,70 @@ const RefusalV2Schema = closed({
|
|
|
876
876
|
});
|
|
877
877
|
const refusalV2 = {
|
|
878
878
|
literal: REFUSAL_V2_PROFILE,
|
|
879
|
-
|
|
880
|
-
|
|
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 }
|
|
881
935
|
};
|
|
882
936
|
//#endregion
|
|
883
937
|
//#region src/core/identity-binding.v1.ts
|
|
884
938
|
const IDENTITY_BINDING_PROFILE = "dsg.core.identity-binding/1";
|
|
885
|
-
const GOOGLE_SIGN_IN_ISSUER = "https://accounts.google.com";
|
|
886
939
|
const IdentityBindingSchema = closed({
|
|
887
940
|
profile: Type.Literal(IDENTITY_BINDING_PROFILE),
|
|
888
941
|
principal: Orn,
|
|
889
|
-
issuer: Type.Literal(
|
|
942
|
+
issuer: Type.Literal("https://accounts.google.com"),
|
|
890
943
|
subject: NonEmptyString,
|
|
891
944
|
decider: Orn,
|
|
892
945
|
boundAt: UtcSecond,
|
|
@@ -894,8 +947,197 @@ const IdentityBindingSchema = closed({
|
|
|
894
947
|
});
|
|
895
948
|
const identityBindingV1 = {
|
|
896
949
|
literal: IDENTITY_BINDING_PROFILE,
|
|
897
|
-
|
|
898
|
-
|
|
950
|
+
rootDocument: "binding",
|
|
951
|
+
documents: { binding: IdentityBindingSchema }
|
|
952
|
+
};
|
|
953
|
+
//#endregion
|
|
954
|
+
//#region src/organization/source.v2.ts
|
|
955
|
+
const ORGANIZATION_SOURCE_PROFILE = "dsg.organization.source/2";
|
|
956
|
+
const OrganizationSpaceSchema = Type.String({ pattern: "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" });
|
|
957
|
+
/** A path interpreted relative to the organization source root. Filesystem
|
|
958
|
+
* containment and symlink checks belong to the consumer that opens it. */
|
|
959
|
+
const OrganizationDocumentPathSchema = Type.String({
|
|
960
|
+
minLength: 1,
|
|
961
|
+
pattern: "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*//)(?!.*\\\\).+$"
|
|
962
|
+
});
|
|
963
|
+
const OrganizationSourceLocationSchema = closed({
|
|
964
|
+
repository: NonEmptyString,
|
|
965
|
+
ref: NonEmptyString,
|
|
966
|
+
subdirectory: OrganizationDocumentPathSchema
|
|
967
|
+
});
|
|
968
|
+
const OrganizationSourceLocationV1Schema = closed({
|
|
969
|
+
repository: Type.String(),
|
|
970
|
+
ref: Type.String(),
|
|
971
|
+
subdirectory: Type.String()
|
|
972
|
+
});
|
|
973
|
+
const ProjectSourceSchema = closed({
|
|
974
|
+
repository: NonEmptyString,
|
|
975
|
+
revision: Type.String({ pattern: "^(?:[0-9a-f]{40}|[0-9a-f]{64})$" })
|
|
976
|
+
});
|
|
977
|
+
const UniquePaths = () => Type.Array(OrganizationDocumentPathSchema, { uniqueItems: true });
|
|
978
|
+
const UniqueNames = () => Type.Array(NonEmptyString, { uniqueItems: true });
|
|
979
|
+
/** Frozen compatibility shape. Version one is loaded only through the explicit
|
|
980
|
+
* compatibility path; it is never silently reinterpreted as version two. */
|
|
981
|
+
const OrganizationRootV1Schema = closed({
|
|
982
|
+
schemaVersion: Type.Literal(1),
|
|
983
|
+
kind: Type.Literal("organization"),
|
|
984
|
+
org: NonEmptyString,
|
|
985
|
+
space: OrganizationSpaceSchema,
|
|
986
|
+
identity: closed({
|
|
987
|
+
principals: NonEmptyString,
|
|
988
|
+
qualifications: NonEmptyString,
|
|
989
|
+
designations: NonEmptyString
|
|
990
|
+
}),
|
|
991
|
+
policies: NonEmptyString,
|
|
992
|
+
vocabulary: NonEmptyString,
|
|
993
|
+
admissions: NonEmptyString,
|
|
994
|
+
deployment: NonEmptyString,
|
|
995
|
+
source: Type.Optional(OrganizationSourceLocationV1Schema)
|
|
996
|
+
});
|
|
997
|
+
const OrganizationInstructionSchema = closed({
|
|
998
|
+
layer: Type.Union([
|
|
999
|
+
Type.Literal("constitution"),
|
|
1000
|
+
Type.Literal("profile"),
|
|
1001
|
+
Type.Literal("project")
|
|
1002
|
+
]),
|
|
1003
|
+
source: OrganizationDocumentPathSchema,
|
|
1004
|
+
provenance: OrganizationDocumentPathSchema
|
|
1005
|
+
});
|
|
1006
|
+
/** The generic root requires only stable identity, accountability, purpose and
|
|
1007
|
+
* a selected profile. Optional declaration groups become required only when
|
|
1008
|
+
* that profile says so. */
|
|
1009
|
+
const OrganizationRootSchema = closed({
|
|
1010
|
+
schemaVersion: Type.Literal(2),
|
|
1011
|
+
kind: Type.Literal("organization"),
|
|
1012
|
+
org: NonEmptyString,
|
|
1013
|
+
space: OrganizationSpaceSchema,
|
|
1014
|
+
owner: closed({
|
|
1015
|
+
responsibility: NonEmptyString,
|
|
1016
|
+
qualification: Type.Optional(OrganizationDocumentPathSchema),
|
|
1017
|
+
designation: Type.Optional(OrganizationDocumentPathSchema)
|
|
1018
|
+
}),
|
|
1019
|
+
purpose: NonEmptyString,
|
|
1020
|
+
profile: closed({
|
|
1021
|
+
document: OrganizationDocumentPathSchema,
|
|
1022
|
+
facts: Type.Record(Type.String({ pattern: "^[a-z][a-z0-9-]*$" }), OrganizationDocumentPathSchema, { additionalProperties: false })
|
|
1023
|
+
}),
|
|
1024
|
+
identity: Type.Optional(closed({
|
|
1025
|
+
principals: Type.Optional(OrganizationDocumentPathSchema),
|
|
1026
|
+
qualifications: Type.Optional(OrganizationDocumentPathSchema),
|
|
1027
|
+
designations: Type.Optional(OrganizationDocumentPathSchema),
|
|
1028
|
+
eligibility: Type.Optional(OrganizationDocumentPathSchema)
|
|
1029
|
+
})),
|
|
1030
|
+
policies: Type.Optional(closed({
|
|
1031
|
+
sources: Type.Array(OrganizationDocumentPathSchema, {
|
|
1032
|
+
minItems: 1,
|
|
1033
|
+
uniqueItems: true
|
|
1034
|
+
}),
|
|
1035
|
+
release: Type.Optional(OrganizationDocumentPathSchema)
|
|
1036
|
+
})),
|
|
1037
|
+
vocabulary: Type.Optional(OrganizationDocumentPathSchema),
|
|
1038
|
+
admissions: Type.Optional(OrganizationDocumentPathSchema),
|
|
1039
|
+
projects: Type.Optional(UniquePaths()),
|
|
1040
|
+
capabilities: Type.Optional(UniquePaths()),
|
|
1041
|
+
instructions: Type.Optional(Type.Array(OrganizationInstructionSchema)),
|
|
1042
|
+
documents: Type.Optional(UniquePaths()),
|
|
1043
|
+
archive: Type.Optional(OrganizationDocumentPathSchema),
|
|
1044
|
+
releases: Type.Optional(UniquePaths()),
|
|
1045
|
+
deployment: Type.Optional(OrganizationDocumentPathSchema),
|
|
1046
|
+
source: Type.Optional(OrganizationSourceLocationSchema)
|
|
1047
|
+
});
|
|
1048
|
+
const WorkspaceProfileSchema = closed({
|
|
1049
|
+
schemaVersion: Type.Literal(1),
|
|
1050
|
+
kind: Type.Literal("workspace-profile"),
|
|
1051
|
+
id: NonEmptyString,
|
|
1052
|
+
profile: Type.Literal(ORGANIZATION_SOURCE_PROFILE),
|
|
1053
|
+
version: Type.String({ pattern: "^[1-9][0-9]*\\.[0-9]+\\.[0-9]+$" }),
|
|
1054
|
+
requirements: closed({
|
|
1055
|
+
facts: UniqueNames(),
|
|
1056
|
+
minimumProjects: SafeInt,
|
|
1057
|
+
requiredCapabilities: UniqueNames(),
|
|
1058
|
+
instructions: Type.Boolean()
|
|
1059
|
+
}),
|
|
1060
|
+
allowedCapabilityOrigins: Type.Array(Type.Union([
|
|
1061
|
+
Type.Literal("workspace"),
|
|
1062
|
+
Type.Literal("official"),
|
|
1063
|
+
Type.Literal("curated")
|
|
1064
|
+
]), { uniqueItems: true }),
|
|
1065
|
+
handling: closed({ required: Type.Boolean() }),
|
|
1066
|
+
readinessChecks: UniquePaths()
|
|
1067
|
+
});
|
|
1068
|
+
const ProjectMembershipSchema = closed({
|
|
1069
|
+
schemaVersion: Type.Literal(1),
|
|
1070
|
+
kind: Type.Literal("project-membership"),
|
|
1071
|
+
id: NonEmptyString,
|
|
1072
|
+
mode: Type.Union([Type.Literal("managed"), Type.Literal("independent")]),
|
|
1073
|
+
source: ProjectSourceSchema,
|
|
1074
|
+
role: NonEmptyString,
|
|
1075
|
+
contract: OrganizationDocumentPathSchema,
|
|
1076
|
+
handling: OrganizationDocumentPathSchema,
|
|
1077
|
+
state: Type.Union([
|
|
1078
|
+
Type.Literal("active"),
|
|
1079
|
+
Type.Literal("suspended"),
|
|
1080
|
+
Type.Literal("removed")
|
|
1081
|
+
])
|
|
1082
|
+
});
|
|
1083
|
+
const CapabilityOriginSchema = Type.Union([
|
|
1084
|
+
Type.Literal("workspace"),
|
|
1085
|
+
Type.Literal("official"),
|
|
1086
|
+
Type.Literal("curated")
|
|
1087
|
+
]);
|
|
1088
|
+
/** `declaration` and component `reference` point to their owning existing
|
|
1089
|
+
* capability/Definition formats; this schema does not duplicate them. */
|
|
1090
|
+
const CapabilitySelectionSchema = closed({
|
|
1091
|
+
schemaVersion: Type.Literal(1),
|
|
1092
|
+
kind: Type.Literal("capability-selection"),
|
|
1093
|
+
id: NonEmptyString,
|
|
1094
|
+
declaration: OrganizationDocumentPathSchema,
|
|
1095
|
+
components: Type.Array(closed({
|
|
1096
|
+
id: NonEmptyString,
|
|
1097
|
+
reference: OrganizationDocumentPathSchema
|
|
1098
|
+
}), { uniqueItems: true }),
|
|
1099
|
+
origin: CapabilityOriginSchema,
|
|
1100
|
+
dependencyLock: OrganizationDocumentPathSchema,
|
|
1101
|
+
requiredDispositions: UniqueNames()
|
|
1102
|
+
});
|
|
1103
|
+
const ReleaseMemberKindSchema = Type.Union([
|
|
1104
|
+
Type.Literal("policy"),
|
|
1105
|
+
Type.Literal("capability-admission"),
|
|
1106
|
+
Type.Literal("workflow-publication"),
|
|
1107
|
+
Type.Literal("contract-check"),
|
|
1108
|
+
Type.Literal("target-readiness"),
|
|
1109
|
+
Type.Literal("setup-condition")
|
|
1110
|
+
]);
|
|
1111
|
+
const ReleaseDeclarationSchema = closed({
|
|
1112
|
+
schemaVersion: Type.Literal(1),
|
|
1113
|
+
kind: Type.Literal("release-declaration"),
|
|
1114
|
+
name: NonEmptyString,
|
|
1115
|
+
selection: closed({
|
|
1116
|
+
projects: UniqueNames(),
|
|
1117
|
+
capabilities: UniqueNames()
|
|
1118
|
+
}),
|
|
1119
|
+
members: Type.Array(closed({
|
|
1120
|
+
key: NonEmptyString,
|
|
1121
|
+
artifact: OrganizationDocumentPathSchema,
|
|
1122
|
+
kind: ReleaseMemberKindSchema,
|
|
1123
|
+
required: Type.Boolean(),
|
|
1124
|
+
acceptableDispositions: Type.Array(NonEmptyString, {
|
|
1125
|
+
minItems: 1,
|
|
1126
|
+
uniqueItems: true
|
|
1127
|
+
})
|
|
1128
|
+
})),
|
|
1129
|
+
predecessors: UniqueNames()
|
|
1130
|
+
});
|
|
1131
|
+
const organizationSourceV2 = {
|
|
1132
|
+
literal: ORGANIZATION_SOURCE_PROFILE,
|
|
1133
|
+
rootDocument: "organization",
|
|
1134
|
+
documents: {
|
|
1135
|
+
organization: OrganizationRootSchema,
|
|
1136
|
+
workspaceProfile: WorkspaceProfileSchema,
|
|
1137
|
+
projectMembership: ProjectMembershipSchema,
|
|
1138
|
+
capabilitySelection: CapabilitySelectionSchema,
|
|
1139
|
+
releaseDeclaration: ReleaseDeclarationSchema
|
|
1140
|
+
}
|
|
899
1141
|
};
|
|
900
1142
|
//#endregion
|
|
901
1143
|
//#region src/index.ts
|
|
@@ -912,6 +1154,8 @@ const PROFILES = {
|
|
|
912
1154
|
[runSummaryV1.literal]: runSummaryV1,
|
|
913
1155
|
[refusalV1.literal]: refusalV1,
|
|
914
1156
|
[refusalV2.literal]: refusalV2,
|
|
1157
|
+
[refusalV3.literal]: refusalV3,
|
|
1158
|
+
[googleIdentityV1.literal]: googleIdentityV1,
|
|
915
1159
|
[identityBindingV1.literal]: identityBindingV1,
|
|
916
1160
|
[signedLawV1.literal]: signedLawV1,
|
|
917
1161
|
[resourceDescriptorV1.literal]: resourceDescriptorV1,
|
|
@@ -919,9 +1163,10 @@ const PROFILES = {
|
|
|
919
1163
|
[revocationsV1.literal]: revocationsV1,
|
|
920
1164
|
[bootstrapV1.literal]: bootstrapV1,
|
|
921
1165
|
[ordinaryAuthorityV1.literal]: ordinaryAuthorityV1,
|
|
922
|
-
[standingOrderActivationV1.literal]: standingOrderActivationV1
|
|
1166
|
+
[standingOrderActivationV1.literal]: standingOrderActivationV1,
|
|
1167
|
+
[organizationSourceV2.literal]: organizationSourceV2
|
|
923
1168
|
};
|
|
924
1169
|
//#endregion
|
|
925
|
-
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, RefusalStageV2Schema, 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 };
|
|
1170
|
+
export { ADOPTION_FACT_PROFILE, AcceptedSchema, AdoptionFactSchema, BOOTSTRAP_PROFILE, BootstrapActionSchema, BootstrapIntentSchema, CapabilityOriginSchema, CapabilitySelectionSchema, 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, ORGANIZATION_SOURCE_PROFILE, OperationBeforeSchema, OperationCleanupSchema, OperationCostSchema, OperationEvidenceSchema, OperationExecutionSchema, OperationRequestSchema, OperationStatusSchema, OrdinaryAuthoritySchema, OrganizationDocumentPathSchema, OrganizationInstructionSchema, OrganizationRootSchema, OrganizationRootV1Schema, OrganizationSourceLocationSchema, OrganizationSpaceSchema, Orn, PRICE_PROFILE_REFERENCE, PROFILES, PROVIDER_PROTOCOL_VERSION, PersonReference, ProjectMembershipSchema, ProjectSourceSchema, 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, ReleaseDeclarationSchema, ReleaseMemberKindSchema, 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, WorkspaceProfileSchema, closed };
|
|
926
1171
|
|
|
927
1172
|
//# sourceMappingURL=index.mjs.map
|