@wildo-ai/saas-models 1.1.1 → 1.1.3
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/esm/applications/applications-context.schemas.d.ts +16 -10
- package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.js +4 -3
- package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.js +36 -0
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/billing-account.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-account.shared.schemas.js +8 -1
- package/dist/esm/billing/billing-account.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts +0 -4
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.js +59 -17
- package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts +77 -21
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.js +85 -23
- package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-types.shared.schemas.d.ts +5 -5
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js +39 -0
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/credit-pool.shared.schemas.d.ts +6 -6
- package/dist/esm/billing/credit-pool.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/credit-pool.shared.schemas.js +8 -4
- package/dist/esm/billing/credit-pool.shared.schemas.js.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js +35 -0
- package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.schemas.js +8 -3
- package/dist/esm/billing/invoice-ref.shared.schemas.js.map +1 -1
- package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/price.shared.schemas.js +7 -1
- package/dist/esm/billing/price.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product-behavior-policy.shared.schemas.js +52 -11
- package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product-definition.shared.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.resources-config.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product.shared.schemas.js +7 -3
- package/dist/esm/billing/product.shared.schemas.js.map +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts +2 -2
- package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.js +54 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/subscription.shared.schemas.d.ts +4 -4
- package/dist/esm/billing/subscription.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/subscription.shared.schemas.js +6 -2
- package/dist/esm/billing/subscription.shared.schemas.js.map +1 -1
- package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-record.shared.resources-config.schemas.js +39 -0
- package/dist/esm/billing/usage-record.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.d.ts +11 -7
- package/dist/esm/billing/usage-record.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.js +29 -6
- package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts +69 -2
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js +20 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts +85 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js +157 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js +35 -2
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts +23 -0
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js +56 -0
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts +541 -20
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js +605 -23
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js.map +1 -1
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js +96 -3
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts +49 -0
- package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js +124 -1
- package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts +11 -3
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js +11 -3
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts +94 -0
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js +211 -0
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts +67 -12
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js +95 -8
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts +17 -0
- package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/privacy.shared.schemas.js +27 -4
- package/dist/esm/compliance/privacy/privacy.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts +89 -16
- package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/redaction.shared.schemas.js +101 -15
- package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.js +12 -5
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -1
- package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts +21 -0
- package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/analytics-value-moments.shared.schemas.js +20 -0
- package/dist/esm/config/analytics-value-moments.shared.schemas.js.map +1 -1
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts +9 -5
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/app-configuration-shared.shared.schemas.js +29 -0
- package/dist/esm/config/app-configuration-shared.shared.schemas.js.map +1 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.d.ts +8 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.d.ts.map +1 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.js +29 -0
- package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts +95 -17
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.js +86 -8
- package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
- package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts +12 -12
- package/dist/esm/config/frontend/navigation.shared.schemas.d.ts +33 -0
- package/dist/esm/config/frontend/navigation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/frontend/navigation.shared.schemas.js +32 -0
- package/dist/esm/config/frontend/navigation.shared.schemas.js.map +1 -1
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts +40 -1
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts.map +1 -1
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js +40 -1
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts +57 -11
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts +109 -64
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.js +200 -19
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts +15 -3
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js +32 -7
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -1
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts +84 -7
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts +59 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js +61 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts +97 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts.map +1 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js +41 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js.map +1 -0
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts +148 -2
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js +56 -1
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts +9 -31
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-capability.shared.schemas.js +8 -5
- package/dist/esm/external-providers/provider-capability.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts +18 -8
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js +9 -4
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts +338 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js +332 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts +178 -9
- package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-metadata.shared.schemas.js +181 -9
- package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts +7 -5
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js +7 -5
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts +40 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.js +80 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.js.map +1 -0
- package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
- package/dist/esm/features/core-feature-definitions.shared.js +7 -1
- package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
- package/dist/esm/features/feature-builders.shared.d.ts +32 -0
- package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
- package/dist/esm/features/feature-builders.shared.js +32 -0
- package/dist/esm/features/feature-builders.shared.js.map +1 -1
- package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/features/user-features.shared.resources-config.schemas.js +48 -0
- package/dist/esm/features/user-features.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/files/file-upload-grant.shared.schemas.d.ts +156 -0
- package/dist/esm/files/file-upload-grant.shared.schemas.d.ts.map +1 -0
- package/dist/esm/files/file-upload-grant.shared.schemas.js +175 -0
- package/dist/esm/files/file-upload-grant.shared.schemas.js.map +1 -0
- package/dist/esm/files/files.shared.schemas.d.ts +52 -4
- package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/files.shared.schemas.js +55 -4
- package/dist/esm/files/files.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js +33 -0
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js +6 -2
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js +53 -0
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/actors.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/agents.shared.schemas.d.ts +54 -5
- package/dist/esm/flows-actors/agents.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/agents.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.d.ts +6 -6
- package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts +0 -3
- package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/deliberation.shared.schemas.js +0 -5
- package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js +43 -0
- package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts +14 -0
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js +48 -6
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js +41 -0
- package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts +0 -7
- package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js +23 -13
- package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts +19 -0
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js +33 -0
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts +14 -9
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js +14 -9
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/flows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts +128 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.js +142 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts +0 -3
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js +1 -4
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts +0 -16
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js +1 -17
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts +3 -3
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js +3 -3
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts +2 -8
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js +4 -15
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js +51 -0
- package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.schemas.js +8 -2
- package/dist/esm/guidance/guidance-state.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.utils.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.utils.js +1 -0
- package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js +51 -0
- package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.schemas.js +28 -3
- package/dist/esm/guidance/lifecycle-state.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts +9 -1
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js +51 -0
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.d.ts +46 -0
- package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.js +67 -4
- package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts +356 -52
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js +166 -39
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -1
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts +11 -2
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/email/email-template.shared.enums.d.ts +15 -0
- package/dist/esm/notifications/email/email-template.shared.enums.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template.shared.enums.js +15 -0
- package/dist/esm/notifications/email/email-template.shared.enums.js.map +1 -1
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.d.ts +70 -0
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.d.ts.map +1 -0
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.js +71 -0
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.js.map +1 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js +19 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts +30 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js +65 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/notification-badges.core.definitions.d.ts +6 -4
- package/dist/esm/notifications/notification-badges.core.definitions.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.core.definitions.js +6 -4
- package/dist/esm/notifications/notification-badges.core.definitions.js.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.d.ts +167 -5
- package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.js +191 -6
- package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
- package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js +36 -0
- package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.d.ts +107 -0
- package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.js +149 -1
- package/dist/esm/notifications/notifications.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js +44 -0
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-members.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-members.shared.schemas.js +15 -4
- package/dist/esm/organizations/organization-members.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.js +22 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts +26 -0
- package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.js +25 -0
- package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts +25 -0
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.js +42 -17
- package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts +3 -2
- package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.js +9 -2
- package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -1
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.js +35 -12
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/public-runtime/index.d.ts +49 -2
- package/dist/esm/public-runtime/index.d.ts.map +1 -1
- package/dist/esm/public-runtime/index.js +48 -1
- package/dist/esm/public-runtime/index.js.map +1 -1
- package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts +6 -5
- package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.resources-config.schemas.js +23 -5
- package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.d.ts +16 -3
- package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.js +16 -3
- package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-documentation.d.ts +137 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.d.ts.map +1 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.js +1201 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.js.map +1 -0
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts +67 -0
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-urls.js +78 -0
- package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
- package/dist/esm/requests/rate-limits.shared.schemas.d.ts +11 -1
- package/dist/esm/requests/rate-limits.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/rate-limits.shared.schemas.js +11 -1
- package/dist/esm/requests/rate-limits.shared.schemas.js.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.d.ts +86 -4
- package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.js +138 -0
- package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
- package/dist/esm/resources/collection-query-parameters.shared.d.ts +22 -0
- package/dist/esm/resources/collection-query-parameters.shared.d.ts.map +1 -0
- package/dist/esm/resources/collection-query-parameters.shared.js +22 -0
- package/dist/esm/resources/collection-query-parameters.shared.js.map +1 -0
- package/dist/esm/resources/resources-config.shared.factory.d.ts +1 -0
- package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.factory.js +189 -31
- package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources-config.shared.schemas.d.ts +395 -92
- package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.schemas.js +109 -20
- package/dist/esm/resources/resources-config.shared.schemas.js.map +1 -1
- package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts.map +1 -1
- package/dist/esm/resources/resources-registry.shared.core.definitions.js +97 -5
- package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources-relationships.shared.factory.d.ts.map +1 -1
- package/dist/esm/resources/resources-relationships.shared.factory.js +15 -0
- package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.d.ts +37 -0
- package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.js +51 -0
- package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.d.ts +11 -2
- package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.js +34 -3
- package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
- package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts +51 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts.map +1 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.js +53 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.js.map +1 -0
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js +21 -6
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js.map +1 -1
- package/dist/esm/resources/utils/resources-summary.utils.d.ts +16 -2
- package/dist/esm/resources/utils/resources-summary.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-summary.utils.js +19 -5
- package/dist/esm/resources/utils/resources-summary.utils.js.map +1 -1
- package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/shared-persistence-collection.utils.js +11 -0
- package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -1
- package/dist/esm/runtime/domain-module.shared.definitions.d.ts +25 -0
- package/dist/esm/runtime/domain-module.shared.definitions.d.ts.map +1 -1
- package/dist/esm/runtime/domain-module.shared.definitions.js.map +1 -1
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js +38 -0
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js +38 -0
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts +4 -11
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js +0 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.schemas.d.ts +141 -5
- package/dist/esm/security/authentications/authentication.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.schemas.js +147 -3
- package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts +17 -1
- package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/consumable-token.shared.schemas.js +16 -0
- package/dist/esm/security/authentications/consumable-token.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/mfa-backup-code-contract.shared.d.ts +28 -0
- package/dist/esm/security/authentications/mfa-backup-code-contract.shared.d.ts.map +1 -0
- package/dist/esm/security/authentications/mfa-backup-code-contract.shared.js +28 -0
- package/dist/esm/security/authentications/mfa-backup-code-contract.shared.js.map +1 -0
- package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts +1 -0
- package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/registration.shared.dto.schemas.js +11 -0
- package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts +15 -0
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js +21 -4
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts +21 -0
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts.map +1 -0
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js +21 -0
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js.map +1 -0
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts +61 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js +208 -6
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts +37 -27
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js +134 -12
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts +0 -6
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js +17 -8
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js +70 -0
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts +45 -8
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js +56 -10
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.d.ts +16 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.js +16 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.utils.d.ts +54 -0
- package/dist/esm/security/authorizations/roles.shared.utils.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.utils.js +59 -0
- package/dist/esm/security/authorizations/roles.shared.utils.js.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts +31 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js +198 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts +31 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js +191 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts +250 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js +486 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js.map +1 -0
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts +4 -1
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js +29 -0
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts +4 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js +29 -0
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts +67 -0
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js +44 -1
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js +35 -0
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts +13 -0
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js +31 -4
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js +34 -0
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.schemas.js +7 -4
- package/dist/esm/users/inbound-contacts.shared.schemas.js.map +1 -1
- package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-credentials.shared.resources-config.schemas.js +37 -0
- package/dist/esm/users/user-credentials.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-credentials.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-credentials.shared.schemas.js +17 -2
- package/dist/esm/users/user-credentials.shared.schemas.js.map +1 -1
- package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js +36 -0
- package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-identity-links.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-identity-links.shared.schemas.js +15 -5
- package/dist/esm/users/user-identity-links.shared.schemas.js.map +1 -1
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts +5 -5
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.js +53 -0
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-profiles.shared.resources-config.schemas.js +62 -0
- package/dist/esm/users/user-profiles.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts +5 -5
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js +53 -0
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts +1 -1
- package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js +62 -0
- package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-self.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self.shared.resources-config.schemas.js +33 -3
- package/dist/esm/users/user-self.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/users.shared.resources-config.schemas.d.ts +17 -1
- package/dist/esm/users/users.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/users.shared.resources-config.schemas.js +136 -5
- package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/users.shared.schemas.d.ts +62 -12
- package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/users.shared.schemas.js +79 -23
- package/dist/esm/users/users.shared.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -6
- package/dist/esm/.builder.pid +0 -9
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
//===============================================================
|
|
3
|
+
// MCP SERVERS — what an agent's `mcpRefs` resolve AGAINST
|
|
4
|
+
//===============================================================
|
|
5
|
+
/**
|
|
6
|
+
* An MCP server an application permits its agents to reach.
|
|
7
|
+
*
|
|
8
|
+
* ## Why this exists (#491)
|
|
9
|
+
*
|
|
10
|
+
* `capabilities.tools.mcpRefs` was declared on the agent model, populated by a shipped catalog, and
|
|
11
|
+
* rendered on the agent card — while nothing resolved a ref into a callable tool. The refs in that
|
|
12
|
+
* catalog (`filesystem-mcp`, `git-mcp`, `browser-mcp`, `mongodb-mcp`, …) named no server anywhere;
|
|
13
|
+
* they were authored against a field nothing read, so an agent card told a person the agent had a
|
|
14
|
+
* reach it did not have.
|
|
15
|
+
*
|
|
16
|
+
* A ref must map to a transport, an endpoint and a credential. `functionRefs` have
|
|
17
|
+
* `getFunctionTool`; these had no equivalent, so there was nothing to resolve against. This is that
|
|
18
|
+
* equivalent, and it is what makes an `mcpRef` checkable.
|
|
19
|
+
*
|
|
20
|
+
* ## Why the APPLICATION declares it
|
|
21
|
+
*
|
|
22
|
+
* Decided 2026-09-09. An MCP tool call leaves the application's trust boundary and reaches a server
|
|
23
|
+
* whose authorization is its own, so which third parties an application's agents may reach is the
|
|
24
|
+
* application's decision — the same shape in which it already declares providers and capabilities.
|
|
25
|
+
* Rejected: sourcing servers from the vendor provider catalogue (it describes REST operations, not
|
|
26
|
+
* MCP endpoints, and would couple this to the provider architecture), and a platform-curated set an
|
|
27
|
+
* application opts into (it makes the framework the gatekeeper of every application's third-party
|
|
28
|
+
* reach, and needs a curation process that does not exist).
|
|
29
|
+
*
|
|
30
|
+
* This does not contradict the standing position that MCP is not an application's integration
|
|
31
|
+
* runtime: an application calls a third-party API DIRECTLY, with typed operations. MCP is for the
|
|
32
|
+
* case where an LLM agent sits between the application and the external system, which is exactly
|
|
33
|
+
* what an agent's tool call is.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* How the runtime reaches the server.
|
|
37
|
+
*
|
|
38
|
+
* A closed vocabulary rather than a free string: the transport decides the whole connection
|
|
39
|
+
* lifecycle — how a session opens, whether the server can push, how a stream ends — so a value
|
|
40
|
+
* nobody implemented must be unrepresentable rather than discovered at the first call.
|
|
41
|
+
*
|
|
42
|
+
* STDIO is deliberately ABSENT. It launches a local subprocess, which is the coding-agent lane's
|
|
43
|
+
* shape and not an application's: a generated application runs in a container it does not control,
|
|
44
|
+
* and "the agent may spawn a process" is a different security decision from "the agent may call an
|
|
45
|
+
* endpoint". Adding it later is a decision, not an omission.
|
|
46
|
+
*/
|
|
47
|
+
export var FlowsActors_McpTransport;
|
|
48
|
+
(function (FlowsActors_McpTransport) {
|
|
49
|
+
/** Streamable HTTP — the current MCP transport for remote servers. */
|
|
50
|
+
FlowsActors_McpTransport["HTTP_STREAM"] = "http_stream";
|
|
51
|
+
/** Server-sent events — the earlier remote transport, still widely deployed. */
|
|
52
|
+
FlowsActors_McpTransport["SSE"] = "sse";
|
|
53
|
+
})(FlowsActors_McpTransport || (FlowsActors_McpTransport = {}));
|
|
54
|
+
/**
|
|
55
|
+
* WHOSE credential the call carries.
|
|
56
|
+
*
|
|
57
|
+
* The distinction is not a preference. A tool call that reaches a third party on a user's behalf
|
|
58
|
+
* should be attributable to that user AT THE FAR END — that is what makes it revocable there and
|
|
59
|
+
* auditable by the party being called. An application-wide service identity loses that: every
|
|
60
|
+
* user's call looks identical to the server, and one leaked credential exposes every tenant.
|
|
61
|
+
*/
|
|
62
|
+
export var FlowsActors_McpCredentialSubject;
|
|
63
|
+
(function (FlowsActors_McpCredentialSubject) {
|
|
64
|
+
/**
|
|
65
|
+
* The acting user's own delegated credential, falling back to the organization's connection when
|
|
66
|
+
* the user has none. The default, and the reason a fallback exists at all: an agent acting for a
|
|
67
|
+
* user who has never connected the server would otherwise have no path, which would make every
|
|
68
|
+
* unattended and batch turn impossible.
|
|
69
|
+
*/
|
|
70
|
+
FlowsActors_McpCredentialSubject["USER_THEN_ORGANIZATION"] = "user_then_organization";
|
|
71
|
+
/** The organization's connection only — for a server the tenant connects once on everyone's behalf. */
|
|
72
|
+
FlowsActors_McpCredentialSubject["ORGANIZATION"] = "organization";
|
|
73
|
+
/** The acting user's own credential only. No fallback: a user who has not connected cannot call. */
|
|
74
|
+
FlowsActors_McpCredentialSubject["USER"] = "user";
|
|
75
|
+
})(FlowsActors_McpCredentialSubject || (FlowsActors_McpCredentialSubject = {}));
|
|
76
|
+
/**
|
|
77
|
+
* Which stored credential authorizes the call.
|
|
78
|
+
*
|
|
79
|
+
* `providerRef` names a provider the application has already connected, so the credential comes from
|
|
80
|
+
* `organizationProviderCredentials` / `userProviderCredentials` rather than from a store invented
|
|
81
|
+
* for MCP. Those exist, carry per-tenant isolation by construction, and already have the connect and
|
|
82
|
+
* consent flow in front of them — a second credential store for this one call shape would be a
|
|
83
|
+
* second thing to rotate, audit and leak.
|
|
84
|
+
*/
|
|
85
|
+
export const FlowsActors_McpServerCredentialSchema = z.object({
|
|
86
|
+
providerRef: z.string().min(1),
|
|
87
|
+
subject: z.enum(FlowsActors_McpCredentialSubject).default(FlowsActors_McpCredentialSubject.USER_THEN_ORGANIZATION),
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* Bounds on a call that leaves the trust boundary.
|
|
91
|
+
*
|
|
92
|
+
* Present with defaults rather than optional-and-unbounded, because an MCP call is a REMOTE call and
|
|
93
|
+
* the mistake this whole issue warns against is modelling it as a second kind of local function. A
|
|
94
|
+
* local function cannot hang; this can, and an unbounded tool call holds a model turn open for as
|
|
95
|
+
* long as somebody else's server feels like it.
|
|
96
|
+
*/
|
|
97
|
+
export const FlowsActors_McpServerTimeoutsSchema = z.object({
|
|
98
|
+
/** How long tool DISCOVERY may take before the server contributes no tools to the turn. */
|
|
99
|
+
discoveryMs: z.number().int().positive().default(5_000),
|
|
100
|
+
/** How long one tool CALL may take before it returns a typed timeout to the agent. */
|
|
101
|
+
callMs: z.number().int().positive().default(30_000),
|
|
102
|
+
});
|
|
103
|
+
export const FlowsActors_McpServerSchema = z.object({
|
|
104
|
+
/** The value an agent's `capabilities.tools.mcpRefs` names. Unique within an application. */
|
|
105
|
+
ref: z.string().min(1),
|
|
106
|
+
displayName: z.string().min(1),
|
|
107
|
+
transport: z.enum(FlowsActors_McpTransport),
|
|
108
|
+
/** The server's endpoint. `https` in every deployed environment; the runtime refuses plaintext. */
|
|
109
|
+
url: z.string().url(),
|
|
110
|
+
credential: FlowsActors_McpServerCredentialSchema,
|
|
111
|
+
timeouts: FlowsActors_McpServerTimeoutsSchema.default({ discoveryMs: 5_000, callMs: 30_000 }),
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Whether an MCP endpoint is reached over plaintext.
|
|
115
|
+
*
|
|
116
|
+
* Exported rather than inlined because two callers need the same answer — registration, which
|
|
117
|
+
* refuses, and the audit trail, which records what was refused — and a second spelling of "is this
|
|
118
|
+
* http" is how the two come to disagree. Mirrors the webhook lane's identical predicate.
|
|
119
|
+
*/
|
|
120
|
+
export function mcpServerTransportIsPlaintext(url) {
|
|
121
|
+
try {
|
|
122
|
+
return new URL(url).protocol === 'http:';
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The server's host, for a log or an audit row that must NOT carry the full URL.
|
|
130
|
+
*
|
|
131
|
+
* An MCP endpoint routinely carries a tenant or session identifier in its path or query, so the host
|
|
132
|
+
* is the part that can be recorded freely.
|
|
133
|
+
*/
|
|
134
|
+
export function mcpServerDestinationHost(url) {
|
|
135
|
+
try {
|
|
136
|
+
return new URL(url).host;
|
|
137
|
+
}
|
|
138
|
+
catch {
|
|
139
|
+
return 'unparseable';
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=mcp-servers.shared.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/mcp-servers.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iEAAiE;AACjE,2DAA2D;AAC3D,iEAAiE;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,sEAAsE;IACtE,uDAA2B,CAAA;IAC3B,gFAAgF;IAChF,uCAAW,CAAA;AACb,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAED;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,gCAYX;AAZD,WAAY,gCAAgC;IAC1C;;;;;OAKG;IACH,qFAAiD,CAAA;IACjD,uGAAuG;IACvG,iEAA6B,CAAA;IAC7B,oGAAoG;IACpG,iDAAa,CAAA;AACf,CAAC,EAZW,gCAAgC,KAAhC,gCAAgC,QAY3C;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC,sBAAsB,CAAC;CACnH,CAAC,CAAC;AAGH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,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import { z } from 'zod';\n\n//===============================================================\n// MCP SERVERS — what an agent's `mcpRefs` resolve AGAINST\n//===============================================================\n\n/**\n * An MCP server an application permits its agents to reach.\n *\n * ## Why this exists (#491)\n *\n * `capabilities.tools.mcpRefs` was declared on the agent model, populated by a shipped catalog, and\n * rendered on the agent card — while nothing resolved a ref into a callable tool. The refs in that\n * catalog (`filesystem-mcp`, `git-mcp`, `browser-mcp`, `mongodb-mcp`, …) named no server anywhere;\n * they were authored against a field nothing read, so an agent card told a person the agent had a\n * reach it did not have.\n *\n * A ref must map to a transport, an endpoint and a credential. `functionRefs` have\n * `getFunctionTool`; these had no equivalent, so there was nothing to resolve against. This is that\n * equivalent, and it is what makes an `mcpRef` checkable.\n *\n * ## Why the APPLICATION declares it\n *\n * Decided 2026-09-09. An MCP tool call leaves the application's trust boundary and reaches a server\n * whose authorization is its own, so which third parties an application's agents may reach is the\n * application's decision — the same shape in which it already declares providers and capabilities.\n * Rejected: sourcing servers from the vendor provider catalogue (it describes REST operations, not\n * MCP endpoints, and would couple this to the provider architecture), and a platform-curated set an\n * application opts into (it makes the framework the gatekeeper of every application's third-party\n * reach, and needs a curation process that does not exist).\n *\n * This does not contradict the standing position that MCP is not an application's integration\n * runtime: an application calls a third-party API DIRECTLY, with typed operations. MCP is for the\n * case where an LLM agent sits between the application and the external system, which is exactly\n * what an agent's tool call is.\n */\n\n/**\n * How the runtime reaches the server.\n *\n * A closed vocabulary rather than a free string: the transport decides the whole connection\n * lifecycle — how a session opens, whether the server can push, how a stream ends — so a value\n * nobody implemented must be unrepresentable rather than discovered at the first call.\n *\n * STDIO is deliberately ABSENT. It launches a local subprocess, which is the coding-agent lane's\n * shape and not an application's: a generated application runs in a container it does not control,\n * and \"the agent may spawn a process\" is a different security decision from \"the agent may call an\n * endpoint\". Adding it later is a decision, not an omission.\n */\nexport enum FlowsActors_McpTransport {\n /** Streamable HTTP — the current MCP transport for remote servers. */\n HTTP_STREAM = 'http_stream',\n /** Server-sent events — the earlier remote transport, still widely deployed. */\n SSE = 'sse',\n}\n\n/**\n * WHOSE credential the call carries.\n *\n * The distinction is not a preference. A tool call that reaches a third party on a user's behalf\n * should be attributable to that user AT THE FAR END — that is what makes it revocable there and\n * auditable by the party being called. An application-wide service identity loses that: every\n * user's call looks identical to the server, and one leaked credential exposes every tenant.\n */\nexport enum FlowsActors_McpCredentialSubject {\n /**\n * The acting user's own delegated credential, falling back to the organization's connection when\n * the user has none. The default, and the reason a fallback exists at all: an agent acting for a\n * user who has never connected the server would otherwise have no path, which would make every\n * unattended and batch turn impossible.\n */\n USER_THEN_ORGANIZATION = 'user_then_organization',\n /** The organization's connection only — for a server the tenant connects once on everyone's behalf. */\n ORGANIZATION = 'organization',\n /** The acting user's own credential only. No fallback: a user who has not connected cannot call. */\n USER = 'user',\n}\n\n/**\n * Which stored credential authorizes the call.\n *\n * `providerRef` names a provider the application has already connected, so the credential comes from\n * `organizationProviderCredentials` / `userProviderCredentials` rather than from a store invented\n * for MCP. Those exist, carry per-tenant isolation by construction, and already have the connect and\n * consent flow in front of them — a second credential store for this one call shape would be a\n * second thing to rotate, audit and leak.\n */\nexport const FlowsActors_McpServerCredentialSchema = z.object({\n providerRef: z.string().min(1),\n subject: z.enum(FlowsActors_McpCredentialSubject).default(FlowsActors_McpCredentialSubject.USER_THEN_ORGANIZATION),\n});\nexport type FlowsActors_McpServerCredential = z.infer<typeof FlowsActors_McpServerCredentialSchema>;\n\n/**\n * Bounds on a call that leaves the trust boundary.\n *\n * Present with defaults rather than optional-and-unbounded, because an MCP call is a REMOTE call and\n * the mistake this whole issue warns against is modelling it as a second kind of local function. A\n * local function cannot hang; this can, and an unbounded tool call holds a model turn open for as\n * long as somebody else's server feels like it.\n */\nexport const FlowsActors_McpServerTimeoutsSchema = z.object({\n /** How long tool DISCOVERY may take before the server contributes no tools to the turn. */\n discoveryMs: z.number().int().positive().default(5_000),\n /** How long one tool CALL may take before it returns a typed timeout to the agent. */\n callMs: z.number().int().positive().default(30_000),\n});\nexport type FlowsActors_McpServerTimeouts = z.infer<typeof FlowsActors_McpServerTimeoutsSchema>;\n\nexport const FlowsActors_McpServerSchema = z.object({\n /** The value an agent's `capabilities.tools.mcpRefs` names. Unique within an application. */\n ref: z.string().min(1),\n displayName: z.string().min(1),\n transport: z.enum(FlowsActors_McpTransport),\n /** The server's endpoint. `https` in every deployed environment; the runtime refuses plaintext. */\n url: z.string().url(),\n credential: FlowsActors_McpServerCredentialSchema,\n timeouts: FlowsActors_McpServerTimeoutsSchema.default({ discoveryMs: 5_000, callMs: 30_000 }),\n});\nexport type FlowsActors_McpServer = z.infer<typeof FlowsActors_McpServerSchema>;\n\n/**\n * Whether an MCP endpoint is reached over plaintext.\n *\n * Exported rather than inlined because two callers need the same answer — registration, which\n * refuses, and the audit trail, which records what was refused — and a second spelling of \"is this\n * http\" is how the two come to disagree. Mirrors the webhook lane's identical predicate.\n */\nexport function mcpServerTransportIsPlaintext(url: string): boolean {\n try {\n return new URL(url).protocol === 'http:';\n } catch {\n return false;\n }\n}\n\n/**\n * The server's host, for a log or an audit row that must NOT carry the full URL.\n *\n * An MCP endpoint routinely carries a tenant or session identifier in its path or query, so the host\n * is the part that can be recorded freely.\n */\nexport function mcpServerDestinationHost(url: string): string {\n try {\n return new URL(url).host;\n } catch {\n return 'unparseable';\n }\n}\n"]}
|
package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts
CHANGED
|
@@ -7,14 +7,11 @@ export declare enum MetaWorkflowStructuredGenerationPlanKind {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const MetaWorkflowStructuredGenerationPlanV1Schema: z.ZodObject<{
|
|
9
9
|
schemaVersion: z.ZodLiteral<1>;
|
|
10
|
-
providerConfigurationDigest: z.ZodString;
|
|
11
10
|
outputSchemaRef: z.ZodString;
|
|
12
|
-
outputSchemaDigest: z.ZodString;
|
|
13
11
|
leafFieldCount: z.ZodNumber;
|
|
14
12
|
maximumLeafFieldsPerCall: z.ZodNumber;
|
|
15
13
|
planKind: z.ZodEnum<typeof MetaWorkflowStructuredGenerationPlanKind>;
|
|
16
14
|
physicalCallCount: z.ZodNumber;
|
|
17
|
-
planDigest: z.ZodString;
|
|
18
15
|
}, z.core.$strict>;
|
|
19
16
|
export type MetaWorkflowStructuredGenerationPlanV1 = z.infer<typeof MetaWorkflowStructuredGenerationPlanV1Schema>;
|
|
20
17
|
//# sourceMappingURL=budget-authority.meta-workflows.shared.schemas.d.ts.map
|
package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budget-authority.meta-workflows.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"budget-authority.meta-workflows.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,oBAAY,wCAAwC;IAClD,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,iGAAiG;IACjG,sBAAsB,2BAA2B;CAClD;AAED,eAAO,MAAM,4CAA4C;;;;;;;kBAkBvD,CAAC;AACH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAC"}
|
package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { MetaWorkflow_NamespacedRefSchema,
|
|
2
|
+
import { MetaWorkflow_NamespacedRefSchema, } from './portable-primitives.meta-workflows.shared.schemas.js';
|
|
3
3
|
const nonnegativeSafeIntegerSchema = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).refine((value) => !Object.is(value, -0), 'negative zero is not canonical');
|
|
4
4
|
const positiveSafeIntegerSchema = nonnegativeSafeIntegerSchema.refine((value) => value > 0, 'value must be positive');
|
|
5
5
|
export var MetaWorkflowStructuredGenerationPlanKind;
|
|
@@ -11,14 +11,11 @@ export var MetaWorkflowStructuredGenerationPlanKind;
|
|
|
11
11
|
})(MetaWorkflowStructuredGenerationPlanKind || (MetaWorkflowStructuredGenerationPlanKind = {}));
|
|
12
12
|
export const MetaWorkflowStructuredGenerationPlanV1Schema = z.strictObject({
|
|
13
13
|
schemaVersion: z.literal(1),
|
|
14
|
-
providerConfigurationDigest: MetaWorkflow_Sha256DigestSchema,
|
|
15
14
|
outputSchemaRef: MetaWorkflow_NamespacedRefSchema,
|
|
16
|
-
outputSchemaDigest: MetaWorkflow_Sha256DigestSchema,
|
|
17
15
|
leafFieldCount: positiveSafeIntegerSchema,
|
|
18
16
|
maximumLeafFieldsPerCall: positiveSafeIntegerSchema,
|
|
19
17
|
planKind: z.enum(MetaWorkflowStructuredGenerationPlanKind),
|
|
20
18
|
physicalCallCount: nonnegativeSafeIntegerSchema,
|
|
21
|
-
planDigest: MetaWorkflow_Sha256DigestSchema,
|
|
22
19
|
}).superRefine((plan, context) => {
|
|
23
20
|
const exceedsLimit = plan.leafFieldCount > plan.maximumLeafFieldsPerCall;
|
|
24
21
|
if (plan.planKind === MetaWorkflowStructuredGenerationPlanKind.SINGLE_CALL && (plan.physicalCallCount !== 1 || exceedsLimit)) {
|
package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budget-authority.meta-workflows.shared.schemas.js","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gCAAgC,
|
|
1
|
+
{"version":3,"file":"budget-authority.meta-workflows.shared.schemas.js","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gCAAgC,GACjC,MAAM,qDAAqD,CAAC;AAE7D,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,gCAAgC,CAAC,CAAC;AAC5K,MAAM,yBAAyB,GAAG,4BAA4B,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,EAAE,wBAAwB,CAAC,CAAC;AAEtH,MAAM,CAAN,IAAY,wCAKX;AALD,WAAY,wCAAwC;IAClD,uEAA2B,CAAA;IAC3B,+DAAmB,CAAA;IACnB,iGAAiG;IACjG,6FAAiD,CAAA;AACnD,CAAC,EALW,wCAAwC,KAAxC,wCAAwC,QAKnD;AAED,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAAC,CAAC,YAAY,CAAC;IACzE,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,eAAe,EAAE,gCAAgC;IACjD,cAAc,EAAE,yBAAyB;IACzC,wBAAwB,EAAE,yBAAyB;IACnD,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,wCAAwC,CAAC;IAC1D,iBAAiB,EAAE,4BAA4B;CAChD,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/B,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,wBAAwB,CAAC;IACzE,IAAI,IAAI,CAAC,QAAQ,KAAK,wCAAwC,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,iBAAiB,KAAK,CAAC,IAAI,YAAY,CAAC,EAAE,CAAC;QAC7H,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,qDAAqD,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IAC3H,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,KAAK,wCAAwC,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACzH,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mEAAmE,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IACzI,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,KAAK,wCAAwC,CAAC,sBAAsB,IAAI,CAAC,IAAI,CAAC,iBAAiB,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACzI,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,qEAAqE,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IAC3I,CAAC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport {\n MetaWorkflow_NamespacedRefSchema,\n} from './portable-primitives.meta-workflows.shared.schemas';\n\nconst nonnegativeSafeIntegerSchema = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).refine((value) => !Object.is(value, -0), 'negative zero is not canonical');\nconst positiveSafeIntegerSchema = nonnegativeSafeIntegerSchema.refine((value) => value > 0, 'value must be positive');\n\nexport enum MetaWorkflowStructuredGenerationPlanKind {\n SINGLE_CALL = 'SINGLE_CALL',\n CHUNKED = 'CHUNKED',\n /** Leaf ceiling is exceeded, but the root semantics cannot be preserved across partial calls. */\n UNCHUNKABLE_OVER_LIMIT = 'UNCHUNKABLE_OVER_LIMIT',\n}\n\nexport const MetaWorkflowStructuredGenerationPlanV1Schema = z.strictObject({\n schemaVersion: z.literal(1),\n outputSchemaRef: MetaWorkflow_NamespacedRefSchema,\n leafFieldCount: positiveSafeIntegerSchema,\n maximumLeafFieldsPerCall: positiveSafeIntegerSchema,\n planKind: z.enum(MetaWorkflowStructuredGenerationPlanKind),\n physicalCallCount: nonnegativeSafeIntegerSchema,\n}).superRefine((plan, context) => {\n const exceedsLimit = plan.leafFieldCount > plan.maximumLeafFieldsPerCall;\n if (plan.planKind === MetaWorkflowStructuredGenerationPlanKind.SINGLE_CALL && (plan.physicalCallCount !== 1 || exceedsLimit)) {\n context.addIssue({ code: 'custom', message: 'SINGLE_CALL requires one within-limit physical call', path: ['planKind'] });\n }\n if (plan.planKind === MetaWorkflowStructuredGenerationPlanKind.CHUNKED && (plan.physicalCallCount <= 1 || !exceedsLimit)) {\n context.addIssue({ code: 'custom', message: 'CHUNKED requires multiple physical calls for an over-limit schema', path: ['planKind'] });\n }\n if (plan.planKind === MetaWorkflowStructuredGenerationPlanKind.UNCHUNKABLE_OVER_LIMIT && (plan.physicalCallCount !== 0 || !exceedsLimit)) {\n context.addIssue({ code: 'custom', message: 'UNCHUNKABLE_OVER_LIMIT requires zero calls for an over-limit schema', path: ['planKind'] });\n }\n});\nexport type MetaWorkflowStructuredGenerationPlanV1 = z.infer<typeof MetaWorkflowStructuredGenerationPlanV1Schema>;\n"]}
|
package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts
CHANGED
|
@@ -73,19 +73,6 @@ export declare const MetaWorkflow_ContextSelectionPlanSchema: z.ZodObject<{
|
|
|
73
73
|
assessmentSubjectRef: z.ZodString;
|
|
74
74
|
scope: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
75
75
|
iterationOrdinal: z.ZodNumber;
|
|
76
|
-
/**
|
|
77
|
-
* The assessment stable kernel this selection is bound to — ASSESSMENT consumers only.
|
|
78
|
-
*
|
|
79
|
-
* Optional, because it is meaningful for exactly one consumer kind. The assessment input compiler and the
|
|
80
|
-
* semantic-evaluation service compare these two against the episode's own kernel; a CODING_AGENT run has
|
|
81
|
-
* no kernel to compare against, and supplying a manufactured ref and digest so the shape would parse
|
|
82
|
-
* would be inventing a fact the run does not have.
|
|
83
|
-
*
|
|
84
|
-
* Absence stays FAIL-CLOSED where it matters: both assessment readers compare with `!==`, so an absent
|
|
85
|
-
* value cannot equal a real kernel and the assessment refuses exactly as it did before.
|
|
86
|
-
*/
|
|
87
|
-
stableKernelRef: z.ZodOptional<z.ZodString>;
|
|
88
|
-
stableKernelDigest: z.ZodOptional<z.ZodString>;
|
|
89
76
|
consumerKind: z.ZodEnum<typeof MetaWorkflow_ContextSelectionConsumerKind>;
|
|
90
77
|
maximumOptionalSources: z.ZodNumber;
|
|
91
78
|
maximumTokenBudget: z.ZodNumber;
|
|
@@ -120,8 +107,6 @@ export declare const MetaWorkflow_ContextSelectionSchema: z.ZodObject<{
|
|
|
120
107
|
assessmentSubjectRef: z.ZodString;
|
|
121
108
|
scope: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
122
109
|
iterationOrdinal: z.ZodNumber;
|
|
123
|
-
stableKernelRef: z.ZodOptional<z.ZodString>;
|
|
124
|
-
stableKernelDigest: z.ZodOptional<z.ZodString>;
|
|
125
110
|
consumerKind: z.ZodEnum<typeof MetaWorkflow_ContextSelectionConsumerKind>;
|
|
126
111
|
selectedSources: z.ZodArray<z.ZodObject<{
|
|
127
112
|
sourceRef: z.ZodString;
|
|
@@ -161,7 +146,6 @@ export declare enum MetaWorkflow_DeterministicFindingStatus {
|
|
|
161
146
|
}
|
|
162
147
|
export declare const MetaWorkflow_AssessmentStableKernelSchema: z.ZodObject<{
|
|
163
148
|
kernelRef: z.ZodString;
|
|
164
|
-
kernelDigest: z.ZodString;
|
|
165
149
|
declaredCriterionRefs: z.ZodArray<z.ZodString>;
|
|
166
150
|
deterministicFindings: z.ZodArray<z.ZodObject<{
|
|
167
151
|
findingRef: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-selection.meta-workflows.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"context-selection.meta-workflows.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,kEAAkE;AAClE,oBAAY,8BAA8B;IACxC,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,6DAA6D;AAC7D,oBAAY,mCAAmC;IAC7C,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,iFAAiF;AACjF,oBAAY,oCAAoC;IAC9C,cAAc,mBAAmB;IACjC,UAAU,eAAe;CAC1B;AAED,uGAAuG;AACvG,oBAAY,yCAAyC;IACnD,gBAAgB,qBAAqB;IACrC;;;;;;;;OAQG;IACH,YAAY,iBAAiB;CAC9B;AAED,iGAAiG;AACjG,eAAO,MAAM,yCAAyC;;;;;;;;;IASpD,+BAA+B;;kBAE/B,CAAC;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAE5G,+EAA+E;AAC/E,eAAO,MAAM,2CAA2C;;IAEtD,gFAAgF;;;;;;kBAMhF,CAAC;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,yFAAyF;AACzF,eAAO,MAAM,iCAAiC;;;kBAG5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F;;;;GAIG;AACH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;QArBlD,gFAAgF;;;;;;;;;QAAhF,gFAAgF;;;;;;;kBAuDhF,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAExG,eAAO,MAAM,mCAAmC;;;IAG9C;;;OAGG;;;;;;;;;;;;;;;QAxEH,+BAA+B;;;IA+E/B;;;;;OAKG;;;;;kBAcH,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG;;;;;GAKG;AACH,iFAAiF;AACjF,oBAAY,uCAAuC;IACjD,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,aAAa,kBAAkB;CAChC;AAED,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;kBAgBpD,CAAC"}
|
package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_OpaqueRefSchema, MetaWorkflow_PositiveVersionSchema,
|
|
2
|
+
import { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_OpaqueRefSchema, MetaWorkflow_PositiveVersionSchema, metaWorkflowValuesAreLexicallySorted, metaWorkflowValuesAreUnique, } from './portable-primitives.meta-workflows.shared.schemas.js';
|
|
3
3
|
const positiveIntegerSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
4
4
|
const unitIntervalSchema = z.number().finite().min(0).max(1);
|
|
5
5
|
/** Why a source participates in a semantic assessment package. */
|
|
@@ -77,19 +77,6 @@ export const MetaWorkflow_ContextSelectionPlanSchema = z.strictObject({
|
|
|
77
77
|
assessmentSubjectRef: MetaWorkflow_NamespacedRefSchema,
|
|
78
78
|
scope: z.record(z.string().min(1), z.string().min(1)),
|
|
79
79
|
iterationOrdinal: positiveIntegerSchema,
|
|
80
|
-
/**
|
|
81
|
-
* The assessment stable kernel this selection is bound to — ASSESSMENT consumers only.
|
|
82
|
-
*
|
|
83
|
-
* Optional, because it is meaningful for exactly one consumer kind. The assessment input compiler and the
|
|
84
|
-
* semantic-evaluation service compare these two against the episode's own kernel; a CODING_AGENT run has
|
|
85
|
-
* no kernel to compare against, and supplying a manufactured ref and digest so the shape would parse
|
|
86
|
-
* would be inventing a fact the run does not have.
|
|
87
|
-
*
|
|
88
|
-
* Absence stays FAIL-CLOSED where it matters: both assessment readers compare with `!==`, so an absent
|
|
89
|
-
* value cannot equal a real kernel and the assessment refuses exactly as it did before.
|
|
90
|
-
*/
|
|
91
|
-
stableKernelRef: MetaWorkflow_NamespacedRefSchema.optional(),
|
|
92
|
-
stableKernelDigest: MetaWorkflow_Sha256DigestSchema.optional(),
|
|
93
80
|
consumerKind: z.enum(MetaWorkflow_ContextSelectionConsumerKind),
|
|
94
81
|
maximumOptionalSources: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
95
82
|
maximumTokenBudget: positiveIntegerSchema,
|
|
@@ -129,8 +116,6 @@ export const MetaWorkflow_ContextSelectionSchema = z.strictObject({
|
|
|
129
116
|
assessmentSubjectRef: MetaWorkflow_NamespacedRefSchema,
|
|
130
117
|
scope: z.record(z.string().min(1), z.string().min(1)),
|
|
131
118
|
iterationOrdinal: positiveIntegerSchema,
|
|
132
|
-
stableKernelRef: MetaWorkflow_NamespacedRefSchema.optional(),
|
|
133
|
-
stableKernelDigest: MetaWorkflow_Sha256DigestSchema.optional(),
|
|
134
119
|
consumerKind: z.enum(MetaWorkflow_ContextSelectionConsumerKind),
|
|
135
120
|
selectedSources: z.array(MetaWorkflow_ContextSourceCandidateSchema),
|
|
136
121
|
/**
|
|
@@ -168,7 +153,6 @@ export var MetaWorkflow_DeterministicFindingStatus;
|
|
|
168
153
|
})(MetaWorkflow_DeterministicFindingStatus || (MetaWorkflow_DeterministicFindingStatus = {}));
|
|
169
154
|
export const MetaWorkflow_AssessmentStableKernelSchema = z.strictObject({
|
|
170
155
|
kernelRef: MetaWorkflow_NamespacedRefSchema,
|
|
171
|
-
kernelDigest: MetaWorkflow_Sha256DigestSchema,
|
|
172
156
|
declaredCriterionRefs: z.array(MetaWorkflow_NamespacedRefSchema).refine(metaWorkflowValuesAreUnique, 'declaredCriterionRefs must be unique').refine(metaWorkflowValuesAreLexicallySorted, 'declaredCriterionRefs must be lexically sorted'),
|
|
173
157
|
deterministicFindings: z.array(z.strictObject({
|
|
174
158
|
findingRef: MetaWorkflow_NamespacedRefSchema,
|
package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-selection.meta-workflows.shared.schemas.js","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,kCAAkC,EAClC,+BAA+B,EAC/B,oCAAoC,EACpC,2BAA2B,GAC5B,MAAM,qDAAqD,CAAC;AAE7D,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACvF,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE7D,kEAAkE;AAClE,MAAM,CAAN,IAAY,8B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_OpaqueRefSchema,\n MetaWorkflow_PositiveVersionSchema,\n MetaWorkflow_Sha256DigestSchema,\n metaWorkflowValuesAreLexicallySorted,\n metaWorkflowValuesAreUnique,\n} from './portable-primitives.meta-workflows.shared.schemas';\n\nconst positiveIntegerSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);\nconst unitIntervalSchema = z.number().finite().min(0).max(1);\n\n/** Why a source participates in a semantic assessment package. */\nexport enum MetaWorkflow_ContextSourceRole {\n MANDATORY = 'MANDATORY',\n CONDITIONAL = 'CONDITIONAL',\n ADVISORY = 'ADVISORY',\n}\n\n/** Freshness is source evidence, never a model inference. */\nexport enum MetaWorkflow_ContextSourceFreshness {\n CURRENT = 'CURRENT',\n STALE = 'STALE',\n UNKNOWN = 'UNKNOWN',\n}\n\n/** Disclosure safety is decided by the source adapter before prompt assembly. */\nexport enum MetaWorkflow_ContextSourceDisclosure {\n SAFE_FOR_MODEL = 'SAFE_FOR_MODEL',\n RESTRICTED = 'RESTRICTED',\n}\n\n/** Who the assembled context is FOR. The consumer decides what may travel and what a mistake costs. */\nexport enum MetaWorkflow_ContextSelectionConsumerKind {\n ASSESSMENT_INPUT = 'ASSESSMENT_INPUT',\n /**\n * Context assembled for a CODING AGENT that will mutate the application workspace.\n *\n * Deliberately not folded into `ASSESSMENT_INPUT`. The two consumers differ in what the context is FOR and\n * in what a mistake costs: an assessment input feeds a judgement that produces a finding, while this feeds\n * a run that writes files into a developer's source tree. They also differ in what may travel — the\n * application coding-task contract refuses any source that is not `SAFE_FOR_MODEL`, because its content is\n * rendered verbatim into the agent prompt.\n */\n CODING_AGENT = 'CODING_AGENT',\n}\n\n/** One acquired context source offered to the selector. `content` is portable JSON data only. */\nexport const MetaWorkflow_ContextSourceCandidateSchema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n sourceVersion: MetaWorkflow_PositiveVersionSchema.optional(),\n originRef: MetaWorkflow_NamespacedRefSchema,\n role: z.enum(MetaWorkflow_ContextSourceRole),\n relevance: unitIntervalSchema.optional(),\n estimatedTokens: positiveIntegerSchema,\n freshness: z.enum(MetaWorkflow_ContextSourceFreshness).optional(),\n disclosure: z.enum(MetaWorkflow_ContextSourceDisclosure),\n /** Portable JSON data only. */\n content: z.json(),\n});\nexport type MetaWorkflow_ContextSourceCandidate = z.infer<typeof MetaWorkflow_ContextSourceCandidateSchema>;\n\n/** Declared requirement: no planner or curator may remove this source role. */\nexport const MetaWorkflow_ContextSourceRequirementSchema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n /** Unknown freshness is never admissible for model-visible required context. */\n minimumFreshness: z.enum([\n MetaWorkflow_ContextSourceFreshness.CURRENT,\n MetaWorkflow_ContextSourceFreshness.STALE,\n ]),\n role: z.enum(MetaWorkflow_ContextSourceRole),\n});\nexport type MetaWorkflow_ContextSourceRequirement = z.infer<typeof MetaWorkflow_ContextSourceRequirementSchema>;\n\n/** One deterministic omission recorded after acquisition, keyed by source and reason. */\nexport const MetaWorkflow_ContextWarningSchema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n reasonRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type MetaWorkflow_ContextWarning = z.infer<typeof MetaWorkflow_ContextWarningSchema>;\n\n/**\n * Bounded, source-grounded selection instruction for one assessment iteration.\n * It deliberately carries no filesystem, companion, Git, or application-family\n * concepts; those belong to the host adapter which supplies candidates.\n */\nexport const MetaWorkflow_ContextSelectionPlanSchema = z.strictObject({\n schemaVersion: z.literal(1),\n planRef: MetaWorkflow_OpaqueRefSchema,\n objectiveRef: MetaWorkflow_NamespacedRefSchema,\n assessmentSubjectRef: MetaWorkflow_NamespacedRefSchema,\n scope: z.record(z.string().min(1), z.string().min(1)),\n iterationOrdinal: positiveIntegerSchema,\n /**\n * The assessment stable kernel this selection is bound to — ASSESSMENT consumers only.\n *\n * Optional, because it is meaningful for exactly one consumer kind. The assessment input compiler and the\n * semantic-evaluation service compare these two against the episode's own kernel; a CODING_AGENT run has\n * no kernel to compare against, and supplying a manufactured ref and digest so the shape would parse\n * would be inventing a fact the run does not have.\n *\n * Absence stays FAIL-CLOSED where it matters: both assessment readers compare with `!==`, so an absent\n * value cannot equal a real kernel and the assessment refuses exactly as it did before.\n */\n stableKernelRef: MetaWorkflow_NamespacedRefSchema.optional(),\n stableKernelDigest: MetaWorkflow_Sha256DigestSchema.optional(),\n consumerKind: z.enum(MetaWorkflow_ContextSelectionConsumerKind),\n maximumOptionalSources: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),\n maximumTokenBudget: positiveIntegerSchema,\n mandatorySources: z.array(MetaWorkflow_ContextSourceRequirementSchema).min(1),\n optionalSourceRequirements: z.array(MetaWorkflow_ContextSourceRequirementSchema),\n}).superRefine((plan, context) => {\n const mandatoryRefs = plan.mandatorySources.map((entry) => entry.sourceRef);\n const optionalRefs = plan.optionalSourceRequirements.map((entry) => entry.sourceRef);\n if (!metaWorkflowValuesAreUnique(mandatoryRefs)) {\n context.addIssue({ code: 'custom', path: ['mandatorySources'], message: 'mandatory source refs must be unique' });\n }\n if (!metaWorkflowValuesAreUnique(optionalRefs)) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'optional source refs must be unique' });\n }\n if (!metaWorkflowValuesAreLexicallySorted(optionalRefs)) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'optional source refs must be lexically sorted' });\n }\n if (plan.optionalSourceRequirements.some((requirement) => requirement.role === MetaWorkflow_ContextSourceRole.MANDATORY)) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'optional source requirements cannot declare the mandatory role' });\n }\n const mandatoryRefSet = new Set(mandatoryRefs);\n if (optionalRefs.some((sourceRef) => mandatoryRefSet.has(sourceRef))) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'a source ref cannot be both mandatory and optional' });\n }\n if (plan.maximumOptionalSources > plan.optionalSourceRequirements.length) {\n context.addIssue({ code: 'custom', path: ['maximumOptionalSources'], message: 'optional-source capacity cannot exceed declared optional requirements' });\n }\n});\nexport type MetaWorkflow_ContextSelectionPlan = z.infer<typeof MetaWorkflow_ContextSelectionPlanSchema>;\n\nexport const MetaWorkflow_ContextSelectionSchema = z.strictObject({\n schemaVersion: z.literal(1),\n planRef: MetaWorkflow_OpaqueRefSchema,\n /**\n * Repeated from the plan so a consumer can bind a sealed selection to its\n * exact objective and assessment scope without reopening a mutable plan.\n */\n objectiveRef: MetaWorkflow_NamespacedRefSchema,\n assessmentSubjectRef: MetaWorkflow_NamespacedRefSchema,\n scope: z.record(z.string().min(1), z.string().min(1)),\n iterationOrdinal: positiveIntegerSchema,\n stableKernelRef: MetaWorkflow_NamespacedRefSchema.optional(),\n stableKernelDigest: MetaWorkflow_Sha256DigestSchema.optional(),\n consumerKind: z.enum(MetaWorkflow_ContextSelectionConsumerKind),\n selectedSources: z.array(MetaWorkflow_ContextSourceCandidateSchema),\n /**\n * Deterministic omissions AFTER acquisition. A missing or unusable MANDATORY\n * source is never one of these: the selector refuses outright, because a\n * model input that silently lacks required evidence is exactly the fabricated\n * completeness this contract exists to prevent.\n */\n warnings: z.array(MetaWorkflow_ContextWarningSchema),\n}).superRefine((selection, context) => {\n const selectedSourceRefs = selection.selectedSources.map((source) => source.sourceRef);\n if (new Set(selectedSourceRefs).size !== selectedSourceRefs.length) {\n context.addIssue({ code: 'custom', path: ['selectedSources'], message: 'selected source refs must be unique' });\n }\n const warningKeys = selection.warnings.map((warning) => `${warning.sourceRef}\\0${warning.reasonRef}`);\n if (!metaWorkflowValuesAreUnique(warningKeys)) {\n context.addIssue({ code: 'custom', path: ['warnings'], message: 'context warnings must be unique by source and reason' });\n }\n if (!metaWorkflowValuesAreLexicallySorted(warningKeys)) {\n context.addIssue({ code: 'custom', path: ['warnings'], message: 'context warnings must be lexically sorted by source and reason' });\n }\n});\nexport type MetaWorkflow_ContextSelection = z.infer<typeof MetaWorkflow_ContextSelectionSchema>;\n\n/**\n * Stable assessment semantics supplied by the host alongside a selected\n * context package. It intentionally carries only declared references and\n * deterministic facts/guidance: the Treatment remains the owner of exact\n * evaluator protocol, criterion wording and authority boundaries.\n */\n/** Deterministic finding outcome carried inside the stable assessment kernel. */\nexport enum MetaWorkflow_DeterministicFindingStatus {\n PASSED = 'PASSED',\n FAILED = 'FAILED',\n NOT_EVALUABLE = 'NOT_EVALUABLE',\n}\n\nexport const MetaWorkflow_AssessmentStableKernelSchema = z.strictObject({\n kernelRef: MetaWorkflow_NamespacedRefSchema,\n kernelDigest: MetaWorkflow_Sha256DigestSchema,\n declaredCriterionRefs: z.array(MetaWorkflow_NamespacedRefSchema).refine(metaWorkflowValuesAreUnique, 'declaredCriterionRefs must be unique').refine(metaWorkflowValuesAreLexicallySorted, 'declaredCriterionRefs must be lexically sorted'),\n deterministicFindings: z.array(z.strictObject({\n findingRef: MetaWorkflow_NamespacedRefSchema,\n findingKindRef: MetaWorkflow_NamespacedRefSchema,\n status: z.enum(MetaWorkflow_DeterministicFindingStatus),\n evidenceRefs: z.array(MetaWorkflow_NamespacedRefSchema).refine(metaWorkflowValuesAreUnique, 'deterministic finding evidenceRefs must be unique').refine(metaWorkflowValuesAreLexicallySorted, 'deterministic finding evidenceRefs must be lexically sorted'),\n rationale: z.string().trim().min(1),\n })),\n guidance: z.array(z.strictObject({\n guidanceRef: MetaWorkflow_NamespacedRefSchema,\n content: z.string().trim().min(1),\n })),\n effectiveExplorationBreadth: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),\n revisionThreshold: unitIntervalSchema,\n});\n"]}
|
|
1
|
+
{"version":3,"file":"context-selection.meta-workflows.shared.schemas.js","sourceRoot":"","sources":["../../../../../src/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,kCAAkC,EAClC,oCAAoC,EACpC,2BAA2B,GAC5B,M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BAAkB;CACtC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport {\n MetaWorkflow_NamespacedRefSchema,\n MetaWorkflow_OpaqueRefSchema,\n MetaWorkflow_PositiveVersionSchema,\n metaWorkflowValuesAreLexicallySorted,\n metaWorkflowValuesAreUnique,\n} from './portable-primitives.meta-workflows.shared.schemas';\n\nconst positiveIntegerSchema = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);\nconst unitIntervalSchema = z.number().finite().min(0).max(1);\n\n/** Why a source participates in a semantic assessment package. */\nexport enum MetaWorkflow_ContextSourceRole {\n MANDATORY = 'MANDATORY',\n CONDITIONAL = 'CONDITIONAL',\n ADVISORY = 'ADVISORY',\n}\n\n/** Freshness is source evidence, never a model inference. */\nexport enum MetaWorkflow_ContextSourceFreshness {\n CURRENT = 'CURRENT',\n STALE = 'STALE',\n UNKNOWN = 'UNKNOWN',\n}\n\n/** Disclosure safety is decided by the source adapter before prompt assembly. */\nexport enum MetaWorkflow_ContextSourceDisclosure {\n SAFE_FOR_MODEL = 'SAFE_FOR_MODEL',\n RESTRICTED = 'RESTRICTED',\n}\n\n/** Who the assembled context is FOR. The consumer decides what may travel and what a mistake costs. */\nexport enum MetaWorkflow_ContextSelectionConsumerKind {\n ASSESSMENT_INPUT = 'ASSESSMENT_INPUT',\n /**\n * Context assembled for a CODING AGENT that will mutate the application workspace.\n *\n * Deliberately not folded into `ASSESSMENT_INPUT`. The two consumers differ in what the context is FOR and\n * in what a mistake costs: an assessment input feeds a judgement that produces a finding, while this feeds\n * a run that writes files into a developer's source tree. They also differ in what may travel — the\n * application coding-task contract refuses any source that is not `SAFE_FOR_MODEL`, because its content is\n * rendered verbatim into the agent prompt.\n */\n CODING_AGENT = 'CODING_AGENT',\n}\n\n/** One acquired context source offered to the selector. `content` is portable JSON data only. */\nexport const MetaWorkflow_ContextSourceCandidateSchema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n sourceVersion: MetaWorkflow_PositiveVersionSchema.optional(),\n originRef: MetaWorkflow_NamespacedRefSchema,\n role: z.enum(MetaWorkflow_ContextSourceRole),\n relevance: unitIntervalSchema.optional(),\n estimatedTokens: positiveIntegerSchema,\n freshness: z.enum(MetaWorkflow_ContextSourceFreshness).optional(),\n disclosure: z.enum(MetaWorkflow_ContextSourceDisclosure),\n /** Portable JSON data only. */\n content: z.json(),\n});\nexport type MetaWorkflow_ContextSourceCandidate = z.infer<typeof MetaWorkflow_ContextSourceCandidateSchema>;\n\n/** Declared requirement: no planner or curator may remove this source role. */\nexport const MetaWorkflow_ContextSourceRequirementSchema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n /** Unknown freshness is never admissible for model-visible required context. */\n minimumFreshness: z.enum([\n MetaWorkflow_ContextSourceFreshness.CURRENT,\n MetaWorkflow_ContextSourceFreshness.STALE,\n ]),\n role: z.enum(MetaWorkflow_ContextSourceRole),\n});\nexport type MetaWorkflow_ContextSourceRequirement = z.infer<typeof MetaWorkflow_ContextSourceRequirementSchema>;\n\n/** One deterministic omission recorded after acquisition, keyed by source and reason. */\nexport const MetaWorkflow_ContextWarningSchema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n reasonRef: MetaWorkflow_NamespacedRefSchema,\n});\nexport type MetaWorkflow_ContextWarning = z.infer<typeof MetaWorkflow_ContextWarningSchema>;\n\n/**\n * Bounded, source-grounded selection instruction for one assessment iteration.\n * It deliberately carries no filesystem, companion, Git, or application-family\n * concepts; those belong to the host adapter which supplies candidates.\n */\nexport const MetaWorkflow_ContextSelectionPlanSchema = z.strictObject({\n schemaVersion: z.literal(1),\n planRef: MetaWorkflow_OpaqueRefSchema,\n objectiveRef: MetaWorkflow_NamespacedRefSchema,\n assessmentSubjectRef: MetaWorkflow_NamespacedRefSchema,\n scope: z.record(z.string().min(1), z.string().min(1)),\n iterationOrdinal: positiveIntegerSchema,\n consumerKind: z.enum(MetaWorkflow_ContextSelectionConsumerKind),\n maximumOptionalSources: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),\n maximumTokenBudget: positiveIntegerSchema,\n mandatorySources: z.array(MetaWorkflow_ContextSourceRequirementSchema).min(1),\n optionalSourceRequirements: z.array(MetaWorkflow_ContextSourceRequirementSchema),\n}).superRefine((plan, context) => {\n const mandatoryRefs = plan.mandatorySources.map((entry) => entry.sourceRef);\n const optionalRefs = plan.optionalSourceRequirements.map((entry) => entry.sourceRef);\n if (!metaWorkflowValuesAreUnique(mandatoryRefs)) {\n context.addIssue({ code: 'custom', path: ['mandatorySources'], message: 'mandatory source refs must be unique' });\n }\n if (!metaWorkflowValuesAreUnique(optionalRefs)) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'optional source refs must be unique' });\n }\n if (!metaWorkflowValuesAreLexicallySorted(optionalRefs)) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'optional source refs must be lexically sorted' });\n }\n if (plan.optionalSourceRequirements.some((requirement) => requirement.role === MetaWorkflow_ContextSourceRole.MANDATORY)) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'optional source requirements cannot declare the mandatory role' });\n }\n const mandatoryRefSet = new Set(mandatoryRefs);\n if (optionalRefs.some((sourceRef) => mandatoryRefSet.has(sourceRef))) {\n context.addIssue({ code: 'custom', path: ['optionalSourceRequirements'], message: 'a source ref cannot be both mandatory and optional' });\n }\n if (plan.maximumOptionalSources > plan.optionalSourceRequirements.length) {\n context.addIssue({ code: 'custom', path: ['maximumOptionalSources'], message: 'optional-source capacity cannot exceed declared optional requirements' });\n }\n});\nexport type MetaWorkflow_ContextSelectionPlan = z.infer<typeof MetaWorkflow_ContextSelectionPlanSchema>;\n\nexport const MetaWorkflow_ContextSelectionSchema = z.strictObject({\n schemaVersion: z.literal(1),\n planRef: MetaWorkflow_OpaqueRefSchema,\n /**\n * Repeated from the plan so a consumer can bind a sealed selection to its\n * exact objective and assessment scope without reopening a mutable plan.\n */\n objectiveRef: MetaWorkflow_NamespacedRefSchema,\n assessmentSubjectRef: MetaWorkflow_NamespacedRefSchema,\n scope: z.record(z.string().min(1), z.string().min(1)),\n iterationOrdinal: positiveIntegerSchema,\n consumerKind: z.enum(MetaWorkflow_ContextSelectionConsumerKind),\n selectedSources: z.array(MetaWorkflow_ContextSourceCandidateSchema),\n /**\n * Deterministic omissions AFTER acquisition. A missing or unusable MANDATORY\n * source is never one of these: the selector refuses outright, because a\n * model input that silently lacks required evidence is exactly the fabricated\n * completeness this contract exists to prevent.\n */\n warnings: z.array(MetaWorkflow_ContextWarningSchema),\n}).superRefine((selection, context) => {\n const selectedSourceRefs = selection.selectedSources.map((source) => source.sourceRef);\n if (new Set(selectedSourceRefs).size !== selectedSourceRefs.length) {\n context.addIssue({ code: 'custom', path: ['selectedSources'], message: 'selected source refs must be unique' });\n }\n const warningKeys = selection.warnings.map((warning) => `${warning.sourceRef}\\0${warning.reasonRef}`);\n if (!metaWorkflowValuesAreUnique(warningKeys)) {\n context.addIssue({ code: 'custom', path: ['warnings'], message: 'context warnings must be unique by source and reason' });\n }\n if (!metaWorkflowValuesAreLexicallySorted(warningKeys)) {\n context.addIssue({ code: 'custom', path: ['warnings'], message: 'context warnings must be lexically sorted by source and reason' });\n }\n});\nexport type MetaWorkflow_ContextSelection = z.infer<typeof MetaWorkflow_ContextSelectionSchema>;\n\n/**\n * Stable assessment semantics supplied by the host alongside a selected\n * context package. It intentionally carries only declared references and\n * deterministic facts/guidance: the Treatment remains the owner of exact\n * evaluator protocol, criterion wording and authority boundaries.\n */\n/** Deterministic finding outcome carried inside the stable assessment kernel. */\nexport enum MetaWorkflow_DeterministicFindingStatus {\n PASSED = 'PASSED',\n FAILED = 'FAILED',\n NOT_EVALUABLE = 'NOT_EVALUABLE',\n}\n\nexport const MetaWorkflow_AssessmentStableKernelSchema = z.strictObject({\n kernelRef: MetaWorkflow_NamespacedRefSchema,\n declaredCriterionRefs: z.array(MetaWorkflow_NamespacedRefSchema).refine(metaWorkflowValuesAreUnique, 'declaredCriterionRefs must be unique').refine(metaWorkflowValuesAreLexicallySorted, 'declaredCriterionRefs must be lexically sorted'),\n deterministicFindings: z.array(z.strictObject({\n findingRef: MetaWorkflow_NamespacedRefSchema,\n findingKindRef: MetaWorkflow_NamespacedRefSchema,\n status: z.enum(MetaWorkflow_DeterministicFindingStatus),\n evidenceRefs: z.array(MetaWorkflow_NamespacedRefSchema).refine(metaWorkflowValuesAreUnique, 'deterministic finding evidenceRefs must be unique').refine(metaWorkflowValuesAreLexicallySorted, 'deterministic finding evidenceRefs must be lexically sorted'),\n rationale: z.string().trim().min(1),\n })),\n guidance: z.array(z.strictObject({\n guidanceRef: MetaWorkflow_NamespacedRefSchema,\n content: z.string().trim().min(1),\n })),\n effectiveExplorationBreadth: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),\n revisionThreshold: unitIntervalSchema,\n});\n"]}
|
|
@@ -282,9 +282,9 @@ export type MetaWorkflow_ContinuationPolicy = z.infer<typeof _MetaWorkflow_Conti
|
|
|
282
282
|
* One self-contained executable decision treatment.
|
|
283
283
|
*
|
|
284
284
|
* Every member is carried in full so a catalog artifact has no ambient
|
|
285
|
-
* semantic dependency.
|
|
286
|
-
*
|
|
287
|
-
*
|
|
285
|
+
* semantic dependency. Referential coherence (a Decision Point naming only
|
|
286
|
+
* members carried here) is checked structurally by the schema refinements
|
|
287
|
+
* below; no identity is recomputed or compared against a stored digest.
|
|
288
288
|
*/
|
|
289
289
|
declare const _MetaWorkflow_EvaluationTreatmentDefinitionSchema: z.ZodObject<{
|
|
290
290
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -547,9 +547,9 @@ const _MetaWorkflow_ContinuationPolicySchema = z
|
|
|
547
547
|
* One self-contained executable decision treatment.
|
|
548
548
|
*
|
|
549
549
|
* Every member is carried in full so a catalog artifact has no ambient
|
|
550
|
-
* semantic dependency.
|
|
551
|
-
*
|
|
552
|
-
*
|
|
550
|
+
* semantic dependency. Referential coherence (a Decision Point naming only
|
|
551
|
+
* members carried here) is checked structurally by the schema refinements
|
|
552
|
+
* below; no identity is recomputed or compared against a stored digest.
|
|
553
553
|
*/
|
|
554
554
|
const _MetaWorkflow_EvaluationTreatmentDefinitionSchema = z
|
|
555
555
|
.strictObject({
|