@dynamicalsystems/idl 0.11.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.d.mts CHANGED
@@ -1011,6 +1011,180 @@ declare const IdentityBindingSchema: typeof IdentityBindingSchemaValue;
1011
1011
  type IdentityBinding = Static<typeof IdentityBindingSchema>;
1012
1012
  declare const identityBindingV1: ProfileEntry;
1013
1013
  //#endregion
1014
+ //#region src/organization/source.v2.d.ts
1015
+ declare const ORGANIZATION_SOURCE_PROFILE: "dsg.organization.source/2";
1016
+ declare const OrganizationSpaceSchema: import("@sinclair/typebox").TString;
1017
+ /** A path interpreted relative to the organization source root. Filesystem
1018
+ * containment and symlink checks belong to the consumer that opens it. */
1019
+ declare const OrganizationDocumentPathSchema: import("@sinclair/typebox").TString;
1020
+ declare const OrganizationSourceLocationSchema: import("@sinclair/typebox").TObject<{
1021
+ repository: import("@sinclair/typebox").TString;
1022
+ ref: import("@sinclair/typebox").TString;
1023
+ subdirectory: import("@sinclair/typebox").TString;
1024
+ }>;
1025
+ type OrganizationSourceLocation = Static<typeof OrganizationSourceLocationSchema>;
1026
+ declare const OrganizationSourceLocationV1Schema: import("@sinclair/typebox").TObject<{
1027
+ repository: import("@sinclair/typebox").TString;
1028
+ ref: import("@sinclair/typebox").TString;
1029
+ subdirectory: import("@sinclair/typebox").TString;
1030
+ }>;
1031
+ type OrganizationSourceLocationV1 = Static<typeof OrganizationSourceLocationV1Schema>;
1032
+ declare const ProjectSourceSchema: import("@sinclair/typebox").TObject<{
1033
+ repository: import("@sinclair/typebox").TString;
1034
+ revision: import("@sinclair/typebox").TString;
1035
+ }>;
1036
+ type ProjectSource = Static<typeof ProjectSourceSchema>;
1037
+ /** Frozen compatibility shape. Version one is loaded only through the explicit
1038
+ * compatibility path; it is never silently reinterpreted as version two. */
1039
+ declare const OrganizationRootV1Schema: import("@sinclair/typebox").TObject<{
1040
+ schemaVersion: import("@sinclair/typebox").TLiteral<1>;
1041
+ kind: import("@sinclair/typebox").TLiteral<"organization">;
1042
+ org: import("@sinclair/typebox").TString;
1043
+ space: import("@sinclair/typebox").TString;
1044
+ identity: import("@sinclair/typebox").TObject<{
1045
+ principals: import("@sinclair/typebox").TString;
1046
+ qualifications: import("@sinclair/typebox").TString;
1047
+ designations: import("@sinclair/typebox").TString;
1048
+ }>;
1049
+ policies: import("@sinclair/typebox").TString;
1050
+ vocabulary: import("@sinclair/typebox").TString;
1051
+ admissions: import("@sinclair/typebox").TString;
1052
+ deployment: import("@sinclair/typebox").TString;
1053
+ source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1054
+ repository: import("@sinclair/typebox").TString;
1055
+ ref: import("@sinclair/typebox").TString;
1056
+ subdirectory: import("@sinclair/typebox").TString;
1057
+ }>>;
1058
+ }>;
1059
+ type OrganizationRootV1 = Static<typeof OrganizationRootV1Schema>;
1060
+ declare const OrganizationInstructionSchema: import("@sinclair/typebox").TObject<{
1061
+ layer: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"constitution">, import("@sinclair/typebox").TLiteral<"profile">, import("@sinclair/typebox").TLiteral<"project">]>;
1062
+ source: import("@sinclair/typebox").TString;
1063
+ provenance: import("@sinclair/typebox").TString;
1064
+ }>;
1065
+ type OrganizationInstruction = Static<typeof OrganizationInstructionSchema>;
1066
+ /** The generic root requires only stable identity, accountability, purpose and
1067
+ * a selected profile. Optional declaration groups become required only when
1068
+ * that profile says so. */
1069
+ declare const OrganizationRootSchema: import("@sinclair/typebox").TObject<{
1070
+ schemaVersion: import("@sinclair/typebox").TLiteral<2>;
1071
+ kind: import("@sinclair/typebox").TLiteral<"organization">;
1072
+ org: import("@sinclair/typebox").TString;
1073
+ space: import("@sinclair/typebox").TString;
1074
+ owner: import("@sinclair/typebox").TObject<{
1075
+ responsibility: import("@sinclair/typebox").TString;
1076
+ qualification: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1077
+ designation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1078
+ }>;
1079
+ purpose: import("@sinclair/typebox").TString;
1080
+ profile: import("@sinclair/typebox").TObject<{
1081
+ document: import("@sinclair/typebox").TString;
1082
+ facts: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
1083
+ }>;
1084
+ identity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1085
+ principals: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1086
+ qualifications: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1087
+ designations: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1088
+ eligibility: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1089
+ }>>;
1090
+ policies: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1091
+ sources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1092
+ release: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1093
+ }>>;
1094
+ vocabulary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1095
+ admissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1096
+ projects: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
1097
+ capabilities: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
1098
+ instructions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1099
+ layer: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"constitution">, import("@sinclair/typebox").TLiteral<"profile">, import("@sinclair/typebox").TLiteral<"project">]>;
1100
+ source: import("@sinclair/typebox").TString;
1101
+ provenance: import("@sinclair/typebox").TString;
1102
+ }>>>;
1103
+ documents: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
1104
+ archive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1105
+ releases: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
1106
+ deployment: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1107
+ source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1108
+ repository: import("@sinclair/typebox").TString;
1109
+ ref: import("@sinclair/typebox").TString;
1110
+ subdirectory: import("@sinclair/typebox").TString;
1111
+ }>>;
1112
+ }>;
1113
+ type OrganizationRoot = Static<typeof OrganizationRootSchema>;
1114
+ declare const WorkspaceProfileSchema: import("@sinclair/typebox").TObject<{
1115
+ schemaVersion: import("@sinclair/typebox").TLiteral<1>;
1116
+ kind: import("@sinclair/typebox").TLiteral<"workspace-profile">;
1117
+ id: import("@sinclair/typebox").TString;
1118
+ profile: import("@sinclair/typebox").TLiteral<"dsg.organization.source/2">;
1119
+ version: import("@sinclair/typebox").TString;
1120
+ requirements: import("@sinclair/typebox").TObject<{
1121
+ facts: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1122
+ minimumProjects: import("@sinclair/typebox").TInteger;
1123
+ requiredCapabilities: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1124
+ instructions: import("@sinclair/typebox").TBoolean;
1125
+ }>;
1126
+ allowedCapabilityOrigins: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"workspace">, import("@sinclair/typebox").TLiteral<"official">, import("@sinclair/typebox").TLiteral<"curated">]>>;
1127
+ handling: import("@sinclair/typebox").TObject<{
1128
+ required: import("@sinclair/typebox").TBoolean;
1129
+ }>;
1130
+ readinessChecks: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1131
+ }>;
1132
+ type WorkspaceProfile = Static<typeof WorkspaceProfileSchema>;
1133
+ declare const ProjectMembershipSchema: import("@sinclair/typebox").TObject<{
1134
+ schemaVersion: import("@sinclair/typebox").TLiteral<1>;
1135
+ kind: import("@sinclair/typebox").TLiteral<"project-membership">;
1136
+ id: import("@sinclair/typebox").TString;
1137
+ mode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"managed">, import("@sinclair/typebox").TLiteral<"independent">]>;
1138
+ source: import("@sinclair/typebox").TObject<{
1139
+ repository: import("@sinclair/typebox").TString;
1140
+ revision: import("@sinclair/typebox").TString;
1141
+ }>;
1142
+ role: import("@sinclair/typebox").TString;
1143
+ contract: import("@sinclair/typebox").TString;
1144
+ handling: import("@sinclair/typebox").TString;
1145
+ state: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"suspended">, import("@sinclair/typebox").TLiteral<"removed">]>;
1146
+ }>;
1147
+ type ProjectMembership = Static<typeof ProjectMembershipSchema>;
1148
+ declare const CapabilityOriginSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"workspace">, import("@sinclair/typebox").TLiteral<"official">, import("@sinclair/typebox").TLiteral<"curated">]>;
1149
+ type CapabilityOrigin = Static<typeof CapabilityOriginSchema>;
1150
+ /** `declaration` and component `reference` point to their owning existing
1151
+ * capability/Definition formats; this schema does not duplicate them. */
1152
+ declare const CapabilitySelectionSchema: import("@sinclair/typebox").TObject<{
1153
+ schemaVersion: import("@sinclair/typebox").TLiteral<1>;
1154
+ kind: import("@sinclair/typebox").TLiteral<"capability-selection">;
1155
+ id: import("@sinclair/typebox").TString;
1156
+ declaration: import("@sinclair/typebox").TString;
1157
+ components: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1158
+ id: import("@sinclair/typebox").TString;
1159
+ reference: import("@sinclair/typebox").TString;
1160
+ }>>;
1161
+ origin: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"workspace">, import("@sinclair/typebox").TLiteral<"official">, import("@sinclair/typebox").TLiteral<"curated">]>;
1162
+ dependencyLock: import("@sinclair/typebox").TString;
1163
+ requiredDispositions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1164
+ }>;
1165
+ type CapabilitySelection = Static<typeof CapabilitySelectionSchema>;
1166
+ declare const ReleaseMemberKindSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"policy">, import("@sinclair/typebox").TLiteral<"capability-admission">, import("@sinclair/typebox").TLiteral<"workflow-publication">, import("@sinclair/typebox").TLiteral<"contract-check">, import("@sinclair/typebox").TLiteral<"target-readiness">, import("@sinclair/typebox").TLiteral<"setup-condition">]>;
1167
+ type ReleaseMemberKind = Static<typeof ReleaseMemberKindSchema>;
1168
+ declare const ReleaseDeclarationSchema: import("@sinclair/typebox").TObject<{
1169
+ schemaVersion: import("@sinclair/typebox").TLiteral<1>;
1170
+ kind: import("@sinclair/typebox").TLiteral<"release-declaration">;
1171
+ name: import("@sinclair/typebox").TString;
1172
+ selection: import("@sinclair/typebox").TObject<{
1173
+ projects: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1174
+ capabilities: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1175
+ }>;
1176
+ members: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1177
+ key: import("@sinclair/typebox").TString;
1178
+ artifact: import("@sinclair/typebox").TString;
1179
+ kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"policy">, import("@sinclair/typebox").TLiteral<"capability-admission">, import("@sinclair/typebox").TLiteral<"workflow-publication">, import("@sinclair/typebox").TLiteral<"contract-check">, import("@sinclair/typebox").TLiteral<"target-readiness">, import("@sinclair/typebox").TLiteral<"setup-condition">]>;
1180
+ required: import("@sinclair/typebox").TBoolean;
1181
+ acceptableDispositions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1182
+ }>>;
1183
+ predecessors: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1184
+ }>;
1185
+ type ReleaseDeclaration = Static<typeof ReleaseDeclarationSchema>;
1186
+ declare const organizationSourceV2: ProfileEntry;
1187
+ //#endregion
1014
1188
  //#region src/index.d.ts
1015
1189
  /** Every profile this version of the package defines, keyed by literal.
1016
1190
  * Profile modules are added here as they are extracted; the rules test
@@ -1035,7 +1209,8 @@ declare const PROFILES: {
1035
1209
  [bootstrapV1.literal]: ProfileEntry;
1036
1210
  [ordinaryAuthorityV1.literal]: ProfileEntry;
1037
1211
  [standingOrderActivationV1.literal]: ProfileEntry;
1212
+ [organizationSourceV2.literal]: ProfileEntry;
1038
1213
  };
1039
1214
  //#endregion
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 };
1215
+ export { ADOPTION_FACT_PROFILE, type Accepted, AcceptedSchema, type AdoptionFact, AdoptionFactSchema, BOOTSTRAP_PROFILE, type BootstrapAction, BootstrapActionSchema, type BootstrapIntent, BootstrapIntentSchema, type CapabilityOrigin, CapabilityOriginSchema, type CapabilitySelection, CapabilitySelectionSchema, 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, ORGANIZATION_SOURCE_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, OrganizationDocumentPathSchema, type OrganizationInstruction, OrganizationInstructionSchema, type OrganizationRoot, OrganizationRootSchema, type OrganizationRootV1, OrganizationRootV1Schema, type OrganizationSourceLocation, OrganizationSourceLocationSchema, type OrganizationSourceLocationV1, OrganizationSpaceSchema, Orn, PRICE_PROFILE_REFERENCE, PROFILES, PROVIDER_PROTOCOL_VERSION, PersonReference, type ProfileEntry, type ProjectMembership, ProjectMembershipSchema, type ProjectSource, ProjectSourceSchema, 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 ReleaseDeclaration, ReleaseDeclarationSchema, type ReleaseMemberKind, ReleaseMemberKindSchema, 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, type WorkspaceProfile, WorkspaceProfileSchema, closed };
1041
1216
  //# 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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GACzB,kBAAkB,UAAQ;GAC1B,YAAY,UAAQ;GACpB,qBAAqB,UAAQ;GAC7B,eAAe,UAAQ;GACvB,cAAc,UAAQ;GACtB,YAAY,UAAQ;GACpB,oBAAoB,UAAQ;GAC5B,0BAA0B,UAAQ"}
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/google-identity.v1.ts","../src/core/refusal.v3.ts","../src/core/identity-binding.v1.ts","../src/organization/source.v2.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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AAU,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;GAClC,qBAAqB,UAAQ"}
package/dist/index.mjs CHANGED
@@ -951,6 +951,195 @@ const identityBindingV1 = {
951
951
  documents: { binding: IdentityBindingSchema }
952
952
  };
953
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
+ }
1141
+ };
1142
+ //#endregion
954
1143
  //#region src/index.ts
955
1144
  /** Every profile this version of the package defines, keyed by literal.
956
1145
  * Profile modules are added here as they are extracted; the rules test
@@ -974,9 +1163,10 @@ const PROFILES = {
974
1163
  [revocationsV1.literal]: revocationsV1,
975
1164
  [bootstrapV1.literal]: bootstrapV1,
976
1165
  [ordinaryAuthorityV1.literal]: ordinaryAuthorityV1,
977
- [standingOrderActivationV1.literal]: standingOrderActivationV1
1166
+ [standingOrderActivationV1.literal]: standingOrderActivationV1,
1167
+ [organizationSourceV2.literal]: organizationSourceV2
978
1168
  };
979
1169
  //#endregion
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 };
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 };
981
1171
 
982
1172
  //# sourceMappingURL=index.mjs.map