@wildo-ai/saas-specifications 1.1.3 → 1.1.4
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/_catalogs/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-rating.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/article.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/blog-posting.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/breadcrumb-list.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/faq-page.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/organization.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/review.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/website.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-completeness-statement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +118 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +65 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +498 -7
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +472 -19
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +2 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +2 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/error-message-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +9 -9
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-validation.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/inherit-from.d.ts.map +1 -1
- package/dist/esm/_core/market/is-benefit-available.d.ts.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-context-block.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-scoring.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -18
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +22 -16
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +17 -11
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +12 -8
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +12 -8
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +16 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.js +0 -20
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
- package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification-registry-alignment.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-type-member-name.types.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/system-email-template-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/translation-slot-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -1
- package/dist/esm/_core/utils/retention-marker-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/validate-field-shapes.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +8 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/specification-content-validation-state.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +11 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +37 -4
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +2 -2
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +22 -9
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +2002 -29
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +30 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +40 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -14
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +14 -6
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +29 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.d.ts.map +1 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/index.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +47 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +355 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/index.d.ts +1 -0
- package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/index.js +1 -0
- package/dist/esm/engine/auth/resources/index.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +9 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +2 -0
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-api-reference-examples.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +69 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +316 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +1 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +4 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +19 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/errors/index.d.ts.map +1 -1
- package/dist/esm/engine/features/_engine-feature-shared.d.ts.map +1 -1
- package/dist/esm/engine/features/advanced-analytics.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/directory-provisioning.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/security-event-export.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/single-sign-on.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/index.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-code-block.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-web-preview.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-sources.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestions.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-decision-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-human-input-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-confirmation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-task.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-tool.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-connection.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-controls.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-edge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-capabilities.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-prompt-spec.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-context.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-model-selector.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-open-in-chat.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-loader.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-shimmer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-checkpoint.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-inline-citation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-reasoning.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-home.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-router-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layouts-test-component.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-static-content-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-mfa-challenge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-consent.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logged-out.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logout-confirm.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-one-off-session.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-confirm-email.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-password-lost.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/avatar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-details.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-term.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/_display-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-audio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-gallery.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-video.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.extra-props.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/notification-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/error-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-lock-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-prompt.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-spinner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/operations-confirm-critical.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/skeleton.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/toast.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-actor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-agent-config.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-artifact-browser.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-stream.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-detail.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-memory.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_framework-layout-form-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_low-level-preset-wrapper-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/autosave-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-content.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-error.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-title.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-control.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-root.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/checkbox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/switch.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle-group-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar-day-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/file-upload.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/image-crop.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-addon.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/range-slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/password-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/form-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-announcement.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-banner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-modal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-onboarding-view.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-survey.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tour.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-echarts.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-widget.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-composite.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-full-custom.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-not-found.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/aspect-ratio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/carousel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/divider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/resizable-panel-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/scroll-area.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-legend.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-overlay-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/activity-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/command-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/control-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/menubar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/notification-center.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-switcher.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/status-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/command.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/menu-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/navbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/drawer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/sheet.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/context-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/dropdown-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/hover-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/popover.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-achievement-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/_framework-layout-resource-layout-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-action.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-dialogs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-nested.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-create.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operation-bulk.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-expandable.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary-table-row.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-update.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit-search.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stacked-layout.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/table.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/heading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/strong.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/subheading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/full-custom-views/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/authentication.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js +10 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +10 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js +10 -1
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/index.d.ts.map +1 -1
- package/dist/esm/engine/providers/index.js.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/_engine-role-shared.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-billing-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-marketing-editor.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-super-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-viewer.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-anonymous.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-public.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-user.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-guest.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-member.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-owner.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-api-reference-targets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-environment-identity.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-records.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/usage-records.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EACf,gCAAgC,GACjC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAm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AAE,2EAA2E,EAAE;iBAClI;gBACD,UAAU,EAAE,IAAI;aACjB;SACF;QACD,mBAAmB,EAAE,CAAC,2HAA2H,CAAC;KACnJ,CAAC,EACF,EAAE,oBAAoB,EAAE,uCAAuC,CAAC,YAAY,CAAC,EAAE,CAChF,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,YAA+B,EAAE,UAAmC;IAChG,MAAM,IAAI,GAAG,oBAAoB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IAC5D,MAAM,IAAI,GAAG,cAAc,CAAC,kBAAsD,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC;IACxH,MAAM,KAAK,GAAG,cAAc,CAAC,mBAAuD,EAAE,YAAY,EAAE,qBAAqB,CAAC,CAAC;IAC3H,OAAO,8CAA8C,CACnD,mCAAmC,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,6BAA6B,CAAC,KAAK,CAAC,CAAC,EAC9G,IAAI,EACJ,GAAG,EAAE,CAAC,CAAC;QACL,KAAK,EAAE,EAAE,OAAO,EAAE,8DAA8D,EAAE;QAClF,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,4FAA4F,EAAE,SAAS,EAAE,sCAAsC,EAAE;YACvK,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,+CAA+C,EAAE,SAAS,EAAE,qCAAqC,EAAE;SAC1H;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,6CAA6C,GAAG,oBAAoB,CAC/E,gBAAgB,CAAC,0BAA0B,EAC3C,4BAA4B,CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,oBAAoB,CACvE,gBAAgB,CAAC,kBAAkB,EACnC,oBAAoB,CACrB,CAAC","sourcesContent":["import { billingAdminPresets, billingMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n UsageRecordSchema,\n UsageRecordFlushState,\n UsageRecordUnreportableReason,\n UsageSourceType,\n usageRecordsPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport {\n BILLING_API_REFERENCE_PAGE_REQUEST,\n billingApiReferencePage,\n createBillingApiReferenceScopeExample,\n type BillingApiReferenceExampleScope,\n} from './billing-api-reference-examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype UsageResourceType = CoreResourceType.ORGANIZATION_USAGE_RECORDS | CoreResourceType.USER_USAGE_RECORDS;\ntype UsageResourceTypeMember = 'ORGANIZATION_USAGE_RECORDS' | 'USER_USAGE_RECORDS';\n\nconst usageResourcePrimaryScopeByResourceType: Record<UsageResourceType, BillingApiReferenceExampleScope> = {\n [CoreResourceType.ORGANIZATION_USAGE_RECORDS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.USER_USAGE_RECORDS]: ResourcePrimaryScope.USER_SELF,\n};\n\ntype Cfg = ReturnType<(typeof usageRecordsPolymorphicFactories)[CoreResourceType.ORGANIZATION_USAGE_RECORDS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof UsageRecordSchema;\ntype UsageFrontend = ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nfunction resolveUsageUI(source: Partial<Record<string, unknown>>, resourceType: UsageResourceType, sourceName: string): UsageFrontend {\n const uiBehavior = source[resourceType] as UsageFrontend | undefined;\n if (!uiBehavior) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return uiBehavior;\n}\n\nfunction buildUsageRecordBase(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const exampleScope = createBillingApiReferenceScopeExample(\n usageResourcePrimaryScopeByResourceType[resourceType],\n );\n const usageRecordExample = {\n _id: 'usage_record_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1250,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.REPORTED,\n reportedAt: '2026-06-15T12:05:00.000Z',\n metadata: { region: 'eu-west' },\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n };\n const usageRecordSummaryExample = {\n _id: usageRecordExample._id,\n ...exampleScope.billingAccountIdentity,\n productKey: usageRecordExample.productKey,\n quantity: usageRecordExample.quantity,\n timestamp: usageRecordExample.timestamp,\n };\n\n return resourceSpecification<undefined, Core, Main>(\n usageRecordsPolymorphicFactories[resourceType],\n UsageRecordSchema,\n ({ schemaShape }) => ({\n purpose:\n 'Metered-usage record for a product key: exposes the measured quantity, event timestamp, reporting state, and the API or workflow source that produced it.',\n businessRole: 'Feeds METERED pricing and entitlements; aggregated in analytics and in `BillingState` responses.',\n lifecycleRole:\n 'Created by application metering and exposed as a read-only record. `flushState` moves from `pending` to `reported` once the billing provider acknowledges the measured usage, or to `unreportable` when the flush determines it never can — a billing account that no longer exists, for instance, since these rows are retained after their account is gone.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'usageRecordsPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Usage document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n billingAccountId: schemaShape.billingAccountId.stringSpec({ meaning: 'Polymorphic parent billing account FK.', importance: FieldSemanticImportance.PRIMARY }),\n productKey: schemaShape.productKey.stringSpec({ meaning: 'Catalog product key the usage record charges against (matches product definition).', importance: FieldSemanticImportance.PRIMARY }),\n quantity: schemaShape.quantity.numberSpec({ meaning: 'Non-negative usage amount for the metering window captured in this record.' }),\n timestamp: schemaShape.timestamp.dateSpec({ meaning: 'When the usage event occurred in product time.', temporalRole: 'occurred' }),\n source: schemaShape.source.objectSpec({ meaning: 'Optional origin metadata (type, resourceType, operation id) for support and audits.' }),\n flushState: schemaShape.flushState.enumSpec({\n meaning: 'Where the row stands with the provider flush. The flush selects exactly `pending`, so this field alone decides whether the row is still work.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordFlushState', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordFlushState.PENDING]: { meaning: 'Awaiting a flush. Every newly recorded row starts here.' },\n [UsageRecordFlushState.REPORTED]: { meaning: 'The provider acknowledged the quantity; `reportedAt` says when. Terminal, and money moved.' },\n [UsageRecordFlushState.UNREPORTABLE]: { meaning: 'The flush determined the row can never be reported; `unreportableReason` says why. Terminal, and no money moved.' },\n },\n }),\n reportedAt: schemaShape.reportedAt.dateSpec({ meaning: 'When provider acknowledgement happened.', temporalRole: 'modified' }),\n unreportableReason: schemaShape.unreportableReason.enumSpec({\n meaning: 'Why the row can never be reported. Present only when the flush state is unreportable.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordUnreportableReason', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordUnreportableReason.BILLING_ACCOUNT_DELETED]: { meaning: 'The billing account row no longer exists, so there is no provider customer to report the usage to. Reachable by design: these rows are retained after their account is gone.' },\n },\n }),\n unreportableAt: schemaShape.unreportableAt.dateSpec({ meaning: 'When the flush determined the row unreportable.', temporalRole: 'modified' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Extra string tags for product-specific accounting.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record insert time.', temporalRole: 'creation' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single usage row in admin or support tools.',\n outcome: 'Full quantity, timestamp, and source block.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The usage record was found and its quantity, timestamp, and source block are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to read metered-usage rows (reads are org-owner/org-admin-scoped API operations; writes stay system-scoped internal service-pipeline ops, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect one reported API-usage record',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a usage record with available relationship context',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact usage summary',\n response: usageRecordSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Paginated usage history for a billing account (metering explorer).',\n outcome: 'Chronological rows for charts and export.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) chronological page of usage records for the billing account.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to enumerate metered-usage history.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse metered usage chronologically',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse usage records with relationship context',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact metered-usage summaries',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordSummaryExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Record an occurrence of metered consumption from application code or workers.',\n outcome: 'New immutable-ish line with not-editable fields enforced in schema.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A metered-usage line was appended for the product key and is returned with its server-assigned id and creation time.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The usage payload is malformed — negative `quantity`, unknown `productKey`, or a non-editable field supplied by the caller.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the trusted system/metering identity authorised to append usage (the op is an internal service-pipeline op, not exposed over HTTP for arbitrary client writes).' },\n ],\n // Append-only event write: each call records a distinct metered occurrence, so\n // repeating it inserts another row. The runtime does not key these on an\n // idempotency token, so two identical requests double-count by design.\n idempotent: false,\n rateLimitNote: 'High-volume ingestion path — metering hooks and workers should batch and back off; bursty per-event writes may be throttled by the platform.',\n examples: [\n {\n title: 'Record one metered consumption event',\n request: {\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n },\n response: {\n _id: 'usage_record_unreported_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.PENDING,\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Rare correction or provider sync patch paths when policy allows; many fields are not editable in zod for safety.',\n outcome: 'Patched metadata or flush state in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The editable subset (metadata / report flags) was patched and the updated usage record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A non-editable usage field (`quantity`, `productKey`, `timestamp`) was supplied, or the patch otherwise fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner / system role required to correct or re-sync usage rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: ['High-volume append-only usage — UI should not imply arbitrary user edits to historical quantities without a dedicated op.'],\n }),\n { resourcePrimaryScope: usageResourcePrimaryScopeByResourceType[resourceType] },\n );\n}\n\nfunction buildUsageRecordSpec(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const base = buildUsageRecordBase(resourceType, memberName);\n const main = resolveUsageUI(billingMainPresets as Partial<Record<string, unknown>>, resourceType, 'billingMainPresets');\n const admin = resolveUsageUI(billingAdminPresets as Partial<Record<string, unknown>>, resourceType, 'billingAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n label: { purpose: 'Preset stringifies `productKey · quantity` for dense tables.' },\n views: {\n [Op.LIST]: { purpose: 'List op in merged `views` as non-addressable; keep spec aligned with merged preset op map.', whenToUse: 'Embedded list under billing account.' },\n [Op.READ]: { purpose: 'Read op in merged `views` as non-addressable.', whenToUse: 'Row detail in inspector when wired.' },\n },\n }),\n );\n}\n\nexport const organizationUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.ORGANIZATION_USAGE_RECORDS,\n 'ORGANIZATION_USAGE_RECORDS',\n);\n\nexport const userUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.USER_USAGE_RECORDS,\n 'USER_USAGE_RECORDS',\n);\n"]}
|
|
1
|
+
{"version":3,"file":"usage-records.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/billing/resources/usage-records.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,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AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,oBAAoB,CACvE,gBAAgB,CAAC,kBAAkB,EACnC,oBAAoB,CACrB,CAAC","sourcesContent":["import { billingAdminPresets, billingMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n UsageRecordSchema,\n UsageRecordFlushState,\n UsageRecordUnreportableReason,\n UsageSourceType,\n usageRecordsPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport {\n BILLING_API_REFERENCE_PAGE_REQUEST,\n billingApiReferencePage,\n createBillingApiReferenceScopeExample,\n type BillingApiReferenceExampleScope,\n} from './billing-api-reference-examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype UsageResourceType = CoreResourceType.ORGANIZATION_USAGE_RECORDS | CoreResourceType.USER_USAGE_RECORDS;\ntype UsageResourceTypeMember = 'ORGANIZATION_USAGE_RECORDS' | 'USER_USAGE_RECORDS';\n\nconst usageResourcePrimaryScopeByResourceType: Record<UsageResourceType, BillingApiReferenceExampleScope> = {\n [CoreResourceType.ORGANIZATION_USAGE_RECORDS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.USER_USAGE_RECORDS]: ResourcePrimaryScope.USER_SELF,\n};\n\ntype Cfg = ReturnType<(typeof usageRecordsPolymorphicFactories)[CoreResourceType.ORGANIZATION_USAGE_RECORDS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof UsageRecordSchema;\ntype UsageFrontend = ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nfunction resolveUsageUI(source: Partial<Record<string, unknown>>, resourceType: UsageResourceType, sourceName: string): UsageFrontend {\n const uiBehavior = source[resourceType] as UsageFrontend | undefined;\n if (!uiBehavior) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return uiBehavior;\n}\n\nfunction buildUsageRecordBase(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const exampleScope = createBillingApiReferenceScopeExample(\n usageResourcePrimaryScopeByResourceType[resourceType],\n );\n const usageRecordExample = {\n _id: 'usage_record_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1250,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.REPORTED,\n reportedAt: '2026-06-15T12:05:00.000Z',\n metadata: { region: 'eu-west' },\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n };\n const usageRecordSummaryExample = {\n _id: usageRecordExample._id,\n ...exampleScope.billingAccountIdentity,\n productKey: usageRecordExample.productKey,\n quantity: usageRecordExample.quantity,\n timestamp: usageRecordExample.timestamp,\n };\n\n return resourceSpecification<undefined, Core, Main>(\n usageRecordsPolymorphicFactories[resourceType],\n UsageRecordSchema,\n ({ schemaShape }) => ({\n purpose:\n 'Metered-usage record for a product key: exposes the measured quantity, event timestamp, reporting state, and the API or workflow source that produced it.',\n businessRole: 'Feeds METERED pricing and entitlements; aggregated in analytics and in `BillingState` responses.',\n lifecycleRole:\n 'Created by application metering and exposed as a read-only record. `flushState` moves from `pending` to `reported` once the billing provider acknowledges the measured usage, or to `unreportable` when the flush determines it never can — a billing account that no longer exists, for instance, since these rows are retained after their account is gone.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'usageRecordsPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'billingAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: resourceType },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Usage document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n billingAccountId: schemaShape.billingAccountId.stringSpec({ meaning: 'Polymorphic parent billing account FK.', importance: FieldSemanticImportance.PRIMARY }),\n productKey: schemaShape.productKey.stringSpec({ meaning: 'Catalog product key the usage record charges against (matches product definition).', importance: FieldSemanticImportance.PRIMARY }),\n quantity: schemaShape.quantity.numberSpec({ meaning: 'Non-negative usage amount for the metering window captured in this record.' }),\n timestamp: schemaShape.timestamp.dateSpec({ meaning: 'When the usage event occurred in product time.', temporalRole: 'occurred' }),\n source: schemaShape.source.objectSpec({ meaning: 'Optional origin metadata (type, resourceType, operation id) for support and audits.' }),\n flushState: schemaShape.flushState.enumSpec({\n meaning: 'Where the row stands with the provider flush. The flush selects exactly `pending`, so this field alone decides whether the row is still work.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordFlushState', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordFlushState.PENDING]: { meaning: 'Awaiting a flush. Every newly recorded row starts here.' },\n [UsageRecordFlushState.REPORTED]: { meaning: 'The provider acknowledged the quantity; `reportedAt` says when. Terminal, and money moved.' },\n [UsageRecordFlushState.UNREPORTABLE]: { meaning: 'The flush determined the row can never be reported; `unreportableReason` says why. Terminal, and no money moved.' },\n },\n }),\n reportedAt: schemaShape.reportedAt.dateSpec({ meaning: 'When provider acknowledgement happened.', temporalRole: 'modified' }),\n unreportableReason: schemaShape.unreportableReason.enumSpec({\n meaning: 'Why the row can never be reported. Present only when the flush state is unreportable.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageRecordUnreportableReason', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageRecordUnreportableReason.BILLING_ACCOUNT_DELETED]: { meaning: 'The billing account row no longer exists, so there is no provider customer to report the usage to. Reachable by design: these rows are retained after their account is gone.' },\n },\n }),\n unreportableAt: schemaShape.unreportableAt.dateSpec({ meaning: 'When the flush determined the row unreportable.', temporalRole: 'modified' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Extra string tags for product-specific accounting.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record insert time.', temporalRole: 'creation' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single usage row in admin or support tools.',\n outcome: 'Full quantity, timestamp, and source block.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The usage record was found and its quantity, timestamp, and source block are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to read metered-usage rows (reads are org-owner/org-admin-scoped API operations; writes stay system-scoped internal service-pipeline ops, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect one reported API-usage record',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a usage record with available relationship context',\n response: usageRecordExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact usage summary',\n response: usageRecordSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'Paginated usage history for a billing account (metering explorer).',\n outcome: 'Chronological rows for charts and export.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) chronological page of usage records for the billing account.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to enumerate metered-usage history.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse metered usage chronologically',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse usage records with relationship context',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact metered-usage summaries',\n request: BILLING_API_REFERENCE_PAGE_REQUEST,\n response: billingApiReferencePage([usageRecordSummaryExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Record an occurrence of metered consumption from application code or workers.',\n outcome: 'New immutable-ish line with not-editable fields enforced in schema.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A metered-usage line was appended for the product key and is returned with its server-assigned id and creation time.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The usage payload is malformed — negative `quantity`, unknown `productKey`, or a non-editable field supplied by the caller.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the trusted system/metering identity authorised to append usage (the op is an internal service-pipeline op, not exposed over HTTP for arbitrary client writes).' },\n ],\n // Append-only event write: each call records a distinct metered occurrence, so\n // repeating it inserts another row. The runtime does not key these on an\n // idempotency token, so two identical requests double-count by design.\n idempotent: false,\n rateLimitNote: 'High-volume ingestion path — metering hooks and workers should batch and back off; bursty per-event writes may be throttled by the platform.',\n examples: [\n {\n title: 'Record one metered consumption event',\n request: {\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n },\n response: {\n _id: 'usage_record_unreported_01HX2EXAMPLE',\n ...exampleScope.billingAccountIdentity,\n productKey: 'api_calls',\n quantity: 1,\n timestamp: '2026-06-15T12:00:00.000Z',\n source: {\n type: UsageSourceType.OPERATION,\n resourceType: 'documents',\n operationIdentifier: 'create',\n },\n flushState: UsageRecordFlushState.PENDING,\n createdAt: '2026-06-15T12:00:01.000Z',\n ...exampleScope.scopeIdentity,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Rare correction or provider sync patch paths when policy allows; many fields are not editable in zod for safety.',\n outcome: 'Patched metadata or flush state in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The editable subset (metadata / report flags) was patched and the updated usage record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A non-editable usage field (`quantity`, `productKey`, `timestamp`) was supplied, or the patch otherwise fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner / system role required to correct or re-sync usage rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No usage record exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: ['High-volume append-only usage — UI should not imply arbitrary user edits to historical quantities without a dedicated op.'],\n }),\n { resourcePrimaryScope: usageResourcePrimaryScopeByResourceType[resourceType] },\n );\n}\n\nfunction buildUsageRecordSpec(resourceType: UsageResourceType, memberName: UsageResourceTypeMember) {\n const base = buildUsageRecordBase(resourceType, memberName);\n const main = resolveUsageUI(billingMainPresets as Partial<Record<string, unknown>>, resourceType, 'billingMainPresets');\n const admin = resolveUsageUI(billingAdminPresets as Partial<Record<string, unknown>>, resourceType, 'billingAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n label: { purpose: 'Preset stringifies `productKey · quantity` for dense tables.' },\n views: {\n [Op.LIST]: { purpose: 'List op in merged `views` as non-addressable; keep spec aligned with merged preset op map.', whenToUse: 'Embedded list under billing account.' },\n [Op.READ]: { purpose: 'Read op in merged `views` as non-addressable.', whenToUse: 'Row detail in inspector when wired.' },\n },\n }),\n );\n}\n\nexport const organizationUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.ORGANIZATION_USAGE_RECORDS,\n 'ORGANIZATION_USAGE_RECORDS',\n);\n\nexport const userUsageRecordsResourceSpecification = buildUsageRecordSpec(\n CoreResourceType.USER_USAGE_RECORDS,\n 'USER_USAGE_RECORDS',\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/engine/compliance/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `applicationAuditLogs` — Wildo SaaS engine specification (backend-only, application-scoped).
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: engine/saas-models/src/compliance/audit-trails/auditable-events.shared.schema.ts
|
|
6
|
+
* → `AuditableEvent_BaseSchema`
|
|
7
|
+
* - Factory: engine/saas-models/src/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.ts
|
|
8
|
+
* → `applicationAuditLogsResourceConfiguration_InitializationFactory`
|
|
9
|
+
* - Custom operations: none.
|
|
10
|
+
*
|
|
11
|
+
* ## Why this exists BESIDE `auditLogs` rather than inside it
|
|
12
|
+
*
|
|
13
|
+
* `auditLogs` is organization-scoped and its only route is
|
|
14
|
+
* `/organizations/{organizationId}/audit-logs`, so it returns exactly the rows carrying that
|
|
15
|
+
* tenant. A large share of security events carry no organization by design — login, session
|
|
16
|
+
* eviction, token refresh and application-wide authentication-policy changes all happen before or
|
|
17
|
+
* outside a tenant selection. Measured on a dogfood application (#317): **94 of 127 rows had no
|
|
18
|
+
* organization**, and were reachable through no API at all. An operator could see 26% of the trail
|
|
19
|
+
* and could not attest the rest.
|
|
20
|
+
*
|
|
21
|
+
* A second ROUTE on the same resource was not available: `generateParentCombinations` composes
|
|
22
|
+
* every URL from the primary scope plus every parent combination, so an application edge on
|
|
23
|
+
* `auditLogs` would rewrite the organization route rather than sit beside it. The reasoning is
|
|
24
|
+
* written out in full on the runtime configuration; this specification does not restate it.
|
|
25
|
+
*
|
|
26
|
+
* ## Two doors, ONE record set — and what that means for a reader of the reference
|
|
27
|
+
*
|
|
28
|
+
* Both resources resolve to the same `auditLogs` collection. So the isolation properties are a
|
|
29
|
+
* per-DOOR obligation rather than a property of the rows, and this door's obligations are the whole
|
|
30
|
+
* reason it is documented separately:
|
|
31
|
+
*
|
|
32
|
+
* - it is `APP_ADMIN_SUPER_ADMIN`-only on every operation, and an organization role can never reach
|
|
33
|
+
* it, because the rows behind it span every tenant;
|
|
34
|
+
* - every read here is a declared CROSS-TENANT read and emits `CROSS_TENANT_ADMINISTRATIVE_ACCESS`
|
|
35
|
+
* once per tenant the returned rows belong to, so the crossing is visible to the tenant that was
|
|
36
|
+
* reached and not only to the operator who reached it;
|
|
37
|
+
* - the reads are additionally gated on an application-wide access grant, which is requested,
|
|
38
|
+
* justified, time-bound and signed by a SECOND platform administrator. See
|
|
39
|
+
* `applicationAccessGrants`.
|
|
40
|
+
*
|
|
41
|
+
* ## Why there is no CREATE, and no write of any kind
|
|
42
|
+
*
|
|
43
|
+
* The organization resource carries a `REPOSITORY_ONLY` CREATE because that is how audit rows are
|
|
44
|
+
* appended. Writing is not a scope question, so the trail keeps exactly one writer and this door is
|
|
45
|
+
* read-only in every sense — there is no update, no delete, and no second append path.
|
|
46
|
+
*
|
|
47
|
+
* Why backend-only: no preset under `engine/presets-components/src/config/resources/` declares an
|
|
48
|
+
* entry for `[CoreResourceType.APPLICATION_AUDIT_LOGS]`. The operator-facing trail viewer is not
|
|
49
|
+
* built yet; today the resource is reached through the API and the generated reference.
|
|
50
|
+
*/
|
|
51
|
+
import { AuditEventCategory, AuditEventSeverity, CoreResourceOperation as Op, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';
|
|
52
|
+
export declare const applicationAuditLogsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<undefined, Op.READ | Op.LIST | Op.SEARCH, import("zod").ZodObject<{
|
|
53
|
+
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
54
|
+
eventId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>;
|
|
55
|
+
userId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
56
|
+
organizationId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
57
|
+
applicationId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
58
|
+
correlationId: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
59
|
+
frontendServiceName: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
60
|
+
clientInstanceId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
61
|
+
riskLevel: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ResourceOperationRiskLevel>>;
|
|
62
|
+
eventType: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
63
|
+
eventData: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
64
|
+
eventCategory: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof AuditEventCategory>>;
|
|
65
|
+
severity: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof AuditEventSeverity>>;
|
|
66
|
+
createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
|
|
67
|
+
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>;
|
|
68
|
+
}, import("zod/v4/core").$strip>>;
|
|
69
|
+
//# sourceMappingURL=application-audit-logs.resource.specification.d.ts.map
|
package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-audit-logs.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/application-audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAQH,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAG3B,MAAM,uBAAuB,CAAC;AAqE/B,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;iCA+MrD,CAAC"}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `applicationAuditLogs` — Wildo SaaS engine specification (backend-only, application-scoped).
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: engine/saas-models/src/compliance/audit-trails/auditable-events.shared.schema.ts
|
|
6
|
+
* → `AuditableEvent_BaseSchema`
|
|
7
|
+
* - Factory: engine/saas-models/src/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.ts
|
|
8
|
+
* → `applicationAuditLogsResourceConfiguration_InitializationFactory`
|
|
9
|
+
* - Custom operations: none.
|
|
10
|
+
*
|
|
11
|
+
* ## Why this exists BESIDE `auditLogs` rather than inside it
|
|
12
|
+
*
|
|
13
|
+
* `auditLogs` is organization-scoped and its only route is
|
|
14
|
+
* `/organizations/{organizationId}/audit-logs`, so it returns exactly the rows carrying that
|
|
15
|
+
* tenant. A large share of security events carry no organization by design — login, session
|
|
16
|
+
* eviction, token refresh and application-wide authentication-policy changes all happen before or
|
|
17
|
+
* outside a tenant selection. Measured on a dogfood application (#317): **94 of 127 rows had no
|
|
18
|
+
* organization**, and were reachable through no API at all. An operator could see 26% of the trail
|
|
19
|
+
* and could not attest the rest.
|
|
20
|
+
*
|
|
21
|
+
* A second ROUTE on the same resource was not available: `generateParentCombinations` composes
|
|
22
|
+
* every URL from the primary scope plus every parent combination, so an application edge on
|
|
23
|
+
* `auditLogs` would rewrite the organization route rather than sit beside it. The reasoning is
|
|
24
|
+
* written out in full on the runtime configuration; this specification does not restate it.
|
|
25
|
+
*
|
|
26
|
+
* ## Two doors, ONE record set — and what that means for a reader of the reference
|
|
27
|
+
*
|
|
28
|
+
* Both resources resolve to the same `auditLogs` collection. So the isolation properties are a
|
|
29
|
+
* per-DOOR obligation rather than a property of the rows, and this door's obligations are the whole
|
|
30
|
+
* reason it is documented separately:
|
|
31
|
+
*
|
|
32
|
+
* - it is `APP_ADMIN_SUPER_ADMIN`-only on every operation, and an organization role can never reach
|
|
33
|
+
* it, because the rows behind it span every tenant;
|
|
34
|
+
* - every read here is a declared CROSS-TENANT read and emits `CROSS_TENANT_ADMINISTRATIVE_ACCESS`
|
|
35
|
+
* once per tenant the returned rows belong to, so the crossing is visible to the tenant that was
|
|
36
|
+
* reached and not only to the operator who reached it;
|
|
37
|
+
* - the reads are additionally gated on an application-wide access grant, which is requested,
|
|
38
|
+
* justified, time-bound and signed by a SECOND platform administrator. See
|
|
39
|
+
* `applicationAccessGrants`.
|
|
40
|
+
*
|
|
41
|
+
* ## Why there is no CREATE, and no write of any kind
|
|
42
|
+
*
|
|
43
|
+
* The organization resource carries a `REPOSITORY_ONLY` CREATE because that is how audit rows are
|
|
44
|
+
* appended. Writing is not a scope question, so the trail keeps exactly one writer and this door is
|
|
45
|
+
* read-only in every sense — there is no update, no delete, and no second append path.
|
|
46
|
+
*
|
|
47
|
+
* Why backend-only: no preset under `engine/presets-components/src/config/resources/` declares an
|
|
48
|
+
* entry for `[CoreResourceType.APPLICATION_AUDIT_LOGS]`. The operator-facing trail viewer is not
|
|
49
|
+
* built yet; today the resource is reached through the API and the generated reference.
|
|
50
|
+
*/
|
|
51
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
52
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
53
|
+
import { AuditableEvent_BaseSchema, AuditEventCategory, AuditEventSeverity, CoreResourceOperation as Op, ResourceOperationRiskLevel, ResourcePrimaryScope, applicationAuditLogsResourceConfiguration_InitializationFactory, } from '@wildo-ai/saas-models';
|
|
54
|
+
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
55
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
56
|
+
const APPLICATION_AUDIT_LOG_ID = 'audit_log_01JEXAMPLE';
|
|
57
|
+
const APPLICATION_AUDIT_TENANT_A_ID = 'organization_01JEXAMPLEA';
|
|
58
|
+
const APPLICATION_AUDIT_APPLICATION_ID = 'application_01JEXAMPLE';
|
|
59
|
+
/** A tenant-attributed row: reading it through this door is the crossing the trail records. */
|
|
60
|
+
const applicationAuditTenantEventExample = {
|
|
61
|
+
_id: APPLICATION_AUDIT_LOG_ID,
|
|
62
|
+
eventId: 'a5ad8e36-7f34-4f0e-a7f4-1454a7997721',
|
|
63
|
+
userId: 'user_01JEXAMPLE',
|
|
64
|
+
organizationId: APPLICATION_AUDIT_TENANT_A_ID,
|
|
65
|
+
applicationId: APPLICATION_AUDIT_APPLICATION_ID,
|
|
66
|
+
correlationId: 'request_01JEXAMPLE',
|
|
67
|
+
frontendServiceName: 'app',
|
|
68
|
+
clientInstanceId: 'client_instance_01JEXAMPLE',
|
|
69
|
+
riskLevel: ResourceOperationRiskLevel.HIGH,
|
|
70
|
+
eventType: 'organization.member.role.changed',
|
|
71
|
+
eventData: {
|
|
72
|
+
targetUserId: 'user_01JTARGET',
|
|
73
|
+
previousRoles: ['ORG_MEMBER'],
|
|
74
|
+
newRoles: ['ORG_ADMIN'],
|
|
75
|
+
},
|
|
76
|
+
eventCategory: AuditEventCategory.ORG_MANAGEMENT,
|
|
77
|
+
severity: AuditEventSeverity.WARNING,
|
|
78
|
+
createdAt: '2026-08-20T14:32:10.000Z',
|
|
79
|
+
updatedAt: '2026-08-20T14:32:10.000Z',
|
|
80
|
+
_version: 1,
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* The row shape this door exists for: a real security event carrying NO organization. It is
|
|
84
|
+
* unreachable through the organization door, which is the gap measured in #317.
|
|
85
|
+
*/
|
|
86
|
+
const applicationAuditUnattributedEventExample = {
|
|
87
|
+
_id: 'audit_log_01JEXAMPLEB',
|
|
88
|
+
eventId: '0f2c1b7e-6a51-4a2f-9d4b-7c1f0a3e5d92',
|
|
89
|
+
userId: 'user_01JEXAMPLE',
|
|
90
|
+
applicationId: APPLICATION_AUDIT_APPLICATION_ID,
|
|
91
|
+
correlationId: 'request_01JEXAMPLEB',
|
|
92
|
+
frontendServiceName: 'app',
|
|
93
|
+
riskLevel: ResourceOperationRiskLevel.MEDIUM,
|
|
94
|
+
eventType: 'user.login.succeeded',
|
|
95
|
+
eventData: { method: 'password', mfaMethodsCompleted: ['TOTP'] },
|
|
96
|
+
eventCategory: AuditEventCategory.AUTHENTICATION,
|
|
97
|
+
severity: AuditEventSeverity.INFO,
|
|
98
|
+
createdAt: '2026-08-20T14:29:44.000Z',
|
|
99
|
+
updatedAt: '2026-08-20T14:29:44.000Z',
|
|
100
|
+
_version: 1,
|
|
101
|
+
};
|
|
102
|
+
const APPLICATION_AUDIT_PAGE = {
|
|
103
|
+
data: [applicationAuditUnattributedEventExample, applicationAuditTenantEventExample],
|
|
104
|
+
pagination: { page: 1, limit: 20, total: 2, totalPages: 1 },
|
|
105
|
+
};
|
|
106
|
+
const APPLICATION_AUDIT_LIST_REQUEST = {
|
|
107
|
+
eventCategory: AuditEventCategory.AUTHENTICATION,
|
|
108
|
+
createdAt: {
|
|
109
|
+
startDate: '2026-08-20T00:00:00.000Z',
|
|
110
|
+
endDate: '2026-08-21T00:00:00.000Z',
|
|
111
|
+
},
|
|
112
|
+
page: 1,
|
|
113
|
+
limit: 20,
|
|
114
|
+
sort: 'createdAt:desc,eventId:desc',
|
|
115
|
+
};
|
|
116
|
+
export const applicationAuditLogsResourceSpecification = resourceSpecification(applicationAuditLogsResourceConfiguration_InitializationFactory, AuditableEvent_BaseSchema, ({ schemaShape }) => ({
|
|
117
|
+
purpose: 'Read the application-wide audit trail — every immutable security, access, administration and data event the deployment recorded, including the ones that belong to no single tenant.',
|
|
118
|
+
businessRole: 'The surface an operator, an incident responder or an auditor uses to attest the WHOLE trail. The organization door answers "what happened in my tenant"; this one answers "what happened at all", which is the only question a deployment-level attestation can be built from.',
|
|
119
|
+
lifecycleRole: 'Read-only in every sense. Events are appended by the application through the organization resource\'s internal write path, and are never updated or deleted. This door reads and filters them; it has no verb that changes a row.',
|
|
120
|
+
audience: LabelAudience.ADMIN,
|
|
121
|
+
subDomain: EngineResourceSubDomain.COMPLIANCE,
|
|
122
|
+
codeHandling: {
|
|
123
|
+
mainSchema: {
|
|
124
|
+
packageName: '@wildo-ai/saas-models',
|
|
125
|
+
exportName: 'AuditableEvent_BaseSchema',
|
|
126
|
+
symbolKind: CodeSymbolKind.SCHEMA,
|
|
127
|
+
declarationKind: CodeDeclarationKind.ZOD_SCHEMA,
|
|
128
|
+
},
|
|
129
|
+
resourceFactory: {
|
|
130
|
+
packageName: '@wildo-ai/saas-models',
|
|
131
|
+
exportName: 'applicationAuditLogsResourceConfiguration_InitializationFactory',
|
|
132
|
+
symbolKind: CodeSymbolKind.FACTORY,
|
|
133
|
+
declarationKind: CodeDeclarationKind.FUNCTION,
|
|
134
|
+
},
|
|
135
|
+
resourceType: {
|
|
136
|
+
enumDeclaration: {
|
|
137
|
+
packageName: '@wildo-ai/saas-models',
|
|
138
|
+
exportName: 'CoreResourceType',
|
|
139
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
140
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
141
|
+
},
|
|
142
|
+
memberName: 'APPLICATION_AUDIT_LOGS',
|
|
143
|
+
},
|
|
144
|
+
operationVocabulary: {
|
|
145
|
+
coreEnum: {
|
|
146
|
+
packageName: '@wildo-ai/saas-models',
|
|
147
|
+
exportName: 'CoreResourceOperation',
|
|
148
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
149
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
notes: [
|
|
153
|
+
'The schema is SHARED with `auditLogs` (`AuditableEvent_BaseSchema`) and the rows are literally the same rows, resolved through `RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES`. Two doors, one record set — so a field means exactly what it means on the organization resource, and the difference between the two surfaces is entirely in who may open them and what the trail records when they do.',
|
|
154
|
+
'Every read variant declares `admitsCrossTenantPlatformAdministration`. That declaration is not documentation: it is what ENROLS the read in `ServicesRegistryHandler.recordCrossTenantReadAccess`, and it is also what stops the initiator-organization confinement from silently narrowing this door to one tenant — which would make a surface documented as spanning every tenant return a subset and report success.',
|
|
155
|
+
'There is no `retentionPolicy` and `systemAccessPolicy.exportSubject` is FORBIDDEN, both mirrored from the organization door on purpose. They are properties of the ROWS, and a second door that disagreed about whether the monitoring trail is subject-exportable would be a policy fork over one record set.',
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
fields: {
|
|
159
|
+
eventType: schemaShape.eventType.stringSpec({
|
|
160
|
+
meaning: 'Stable event name identifying what happened, such as a role change or an authentication outcome.',
|
|
161
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
162
|
+
}),
|
|
163
|
+
eventId: schemaShape.eventId.stringSpec({
|
|
164
|
+
meaning: 'Stable identifier for the event itself. Use it to match the same event across API results, exports and configured external audit sinks.',
|
|
165
|
+
whyItMatters: 'Also the keyset tie-breaker behind this door\'s sort order. `createdAt` is not unique under boot and seed bursts, so paging without it can skip or repeat rows — which on an audit trail is silent evidence loss rather than a display glitch.',
|
|
166
|
+
}),
|
|
167
|
+
correlationId: schemaShape.correlationId.stringSpec({
|
|
168
|
+
meaning: 'Identifier shared by every event and operational record produced by one request or background execution.',
|
|
169
|
+
whyItMatters: 'The join an investigation actually uses. It reaches across tenants, so it is far more useful through this door than through the organization one, where the other half of a sequence may simply be invisible.',
|
|
170
|
+
}),
|
|
171
|
+
eventCategory: schemaShape.eventCategory.enumSpec({
|
|
172
|
+
meaning: 'High-level area for navigation, filters and export groupings, assigned by the service classifier when the event is recorded.',
|
|
173
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
174
|
+
enumDeclaration: {
|
|
175
|
+
packageName: '@wildo-ai/saas-models',
|
|
176
|
+
exportName: 'AuditEventCategory',
|
|
177
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
178
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
179
|
+
},
|
|
180
|
+
values: {
|
|
181
|
+
[AuditEventCategory.AUTHENTICATION]: { meaning: 'Sign-in, session and credential events. The category most likely to carry no organization, and therefore the one this door exists to make readable.' },
|
|
182
|
+
[AuditEventCategory.AUTHORIZATION]: { meaning: 'Access control and policy evaluation outcomes when classified here.' },
|
|
183
|
+
[AuditEventCategory.USER_LIFECYCLE]: { meaning: 'User profile and account lifecycle when classified here.' },
|
|
184
|
+
[AuditEventCategory.ORG_MANAGEMENT]: { meaning: 'Org structure, membership and org-scoped security configuration changes when classified here.' },
|
|
185
|
+
[AuditEventCategory.DATA_ACCESS]: { meaning: 'Sensitive or tracked data read, write and export when classified here.' },
|
|
186
|
+
},
|
|
187
|
+
}),
|
|
188
|
+
severity: schemaShape.severity.enumSpec({
|
|
189
|
+
meaning: 'Triage level for a record, assigned with `eventCategory` by the service classifier.',
|
|
190
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
191
|
+
enumDeclaration: {
|
|
192
|
+
packageName: '@wildo-ai/saas-models',
|
|
193
|
+
exportName: 'AuditEventSeverity',
|
|
194
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
195
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
196
|
+
},
|
|
197
|
+
values: {
|
|
198
|
+
[AuditEventSeverity.INFO]: { meaning: 'Normal operational or informational records.' },
|
|
199
|
+
[AuditEventSeverity.WARNING]: { meaning: 'Notable but not always urgent — worth review when scanning.' },
|
|
200
|
+
[AuditEventSeverity.CRITICAL]: { meaning: 'Escalation-tier events in triage and export filters.' },
|
|
201
|
+
},
|
|
202
|
+
}),
|
|
203
|
+
userId: schemaShape.userId.stringSpec({
|
|
204
|
+
meaning: 'Acting user when known; empty for system-only events.',
|
|
205
|
+
}),
|
|
206
|
+
organizationId: schemaShape.organizationId.foreignKeySpec({
|
|
207
|
+
meaning: 'The `organizations` record that owns the tenant context of this event, when one does.',
|
|
208
|
+
whyItMatters: 'Filterable here, and its ABSENCE is the point of this resource: a row with no `organizationId` is reachable through no organization route, so before this door existed it could be written and never read. Narrowing by it is an investigative convenience and never an isolation boundary — the boundary on this door is the role gate plus the application-wide grant, and a read narrowed to one tenant is still a cross-tenant read for audit purposes.',
|
|
209
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
210
|
+
}),
|
|
211
|
+
applicationId: schemaShape.applicationId.foreignKeySpec({
|
|
212
|
+
meaning: 'The `applications` record this event belongs to — the scope anchor for this door.',
|
|
213
|
+
importance: FieldSemanticImportance.CONTEXTUAL,
|
|
214
|
+
}),
|
|
215
|
+
frontendServiceName: schemaShape.frontendServiceName.stringSpec({
|
|
216
|
+
meaning: 'Frontend surface the action originated from, when the event came from an interactive request. Absent for background or internal activity.',
|
|
217
|
+
}),
|
|
218
|
+
clientInstanceId: schemaShape.clientInstanceId.stringSpec({
|
|
219
|
+
meaning: 'Optional pseudonymous browser or device-install identifier, used to group activity across sessions when client-instance collection is enabled for the application.',
|
|
220
|
+
whyItMatters: 'One of the few ways to follow one actor across tenants and across sessions, which is exactly the shape of investigation this door serves.',
|
|
221
|
+
}),
|
|
222
|
+
eventData: schemaShape.eventData.objectSpec({
|
|
223
|
+
meaning: 'Event-specific JSON details. Its keys depend on `eventType`; clients must not assume one payload shape across all event types.',
|
|
224
|
+
}),
|
|
225
|
+
riskLevel: schemaShape.riskLevel.enumSpec({
|
|
226
|
+
meaning: 'Resource-operation risk tier for the action that produced this record, when the classifier can map it.',
|
|
227
|
+
enumDeclaration: {
|
|
228
|
+
packageName: '@wildo-ai/saas-models',
|
|
229
|
+
exportName: 'ResourceOperationRiskLevel',
|
|
230
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
231
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
232
|
+
},
|
|
233
|
+
values: {
|
|
234
|
+
[ResourceOperationRiskLevel.LOW]: { meaning: 'Low-impact action that still warrants audit in policy.' },
|
|
235
|
+
[ResourceOperationRiskLevel.MEDIUM]: { meaning: 'Moderate risk — policy-sensitive changes or data movement.' },
|
|
236
|
+
[ResourceOperationRiskLevel.HIGH]: { meaning: 'High impact — should stand out in review queues.' },
|
|
237
|
+
[ResourceOperationRiskLevel.CRITICAL]: { meaning: 'Maximum tier — may trigger paging or runbooks when surfaced to operators.' },
|
|
238
|
+
},
|
|
239
|
+
}),
|
|
240
|
+
createdAt: schemaShape.createdAt.dateSpec({
|
|
241
|
+
meaning: 'When the auditable event was recorded.',
|
|
242
|
+
}),
|
|
243
|
+
},
|
|
244
|
+
operations: {
|
|
245
|
+
[Op.READ]: {
|
|
246
|
+
purpose: 'Read one immutable audit event by id, from anywhere in the deployment.',
|
|
247
|
+
outcome: 'The event\'s classification, actor and origin identifiers, timestamp, risk tier and event-specific details are returned, whether or not it belongs to a tenant.',
|
|
248
|
+
responseStatuses: [
|
|
249
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The audit event was found and is returned. If the row carries an `organizationId`, the read has just been recorded as a cross-tenant access against that tenant.' },
|
|
250
|
+
],
|
|
251
|
+
errorScenarios: [
|
|
252
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or holds no usable application-wide access grant. An organization role never reaches this door, however senior it is within its own tenant.' },
|
|
253
|
+
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No audit event exists for the supplied id.' },
|
|
254
|
+
],
|
|
255
|
+
idempotent: true,
|
|
256
|
+
examples: [{
|
|
257
|
+
title: 'Inspect a sign-in event that belongs to no organization',
|
|
258
|
+
request: { applicationAuditLogId: 'audit_log_01JEXAMPLEB' },
|
|
259
|
+
response: applicationAuditUnattributedEventExample,
|
|
260
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
261
|
+
}],
|
|
262
|
+
},
|
|
263
|
+
[Op.LIST]: {
|
|
264
|
+
purpose: 'List the deployment\'s audit events newest-first, optionally narrowing by classification, actor, tenant, correlation, client instance or time window.',
|
|
265
|
+
outcome: 'A paginated page of matching events is returned, up to 100 records per page, spanning every tenant and including events that carry none.',
|
|
266
|
+
responseStatuses: [
|
|
267
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) newest-first page of audit events. One cross-tenant access event is recorded per distinct tenant represented in the page.' },
|
|
268
|
+
],
|
|
269
|
+
errorScenarios: [
|
|
270
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or holds no usable application-wide access grant.' },
|
|
271
|
+
],
|
|
272
|
+
idempotent: true,
|
|
273
|
+
examples: [{
|
|
274
|
+
title: 'Review a window of authentication events across the whole deployment',
|
|
275
|
+
request: APPLICATION_AUDIT_LIST_REQUEST,
|
|
276
|
+
response: APPLICATION_AUDIT_PAGE,
|
|
277
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
278
|
+
}],
|
|
279
|
+
},
|
|
280
|
+
[Op.SEARCH]: {
|
|
281
|
+
purpose: 'Filter the deployment-wide audit trail by structured fields. This operation does not perform free-text search.',
|
|
282
|
+
outcome: 'A paginated page of events matching every supplied filter is returned.',
|
|
283
|
+
responseStatuses: [
|
|
284
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of audit events matching the supplied category, severity, actor, tenant and time-window filters.' },
|
|
285
|
+
],
|
|
286
|
+
errorScenarios: [
|
|
287
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or holds no usable application-wide access grant.' },
|
|
288
|
+
],
|
|
289
|
+
idempotent: true,
|
|
290
|
+
examples: [{
|
|
291
|
+
title: 'Follow one actor across every tenant they touched',
|
|
292
|
+
request: {
|
|
293
|
+
userId: applicationAuditTenantEventExample.userId,
|
|
294
|
+
createdAt: APPLICATION_AUDIT_LIST_REQUEST.createdAt,
|
|
295
|
+
limit: 100,
|
|
296
|
+
sort: 'createdAt:desc',
|
|
297
|
+
},
|
|
298
|
+
response: {
|
|
299
|
+
...APPLICATION_AUDIT_PAGE,
|
|
300
|
+
pagination: { ...APPLICATION_AUDIT_PAGE.pagination, limit: 100 },
|
|
301
|
+
},
|
|
302
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
303
|
+
}],
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
businessConstraints: [
|
|
307
|
+
'This door reads across every tenant, so it carries the two controls the organization door does not need. Access is restricted to application super administrators AND gated on a usable `applicationAccessGrants` elevation — requested with a stated reason, time-bound, and approved by a SECOND platform administrator who is never the requester. The narrow per-tenant crossing is approved by the tenant it names; an application-wide read names no tenant, so a second signature is the strongest control that exists for it.',
|
|
308
|
+
'Every read is recorded. `CROSS_TENANT_ADMINISTRATIVE_ACCESS` is emitted once per tenant whose rows were returned, and lands in that tenant\'s own organization-scoped trail — so a customer can see that an operator read their events, in the surface they already use. Making an operator read invisible on the audit trail would be the worst possible place to do it.',
|
|
309
|
+
'Nothing here writes. Audit events cannot be created, updated or deleted through this resource; a correction or reversal is represented by a new event appended through the application\'s own internal write path, which stays the single writer of the trail.',
|
|
310
|
+
'A row with no `organizationId` is not an anomaly and must not be treated as one. Login, session eviction, token refresh and application-wide policy changes all legitimately happen outside any tenant selection, and on a measured dogfood application they were the majority of the trail.',
|
|
311
|
+
],
|
|
312
|
+
}),
|
|
313
|
+
// Mirrors the registry-derived value: the `APPLICATION → APPLICATION_AUDIT_LOGS` relationship
|
|
314
|
+
// carries `isPrimaryScope: true`, so the runtime derives APPLICATION and the spec must agree.
|
|
315
|
+
{ resourcePrimaryScope: ResourcePrimaryScope.APPLICATION });
|
|
316
|
+
//# sourceMappingURL=application-audit-logs.resource.specification.js.map
|
package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-audit-logs.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/application-audit-logs.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,+DAA+D,GAChE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AACxD,MAAM,6BAA6B,GAAG,0BAA0B,CAAC;AACjE,MAAM,gCAAgC,GAAG,wBAAwB,CAAC;AAElE,+FAA+F;AAC/F,MAAM,kCAAkC,GAAG;IACzC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ACjE;oBACD,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;IAED,mBAAmB,EAAE;QACnB,ugBAAugB;QACvgB,2WAA2W;QAC3W,gQAAgQ;QAChQ,8RAA8R;KAC/R;CACF,CAAC;AACF,8FAA8F;AAC9F,8FAA8F;AAC9F,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `applicationAuditLogs` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/compliance/audit-trails/auditable-events.shared.schema.ts\n * → `AuditableEvent_BaseSchema`\n * - Factory: engine/saas-models/src/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.ts\n * → `applicationAuditLogsResourceConfiguration_InitializationFactory`\n * - Custom operations: none.\n *\n * ## Why this exists BESIDE `auditLogs` rather than inside it\n *\n * `auditLogs` is organization-scoped and its only route is\n * `/organizations/{organizationId}/audit-logs`, so it returns exactly the rows carrying that\n * tenant. A large share of security events carry no organization by design — login, session\n * eviction, token refresh and application-wide authentication-policy changes all happen before or\n * outside a tenant selection. Measured on a dogfood application (#317): **94 of 127 rows had no\n * organization**, and were reachable through no API at all. An operator could see 26% of the trail\n * and could not attest the rest.\n *\n * A second ROUTE on the same resource was not available: `generateParentCombinations` composes\n * every URL from the primary scope plus every parent combination, so an application edge on\n * `auditLogs` would rewrite the organization route rather than sit beside it. The reasoning is\n * written out in full on the runtime configuration; this specification does not restate it.\n *\n * ## Two doors, ONE record set — and what that means for a reader of the reference\n *\n * Both resources resolve to the same `auditLogs` collection. So the isolation properties are a\n * per-DOOR obligation rather than a property of the rows, and this door's obligations are the whole\n * reason it is documented separately:\n *\n * - it is `APP_ADMIN_SUPER_ADMIN`-only on every operation, and an organization role can never reach\n * it, because the rows behind it span every tenant;\n * - every read here is a declared CROSS-TENANT read and emits `CROSS_TENANT_ADMINISTRATIVE_ACCESS`\n * once per tenant the returned rows belong to, so the crossing is visible to the tenant that was\n * reached and not only to the operator who reached it;\n * - the reads are additionally gated on an application-wide access grant, which is requested,\n * justified, time-bound and signed by a SECOND platform administrator. See\n * `applicationAccessGrants`.\n *\n * ## Why there is no CREATE, and no write of any kind\n *\n * The organization resource carries a `REPOSITORY_ONLY` CREATE because that is how audit rows are\n * appended. Writing is not a scope question, so the trail keeps exactly one writer and this door is\n * read-only in every sense — there is no update, no delete, and no second append path.\n *\n * Why backend-only: no preset under `engine/presets-components/src/config/resources/` declares an\n * entry for `[CoreResourceType.APPLICATION_AUDIT_LOGS]`. The operator-facing trail viewer is not\n * built yet; today the resource is reached through the API and the generated reference.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AuditableEvent_BaseSchema,\n AuditEventCategory,\n AuditEventSeverity,\n CoreResourceOperation as Op,\n ResourceOperationRiskLevel,\n ResourcePrimaryScope,\n applicationAuditLogsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_AUDIT_LOG_ID = 'audit_log_01JEXAMPLE';\nconst APPLICATION_AUDIT_TENANT_A_ID = 'organization_01JEXAMPLEA';\nconst APPLICATION_AUDIT_APPLICATION_ID = 'application_01JEXAMPLE';\n\n/** A tenant-attributed row: reading it through this door is the crossing the trail records. */\nconst applicationAuditTenantEventExample = {\n _id: APPLICATION_AUDIT_LOG_ID,\n eventId: 'a5ad8e36-7f34-4f0e-a7f4-1454a7997721',\n userId: 'user_01JEXAMPLE',\n organizationId: APPLICATION_AUDIT_TENANT_A_ID,\n applicationId: APPLICATION_AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLE',\n frontendServiceName: 'app',\n clientInstanceId: 'client_instance_01JEXAMPLE',\n riskLevel: ResourceOperationRiskLevel.HIGH,\n eventType: 'organization.member.role.changed',\n eventData: {\n targetUserId: 'user_01JTARGET',\n previousRoles: ['ORG_MEMBER'],\n newRoles: ['ORG_ADMIN'],\n },\n eventCategory: AuditEventCategory.ORG_MANAGEMENT,\n severity: AuditEventSeverity.WARNING,\n createdAt: '2026-08-20T14:32:10.000Z',\n updatedAt: '2026-08-20T14:32:10.000Z',\n _version: 1,\n} as const;\n\n/**\n * The row shape this door exists for: a real security event carrying NO organization. It is\n * unreachable through the organization door, which is the gap measured in #317.\n */\nconst applicationAuditUnattributedEventExample = {\n _id: 'audit_log_01JEXAMPLEB',\n eventId: '0f2c1b7e-6a51-4a2f-9d4b-7c1f0a3e5d92',\n userId: 'user_01JEXAMPLE',\n applicationId: APPLICATION_AUDIT_APPLICATION_ID,\n correlationId: 'request_01JEXAMPLEB',\n frontendServiceName: 'app',\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n eventType: 'user.login.succeeded',\n eventData: { method: 'password', mfaMethodsCompleted: ['TOTP'] },\n eventCategory: AuditEventCategory.AUTHENTICATION,\n severity: AuditEventSeverity.INFO,\n createdAt: '2026-08-20T14:29:44.000Z',\n updatedAt: '2026-08-20T14:29:44.000Z',\n _version: 1,\n} as const;\n\nconst APPLICATION_AUDIT_PAGE = {\n data: [applicationAuditUnattributedEventExample, applicationAuditTenantEventExample],\n pagination: { page: 1, limit: 20, total: 2, totalPages: 1 },\n} as const;\n\nconst APPLICATION_AUDIT_LIST_REQUEST = {\n eventCategory: AuditEventCategory.AUTHENTICATION,\n createdAt: {\n startDate: '2026-08-20T00:00:00.000Z',\n endDate: '2026-08-21T00:00:00.000Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc,eventId:desc',\n} as const;\n\nexport const applicationAuditLogsResourceSpecification = resourceSpecification(\n applicationAuditLogsResourceConfiguration_InitializationFactory,\n AuditableEvent_BaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Read the application-wide audit trail — every immutable security, access, administration and data event the deployment recorded, including the ones that belong to no single tenant.',\n businessRole: 'The surface an operator, an incident responder or an auditor uses to attest the WHOLE trail. The organization door answers \"what happened in my tenant\"; this one answers \"what happened at all\", which is the only question a deployment-level attestation can be built from.',\n lifecycleRole: 'Read-only in every sense. Events are appended by the application through the organization resource\\'s internal write path, and are never updated or deleted. This door reads and filters them; it has no verb that changes a row.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditableEvent_BaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationAuditLogsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_AUDIT_LOGS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'The schema is SHARED with `auditLogs` (`AuditableEvent_BaseSchema`) and the rows are literally the same rows, resolved through `RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES`. Two doors, one record set — so a field means exactly what it means on the organization resource, and the difference between the two surfaces is entirely in who may open them and what the trail records when they do.',\n 'Every read variant declares `admitsCrossTenantPlatformAdministration`. That declaration is not documentation: it is what ENROLS the read in `ServicesRegistryHandler.recordCrossTenantReadAccess`, and it is also what stops the initiator-organization confinement from silently narrowing this door to one tenant — which would make a surface documented as spanning every tenant return a subset and report success.',\n 'There is no `retentionPolicy` and `systemAccessPolicy.exportSubject` is FORBIDDEN, both mirrored from the organization door on purpose. They are properties of the ROWS, and a second door that disagreed about whether the monitoring trail is subject-exportable would be a policy fork over one record set.',\n ],\n },\n\n fields: {\n eventType: schemaShape.eventType.stringSpec({\n meaning: 'Stable event name identifying what happened, such as a role change or an authentication outcome.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({\n meaning: 'Stable identifier for the event itself. Use it to match the same event across API results, exports and configured external audit sinks.',\n whyItMatters: 'Also the keyset tie-breaker behind this door\\'s sort order. `createdAt` is not unique under boot and seed bursts, so paging without it can skip or repeat rows — which on an audit trail is silent evidence loss rather than a display glitch.',\n }),\n correlationId: schemaShape.correlationId.stringSpec({\n meaning: 'Identifier shared by every event and operational record produced by one request or background execution.',\n whyItMatters: 'The join an investigation actually uses. It reaches across tenants, so it is far more useful through this door than through the organization one, where the other half of a sequence may simply be invisible.',\n }),\n eventCategory: schemaShape.eventCategory.enumSpec({\n meaning: 'High-level area for navigation, filters and export groupings, assigned by the service classifier when the event is recorded.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventCategory',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventCategory.AUTHENTICATION]: { meaning: 'Sign-in, session and credential events. The category most likely to carry no organization, and therefore the one this door exists to make readable.' },\n [AuditEventCategory.AUTHORIZATION]: { meaning: 'Access control and policy evaluation outcomes when classified here.' },\n [AuditEventCategory.USER_LIFECYCLE]: { meaning: 'User profile and account lifecycle when classified here.' },\n [AuditEventCategory.ORG_MANAGEMENT]: { meaning: 'Org structure, membership and org-scoped security configuration changes when classified here.' },\n [AuditEventCategory.DATA_ACCESS]: { meaning: 'Sensitive or tracked data read, write and export when classified here.' },\n },\n }),\n severity: schemaShape.severity.enumSpec({\n meaning: 'Triage level for a record, assigned with `eventCategory` by the service classifier.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuditEventSeverity',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuditEventSeverity.INFO]: { meaning: 'Normal operational or informational records.' },\n [AuditEventSeverity.WARNING]: { meaning: 'Notable but not always urgent — worth review when scanning.' },\n [AuditEventSeverity.CRITICAL]: { meaning: 'Escalation-tier events in triage and export filters.' },\n },\n }),\n userId: schemaShape.userId.stringSpec({\n meaning: 'Acting user when known; empty for system-only events.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The `organizations` record that owns the tenant context of this event, when one does.',\n whyItMatters: 'Filterable here, and its ABSENCE is the point of this resource: a row with no `organizationId` is reachable through no organization route, so before this door existed it could be written and never read. Narrowing by it is an investigative convenience and never an isolation boundary — the boundary on this door is the role gate plus the application-wide grant, and a read narrowed to one tenant is still a cross-tenant read for audit purposes.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The `applications` record this event belongs to — the scope anchor for this door.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n frontendServiceName: schemaShape.frontendServiceName.stringSpec({\n meaning: 'Frontend surface the action originated from, when the event came from an interactive request. Absent for background or internal activity.',\n }),\n clientInstanceId: schemaShape.clientInstanceId.stringSpec({\n meaning: 'Optional pseudonymous browser or device-install identifier, used to group activity across sessions when client-instance collection is enabled for the application.',\n whyItMatters: 'One of the few ways to follow one actor across tenants and across sessions, which is exactly the shape of investigation this door serves.',\n }),\n eventData: schemaShape.eventData.objectSpec({\n meaning: 'Event-specific JSON details. Its keys depend on `eventType`; clients must not assume one payload shape across all event types.',\n }),\n riskLevel: schemaShape.riskLevel.enumSpec({\n meaning: 'Resource-operation risk tier for the action that produced this record, when the classifier can map it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ResourceOperationRiskLevel',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ResourceOperationRiskLevel.LOW]: { meaning: 'Low-impact action that still warrants audit in policy.' },\n [ResourceOperationRiskLevel.MEDIUM]: { meaning: 'Moderate risk — policy-sensitive changes or data movement.' },\n [ResourceOperationRiskLevel.HIGH]: { meaning: 'High impact — should stand out in review queues.' },\n [ResourceOperationRiskLevel.CRITICAL]: { meaning: 'Maximum tier — may trigger paging or runbooks when surfaced to operators.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the auditable event was recorded.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one immutable audit event by id, from anywhere in the deployment.',\n outcome: 'The event\\'s classification, actor and origin identifiers, timestamp, risk tier and event-specific details are returned, whether or not it belongs to a tenant.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The audit event was found and is returned. If the row carries an `organizationId`, the read has just been recorded as a cross-tenant access against that tenant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or holds no usable application-wide access grant. An organization role never reaches this door, however senior it is within its own tenant.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No audit event exists for the supplied id.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect a sign-in event that belongs to no organization',\n request: { applicationAuditLogId: 'audit_log_01JEXAMPLEB' },\n response: applicationAuditUnattributedEventExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List the deployment\\'s audit events newest-first, optionally narrowing by classification, actor, tenant, correlation, client instance or time window.',\n outcome: 'A paginated page of matching events is returned, up to 100 records per page, spanning every tenant and including events that carry none.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) newest-first page of audit events. One cross-tenant access event is recorded per distinct tenant represented in the page.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or holds no usable application-wide access grant.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Review a window of authentication events across the whole deployment',\n request: APPLICATION_AUDIT_LIST_REQUEST,\n response: APPLICATION_AUDIT_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.SEARCH]: {\n purpose: 'Filter the deployment-wide audit trail by structured fields. This operation does not perform free-text search.',\n outcome: 'A paginated page of events matching every supplied filter is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of audit events matching the supplied category, severity, actor, tenant and time-window filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super administrator, or holds no usable application-wide access grant.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Follow one actor across every tenant they touched',\n request: {\n userId: applicationAuditTenantEventExample.userId,\n createdAt: APPLICATION_AUDIT_LIST_REQUEST.createdAt,\n limit: 100,\n sort: 'createdAt:desc',\n },\n response: {\n ...APPLICATION_AUDIT_PAGE,\n pagination: { ...APPLICATION_AUDIT_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'This door reads across every tenant, so it carries the two controls the organization door does not need. Access is restricted to application super administrators AND gated on a usable `applicationAccessGrants` elevation — requested with a stated reason, time-bound, and approved by a SECOND platform administrator who is never the requester. The narrow per-tenant crossing is approved by the tenant it names; an application-wide read names no tenant, so a second signature is the strongest control that exists for it.',\n 'Every read is recorded. `CROSS_TENANT_ADMINISTRATIVE_ACCESS` is emitted once per tenant whose rows were returned, and lands in that tenant\\'s own organization-scoped trail — so a customer can see that an operator read their events, in the surface they already use. Making an operator read invisible on the audit trail would be the worst possible place to do it.',\n 'Nothing here writes. Audit events cannot be created, updated or deleted through this resource; a correction or reversal is represented by a new event appended through the application\\'s own internal write path, which stays the single writer of the trail.',\n 'A row with no `organizationId` is not an anomaly and must not be treated as one. Login, session eviction, token refresh and application-wide policy changes all legitimately happen outside any tenant selection, and on a measured dogfood application they were the majority of the trail.',\n ],\n }),\n // Mirrors the registry-derived value: the `APPLICATION → APPLICATION_AUDIT_LOGS` relationship\n // carries `isPrimaryScope: true`, so the runtime derives APPLICATION and the spec must agree.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-logs.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"audit-logs.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/audit-logs.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAE3B,0BAA0B,EAC1B,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AA4F/B,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;iCA4U1C,CAAC"}
|