@wildo-ai/saas-specifications 1.1.10 → 1.1.12
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/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +1 -1
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +5 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity-validation.js +13 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +5 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +34 -40
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +26 -2
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +20 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +20 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +1 -1
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +4 -4
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -4
- package/dist/esm/_core/brand/brand-audience.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +8 -4
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js +11 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +4 -4
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +25 -22
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +6 -4
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +25 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.js +77 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts +34 -32
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +67 -35
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.js +65 -8
- package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +14 -14
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +27 -9
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts +52 -0
- package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts.map +1 -0
- package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js +325 -0
- package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js.map +1 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +225 -108
- 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 +39 -2
- 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 +112 -8
- 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 +249 -12
- 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 +506 -344
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +425 -13
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +11 -4
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +2 -2
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +5 -21
- 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 +16 -6
- 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 +12 -5
- 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 +32 -9
- 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 +30 -5
- 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-lite-snapshot.schemas.js +28 -2
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +6 -5
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +19 -9
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +12 -33
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.d.ts +19 -3
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.js +7 -3
- package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +0 -298
- 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-set.schemas.d.ts +1 -6
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +3 -619
- 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 +14 -2
- 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 +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +60 -7
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +137 -12
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts +0 -32
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +2 -2
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +50 -12
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +166 -13
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +35 -148
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +2 -24
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +18 -2
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +4 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +6 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts +26 -0
- package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js +44 -0
- package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts +34 -0
- package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts.map +1 -0
- package/dist/esm/_core/compliance-posture/compliance-posture-validation.js +47 -0
- package/dist/esm/_core/compliance-posture/compliance-posture-validation.js.map +1 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts +4 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js +19 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js.map +1 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts +88 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js +78 -0
- package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js +2 -2
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts +2 -0
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.js +10 -1
- package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
- package/dist/esm/_core/definition-specification-validators.d.ts +2 -3
- package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification-validators.js +2 -3
- package/dist/esm/_core/definition-specification-validators.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +44 -19
- 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-generation.schemas.js +75 -2
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +93 -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-validation.js +369 -2
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +412 -5
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +429 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +18 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +88 -2
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.js +2 -2
- package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +20 -9
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +3 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +25 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.js +57 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +23 -4
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +96 -131
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +144 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +2 -2
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +15 -8
- 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 +13 -6
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +4 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +12 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js +11 -0
- 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 +37 -53
- 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.schemas.d.ts +59 -59
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +0 -14
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-specification.schemas.js +5 -4
- package/dist/esm/_core/feature-specification.schemas.js.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.js +2 -2
- package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.js +2 -2
- package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +1 -3
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +10 -12
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +12 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +12 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +8 -4
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +19 -51
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +29 -10
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts +5 -5
- package/dist/esm/_core/market/market-alternative.schemas.d.ts +3 -3
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +4 -4
- package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-channel.schemas.d.ts +5 -5
- package/dist/esm/_core/market/market-gain.schemas.d.ts +3 -3
- package/dist/esm/_core/market/market-icp.schemas.d.ts +11 -11
- package/dist/esm/_core/market/market-job.schemas.d.ts +3 -3
- package/dist/esm/_core/market/market-message-template.schemas.d.ts +4 -4
- package/dist/esm/_core/market/market-objection.schemas.d.ts +3 -3
- package/dist/esm/_core/market/market-pain.schemas.d.ts +3 -3
- package/dist/esm/_core/market/market-persona.schemas.d.ts +4 -4
- package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-proof.schemas.d.ts +3 -3
- package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +13 -1
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +80 -106
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +3 -3
- package/dist/esm/_core/market/market-trigger.schemas.d.ts +3 -3
- package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/milestone-specification.schemas.js +5 -4
- package/dist/esm/_core/milestone-specification.schemas.js.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +0 -2
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -8
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +32 -27
- 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 +3 -3
- 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 +12 -2
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +42 -9
- 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.family-aspects.js +16 -4
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +84 -90
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +90 -13
- 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/product-specification.schemas.js +5 -4
- package/dist/esm/_core/product-specification.schemas.js.map +1 -1
- package/dist/esm/_core/required-features-specification.schemas.d.ts +1 -5
- package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/required-features-specification.schemas.js +1 -5
- package/dist/esm/_core/required-features-specification.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +6 -6
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +4 -4
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +0 -4
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +6 -15
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +2 -3
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +76 -18
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +168 -60
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +2 -2
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +3 -18
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -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 +2 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +3 -3
- package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/role-specification.schemas.js +5 -4
- package/dist/esm/_core/role-specification.schemas.js.map +1 -1
- package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
- package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-derivation.js +415 -0
- package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +87 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js +30 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts +45 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.js +102 -0
- package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts +356 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.js +416 -0
- package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
- package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/sidebar-section-specification.schemas.js +2 -2
- package/dist/esm/_core/sidebar-section-specification.schemas.js.map +1 -1
- package/dist/esm/_core/specification-definition-faults.d.ts +160 -0
- package/dist/esm/_core/specification-definition-faults.d.ts.map +1 -0
- package/dist/esm/_core/specification-definition-faults.js +283 -0
- package/dist/esm/_core/specification-definition-faults.js.map +1 -0
- package/dist/esm/_core/specification-module-faults.d.ts +271 -0
- package/dist/esm/_core/specification-module-faults.d.ts.map +1 -0
- package/dist/esm/_core/specification-module-faults.js +655 -0
- package/dist/esm/_core/specification-module-faults.js.map +1 -0
- package/dist/esm/_core/translation-glossary.schemas.d.ts +79 -0
- package/dist/esm/_core/translation-glossary.schemas.d.ts.map +1 -0
- package/dist/esm/_core/translation-glossary.schemas.js +98 -0
- package/dist/esm/_core/translation-glossary.schemas.js.map +1 -0
- package/dist/esm/_core/utils/extract-field-specs.d.ts +25 -0
- package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.js +6 -1
- package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +6 -4
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-constraint.schemas.js +4 -2
- package/dist/esm/_core/vision/vision-constraint.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts +15 -9
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +30 -20
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +31 -7
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts +24 -4
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.js +84 -7
- package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js +2 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +424 -120
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +687 -32
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +90 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +104 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +110 -127
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +122 -16
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts +22 -0
- package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js +23 -0
- package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts +50 -0
- package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js +33 -0
- package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +57 -41
- 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 +22 -4
- 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 +3 -11
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +206 -10
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +226 -9
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +42 -41
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +79 -23
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -2
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +13 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +15 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +0 -12
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts +1 -9
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-register.schemas.d.ts +10 -73
- package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +34 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.js +45 -1
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
- package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
- package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
- package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +632 -19
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +3000 -1063
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +27 -22
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +168 -29
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +34 -112
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +121 -114
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +142 -7
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1746 -116
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +0 -11
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +354 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +422 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +886 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +61 -182
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +180 -22
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program-obligation-standing.d.ts +107 -0
- package/dist/esm/assurance/assurance-program-obligation-standing.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program-obligation-standing.js +153 -0
- package/dist/esm/assurance/assurance-program-obligation-standing.js.map +1 -0
- package/dist/esm/assurance/assurance-program.schemas.d.ts +373 -1165
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +267 -18
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +277 -23
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +246 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +84 -24
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
- package/dist/esm/assurance/assurance-sources.schemas.js.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 +372 -17
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
- package/dist/esm/assurance/governed-document-release.d.ts +15 -1
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +10 -4
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/assurance.exports.d.ts +5 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +5 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +39 -3
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +61 -0
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +16 -16
- 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 +37 -11
- 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 +3 -3
- 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 +10 -13
- 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 +19 -19
- 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 +64 -12
- 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 +4 -4
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
- 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 +7 -6
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +7 -7
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +20 -12
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +51 -14
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts +26 -0
- package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js +112 -0
- package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +4 -4
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/index.d.ts +0 -2
- package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/index.js +0 -2
- package/dist/esm/engine/auth/resources/index.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +13 -12
- 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 +15 -4
- 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 +16 -16
- 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 +44 -17
- 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 +20 -20
- 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 +48 -9
- 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 +25 -21
- 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 +44 -12
- 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 +20 -14
- 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 +73 -20
- 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 +22 -22
- 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 +15 -14
- 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 +9 -8
- 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 +20 -16
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +40 -40
- 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 +135 -16
- 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 +108 -108
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +80 -20
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts +17 -0
- package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js +85 -0
- package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +21 -19
- 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 +14 -10
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +14 -12
- 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 +4 -2
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +20 -20
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +22 -20
- 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 +9 -8
- 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 +8 -8
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +11 -10
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +16 -16
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +11 -10
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts +11 -11
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +31 -29
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +22 -21
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -6
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +48 -48
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +112 -26
- 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 +30 -26
- 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 +5 -2
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +37 -25
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +50 -12
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +78 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +213 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +33 -23
- 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 +61 -21
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts +39 -0
- package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js +533 -0
- package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +2 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +21 -16
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +17 -6
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +13 -11
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +9 -1
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts +27 -0
- package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-dlq.resource.specification.js +24 -19
- package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.js +1 -1
- package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.d.ts +18 -18
- package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.js +2 -2
- package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts +45 -0
- package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js +224 -0
- package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +1 -1
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +3 -2
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.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 +82 -20
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +7 -3
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.js +8 -4
- 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 +359 -5
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
- 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/custom-branding.feature.specification.js +7 -3
- package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/index.d.ts +4 -2
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/index.js +6 -4
- package/dist/esm/engine/features/index.js.map +1 -1
- package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js +1 -1
- package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +7 -7
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +8 -8
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +7 -7
- 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 +37 -18
- 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 +7 -7
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -4
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts +27 -24
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +30 -8
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +30 -30
- 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 +32 -4
- 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 +18 -18
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +7 -7
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +97 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +229 -178
- 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 +126 -22
- 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 +60 -54
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +23 -8
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +240 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.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-bar.frontend-component.specification.js +9 -3
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
- 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-prompt-input.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.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-canvas.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.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-node.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
- 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 +7 -5
- 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-document-acceptance-gate.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.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-main-container.frontend-component.specification.js +2 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.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/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.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/badge.frontend-component.specification.js +7 -0
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.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-decision.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.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-multiple.frontend-component.specification.js +1 -0
- package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.js.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/combobox.frontend-component.specification.js +3 -0
- package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.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/date-range-picker.frontend-component.specification.js +4 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.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/datepicker.frontend-component.specification.js +4 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.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-picker.frontend-component.specification.js +4 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.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/datetime-range-picker.frontend-component.specification.js +4 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.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-picker.frontend-component.specification.js +3 -0
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.js.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/date-time/time-range-picker.frontend-component.specification.js +4 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.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-multiple.frontend-component.specification.js +3 -0
- package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.js.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/select.frontend-component.specification.js +1 -0
- package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.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-group.frontend-component.specification.js +1 -0
- package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.js.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/input.frontend-component.specification.js +1 -0
- package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
- 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/color-input.frontend-component.specification.js +3 -0
- package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.js.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/input-otp.frontend-component.specification.js +3 -0
- package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.js.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/markdown-editor.frontend-component.specification.js +3 -0
- package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.js.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/controls/string/textarea.frontend-component.specification.js +3 -0
- package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js.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-flows-actors.frontend-component.specification.js +5 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +6 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +26 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.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/user-dropdown.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.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-empty-state.frontend-component.specification.js +12 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.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-list.frontend-component.specification.js +7 -3
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js.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-read.frontend-component.specification.js +1 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +5 -3
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +16 -14
- 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 +4 -4
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +18 -16
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +20 -18
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
- 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 +6 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.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 +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js +155 -0
- package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js +155 -0
- package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +37 -19
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +14 -14
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +15 -15
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +45 -16
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +183 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +52 -50
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +18 -10
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +86 -53
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +78 -17
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +85 -83
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +59 -55
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +30 -26
- 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 +38 -20
- 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 +12 -14
- 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 +0 -2
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts +56 -0
- package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js +277 -0
- package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +20 -16
- 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 +13 -8
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +1 -3
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +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/organization.system-emails.specification.js +25 -15
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +1 -2
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts +33 -0
- package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js +195 -0
- package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +19 -18
- 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 +129 -64
- 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 +7 -7
- 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 +5 -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 +13 -13
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +12 -11
- 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 +10 -7
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts +128 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +653 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +9 -9
- 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 +15 -17
- 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 +14 -14
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +5 -5
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +18 -13
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +111 -43
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js +18 -3
- 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 +6 -2
- package/dist/esm/engine/providers/apple.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 +18 -7
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js +48 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/google-places.provider.specification.js +5 -2
- package/dist/esm/engine/providers/google-places.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 +8 -2
- 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 +14 -3
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/index.d.ts +2 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -1
- package/dist/esm/engine/providers/index.js +5 -1
- package/dist/esm/engine/providers/index.js.map +1 -1
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +55 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +26 -3
- 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 +20 -5
- 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 +30 -3
- package/dist/esm/engine/providers/openai.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 +13 -2
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/recaptcha.provider.specification.js +8 -3
- package/dist/esm/engine/providers/recaptcha.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 +27 -10
- 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 +19 -3
- 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 +21 -6
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/index.d.ts +8 -7
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +13 -10
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +13 -12
- 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 +7 -5
- 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 +12 -12
- 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 +4 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -3
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +15 -15
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
- 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 +17 -17
- 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 +13 -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 +2 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +4 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +25 -20
- 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 +8 -8
- 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 +8 -8
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +3 -3
- 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 +25 -20
- 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 +7 -2
- 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 +8 -8
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +2 -2
- 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 +11 -9
- 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 +46 -7
- 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 +3 -0
- package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users-api-reference.examples.js +3 -0
- package/dist/esm/engine/users/resources/users-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +12 -10
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +26 -15
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +63 -29
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +75 -11
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +2 -2
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +2 -30
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +2 -2
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.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 +51 -24
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts +0 -31
- 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 +0 -11
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts +0 -20
- 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 +0 -3
- 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 +0 -24
- 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 +0 -12
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts +0 -35
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +0 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +0 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +0 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +0 -106
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
- /package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.d.ts +0 -0
package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-call-attributions.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/model-call-attributions.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0B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;YAC5F,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,yFAAyF;QACzF,+HAA+H;QAC/H,8GAA8G;QAC9G,gGAAgG;KACjG;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `modelCallAttributions` — Wildo SaaS engine specification (application-scoped storage, engine-written). #1598.\n *\n * Inputs:\n * - Schema: `ModelCallAttributionSchema` (`flows-actors/model-call-attributions.shared.schemas.ts`)\n * - Factory: `modelCallAttributionsResourceConfiguration_InitializationFactory`\n * - Writer: the provider-call recorder (`ProviderCallRecorderBackendService`), beside every provider-call record.\n * - Readers: the model-cost summary (`POST /model-cost/summary`) and the period close, both engine services.\n *\n * The runtime reasoning (why a separate table from the evidence records, the closed projection, exact cost) lives\n * in the schema file's header and is not restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n AgentCallTraceKind,\n CoreResourceOperation as Op,\n ModelCallAttributionSchema,\n ModelCallAttributionShare,\n ModelCallAttributionSource,\n ModelCallPricingStatus,\n ReasoningUsageReporting,\n ResourcePrimaryScope,\n modelCallAttributionsResourceConfiguration_InitializationFactory as modelCallAttributionsFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const modelCallAttributionsResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n modelCallAttributionsFactory,\n ModelCallAttributionSchema,\n ({ schemaShape }) => ({\n purpose: 'Record, for every call the application makes to a model provider, which organization, which case and which run it served, what it consumed and what it cost.',\n businessRole: 'What an AI-native service firm computes its cost per case from: inference cost attributed to the case it was spent on, beside the expert time spent on the same case.',\n lifecycleRole: 'Written by the engine beside each provider-call record, never updated, deleted with its organization, and otherwise deleted by the retention-class sweep once the application\\'s OPERATIONAL_LOGS period has passed since it was written.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelCallAttributionSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelCallAttributionsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'MODEL_CALL_ATTRIBUTIONS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },\n notes: [\n 'Every operation is route-less: CREATE, READ and LIST are REPOSITORY_ONLY and DELETE_MANY is INTERNAL_CALL (the retention sweep and the tenant cascade delete through the service layer). The roles are never exercised by a request.',\n 'Rows are built only by `projectModelCallAttribution`, a closed projection of the provider-call record: no prompt, output, error message, userId or free-form trace attribute can reach the table.',\n 'Retention: `retentionBinding: { retentionClass: OPERATIONAL_LOGS, startPoint: CREATED }` (#1613). The invoice-backing record is `modelCostPeriodAggregates`, not these rows.',\n 'Teardown: the `organizations → modelCallAttributions` edge deletes a tenant\\'s rows with it, after the purge has closed its open cost period into an aggregate.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of this attribution row.', semanticRole: 'identifier' }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'The application record the call was made by, stamped from the canonical identity.', semanticRole: 'identifier' }),\n providerCallRecordId: schemaShape.providerCallRecordId.stringSpec({\n meaning: 'The provider-call record this row attributes.',\n whyItMatters: 'Several rows may name one record when one call served several cases (an embedding batch); a summary counts distinct records, never rows.',\n semanticRole: 'identifier',\n }),\n agentRef: schemaShape.agentRef.stringSpec({ meaning: 'The agent the call served, or the engine service\\'s label for an embedding or extraction.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n kind: schemaShape.kind.enumSpec({\n meaning: 'Whether the call generated text or produced embeddings.',\n enumDeclaration: enumDeclaration('AgentCallTraceKind'),\n values: {\n [AgentCallTraceKind.GENERATION]: { meaning: 'A generation call: prompt tokens in, completion tokens out.' },\n [AgentCallTraceKind.EMBEDDING]: { meaning: 'An embedding call: input tokens in, vectors out.' },\n },\n }),\n provider: schemaShape.provider.stringSpec({ meaning: 'The provider the call went to.', semanticRole: 'code' }),\n model: schemaShape.model.stringSpec({ meaning: 'The model the call resolved to — what a registered price is matched against.', semanticRole: 'code' }),\n calledAt: schemaShape.calledAt.dateSpec({ meaning: 'When the call was initiated.', whyItMatters: 'The instant a summary window and a monthly cost period are cut on.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n correlationId: schemaShape.correlationId.stringSpec({ meaning: 'The request or job correlation id the call ran under.', whyItMatters: 'A join key into the logs and the audit trail, never an authorization input.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization the call served.',\n whyItMatters: 'Derived by the engine from an authenticated owner field or from the case row\\'s own scope, never from a caller or a model. Absent on an unattributed call.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n caseRef: schemaShape.caseRef.objectSpec({\n meaning: 'The case the call served: a row of a resource declared `workUnit: true`.',\n whyItMatters: 'What a cost-per-case summary groups by. It names the row and copies nothing from it, so erasing the case leaves this row pointing at an impersonalized or absent record.',\n }),\n executionRef: schemaShape.executionRef.objectSpec({ meaning: 'The run the call was made in: a conversational turn, an actor execution, a batch run or an inbound delivery.' }),\n taskRef: schemaShape.taskRef.stringSpec({ meaning: 'The actor task within that run, when there is one.', semanticRole: 'identifier' }),\n attributionSource: schemaShape.attributionSource.enumSpec({\n meaning: 'How this row learned which work the call served.',\n whyItMatters: 'UNATTRIBUTED calls are counted apart by every summary: a cost per case that silently dropped them would look complete and be low.',\n enumDeclaration: enumDeclaration('ModelCallAttributionSource'),\n values: {\n [ModelCallAttributionSource.EXPLICIT]: { meaning: 'The call site passed the attribution with the call.' },\n [ModelCallAttributionSource.AMBIENT]: { meaning: 'Read from the work frame the engine opened around the call.' },\n [ModelCallAttributionSource.UNATTRIBUTED]: { meaning: 'The call ran outside any work frame (platform tooling).' },\n },\n }),\n share: schemaShape.share.enumSpec({\n meaning: 'Which part of the call this row accounts for.',\n enumDeclaration: enumDeclaration('ModelCallAttributionShare'),\n values: {\n [ModelCallAttributionShare.WHOLE_CALL]: { meaning: 'The whole call served one unit of work (share 1/1).' },\n [ModelCallAttributionShare.APPORTIONED_BY_INPUT_LENGTH]: { meaning: 'One call served several cases of one organization; this row carries its input length over the call\\'s total.' },\n },\n }),\n shareNumerator: schemaShape.shareNumerator.numberSpec({ meaning: 'This row\\'s share of the call, numerator.' }),\n shareDenominator: schemaShape.shareDenominator.numberSpec({ meaning: 'This row\\'s share of the call, denominator.' }),\n promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens of the whole call.' }),\n completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens of the whole call, reasoning included.' }),\n totalTokens: schemaShape.totalTokens.numberSpec({ meaning: 'Total tokens of the whole call.' }),\n noCacheTokens: schemaShape.noCacheTokens.numberSpec({ meaning: 'Input tokens read without a prompt cache, when the provider reported the split.' }),\n cacheReadTokens: schemaShape.cacheReadTokens.numberSpec({ meaning: 'Input tokens served from a prompt cache.' }),\n cacheWriteTokens: schemaShape.cacheWriteTokens.numberSpec({ meaning: 'Input tokens written into a prompt cache.' }),\n textTokens: schemaShape.textTokens.numberSpec({ meaning: 'Visible output tokens, when the provider reported the split.' }),\n reasoningTokens: schemaShape.reasoningTokens.numberSpec({ meaning: 'Output tokens spent on reasoning, a part of the completion. Absent when the provider did not report the split.' }),\n reasoningUsage: schemaShape.reasoningUsage.enumSpec({\n meaning: 'Whether the provider reported how many output tokens were reasoning.',\n whyItMatters: 'An unreported split is never read as zero reasoning: zero would be a claim the provider did not make.',\n enumDeclaration: enumDeclaration('ReasoningUsageReporting'),\n values: {\n [ReasoningUsageReporting.REPORTED]: { meaning: 'The provider reported the reasoning split.' },\n [ReasoningUsageReporting.UNREPORTED]: { meaning: 'The provider did not report it (Anthropic and Mistral do not).' },\n },\n }),\n pricingStatus: schemaShape.pricingStatus.enumSpec({\n meaning: 'Whether one of the application\\'s registered prices covered the call.',\n enumDeclaration: enumDeclaration('ModelCallPricingStatus'),\n values: {\n [ModelCallPricingStatus.PRICED]: { meaning: 'A registered price for the provider and model was in effect at the call.' },\n [ModelCallPricingStatus.UNPRICED]: { meaning: 'No registered price matched; the call is counted apart, never priced at zero.' },\n },\n }),\n pricingAuthorityRef: schemaShape.pricingAuthorityRef.stringSpec({ meaning: 'The registered price used, by its stable name.', semanticRole: 'code' }),\n pricingAuthorityVersion: schemaShape.pricingAuthorityVersion.numberSpec({ meaning: 'The version of that price.' }),\n currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 currency of the computed cost.', semanticRole: 'code' }),\n callCostMinorNumerator: schemaShape.callCostMinorNumerator.stringSpec({\n meaning: 'The whole call\\'s exact cost in minor units, numerator (a decimal integer).',\n whyItMatters: 'Stored unrounded: a total is rounded up once, when it is reported, so many small calls are not overstated by a minor unit each.',\n }),\n callCostUnitsDenominator: schemaShape.callCostUnitsDenominator.numberSpec({ meaning: 'The whole call\\'s exact cost in minor units, denominator.' }),\n reportedCostAmount: schemaShape.reportedCostAmount.numberSpec({ meaning: 'A cost the provider reported itself, verbatim in its own unit; kept apart from the computed cost.' }),\n reportedCurrency: schemaShape.reportedCurrency.stringSpec({ meaning: 'The currency of the provider-reported cost.', semanticRole: 'code' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', whyItMatters: 'The retention clock: the row is deleted once the declared OPERATIONAL_LOGS period has passed since this instant.', temporalRole: 'creation' }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Record the attribution of one provider call.',\n outcome: 'The call counts toward its organization\\'s and its case\\'s cost.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The attribution was recorded. Internal write path.' }],\n },\n [Op.READ]: {\n purpose: 'Read one attribution row for an internal caller.',\n outcome: 'The row is returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The row was found.' }],\n },\n [Op.LIST]: {\n purpose: 'List attribution rows for an internal caller.',\n outcome: 'The rows are returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The rows were returned.' }],\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention-class sweep and the tenant cascade. No public deletion route.',\n outcome: 'Rows past the OPERATIONAL_LOGS period, or of a deleted organization, are removed.',\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Identifiers and counts only: no prompt, output, error message or person is ever stored.',\n 'Every recorded provider call has at least one attribution row; a call made outside any unit of work has one UNATTRIBUTED row.',\n 'The organization is derived from the case row or an authenticated owner, never from the caller or the model.',\n 'Append-only: there is no update. Recording is best-effort and never fails the call it records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"model-call-attributions.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/model-call-attributions.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,E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,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;SAC3F;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,+CAA+C;YACxD,OAAO,EAAE,+CAA+C;YACxD,UAAU,EAAE,IAAI;YAChB,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;SAChG;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,+FAA+F;YACxG,OAAO,EAAE,mFAAmF;YAC5F,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,yFAAyF;QACzF,+HAA+H;QAC/H,8GAA8G;QAC9G,gGAAgG;KACjG;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `modelCallAttributions` — Wildo SaaS engine specification (application-scoped storage, engine-written). #1598.\n *\n * Inputs:\n * - Schema: `ModelCallAttributionSchema` (`flows-actors/model-call-attributions.shared.schemas.ts`)\n * - Factory: `modelCallAttributionsResourceConfiguration_InitializationFactory`\n * - Writer: the provider-call recorder (`ProviderCallRecorderBackendService`), beside every provider-call record.\n * - Readers: the model-cost summary (`POST /model-cost/summary`) and the period close, both engine services.\n *\n * The runtime reasoning (why a separate table from the evidence records, the closed projection, exact cost) lives\n * in the schema file's header and is not restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n AgentCallTraceKind,\n CoreResourceOperation as Op,\n ModelCallAttributionSchema,\n ModelCallAttributionShare,\n ModelCallAttributionSource,\n ModelCallPricingStatus,\n ReasoningUsageReporting,\n ResourcePrimaryScope,\n modelCallAttributionsResourceConfiguration_InitializationFactory as modelCallAttributionsFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const modelCallAttributionsResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n modelCallAttributionsFactory,\n ModelCallAttributionSchema,\n ({ schemaShape }) => ({\n purpose: 'Record, for every call the application makes to a model provider, which organization, which case and which run it served, what it consumed and what it cost.',\n businessRole: 'What an organization computes its cost per case from (an AI-native service firm pricing its work, for example): inference cost attributed to the case it was spent on, beside the time reviewers spent on the same case.',\n lifecycleRole: 'Written by the engine beside each provider-call record, never updated, deleted with its organization, and otherwise deleted by the retention-class sweep once the application\\'s OPERATIONAL_LOGS period has passed since it was written.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelCallAttributionSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelCallAttributionsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'MODEL_CALL_ATTRIBUTIONS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },\n notes: [\n 'Every operation is route-less: CREATE, READ and LIST are REPOSITORY_ONLY and DELETE_MANY is INTERNAL_CALL (the retention sweep and the tenant cascade delete through the service layer). The roles are never exercised by a request.',\n 'Rows are built only by `projectModelCallAttribution`, a closed projection of the provider-call record: no prompt, output, error message, userId or free-form trace attribute can reach the table.',\n 'Retention: `retentionBinding: { retentionClass: OPERATIONAL_LOGS, startPoint: CREATED }` (#1613). The invoice-backing record is `modelCostPeriodAggregates`, not these rows.',\n 'Teardown: the `organizations → modelCallAttributions` edge deletes a tenant\\'s rows with it, after the purge has closed its open cost period into an aggregate.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of this attribution row.', semanticRole: 'identifier' }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'The application record the call was made by, stamped from the canonical identity.', semanticRole: 'identifier' }),\n providerCallRecordId: schemaShape.providerCallRecordId.stringSpec({\n meaning: 'The provider-call record this row attributes.',\n whyItMatters: 'Several rows may name one record when one call served several cases (an embedding batch); a summary counts distinct records, never rows.',\n semanticRole: 'identifier',\n }),\n agentRef: schemaShape.agentRef.stringSpec({ meaning: 'The agent the call served, or the engine service\\'s label for an embedding or extraction.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n kind: schemaShape.kind.enumSpec({\n meaning: 'Whether the call generated text, produced embeddings, asked a content-safety classifier about a text, or extracted the text of a document.',\n whyItMatters: 'The kind decides what the call is priced by (#2889): tokens for a generation or an embedding, text records for a check, pages for an extraction. Only a price of that basis can price it.',\n enumDeclaration: enumDeclaration('AgentCallTraceKind'),\n values: {\n [AgentCallTraceKind.GENERATION]: { meaning: 'A generation call: prompt tokens in, completion tokens out, priced by tokens.' },\n [AgentCallTraceKind.EMBEDDING]: { meaning: 'An embedding call: input tokens in, vectors out, priced by tokens.' },\n [AgentCallTraceKind.CLASSIFICATION]: { meaning: 'A content-safety check (prompt-injection screening or output moderation): priced by the text records it sent, and counted apart from the model calls.' },\n [AgentCallTraceKind.DOCUMENT_EXTRACTION]: { meaning: 'A document extraction: a document in, its text out, priced by the pages it analyzed, and counted apart from the model calls.' },\n },\n }),\n provider: schemaShape.provider.stringSpec({ meaning: 'The provider the call went to.', semanticRole: 'code' }),\n model: schemaShape.model.stringSpec({ meaning: 'The model the call resolved to — what a registered price is matched against.', semanticRole: 'code' }),\n calledAt: schemaShape.calledAt.dateSpec({ meaning: 'When the call was initiated.', whyItMatters: 'The instant a summary window and a monthly cost period are cut on.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n correlationId: schemaShape.correlationId.stringSpec({ meaning: 'The request or job correlation id the call ran under.', whyItMatters: 'A join key into the logs and the audit trail, never an authorization input.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization the call served.',\n whyItMatters: 'Derived by the engine from an authenticated owner field or from the case row\\'s own scope, never from a caller or a model. Absent on an unattributed call.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n representingOrganizationId: schemaShape.representingOrganizationId.stringSpec({\n meaning: 'The representing organization the call\\'s run was done through in that organization (#2618): the one the person or agent whose run it was represents, when they work there only through its relationships. Absent for the organization\\'s own work.',\n whyItMatters: 'Which representing organization reads this row\\'s cost: its administrator reads the calls made through its relationships and its own organization\\'s own calls, and never another representing organization\\'s. Derived by the engine from the run\\'s principal, dropped when the call is charged to another organization than the one that standing was measured in; never authority.',\n semanticRole: 'identifier',\n }),\n caseRef: schemaShape.caseRef.objectSpec({\n meaning: 'The case the call served: a row of a resource declared `workUnit: true`.',\n whyItMatters: 'What a cost-per-case summary groups by. It names the row and copies nothing from it, so erasing the case leaves this row pointing at an impersonalized or absent record.',\n }),\n executionRef: schemaShape.executionRef.objectSpec({ meaning: 'The run the call was made in: a conversational turn, an actor execution, a batch run or an inbound delivery.' }),\n taskRef: schemaShape.taskRef.stringSpec({ meaning: 'The actor task within that run, when there is one.', semanticRole: 'identifier' }),\n attributionSource: schemaShape.attributionSource.enumSpec({\n meaning: 'How this row learned which work the call served.',\n whyItMatters: 'UNATTRIBUTED calls are counted apart by every summary: a cost per case that silently dropped them would look complete and be low.',\n enumDeclaration: enumDeclaration('ModelCallAttributionSource'),\n values: {\n [ModelCallAttributionSource.EXPLICIT]: { meaning: 'The call site passed the attribution with the call.' },\n [ModelCallAttributionSource.AMBIENT]: { meaning: 'Read from the work frame the engine opened around the call.' },\n [ModelCallAttributionSource.UNATTRIBUTED]: { meaning: 'The call ran outside any work frame (platform tooling).' },\n },\n }),\n share: schemaShape.share.enumSpec({\n meaning: 'Which part of the call this row accounts for.',\n enumDeclaration: enumDeclaration('ModelCallAttributionShare'),\n values: {\n [ModelCallAttributionShare.WHOLE_CALL]: { meaning: 'The whole call served one unit of work (share 1/1).' },\n [ModelCallAttributionShare.APPORTIONED_BY_INPUT_LENGTH]: { meaning: 'One call served several cases of one organization; this row carries its input length over the call\\'s total.' },\n },\n }),\n shareNumerator: schemaShape.shareNumerator.numberSpec({ meaning: 'This row\\'s share of the call, numerator.' }),\n shareDenominator: schemaShape.shareDenominator.numberSpec({ meaning: 'This row\\'s share of the call, denominator.' }),\n promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens of the whole call.' }),\n completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens of the whole call, reasoning included.' }),\n totalTokens: schemaShape.totalTokens.numberSpec({ meaning: 'Total tokens of the whole call.' }),\n noCacheTokens: schemaShape.noCacheTokens.numberSpec({ meaning: 'Input tokens read without a prompt cache, when the provider reported the split.' }),\n cacheReadTokens: schemaShape.cacheReadTokens.numberSpec({ meaning: 'Input tokens served from a prompt cache.' }),\n cacheWriteTokens: schemaShape.cacheWriteTokens.numberSpec({ meaning: 'Input tokens written into a prompt cache.' }),\n textTokens: schemaShape.textTokens.numberSpec({ meaning: 'Visible output tokens, when the provider reported the split.' }),\n reasoningTokens: schemaShape.reasoningTokens.numberSpec({ meaning: 'Output tokens spent on reasoning, a part of the completion. Absent when the provider did not report the split.' }),\n reasoningUsage: schemaShape.reasoningUsage.enumSpec({\n meaning: 'Whether the provider reported how many output tokens were reasoning.',\n whyItMatters: 'An unreported split is never read as zero reasoning: zero would be a claim the provider did not make.',\n enumDeclaration: enumDeclaration('ReasoningUsageReporting'),\n values: {\n [ReasoningUsageReporting.REPORTED]: { meaning: 'The provider reported the reasoning split.' },\n [ReasoningUsageReporting.UNREPORTED]: { meaning: 'The provider did not report it (Anthropic and Mistral do not).' },\n },\n }),\n personalDataFieldsWithheld: schemaShape.personalDataFieldsWithheld.numberSpec({\n meaning: 'How many personal fields the call\\'s model was sent in place of, under its agent\\'s personal-data treatment (a field with several categories counts once). Absent when the call was untreated.',\n whyItMatters: 'The cost views show how much a guarded run kept from its model, as a count: never a value or a field name.',\n }),\n pricingStatus: schemaShape.pricingStatus.enumSpec({\n meaning: 'Whether one of the application\\'s registered prices covered the call.',\n enumDeclaration: enumDeclaration('ModelCallPricingStatus'),\n values: {\n [ModelCallPricingStatus.PRICED]: { meaning: 'A registered price for the provider and model, of the basis the call\\'s kind is billed by, was in effect at the call.' },\n [ModelCallPricingStatus.UNPRICED]: { meaning: 'No registered price matched; the call is counted apart, never priced at zero.' },\n },\n }),\n pricingAuthorityRef: schemaShape.pricingAuthorityRef.stringSpec({ meaning: 'The registered price used, by its stable name.', semanticRole: 'code' }),\n pricingAuthorityVersion: schemaShape.pricingAuthorityVersion.numberSpec({ meaning: 'The version of that price.' }),\n currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 currency of the computed cost.', semanticRole: 'code' }),\n callCostMinorNumerator: schemaShape.callCostMinorNumerator.stringSpec({\n meaning: 'The whole call\\'s exact cost in minor units, numerator (a decimal integer).',\n whyItMatters: 'Stored unrounded: a total is rounded up once, when it is reported, so many small calls are not overstated by a minor unit each.',\n }),\n callCostUnitsDenominator: schemaShape.callCostUnitsDenominator.numberSpec({ meaning: 'The whole call\\'s exact cost in minor units, denominator.' }),\n reportedCostAmount: schemaShape.reportedCostAmount.numberSpec({ meaning: 'A cost the provider reported itself, verbatim in its own unit; kept apart from the computed cost.' }),\n reportedCurrency: schemaShape.reportedCurrency.stringSpec({ meaning: 'The currency of the provider-reported cost.', semanticRole: 'code' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', whyItMatters: 'The retention clock: the row is deleted once the declared OPERATIONAL_LOGS period has passed since this instant.', temporalRole: 'creation' }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Record the attribution of one provider call.',\n outcome: 'The call counts toward its organization\\'s and its case\\'s cost.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The attribution was recorded. Internal write path.' }],\n },\n [Op.READ]: {\n purpose: 'Read one attribution row for an internal caller.',\n outcome: 'The row is returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The row was found.' }],\n },\n [Op.LIST]: {\n purpose: 'List attribution rows for an internal caller.',\n outcome: 'The rows are returned to the internal caller.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The rows were returned.' }],\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention-class sweep and the tenant cascade. No public deletion route.',\n outcome: 'Rows past the OPERATIONAL_LOGS period, or of a deleted organization, are removed.',\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Identifiers and counts only: no prompt, output, error message or person is ever stored.',\n 'Every recorded provider call has at least one attribution row; a call made outside any unit of work has one UNATTRIBUTED row.',\n 'The organization is derived from the case row or an authenticated owner, never from the caller or the model.',\n 'Append-only: there is no update. Recording is best-effort and never fails the call it records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-cost-period-aggregates.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-cost-period-aggregates.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,KAAK,8BAA8B,EAKpC,MAAM,6BAA6B,CAAC;AA2CrC,eAAO,MAAM,8CAA8C,EAAE,8BA8J5D,CAAC"}
|
|
@@ -7,11 +7,14 @@
|
|
|
7
7
|
* - Custom operation: `ModelCostPeriodAggregates_Operations.LINK_INVOICE`, implemented by
|
|
8
8
|
* `model-cost.custom-impl.backend.service.ts` (saas-backend-lib).
|
|
9
9
|
* - Writers: the model-cost period-close batch, and the close at an organization's deletion mark and purge.
|
|
10
|
+
* - UI preset: `modelCostPeriodAggregatesAdminResourceUIBehavior` (presets-components, admin scope), surfaced as
|
|
11
|
+
* Settings → Administration → Model costs (#2324).
|
|
10
12
|
*/
|
|
13
|
+
import { modelCostPeriodAggregatesAdminResourceUIBehavior as modelCostPeriodAggregatesUIBehaviorSource } from '@wildo-ai/presets-components';
|
|
11
14
|
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
12
15
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
13
16
|
import { CoreResourceOperation as Op, ModelCostPeriodAggregateSchema, ModelCostPeriodAggregates_Operations, ResourcePrimaryScope, modelCostPeriodAggregatesResourceConfiguration_InitializationFactory as modelCostPeriodAggregatesFactory, } from '@wildo-ai/saas-models';
|
|
14
|
-
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
17
|
+
import { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
15
18
|
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
16
19
|
const enumDeclaration = (exportName) => ({
|
|
17
20
|
packageName: '@wildo-ai/saas-models',
|
|
@@ -24,6 +27,7 @@ const EXAMPLE_AGGREGATE = {
|
|
|
24
27
|
applicationId: 'app_01J4P8F1M2N3Q4R5S6T7V8W9XY',
|
|
25
28
|
periodKey: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ:2026-08:USD',
|
|
26
29
|
organizationId: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ',
|
|
30
|
+
organizationName: 'Acme Robotics',
|
|
27
31
|
periodStart: '2026-08-01T00:00:00.000Z',
|
|
28
32
|
periodEnd: '2026-09-01T00:00:00.000Z',
|
|
29
33
|
currency: 'USD',
|
|
@@ -40,9 +44,11 @@ const EXAMPLE_AGGREGATE = {
|
|
|
40
44
|
closedAt: '2026-09-04T02:17:00.000Z',
|
|
41
45
|
// The id of the organization's `organizationInvoiceRefs` row, not the payment provider's invoice number.
|
|
42
46
|
organizationInvoiceRefId: '66f6a1c2e3d4b5a697885678',
|
|
47
|
+
invoiceLinkedAt: '2026-09-05T09:30:00.000Z',
|
|
43
48
|
createdAt: '2026-09-04T02:17:00.000Z',
|
|
44
49
|
};
|
|
45
|
-
|
|
50
|
+
const modelCostPeriodAggregatesUIBehavior = modelCostPeriodAggregatesUIBehaviorSource;
|
|
51
|
+
export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificationFromFrontendConfiguration(resourceFrontendConfiguration(modelCostPeriodAggregatesUIBehavior), resourceSpecification(modelCostPeriodAggregatesFactory, ModelCostPeriodAggregateSchema, ({ schemaShape }) => ({
|
|
46
52
|
purpose: 'Hold one organization\'s model cost for one calendar month in one currency, written once the month is over: the durable record an invoice cites.',
|
|
47
53
|
businessRole: 'The business record behind billing a client for the inference its cases consumed. Detail rows are operational logs; this total is what is kept, and kept past the client\'s deletion when an invoice bills it.',
|
|
48
54
|
lifecycleRole: 'Written by the period close after the month ends plus a declared grace, or at the organization\'s deletion for its open period (provisionally, until the month is due); linked once to the invoice that bills it; kept for the BUSINESS_RECORDS period from the end of the calendar year. At the organization\'s deletion, an aggregate no invoice bills is deleted.',
|
|
@@ -56,9 +62,10 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
|
|
|
56
62
|
notes: [
|
|
57
63
|
'Three routes under `/applications/{applicationId}` (the APPLICATION row\'s id, which the per-row authorization compares), all for the application\'s billing people (APP_ADMIN_SUPER_ADMIN, APP_ADMIN_BILLING_MANAGER): LIST, filtered by `organizationId`, `currency` or `periodKey`, and READ to find the month being invoiced, and `link_invoice`. CREATE is REPOSITORY_ONLY (the close writes through the repository); READ and LIST also keep a route-less INTERNAL_CALL default for the service tier; UPDATE_MANY and DELETE_MANY are INTERNAL_CALL.',
|
|
58
64
|
'An aggregate the deletion mark wrote before its month was due is PROVISIONAL: the next close rewrites it from the rows as they stand, unless an invoice billed it first. One closed after its month was due, or linked, is final.',
|
|
59
|
-
'Retention: `retentionBinding: { retentionClass: BUSINESS_RECORDS, startPoint: END_OF_CALENDAR_YEAR }`, and `retentionPolicy: { mode: RETAIN_ONLY, statutoryRetention: { ground: LEGAL_OBLIGATION } }` naming the bookkeeping statutes (HGB §257, AO §147, Code de commerce L123-22). The engine refuses a BUSINESS_RECORDS resource that names no statute (#1635), and the retention policy is why UPDATE_MANY and the service-resolvable reads exist. No personal data and no data subject (`dataSubjectPolicy: NO_PRINCIPAL`).',
|
|
65
|
+
'Retention: `retentionBinding: { retentionClass: BUSINESS_RECORDS, startPoint: END_OF_CALENDAR_YEAR }`, and `retentionPolicy: { mode: RETAIN_ONLY, statutoryRetention: { ground: LEGAL_OBLIGATION } }` naming the bookkeeping statutes (HGB §257, AO §147, Code de commerce L123-22). The engine refuses a BUSINESS_RECORDS resource that names no statute (#1635), and the retention policy is why UPDATE_MANY and the service-resolvable reads exist. No personal data about its own subject and no data subject (`dataSubjectPolicy: NO_PRINCIPAL`); the copied `organizationName` is the billed tenant\'s name, declared personal only where that tenant is a sole trader (#2535), and kept intact under the statutory retention.',
|
|
60
66
|
'Teardown: the `organizations → modelCostPeriodAggregates` edge disables the cascade. The purge\'s own close deletes the organization\'s UNLINKED aggregates after it commits; a linked one outlives the organization for its statutory period.',
|
|
61
67
|
'Unpriced calls are totalled under the ISO 4217 code `XXX` ("no currency") so an unpriced month is recorded, not absent.',
|
|
68
|
+
'Every priced provider call enters its month, a content-safety check (priced by text records) and a document extraction (priced by pages) as well as a model call (#2889): the aggregate holds the whole provider spend the organization is invoiced for.',
|
|
62
69
|
],
|
|
63
70
|
},
|
|
64
71
|
fields: {
|
|
@@ -70,10 +77,15 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
|
|
|
70
77
|
semanticRole: 'identifier',
|
|
71
78
|
}),
|
|
72
79
|
organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose model cost this is.', importance: FieldSemanticImportance.PRIMARY }),
|
|
80
|
+
organizationName: schemaShape.organizationName.stringSpec({
|
|
81
|
+
meaning: 'The organization\'s name when the aggregate was written, copied by the period close.',
|
|
82
|
+
whyItMatters: 'The billing people who read model costs are not members of the organizations they reconcile, so they cannot resolve the organization reference; this copy is what names the row for them. A copy at close, like the party an invoice names, not a live mirror. Absent on an aggregate written before the field existed.',
|
|
83
|
+
semanticRole: 'label',
|
|
84
|
+
}),
|
|
73
85
|
periodStart: schemaShape.periodStart.dateSpec({ meaning: 'First instant of the calendar month (UTC), inclusive.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),
|
|
74
86
|
periodEnd: schemaShape.periodEnd.dateSpec({ meaning: 'First instant of the next month (UTC), exclusive.', temporalRole: 'occurred' }),
|
|
75
87
|
currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 code of every total on the row, or XXX for the calls no registered price covered.', semanticRole: 'code' }),
|
|
76
|
-
attributedCallCount: schemaShape.attributedCallCount.numberSpec({ meaning: 'Distinct
|
|
88
|
+
attributedCallCount: schemaShape.attributedCallCount.numberSpec({ meaning: 'Distinct provider calls of every kind attributed to the organization in the month, in this currency slot.' }),
|
|
77
89
|
unpricedCallCount: schemaShape.unpricedCallCount.numberSpec({ meaning: 'Of those, the calls no registered price covered.' }),
|
|
78
90
|
promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens in the month, each row\'s share applied.' }),
|
|
79
91
|
completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens in the month, each row\'s share applied.' }),
|
|
@@ -93,6 +105,11 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
|
|
|
93
105
|
whyItMatters: 'Its presence is what keeps the aggregate past its organization\'s deletion, for the statutory bookkeeping period.',
|
|
94
106
|
semanticRole: 'identifier',
|
|
95
107
|
}),
|
|
108
|
+
invoiceLinkedAt: schemaShape.invoiceLinkedAt.dateSpec({
|
|
109
|
+
meaning: 'When `link_invoice` linked the invoice: stamped by the first link, in the same write, and never rewritten.',
|
|
110
|
+
whyItMatters: 'It is what proves a link\'s commit landed when the store lost its reply: the invoice id cannot, since a second caller linking the same invoice leaves the same id. Absent on an unlinked aggregate, and on one linked before the field existed.',
|
|
111
|
+
temporalRole: 'occurred',
|
|
112
|
+
}),
|
|
96
113
|
createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', temporalRole: 'creation' }),
|
|
97
114
|
},
|
|
98
115
|
operations: {
|
|
@@ -118,7 +135,7 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
|
|
|
118
135
|
errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' }],
|
|
119
136
|
},
|
|
120
137
|
[Op.UPDATE_MANY]: {
|
|
121
|
-
purpose: 'The erasure writer\'s door the retention policy requires. Route-less; the rows hold no personal data, so nothing is scrubbed.',
|
|
138
|
+
purpose: 'The erasure writer\'s door the retention policy requires. Route-less; the rows hold no personal data about their own subject, so nothing is scrubbed (the billed tenant\'s name is kept under the statutory retention, #2535).',
|
|
122
139
|
outcome: 'The retained marker only.',
|
|
123
140
|
idempotent: true,
|
|
124
141
|
},
|
|
@@ -130,7 +147,7 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
|
|
|
130
147
|
[ModelCostPeriodAggregates_Operations.LINK_INVOICE]: {
|
|
131
148
|
operationId: ModelCostPeriodAggregates_Operations.LINK_INVOICE,
|
|
132
149
|
purpose: 'Record that an invoice bills this aggregate\'s model cost.',
|
|
133
|
-
outcome: 'The aggregate names its invoice, and is kept past its organization\'s deletion for the statutory period. The link is written to the audit trail.',
|
|
150
|
+
outcome: 'The aggregate names its invoice and when it was linked (`invoiceLinkedAt`), and is kept past its organization\'s deletion for the statutory period. The link is written to the audit trail.',
|
|
134
151
|
whenToUse: 'The application\'s billing flow issued an invoice for the month\'s model cost of this organization.',
|
|
135
152
|
importance: FieldSemanticImportance.PRIMARY,
|
|
136
153
|
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregate is linked; the updated aggregate is returned.' }],
|
|
@@ -138,6 +155,7 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
|
|
|
138
155
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' },
|
|
139
156
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such aggregate, or the invoice is not one of the aggregate\'s organization.' },
|
|
140
157
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The aggregate is already linked to another invoice; a link is set once.' },
|
|
158
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The link\'s commit reply was lost and the aggregate could not be read back: it may be linked (`error.customMessageReference`: `resource_operation_outcome_unknown`). Read the aggregate before linking again.' },
|
|
141
159
|
],
|
|
142
160
|
idempotent: true,
|
|
143
161
|
examples: [{
|
|
@@ -154,5 +172,27 @@ export const modelCostPeriodAggregatesResourceSpecification = resourceSpecificat
|
|
|
154
172
|
'Linked to at most one invoice, once. Only a linked aggregate outlives its organization.',
|
|
155
173
|
'Currencies are never converted: each currency has its own aggregate.',
|
|
156
174
|
],
|
|
157
|
-
}), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION })
|
|
175
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION }), () => ({
|
|
176
|
+
label: {
|
|
177
|
+
purpose: 'Names an aggregate by the organization it bills, by the name copied at the close (`organizationName`, else its id on an older row), and the month it covers, so an operator scanning a month reads whose cost each row is. Built from summary fields, because the list carries only those.',
|
|
178
|
+
},
|
|
179
|
+
layout: {
|
|
180
|
+
purpose: 'Read-only facts: the organization and the month, what it cost and in which currency, how many calls were priced and how many were not, the tokens behind them, when the period closed, and which invoice bills it. The cache and reasoning token rows hide when empty.',
|
|
181
|
+
displayPurpose: 'Settings rows on the detail; a list card shows the cost, the currency and the invoice under its month heading, the invoice absent until one bills it. The batch writes every row, so there is no edit layout.',
|
|
182
|
+
},
|
|
183
|
+
views: {
|
|
184
|
+
[Op.LIST]: {
|
|
185
|
+
purpose: 'Every organization\'s model cost, grouped by the month it covers. Reached from Settings → Administration → Model costs.',
|
|
186
|
+
whenToUse: 'Reconciling model spend against invoices, or finding the months nobody has billed yet.',
|
|
187
|
+
},
|
|
188
|
+
[Op.READ]: {
|
|
189
|
+
purpose: 'One organization\'s month in one currency, reached by drilling into a list row rather than by its own route.',
|
|
190
|
+
whenToUse: 'Reading every total of a month, and which invoice bills it.',
|
|
191
|
+
},
|
|
192
|
+
[ModelCostPeriodAggregates_Operations.LINK_INVOICE]: {
|
|
193
|
+
purpose: 'A row action recording that an invoice bills this cost, for an operator doing by hand what the billing flow normally does.',
|
|
194
|
+
whenToUse: 'An invoice for the month was issued outside the application\'s billing flow.',
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
}));
|
|
158
198
|
//# sourceMappingURL=model-cost-period-aggregates.resource.specification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-cost-period-aggregates.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,8BAA8B,EAC9B,oCAAoC,EACpC,oBAAoB,EACpB,oEAAo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B,EAAE,iBAAiB,CAAC,GAAG,EAAE,wBAAwB,EAAE,iBAAiB,CAAC,wBAAwB,EAAE;oBACpI,QAAQ,EAAE,iBAAiB;oBAC3B,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;IAED,mBAAmB,EAAE;QACnB,wFAAwF;QACxF,qEAAqE;QACrE,yFAAyF;QACzF,sEAAsE;KACvE;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `modelCostPeriodAggregates` — Wildo SaaS engine specification (application-scoped storage). #1598.\n *\n * Inputs:\n * - Schema: `ModelCostPeriodAggregateSchema` (`flows-actors/model-cost-period-aggregates.shared.schemas.ts`)\n * - Factory: `modelCostPeriodAggregatesResourceConfiguration_InitializationFactory`\n * - Custom operation: `ModelCostPeriodAggregates_Operations.LINK_INVOICE`, implemented by\n * `model-cost.custom-impl.backend.service.ts` (saas-backend-lib).\n * - Writers: the model-cost period-close batch, and the close at an organization's deletion mark and purge.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ModelCostPeriodAggregateSchema,\n ModelCostPeriodAggregates_Operations,\n ResourcePrimaryScope,\n modelCostPeriodAggregatesResourceConfiguration_InitializationFactory as modelCostPeriodAggregatesFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nconst EXAMPLE_AGGREGATE = {\n _id: '66f6a1c2e3d4b5a697881234',\n applicationId: 'app_01J4P8F1M2N3Q4R5S6T7V8W9XY',\n periodKey: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ:2026-08:USD',\n organizationId: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ',\n periodStart: '2026-08-01T00:00:00.000Z',\n periodEnd: '2026-09-01T00:00:00.000Z',\n currency: 'USD',\n attributedCallCount: 1204,\n unpricedCallCount: 0,\n promptTokens: 3_120_000,\n completionTokens: 410_000,\n totalTokens: 3_530_000,\n cacheReadTokens: 900_000,\n cacheWriteTokens: 0,\n reasoningTokens: 120_000,\n costMinor: 1_197,\n pricingAuthorities: [{ pricingAuthorityRef: 'pricing:openai/gpt-5.6-terra', pricingAuthorityVersion: 1 }],\n closedAt: '2026-09-04T02:17:00.000Z',\n // The id of the organization's `organizationInvoiceRefs` row, not the payment provider's invoice number.\n organizationInvoiceRefId: '66f6a1c2e3d4b5a697885678',\n createdAt: '2026-09-04T02:17:00.000Z',\n};\n\nexport const modelCostPeriodAggregatesResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n modelCostPeriodAggregatesFactory,\n ModelCostPeriodAggregateSchema,\n ({ schemaShape }) => ({\n purpose: 'Hold one organization\\'s model cost for one calendar month in one currency, written once the month is over: the durable record an invoice cites.',\n businessRole: 'The business record behind billing a client for the inference its cases consumed. Detail rows are operational logs; this total is what is kept, and kept past the client\\'s deletion when an invoice bills it.',\n lifecycleRole: 'Written by the period close after the month ends plus a declared grace, or at the organization\\'s deletion for its open period (provisionally, until the month is due); linked once to the invoice that bills it; kept for the BUSINESS_RECORDS period from the end of the calendar year. At the organization\\'s deletion, an aggregate no invoice bills is deleted.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelCostPeriodAggregateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelCostPeriodAggregatesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'MODEL_COST_PERIOD_AGGREGATES' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('ModelCostPeriodAggregates_Operations') },\n notes: [\n 'Three routes under `/applications/{applicationId}` (the APPLICATION row\\'s id, which the per-row authorization compares), all for the application\\'s billing people (APP_ADMIN_SUPER_ADMIN, APP_ADMIN_BILLING_MANAGER): LIST, filtered by `organizationId`, `currency` or `periodKey`, and READ to find the month being invoiced, and `link_invoice`. CREATE is REPOSITORY_ONLY (the close writes through the repository); READ and LIST also keep a route-less INTERNAL_CALL default for the service tier; UPDATE_MANY and DELETE_MANY are INTERNAL_CALL.',\n 'An aggregate the deletion mark wrote before its month was due is PROVISIONAL: the next close rewrites it from the rows as they stand, unless an invoice billed it first. One closed after its month was due, or linked, is final.',\n 'Retention: `retentionBinding: { retentionClass: BUSINESS_RECORDS, startPoint: END_OF_CALENDAR_YEAR }`, and `retentionPolicy: { mode: RETAIN_ONLY, statutoryRetention: { ground: LEGAL_OBLIGATION } }` naming the bookkeeping statutes (HGB §257, AO §147, Code de commerce L123-22). The engine refuses a BUSINESS_RECORDS resource that names no statute (#1635), and the retention policy is why UPDATE_MANY and the service-resolvable reads exist. No personal data and no data subject (`dataSubjectPolicy: NO_PRINCIPAL`).',\n 'Teardown: the `organizations → modelCostPeriodAggregates` edge disables the cascade. The purge\\'s own close deletes the organization\\'s UNLINKED aggregates after it commits; a linked one outlives the organization for its statutory period.',\n 'Unpriced calls are totalled under the ISO 4217 code `XXX` (\"no currency\") so an unpriced month is recorded, not absent.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of the aggregate.', semanticRole: 'identifier' }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'The application record the cost belongs to.', semanticRole: 'identifier' }),\n periodKey: schemaShape.periodKey.stringSpec({\n meaning: 'The aggregate\\'s natural key: organization, month and currency.',\n whyItMatters: 'Unique, so a second close of the same period can never write a second total.',\n semanticRole: 'identifier',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose model cost this is.', importance: FieldSemanticImportance.PRIMARY }),\n periodStart: schemaShape.periodStart.dateSpec({ meaning: 'First instant of the calendar month (UTC), inclusive.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n periodEnd: schemaShape.periodEnd.dateSpec({ meaning: 'First instant of the next month (UTC), exclusive.', temporalRole: 'occurred' }),\n currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 code of every total on the row, or XXX for the calls no registered price covered.', semanticRole: 'code' }),\n attributedCallCount: schemaShape.attributedCallCount.numberSpec({ meaning: 'Distinct model calls attributed to the organization in the month, in this currency slot.' }),\n unpricedCallCount: schemaShape.unpricedCallCount.numberSpec({ meaning: 'Of those, the calls no registered price covered.' }),\n promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens in the month, each row\\'s share applied.' }),\n completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens in the month, each row\\'s share applied.' }),\n totalTokens: schemaShape.totalTokens.numberSpec({ meaning: 'Total tokens in the month, each row\\'s share applied.' }),\n cacheReadTokens: schemaShape.cacheReadTokens.numberSpec({ meaning: 'Input tokens served from a prompt cache.' }),\n cacheWriteTokens: schemaShape.cacheWriteTokens.numberSpec({ meaning: 'Input tokens written into a prompt cache.' }),\n reasoningTokens: schemaShape.reasoningTokens.numberSpec({ meaning: 'Reasoning tokens the providers reported (a part of the output).' }),\n costMinor: schemaShape.costMinor.numberSpec({\n meaning: 'The month\\'s model cost in minor units of the currency.',\n whyItMatters: 'The exact sum of every call\\'s cost, rounded up once: never the sum of per-call roundings.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n pricingAuthorities: schemaShape.pricingAuthorities.arraySpec({ meaning: 'The registered prices the month\\'s calls were priced by.', elementMeaning: 'One price, as `pricingAuthorityRef@pricingAuthorityVersion`.' }),\n closedAt: schemaShape.closedAt.dateSpec({ meaning: 'When the aggregate was written. A closed period is final.', temporalRole: 'occurred' }),\n organizationInvoiceRefId: schemaShape.organizationInvoiceRefId.stringSpec({\n meaning: 'The invoice that bills this cost, set once by `link_invoice`.',\n whyItMatters: 'Its presence is what keeps the aggregate past its organization\\'s deletion, for the statutory bookkeeping period.',\n semanticRole: 'identifier',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', temporalRole: 'creation' }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Write one closed period. Written only by the engine\\'s period close.',\n outcome: 'The month\\'s cost for the organization and currency is recorded.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'Internal write path.' }],\n },\n [Op.READ]: {\n purpose: 'Read one month\\'s model cost of one organization, for the application\\'s billing flow.',\n outcome: 'The aggregate is returned.',\n whenToUse: 'Before invoicing a month, to check its total and whether it is already linked.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregate was found.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' }],\n },\n [Op.LIST]: {\n purpose: 'Find the aggregates to invoice: by organization, month (`periodStart`) and currency.',\n outcome: 'The matching aggregates are returned, with the id `link_invoice` takes.',\n whenToUse: 'The billing flow is about to invoice an organization\\'s month and needs the aggregate to link.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregates were returned.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' }],\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door the retention policy requires. Route-less; the rows hold no personal data, so nothing is scrubbed.',\n outcome: 'The retained marker only.',\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention-class sweep, and the unlinked aggregates of a deleted organization. No public deletion route.',\n outcome: 'Aggregates past their BUSINESS_RECORDS period, or unbilled aggregates of a deleted organization, are removed.',\n idempotent: true,\n },\n [ModelCostPeriodAggregates_Operations.LINK_INVOICE]: {\n operationId: ModelCostPeriodAggregates_Operations.LINK_INVOICE,\n purpose: 'Record that an invoice bills this aggregate\\'s model cost.',\n outcome: 'The aggregate names its invoice, and is kept past its organization\\'s deletion for the statutory period. The link is written to the audit trail.',\n whenToUse: 'The application\\'s billing flow issued an invoice for the month\\'s model cost of this organization.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregate is linked; the updated aggregate is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such aggregate, or the invoice is not one of the aggregate\\'s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The aggregate is already linked to another invoice; a link is set once.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Link August\\'s model cost to the invoice that bills it',\n request: { modelCostPeriodAggregateId: EXAMPLE_AGGREGATE._id, organizationInvoiceRefId: EXAMPLE_AGGREGATE.organizationInvoiceRefId },\n response: EXAMPLE_AGGREGATE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'One aggregate per organization, calendar month and currency; a closed period is final.',\n 'Every total is the exact sum of its calls\\' costs, rounded up once.',\n 'Linked to at most one invoice, once. Only a linked aggregate outlives its organization.',\n 'Currencies are never converted: each currency has its own aggregate.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"model-cost-period-aggregates.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/flows-actors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EAAE,CACzD,EACD,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE;QACL,OAAO,EAAE,4RAA4R;KACtS;IACD,MAAM,EAAE;QACN,OAAO,EAAE,wQAAwQ;QACjR,cAAc,EAAE,+MAA+M;KAChO;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,yHAAyH;YAClI,SAAS,EAAE,wFAAwF;SACpG;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,8GAA8G;YACvH,SAAS,EAAE,6DAA6D;SACzE;QACD,CAAC,oCAAoC,CAAC,YAAY,CAAC,EAAE;YACnD,OAAO,EAAE,4HAA4H;YACrI,SAAS,EAAE,8EAA8E;SAC1F;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `modelCostPeriodAggregates` — Wildo SaaS engine specification (application-scoped storage). #1598.\n *\n * Inputs:\n * - Schema: `ModelCostPeriodAggregateSchema` (`flows-actors/model-cost-period-aggregates.shared.schemas.ts`)\n * - Factory: `modelCostPeriodAggregatesResourceConfiguration_InitializationFactory`\n * - Custom operation: `ModelCostPeriodAggregates_Operations.LINK_INVOICE`, implemented by\n * `model-cost.custom-impl.backend.service.ts` (saas-backend-lib).\n * - Writers: the model-cost period-close batch, and the close at an organization's deletion mark and purge.\n * - UI preset: `modelCostPeriodAggregatesAdminResourceUIBehavior` (presets-components, admin scope), surfaced as\n * Settings → Administration → Model costs (#2324).\n */\nimport { modelCostPeriodAggregatesAdminResourceUIBehavior as modelCostPeriodAggregatesUIBehaviorSource } 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 ModelCostPeriodAggregateSchema,\n ModelCostPeriodAggregates_Operations,\n ResourcePrimaryScope,\n modelCostPeriodAggregatesResourceConfiguration_InitializationFactory as modelCostPeriodAggregatesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n type AnyResourceSpecificationConfig,\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nconst EXAMPLE_AGGREGATE = {\n _id: '66f6a1c2e3d4b5a697881234',\n applicationId: 'app_01J4P8F1M2N3Q4R5S6T7V8W9XY',\n periodKey: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ:2026-08:USD',\n organizationId: 'org_01J4P8F1M2N3Q4R5S6T7V8W9XZ',\n organizationName: 'Acme Robotics',\n periodStart: '2026-08-01T00:00:00.000Z',\n periodEnd: '2026-09-01T00:00:00.000Z',\n currency: 'USD',\n attributedCallCount: 1204,\n unpricedCallCount: 0,\n promptTokens: 3_120_000,\n completionTokens: 410_000,\n totalTokens: 3_530_000,\n cacheReadTokens: 900_000,\n cacheWriteTokens: 0,\n reasoningTokens: 120_000,\n costMinor: 1_197,\n pricingAuthorities: [{ pricingAuthorityRef: 'pricing:openai/gpt-5.6-terra', pricingAuthorityVersion: 1 }],\n closedAt: '2026-09-04T02:17:00.000Z',\n // The id of the organization's `organizationInvoiceRefs` row, not the payment provider's invoice number.\n organizationInvoiceRefId: '66f6a1c2e3d4b5a697885678',\n invoiceLinkedAt: '2026-09-05T09:30:00.000Z',\n createdAt: '2026-09-04T02:17:00.000Z',\n};\n\ntype Cfg = ReturnType<typeof modelCostPeriodAggregatesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst modelCostPeriodAggregatesUIBehavior = modelCostPeriodAggregatesUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nexport const modelCostPeriodAggregatesResourceSpecification: AnyResourceSpecificationConfig = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(modelCostPeriodAggregatesUIBehavior),\n resourceSpecification(\n modelCostPeriodAggregatesFactory,\n ModelCostPeriodAggregateSchema,\n ({ schemaShape }) => ({\n purpose: 'Hold one organization\\'s model cost for one calendar month in one currency, written once the month is over: the durable record an invoice cites.',\n businessRole: 'The business record behind billing a client for the inference its cases consumed. Detail rows are operational logs; this total is what is kept, and kept past the client\\'s deletion when an invoice bills it.',\n lifecycleRole: 'Written by the period close after the month ends plus a declared grace, or at the organization\\'s deletion for its open period (provisionally, until the month is due); linked once to the invoice that bills it; kept for the BUSINESS_RECORDS period from the end of the calendar year. At the organization\\'s deletion, an aggregate no invoice bills is deleted.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelCostPeriodAggregateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelCostPeriodAggregatesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'MODEL_COST_PERIOD_AGGREGATES' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('ModelCostPeriodAggregates_Operations') },\n notes: [\n 'Three routes under `/applications/{applicationId}` (the APPLICATION row\\'s id, which the per-row authorization compares), all for the application\\'s billing people (APP_ADMIN_SUPER_ADMIN, APP_ADMIN_BILLING_MANAGER): LIST, filtered by `organizationId`, `currency` or `periodKey`, and READ to find the month being invoiced, and `link_invoice`. CREATE is REPOSITORY_ONLY (the close writes through the repository); READ and LIST also keep a route-less INTERNAL_CALL default for the service tier; UPDATE_MANY and DELETE_MANY are INTERNAL_CALL.',\n 'An aggregate the deletion mark wrote before its month was due is PROVISIONAL: the next close rewrites it from the rows as they stand, unless an invoice billed it first. One closed after its month was due, or linked, is final.',\n 'Retention: `retentionBinding: { retentionClass: BUSINESS_RECORDS, startPoint: END_OF_CALENDAR_YEAR }`, and `retentionPolicy: { mode: RETAIN_ONLY, statutoryRetention: { ground: LEGAL_OBLIGATION } }` naming the bookkeeping statutes (HGB §257, AO §147, Code de commerce L123-22). The engine refuses a BUSINESS_RECORDS resource that names no statute (#1635), and the retention policy is why UPDATE_MANY and the service-resolvable reads exist. No personal data about its own subject and no data subject (`dataSubjectPolicy: NO_PRINCIPAL`); the copied `organizationName` is the billed tenant\\'s name, declared personal only where that tenant is a sole trader (#2535), and kept intact under the statutory retention.',\n 'Teardown: the `organizations → modelCostPeriodAggregates` edge disables the cascade. The purge\\'s own close deletes the organization\\'s UNLINKED aggregates after it commits; a linked one outlives the organization for its statutory period.',\n 'Unpriced calls are totalled under the ISO 4217 code `XXX` (\"no currency\") so an unpriced month is recorded, not absent.',\n 'Every priced provider call enters its month, a content-safety check (priced by text records) and a document extraction (priced by pages) as well as a model call (#2889): the aggregate holds the whole provider spend the organization is invoiced for.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of the aggregate.', semanticRole: 'identifier' }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'The application record the cost belongs to.', semanticRole: 'identifier' }),\n periodKey: schemaShape.periodKey.stringSpec({\n meaning: 'The aggregate\\'s natural key: organization, month and currency.',\n whyItMatters: 'Unique, so a second close of the same period can never write a second total.',\n semanticRole: 'identifier',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose model cost this is.', importance: FieldSemanticImportance.PRIMARY }),\n organizationName: schemaShape.organizationName.stringSpec({\n meaning: 'The organization\\'s name when the aggregate was written, copied by the period close.',\n whyItMatters: 'The billing people who read model costs are not members of the organizations they reconcile, so they cannot resolve the organization reference; this copy is what names the row for them. A copy at close, like the party an invoice names, not a live mirror. Absent on an aggregate written before the field existed.',\n semanticRole: 'label',\n }),\n periodStart: schemaShape.periodStart.dateSpec({ meaning: 'First instant of the calendar month (UTC), inclusive.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n periodEnd: schemaShape.periodEnd.dateSpec({ meaning: 'First instant of the next month (UTC), exclusive.', temporalRole: 'occurred' }),\n currency: schemaShape.currency.stringSpec({ meaning: 'ISO 4217 code of every total on the row, or XXX for the calls no registered price covered.', semanticRole: 'code' }),\n attributedCallCount: schemaShape.attributedCallCount.numberSpec({ meaning: 'Distinct provider calls of every kind attributed to the organization in the month, in this currency slot.' }),\n unpricedCallCount: schemaShape.unpricedCallCount.numberSpec({ meaning: 'Of those, the calls no registered price covered.' }),\n promptTokens: schemaShape.promptTokens.numberSpec({ meaning: 'Input tokens in the month, each row\\'s share applied.' }),\n completionTokens: schemaShape.completionTokens.numberSpec({ meaning: 'Output tokens in the month, each row\\'s share applied.' }),\n totalTokens: schemaShape.totalTokens.numberSpec({ meaning: 'Total tokens in the month, each row\\'s share applied.' }),\n cacheReadTokens: schemaShape.cacheReadTokens.numberSpec({ meaning: 'Input tokens served from a prompt cache.' }),\n cacheWriteTokens: schemaShape.cacheWriteTokens.numberSpec({ meaning: 'Input tokens written into a prompt cache.' }),\n reasoningTokens: schemaShape.reasoningTokens.numberSpec({ meaning: 'Reasoning tokens the providers reported (a part of the output).' }),\n costMinor: schemaShape.costMinor.numberSpec({\n meaning: 'The month\\'s model cost in minor units of the currency.',\n whyItMatters: 'The exact sum of every call\\'s cost, rounded up once: never the sum of per-call roundings.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n pricingAuthorities: schemaShape.pricingAuthorities.arraySpec({ meaning: 'The registered prices the month\\'s calls were priced by.', elementMeaning: 'One price, as `pricingAuthorityRef@pricingAuthorityVersion`.' }),\n closedAt: schemaShape.closedAt.dateSpec({ meaning: 'When the aggregate was written. A closed period is final.', temporalRole: 'occurred' }),\n organizationInvoiceRefId: schemaShape.organizationInvoiceRefId.stringSpec({\n meaning: 'The invoice that bills this cost, set once by `link_invoice`.',\n whyItMatters: 'Its presence is what keeps the aggregate past its organization\\'s deletion, for the statutory bookkeeping period.',\n semanticRole: 'identifier',\n }),\n invoiceLinkedAt: schemaShape.invoiceLinkedAt.dateSpec({\n meaning: 'When `link_invoice` linked the invoice: stamped by the first link, in the same write, and never rewritten.',\n whyItMatters: 'It is what proves a link\\'s commit landed when the store lost its reply: the invoice id cannot, since a second caller linking the same invoice leaves the same id. Absent on an unlinked aggregate, and on one linked before the field existed.',\n temporalRole: 'occurred',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', temporalRole: 'creation' }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Write one closed period. Written only by the engine\\'s period close.',\n outcome: 'The month\\'s cost for the organization and currency is recorded.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'Internal write path.' }],\n },\n [Op.READ]: {\n purpose: 'Read one month\\'s model cost of one organization, for the application\\'s billing flow.',\n outcome: 'The aggregate is returned.',\n whenToUse: 'Before invoicing a month, to check its total and whether it is already linked.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregate was found.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' }],\n },\n [Op.LIST]: {\n purpose: 'Find the aggregates to invoice: by organization, month (`periodStart`) and currency.',\n outcome: 'The matching aggregates are returned, with the id `link_invoice` takes.',\n whenToUse: 'The billing flow is about to invoice an organization\\'s month and needs the aggregate to link.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregates were returned.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' }],\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door the retention policy requires. Route-less; the rows hold no personal data about their own subject, so nothing is scrubbed (the billed tenant\\'s name is kept under the statutory retention, #2535).',\n outcome: 'The retained marker only.',\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention-class sweep, and the unlinked aggregates of a deleted organization. No public deletion route.',\n outcome: 'Aggregates past their BUSINESS_RECORDS period, or unbilled aggregates of a deleted organization, are removed.',\n idempotent: true,\n },\n [ModelCostPeriodAggregates_Operations.LINK_INVOICE]: {\n operationId: ModelCostPeriodAggregates_Operations.LINK_INVOICE,\n purpose: 'Record that an invoice bills this aggregate\\'s model cost.',\n outcome: 'The aggregate names its invoice and when it was linked (`invoiceLinkedAt`), and is kept past its organization\\'s deletion for the statutory period. The link is written to the audit trail.',\n whenToUse: 'The application\\'s billing flow issued an invoice for the month\\'s model cost of this organization.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The aggregate is linked; the updated aggregate is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an application super-administrator or billing manager.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such aggregate, or the invoice is not one of the aggregate\\'s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The aggregate is already linked to another invoice; a link is set once.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The link\\'s commit reply was lost and the aggregate could not be read back: it may be linked (`error.customMessageReference`: `resource_operation_outcome_unknown`). Read the aggregate before linking again.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Link August\\'s model cost to the invoice that bills it',\n request: { modelCostPeriodAggregateId: EXAMPLE_AGGREGATE._id, organizationInvoiceRefId: EXAMPLE_AGGREGATE.organizationInvoiceRefId },\n response: EXAMPLE_AGGREGATE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'One aggregate per organization, calendar month and currency; a closed period is final.',\n 'Every total is the exact sum of its calls\\' costs, rounded up once.',\n 'Linked to at most one invoice, once. Only a linked aggregate outlives its organization.',\n 'Currencies are never converted: each currency has its own aggregate.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'Names an aggregate by the organization it bills, by the name copied at the close (`organizationName`, else its id on an older row), and the month it covers, so an operator scanning a month reads whose cost each row is. Built from summary fields, because the list carries only those.',\n },\n layout: {\n purpose: 'Read-only facts: the organization and the month, what it cost and in which currency, how many calls were priced and how many were not, the tokens behind them, when the period closed, and which invoice bills it. The cache and reasoning token rows hide when empty.',\n displayPurpose: 'Settings rows on the detail; a list card shows the cost, the currency and the invoice under its month heading, the invoice absent until one bills it. The batch writes every row, so there is no edit layout.',\n },\n views: {\n [Op.LIST]: {\n purpose: 'Every organization\\'s model cost, grouped by the month it covers. Reached from Settings → Administration → Model costs.',\n whenToUse: 'Reconciling model spend against invoices, or finding the months nobody has billed yet.',\n },\n [Op.READ]: {\n purpose: 'One organization\\'s month in one currency, reached by drilling into a list row rather than by its own route.',\n whenToUse: 'Reading every total of a month, and which invoice bills it.',\n },\n [ModelCostPeriodAggregates_Operations.LINK_INVOICE]: {\n purpose: 'A row action recording that an invoice bills this cost, for an operator doing by hand what the billing flow normally does.',\n whenToUse: 'An invoice for the month was issued outside the application\\'s billing flow.',\n },\n },\n }),\n);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-usage-ceiling-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,uDAAuD,EAAE,8BAsGrE,CAAC"}
|
package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `organizationModelUsageCeilingState` — Wildo SaaS engine specification (#3030).
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: `ModelUsageCeilingStateSchema` (`flows-actors/model-usage-ceiling-state.shared.schemas.ts`)
|
|
6
|
+
* - Factory: `modelUsageCeilingStateResourceConfiguration_InitializationFactory`
|
|
7
|
+
* - Writer and reader: `A2ATokenBudgetBackendService` (`@wildo-ai/saas-backend-lib`), on every embedding, document
|
|
8
|
+
* extraction and content screening made for an organization.
|
|
9
|
+
*
|
|
10
|
+
* Why this is a resource of its own, keyed (organizationId, unit), is the schema file's header; it is not restated here.
|
|
11
|
+
*/
|
|
12
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
13
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
14
|
+
import { CoreResourceOperation as Op, ModelUsageCeilingStateSchema, ModelUsageUnit, ResourcePrimaryScope, modelUsageCeilingStateResourceConfiguration_InitializationFactory as modelUsageCeilingStateFactory, } from '@wildo-ai/saas-models';
|
|
15
|
+
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
16
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
17
|
+
const enumDeclaration = (exportName) => ({
|
|
18
|
+
packageName: '@wildo-ai/saas-models',
|
|
19
|
+
exportName,
|
|
20
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
21
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
22
|
+
});
|
|
23
|
+
export const organizationModelUsageCeilingStateResourceSpecification = resourceSpecification(modelUsageCeilingStateFactory, ModelUsageCeilingStateSchema, ({ schemaShape }) => ({
|
|
24
|
+
purpose: 'Count how much of one non-generation unit (embedding tokens, document-extraction pages, content-screening text records) an organization\'s provider calls have spent in the current period.',
|
|
25
|
+
businessRole: 'The consumption half of the organization\'s unit ceilings (`ai.embeddings.tokensPerPeriod`, `ai.documentExtraction.pagesPerPeriod`, `ai.contentSafety.textRecordsPerPeriod`), compared before every such call against what the organization\'s plan grants, so indexing, OCR and screening cannot become unbounded provider spend.',
|
|
26
|
+
lifecycleRole: 'Opened on the organization\'s first charged call of a unit, incremented after every one, reset in place when the period changes, and deleted with the organization or once nobody has spent against it for the application\'s resource-data period.',
|
|
27
|
+
audience: LabelAudience.DEVELOPER,
|
|
28
|
+
subDomain: EngineResourceSubDomain.FLOWS_ACTORS,
|
|
29
|
+
codeHandling: {
|
|
30
|
+
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelUsageCeilingStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
31
|
+
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelUsageCeilingStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
32
|
+
resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_MODEL_USAGE_CEILING_STATE' },
|
|
33
|
+
operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },
|
|
34
|
+
notes: [
|
|
35
|
+
'Every operation is INTERNAL_CALL and route-less: the token budget service is the only writer and reader, and an organization sees its usage through `GET /features/resolved`, whose meter reads this row through the service\'s usage readers (one per unit).',
|
|
36
|
+
'There is deliberately NO UPDATE operation: the counter is advanced by the atomic repository-tier increment (`atomicIncrementField`), so concurrent calls cannot lose usage to a read-modify-write race.',
|
|
37
|
+
'The ceiling is not stored here: it is the unit\'s LIMIT feature (`modelUsageCeilingFeatureIdOf(unit)`), resolved live from the ORGANIZATION\'s plan.',
|
|
38
|
+
'Generation tokens are never counted here: they are the organization budget\'s (`a2a.llm.tokensPerPeriod`), a different unit priced differently (decided on #2969).',
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
fields: {
|
|
42
|
+
_id: schemaShape._id.stringSpec({ meaning: 'Document id of the organization\'s counter for one unit.', semanticRole: 'identifier' }),
|
|
43
|
+
organizationId: schemaShape.organizationId.foreignKeySpec({
|
|
44
|
+
meaning: 'The organization whose plan grants the ceiling and whose calls this row counts.',
|
|
45
|
+
whyItMatters: 'The ceiling is per organization, and the row is deleted with it.',
|
|
46
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
47
|
+
}),
|
|
48
|
+
unit: schemaShape.unit.enumSpec({
|
|
49
|
+
meaning: 'Which unit this row counts.',
|
|
50
|
+
whyItMatters: 'Unique together with the organization on both stores, so two first-ever calls racing cannot open two rows and split the unit\'s consumption.',
|
|
51
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
52
|
+
enumDeclaration: enumDeclaration('ModelUsageUnit'),
|
|
53
|
+
values: {
|
|
54
|
+
[ModelUsageUnit.EMBEDDING_TOKENS]: { meaning: 'Input tokens of embedding calls: RAG indexing, and the query a retrieval embeds.' },
|
|
55
|
+
[ModelUsageUnit.EXTRACTION_PAGES]: { meaning: 'Pages a document-extraction provider processed.' },
|
|
56
|
+
[ModelUsageUnit.SCREENING_TEXT_RECORDS]: { meaning: 'Text records (up to 1,000 characters each) a content-safety classifier was sent, for screening and moderation alike.' },
|
|
57
|
+
},
|
|
58
|
+
}),
|
|
59
|
+
periodKey: schemaShape.periodKey.stringSpec({
|
|
60
|
+
meaning: 'The period this counter covers: a UTC calendar month (`YYYY-MM`), the organization budget\'s own window.',
|
|
61
|
+
whyItMatters: 'The reset boundary: a row stamped with an earlier period reads as zero, and the next call rolls it in place.',
|
|
62
|
+
semanticRole: 'identifier',
|
|
63
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
64
|
+
}),
|
|
65
|
+
consumedUnits: schemaShape.consumedUnits.numberSpec({
|
|
66
|
+
meaning: 'What the organization\'s calls consumed of `unit` within `periodKey`: tokens, pages or text records.',
|
|
67
|
+
whyItMatters: 'The value the gate compares with the unit\'s ceiling; once it reaches the ceiling, the organization\'s calls of that unit are refused for the rest of the period.',
|
|
68
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
69
|
+
}),
|
|
70
|
+
lastChargedAt: schemaShape.lastChargedAt.dateSpec({ meaning: 'When a call was last charged against this counter.', whyItMatters: 'Observability only; nothing gates on it.', temporalRole: 'occurred' }),
|
|
71
|
+
createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization\'s counter for this unit was first opened.', temporalRole: 'creation' }),
|
|
72
|
+
updatedAt: schemaShape.updatedAt.dateSpec({
|
|
73
|
+
meaning: 'When the counter was last incremented or rolled to a new period.',
|
|
74
|
+
whyItMatters: 'The retention clock (`LAST_UPDATED`): a counter nobody has spent against for the resource-data period is removed.',
|
|
75
|
+
temporalRole: 'modified',
|
|
76
|
+
}),
|
|
77
|
+
},
|
|
78
|
+
operations: {
|
|
79
|
+
[Op.CREATE]: {
|
|
80
|
+
purpose: 'Open the organization\'s counter for a unit on its first charged call of that unit. Internal write path.',
|
|
81
|
+
outcome: 'The organization has exactly one counter per unit, against which every later call of that unit is measured.',
|
|
82
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The counter was opened by the token budget service through `createAsSystem`.' }],
|
|
83
|
+
errorScenarios: [
|
|
84
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A concurrent call already opened the counter (the (organization, unit) pair is unique); the service increments the winner\'s row instead.' },
|
|
85
|
+
],
|
|
86
|
+
idempotent: false,
|
|
87
|
+
},
|
|
88
|
+
[Op.READ]: {
|
|
89
|
+
purpose: 'Read the organization\'s current-period consumption of a unit before a call, and for the entitlements meter. Internal read path.',
|
|
90
|
+
outcome: 'The gate can prove the organization is under the ceiling, or refuse the call.',
|
|
91
|
+
idempotent: true,
|
|
92
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The counter was found.' }],
|
|
93
|
+
errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The organization has made no charged call of this unit yet, which the gate reads as zero.' }],
|
|
94
|
+
},
|
|
95
|
+
[Op.LIST]: {
|
|
96
|
+
purpose: 'Internal read path: the retention sweep\'s discovery. No public route.',
|
|
97
|
+
outcome: 'The counters are found by the sweep.',
|
|
98
|
+
idempotent: true,
|
|
99
|
+
},
|
|
100
|
+
[Op.DELETE]: {
|
|
101
|
+
purpose: 'Internal cleanup: the tenant purge\'s cascade and the retention sweep. No public deletion route, because removing a row resets the organization\'s recorded usage.',
|
|
102
|
+
outcome: 'The counter is removed.',
|
|
103
|
+
idempotent: true,
|
|
104
|
+
},
|
|
105
|
+
[Op.DELETE_MANY]: {
|
|
106
|
+
purpose: 'Internal cleanup: the retention sweep removes counters nobody has spent against for the resource-data period. No public deletion route.',
|
|
107
|
+
outcome: 'The counters are removed.',
|
|
108
|
+
idempotent: true,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
businessConstraints: [
|
|
112
|
+
'Written only by the token budget service: it opens the row through `createAsSystem` and advances it through an atomic increment, never through an update operation.',
|
|
113
|
+
'Fails closed: a ceiling the plan grants whose consumption cannot be read refuses the call, and so does a plan that cannot be read. An ungranted or unlimited ceiling refuses nothing.',
|
|
114
|
+
'Consumption is known only after a call completes and is recorded without being awaited, so the organization can exceed the ceiling by the calls in flight when it is reached.',
|
|
115
|
+
'Holds no personal data: the row names an organization and a unit only, so no erasure reaches it.',
|
|
116
|
+
],
|
|
117
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
|
|
118
|
+
//# sourceMappingURL=model-usage-ceiling-state.resource.specification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-usage-ceiling-state.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;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YACT,OAAO,EAAE,wEAAwE;YACjF,OAAO,EAAE,sCAAsC;YAC/C,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,oKAAoK;YAC7K,OAAO,EAAE,yBAAyB;YAClC,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,yIAAyI;YAClJ,OAAO,EAAE,2BAA2B;YACpC,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,qKAAqK;QACrK,uLAAuL;QACvL,+KAA+K;QAC/K,kGAAkG;KACnG;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `organizationModelUsageCeilingState` — Wildo SaaS engine specification (#3030).\n *\n * Inputs:\n * - Schema: `ModelUsageCeilingStateSchema` (`flows-actors/model-usage-ceiling-state.shared.schemas.ts`)\n * - Factory: `modelUsageCeilingStateResourceConfiguration_InitializationFactory`\n * - Writer and reader: `A2ATokenBudgetBackendService` (`@wildo-ai/saas-backend-lib`), on every embedding, document\n * extraction and content screening made for an organization.\n *\n * Why this is a resource of its own, keyed (organizationId, unit), is the schema file's header; it is not restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ModelUsageCeilingStateSchema,\n ModelUsageUnit,\n ResourcePrimaryScope,\n modelUsageCeilingStateResourceConfiguration_InitializationFactory as modelUsageCeilingStateFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const organizationModelUsageCeilingStateResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n modelUsageCeilingStateFactory,\n ModelUsageCeilingStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Count how much of one non-generation unit (embedding tokens, document-extraction pages, content-screening text records) an organization\\'s provider calls have spent in the current period.',\n businessRole: 'The consumption half of the organization\\'s unit ceilings (`ai.embeddings.tokensPerPeriod`, `ai.documentExtraction.pagesPerPeriod`, `ai.contentSafety.textRecordsPerPeriod`), compared before every such call against what the organization\\'s plan grants, so indexing, OCR and screening cannot become unbounded provider spend.',\n lifecycleRole: 'Opened on the organization\\'s first charged call of a unit, incremented after every one, reset in place when the period changes, and deleted with the organization or once nobody has spent against it for the application\\'s resource-data period.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ModelUsageCeilingStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'modelUsageCeilingStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_MODEL_USAGE_CEILING_STATE' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },\n notes: [\n 'Every operation is INTERNAL_CALL and route-less: the token budget service is the only writer and reader, and an organization sees its usage through `GET /features/resolved`, whose meter reads this row through the service\\'s usage readers (one per unit).',\n 'There is deliberately NO UPDATE operation: the counter is advanced by the atomic repository-tier increment (`atomicIncrementField`), so concurrent calls cannot lose usage to a read-modify-write race.',\n 'The ceiling is not stored here: it is the unit\\'s LIMIT feature (`modelUsageCeilingFeatureIdOf(unit)`), resolved live from the ORGANIZATION\\'s plan.',\n 'Generation tokens are never counted here: they are the organization budget\\'s (`a2a.llm.tokensPerPeriod`), a different unit priced differently (decided on #2969).',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Document id of the organization\\'s counter for one unit.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose plan grants the ceiling and whose calls this row counts.',\n whyItMatters: 'The ceiling is per organization, and the row is deleted with it.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n unit: schemaShape.unit.enumSpec({\n meaning: 'Which unit this row counts.',\n whyItMatters: 'Unique together with the organization on both stores, so two first-ever calls racing cannot open two rows and split the unit\\'s consumption.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('ModelUsageUnit'),\n values: {\n [ModelUsageUnit.EMBEDDING_TOKENS]: { meaning: 'Input tokens of embedding calls: RAG indexing, and the query a retrieval embeds.' },\n [ModelUsageUnit.EXTRACTION_PAGES]: { meaning: 'Pages a document-extraction provider processed.' },\n [ModelUsageUnit.SCREENING_TEXT_RECORDS]: { meaning: 'Text records (up to 1,000 characters each) a content-safety classifier was sent, for screening and moderation alike.' },\n },\n }),\n periodKey: schemaShape.periodKey.stringSpec({\n meaning: 'The period this counter covers: a UTC calendar month (`YYYY-MM`), the organization budget\\'s own window.',\n whyItMatters: 'The reset boundary: a row stamped with an earlier period reads as zero, and the next call rolls it in place.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n consumedUnits: schemaShape.consumedUnits.numberSpec({\n meaning: 'What the organization\\'s calls consumed of `unit` within `periodKey`: tokens, pages or text records.',\n whyItMatters: 'The value the gate compares with the unit\\'s ceiling; once it reaches the ceiling, the organization\\'s calls of that unit are refused for the rest of the period.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastChargedAt: schemaShape.lastChargedAt.dateSpec({ meaning: 'When a call was last charged against this counter.', whyItMatters: 'Observability only; nothing gates on it.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization\\'s counter for this unit was first opened.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the counter was last incremented or rolled to a new period.',\n whyItMatters: 'The retention clock (`LAST_UPDATED`): a counter nobody has spent against for the resource-data period is removed.',\n temporalRole: 'modified',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Open the organization\\'s counter for a unit on its first charged call of that unit. Internal write path.',\n outcome: 'The organization has exactly one counter per unit, against which every later call of that unit is measured.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The counter was opened by the token budget service through `createAsSystem`.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A concurrent call already opened the counter (the (organization, unit) pair is unique); the service increments the winner\\'s row instead.' },\n ],\n idempotent: false,\n },\n [Op.READ]: {\n purpose: 'Read the organization\\'s current-period consumption of a unit before a call, and for the entitlements meter. Internal read path.',\n outcome: 'The gate can prove the organization is under the ceiling, or refuse the call.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The counter was found.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The organization has made no charged call of this unit yet, which the gate reads as zero.' }],\n },\n [Op.LIST]: {\n purpose: 'Internal read path: the retention sweep\\'s discovery. No public route.',\n outcome: 'The counters are found by the sweep.',\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Internal cleanup: the tenant purge\\'s cascade and the retention sweep. No public deletion route, because removing a row resets the organization\\'s recorded usage.',\n outcome: 'The counter is removed.',\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention sweep removes counters nobody has spent against for the resource-data period. No public deletion route.',\n outcome: 'The counters are removed.',\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Written only by the token budget service: it opens the row through `createAsSystem` and advances it through an atomic increment, never through an update operation.',\n 'Fails closed: a ceiling the plan grants whose consumption cannot be read refuses the call, and so does a plan that cannot be read. An ungranted or unlimited ceiling refuses nothing.',\n 'Consumption is known only after a call completes and is recorded without being awaited, so the organization can exceed the ceiling by the calls in flight when it is reached.',\n 'Holds no personal data: the row names an organization and a unit only, so no erasure reaches it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-approval-requests.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/flows-actors/resources/operation-approval-requests.resource.specification.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,8CAA8C,EAAE,8BA+N5D,CAAC"}
|