@wildo-ai/saas-specifications 1.1.5 → 1.1.6
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 +8 -8
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { orgApiKeysAdminResourceUIBehavior as orgApiKeysAdminSource, orgApiKeysMainResourceUIBehavior as orgApiKeysMainSource, } from '@wildo-ai/presets-components';
|
|
2
2
|
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
4
|
-
import { ApiKeyOrganizationSchema, ApiKeyScope, ApiKeyStatus, CORE_ORG_ROLES, CoreResourceOperation as Op, OrgApiKeys_Operations, ResourcePrimaryScope, orgApiKeysResourceConfiguration_InitializationFactory as orgApiKeysFactory, } from '@wildo-ai/saas-models';
|
|
4
|
+
import { ApiKeyOrganizationSchema, ApiKeyScope, ApiKeyStatus, CORE_ORG_ROLES, CoreResourceOperation as Op, OrgApiKeys_Operations, ResourcePrimaryScope, orgApiKeysResourceConfiguration_InitializationFactory as orgApiKeysFactory, ErrorCustomMessageReference, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
6
|
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
7
7
|
const orgApiKeysMainUIBehavior = orgApiKeysMainSource;
|
|
@@ -129,9 +129,20 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
129
129
|
meaning: 'Owning organization; immutable after create.',
|
|
130
130
|
}),
|
|
131
131
|
expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional automatic invalidation time.' }),
|
|
132
|
+
lastUsedAt: schemaShape.lastUsedAt.dateSpec({
|
|
133
|
+
meaning: 'When the key was last accepted, to the minute. Absent when it has never been used.',
|
|
134
|
+
whyItMatters: 'It is how an administrator finds keys nobody uses any more, which are the first to revoke. Written by the application each time the key authenticates a request, at most once a minute, and never counted as a change to the key.',
|
|
135
|
+
}),
|
|
132
136
|
previousKeyInvalidationDate: schemaShape.previousKeyInvalidationDate.dateSpec({
|
|
133
137
|
meaning: 'After a rotation, when the PRIOR secret stops authenticating. During this grace window both the new and previous secrets work so integrations can migrate without downtime; absent/null after a regenerate means the prior secret stays valid until the next rotation.',
|
|
134
138
|
}),
|
|
139
|
+
previousKeyPrefix: schemaShape.previousKeyPrefix.stringSpec({
|
|
140
|
+
meaning: 'The first 8 characters of the secret this key had before its last rotation or regeneration, so that value can still be recognised. Absent until the key is first reissued.',
|
|
141
|
+
whyItMatters: 'Shown only while that previous secret still authenticates. When no end date is shown beside it — after a regenerate — it keeps working until the key is rotated or regenerated again, so an integration still using it is not cut off, and a leaked old secret is not revoked by regenerating.',
|
|
142
|
+
}),
|
|
143
|
+
description: schemaShape.description.stringSpec({
|
|
144
|
+
meaning: 'Optional note on what the key is for, up to 500 characters. It is matched by search.',
|
|
145
|
+
}),
|
|
135
146
|
},
|
|
136
147
|
operations: {
|
|
137
148
|
[Op.COUNT]: {
|
|
@@ -153,6 +164,7 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
153
164
|
],
|
|
154
165
|
errorScenarios: [
|
|
155
166
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for this key’s tenant (or lacks the super-admin `admin` role for cross-tenant reads).' },
|
|
167
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
156
168
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s visible scope.' },
|
|
157
169
|
],
|
|
158
170
|
idempotent: true,
|
|
@@ -211,8 +223,10 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
211
223
|
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A new API key is minted; the org-admin path returns the full plaintext secret exactly once in this response.' },
|
|
212
224
|
],
|
|
213
225
|
errorScenarios: [
|
|
214
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The create payload fails schema validation (e.g. missing `name`, malformed `expiresAt`).'
|
|
226
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The create payload fails schema validation (e.g. missing `name`, malformed `expiresAt`).' },
|
|
215
227
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or app-admin acting on the tenant) authorized to mint API keys.' },
|
|
228
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
229
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The key would carry a role above the caller\'s own (`role_ceiling_exceeded`). A delegated capability role (`ORG_DELEGATED_*`, #1631) is never within anyone\'s ceiling: a capability comes only from a live grant, so it cannot be copied onto a standing credential, and a machine principal that presented one would be refused.' },
|
|
216
230
|
],
|
|
217
231
|
idempotent: false,
|
|
218
232
|
rateLimitNote: 'Key minting is a credential-issuance path and may be rate-limited per organization to slow brute-force credential creation.',
|
|
@@ -243,6 +257,7 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
243
257
|
],
|
|
244
258
|
errorScenarios: [
|
|
245
259
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin (or app-admin) role required to retire keys.' },
|
|
260
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
246
261
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id (or it was already deleted).' },
|
|
247
262
|
],
|
|
248
263
|
idempotent: true,
|
|
@@ -256,7 +271,8 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
256
271
|
],
|
|
257
272
|
errorScenarios: [
|
|
258
273
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to rotate this key (org-admin in tenant scope, or app-admin cross-tenant).' },
|
|
259
|
-
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: '
|
|
274
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
275
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Rotation hands back the replacement in plaintext and establishes when the previous key becomes unusable, so holding a live session is deliberately not sufficient — obtain a token from the re-authentication route and retry with it.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },
|
|
260
276
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },
|
|
261
277
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is in a state that cannot be rotated (e.g. already revoked/expired), so reissuing the secret is an illegal transition.' },
|
|
262
278
|
],
|
|
@@ -286,6 +302,7 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
286
302
|
],
|
|
287
303
|
errorScenarios: [
|
|
288
304
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to regenerate this key’s secret.' },
|
|
305
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
289
306
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },
|
|
290
307
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is not in a regenerable state (e.g. permanently revoked), so issuing fresh material is rejected.' },
|
|
291
308
|
],
|
|
@@ -324,6 +341,7 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
324
341
|
],
|
|
325
342
|
errorScenarios: [
|
|
326
343
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to disable this key.' },
|
|
344
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
327
345
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },
|
|
328
346
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is already inactive or expired, so deactivation is not a legal transition.' },
|
|
329
347
|
],
|
|
@@ -346,6 +364,7 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
346
364
|
],
|
|
347
365
|
errorScenarios: [
|
|
348
366
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to re-enable this key.' },
|
|
367
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
349
368
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },
|
|
350
369
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is expired or already active, so reactivation is not a legal transition.' },
|
|
351
370
|
],
|
|
@@ -367,8 +386,9 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
367
386
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The key’s `expiresAt` is pushed to the requested future time and the updated validity window is returned.' },
|
|
368
387
|
],
|
|
369
388
|
errorScenarios: [
|
|
370
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The requested expiry is missing or not a future date per the request DTO contract.'
|
|
389
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The requested expiry is missing or not a future date per the request DTO contract.' },
|
|
371
390
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to extend this key’s validity.' },
|
|
391
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
|
|
372
392
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },
|
|
373
393
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The key has no expiry set, so there is no expiration window to extend.' },
|
|
374
394
|
],
|
|
@@ -382,10 +402,10 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
382
402
|
},
|
|
383
403
|
[OrgApiKeys_Operations.USAGE_STATS]: {
|
|
384
404
|
operationId: OrgApiKeys_Operations.USAGE_STATS,
|
|
385
|
-
purpose: '
|
|
386
|
-
outcome: 'The
|
|
405
|
+
purpose: 'Report how an organization API key has been used, so an administrator can find stale or unexpectedly busy keys.',
|
|
406
|
+
outcome: 'The key\u2019s recorded use: requests authenticated with it over the last hour, day and week, the share of them that failed, the route it reached most, and when it was last accepted. Every door that accepts a key records its use; counts are a rolling week, not a lifetime ledger, and a lifetime total and a rate-limit count are not reported because nothing can answer them truthfully.',
|
|
387
407
|
responseStatuses: [
|
|
388
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: '
|
|
408
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The key\u2019s usage statistics are returned. A key never used reports zero counts and no `lastUsedAt`.' },
|
|
389
409
|
],
|
|
390
410
|
errorScenarios: [
|
|
391
411
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to view this key’s usage analytics.' },
|
|
@@ -393,15 +413,15 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
393
413
|
],
|
|
394
414
|
idempotent: true,
|
|
395
415
|
examples: [{
|
|
396
|
-
title: '
|
|
416
|
+
title: 'A key in regular use',
|
|
397
417
|
response: {
|
|
398
418
|
keyId: ORGANIZATION_API_KEY_RECORD_EXAMPLE._id,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
419
|
+
requestsLastHour: 12,
|
|
420
|
+
requestsLastDay: 240,
|
|
421
|
+
requestsLastWeek: 1480,
|
|
422
|
+
lastUsedAt: '2026-09-27T09:58:00.000Z',
|
|
423
|
+
mostUsedEndpoint: 'GET /api/v1/organizations/:organizationId/todos',
|
|
424
|
+
errorRate: 1.35,
|
|
405
425
|
},
|
|
406
426
|
forStatus: HttpResponseStatusCode.OK_200,
|
|
407
427
|
}],
|
|
@@ -417,31 +437,24 @@ export const organizationApiKeysResourceSpecification = resourceSpecificationFro
|
|
|
417
437
|
purpose: 'Use the key `name` as the list and detail title so support can match rows to user-provided labels.',
|
|
418
438
|
},
|
|
419
439
|
layout: {
|
|
420
|
-
purpose: '
|
|
421
|
-
|
|
440
|
+
purpose: 'A header that names the key and carries its status badge, then two groups: `overview` (key prefix, roles, description — no heading, since it would restate the header) and `lifecycle` (expiry, last use and creation; and, only while a rotated key\'s previous secret still authenticates, that secret\'s prefix and when it stops). After a regenerate the previous secret has no end date and keeps working until the next rotation, which the prefix row\'s description says. `scope` is not rendered: the organization schema fixes it to one literal.',
|
|
441
|
+
headerPurpose: 'The READ identity line: the key name as the title and its `status` badge beside it. Neither repeats in the body.',
|
|
442
|
+
displayPurpose: 'Settings rows with no section descriptions; the first card has no heading; an absent description, expiry or last use hides its row instead of showing a dash. The previous secret\'s prefix and end date appear only while that secret still authenticates, by the same rule the request authentication applies.',
|
|
443
|
+
summaryPurpose: 'A registry row or card: the name, the `status` badge, and the key prefix — the one card value that keeps its label, since a bare prefix reads as a second name.',
|
|
444
|
+
editPurpose: 'The CREATE form (the resource has no UPDATE): one stacked column with no headings — name (focused), description as a textarea, roles, expiry, status.',
|
|
422
445
|
sections: {
|
|
423
446
|
overview: {
|
|
424
|
-
purpose: '
|
|
425
|
-
whenToUse: '
|
|
426
|
-
textSlots: {
|
|
427
|
-
title: { purpose: 'Label the identity and status card.' },
|
|
428
|
-
description: { purpose: 'Clarify that the visible prefix is not the full secret.' },
|
|
429
|
-
},
|
|
430
|
-
},
|
|
431
|
-
access: {
|
|
432
|
-
purpose: 'Roles and description the caller configured for the integration using this key.',
|
|
433
|
-
whenToUse: 'Edits in access settings and read views when explaining scope.',
|
|
447
|
+
purpose: 'The key prefix (the visible first characters of the secret, never the secret), the roles embedded on the key, and its description. The name and status are the header\'s, so they are not rows here.',
|
|
448
|
+
whenToUse: 'Read-only key inspection.',
|
|
434
449
|
textSlots: {
|
|
435
|
-
title: { purpose: 'Label the access
|
|
436
|
-
description: { purpose: 'Explain that roles are embedded on the key record for this integration path.' },
|
|
450
|
+
title: { purpose: 'Label the key\'s identity and access block (not rendered on the read page, whose header names the key).' },
|
|
437
451
|
},
|
|
438
452
|
},
|
|
439
453
|
lifecycle: {
|
|
440
|
-
purpose: 'Expiry, last use, and
|
|
441
|
-
whenToUse: '
|
|
454
|
+
purpose: 'Expiry, last use and creation, the dates a rotation or retirement decision turns on; and, while a rotated key\'s previous secret still authenticates, that secret\'s prefix and when it stops (after a regenerate it has no end date and keeps working until the next rotation, which the prefix row\'s description says).',
|
|
455
|
+
whenToUse: 'Deciding whether to rotate, extend or retire a key.',
|
|
442
456
|
textSlots: {
|
|
443
|
-
title: { purpose: 'Label the
|
|
444
|
-
description: { purpose: 'Tie time-based fields to rotation and deactivation policy.' },
|
|
457
|
+
title: { purpose: 'Label the validity and rotation block: when the key expires, when it was used, and whether an old secret still works.' },
|
|
445
458
|
},
|
|
446
459
|
},
|
|
447
460
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-api-keys.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/organization-api-keys.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,IAAI,qBAAqB,EAC1D,gCAAgC,IAAI,oBAAoB,GACzD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,wBAAwB,EACxB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,qDAAqD,IAAI,iBAAiB,GAC3E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,wBAAwB,GAAG,oBAAoE,CAAC;AACtG,MAAM,yBAAyB,GAAG,qBAAqE,CAAC;AAExG;;;;;GAKG;AACH,MAAM,mCAAmC,GAAG;IAC1C,GAAG,EAAE,m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R,OAAO,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,0CAA0C,EAAE;gBACzH,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,SAAS,EAAE,sCAAsC,EAAE;aACrH;SACF;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n orgApiKeysAdminResourceUIBehavior as orgApiKeysAdminSource,\n orgApiKeysMainResourceUIBehavior as orgApiKeysMainSource,\n} 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 ApiKeyOrganizationSchema,\n ApiKeyScope,\n ApiKeyStatus,\n CORE_ORG_ROLES,\n CoreResourceOperation as Op,\n OrgApiKeys_Operations,\n ResourcePrimaryScope,\n orgApiKeysResourceConfiguration_InitializationFactory as orgApiKeysFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof orgApiKeysFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst orgApiKeysMainUIBehavior = orgApiKeysMainSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\nconst orgApiKeysAdminUIBehavior = orgApiKeysAdminSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\n/**\n * One schema-complete, non-secret record used by READ and collection examples.\n * Credential-issuing operations extend it with their one-time fields so the\n * OpenAPI examples cannot accidentally teach that `plainKey` is available on a\n * later READ.\n */\nconst ORGANIZATION_API_KEY_RECORD_EXAMPLE = {\n _id: 'orgkey_01JEXAMPLE',\n name: 'Production order sync',\n description: 'Least-privilege credential used by the order synchronization worker.',\n scope: ApiKeyScope.ORGANIZATION,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-01-01T00:00:00.000Z',\n lastUsedAt: '2026-08-18T09:42:12.000Z',\n createdAt: '2026-06-01T08:00:00.000Z',\n updatedAt: '2026-08-18T09:42:12.000Z',\n organizationId: 'org_01JEXAMPLE',\n keyPrefix: 'sk_org_a',\n} as const;\n\nconst ORGANIZATION_API_KEY_PAGE_EXAMPLE = {\n data: [ORGANIZATION_API_KEY_RECORD_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nexport const organizationApiKeysResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(orgApiKeysMainUIBehavior),\n resourceFrontendConfiguration(orgApiKeysAdminUIBehavior),\n ),\n resourceSpecification(\n orgApiKeysFactory,\n ApiKeyOrganizationSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization-scoped API keys: secrets used by org administrators and integrations to call backend APIs in tenant context.',\n businessRole: 'First-class auth credential for automation and partner integrations, distinct from end-user sessions.',\n lifecycleRole: 'Created with optional expiry, then rotated, deactivated or deleted by organization administrators. Per-key request analytics are not currently recorded.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyOrganizationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'orgApiKeysResourceConfiguration_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: 'ORG_API_KEYS',\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: 'OrgApiKeys_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'orgApiKeysMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'orgApiKeysAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Human label for the key in admin UI and support.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the key can authenticate traffic.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ApiKeyStatus.ACTIVE]: { meaning: 'Key may be used within policy and expiry.' },\n [ApiKeyStatus.INACTIVE]: { meaning: 'Revoked or disabled; authentications should fail.' },\n [ApiKeyStatus.EXPIRED]: { meaning: 'Past its validity window; treat as invalid.' },\n },\n }),\n keyPrefix: schemaShape.keyPrefix.stringSpec({\n meaning: 'Short public prefix of the key material for list records and support correlation.',\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Roles embedded on the key; every request authenticated with it inherits exactly these roles, bounding what the integration or automation user may do (least-privilege).',\n elementMeaning: 'One role identifier — a core app/org role token or an app-defined custom role string.',\n // Element is a union of `CORE_APP_ROLES` + `CORE_ORG_ROLES` + a free\n // custom-role string; the shape validator requires ONE enum vocabulary\n // to advertise, so we name the org-scope enum (the primary vocabulary\n // for an organization key). App tokens and custom strings remain valid\n // per `elementMeaning`.\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CORE_ORG_ROLES',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'Owning organization; immutable after create.',\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional automatic invalidation time.' }),\n previousKeyInvalidationDate: schemaShape.previousKeyInvalidationDate.dateSpec({\n meaning: 'After a rotation, when the PRIOR secret stops authenticating. During this grace window both the new and previous secrets work so integrations can migrate without downtime; absent/null after a regenerate means the prior secret stays valid until the next rotation.',\n }),\n },\n operations: {\n [Op.COUNT]: {\n purpose: 'Repository-only counts for entitlements and feature metering.',\n outcome: 'Numeric total of keys per scope without a public list.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count of API keys in scope is returned for entitlement/metering checks.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/metering role; this repository-only count is not a member-facing surface.' },\n ],\n idempotent: true,\n },\n [Op.READ]: {\n purpose: 'Inspect one key (org admin default; app super-admin `admin` variant for cross-tenant).',\n outcome: 'Metadata and status without revealing raw secret material.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s metadata and status are returned (never the raw secret material).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for this key’s tenant (or lacks the super-admin `admin` role for cross-tenant reads).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s visible scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect an active integration key',\n response: ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.LIST]: {\n purpose: 'Enumerate keys the caller may see; members see a reduced roster vs admins.',\n outcome: 'Rows for security settings and admin consoles.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of API keys the caller is permitted to see.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks any role that grants visibility into the organization’s API-key roster.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse organization integration keys',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: ORGANIZATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Filter/sort with broader fields on the super-admin `admin` search variant.',\n outcome: 'Matching keys in large-tenant and platform views.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of API keys matching the search/filter query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role for the requested search scope (the broader-field filters require the super-admin `admin` variant).' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find active expiring production keys',\n request: { q: 'production', status: ApiKeyStatus.ACTIVE, hasExpiration: true, page: 1, limit: 20, sort: 'lastUsedAt:desc' },\n response: ORGANIZATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Create a new organization API key for an integration or automation client.',\n outcome: 'The key is created and its plaintext value is returned exactly once. Store it before dismissing the response; later reads expose only its prefix.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new API key is minted; the org-admin path returns the full plaintext secret exactly once in this response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The create payload fails schema validation (e.g. missing `name`, malformed `expiresAt`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or app-admin acting on the tenant) authorized to mint API keys.' },\n ],\n idempotent: false,\n rateLimitNote: 'Key minting is a credential-issuance path and may be rate-limited per organization to slow brute-force credential creation.',\n examples: [\n {\n title: 'Mint an organization API key with an expiry',\n request: {\n name: 'Production order sync',\n description: 'Least-privilege credential used by the order synchronization worker.',\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-01-01T00:00:00.000Z',\n },\n response: {\n ...ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n hashedKey: '4e47f19d78f4dba34a69075f877494db564faca7327849e6c15a47921a72e931',\n plainKey: 'sk_org_a_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Permanently remove an organization API key that is no longer needed.',\n outcome: 'The key can no longer authenticate API traffic.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The key was deleted and can no longer authenticate; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin (or app-admin) role required to retire keys.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n [OrgApiKeys_Operations.ROTATE]: {\n operationId: OrgApiKeys_Operations.ROTATE,\n purpose: 'Issue a new secret and schedule invalidation of the previous material.',\n outcome: 'The new plaintext key is returned exactly once. The previous key remains valid until the requested invalidation time so callers can migrate without downtime.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A fresh secret is issued and returned once; the previous material is scheduled for invalidation.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to rotate this key (org-admin in tenant scope, or app-admin cross-tenant).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Rotation hands back the replacement in plaintext and establishes when the previous key becomes unusable, so holding a live session is deliberately not sufficient — obtain a token from the re-authentication route and retry with it.', errorCode: 'STEP_UP_REQUIRED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is in a state that cannot be rotated (e.g. already revoked/expired), so reissuing the secret is an illegal transition.' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues new secret material and may be rate-limited to prevent rapid churn of live credentials.',\n examples: [{\n title: 'Rotate with a 24-hour migration window',\n request: { oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z' },\n response: {\n ...ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_org_b',\n previousKeyPrefix: ORGANIZATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n previousKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n plainKey: 'sk_org_b_example-secret-returned-once',\n oldKeyId: ORGANIZATION_API_KEY_RECORD_EXAMPLE._id,\n oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.REGENERATE]: {\n operationId: OrgApiKeys_Operations.REGENERATE,\n purpose: 'Generate a new secret without a mandatory invalidation window for the old key yet.',\n outcome: 'The new plaintext key is returned exactly once while the previous key remains valid until a later rotation completes the cutover.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new secret is generated and returned once; the prior material stays valid to allow an overlap window.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to regenerate this key’s secret.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is not in a regenerable state (e.g. permanently revoked), so issuing fresh material is rejected.' },\n ],\n idempotent: false,\n rateLimitNote: 'Secret regeneration is a credential-issuance path and may be rate-limited per key.',\n examples: [{\n title: 'Regenerate while retaining the previous secret',\n request: {},\n response: {\n ...ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_org_c',\n previousKeyPrefix: ORGANIZATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n plainKey: 'sk_org_c_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n /**\n * INTERNAL_CALL, so this entry documents SEMANTICS and deliberately carries no HTTP\n * response statuses, error scenarios or examples: there is no route to call and no\n * response a consumer receives. Authoring a `200 OK` example here would document a door\n * that does not exist, which is worse than the silence.\n */\n [OrgApiKeys_Operations.EXPIRE]: {\n operationId: OrgApiKeys_Operations.EXPIRE,\n purpose: 'Record that a key’s validity window has elapsed, so a listing shows it as expired rather than active.',\n outcome: 'Status becomes expired. Nothing about authentication changes — the key already stopped working the instant its expiry passed.',\n whenToUse: 'Never called directly. The nightly credential-expiry sweep dispatches it; an administrator who wants a key gone sooner deactivates it, and one who wants it to last longer extends its expiry.',\n },\n [OrgApiKeys_Operations.DEACTIVATE]: {\n operationId: OrgApiKeys_Operations.DEACTIVATE,\n purpose: 'Turn off authentication for an active key without deleting its metadata.',\n outcome: 'Status becomes inactive; reactivation is a separate op when allowed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s status is set to inactive and it can no longer authenticate until reactivated. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to disable this key.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is already inactive or expired, so deactivation is not a legal transition.' },\n ],\n // NOT idempotent: the ACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Deactivate a compromised integration key',\n request: {},\n response: { ...ORGANIZATION_API_KEY_RECORD_EXAMPLE, status: ApiKeyStatus.INACTIVE },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.REACTIVATE]: {\n operationId: OrgApiKeys_Operations.REACTIVATE,\n purpose: 'Re-enable a previously inactive key if policy still permits.',\n outcome: 'The key returns to an active state and may authenticate again, provided it has not expired.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s status returns to active and it may authenticate traffic again. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to re-enable this key.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is expired or already active, so reactivation is not a legal transition.' },\n ],\n // NOT idempotent: the INACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Reactivate a remediated integration key',\n request: {},\n response: ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.EXTEND_EXPIRY]: {\n operationId: OrgApiKeys_Operations.EXTEND_EXPIRY,\n purpose: 'Push the expiration time when a dated key is still in use.',\n outcome: 'Updated validity; only meaningful when the key has an expiry set.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s `expiresAt` is pushed to the requested future time and the updated validity window is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The requested expiry is missing or not a future date per the request DTO contract.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to extend this key’s validity.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key has no expiry set, so there is no expiration window to extend.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Extend a key before its scheduled expiry',\n request: { newExpiresAt: '2099-06-30T00:00:00.000Z' },\n response: { ...ORGANIZATION_API_KEY_RECORD_EXAMPLE, expiresAt: '2099-06-30T00:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.USAGE_STATS]: {\n operationId: OrgApiKeys_Operations.USAGE_STATS,\n purpose: 'Return the current API-key usage-statistics response contract.',\n outcome: 'The current runtime has no per-key usage data source and returns an explicit all-zero placeholder; it must not be interpreted as proof that the key was unused.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A schema-valid all-zero placeholder is returned until per-key usage tracking is implemented.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to view this key’s usage analytics.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Current all-zero placeholder',\n response: {\n keyId: ORGANIZATION_API_KEY_RECORD_EXAMPLE._id,\n totalRequests: 0,\n requestsLastHour: 0,\n requestsLastDay: 0,\n requestsLastWeek: 0,\n errorRate: 0,\n rateLimitHits: 0,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'The plaintext key is only returned on create/rotate paths where the factory sets ephemeral response DTOs; companion copy must not imply clients can re-fetch full secrets later.',\n 'Super-admin `admin` HTTP variants mirror org-admin operations across tenants; wire RBAC to factory roles, not guesswork.',\n 'ROTATE/REGENERATE keep the PRIOR secret authenticating during a grace window (rotate: until `previousKeyInvalidationDate`; regenerate: until the next rotation), so API-key authentication accepts the current OR the not-yet-invalidated previous secret — a rotation is an immediate hard cutover only when `oldKeyInvalidationDate` is now (the default).',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n label: {\n purpose: 'Use the key `name` as the list and detail title so support can match rows to user-provided labels.',\n },\n layout: {\n purpose: 'Split overview, access (roles, description), and lifecycle for keys — aligned with the merged `security` presets.',\n displayPurpose: 'Display and edit templates from `orgApiKeys` presets share the same `overview` / `access` / `lifecycle` section model.',\n sections: {\n overview: {\n purpose: 'Name, key prefix, status, and scope for quick recognition.',\n whenToUse: 'List summaries and read-only key inspection.',\n textSlots: {\n title: { purpose: 'Label the identity and status card.' },\n description: { purpose: 'Clarify that the visible prefix is not the full secret.' },\n },\n },\n access: {\n purpose: 'Roles and description the caller configured for the integration using this key.',\n whenToUse: 'Edits in access settings and read views when explaining scope.',\n textSlots: {\n title: { purpose: 'Label the access policy block.' },\n description: { purpose: 'Explain that roles are embedded on the key record for this integration path.' },\n },\n },\n lifecycle: {\n purpose: 'Expiry, last use, and audit-friendly timestamps for rotation decisions.',\n whenToUse: 'Lifecycle maintenance and reactivation/extend-expiry entry points.',\n textSlots: {\n title: { purpose: 'Label the lifecycle and usage strip.' },\n description: { purpose: 'Tie time-based fields to rotation and deactivation policy.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The addressable list surface in merged presets; primary navigation for key inventory.', whenToUse: 'Org security settings and app-admin org drill-downs.' },\n [Op.READ]: {\n purpose: 'Read shell for a single key record.',\n whenToUse: 'When operators open a key from a list; non-addressable in primary preset wiring.',\n variants: {\n default: { purpose: 'Org context read for org admins and members with factory visibility.', whenToUse: 'Tenant self-service key management.' },\n admin: { purpose: 'App super-admin read across organizations.', whenToUse: 'Platform support and cross-tenant key inspection.' },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create flow surfaced as the Create action on the list toolbar + empty-state in merged presets — a NON-addressable (overlay) surface, drilled in within the Settings Hub panel. Action visibility is governed by `actionVisibility` + the declared view, NOT by URL-addressability. Merged admin uses `admin` API variants.',\n whenToUse: 'When minting a new org key from the product UI (Settings Hub → API keys) or app-admin.',\n variants: {\n default: { purpose: 'Org-admin create with ephemeral full key on success.', whenToUse: 'In-org automation onboarding.' },\n admin: { purpose: 'App-admin key creation on behalf of a tenant when enabled.', whenToUse: 'Back-office and migration support.' },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Search and sort where the factory enables searchable variants.',\n whenToUse: 'Large rosters; admin variant extends filters per factory.',\n variants: {\n default: { purpose: 'Member/operator search in tenant scope.', whenToUse: 'Finding keys by name in standard org UIs.' },\n admin: { purpose: 'Super-admin search with additional filter fields in factory config.', whenToUse: 'Platform-wide directory maintenance.' },\n },\n },\n [Op.DELETE]: {\n purpose: 'Delete one or more keys with optional bulk in factory config.',\n whenToUse: 'Key retirement and offboarding when policy allows API delete.',\n variants: {\n default: { purpose: 'Org admin delete within the tenant boundary.', whenToUse: 'Normal tenant-driven removal.' },\n admin: { purpose: 'App-admin delete in elevated contexts.', whenToUse: 'Abuse, migration, and forced key retirement.' },\n },\n },\n [OrgApiKeys_Operations.ROTATE]: {\n purpose: 'High-risk reissuance; typically non-addressable as a custom route from read/create flows.',\n whenToUse: 'Planned or incident-driven rotation; notifications follow factory `userNotifications`.',\n variants: {\n default: { purpose: 'Org admin rotation in tenant scope.', whenToUse: 'When operators rotate integration secrets.' },\n admin: { purpose: 'App-admin rotation of org keys in cross-tenant mode.', whenToUse: 'Assisted support rotations.' },\n },\n },\n [OrgApiKeys_Operations.REGENERATE]: {\n purpose: 'Generate a new secret without the same invalidation story as full rotation when supported.',\n whenToUse: 'When overlap between old and new is acceptable; non-addressable in default preset wiring.',\n variants: {\n default: { purpose: 'Org-admin path.', whenToUse: 'Refresh keys where invalidation of the prior secret is not immediate.' },\n admin: { purpose: 'App-admin path.', whenToUse: 'Platform-assisted reissue across tenants.' },\n },\n },\n [OrgApiKeys_Operations.DEACTIVATE]: {\n purpose: 'Soft-disable a key in place; enabled only when the current row is active.',\n whenToUse: 'Stop traffic quickly without schema removal.',\n variants: {\n default: { purpose: 'Org-admin deactivation.', whenToUse: 'Temporarily block API key use.' },\n admin: { purpose: 'App-admin deactivation in elevated contexts.', whenToUse: 'Enforcement and incident response from platform roles.' },\n },\n },\n [OrgApiKeys_Operations.REACTIVATE]: {\n purpose: 'Re-enable a key that is inactive; enabled when status matches factory condition.',\n whenToUse: 'After mistaken deactivation or policy-driven reinstatement.',\n variants: {\n default: { purpose: 'Org-admin reactivation.', whenToUse: 'Bringing a key back for an org-owned integration.' },\n admin: { purpose: 'App-admin reactivation.', whenToUse: 'Cross-tenant re-enablement for support cases.' },\n },\n },\n [OrgApiKeys_Operations.EXTEND_EXPIRY]: {\n purpose: 'Update expiration when the key already has an expiry; requires future date in request DTO per factory.',\n whenToUse: 'Renewal before automated expiry cuts traffic.',\n variants: {\n default: { purpose: 'Org-admin extension within tenant context.', whenToUse: 'Standard renewal flows.' },\n admin: { purpose: 'App-admin extension when operating on any org’s keys.', whenToUse: 'Assisted long-lived integrations.' },\n },\n },\n [OrgApiKeys_Operations.USAGE_STATS]: {\n purpose: 'Read-side analytics (requests, error rate) for a key, modeled like READ in risk tier.',\n whenToUse: 'Dashboards; non-addressable in default preset list views.',\n variants: {\n default: { purpose: 'Org members and admins with factory roles.', whenToUse: 'Self-service key health in tenant scope.' },\n admin: { purpose: 'App super-admin stats in cross-tenant mode.', whenToUse: 'Support triage and capacity reviews.' },\n },\n },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"organization-api-keys.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/organization-api-keys.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,IAAI,qBAAqB,EAC1D,gCAAgC,IAAI,oBAAoB,GACzD,MAAM,8BAA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BACxG,KAAK,EAAE,EAAE,OAAO,EAAE,uDAAuD,EAAE,SAAS,EAAE,mCAAmC,EAAE;aAC5H;SACF;QACD,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE;YACnC,OAAO,EAAE,uFAAuF;YAChG,SAAS,EAAE,2DAA2D;YACtE,QAAQ,EAAE;gBACR,OAAO,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,0CAA0C,EAAE;gBACzH,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,SAAS,EAAE,sCAAsC,EAAE;aACrH;SACF;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n orgApiKeysAdminResourceUIBehavior as orgApiKeysAdminSource,\n orgApiKeysMainResourceUIBehavior as orgApiKeysMainSource,\n} 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 ApiKeyOrganizationSchema,\n ApiKeyScope,\n ApiKeyStatus,\n CORE_ORG_ROLES,\n CoreResourceOperation as Op,\n OrgApiKeys_Operations,\n ResourcePrimaryScope,\n orgApiKeysResourceConfiguration_InitializationFactory as orgApiKeysFactory,\n ErrorCustomMessageReference,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof orgApiKeysFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst orgApiKeysMainUIBehavior = orgApiKeysMainSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\nconst orgApiKeysAdminUIBehavior = orgApiKeysAdminSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\n/**\n * One schema-complete, non-secret record used by READ and collection examples.\n * Credential-issuing operations extend it with their one-time fields so the\n * OpenAPI examples cannot accidentally teach that `plainKey` is available on a\n * later READ.\n */\nconst ORGANIZATION_API_KEY_RECORD_EXAMPLE = {\n _id: 'orgkey_01JEXAMPLE',\n name: 'Production order sync',\n description: 'Least-privilege credential used by the order synchronization worker.',\n scope: ApiKeyScope.ORGANIZATION,\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-01-01T00:00:00.000Z',\n lastUsedAt: '2026-08-18T09:42:12.000Z',\n createdAt: '2026-06-01T08:00:00.000Z',\n updatedAt: '2026-08-18T09:42:12.000Z',\n organizationId: 'org_01JEXAMPLE',\n keyPrefix: 'sk_org_a',\n} as const;\n\nconst ORGANIZATION_API_KEY_PAGE_EXAMPLE = {\n data: [ORGANIZATION_API_KEY_RECORD_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nexport const organizationApiKeysResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(orgApiKeysMainUIBehavior),\n resourceFrontendConfiguration(orgApiKeysAdminUIBehavior),\n ),\n resourceSpecification(\n orgApiKeysFactory,\n ApiKeyOrganizationSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization-scoped API keys: secrets used by org administrators and integrations to call backend APIs in tenant context.',\n businessRole: 'First-class auth credential for automation and partner integrations, distinct from end-user sessions.',\n lifecycleRole: 'Created with optional expiry, then rotated, deactivated or deleted by organization administrators. Per-key request analytics are not currently recorded.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyOrganizationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'orgApiKeysResourceConfiguration_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: 'ORG_API_KEYS',\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: 'OrgApiKeys_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'orgApiKeysMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'orgApiKeysAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Human label for the key in admin UI and support.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the key can authenticate traffic.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ApiKeyStatus.ACTIVE]: { meaning: 'Key may be used within policy and expiry.' },\n [ApiKeyStatus.INACTIVE]: { meaning: 'Revoked or disabled; authentications should fail.' },\n [ApiKeyStatus.EXPIRED]: { meaning: 'Past its validity window; treat as invalid.' },\n },\n }),\n keyPrefix: schemaShape.keyPrefix.stringSpec({\n meaning: 'Short public prefix of the key material for list records and support correlation.',\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Roles embedded on the key; every request authenticated with it inherits exactly these roles, bounding what the integration or automation user may do (least-privilege).',\n elementMeaning: 'One role identifier — a core app/org role token or an app-defined custom role string.',\n // Element is a union of `CORE_APP_ROLES` + `CORE_ORG_ROLES` + a free\n // custom-role string; the shape validator requires ONE enum vocabulary\n // to advertise, so we name the org-scope enum (the primary vocabulary\n // for an organization key). App tokens and custom strings remain valid\n // per `elementMeaning`.\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CORE_ORG_ROLES',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'Owning organization; immutable after create.',\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional automatic invalidation time.' }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'When the key was last accepted, to the minute. Absent when it has never been used.',\n whyItMatters: 'It is how an administrator finds keys nobody uses any more, which are the first to revoke. Written by the application each time the key authenticates a request, at most once a minute, and never counted as a change to the key.',\n }),\n previousKeyInvalidationDate: schemaShape.previousKeyInvalidationDate.dateSpec({\n meaning: 'After a rotation, when the PRIOR secret stops authenticating. During this grace window both the new and previous secrets work so integrations can migrate without downtime; absent/null after a regenerate means the prior secret stays valid until the next rotation.',\n }),\n previousKeyPrefix: schemaShape.previousKeyPrefix.stringSpec({\n meaning: 'The first 8 characters of the secret this key had before its last rotation or regeneration, so that value can still be recognised. Absent until the key is first reissued.',\n whyItMatters: 'Shown only while that previous secret still authenticates. When no end date is shown beside it — after a regenerate — it keeps working until the key is rotated or regenerated again, so an integration still using it is not cut off, and a leaked old secret is not revoked by regenerating.',\n }),\n description: schemaShape.description.stringSpec({\n meaning: 'Optional note on what the key is for, up to 500 characters. It is matched by search.',\n }),\n },\n operations: {\n [Op.COUNT]: {\n purpose: 'Repository-only counts for entitlements and feature metering.',\n outcome: 'Numeric total of keys per scope without a public list.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count of API keys in scope is returned for entitlement/metering checks.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/metering role; this repository-only count is not a member-facing surface.' },\n ],\n idempotent: true,\n },\n [Op.READ]: {\n purpose: 'Inspect one key (org admin default; app super-admin `admin` variant for cross-tenant).',\n outcome: 'Metadata and status without revealing raw secret material.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s metadata and status are returned (never the raw secret material).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for this key’s tenant (or lacks the super-admin `admin` role for cross-tenant reads).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s visible scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect an active integration key',\n response: ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.LIST]: {\n purpose: 'Enumerate keys the caller may see; members see a reduced roster vs admins.',\n outcome: 'Rows for security settings and admin consoles.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of API keys the caller is permitted to see.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks any role that grants visibility into the organization’s API-key roster.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse organization integration keys',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: ORGANIZATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Filter/sort with broader fields on the super-admin `admin` search variant.',\n outcome: 'Matching keys in large-tenant and platform views.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of API keys matching the search/filter query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role for the requested search scope (the broader-field filters require the super-admin `admin` variant).' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find active expiring production keys',\n request: { q: 'production', status: ApiKeyStatus.ACTIVE, hasExpiration: true, page: 1, limit: 20, sort: 'lastUsedAt:desc' },\n response: ORGANIZATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Create a new organization API key for an integration or automation client.',\n outcome: 'The key is created and its plaintext value is returned exactly once. Store it before dismissing the response; later reads expose only its prefix.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new API key is minted; the org-admin path returns the full plaintext secret exactly once in this response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The create payload fails schema validation (e.g. missing `name`, malformed `expiresAt`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or app-admin acting on the tenant) authorized to mint API keys.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The key would carry a role above the caller\\'s own (`role_ceiling_exceeded`). A delegated capability role (`ORG_DELEGATED_*`, #1631) is never within anyone\\'s ceiling: a capability comes only from a live grant, so it cannot be copied onto a standing credential, and a machine principal that presented one would be refused.' },\n ],\n idempotent: false,\n rateLimitNote: 'Key minting is a credential-issuance path and may be rate-limited per organization to slow brute-force credential creation.',\n examples: [\n {\n title: 'Mint an organization API key with an expiry',\n request: {\n name: 'Production order sync',\n description: 'Least-privilege credential used by the order synchronization worker.',\n roles: [CORE_ORG_ROLES.ORG_MEMBER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-01-01T00:00:00.000Z',\n },\n response: {\n ...ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n hashedKey: '4e47f19d78f4dba34a69075f877494db564faca7327849e6c15a47921a72e931',\n plainKey: 'sk_org_a_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Permanently remove an organization API key that is no longer needed.',\n outcome: 'The key can no longer authenticate API traffic.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The key was deleted and can no longer authenticate; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin (or app-admin) role required to retire keys.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n [OrgApiKeys_Operations.ROTATE]: {\n operationId: OrgApiKeys_Operations.ROTATE,\n purpose: 'Issue a new secret and schedule invalidation of the previous material.',\n outcome: 'The new plaintext key is returned exactly once. The previous key remains valid until the requested invalidation time so callers can migrate without downtime.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A fresh secret is issued and returned once; the previous material is scheduled for invalidation.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to rotate this key (org-admin in tenant scope, or app-admin cross-tenant).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Rotation hands back the replacement in plaintext and establishes when the previous key becomes unusable, so holding a live session is deliberately not sufficient — obtain a token from the re-authentication route and retry with it.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is in a state that cannot be rotated (e.g. already revoked/expired), so reissuing the secret is an illegal transition.' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues new secret material and may be rate-limited to prevent rapid churn of live credentials.',\n examples: [{\n title: 'Rotate with a 24-hour migration window',\n request: { oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z' },\n response: {\n ...ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_org_b',\n previousKeyPrefix: ORGANIZATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n previousKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n plainKey: 'sk_org_b_example-secret-returned-once',\n oldKeyId: ORGANIZATION_API_KEY_RECORD_EXAMPLE._id,\n oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.REGENERATE]: {\n operationId: OrgApiKeys_Operations.REGENERATE,\n purpose: 'Generate a new secret without a mandatory invalidation window for the old key yet.',\n outcome: 'The new plaintext key is returned exactly once while the previous key remains valid until a later rotation completes the cutover.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new secret is generated and returned once; the prior material stays valid to allow an overlap window.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to regenerate this key’s secret.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is not in a regenerable state (e.g. permanently revoked), so issuing fresh material is rejected.' },\n ],\n idempotent: false,\n rateLimitNote: 'Secret regeneration is a credential-issuance path and may be rate-limited per key.',\n examples: [{\n title: 'Regenerate while retaining the previous secret',\n request: {},\n response: {\n ...ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_org_c',\n previousKeyPrefix: ORGANIZATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n plainKey: 'sk_org_c_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n /**\n * INTERNAL_CALL, so this entry documents SEMANTICS and deliberately carries no HTTP\n * response statuses, error scenarios or examples: there is no route to call and no\n * response a consumer receives. Authoring a `200 OK` example here would document a door\n * that does not exist, which is worse than the silence.\n */\n [OrgApiKeys_Operations.EXPIRE]: {\n operationId: OrgApiKeys_Operations.EXPIRE,\n purpose: 'Record that a key’s validity window has elapsed, so a listing shows it as expired rather than active.',\n outcome: 'Status becomes expired. Nothing about authentication changes — the key already stopped working the instant its expiry passed.',\n whenToUse: 'Never called directly. The nightly credential-expiry sweep dispatches it; an administrator who wants a key gone sooner deactivates it, and one who wants it to last longer extends its expiry.',\n },\n [OrgApiKeys_Operations.DEACTIVATE]: {\n operationId: OrgApiKeys_Operations.DEACTIVATE,\n purpose: 'Turn off authentication for an active key without deleting its metadata.',\n outcome: 'Status becomes inactive; reactivation is a separate op when allowed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s status is set to inactive and it can no longer authenticate until reactivated. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to disable this key.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is already inactive or expired, so deactivation is not a legal transition.' },\n ],\n // NOT idempotent: the ACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Deactivate a compromised integration key',\n request: {},\n response: { ...ORGANIZATION_API_KEY_RECORD_EXAMPLE, status: ApiKeyStatus.INACTIVE },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.REACTIVATE]: {\n operationId: OrgApiKeys_Operations.REACTIVATE,\n purpose: 'Re-enable a previously inactive key if policy still permits.',\n outcome: 'The key returns to an active state and may authenticate again, provided it has not expired.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s status returns to active and it may authenticate traffic again. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to re-enable this key.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is expired or already active, so reactivation is not a legal transition.' },\n ],\n // NOT idempotent: the INACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Reactivate a remediated integration key',\n request: {},\n response: ORGANIZATION_API_KEY_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.EXTEND_EXPIRY]: {\n operationId: OrgApiKeys_Operations.EXTEND_EXPIRY,\n purpose: 'Push the expiration time when a dated key is still in use.',\n outcome: 'Updated validity; only meaningful when the key has an expiry set.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s `expiresAt` is pushed to the requested future time and the updated validity window is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The requested expiry is missing or not a future date per the request DTO contract.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to extend this key’s validity.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_API_KEYS` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key has no expiry set, so there is no expiration window to extend.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Extend a key before its scheduled expiry',\n request: { newExpiresAt: '2099-06-30T00:00:00.000Z' },\n response: { ...ORGANIZATION_API_KEY_RECORD_EXAMPLE, expiresAt: '2099-06-30T00:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrgApiKeys_Operations.USAGE_STATS]: {\n operationId: OrgApiKeys_Operations.USAGE_STATS,\n purpose: 'Report how an organization API key has been used, so an administrator can find stale or unexpectedly busy keys.',\n outcome: 'The key\\u2019s recorded use: requests authenticated with it over the last hour, day and week, the share of them that failed, the route it reached most, and when it was last accepted. Every door that accepts a key records its use; counts are a rolling week, not a lifetime ledger, and a lifetime total and a rate-limit count are not reported because nothing can answer them truthfully.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key\\u2019s usage statistics are returned. A key never used reports zero counts and no `lastUsedAt`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the role to view this key’s usage analytics.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No API key exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'A key in regular use',\n response: {\n keyId: ORGANIZATION_API_KEY_RECORD_EXAMPLE._id,\n requestsLastHour: 12,\n requestsLastDay: 240,\n requestsLastWeek: 1480,\n lastUsedAt: '2026-09-27T09:58:00.000Z',\n mostUsedEndpoint: 'GET /api/v1/organizations/:organizationId/todos',\n errorRate: 1.35,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'The plaintext key is only returned on create/rotate paths where the factory sets ephemeral response DTOs; companion copy must not imply clients can re-fetch full secrets later.',\n 'Super-admin `admin` HTTP variants mirror org-admin operations across tenants; wire RBAC to factory roles, not guesswork.',\n 'ROTATE/REGENERATE keep the PRIOR secret authenticating during a grace window (rotate: until `previousKeyInvalidationDate`; regenerate: until the next rotation), so API-key authentication accepts the current OR the not-yet-invalidated previous secret — a rotation is an immediate hard cutover only when `oldKeyInvalidationDate` is now (the default).',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n label: {\n purpose: 'Use the key `name` as the list and detail title so support can match rows to user-provided labels.',\n },\n layout: {\n purpose: 'A header that names the key and carries its status badge, then two groups: `overview` (key prefix, roles, description — no heading, since it would restate the header) and `lifecycle` (expiry, last use and creation; and, only while a rotated key\\'s previous secret still authenticates, that secret\\'s prefix and when it stops). After a regenerate the previous secret has no end date and keeps working until the next rotation, which the prefix row\\'s description says. `scope` is not rendered: the organization schema fixes it to one literal.',\n headerPurpose: 'The READ identity line: the key name as the title and its `status` badge beside it. Neither repeats in the body.',\n displayPurpose: 'Settings rows with no section descriptions; the first card has no heading; an absent description, expiry or last use hides its row instead of showing a dash. The previous secret\\'s prefix and end date appear only while that secret still authenticates, by the same rule the request authentication applies.',\n summaryPurpose: 'A registry row or card: the name, the `status` badge, and the key prefix — the one card value that keeps its label, since a bare prefix reads as a second name.',\n editPurpose: 'The CREATE form (the resource has no UPDATE): one stacked column with no headings — name (focused), description as a textarea, roles, expiry, status.',\n sections: {\n overview: {\n purpose: 'The key prefix (the visible first characters of the secret, never the secret), the roles embedded on the key, and its description. The name and status are the header\\'s, so they are not rows here.',\n whenToUse: 'Read-only key inspection.',\n textSlots: {\n title: { purpose: 'Label the key\\'s identity and access block (not rendered on the read page, whose header names the key).' },\n },\n },\n lifecycle: {\n purpose: 'Expiry, last use and creation, the dates a rotation or retirement decision turns on; and, while a rotated key\\'s previous secret still authenticates, that secret\\'s prefix and when it stops (after a regenerate it has no end date and keeps working until the next rotation, which the prefix row\\'s description says).',\n whenToUse: 'Deciding whether to rotate, extend or retire a key.',\n textSlots: {\n title: { purpose: 'Label the validity and rotation block: when the key expires, when it was used, and whether an old secret still works.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The addressable list surface in merged presets; primary navigation for key inventory.', whenToUse: 'Org security settings and app-admin org drill-downs.' },\n [Op.READ]: {\n purpose: 'Read shell for a single key record.',\n whenToUse: 'When operators open a key from a list; non-addressable in primary preset wiring.',\n variants: {\n default: { purpose: 'Org context read for org admins and members with factory visibility.', whenToUse: 'Tenant self-service key management.' },\n admin: { purpose: 'App super-admin read across organizations.', whenToUse: 'Platform support and cross-tenant key inspection.' },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create flow surfaced as the Create action on the list toolbar + empty-state in merged presets — a NON-addressable (overlay) surface, drilled in within the Settings Hub panel. Action visibility is governed by `actionVisibility` + the declared view, NOT by URL-addressability. Merged admin uses `admin` API variants.',\n whenToUse: 'When minting a new org key from the product UI (Settings Hub → API keys) or app-admin.',\n variants: {\n default: { purpose: 'Org-admin create with ephemeral full key on success.', whenToUse: 'In-org automation onboarding.' },\n admin: { purpose: 'App-admin key creation on behalf of a tenant when enabled.', whenToUse: 'Back-office and migration support.' },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Search and sort where the factory enables searchable variants.',\n whenToUse: 'Large rosters; admin variant extends filters per factory.',\n variants: {\n default: { purpose: 'Member/operator search in tenant scope.', whenToUse: 'Finding keys by name in standard org UIs.' },\n admin: { purpose: 'Super-admin search with additional filter fields in factory config.', whenToUse: 'Platform-wide directory maintenance.' },\n },\n },\n [Op.DELETE]: {\n purpose: 'Delete one or more keys with optional bulk in factory config.',\n whenToUse: 'Key retirement and offboarding when policy allows API delete.',\n variants: {\n default: { purpose: 'Org admin delete within the tenant boundary.', whenToUse: 'Normal tenant-driven removal.' },\n admin: { purpose: 'App-admin delete in elevated contexts.', whenToUse: 'Abuse, migration, and forced key retirement.' },\n },\n },\n [OrgApiKeys_Operations.ROTATE]: {\n purpose: 'High-risk reissuance; typically non-addressable as a custom route from read/create flows.',\n whenToUse: 'Planned or incident-driven rotation; notifications follow factory `userNotifications`.',\n variants: {\n default: { purpose: 'Org admin rotation in tenant scope.', whenToUse: 'When operators rotate integration secrets.' },\n admin: { purpose: 'App-admin rotation of org keys in cross-tenant mode.', whenToUse: 'Assisted support rotations.' },\n },\n },\n [OrgApiKeys_Operations.REGENERATE]: {\n purpose: 'Generate a new secret without the same invalidation story as full rotation when supported.',\n whenToUse: 'When overlap between old and new is acceptable; non-addressable in default preset wiring.',\n variants: {\n default: { purpose: 'Org-admin path.', whenToUse: 'Refresh keys where invalidation of the prior secret is not immediate.' },\n admin: { purpose: 'App-admin path.', whenToUse: 'Platform-assisted reissue across tenants.' },\n },\n },\n [OrgApiKeys_Operations.DEACTIVATE]: {\n purpose: 'Soft-disable a key in place; enabled only when the current row is active.',\n whenToUse: 'Stop traffic quickly without schema removal.',\n variants: {\n default: { purpose: 'Org-admin deactivation.', whenToUse: 'Temporarily block API key use.' },\n admin: { purpose: 'App-admin deactivation in elevated contexts.', whenToUse: 'Enforcement and incident response from platform roles.' },\n },\n },\n [OrgApiKeys_Operations.REACTIVATE]: {\n purpose: 'Re-enable a key that is inactive; enabled when status matches factory condition.',\n whenToUse: 'After mistaken deactivation or policy-driven reinstatement.',\n variants: {\n default: { purpose: 'Org-admin reactivation.', whenToUse: 'Bringing a key back for an org-owned integration.' },\n admin: { purpose: 'App-admin reactivation.', whenToUse: 'Cross-tenant re-enablement for support cases.' },\n },\n },\n [OrgApiKeys_Operations.EXTEND_EXPIRY]: {\n purpose: 'Update expiration when the key already has an expiry; requires future date in request DTO per factory.',\n whenToUse: 'Renewal before automated expiry cuts traffic.',\n variants: {\n default: { purpose: 'Org-admin extension within tenant context.', whenToUse: 'Standard renewal flows.' },\n admin: { purpose: 'App-admin extension when operating on any org’s keys.', whenToUse: 'Assisted long-lived integrations.' },\n },\n },\n [OrgApiKeys_Operations.USAGE_STATS]: {\n purpose: 'Read-side analytics (requests, error rate) for a key, modeled like READ in risk tier.',\n whenToUse: 'Dashboards; non-addressable in default preset list views.',\n variants: {\n default: { purpose: 'Org members and admins with factory roles.', whenToUse: 'Self-service key health in tenant scope.' },\n admin: { purpose: 'App super-admin stats in cross-tenant mode.', whenToUse: 'Support triage and capacity reviews.' },\n },\n },\n },\n }),\n);\n"]}
|
package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
import { ApiKeyScope, CORE_ORG_ROLES, CoreResourceOperation as Op, OAuthGrantType, OAuthClientRegistrationOrigin, OAuthClientStatus, OAuthTokenEndpointAuthMethod, OrgOAuthClients_Operations } from '@wildo-ai/saas-models';
|
|
2
|
-
/**
|
|
3
|
-
* Framework-owned base specification for the organization-scoped
|
|
4
|
-
* `organizationOAuthClients` resource.
|
|
5
|
-
*
|
|
6
|
-
* This resource is a FAITHFUL MIRROR of the api-keys resource
|
|
7
|
-
* (`organization-api-keys.resource.specification.ts`) with a FOCUSED operation
|
|
8
|
-
* set — core READ/LIST/SEARCH/CREATE/DELETE/COUNT plus custom ROTATE/REGENERATE,
|
|
9
|
-
* the operator pair DEACTIVATE/REACTIVATE (#1028) and the sweep-driven EXPIRE.
|
|
10
|
-
* EXTEND_EXPIRY and USAGE_STATS from the api-keys spec are not ported: a client's
|
|
11
|
-
* validity is fixed at registration and no usage accounting is recorded for clients.
|
|
12
|
-
*
|
|
13
|
-
* Unlike api-keys, this resource ships NO UI behavior preset today, so — like
|
|
14
|
-
* `jobExecutions` — it is authored from the shared resource factory only
|
|
15
|
-
* (`resourceSpecification(...)`, no `resourceSpecificationFromFrontendConfiguration`
|
|
16
|
-
* overlay). Its first useful semantic layer is the base operational model; the
|
|
17
|
-
* label/layout/views frontend narration the api-keys spec carries has no preset
|
|
18
|
-
* to document here.
|
|
19
|
-
*
|
|
20
|
-
* `resourcePrimaryScope: ORGANIZATIONS` — an organization OAuth client is
|
|
21
|
-
* per-tenant data owned by the `organizationId` FK; the scope is enforced by the
|
|
22
|
-
* spec ↔ registry alignment guard against the `isPrimaryScope: true` relationship
|
|
23
|
-
* row for `OAUTH_CLIENTS_ORGANIZATION`.
|
|
24
|
-
*/
|
|
25
2
|
export declare const organizationOAuthClientsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof OrgOAuthClients_Operations, Op.READ | Op.DELETE | Op.CREATE | Op.LIST | Op.SEARCH | Op.COUNT, import("zod").ZodObject<{
|
|
26
3
|
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
27
4
|
name: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
@@ -48,5 +25,6 @@ export declare const organizationOAuthClientsResourceSpecification: import("../.
|
|
|
48
25
|
registrationOrigin: 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("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodEnum<typeof OAuthClientRegistrationOrigin>>>>>>>;
|
|
49
26
|
scope: import("zod").ZodLiteral<ApiKeyScope.ORGANIZATION>;
|
|
50
27
|
organizationId: 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").ZodString>>>>;
|
|
28
|
+
autonomousAgentRefs: 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("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>>>>>;
|
|
51
29
|
}, import("zod/v4/core").$strip>>;
|
|
52
30
|
//# sourceMappingURL=organization-oauth-clients.resource.specification.d.ts.map
|
package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-oauth-clients.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/organization-oauth-clients.resource.specification.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organization-oauth-clients.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/organization-oauth-clients.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,WAAW,EACX,cAAc,EACd,qBAAqB,IAAI,EAAE,EAI3B,cAAc,EAEd,6BAA6B,EAC7B,iBAAiB,EACjB,4BAA4B,EAC5B,0BAA0B,EAG3B,MAAM,uBAAuB,CAAC;AA8F/B,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmpBzD,CAAC"}
|