@wildo-ai/saas-specifications 1.1.5 → 1.1.7
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 +10 -8
- 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 +14 -13
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +34 -13
- package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
- 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-validation.d.ts +39 -13
- 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 +43 -13
- 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 +90 -2
- 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 +70 -6
- 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 +26 -4
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
- 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 +70 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
- 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 +285 -30
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
- 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 +3 -2
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
- 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 +8 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +3 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +3 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.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 +12 -2
- 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 +30 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
- package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
- package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
- package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.js +2 -2
- package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.js +2 -2
- package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.js +2 -2
- package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +2 -2
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.js +2 -2
- package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
- package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.js +2 -2
- package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.js +2 -2
- package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.js +2 -2
- package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
- package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.js +2 -2
- package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +6 -0
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
- package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +1 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +110 -24
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
- 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 +148 -14
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
- 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 +98 -11
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
- package/dist/esm/assurance/assurance-document-system.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 +295 -31
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +107 -14
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.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 +23 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-release.d.ts +7 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +11 -2
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +6 -5
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
- 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 +35 -33
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -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.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
- 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 +1 -0
- 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 +45 -32
- 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 +1 -23
- 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 +185 -31
- 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 +2 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
- 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 +1 -0
- 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 +11 -7
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
- 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 +0 -24
- 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 +76 -16
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
- 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.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -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 +15 -2
- 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 +45 -10
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
- 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 +52 -12
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +1 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
- package/dist/esm/engine/engine-resource-specifications.registry.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 +69 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
- 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 +5 -5
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
- 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 +5 -5
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
- 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.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +7 -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.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -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.js +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
- 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 +16 -9
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
- 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/decision/ai-approval-request.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
- 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-invitations-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
- 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/billing/billing-pricing-table.frontend-component.specification.js +2 -2
- 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/formatters/display-field-number.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.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 +1 -1
- 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/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +3 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
- 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/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.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.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
- 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 +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
- 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-run-records.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
- 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 +19 -6
- 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 +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +2 -2
- 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/system-of-record-partition-assignments.resource.specification.js +4 -4
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.js +1 -0
- package/dist/esm/engine/notifications/resources/index.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
- 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 +20 -5
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
- 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 +8 -11
- 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 +4 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
- package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +4 -2
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +2 -0
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
- 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 +40 -12
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
- 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 +3 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +1 -1
- package/dist/esm/engine/providers/google.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.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/index.d.ts +13 -5
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +19 -6
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -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.d.ts +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
- 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.js +2 -2
- 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.js +2 -2
- 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 +0 -4
- 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 +0 -3
- 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 +0 -3
- 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 +7 -7
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
- 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 +0 -3
- 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 +11 -18
- 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.js +6 -6
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
- package/dist/esm/engine/users/resources/users.resource.specification.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 +29 -10
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -1228
|
@@ -159,6 +159,10 @@ export const applicationAccessGrantsResourceSpecification = resourceSpecificatio
|
|
|
159
159
|
whyItMatters: 'The whole feature, as a field. It is optional in the schema because it is unset while pending and stays unset on a denied or revoked grant — never because an ACTIVE grant might lack one. The only writer of ACTIVE is `approve`, and `approve` refuses when this would equal `operatorUserId`.',
|
|
160
160
|
importance: FieldSemanticImportance.PRIMARY,
|
|
161
161
|
}),
|
|
162
|
+
approvedAt: schemaShape.approvedAt.dateSpec({
|
|
163
|
+
meaning: 'When the second administrator approved the elevation. Absent while it is pending and on a denied request.',
|
|
164
|
+
temporalRole: 'occurred',
|
|
165
|
+
}),
|
|
162
166
|
grantedMachineCredential: schemaShape.grantedMachineCredential.objectSpec({
|
|
163
167
|
meaning: 'The one machine credential of this application — an API key or an OAuth client — the elevation is for, when it is for a machine rather than the requester.',
|
|
164
168
|
whyItMatters: 'Under independent audit-read approval a machine could otherwise never read, since a grant was keyed on a user and a machine has none — so an assurance collector, the reader that policy most wants governed, was shut out. When set, the grant admits exactly that credential and NEVER the administrator who requested it: naming a machine must not be a way to mint oneself a window. Validated against the live credential at request time and never updated, because re-pointing a signed grant at another credential would be a grant nobody signed. Like any application-wide grant it satisfies EVERY read that requires one — not only the audit viewer — so what the credential can actually read is still bounded by the roles it holds: give it the read-only audit-evidence reader role, which reaches the audit viewer and nothing else.',
|
|
@@ -233,8 +237,8 @@ export const applicationAccessGrantsResourceSpecification = resourceSpecificatio
|
|
|
233
237
|
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The elevation request was recorded and awaits a second administrator.' },
|
|
234
238
|
],
|
|
235
239
|
errorScenarios: [
|
|
236
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because it is the only thing the approver has to decide on.'
|
|
237
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`grantedMachineCredential` names no active, unexpired API key or OAuth client of this application. The refusal does not say which condition failed.'
|
|
240
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because it is the only thing the approver has to decide on.' },
|
|
241
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`grantedMachineCredential` names no active, unexpired API key or OAuth client of this application. The refusal does not say which condition failed.' },
|
|
238
242
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
|
|
239
243
|
],
|
|
240
244
|
idempotent: false,
|
|
@@ -367,18 +371,18 @@ export const applicationAccessGrantsResourceSpecification = resourceSpecificatio
|
|
|
367
371
|
],
|
|
368
372
|
}), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION }), () => ({
|
|
369
373
|
label: {
|
|
370
|
-
purpose: 'The requesting operator,
|
|
374
|
+
purpose: 'The instant the request was made, in the viewer\'s date-time format. The record carries the requesting operator only as a user id, and a synchronous label cannot resolve a name, so the operator is shown — resolved to the person — as the first row of the body and on the card instead.',
|
|
371
375
|
},
|
|
372
376
|
layout: {
|
|
373
377
|
purpose: 'Three sections that separate the two identities the control exists to keep apart: `request` (who asked and why), `decision` (who signed and why), `window` (how long, and which credential it admits). Folding decision into request would put requester and approver in one block, which is precisely the distinction `applicationAccessGrantApproverIsDistinct` enforces.',
|
|
374
|
-
displayPurpose: 'Read-only. Every state change goes through a named verb — request, approve, deny, revoke, expire — and none through a form, so there is deliberately no edit layout.',
|
|
378
|
+
displayPurpose: 'Read-only. Every state change goes through a named verb — request, approve, deny, revoke, expire — and none through a form, so there is deliberately no edit layout. The header carries the request instant and the status badge; the three titled cards follow, with no descriptions. Both identities resolve to the person. The decision reason and the machine credential hide when empty; the approver row stays, because on a pending request its emptiness is the answer.',
|
|
379
|
+
summaryPurpose: 'A card titled with the request instant, then who asked, the status badge, and the expiry labelled.',
|
|
375
380
|
sections: {
|
|
376
381
|
request: {
|
|
377
|
-
purpose: '
|
|
382
|
+
purpose: 'The requesting operator and the stated justification. Status and the instant are the page header.',
|
|
378
383
|
whenToUse: 'The review queue, and the first block of any single-grant read.',
|
|
379
384
|
textSlots: {
|
|
380
|
-
title: { purpose: '
|
|
381
|
-
description: { purpose: 'State that a request is written PENDING_APPROVAL and never ACTIVE — a requester cannot create their own window.' },
|
|
385
|
+
title: { purpose: 'Label the request block: who asked, and why.' },
|
|
382
386
|
},
|
|
383
387
|
},
|
|
384
388
|
decision: {
|
|
@@ -386,7 +390,6 @@ export const applicationAccessGrantsResourceSpecification = resourceSpecificatio
|
|
|
386
390
|
whenToUse: 'Auditing whether an elevation was independently approved, and on what grounds.',
|
|
387
391
|
textSlots: {
|
|
388
392
|
title: { purpose: 'Label the signature block.' },
|
|
389
|
-
description: { purpose: 'Make explicit that the approver is refused if they are the requester, so an empty approver on an ACTIVE row would be a defect rather than a shortcut.' },
|
|
390
393
|
},
|
|
391
394
|
},
|
|
392
395
|
window: {
|
|
@@ -394,7 +397,6 @@ export const applicationAccessGrantsResourceSpecification = resourceSpecificatio
|
|
|
394
397
|
whenToUse: 'Judging live exposure, and confirming a grant admits the credential it was meant to.',
|
|
395
398
|
textSlots: {
|
|
396
399
|
title: { purpose: 'Label the validity block.' },
|
|
397
|
-
description: { purpose: 'Note the window is deliberately shorter than a tenant elevation\'s — it reaches every customer and none of them can see or revoke it — and that only the clock ends it early.' },
|
|
398
400
|
},
|
|
399
401
|
},
|
|
400
402
|
},
|
package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-access-grants.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/application-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,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ACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iMAAiM,EAAE,SAAS,EAAE,4EAA4E,EAAE;QAClT,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0EAA0E,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC3J,CAAC,kCAAkC,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,4DAA4D,EAAE,SAAS,EAAE,4EAA4E,EAAE;QACvN,CAAC,kCAAkC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,sEAAsE,EAAE;QAC5L,CAAC,kCAAkC,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,SAAS,EAAE,kCAAkC,EAAE;QAClJ,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,SAAS,EAAE,8DAA8D,EAAE;QAC/K,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,mHAAmH,EAAE,SAAS,EAAE,kDAAkD,EAAE;KAC7O;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `applicationAccessGrants` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/authorizations/application-access-grants.shared.schemas.ts\n * → `ApplicationAccessGrantSchema`\n * - Factory: engine/saas-models/src/security/authorizations/application-access-grants.shared.resources-config.schemas.ts\n * → `applicationAccessGrantsResourceConfiguration_InitializationFactory`\n * - Custom operations: `ApplicationAccessGrants_Operations`\n *\n * ## Why this exists BESIDE `platformAccessGrants` rather than inside it\n *\n * The tenant grant governs an operator reaching into ONE named organization, and the organization\n * approves. That is the industry ceiling (Microsoft Customer Lockbox, Google Access Approval) and it\n * works. It cannot govern a read that names NO tenant — an enumeration of the whole user directory,\n * or of the cross-tenant audit trail when independent approval is configured — because there is no single customer to ask and no tenant for\n * the route to carry.\n *\n * Measured 2026-09-09: the NARROW act required a requested, justified, time-bound, tenant-approved\n * grant, while the WIDEST read required an administrator role and nothing else, at a strictly LOWER\n * role tier. This resource is the answer, and its one new idea is the TWO-PERSON RULE: the approval\n * comes from a second platform administrator, never the requester.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.APPLICATION_ACCESS_GRANTS]` in any\n * preset under engine/presets-components/src/config/resources/. The operator-facing queue is not\n * built yet; today the resource is consumed by the authorizer's admission predicate and by the\n * platform API.\n *\n * Why `APPLICATION` scope: the elevation belongs to the deployment, not to any tenant inside it. The\n * scope is expressed once, in the registry relationship APPLICATION → APPLICATION_ACCESS_GRANTS\n * carrying `isPrimaryScope: true`; the runtime config deliberately does not restate it.\n */\n\nimport { applicationAccessGrantsAdminResourceUIBehavior as applicationAccessGrantsUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n ApplicationAccessGrantSchema,\n ApplicationAccessGrants_Operations,\n CoreResourceOperation as Op,\n PlatformAccessGrantStatus,\n ResourcePrimaryScope,\n applicationAccessGrantsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_ACCESS_PENDING_GRANT_ID = 'application_access_grant_01J5Q2A3B4C5D6E7F8G9H0J1KL';\nconst APPLICATION_ACCESS_ACTIVE_GRANT_ID = 'application_access_grant_01J5Q2C4D5E6F7G8H9J0K1L2MN';\nconst APPLICATION_ACCESS_OPERATOR_USER_ID = 'user_01J5Q2E5F6G7H8J9K0L1M2N3PQ';\nconst APPLICATION_ACCESS_SECOND_ADMIN_USER_ID = 'user_01J5Q2G6H7J8K9L0M1N2P3Q4RS';\nconst APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID = 'app_01J5Q2J7K8L9M0N1P2Q3R4S5TU';\n\nconst applicationAccessPendingGrantExample = {\n _id: APPLICATION_ACCESS_PENDING_GRANT_ID,\n applicationId: APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID,\n operatorUserId: APPLICATION_ACCESS_OPERATOR_USER_ID,\n justification: 'Incident INC-5107 spans several tenants; I need the audit view, configured for independent approval, to find which are affected.',\n status: PlatformAccessGrantStatus.PENDING_APPROVAL,\n expiresAt: '2026-09-09T13:30:00.000Z',\n createdAt: '2026-09-09T13:00:00.000Z',\n updatedAt: '2026-09-09T13:00:00.000Z',\n};\n\nconst applicationAccessActiveGrantExample = {\n ...applicationAccessPendingGrantExample,\n _id: APPLICATION_ACCESS_ACTIVE_GRANT_ID,\n status: PlatformAccessGrantStatus.ACTIVE,\n approvedByUserId: APPLICATION_ACCESS_SECOND_ADMIN_USER_ID,\n approvedAt: '2026-09-09T13:04:00.000Z',\n updatedAt: '2026-09-09T13:04:00.000Z',\n};\n\ntype Cfg = ReturnType<typeof applicationAccessGrantsResourceConfiguration_InitializationFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst applicationAccessGrantsUIBehavior = applicationAccessGrantsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\n/**\n * Carries a frontend overlay since 2026-09-17. The mechanism shipped with no surface at all, which\n * is the worst possible shape for a two-person rule: its whole justification is that the\n * consequence becomes VISIBLE rather than prevented, and an elevation nobody can read makes nothing\n * visible. The narration below describes the review queue an administrator now actually reaches.\n */\nexport const applicationAccessGrantsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(applicationAccessGrantsUIBehavior),\n resourceSpecification(\n applicationAccessGrantsResourceConfiguration_InitializationFactory,\n ApplicationAccessGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Give a platform support team a justified, short-lived, second-signed way to perform application-wide reads that require elevation: the user directory and other enrolled surfaces, plus the audit viewer when its independent-approval policy is enabled.',\n businessRole: 'The deployment\\'s application-wide access ledger. It answers who asked to see across every tenant, why, which SECOND administrator agreed, how long the window lasted, and how it ended.',\n lifecycleRole: 'A platform administrator requests, stating a reason. The request is never usable on creation. A DIFFERENT platform administrator approves or denies it; the requester may withdraw or refuse their own request but can never approve it. Either can revoke an active window early, and expiry ends it automatically. Completed requests remain available as access-review history.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.AUTH,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationAccessGrantSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationAccessGrantsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_ACCESS_GRANTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationAccessGrants_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'The `status` vocabulary is SHARED with `platformAccessGrants` (`PlatformAccessGrantStatus`) rather than duplicated. The states really are the same states, and two enums holding the same five members is how a sweep, an admission predicate and a UI come to disagree about what `active` means.',\n 'There is no auto-approval and therefore no `autoApprovalReason` field. The tenant grant auto-approves when the tenant has not opted into approval or cannot approve — both statements about a NAMED tenant, and this row names none. A grant that could approve itself would make the two-person rule ceremonial.',\n 'No public CREATE or UPDATE. `requestAccess` is the only writer of a new row, and `approve` / `deny` / `revoke` / `expire` are the only status transitions. A generic CREATE would let a caller author their own `status` and mint an ACTIVE application-wide elevation with no second signature at all.',\n 'No DELETE at all — not even route-less. The tenant grant declares one solely so the ORGANIZATIONS composition cascade has a verb it can call; this resource is a REFERENCE child of the APPLICATION row, which is the deployment itself and is not purged, so there is no cascade and nothing to declare.',\n 'The lifecycle audit event is shared too: `CoreAuditableEventType.PLATFORM_ACCESS_GRANT_LIFECYCLE`, carrying `grantScope: application_wide` and no `targetOrganizationId`. One event so a reviewer asking \"what elevated access was granted, to whom, by whom?\" gets one query rather than a union of two they have to remember.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one application-wide elevation request.',\n whyItMatters: 'The address of every subsequent decision, and the value the audit trail carries as `authorizingGrantId` when a read is admitted under it — which is what joins an operator\\'s reads to the two administrators who signed for them.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The deployment this elevation is inside.',\n whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n operatorUserId: schemaShape.operatorUserId.foreignKeySpec({\n meaning: 'The platform administrator who requested the elevation.',\n whyItMatters: 'Server-authored from the session, never client-supplied, and it is the field the two-person rule measures against: `approve` refuses when the approver equals this value. An elevation whose subject the caller could choose would let one administrator mint application-wide access under another\\'s name and then sign it themselves.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why the operator needs to see across every tenant, in their own words.',\n whyItMatters: 'Required, and it carries more weight here than on the tenant grant: it is the ONLY thing the approving administrator has to decide on. A tenant grant\\'s approver knows their own tenant and their own support case; this approver knows nothing but this sentence. A second signature on an unstated reason is a countersignature on nothing.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where this elevation is in its lifecycle.',\n whyItMatters: 'Read together with `expiresAt`, never alone: the admission predicate accepts ACTIVE and then re-checks the window, so a grant whose window elapsed stops working whether or not anything has relabelled it. Every row starts PENDING_APPROVAL — there is no branch that reaches ACTIVE without a second administrator acting.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'When the elevation stops working.',\n whyItMatters: 'The control, not the label. Server-authored from the requested duration and clamped to ONE HOUR — a quarter of the tenant grant\\'s ceiling, because this elevation reaches every customer at once and no customer can see or revoke it, so the clock is the only thing that ends it on its own.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n approvedByUserId: schemaShape.approvedByUserId.foreignKeySpec({\n meaning: 'The SECOND administrator who signed.',\n whyItMatters: 'The whole feature, as a field. It is optional in the schema because it is unset while pending and stays unset on a denied or revoked grant — never because an ACTIVE grant might lack one. The only writer of ACTIVE is `approve`, and `approve` refuses when this would equal `operatorUserId`.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n grantedMachineCredential: schemaShape.grantedMachineCredential.objectSpec({\n meaning: 'The one machine credential of this application — an API key or an OAuth client — the elevation is for, when it is for a machine rather than the requester.',\n whyItMatters: 'Under independent audit-read approval a machine could otherwise never read, since a grant was keyed on a user and a machine has none — so an assurance collector, the reader that policy most wants governed, was shut out. When set, the grant admits exactly that credential and NEVER the administrator who requested it: naming a machine must not be a way to mint oneself a window. Validated against the live credential at request time and never updated, because re-pointing a signed grant at another credential would be a grant nobody signed. Like any application-wide grant it satisfies EVERY read that requires one — not only the audit viewer — so what the credential can actually read is still bounded by the roles it holds: give it the read-only audit-evidence reader role, which reaches the audit viewer and nothing else.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n decisionReason: schemaShape.decisionReason.stringSpec({\n meaning: 'The approver\\'s reason for refusing, or the revoker\\'s reason for withdrawing.',\n whyItMatters: 'What a later reader needs to tell a refusal that was considered from one that was reflexive. Scrubbed on subject erasure, like the justification, because it is free text one administrator wrote about another\\'s request.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one application-wide elevation request.',\n outcome: 'The request\\'s current state, including who asked, who signed and when the window closes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation request is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. There is no tenant-side reader here — an application-wide elevation has no customer to show it to, which is exactly why its approval had to become a second signature.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read a pending request',\n request: { applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID },\n response: applicationAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List elevation requests — the pending queue a second administrator works from, and the history a reviewer reads.',\n outcome: 'A page of elevation requests.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A page of elevation requests is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Work the pending queue',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: { data: [applicationAccessPendingGrantExample], total: 1, page: 1, limit: 20 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.COUNT]: {\n purpose: 'Count elevation requests matching a filter.',\n outcome: 'A number — how many requests are pending a signature, or how many were granted in a period.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'How many requests are awaiting a second signature',\n request: { status: PlatformAccessGrantStatus.PENDING_APPROVAL },\n response: { count: 1 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.REQUEST_ACCESS]: {\n operationId: ApplicationAccessGrants_Operations.REQUEST_ACCESS,\n purpose: 'Ask for a short, justified window in which the tenant-spanning reads become available.',\n outcome: 'A request in `pending_approval`, usable by nobody until a DIFFERENT platform administrator approves it. The window is recorded at creation and starts running then, so a request nobody signs simply lapses.',\n whenToUse: 'An operator needs an elevation-gated read that names no single tenant: the user directory, or the audit viewer with independent approval enabled, for a support case or incident spanning customers.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The elevation request was recorded and awaits a second administrator.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because it is the only thing the approver has to decide on.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`grantedMachineCredential` names no active, unexpired API key or OAuth client of this application. The refusal does not say which condition failed.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Ask to see across tenants for a multi-customer incident',\n request: {\n justification: 'Incident INC-5107 spans several tenants; I need the audit view, configured for independent approval, to find which are affected.',\n requestedDurationMinutes: 30,\n },\n response: applicationAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [ApplicationAccessGrants_Operations.APPROVE]: {\n operationId: ApplicationAccessGrants_Operations.APPROVE,\n purpose: 'Sign another administrator\\'s request — the second signature.',\n outcome: 'The request becomes `active` and names the approver. Until the window closes the tenant-spanning reads become available to exactly one principal: the REQUESTER — or, for a grant bound to a machine credential, that credential and not the requester.',\n whenToUse: 'A platform administrator has read the requester\\'s justification and agrees the application-wide reach is warranted.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation is now active, and its updated state — including the approver — is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The caller IS the requester — a request cannot be approved by the person who raised it — or the request is no longer `pending_approval`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'A second administrator signs',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'Reviewed against INC-5107; scope and window are proportionate.',\n },\n response: applicationAccessActiveGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.DENY]: {\n operationId: ApplicationAccessGrants_Operations.DENY,\n purpose: 'Refuse a pending request.',\n outcome: 'The request becomes `denied` and cannot be retried; a later need requires a new request.',\n whenToUse: 'A platform administrator judges the reach unwarranted — or the requester themselves thinks better of it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The request was denied, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Withdraw your own request',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',\n },\n response: {\n ...applicationAccessPendingGrantExample,\n status: PlatformAccessGrantStatus.DENIED,\n decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',\n updatedAt: '2026-09-09T13:06:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.REVOKE]: {\n operationId: ApplicationAccessGrants_Operations.REVOKE,\n purpose: 'End a pending or active elevation early.',\n outcome: 'The elevation becomes `revoked` and the tenant-spanning reads stop immediately instead of remaining available until the recorded expiry.',\n whenToUse: 'The support work finished before the window did, or a reviewer decides the reach should end now.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was revoked, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is already denied, revoked or expired. Only a `pending_approval` or `active` one can be revoked.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Close the window as soon as the incident is scoped',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_ACTIVE_GRANT_ID,\n decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',\n },\n response: {\n ...applicationAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.REVOKED,\n decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',\n updatedAt: '2026-09-09T13:18:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.EXPIRE]: {\n operationId: ApplicationAccessGrants_Operations.EXPIRE,\n purpose: 'Relabel an active elevation whose window has closed.',\n outcome: 'The elevation reads `expired` rather than `active` in the queue and the history.',\n whenToUse: 'Never by hand. The credential-expiry sweep dispatches it and nothing else does — there is no route and no affordance, because nobody needs a button that declares a date has passed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was relabelled expired.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is not `active`. A denied or revoked one is terminal and must keep saying which — relabelling it would rewrite the decision history a reviewer reads.' },\n ],\n idempotent: false,\n examples: [{\n title: 'The sweep closes a lapsed window',\n request: {},\n response: {\n ...applicationAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.EXPIRED,\n updatedAt: '2026-09-09T13:31:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'THE control: `approve` refuses when the approver is the requester. Enforced TWICE, and neither half alone is the control — the operation\\'s `enabledCondition` makes the affordance disappear so no console renders an Approve button on one\\'s own request, and the custom implementation makes the transition impossible so a future variant authored without that condition cannot transition silently. The comparison itself lives in ONE exported predicate, which fails CLOSED when either identity is missing: an approval reaching the check with no decider has no second person behind it, and the naive inline form would admit exactly that case.',\n 'Customer approval is the industry ceiling and is structurally unavailable here — there is no single customer to ask — so a second signature is the strongest control that exists for this act. That is why AUTO-APPROVAL was rejected even though it is the tenant grant\\'s own default posture: that default is defensible only because a tenant can opt in above it, and there is no such party here.',\n 'Application-wide directory and declared cross-tenant reads retain their elevation gate. The application audit viewer is the explicit policy exception: auditTrail.applicationReadAccess defaults to AuditApplicationReadAccess.ROLE_BASED in all environments, while INDEPENDENT_APPROVAL requires this grant. Both modes keep administrator-role checks and crossing observations; role-based evidence carries no fabricated grant id. Grant requests themselves are never auto-approved.',\n 'The per-row tenant crossing is deliberately NOT gated on this grant. That door already works, approved by the customer it names; requiring an application-wide elevation there too would replace a customer-approvable control with a platform-internal one, which is a step DOWN the operator-access ladder.',\n 'Both grant resources are EXEMPT from the admission wholesale — this one and `platformAccessGrants`. An operator would otherwise need an application-wide grant in order to ask for one, and the second administrator would need one in order to read the queue and sign. The exemption is safe for the reason the tenant resource\\'s own bootstrap exemption is safe: these rows are the elevation ledger, they belong to no tenant, and reading them discloses no customer\\'s data.',\n 'Usability is EVALUATED, never read off `status`. A grant counts only when it is ACTIVE and `expiresAt` is still in the future, through the single predicate both grant resources share. The expiry sweep\\'s relabelling is bookkeeping for humans; if admission read the label, a lagging sweep would be an authorization hole rather than a stale display.',\n 'The window is SHORTER than a tenant elevation\\'s — 30 minutes by default against 60, one hour maximum against four — and the ORDER is the design rather than the numbers. A tenant elevation reaches one customer who can see and revoke it; this one reaches every customer and none of them can.',\n 'Terminal statuses are how an elevation ends. DENIED, EXPIRED and REVOKED are never edited back to life, and there is no delete verb of any kind: an elevation record either party could erase is not evidence.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'The requesting operator, because the first question asked of any elevation is WHO holds it.',\n },\n layout: {\n purpose: 'Three sections that separate the two identities the control exists to keep apart: `request` (who asked and why), `decision` (who signed and why), `window` (how long, and which credential it admits). Folding decision into request would put requester and approver in one block, which is precisely the distinction `applicationAccessGrantApproverIsDistinct` enforces.',\n displayPurpose: 'Read-only. Every state change goes through a named verb — request, approve, deny, revoke, expire — and none through a form, so there is deliberately no edit layout.',\n sections: {\n request: {\n purpose: 'Status, the requesting operator, the stated justification and the instant it was asked.',\n whenToUse: 'The review queue, and the first block of any single-grant read.',\n textSlots: {\n title: { purpose: 'Name the request by its operator.' },\n description: { purpose: 'State that a request is written PENDING_APPROVAL and never ACTIVE — a requester cannot create their own window.' },\n },\n },\n decision: {\n purpose: 'The second administrator, when they signed, and the reason they recorded.',\n whenToUse: 'Auditing whether an elevation was independently approved, and on what grounds.',\n textSlots: {\n title: { purpose: 'Label the signature block.' },\n description: { purpose: 'Make explicit that the approver is refused if they are the requester, so an empty approver on an ACTIVE row would be a defect rather than a shortcut.' },\n },\n },\n window: {\n purpose: 'Expiry, and the machine credential the grant admits when it was requested for one.',\n whenToUse: 'Judging live exposure, and confirming a grant admits the credential it was meant to.',\n textSlots: {\n title: { purpose: 'Label the validity block.' },\n description: { purpose: 'Note the window is deliberately shorter than a tenant elevation\\'s — it reaches every customer and none of them can see or revoke it — and that only the clock ends it early.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The review queue, reached from Settings → Administration → Access grants. A `status` quick-filter over `createdAt` day buckets, because an unsigned request is the only row that needs anybody.', whenToUse: 'Signing off pending elevations, and reviewing what has been held recently.' },\n [Op.READ]: { purpose: 'One elevation in full, including both identities and the stated reasons.', whenToUse: 'Auditing a specific window after the fact.' },\n [ApplicationAccessGrants_Operations.REQUEST_ACCESS]: { purpose: 'The bootstrap verb. Writes PENDING_APPROVAL, never ACTIVE.', whenToUse: 'An operator needs an application-wide read and does not yet hold a window.' },\n [ApplicationAccessGrants_Operations.APPROVE]: { purpose: 'The second signature; refuses the requester.', whenToUse: 'A different administrator has read the justification and accepts it.' },\n [ApplicationAccessGrants_Operations.DENY]: { purpose: 'Terminal refusal, with a recorded reason.', whenToUse: 'The justification does not hold.' },\n [ApplicationAccessGrants_Operations.REVOKE]: { purpose: 'Ends an ACTIVE window before its expiry.', whenToUse: 'Circumstances changed, or the elevation is no longer needed.' },\n [ApplicationAccessGrants_Operations.EXPIRE]: { purpose: 'ACTIVE → EXPIRED, dispatched by the credential-expiry sweep and by nothing else. Headless — no person invokes it.', whenToUse: 'Never by hand; use REVOKE to end a window early.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"application-access-grants.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/application-access-grants.resource.specification.ts"],"names":[],"mapp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ACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iMAAiM,EAAE,SAAS,EAAE,4EAA4E,EAAE;QAClT,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0EAA0E,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC3J,CAAC,kCAAkC,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,4DAA4D,EAAE,SAAS,EAAE,4EAA4E,EAAE;QACvN,CAAC,kCAAkC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,sEAAsE,EAAE;QAC5L,CAAC,kCAAkC,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,SAAS,EAAE,kCAAkC,EAAE;QAClJ,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,SAAS,EAAE,8DAA8D,EAAE;QAC/K,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,mHAAmH,EAAE,SAAS,EAAE,kDAAkD,EAAE;KAC7O;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `applicationAccessGrants` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/authorizations/application-access-grants.shared.schemas.ts\n * → `ApplicationAccessGrantSchema`\n * - Factory: engine/saas-models/src/security/authorizations/application-access-grants.shared.resources-config.schemas.ts\n * → `applicationAccessGrantsResourceConfiguration_InitializationFactory`\n * - Custom operations: `ApplicationAccessGrants_Operations`\n *\n * ## Why this exists BESIDE `platformAccessGrants` rather than inside it\n *\n * The tenant grant governs an operator reaching into ONE named organization, and the organization\n * approves. That is the industry ceiling (Microsoft Customer Lockbox, Google Access Approval) and it\n * works. It cannot govern a read that names NO tenant — an enumeration of the whole user directory,\n * or of the cross-tenant audit trail when independent approval is configured — because there is no single customer to ask and no tenant for\n * the route to carry.\n *\n * Measured 2026-09-09: the NARROW act required a requested, justified, time-bound, tenant-approved\n * grant, while the WIDEST read required an administrator role and nothing else, at a strictly LOWER\n * role tier. This resource is the answer, and its one new idea is the TWO-PERSON RULE: the approval\n * comes from a second platform administrator, never the requester.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.APPLICATION_ACCESS_GRANTS]` in any\n * preset under engine/presets-components/src/config/resources/. The operator-facing queue is not\n * built yet; today the resource is consumed by the authorizer's admission predicate and by the\n * platform API.\n *\n * Why `APPLICATION` scope: the elevation belongs to the deployment, not to any tenant inside it. The\n * scope is expressed once, in the registry relationship APPLICATION → APPLICATION_ACCESS_GRANTS\n * carrying `isPrimaryScope: true`; the runtime config deliberately does not restate it.\n */\n\nimport { applicationAccessGrantsAdminResourceUIBehavior as applicationAccessGrantsUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n ApplicationAccessGrantSchema,\n ApplicationAccessGrants_Operations,\n CoreResourceOperation as Op,\n PlatformAccessGrantStatus,\n ResourcePrimaryScope,\n applicationAccessGrantsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_ACCESS_PENDING_GRANT_ID = 'application_access_grant_01J5Q2A3B4C5D6E7F8G9H0J1KL';\nconst APPLICATION_ACCESS_ACTIVE_GRANT_ID = 'application_access_grant_01J5Q2C4D5E6F7G8H9J0K1L2MN';\nconst APPLICATION_ACCESS_OPERATOR_USER_ID = 'user_01J5Q2E5F6G7H8J9K0L1M2N3PQ';\nconst APPLICATION_ACCESS_SECOND_ADMIN_USER_ID = 'user_01J5Q2G6H7J8K9L0M1N2P3Q4RS';\nconst APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID = 'app_01J5Q2J7K8L9M0N1P2Q3R4S5TU';\n\nconst applicationAccessPendingGrantExample = {\n _id: APPLICATION_ACCESS_PENDING_GRANT_ID,\n applicationId: APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID,\n operatorUserId: APPLICATION_ACCESS_OPERATOR_USER_ID,\n justification: 'Incident INC-5107 spans several tenants; I need the audit view, configured for independent approval, to find which are affected.',\n status: PlatformAccessGrantStatus.PENDING_APPROVAL,\n expiresAt: '2026-09-09T13:30:00.000Z',\n createdAt: '2026-09-09T13:00:00.000Z',\n updatedAt: '2026-09-09T13:00:00.000Z',\n};\n\nconst applicationAccessActiveGrantExample = {\n ...applicationAccessPendingGrantExample,\n _id: APPLICATION_ACCESS_ACTIVE_GRANT_ID,\n status: PlatformAccessGrantStatus.ACTIVE,\n approvedByUserId: APPLICATION_ACCESS_SECOND_ADMIN_USER_ID,\n approvedAt: '2026-09-09T13:04:00.000Z',\n updatedAt: '2026-09-09T13:04:00.000Z',\n};\n\ntype Cfg = ReturnType<typeof applicationAccessGrantsResourceConfiguration_InitializationFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst applicationAccessGrantsUIBehavior = applicationAccessGrantsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\n/**\n * Carries a frontend overlay since 2026-09-17. The mechanism shipped with no surface at all, which\n * is the worst possible shape for a two-person rule: its whole justification is that the\n * consequence becomes VISIBLE rather than prevented, and an elevation nobody can read makes nothing\n * visible. The narration below describes the review queue an administrator now actually reaches.\n */\nexport const applicationAccessGrantsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(applicationAccessGrantsUIBehavior),\n resourceSpecification(\n applicationAccessGrantsResourceConfiguration_InitializationFactory,\n ApplicationAccessGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Give a platform support team a justified, short-lived, second-signed way to perform application-wide reads that require elevation: the user directory and other enrolled surfaces, plus the audit viewer when its independent-approval policy is enabled.',\n businessRole: 'The deployment\\'s application-wide access ledger. It answers who asked to see across every tenant, why, which SECOND administrator agreed, how long the window lasted, and how it ended.',\n lifecycleRole: 'A platform administrator requests, stating a reason. The request is never usable on creation. A DIFFERENT platform administrator approves or denies it; the requester may withdraw or refuse their own request but can never approve it. Either can revoke an active window early, and expiry ends it automatically. Completed requests remain available as access-review history.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.AUTH,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationAccessGrantSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationAccessGrantsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_ACCESS_GRANTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationAccessGrants_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'The `status` vocabulary is SHARED with `platformAccessGrants` (`PlatformAccessGrantStatus`) rather than duplicated. The states really are the same states, and two enums holding the same five members is how a sweep, an admission predicate and a UI come to disagree about what `active` means.',\n 'There is no auto-approval and therefore no `autoApprovalReason` field. The tenant grant auto-approves when the tenant has not opted into approval or cannot approve — both statements about a NAMED tenant, and this row names none. A grant that could approve itself would make the two-person rule ceremonial.',\n 'No public CREATE or UPDATE. `requestAccess` is the only writer of a new row, and `approve` / `deny` / `revoke` / `expire` are the only status transitions. A generic CREATE would let a caller author their own `status` and mint an ACTIVE application-wide elevation with no second signature at all.',\n 'No DELETE at all — not even route-less. The tenant grant declares one solely so the ORGANIZATIONS composition cascade has a verb it can call; this resource is a REFERENCE child of the APPLICATION row, which is the deployment itself and is not purged, so there is no cascade and nothing to declare.',\n 'The lifecycle audit event is shared too: `CoreAuditableEventType.PLATFORM_ACCESS_GRANT_LIFECYCLE`, carrying `grantScope: application_wide` and no `targetOrganizationId`. One event so a reviewer asking \"what elevated access was granted, to whom, by whom?\" gets one query rather than a union of two they have to remember.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one application-wide elevation request.',\n whyItMatters: 'The address of every subsequent decision, and the value the audit trail carries as `authorizingGrantId` when a read is admitted under it — which is what joins an operator\\'s reads to the two administrators who signed for them.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The deployment this elevation is inside.',\n whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n operatorUserId: schemaShape.operatorUserId.foreignKeySpec({\n meaning: 'The platform administrator who requested the elevation.',\n whyItMatters: 'Server-authored from the session, never client-supplied, and it is the field the two-person rule measures against: `approve` refuses when the approver equals this value. An elevation whose subject the caller could choose would let one administrator mint application-wide access under another\\'s name and then sign it themselves.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why the operator needs to see across every tenant, in their own words.',\n whyItMatters: 'Required, and it carries more weight here than on the tenant grant: it is the ONLY thing the approving administrator has to decide on. A tenant grant\\'s approver knows their own tenant and their own support case; this approver knows nothing but this sentence. A second signature on an unstated reason is a countersignature on nothing.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where this elevation is in its lifecycle.',\n whyItMatters: 'Read together with `expiresAt`, never alone: the admission predicate accepts ACTIVE and then re-checks the window, so a grant whose window elapsed stops working whether or not anything has relabelled it. Every row starts PENDING_APPROVAL — there is no branch that reaches ACTIVE without a second administrator acting.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'When the elevation stops working.',\n whyItMatters: 'The control, not the label. Server-authored from the requested duration and clamped to ONE HOUR — a quarter of the tenant grant\\'s ceiling, because this elevation reaches every customer at once and no customer can see or revoke it, so the clock is the only thing that ends it on its own.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n approvedByUserId: schemaShape.approvedByUserId.foreignKeySpec({\n meaning: 'The SECOND administrator who signed.',\n whyItMatters: 'The whole feature, as a field. It is optional in the schema because it is unset while pending and stays unset on a denied or revoked grant — never because an ACTIVE grant might lack one. The only writer of ACTIVE is `approve`, and `approve` refuses when this would equal `operatorUserId`.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n approvedAt: schemaShape.approvedAt.dateSpec({\n meaning: 'When the second administrator approved the elevation. Absent while it is pending and on a denied request.',\n temporalRole: 'occurred',\n }),\n grantedMachineCredential: schemaShape.grantedMachineCredential.objectSpec({\n meaning: 'The one machine credential of this application — an API key or an OAuth client — the elevation is for, when it is for a machine rather than the requester.',\n whyItMatters: 'Under independent audit-read approval a machine could otherwise never read, since a grant was keyed on a user and a machine has none — so an assurance collector, the reader that policy most wants governed, was shut out. When set, the grant admits exactly that credential and NEVER the administrator who requested it: naming a machine must not be a way to mint oneself a window. Validated against the live credential at request time and never updated, because re-pointing a signed grant at another credential would be a grant nobody signed. Like any application-wide grant it satisfies EVERY read that requires one — not only the audit viewer — so what the credential can actually read is still bounded by the roles it holds: give it the read-only audit-evidence reader role, which reaches the audit viewer and nothing else.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n decisionReason: schemaShape.decisionReason.stringSpec({\n meaning: 'The approver\\'s reason for refusing, or the revoker\\'s reason for withdrawing.',\n whyItMatters: 'What a later reader needs to tell a refusal that was considered from one that was reflexive. Scrubbed on subject erasure, like the justification, because it is free text one administrator wrote about another\\'s request.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one application-wide elevation request.',\n outcome: 'The request\\'s current state, including who asked, who signed and when the window closes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation request is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. There is no tenant-side reader here — an application-wide elevation has no customer to show it to, which is exactly why its approval had to become a second signature.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read a pending request',\n request: { applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID },\n response: applicationAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List elevation requests — the pending queue a second administrator works from, and the history a reviewer reads.',\n outcome: 'A page of elevation requests.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A page of elevation requests is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Work the pending queue',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: { data: [applicationAccessPendingGrantExample], total: 1, page: 1, limit: 20 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.COUNT]: {\n purpose: 'Count elevation requests matching a filter.',\n outcome: 'A number — how many requests are pending a signature, or how many were granted in a period.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'How many requests are awaiting a second signature',\n request: { status: PlatformAccessGrantStatus.PENDING_APPROVAL },\n response: { count: 1 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.REQUEST_ACCESS]: {\n operationId: ApplicationAccessGrants_Operations.REQUEST_ACCESS,\n purpose: 'Ask for a short, justified window in which the tenant-spanning reads become available.',\n outcome: 'A request in `pending_approval`, usable by nobody until a DIFFERENT platform administrator approves it. The window is recorded at creation and starts running then, so a request nobody signs simply lapses.',\n whenToUse: 'An operator needs an elevation-gated read that names no single tenant: the user directory, or the audit viewer with independent approval enabled, for a support case or incident spanning customers.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The elevation request was recorded and awaits a second administrator.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because it is the only thing the approver has to decide on.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`grantedMachineCredential` names no active, unexpired API key or OAuth client of this application. The refusal does not say which condition failed.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Ask to see across tenants for a multi-customer incident',\n request: {\n justification: 'Incident INC-5107 spans several tenants; I need the audit view, configured for independent approval, to find which are affected.',\n requestedDurationMinutes: 30,\n },\n response: applicationAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [ApplicationAccessGrants_Operations.APPROVE]: {\n operationId: ApplicationAccessGrants_Operations.APPROVE,\n purpose: 'Sign another administrator\\'s request — the second signature.',\n outcome: 'The request becomes `active` and names the approver. Until the window closes the tenant-spanning reads become available to exactly one principal: the REQUESTER — or, for a grant bound to a machine credential, that credential and not the requester.',\n whenToUse: 'A platform administrator has read the requester\\'s justification and agrees the application-wide reach is warranted.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation is now active, and its updated state — including the approver — is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The caller IS the requester — a request cannot be approved by the person who raised it — or the request is no longer `pending_approval`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'A second administrator signs',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'Reviewed against INC-5107; scope and window are proportionate.',\n },\n response: applicationAccessActiveGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.DENY]: {\n operationId: ApplicationAccessGrants_Operations.DENY,\n purpose: 'Refuse a pending request.',\n outcome: 'The request becomes `denied` and cannot be retried; a later need requires a new request.',\n whenToUse: 'A platform administrator judges the reach unwarranted — or the requester themselves thinks better of it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The request was denied, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Withdraw your own request',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',\n },\n response: {\n ...applicationAccessPendingGrantExample,\n status: PlatformAccessGrantStatus.DENIED,\n decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',\n updatedAt: '2026-09-09T13:06:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.REVOKE]: {\n operationId: ApplicationAccessGrants_Operations.REVOKE,\n purpose: 'End a pending or active elevation early.',\n outcome: 'The elevation becomes `revoked` and the tenant-spanning reads stop immediately instead of remaining available until the recorded expiry.',\n whenToUse: 'The support work finished before the window did, or a reviewer decides the reach should end now.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was revoked, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is already denied, revoked or expired. Only a `pending_approval` or `active` one can be revoked.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Close the window as soon as the incident is scoped',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_ACTIVE_GRANT_ID,\n decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',\n },\n response: {\n ...applicationAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.REVOKED,\n decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',\n updatedAt: '2026-09-09T13:18:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.EXPIRE]: {\n operationId: ApplicationAccessGrants_Operations.EXPIRE,\n purpose: 'Relabel an active elevation whose window has closed.',\n outcome: 'The elevation reads `expired` rather than `active` in the queue and the history.',\n whenToUse: 'Never by hand. The credential-expiry sweep dispatches it and nothing else does — there is no route and no affordance, because nobody needs a button that declares a date has passed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was relabelled expired.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is not `active`. A denied or revoked one is terminal and must keep saying which — relabelling it would rewrite the decision history a reviewer reads.' },\n ],\n idempotent: false,\n examples: [{\n title: 'The sweep closes a lapsed window',\n request: {},\n response: {\n ...applicationAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.EXPIRED,\n updatedAt: '2026-09-09T13:31:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'THE control: `approve` refuses when the approver is the requester. Enforced TWICE, and neither half alone is the control — the operation\\'s `enabledCondition` makes the affordance disappear so no console renders an Approve button on one\\'s own request, and the custom implementation makes the transition impossible so a future variant authored without that condition cannot transition silently. The comparison itself lives in ONE exported predicate, which fails CLOSED when either identity is missing: an approval reaching the check with no decider has no second person behind it, and the naive inline form would admit exactly that case.',\n 'Customer approval is the industry ceiling and is structurally unavailable here — there is no single customer to ask — so a second signature is the strongest control that exists for this act. That is why AUTO-APPROVAL was rejected even though it is the tenant grant\\'s own default posture: that default is defensible only because a tenant can opt in above it, and there is no such party here.',\n 'Application-wide directory and declared cross-tenant reads retain their elevation gate. The application audit viewer is the explicit policy exception: auditTrail.applicationReadAccess defaults to AuditApplicationReadAccess.ROLE_BASED in all environments, while INDEPENDENT_APPROVAL requires this grant. Both modes keep administrator-role checks and crossing observations; role-based evidence carries no fabricated grant id. Grant requests themselves are never auto-approved.',\n 'The per-row tenant crossing is deliberately NOT gated on this grant. That door already works, approved by the customer it names; requiring an application-wide elevation there too would replace a customer-approvable control with a platform-internal one, which is a step DOWN the operator-access ladder.',\n 'Both grant resources are EXEMPT from the admission wholesale — this one and `platformAccessGrants`. An operator would otherwise need an application-wide grant in order to ask for one, and the second administrator would need one in order to read the queue and sign. The exemption is safe for the reason the tenant resource\\'s own bootstrap exemption is safe: these rows are the elevation ledger, they belong to no tenant, and reading them discloses no customer\\'s data.',\n 'Usability is EVALUATED, never read off `status`. A grant counts only when it is ACTIVE and `expiresAt` is still in the future, through the single predicate both grant resources share. The expiry sweep\\'s relabelling is bookkeeping for humans; if admission read the label, a lagging sweep would be an authorization hole rather than a stale display.',\n 'The window is SHORTER than a tenant elevation\\'s — 30 minutes by default against 60, one hour maximum against four — and the ORDER is the design rather than the numbers. A tenant elevation reaches one customer who can see and revoke it; this one reaches every customer and none of them can.',\n 'Terminal statuses are how an elevation ends. DENIED, EXPIRED and REVOKED are never edited back to life, and there is no delete verb of any kind: an elevation record either party could erase is not evidence.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'The instant the request was made, in the viewer\\'s date-time format. The record carries the requesting operator only as a user id, and a synchronous label cannot resolve a name, so the operator is shown — resolved to the person — as the first row of the body and on the card instead.',\n },\n layout: {\n purpose: 'Three sections that separate the two identities the control exists to keep apart: `request` (who asked and why), `decision` (who signed and why), `window` (how long, and which credential it admits). Folding decision into request would put requester and approver in one block, which is precisely the distinction `applicationAccessGrantApproverIsDistinct` enforces.',\n displayPurpose: 'Read-only. Every state change goes through a named verb — request, approve, deny, revoke, expire — and none through a form, so there is deliberately no edit layout. The header carries the request instant and the status badge; the three titled cards follow, with no descriptions. Both identities resolve to the person. The decision reason and the machine credential hide when empty; the approver row stays, because on a pending request its emptiness is the answer.',\n summaryPurpose: 'A card titled with the request instant, then who asked, the status badge, and the expiry labelled.',\n sections: {\n request: {\n purpose: 'The requesting operator and the stated justification. Status and the instant are the page header.',\n whenToUse: 'The review queue, and the first block of any single-grant read.',\n textSlots: {\n title: { purpose: 'Label the request block: who asked, and why.' },\n },\n },\n decision: {\n purpose: 'The second administrator, when they signed, and the reason they recorded.',\n whenToUse: 'Auditing whether an elevation was independently approved, and on what grounds.',\n textSlots: {\n title: { purpose: 'Label the signature block.' },\n },\n },\n window: {\n purpose: 'Expiry, and the machine credential the grant admits when it was requested for one.',\n whenToUse: 'Judging live exposure, and confirming a grant admits the credential it was meant to.',\n textSlots: {\n title: { purpose: 'Label the validity block.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The review queue, reached from Settings → Administration → Access grants. A `status` quick-filter over `createdAt` day buckets, because an unsigned request is the only row that needs anybody.', whenToUse: 'Signing off pending elevations, and reviewing what has been held recently.' },\n [Op.READ]: { purpose: 'One elevation in full, including both identities and the stated reasons.', whenToUse: 'Auditing a specific window after the fact.' },\n [ApplicationAccessGrants_Operations.REQUEST_ACCESS]: { purpose: 'The bootstrap verb. Writes PENDING_APPROVAL, never ACTIVE.', whenToUse: 'An operator needs an application-wide read and does not yet hold a window.' },\n [ApplicationAccessGrants_Operations.APPROVE]: { purpose: 'The second signature; refuses the requester.', whenToUse: 'A different administrator has read the justification and accepts it.' },\n [ApplicationAccessGrants_Operations.DENY]: { purpose: 'Terminal refusal, with a recorded reason.', whenToUse: 'The justification does not hold.' },\n [ApplicationAccessGrants_Operations.REVOKE]: { purpose: 'Ends an ACTIVE window before its expiry.', whenToUse: 'Circumstances changed, or the elevation is no longer needed.' },\n [ApplicationAccessGrants_Operations.EXPIRE]: { purpose: 'ACTIVE → EXPIRED, dispatched by the credential-expiry sweep and by nothing else. Headless — no person invokes it.', whenToUse: 'Never by hand; use REVOKE to end a window early.' },\n },\n }),\n);\n"]}
|
|
@@ -238,7 +238,7 @@ export const oauthConsentGrantsResourceSpecification = resourceSpecification(oau
|
|
|
238
238
|
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A new consent grant is stored for the user + client + resource.' },
|
|
239
239
|
],
|
|
240
240
|
errorScenarios: [
|
|
241
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The grant payload fails schema validation.'
|
|
241
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The grant payload fails schema validation.' },
|
|
242
242
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts a create (this resource has no public CREATE surface).' },
|
|
243
243
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A grant already exists for this (user, client, resource) — a re-consent UPDATES the scopes instead.' },
|
|
244
244
|
],
|
|
@@ -252,7 +252,7 @@ export const oauthConsentGrantsResourceSpecification = resourceSpecification(oau
|
|
|
252
252
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The grant\'s scopes were updated.' },
|
|
253
253
|
],
|
|
254
254
|
errorScenarios: [
|
|
255
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The updated scopes fail schema validation.'
|
|
255
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The updated scopes fail schema validation.' },
|
|
256
256
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts an update.' },
|
|
257
257
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No grant exists for the supplied id.' },
|
|
258
258
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-consent-grants.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/oauth-consent-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC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AC,cAAc,EAAE,OAAO,EAAE,iFAAiF,EAAE;aAC5I;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2GAA2G,EAAE;gBACjK,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,4HAA4H,EAAE;aACnL;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,CAAC;oBACT,KAAK,EAAE,sCAAsC;oBAC7C,OAAO,EAAE,EAAE,mBAAmB,EAAE,8BAA8B,EAAE;oBAChE,SAAS,EAAE,sBAAsB,CAAC,cAAc;iBACjD,CAAC;SACH;KACF;IAED,mBAAmB,EAAE;QACnB,8JAA8J;QAC9J,qOAAqO;QACrO,iLAAiL;KAClL;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,CAAC","sourcesContent":["/**\n * Resource: `oauthConsentGrants` — Wildo SaaS engine specification (backend-managed, user-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/oauth-clients/oauth-consent-grants.shared.schemas.ts → `OAuthConsentGrantSchema`\n * - Factory: engine/saas-models/src/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.ts\n * → `oauthConsentGrantsResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (no engine `resourceUIBehavior` preset; the OIDC consent flow + a future\n * \"authorized apps\" settings surface consume the owner READ/LIST/DELETE API).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OAuthConsentGrantSchema,\n ResourcePrimaryScope,\n oauthConsentGrantsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst OAUTH_CONSENT_GRANT_EXAMPLE_ID = 'oauth_consent_grant_01J4M2N8K3PX7Q9R5T6V0W1Y2Z';\nconst OAUTH_CONSENT_GRANT_OIDC_EXAMPLE_ID = 'oauth_consent_grant_01J4M2S1F8C6H7K9P0Q3R5T6V8';\nconst OAUTH_CONSENT_GRANT_EXAMPLE_USER_ID = 'user_01J4M1Z2X3C4V5B6N7M8Q9R0ST';\n\nconst oauthConsentGrantDelegationExample = {\n _id: OAUTH_CONSENT_GRANT_EXAMPLE_ID,\n userId: OAUTH_CONSENT_GRANT_EXAMPLE_USER_ID,\n clientId: 'oc_01J4M24B7N8Q9R0ST1V2W3X4YZ',\n resource: 'https://api.example.com/agents/procurement',\n scopes: ['openid', 'profile', 'email'],\n createdAt: '2026-08-18T09:30:00.000Z',\n updatedAt: '2026-08-18T09:30:00.000Z',\n};\n\nconst oauthConsentGrantOidcExample = {\n _id: OAUTH_CONSENT_GRANT_OIDC_EXAMPLE_ID,\n userId: OAUTH_CONSENT_GRANT_EXAMPLE_USER_ID,\n clientId: 'oc_01J4M28D2F3G4H5J6K7P8Q9R0S',\n scopes: ['openid', 'profile'],\n createdAt: '2026-08-17T14:05:00.000Z',\n updatedAt: '2026-08-17T14:05:00.000Z',\n};\n\nconst oauthConsentGrantDelegationSummaryExample = {\n _id: oauthConsentGrantDelegationExample._id,\n userId: oauthConsentGrantDelegationExample.userId,\n clientId: oauthConsentGrantDelegationExample.clientId,\n resource: oauthConsentGrantDelegationExample.resource,\n createdAt: oauthConsentGrantDelegationExample.createdAt,\n};\n\nconst oauthConsentGrantOidcSummaryExample = {\n _id: oauthConsentGrantOidcExample._id,\n userId: oauthConsentGrantOidcExample.userId,\n clientId: oauthConsentGrantOidcExample.clientId,\n createdAt: oauthConsentGrantOidcExample.createdAt,\n};\n\nconst OAUTH_CONSENT_GRANT_PAGE_REQUEST = {\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n};\n\nfunction oauthConsentGrantPage<T>(data: readonly T[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nexport const oauthConsentGrantsResourceSpecification = resourceSpecification(\n oauthConsentGrantsResourceConfiguration_InitializationFactory,\n OAuthConsentGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Record the third-party applications a signed-in user chose to remember after granting OIDC consent, so the application can avoid repeating an unchanged consent prompt.',\n businessRole: 'The user-facing \"authorized apps\" inventory: each grant identifies one registered OAuth client, the identity scopes the user approved and, when present, the RFC 8707 resource that delegation targets.',\n lifecycleRole: 'Created when the user approves an interactive consent request and chooses to remember the application, widened only after a later explicit approval, and retained until it expires or the user revokes it.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthConsentGrantSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'oauthConsentGrantsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'OAUTH_CONSENT_GRANTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'READ/LIST/DELETE are owner-facing (API_CALL + APP_USER): the USER_SELF primary-scope filter restricts every result to the authenticated user\\'s own grants. CREATE/UPDATE are INTERNAL_CALL — the OIDC consent-decision endpoint is the sole writer via createAsSystem/updateAsSystem.',\n 'No `userNotifications` / `m2mNotifications` — granting or revoking consent is not an email/alert event.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one persistent consent grant record.',\n whyItMatters: 'The revoke target when a user removes an authorized app.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The Wildo user who granted consent — the USER_SELF scope owner.',\n whyItMatters: 'Scopes every read/list/delete to this user\\'s own grants and drives the cascade delete when the user is removed.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n clientId: schemaShape.clientId.stringSpec({\n meaning: 'The registered OAuth client the user authorized (its `_id`).',\n whyItMatters: 'Half of the grant identity — a grant authorizes exactly one client.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n resource: schemaShape.resource.stringSpec({\n meaning: 'The RFC 8707 resource (target A2A/MCP agent endpoint) this grant covers; absent for an OIDC-only login.',\n whyItMatters: 'Part of the grant grain — consent to act at one agent endpoint does not extend to another; a different resource requires fresh consent.',\n semanticRole: 'uri',\n }),\n scopes: schemaShape.scopes.arraySpec({\n meaning: 'The identity scopes (e.g. openid, profile, email) the user granted this client.',\n whyItMatters: 'A later authorize whose requested scopes are a SUBSET of these skips the prompt; a request for a scope not in the grant re-prompts (no silent scope expansion).',\n elementMeaning: 'One granted OIDC identity scope string.',\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'Optional expiry after which the grant is ignored (fail-closed to a fresh prompt). Unset in v1 — grants persist until revoked.',\n whyItMatters: 'Future-proofs an operator consent-TTL policy without a schema change.',\n temporalRole: 'expiration',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the grant was first stored.',\n whyItMatters: 'Ordering for the \"authorized apps\" list.',\n temporalRole: 'creation',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the approved scope set was last changed.',\n whyItMatters: 'Lets a user or support workflow distinguish the original approval from a later explicit scope expansion.',\n temporalRole: 'modified',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Fetch one of the caller\\'s own consent grants.',\n outcome: 'The caller receives the authorized client, approved identity scopes, optional target resource and grant timestamps.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller\\'s own grant was found and returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The authenticated caller does not have the application-user authority required for this self-service API.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No grant with the supplied id is visible in the caller\\'s user-self scope; nonexistent and other users\\' grants are indistinguishable.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect a remembered agent delegation',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n response: oauthConsentGrantDelegationExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect the grant with available relationship context',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n response: oauthConsentGrantDelegationExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact grant summary',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n response: oauthConsentGrantDelegationSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List the caller\\'s own consent grants — the \"authorized apps\" surface.',\n outcome: 'The user sees every client they have authorized and can choose which to revoke.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) set of the caller\\'s own consent grants.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks APP_USER; a user may only list their own grants (never another user\\'s).' },\n ],\n idempotent: true,\n examples: [{\n title: 'List remembered applications and delegations',\n request: OAUTH_CONSENT_GRANT_PAGE_REQUEST,\n response: oauthConsentGrantPage([\n oauthConsentGrantDelegationExample,\n oauthConsentGrantOidcExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'List grants with available relationship context',\n request: OAUTH_CONSENT_GRANT_PAGE_REQUEST,\n response: oauthConsentGrantPage([\n oauthConsentGrantDelegationExample,\n oauthConsentGrantOidcExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'List compact grant summaries',\n request: OAUTH_CONSENT_GRANT_PAGE_REQUEST,\n response: oauthConsentGrantPage([\n oauthConsentGrantDelegationSummaryExample,\n oauthConsentGrantOidcSummaryExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Store a new grant when the user approves consent and opts to remember the app (system write from the consent-decision endpoint).',\n outcome: 'Subsequent authorize requests the grant covers skip the consent prompt.',\n whenToUse: 'Only from the OIDC consent-decision endpoint via createAsSystem — never a public create.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new consent grant is stored for the user + client + resource.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The grant payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts a create (this resource has no public CREATE surface).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A grant already exists for this (user, client, resource) — a re-consent UPDATES the scopes instead.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Widen a grant\\'s scopes when the user re-consents to the same client + resource with additional scopes (system write).',\n outcome: 'The stored grant reflects the newly approved scope set.',\n whenToUse: 'Only from the consent-decision endpoint via updateAsSystem.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The grant\\'s scopes were updated.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The updated scopes fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts an update.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No grant exists for the supplied id.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Revoke one of the caller\\'s remembered application grants.',\n outcome: 'The client is re-prompted for consent on its next authorize request.',\n whenToUse: 'When the signed-in user no longer trusts the client or wants to review its requested scopes again on the next authorization.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The grant was revoked; the client must obtain fresh consent next time. No body.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The authenticated caller does not have the application-user authority required for this self-service API.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No grant with the supplied id is visible in the caller\\'s user-self scope; this includes grants that were already revoked.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Revoke a remembered agent delegation',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n forStatus: HttpResponseStatusCode.NO_CONTENT_204,\n }],\n },\n },\n\n businessConstraints: [\n 'The uniqueness grain is `(userId, clientId, resource)` — one grant per client per resource; a re-consent updates that row rather than inserting a duplicate.',\n 'Consent-skip matching is scope-SUBSET: a stored grant lets `/oauth/authorize` skip the prompt only when the requested scopes are all already granted; a request for any new scope re-prompts (silent scope expansion is forbidden).',\n 'Scopes are identity-only and carry no authorization weight (authorization is roles-only); a consent grant records what the user agreed to disclose, not what the client may do.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"oauth-consent-grants.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/oauth-consent-grants.resource.specification.ts"],"names":[],"mappings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O,EAAE,sEAAsE;YAC/E,SAAS,EAAE,8HAA8H;YACzI,UAAU,EAAE,uBAAuB,CAAC,OAAO;YAC3C,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,cAAc,EAAE,OAAO,EAAE,iFAAiF,EAAE;aAC5I;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2GAA2G,EAAE;gBACjK,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,4HAA4H,EAAE;aACnL;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,CAAC;oBACT,KAAK,EAAE,sCAAsC;oBAC7C,OAAO,EAAE,EAAE,mBAAmB,EAAE,8BAA8B,EAAE;oBAChE,SAAS,EAAE,sBAAsB,CAAC,cAAc;iBACjD,CAAC;SACH;KACF;IAED,mBAAmB,EAAE;QACnB,8JAA8J;QAC9J,qOAAqO;QACrO,iLAAiL;KAClL;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,CAAC","sourcesContent":["/**\n * Resource: `oauthConsentGrants` — Wildo SaaS engine specification (backend-managed, user-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/oauth-clients/oauth-consent-grants.shared.schemas.ts → `OAuthConsentGrantSchema`\n * - Factory: engine/saas-models/src/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.ts\n * → `oauthConsentGrantsResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (no engine `resourceUIBehavior` preset; the OIDC consent flow + a future\n * \"authorized apps\" settings surface consume the owner READ/LIST/DELETE API).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OAuthConsentGrantSchema,\n ResourcePrimaryScope,\n oauthConsentGrantsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst OAUTH_CONSENT_GRANT_EXAMPLE_ID = 'oauth_consent_grant_01J4M2N8K3PX7Q9R5T6V0W1Y2Z';\nconst OAUTH_CONSENT_GRANT_OIDC_EXAMPLE_ID = 'oauth_consent_grant_01J4M2S1F8C6H7K9P0Q3R5T6V8';\nconst OAUTH_CONSENT_GRANT_EXAMPLE_USER_ID = 'user_01J4M1Z2X3C4V5B6N7M8Q9R0ST';\n\nconst oauthConsentGrantDelegationExample = {\n _id: OAUTH_CONSENT_GRANT_EXAMPLE_ID,\n userId: OAUTH_CONSENT_GRANT_EXAMPLE_USER_ID,\n clientId: 'oc_01J4M24B7N8Q9R0ST1V2W3X4YZ',\n resource: 'https://api.example.com/agents/procurement',\n scopes: ['openid', 'profile', 'email'],\n createdAt: '2026-08-18T09:30:00.000Z',\n updatedAt: '2026-08-18T09:30:00.000Z',\n};\n\nconst oauthConsentGrantOidcExample = {\n _id: OAUTH_CONSENT_GRANT_OIDC_EXAMPLE_ID,\n userId: OAUTH_CONSENT_GRANT_EXAMPLE_USER_ID,\n clientId: 'oc_01J4M28D2F3G4H5J6K7P8Q9R0S',\n scopes: ['openid', 'profile'],\n createdAt: '2026-08-17T14:05:00.000Z',\n updatedAt: '2026-08-17T14:05:00.000Z',\n};\n\nconst oauthConsentGrantDelegationSummaryExample = {\n _id: oauthConsentGrantDelegationExample._id,\n userId: oauthConsentGrantDelegationExample.userId,\n clientId: oauthConsentGrantDelegationExample.clientId,\n resource: oauthConsentGrantDelegationExample.resource,\n createdAt: oauthConsentGrantDelegationExample.createdAt,\n};\n\nconst oauthConsentGrantOidcSummaryExample = {\n _id: oauthConsentGrantOidcExample._id,\n userId: oauthConsentGrantOidcExample.userId,\n clientId: oauthConsentGrantOidcExample.clientId,\n createdAt: oauthConsentGrantOidcExample.createdAt,\n};\n\nconst OAUTH_CONSENT_GRANT_PAGE_REQUEST = {\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n};\n\nfunction oauthConsentGrantPage<T>(data: readonly T[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nexport const oauthConsentGrantsResourceSpecification = resourceSpecification(\n oauthConsentGrantsResourceConfiguration_InitializationFactory,\n OAuthConsentGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Record the third-party applications a signed-in user chose to remember after granting OIDC consent, so the application can avoid repeating an unchanged consent prompt.',\n businessRole: 'The user-facing \"authorized apps\" inventory: each grant identifies one registered OAuth client, the identity scopes the user approved and, when present, the RFC 8707 resource that delegation targets.',\n lifecycleRole: 'Created when the user approves an interactive consent request and chooses to remember the application, widened only after a later explicit approval, and retained until it expires or the user revokes it.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthConsentGrantSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'oauthConsentGrantsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'OAUTH_CONSENT_GRANTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'READ/LIST/DELETE are owner-facing (API_CALL + APP_USER): the USER_SELF primary-scope filter restricts every result to the authenticated user\\'s own grants. CREATE/UPDATE are INTERNAL_CALL — the OIDC consent-decision endpoint is the sole writer via createAsSystem/updateAsSystem.',\n 'No `userNotifications` / `m2mNotifications` — granting or revoking consent is not an email/alert event.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one persistent consent grant record.',\n whyItMatters: 'The revoke target when a user removes an authorized app.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The Wildo user who granted consent — the USER_SELF scope owner.',\n whyItMatters: 'Scopes every read/list/delete to this user\\'s own grants and drives the cascade delete when the user is removed.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n clientId: schemaShape.clientId.stringSpec({\n meaning: 'The registered OAuth client the user authorized (its `_id`).',\n whyItMatters: 'Half of the grant identity — a grant authorizes exactly one client.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n resource: schemaShape.resource.stringSpec({\n meaning: 'The RFC 8707 resource (target A2A/MCP agent endpoint) this grant covers; absent for an OIDC-only login.',\n whyItMatters: 'Part of the grant grain — consent to act at one agent endpoint does not extend to another; a different resource requires fresh consent.',\n semanticRole: 'uri',\n }),\n scopes: schemaShape.scopes.arraySpec({\n meaning: 'The identity scopes (e.g. openid, profile, email) the user granted this client.',\n whyItMatters: 'A later authorize whose requested scopes are a SUBSET of these skips the prompt; a request for a scope not in the grant re-prompts (no silent scope expansion).',\n elementMeaning: 'One granted OIDC identity scope string.',\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'Optional expiry after which the grant is ignored (fail-closed to a fresh prompt). Unset in v1 — grants persist until revoked.',\n whyItMatters: 'Future-proofs an operator consent-TTL policy without a schema change.',\n temporalRole: 'expiration',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the grant was first stored.',\n whyItMatters: 'Ordering for the \"authorized apps\" list.',\n temporalRole: 'creation',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the approved scope set was last changed.',\n whyItMatters: 'Lets a user or support workflow distinguish the original approval from a later explicit scope expansion.',\n temporalRole: 'modified',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Fetch one of the caller\\'s own consent grants.',\n outcome: 'The caller receives the authorized client, approved identity scopes, optional target resource and grant timestamps.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller\\'s own grant was found and returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The authenticated caller does not have the application-user authority required for this self-service API.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No grant with the supplied id is visible in the caller\\'s user-self scope; nonexistent and other users\\' grants are indistinguishable.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect a remembered agent delegation',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n response: oauthConsentGrantDelegationExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect the grant with available relationship context',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n response: oauthConsentGrantDelegationExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact grant summary',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n response: oauthConsentGrantDelegationSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List the caller\\'s own consent grants — the \"authorized apps\" surface.',\n outcome: 'The user sees every client they have authorized and can choose which to revoke.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) set of the caller\\'s own consent grants.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks APP_USER; a user may only list their own grants (never another user\\'s).' },\n ],\n idempotent: true,\n examples: [{\n title: 'List remembered applications and delegations',\n request: OAUTH_CONSENT_GRANT_PAGE_REQUEST,\n response: oauthConsentGrantPage([\n oauthConsentGrantDelegationExample,\n oauthConsentGrantOidcExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'List grants with available relationship context',\n request: OAUTH_CONSENT_GRANT_PAGE_REQUEST,\n response: oauthConsentGrantPage([\n oauthConsentGrantDelegationExample,\n oauthConsentGrantOidcExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'List compact grant summaries',\n request: OAUTH_CONSENT_GRANT_PAGE_REQUEST,\n response: oauthConsentGrantPage([\n oauthConsentGrantDelegationSummaryExample,\n oauthConsentGrantOidcSummaryExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Store a new grant when the user approves consent and opts to remember the app (system write from the consent-decision endpoint).',\n outcome: 'Subsequent authorize requests the grant covers skip the consent prompt.',\n whenToUse: 'Only from the OIDC consent-decision endpoint via createAsSystem — never a public create.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new consent grant is stored for the user + client + resource.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The grant payload fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts a create (this resource has no public CREATE surface).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A grant already exists for this (user, client, resource) — a re-consent UPDATES the scopes instead.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Widen a grant\\'s scopes when the user re-consents to the same client + resource with additional scopes (system write).',\n outcome: 'The stored grant reflects the newly approved scope set.',\n whenToUse: 'Only from the consent-decision endpoint via updateAsSystem.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The grant\\'s scopes were updated.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The updated scopes fail schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts an update.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No grant exists for the supplied id.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Revoke one of the caller\\'s remembered application grants.',\n outcome: 'The client is re-prompted for consent on its next authorize request.',\n whenToUse: 'When the signed-in user no longer trusts the client or wants to review its requested scopes again on the next authorization.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The grant was revoked; the client must obtain fresh consent next time. No body.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The authenticated caller does not have the application-user authority required for this self-service API.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No grant with the supplied id is visible in the caller\\'s user-self scope; this includes grants that were already revoked.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Revoke a remembered agent delegation',\n request: { oauthConsentGrantId: OAUTH_CONSENT_GRANT_EXAMPLE_ID },\n forStatus: HttpResponseStatusCode.NO_CONTENT_204,\n }],\n },\n },\n\n businessConstraints: [\n 'The uniqueness grain is `(userId, clientId, resource)` — one grant per client per resource; a re-consent updates that row rather than inserting a duplicate.',\n 'Consent-skip matching is scope-SUBSET: a stored grant lets `/oauth/authorize` skip the prompt only when the requested scopes are all already granted; a request for any new scope re-prompts (silent scope expansion is forbidden).',\n 'Scopes are identity-only and carry no authorization weight (authorization is roles-only); a consent grant records what the user agreed to disclose, not what the client may do.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n"]}
|
|
@@ -6,6 +6,7 @@ export declare const organizationApiKeysResourceSpecification: import("../../../
|
|
|
6
6
|
roles: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").CORE_APP_ROLES>, import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").CORE_ORG_ROLES>, import("zod").ZodString]>>>>;
|
|
7
7
|
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodEnum<typeof ApiKeyStatus>>>>>;
|
|
8
8
|
expiresAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDate>>>;
|
|
9
|
+
lentUnderCapabilityGrantId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>>;
|
|
9
10
|
lastUsedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDate>>>>;
|
|
10
11
|
createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>>;
|
|
11
12
|
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
|
package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-api-keys.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/organization-api-keys.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"organization-api-keys.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/organization-api-keys.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,qBAAqB,EAItB,MAAM,uBAAuB,CAAC;AA4C/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;iCA4gBpD,CAAC"}
|