@owlmeans/viable-common 0.0.43 → 0.0.45
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/README.md +3 -3
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/agent-presentation/SKILL.md +4 -4
- package/agent-meta/skills/viable-common/SKILL.md +59 -36
- package/build/agent/consts.d.ts +58 -0
- package/build/agent/consts.d.ts.map +1 -0
- package/build/agent/consts.js +63 -0
- package/build/agent/consts.js.map +1 -0
- package/build/agent/consts.local.d.ts +21 -0
- package/build/agent/consts.local.d.ts.map +1 -0
- package/build/agent/consts.local.js +44 -0
- package/build/agent/consts.local.js.map +1 -0
- package/build/agent/index.d.ts +2 -0
- package/build/agent/index.d.ts.map +1 -1
- package/build/agent/index.js +1 -0
- package/build/agent/index.js.map +1 -1
- package/build/agent/presentation/types.d.ts +21 -0
- package/build/agent/presentation/types.d.ts.map +1 -0
- package/build/agent/presentation/types.js.map +1 -0
- package/build/agent/presentation.d.ts +12 -94
- package/build/agent/presentation.d.ts.map +1 -1
- package/build/agent/presentation.js +218 -299
- package/build/agent/presentation.js.map +1 -1
- package/build/agent/types.d.ts +30 -0
- package/build/agent/types.d.ts.map +1 -1
- package/build/agent/types.local.d.ts +4 -0
- package/build/agent/types.local.d.ts.map +1 -0
- package/build/agent/types.local.js +2 -0
- package/build/agent/types.local.js.map +1 -0
- package/build/areas/consts.d.ts +5 -0
- package/build/areas/consts.d.ts.map +1 -1
- package/build/areas/consts.js +4 -0
- package/build/areas/consts.js.map +1 -1
- package/build/areas/index.d.ts +1 -0
- package/build/areas/index.d.ts.map +1 -1
- package/build/areas/index.js.map +1 -1
- package/build/areas/tenancy/types.d.ts +23 -0
- package/build/areas/tenancy/types.d.ts.map +1 -0
- package/build/areas/tenancy/types.js +2 -0
- package/build/areas/tenancy/types.js.map +1 -0
- package/build/areas/tenancy.d.ts +6 -50
- package/build/areas/tenancy.d.ts.map +1 -1
- package/build/areas/tenancy.js +21 -31
- package/build/areas/tenancy.js.map +1 -1
- package/build/areas/types.d.ts +32 -0
- package/build/areas/types.d.ts.map +1 -1
- package/build/ba/connecting/types.d.ts +45 -0
- package/build/ba/connecting/types.d.ts.map +1 -0
- package/build/ba/connecting/types.js +2 -0
- package/build/ba/connecting/types.js.map +1 -0
- package/build/ba/connecting.d.ts +4 -0
- package/build/ba/connecting.d.ts.map +1 -0
- package/build/ba/connecting.js +47 -0
- package/build/ba/connecting.js.map +1 -0
- package/build/ba/helpers.d.ts +4 -39
- package/build/ba/helpers.d.ts.map +1 -1
- package/build/ba/helpers.js +5 -79
- package/build/ba/helpers.js.map +1 -1
- package/build/ba/index.d.ts +2 -0
- package/build/ba/index.d.ts.map +1 -1
- package/build/ba/index.js +1 -0
- package/build/ba/index.js.map +1 -1
- package/build/ba/types.d.ts +1 -1
- package/build/ba/types.d.ts.map +1 -1
- package/build/blueprint/consts.d.ts +41 -0
- package/build/blueprint/consts.d.ts.map +1 -1
- package/build/blueprint/consts.js +51 -0
- package/build/blueprint/consts.js.map +1 -1
- package/build/blueprint/consts.local.d.ts +2 -0
- package/build/blueprint/consts.local.d.ts.map +1 -0
- package/build/blueprint/consts.local.js +3 -0
- package/build/blueprint/consts.local.js.map +1 -0
- package/build/blueprint/index.d.ts +1 -0
- package/build/blueprint/index.d.ts.map +1 -1
- package/build/blueprint/index.js +1 -0
- package/build/blueprint/index.js.map +1 -1
- package/build/blueprint/types.d.ts +3 -52
- package/build/blueprint/types.d.ts.map +1 -1
- package/build/blueprint/types.js +1 -65
- package/build/blueprint/types.js.map +1 -1
- package/build/blueprint/utils.d.ts +11 -0
- package/build/blueprint/utils.d.ts.map +1 -0
- package/build/blueprint/utils.js +16 -0
- package/build/blueprint/utils.js.map +1 -0
- package/build/branding.d.ts +0 -8
- package/build/branding.d.ts.map +1 -1
- package/build/branding.js +0 -16
- package/build/branding.js.map +1 -1
- package/build/connect/branding/types.d.ts +28 -0
- package/build/connect/branding/types.d.ts.map +1 -0
- package/build/connect/branding/types.js +2 -0
- package/build/connect/branding/types.js.map +1 -0
- package/build/connect/consts.d.ts +2 -10
- package/build/connect/consts.d.ts.map +1 -1
- package/build/connect/consts.js +2 -23
- package/build/connect/consts.js.map +1 -1
- package/build/connect/conversion/types.d.ts +93 -0
- package/build/connect/conversion/types.d.ts.map +1 -0
- package/build/connect/conversion/types.js +2 -0
- package/build/connect/conversion/types.js.map +1 -0
- package/build/connect/entrypoints/types.d.ts +30 -0
- package/build/connect/entrypoints/types.d.ts.map +1 -0
- package/build/connect/entrypoints/types.js +2 -0
- package/build/connect/entrypoints/types.js.map +1 -0
- package/build/connect/entrypoints.d.ts +61 -92
- package/build/connect/entrypoints.d.ts.map +1 -1
- package/build/connect/entrypoints.js +5 -2
- package/build/connect/entrypoints.js.map +1 -1
- package/build/connect/errors/types.d.ts +20 -0
- package/build/connect/errors/types.d.ts.map +1 -0
- package/build/connect/errors/types.js +2 -0
- package/build/connect/errors/types.js.map +1 -0
- package/build/connect/errors.d.ts +32 -0
- package/build/connect/errors.d.ts.map +1 -1
- package/build/connect/errors.js +65 -0
- package/build/connect/errors.js.map +1 -1
- package/build/connect/index.d.ts +13 -2
- package/build/connect/index.d.ts.map +1 -1
- package/build/connect/index.js +1 -0
- package/build/connect/index.js.map +1 -1
- package/build/connect/kit/types.d.ts +52 -0
- package/build/connect/kit/types.d.ts.map +1 -0
- package/build/connect/kit/types.js +2 -0
- package/build/connect/{types.js.map → kit/types.js.map} +1 -1
- package/build/connect/model-tier/types.d.ts +16 -0
- package/build/connect/model-tier/types.d.ts.map +1 -0
- package/build/connect/model-tier/types.js +2 -0
- package/build/connect/model-tier/types.js.map +1 -0
- package/build/connect/model-tier.d.ts +4 -0
- package/build/connect/model-tier.d.ts.map +1 -0
- package/build/connect/model-tier.js +21 -0
- package/build/connect/model-tier.js.map +1 -0
- package/build/connect/{ops.d.ts → ops/types.d.ts} +13 -4
- package/build/connect/ops/types.d.ts.map +1 -0
- package/build/connect/ops/types.js +2 -0
- package/build/connect/ops/types.js.map +1 -0
- package/build/connect/pipeline/types.d.ts +39 -0
- package/build/connect/pipeline/types.d.ts.map +1 -0
- package/build/connect/pipeline/types.js +2 -0
- package/build/connect/pipeline/types.js.map +1 -0
- package/build/connect/project/types.d.ts +127 -0
- package/build/connect/project/types.d.ts.map +1 -0
- package/build/connect/project/types.js +2 -0
- package/build/connect/project/types.js.map +1 -0
- package/build/connect/references/types.d.ts +157 -0
- package/build/connect/references/types.d.ts.map +1 -0
- package/build/connect/references/types.js +2 -0
- package/build/connect/references/types.js.map +1 -0
- package/build/connect/references/types.local.d.ts +5 -0
- package/build/connect/references/types.local.d.ts.map +1 -0
- package/build/connect/references/types.local.js +2 -0
- package/build/connect/references/types.local.js.map +1 -0
- package/build/connect/references.d.ts +1 -153
- package/build/connect/references.d.ts.map +1 -1
- package/build/connect/references.js.map +1 -1
- package/build/connect/schemas.d.ts +9 -5
- package/build/connect/schemas.d.ts.map +1 -1
- package/build/connect/schemas.js +10 -3
- package/build/connect/schemas.js.map +1 -1
- package/build/connect/session/types.d.ts +73 -0
- package/build/connect/session/types.d.ts.map +1 -0
- package/build/connect/session/types.js +2 -0
- package/build/connect/session/types.js.map +1 -0
- package/build/connect/settings/types.d.ts +48 -0
- package/build/connect/settings/types.d.ts.map +1 -0
- package/build/connect/settings/types.js +2 -0
- package/build/connect/settings/types.js.map +1 -0
- package/build/consts.d.ts +8 -0
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +16 -0
- package/build/consts.js.map +1 -1
- package/build/convert/analysis/types.d.ts +93 -0
- package/build/convert/analysis/types.d.ts.map +1 -0
- package/build/convert/analysis/types.js +2 -0
- package/build/convert/analysis/types.js.map +1 -0
- package/build/convert/census/consts.local.d.ts +55 -0
- package/build/convert/census/consts.local.d.ts.map +1 -0
- package/build/convert/census/consts.local.js +104 -0
- package/build/convert/census/consts.local.js.map +1 -0
- package/build/convert/census/types.d.ts +176 -0
- package/build/convert/census/types.d.ts.map +1 -0
- package/build/convert/census/types.js +2 -0
- package/build/convert/census/types.js.map +1 -0
- package/build/convert/census.d.ts +4 -0
- package/build/convert/census.d.ts.map +1 -0
- package/build/convert/census.js +83 -0
- package/build/convert/census.js.map +1 -0
- package/build/convert/consts.d.ts +4 -12
- package/build/convert/consts.d.ts.map +1 -1
- package/build/convert/consts.js +4 -3
- package/build/convert/consts.js.map +1 -1
- package/build/convert/detection/types.d.ts +67 -0
- package/build/convert/detection/types.d.ts.map +1 -0
- package/build/convert/detection/types.js +2 -0
- package/build/convert/detection/types.js.map +1 -0
- package/build/convert/docs/types.d.ts +129 -0
- package/build/convert/docs/types.d.ts.map +1 -0
- package/build/convert/docs/types.js +2 -0
- package/build/convert/docs/types.js.map +1 -0
- package/build/convert/docs.d.ts +4 -0
- package/build/convert/docs.d.ts.map +1 -0
- package/build/convert/docs.js +9 -0
- package/build/convert/docs.js.map +1 -0
- package/build/convert/estimate/types.d.ts +77 -0
- package/build/convert/estimate/types.d.ts.map +1 -0
- package/build/convert/estimate/types.js +2 -0
- package/build/convert/estimate/types.js.map +1 -0
- package/build/convert/estimate.d.ts +11 -0
- package/build/convert/estimate.d.ts.map +1 -0
- package/build/convert/estimate.js +18 -0
- package/build/convert/estimate.js.map +1 -0
- package/build/convert/helpers.d.ts +14 -78
- package/build/convert/helpers.d.ts.map +1 -1
- package/build/convert/helpers.js +27 -300
- package/build/convert/helpers.js.map +1 -1
- package/build/convert/index.d.ts +15 -0
- package/build/convert/index.d.ts.map +1 -1
- package/build/convert/index.js +6 -0
- package/build/convert/index.js.map +1 -1
- package/build/convert/origin/types.d.ts +41 -0
- package/build/convert/origin/types.d.ts.map +1 -0
- package/build/convert/origin/types.js +2 -0
- package/build/convert/origin/types.js.map +1 -0
- package/build/convert/origin.d.ts +4 -0
- package/build/convert/origin.d.ts.map +1 -0
- package/build/convert/origin.js +25 -0
- package/build/convert/origin.js.map +1 -0
- package/build/convert/record/types.d.ts +98 -0
- package/build/convert/record/types.d.ts.map +1 -0
- package/build/convert/record/types.js +2 -0
- package/build/convert/record/types.js.map +1 -0
- package/build/convert/schemas.d.ts +7 -6
- package/build/convert/schemas.d.ts.map +1 -1
- package/build/convert/schemas.js +1 -5
- package/build/convert/schemas.js.map +1 -1
- package/build/convert/stage/types.d.ts +27 -0
- package/build/convert/stage/types.d.ts.map +1 -0
- package/build/convert/stage/types.js +2 -0
- package/build/convert/stage/types.js.map +1 -0
- package/build/convert/stage.d.ts +4 -0
- package/build/convert/stage.d.ts.map +1 -0
- package/build/convert/stage.js +25 -0
- package/build/convert/stage.js.map +1 -0
- package/build/convert/taxonomy/types.d.ts +71 -0
- package/build/convert/taxonomy/types.d.ts.map +1 -0
- package/build/convert/taxonomy/types.js +2 -0
- package/build/convert/taxonomy/types.js.map +1 -0
- package/build/convert/types.d.ts +1 -648
- package/build/convert/types.d.ts.map +1 -1
- package/build/convert/utils.d.ts +5 -0
- package/build/convert/utils.d.ts.map +1 -0
- package/build/convert/utils.js +6 -0
- package/build/convert/utils.js.map +1 -0
- package/build/design/consts.d.ts +37 -0
- package/build/design/consts.d.ts.map +1 -1
- package/build/design/consts.js +44 -8
- package/build/design/consts.js.map +1 -1
- package/build/design/helpers.d.ts +9 -49
- package/build/design/helpers.d.ts.map +1 -1
- package/build/design/helpers.js +17 -224
- package/build/design/helpers.js.map +1 -1
- package/build/design/index.d.ts +3 -0
- package/build/design/index.d.ts.map +1 -1
- package/build/design/index.js +1 -0
- package/build/design/index.js.map +1 -1
- package/build/design/runtime/types.d.ts +16 -0
- package/build/design/runtime/types.d.ts.map +1 -0
- package/build/design/runtime/types.js +2 -0
- package/build/design/runtime/types.js.map +1 -0
- package/build/design/runtime.d.ts +8 -105
- package/build/design/runtime.d.ts.map +1 -1
- package/build/design/runtime.js +13 -48
- package/build/design/runtime.js.map +1 -1
- package/build/design/schemas.d.ts +1 -9
- package/build/design/schemas.d.ts.map +1 -1
- package/build/design/schemas.js +1 -1
- package/build/design/schemas.js.map +1 -1
- package/build/design/story/types.d.ts +67 -0
- package/build/design/story/types.d.ts.map +1 -0
- package/build/design/story/types.js +2 -0
- package/build/design/story/types.js.map +1 -0
- package/build/design/story.d.ts +4 -0
- package/build/design/story.d.ts.map +1 -0
- package/build/design/story.js +184 -0
- package/build/design/story.js.map +1 -0
- package/build/design/types.d.ts +75 -1
- package/build/design/types.d.ts.map +1 -1
- package/build/dev/schemas.d.ts.map +1 -1
- package/build/dev/schemas.js.map +1 -1
- package/build/dev/types.local.d.ts +5 -0
- package/build/dev/types.local.d.ts.map +1 -0
- package/build/dev/types.local.js +2 -0
- package/build/dev/types.local.js.map +1 -0
- package/build/integrity/consts.d.ts +0 -117
- package/build/integrity/consts.d.ts.map +1 -1
- package/build/integrity/consts.js +0 -281
- package/build/integrity/consts.js.map +1 -1
- package/build/integrity/consts.local.d.ts +5 -0
- package/build/integrity/consts.local.d.ts.map +1 -0
- package/build/integrity/consts.local.js +5 -0
- package/build/integrity/consts.local.js.map +1 -0
- package/build/integrity/index.d.ts +5 -0
- package/build/integrity/index.d.ts.map +1 -1
- package/build/integrity/index.js +3 -0
- package/build/integrity/index.js.map +1 -1
- package/build/integrity/layout/consts.d.ts +59 -0
- package/build/integrity/layout/consts.d.ts.map +1 -0
- package/build/integrity/layout/consts.js +66 -0
- package/build/integrity/layout/consts.js.map +1 -0
- package/build/integrity/layout/consts.local.d.ts +18 -0
- package/build/integrity/layout/consts.local.d.ts.map +1 -0
- package/build/integrity/layout/consts.local.js +176 -0
- package/build/integrity/layout/consts.local.js.map +1 -0
- package/build/integrity/layout/types.d.ts +35 -0
- package/build/integrity/layout/types.d.ts.map +1 -0
- package/build/integrity/layout/types.js +2 -0
- package/build/integrity/layout/types.js.map +1 -0
- package/build/integrity/layout.d.ts +4 -0
- package/build/integrity/layout.d.ts.map +1 -0
- package/build/integrity/layout.js +25 -0
- package/build/integrity/layout.js.map +1 -0
- package/build/integrity/types.d.ts +36 -2
- package/build/integrity/types.d.ts.map +1 -1
- package/build/integrity/utils.d.ts +13 -0
- package/build/integrity/utils.d.ts.map +1 -0
- package/build/integrity/utils.js +12 -0
- package/build/integrity/utils.js.map +1 -0
- package/build/integrity/verify/types.d.ts +26 -0
- package/build/integrity/verify/types.d.ts.map +1 -0
- package/build/integrity/verify/types.js +2 -0
- package/build/integrity/verify/types.js.map +1 -0
- package/build/integrity/verify.d.ts +5 -19
- package/build/integrity/verify.d.ts.map +1 -1
- package/build/integrity/verify.js +165 -175
- package/build/integrity/verify.js.map +1 -1
- package/build/intent/consts.d.ts +16 -0
- package/build/intent/consts.d.ts.map +1 -1
- package/build/intent/consts.js +63 -0
- package/build/intent/consts.js.map +1 -1
- package/build/intent/entrypoints.d.ts +2 -12
- package/build/intent/entrypoints.d.ts.map +1 -1
- package/build/intent/entrypoints.js.map +1 -1
- package/build/intent/index.d.ts +0 -1
- package/build/intent/index.d.ts.map +1 -1
- package/build/intent/index.js +0 -1
- package/build/intent/index.js.map +1 -1
- package/build/intent/types.d.ts +13 -0
- package/build/intent/types.d.ts.map +1 -1
- package/build/metadata/consts.d.ts +33 -0
- package/build/metadata/consts.d.ts.map +1 -1
- package/build/metadata/consts.js +37 -0
- package/build/metadata/consts.js.map +1 -1
- package/build/metadata/types.d.ts +1 -33
- package/build/metadata/types.d.ts.map +1 -1
- package/build/metadata/types.js +1 -38
- package/build/metadata/types.js.map +1 -1
- package/build/moderation/index.d.ts +2 -0
- package/build/moderation/index.d.ts.map +1 -1
- package/build/moderation/index.js +1 -0
- package/build/moderation/index.js.map +1 -1
- package/build/moderation/utils.d.ts +3 -15
- package/build/moderation/utils.d.ts.map +1 -1
- package/build/moderation/utils.js +5 -30
- package/build/moderation/utils.js.map +1 -1
- package/build/moderation/verdict/types.d.ts +24 -0
- package/build/moderation/verdict/types.d.ts.map +1 -0
- package/build/moderation/verdict/types.js +2 -0
- package/build/moderation/verdict/types.js.map +1 -0
- package/build/moderation/verdict.d.ts +4 -0
- package/build/moderation/verdict.d.ts.map +1 -0
- package/build/moderation/verdict.js +21 -0
- package/build/moderation/verdict.js.map +1 -0
- package/build/planning/card/types.d.ts +42 -0
- package/build/planning/card/types.d.ts.map +1 -0
- package/build/planning/card/types.js +2 -0
- package/build/planning/card/types.js.map +1 -0
- package/build/planning/card.d.ts +4 -0
- package/build/planning/card.d.ts.map +1 -0
- package/build/planning/card.js +51 -0
- package/build/planning/card.js.map +1 -0
- package/build/planning/consts.d.ts +13 -1
- package/build/planning/consts.d.ts.map +1 -1
- package/build/planning/consts.js +13 -0
- package/build/planning/consts.js.map +1 -1
- package/build/planning/helpers.d.ts +11 -37
- package/build/planning/helpers.d.ts.map +1 -1
- package/build/planning/helpers.js +24 -103
- package/build/planning/helpers.js.map +1 -1
- package/build/planning/index.d.ts +5 -1
- package/build/planning/index.d.ts.map +1 -1
- package/build/planning/index.js +2 -1
- package/build/planning/index.js.map +1 -1
- package/build/planning/landing/types.d.ts +16 -0
- package/build/planning/landing/types.d.ts.map +1 -0
- package/build/planning/landing/types.js +2 -0
- package/build/planning/landing/types.js.map +1 -0
- package/build/planning/landing.d.ts +5 -22
- package/build/planning/landing.d.ts.map +1 -1
- package/build/planning/landing.js +21 -35
- package/build/planning/landing.js.map +1 -1
- package/build/planning/schemas.d.ts +33 -0
- package/build/planning/schemas.d.ts.map +1 -1
- package/build/planning/schemas.js +173 -4
- package/build/planning/schemas.js.map +1 -1
- package/build/planning/spec/types.d.ts +22 -0
- package/build/planning/spec/types.d.ts.map +1 -0
- package/build/planning/spec/types.js +2 -0
- package/build/planning/spec/types.js.map +1 -0
- package/build/planning/spec.d.ts +4 -0
- package/build/planning/spec.d.ts.map +1 -0
- package/build/planning/spec.js +30 -0
- package/build/planning/spec.js.map +1 -0
- package/build/planning/types.d.ts +6 -5
- package/build/planning/types.d.ts.map +1 -1
- package/build/preview/consts.d.ts +3 -1
- package/build/preview/consts.d.ts.map +1 -1
- package/build/preview/consts.js +2 -0
- package/build/preview/consts.js.map +1 -1
- package/build/preview/types.d.ts +17 -2
- package/build/preview/types.d.ts.map +1 -1
- package/build/scaffold/consts.d.ts +40 -1
- package/build/scaffold/consts.d.ts.map +1 -1
- package/build/scaffold/consts.js +52 -0
- package/build/scaffold/consts.js.map +1 -1
- package/build/scaffold/helpers.d.ts +5 -30
- package/build/scaffold/helpers.d.ts.map +1 -1
- package/build/scaffold/helpers.js +9 -53
- package/build/scaffold/helpers.js.map +1 -1
- package/build/scaffold/index.d.ts +4 -0
- package/build/scaffold/index.d.ts.map +1 -1
- package/build/scaffold/index.js +2 -0
- package/build/scaffold/index.js.map +1 -1
- package/build/scaffold/landing/types.d.ts +48 -0
- package/build/scaffold/landing/types.d.ts.map +1 -0
- package/build/scaffold/landing/types.js +2 -0
- package/build/scaffold/landing/types.js.map +1 -0
- package/build/scaffold/landing.d.ts +4 -0
- package/build/scaffold/landing.d.ts.map +1 -0
- package/build/scaffold/landing.js +95 -0
- package/build/scaffold/landing.js.map +1 -0
- package/build/scaffold/schemas.d.ts +3 -2
- package/build/scaffold/schemas.d.ts.map +1 -1
- package/build/scaffold/schemas.js +177 -7
- package/build/scaffold/schemas.js.map +1 -1
- package/build/scaffold/share/types.d.ts +35 -0
- package/build/scaffold/share/types.d.ts.map +1 -0
- package/build/scaffold/share/types.js +2 -0
- package/build/scaffold/share/types.js.map +1 -0
- package/build/scaffold/share.d.ts +4 -0
- package/build/scaffold/share.d.ts.map +1 -0
- package/build/scaffold/share.js +42 -0
- package/build/scaffold/share.js.map +1 -0
- package/build/scaffold/types.d.ts +114 -2
- package/build/scaffold/types.d.ts.map +1 -1
- package/build/skills/consts.d.ts +42 -0
- package/build/skills/consts.d.ts.map +1 -1
- package/build/skills/consts.js +43 -0
- package/build/skills/consts.js.map +1 -1
- package/build/skills/index.d.ts +0 -1
- package/build/skills/index.d.ts.map +1 -1
- package/build/skills/index.js +0 -1
- package/build/skills/index.js.map +1 -1
- package/build/slot/command/types.d.ts +21 -0
- package/build/slot/command/types.d.ts.map +1 -0
- package/build/slot/command/types.js +2 -0
- package/build/slot/command/types.js.map +1 -0
- package/build/slot/command.d.ts +4 -0
- package/build/slot/command.d.ts.map +1 -0
- package/build/slot/command.js +31 -0
- package/build/slot/command.js.map +1 -0
- package/build/slot/consts.d.ts +7 -13
- package/build/slot/consts.d.ts.map +1 -1
- package/build/slot/consts.js +10 -36
- package/build/slot/consts.js.map +1 -1
- package/build/slot/helpers.d.ts +3 -22
- package/build/slot/helpers.d.ts.map +1 -1
- package/build/slot/helpers.js +5 -26
- package/build/slot/helpers.js.map +1 -1
- package/build/slot/index.d.ts +6 -0
- package/build/slot/index.d.ts.map +1 -1
- package/build/slot/index.js +3 -0
- package/build/slot/index.js.map +1 -1
- package/build/slot/layout/types.d.ts +17 -0
- package/build/slot/layout/types.d.ts.map +1 -0
- package/build/slot/layout/types.js +2 -0
- package/build/slot/layout/types.js.map +1 -0
- package/build/slot/layout.d.ts +5 -66
- package/build/slot/layout.d.ts.map +1 -1
- package/build/slot/layout.js +13 -27
- package/build/slot/layout.js.map +1 -1
- package/build/slot/origin/types.d.ts +23 -0
- package/build/slot/origin/types.d.ts.map +1 -0
- package/build/slot/origin/types.js +2 -0
- package/build/slot/origin/types.js.map +1 -0
- package/build/slot/origin.d.ts +4 -0
- package/build/slot/origin.d.ts.map +1 -0
- package/build/slot/origin.js +15 -0
- package/build/slot/origin.js.map +1 -0
- package/build/slot/types.d.ts +55 -1
- package/build/slot/types.d.ts.map +1 -1
- package/build/slot/utils.d.ts +6 -0
- package/build/slot/utils.d.ts.map +1 -0
- package/build/slot/utils.js +6 -0
- package/build/slot/utils.js.map +1 -0
- package/build/topology/card/types.d.ts +21 -0
- package/build/topology/card/types.d.ts.map +1 -0
- package/build/topology/card/types.js +2 -0
- package/build/topology/card/types.js.map +1 -0
- package/build/topology/card.d.ts +7 -19
- package/build/topology/card.d.ts.map +1 -1
- package/build/topology/card.js +84 -89
- package/build/topology/card.js.map +1 -1
- package/build/topology/consts.local.d.ts +4 -0
- package/build/topology/consts.local.d.ts.map +1 -0
- package/build/topology/consts.local.js +4 -0
- package/build/topology/consts.local.js.map +1 -0
- package/build/topology/helpers.d.ts +7 -33
- package/build/topology/helpers.d.ts.map +1 -1
- package/build/topology/helpers.js +15 -111
- package/build/topology/helpers.js.map +1 -1
- package/build/topology/index.d.ts +3 -0
- package/build/topology/index.d.ts.map +1 -1
- package/build/topology/index.js +1 -0
- package/build/topology/index.js.map +1 -1
- package/build/topology/resolve/types.d.ts +47 -0
- package/build/topology/resolve/types.d.ts.map +1 -0
- package/build/topology/resolve/types.js +2 -0
- package/build/topology/resolve/types.js.map +1 -0
- package/build/topology/resolve.d.ts +4 -0
- package/build/topology/resolve.d.ts.map +1 -0
- package/build/topology/resolve.js +89 -0
- package/build/topology/resolve.js.map +1 -0
- package/build/topology/types.d.ts +5 -0
- package/build/topology/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/agent/consts.local.ts +47 -0
- package/src/agent/consts.ts +61 -0
- package/src/agent/index.ts +2 -0
- package/src/agent/presentation/types.ts +21 -0
- package/src/agent/presentation.ts +200 -309
- package/src/agent/types.local.ts +3 -0
- package/src/agent/types.ts +40 -0
- package/src/areas/consts.ts +7 -0
- package/src/areas/index.ts +1 -0
- package/src/areas/tenancy/types.ts +23 -0
- package/src/areas/tenancy.ts +26 -61
- package/src/areas/types.ts +31 -0
- package/src/ba/connecting/types.ts +45 -0
- package/src/ba/connecting.ts +64 -0
- package/src/ba/helpers.ts +8 -92
- package/src/ba/index.ts +2 -0
- package/src/ba/types.ts +1 -1
- package/src/blueprint/consts.local.ts +3 -0
- package/src/blueprint/consts.ts +52 -0
- package/src/blueprint/index.ts +1 -0
- package/src/blueprint/types.ts +4 -74
- package/src/blueprint/utils.ts +20 -0
- package/src/branding.ts +0 -17
- package/src/connect/branding/types.ts +29 -0
- package/src/connect/consts.ts +3 -22
- package/src/connect/conversion/types.ts +96 -0
- package/src/connect/entrypoints/types.ts +25 -0
- package/src/connect/entrypoints.ts +18 -35
- package/src/connect/errors/types.ts +22 -0
- package/src/connect/errors.ts +75 -0
- package/src/connect/index.ts +13 -2
- package/src/connect/kit/types.ts +56 -0
- package/src/connect/model-tier/types.ts +16 -0
- package/src/connect/model-tier.ts +22 -0
- package/src/connect/{ops.ts → ops/types.ts} +13 -3
- package/src/connect/pipeline/types.ts +41 -0
- package/src/connect/project/types.ts +127 -0
- package/src/connect/references/types.local.ts +5 -0
- package/src/connect/references/types.ts +73 -0
- package/src/connect/references.ts +15 -75
- package/src/connect/schemas.ts +19 -12
- package/src/connect/session/types.ts +81 -0
- package/src/connect/settings/types.ts +52 -0
- package/src/consts.ts +17 -0
- package/src/convert/analysis/types.ts +89 -0
- package/src/convert/census/consts.local.ts +120 -0
- package/src/convert/census/types.ts +181 -0
- package/src/convert/census.ts +95 -0
- package/src/convert/consts.ts +5 -14
- package/src/convert/detection/types.ts +74 -0
- package/src/convert/docs/types.ts +151 -0
- package/src/convert/docs.ts +15 -0
- package/src/convert/estimate/types.ts +75 -0
- package/src/convert/estimate.ts +19 -0
- package/src/convert/helpers.ts +29 -328
- package/src/convert/index.ts +15 -0
- package/src/convert/origin/types.ts +43 -0
- package/src/convert/origin.ts +33 -0
- package/src/convert/record/types.ts +105 -0
- package/src/convert/schemas.ts +13 -12
- package/src/convert/stage/types.ts +27 -0
- package/src/convert/stage.ts +31 -0
- package/src/convert/taxonomy/types.ts +74 -0
- package/src/convert/types.ts +5 -703
- package/src/convert/utils.ts +7 -0
- package/src/design/consts.ts +48 -0
- package/src/design/helpers.ts +20 -245
- package/src/design/index.ts +3 -0
- package/src/design/runtime/types.ts +14 -0
- package/src/design/runtime.ts +18 -116
- package/src/design/schemas.ts +2 -10
- package/src/design/story/types.ts +67 -0
- package/src/design/story.ts +221 -0
- package/src/design/types.ts +81 -1
- package/src/dev/schemas.ts +1 -3
- package/src/dev/types.local.ts +4 -0
- package/src/integrity/consts.local.ts +5 -0
- package/src/integrity/consts.ts +0 -348
- package/src/integrity/index.ts +5 -0
- package/src/integrity/layout/consts.local.ts +188 -0
- package/src/integrity/layout/consts.ts +79 -0
- package/src/integrity/layout/types.ts +35 -0
- package/src/integrity/layout.ts +39 -0
- package/src/integrity/types.ts +37 -2
- package/src/integrity/utils.ts +21 -0
- package/src/integrity/verify/types.ts +26 -0
- package/src/integrity/verify.ts +178 -184
- package/src/intent/consts.ts +67 -0
- package/src/intent/entrypoints.ts +2 -3
- package/src/intent/index.ts +0 -1
- package/src/intent/types.ts +10 -0
- package/src/metadata/consts.ts +37 -0
- package/src/metadata/types.ts +1 -37
- package/src/moderation/index.ts +2 -0
- package/src/moderation/utils.ts +7 -30
- package/src/moderation/verdict/types.ts +22 -0
- package/src/moderation/verdict.ts +28 -0
- package/src/planning/card/types.ts +44 -0
- package/src/planning/card.ts +77 -0
- package/src/planning/consts.ts +15 -2
- package/src/planning/helpers.ts +28 -116
- package/src/planning/index.ts +5 -1
- package/src/planning/landing/types.ts +15 -0
- package/src/planning/landing.ts +28 -38
- package/src/planning/schemas.ts +191 -4
- package/src/planning/spec/types.ts +22 -0
- package/src/planning/spec.ts +41 -0
- package/src/planning/types.ts +6 -6
- package/src/preview/consts.ts +2 -0
- package/src/preview/types.ts +19 -0
- package/src/scaffold/consts.ts +65 -1
- package/src/scaffold/helpers.ts +14 -80
- package/src/scaffold/index.ts +4 -0
- package/src/scaffold/landing/types.ts +48 -0
- package/src/scaffold/landing.ts +120 -0
- package/src/scaffold/schemas.ts +183 -7
- package/src/scaffold/share/types.ts +35 -0
- package/src/scaffold/share.ts +60 -0
- package/src/scaffold/types.ts +123 -1
- package/src/skills/consts.ts +46 -0
- package/src/skills/index.ts +0 -1
- package/src/slot/command/types.ts +21 -0
- package/src/slot/command.ts +38 -0
- package/src/slot/consts.ts +11 -40
- package/src/slot/helpers.ts +6 -31
- package/src/slot/index.ts +6 -0
- package/src/slot/layout/types.ts +17 -0
- package/src/slot/layout.ts +19 -77
- package/src/slot/origin/types.ts +23 -0
- package/src/slot/origin.ts +20 -0
- package/src/slot/types.ts +58 -1
- package/src/slot/utils.ts +10 -0
- package/src/topology/card/types.ts +21 -0
- package/src/topology/card.ts +85 -90
- package/src/topology/consts.local.ts +6 -0
- package/src/topology/helpers.ts +20 -125
- package/src/topology/index.ts +3 -0
- package/src/topology/resolve/types.ts +47 -0
- package/src/topology/resolve.ts +118 -0
- package/src/topology/types.ts +6 -0
- package/tests/blueprint.spec.ts +1 -2
- package/tests/branding.spec.ts +2 -2
- package/tests/connect-convert.spec.ts +21 -1
- package/tests/connect-errors.spec.ts +34 -1
- package/tests/convert.spec.ts +51 -52
- package/tests/design.spec.ts +13 -16
- package/tests/error-status.spec.ts +7 -1
- package/tests/planning.spec.ts +58 -75
- package/tests/presentation.spec.ts +21 -23
- package/tests/scaffold.spec.ts +286 -6
- package/tests/tenancy.spec.ts +21 -21
- package/build/connect/ops.d.ts.map +0 -1
- package/build/connect/ops.js +0 -2
- package/build/connect/ops.js.map +0 -1
- package/build/connect/types.d.ts +0 -437
- package/build/connect/types.d.ts.map +0 -1
- package/build/intent/flow.d.ts +0 -17
- package/build/intent/flow.d.ts.map +0 -1
- package/build/intent/flow.js +0 -65
- package/build/intent/flow.js.map +0 -1
- package/build/planning/flows.d.ts +0 -34
- package/build/planning/flows.d.ts.map +0 -1
- package/build/planning/flows.js +0 -174
- package/build/planning/flows.js.map +0 -1
- package/build/skills/roles.d.ts +0 -43
- package/build/skills/roles.d.ts.map +0 -1
- package/build/skills/roles.js +0 -44
- package/build/skills/roles.js.map +0 -1
- package/src/connect/types.ts +0 -466
- package/src/intent/flow.ts +0 -67
- package/src/planning/flows.ts +0 -204
- package/src/skills/roles.ts +0 -46
- /package/build/{connect → agent/presentation}/types.js +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { ArchitectureCase, ConversionDecision, ConversionStage, ConversionStatus, ConvertibilityReason, ConvertibilityVerdict, OriginKind, OriginShape, OriginState } from '../../convert/consts.js';
|
|
2
|
+
import type { ConversionEstimate, StoryEstimateBand } from '../../convert/estimate/types.js';
|
|
3
|
+
import type { ConversionStackRef } from '../../convert/record/types.js';
|
|
4
|
+
import type { ConnectTarget, ConnectWaitReason } from '../consts.js';
|
|
5
|
+
import type { InquiryPayload } from '../ops/types.js';
|
|
6
|
+
/** Start a conversion of an existing project's code. */
|
|
7
|
+
export interface ConnectConvertCreateBody {
|
|
8
|
+
name?: string;
|
|
9
|
+
about?: string;
|
|
10
|
+
/** Where the converted target's tree will live. */
|
|
11
|
+
target?: ConnectTarget;
|
|
12
|
+
/**
|
|
13
|
+
* Where the code comes from.
|
|
14
|
+
*
|
|
15
|
+
* Absent for a LOCAL target the connector is already attached to: the tree is the directory the
|
|
16
|
+
* session opened on, and there is nothing to fetch.
|
|
17
|
+
*/
|
|
18
|
+
origin?: {
|
|
19
|
+
kind: OriginKind;
|
|
20
|
+
repoUrl?: string;
|
|
21
|
+
branch?: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Start the conversion of a project already filed.
|
|
26
|
+
*
|
|
27
|
+
* `confirm` says a PERSON agreed to what the start uses: without it, a start that would spend the
|
|
28
|
+
* organization's `conversions` unit is refused with `ConnectConfirmationRequired` and nothing runs.
|
|
29
|
+
* A delegated conversion spends nothing and is never asked.
|
|
30
|
+
*/
|
|
31
|
+
export interface ConnectConvertStartBody {
|
|
32
|
+
confirm?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** Decide what happens at a stage boundary. */
|
|
35
|
+
export interface ConnectConvertProceedBody {
|
|
36
|
+
decision: ConversionDecision;
|
|
37
|
+
/** Free text the user added to the decision; recorded, never parsed. */
|
|
38
|
+
note?: string;
|
|
39
|
+
/**
|
|
40
|
+
* A person agreed to what the stage costs. Without it, a stage that would spend credit limits or
|
|
41
|
+
* topped-up credits (its estimate past what is left of the conversion limit) is refused with
|
|
42
|
+
* `ConnectConfirmationRequired` — its estimate split packed — and nothing runs.
|
|
43
|
+
*/
|
|
44
|
+
confirm?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Whether this origin can be converted, and what it will cost.
|
|
48
|
+
*
|
|
49
|
+
* Answered BEFORE anything is provisioned or charged, from the census alone — which is why it
|
|
50
|
+
* carries the counts it was decided from rather than a bare verdict.
|
|
51
|
+
*/
|
|
52
|
+
export interface ConvertCheck {
|
|
53
|
+
projectId: string;
|
|
54
|
+
verdict: ConvertibilityVerdict;
|
|
55
|
+
reasons: ConvertibilityReason[];
|
|
56
|
+
stack?: ConversionStackRef;
|
|
57
|
+
architecture?: ArchitectureCase;
|
|
58
|
+
shape: OriginShape;
|
|
59
|
+
monorepo: boolean;
|
|
60
|
+
/** Workspace members and directories nothing declares. Named, because each one is a decision. */
|
|
61
|
+
unlinked: string[];
|
|
62
|
+
files: number;
|
|
63
|
+
bytes: number;
|
|
64
|
+
/** Bulk data files found — sampled and described, never carried. */
|
|
65
|
+
bulk: number;
|
|
66
|
+
estimate?: ConversionEstimate;
|
|
67
|
+
}
|
|
68
|
+
/** Everything a caller needs to draw the conversion's current state in one call. */
|
|
69
|
+
export interface ConversionStatusView {
|
|
70
|
+
projectId: string;
|
|
71
|
+
stage: ConversionStage;
|
|
72
|
+
status: ConversionStatus;
|
|
73
|
+
/** The last decision the user made. */
|
|
74
|
+
decision?: ConversionDecision;
|
|
75
|
+
verdict?: ConvertibilityVerdict;
|
|
76
|
+
stack?: ConversionStackRef;
|
|
77
|
+
/** What the conversion is rebuilding the project ONTO. Always the Viable stack today. */
|
|
78
|
+
targetStack?: ConversionStackRef;
|
|
79
|
+
architecture?: ArchitectureCase;
|
|
80
|
+
/** One per stage that has been estimated, newest last. */
|
|
81
|
+
estimates: ConversionEstimate[];
|
|
82
|
+
storyEstimate?: StoryEstimateBand;
|
|
83
|
+
originState: OriginState;
|
|
84
|
+
/** How many questions the conversion answered for itself. Each one is readable in the docs. */
|
|
85
|
+
assumptions: number;
|
|
86
|
+
runId?: string;
|
|
87
|
+
/** Set exactly when `status` is `Waiting`: the question the run stopped on. */
|
|
88
|
+
pendingInquiry?: InquiryPayload;
|
|
89
|
+
waitingFor?: ConnectWaitReason;
|
|
90
|
+
lastError?: string;
|
|
91
|
+
updatedAt: string;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/connect/conversion/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAAE,kBAAkB,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAC7F,qBAAqB,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAC5D,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAC5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,wDAAwD;AACxD,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACjE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,+CAA+C;AAC/C,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,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
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/connect/conversion/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the platform injects when it mounts the connector routes.
|
|
3
|
+
*
|
|
4
|
+
* The names of the guard and the gates belong to the deployment, not to the contract: a connector
|
|
5
|
+
* API on another platform would guard the same paths with its own vocabulary. Everything else —
|
|
6
|
+
* paths, methods, schemas, parents — is fixed here so a client cannot address them differently.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConnectEntrypointOptions {
|
|
9
|
+
/** The guard alias every connector route carries. */
|
|
10
|
+
guard: string;
|
|
11
|
+
/** The gate alias and parameters that decide project ownership. */
|
|
12
|
+
gate?: {
|
|
13
|
+
alias: string;
|
|
14
|
+
params: string[];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The gate that decides whether the caller may use the local-LLM mode.
|
|
18
|
+
*
|
|
19
|
+
* Applied to the one route that turns it on — opening a delegated session. Everything else is
|
|
20
|
+
* free: `cloud` is the default, and a project's own override is the platform's browser surface,
|
|
21
|
+
* not the connector's.
|
|
22
|
+
*/
|
|
23
|
+
localLlm?: {
|
|
24
|
+
alias: string;
|
|
25
|
+
params: string[];
|
|
26
|
+
};
|
|
27
|
+
/** Path prefix; defaults to `/connect`. */
|
|
28
|
+
path?: string;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/connect/entrypoints/types.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,mEAAmE;IACnE,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAC9C,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/connect/entrypoints/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
export interface ConnectEntrypointOptions {
|
|
11
|
-
/** The guard alias every connector route carries. */
|
|
12
|
-
guard: string;
|
|
13
|
-
/** The gate alias and parameters that decide project ownership. */
|
|
14
|
-
gate?: {
|
|
15
|
-
alias: string;
|
|
16
|
-
params: string[];
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* The gate that decides whether the caller may use the local-LLM mode.
|
|
20
|
-
*
|
|
21
|
-
* Applied to the one route that turns it on — opening a delegated session. Everything else is
|
|
22
|
-
* free: `cloud` is the default, and a project's own override is the platform's browser surface,
|
|
23
|
-
* not the connector's.
|
|
24
|
-
*/
|
|
25
|
-
localLlm?: {
|
|
26
|
-
alias: string;
|
|
27
|
-
params: string[];
|
|
28
|
-
};
|
|
29
|
-
/** Path prefix; defaults to `/connect`. */
|
|
30
|
-
path?: string;
|
|
31
|
-
}
|
|
1
|
+
import type { ConnectProjectBranding, ConnectProjectBrandingSave } from './branding/types.js';
|
|
2
|
+
import type { ConnectConvertCreateBody, ConnectConvertProceedBody, ConnectConvertStartBody, ConversionStatusView, ConvertCheck } from './conversion/types.js';
|
|
3
|
+
import type { ConnectEntrypointOptions } from './entrypoints/types.js';
|
|
4
|
+
import type { ConnectKitApplyBody, ConnectKitApplyResult, ConnectKitDescribe } from './kit/types.js';
|
|
5
|
+
import type { ConnectInquiryAnswerBody, ConnectOpResult } from './ops/types.js';
|
|
6
|
+
import type { ConnectPipelineParams, ConnectPipelineResumeBody, ConnectPipelineState } from './pipeline/types.js';
|
|
7
|
+
import type { ConnectAttachBody, ConnectConfirmBody, ConnectCreateBody, ConnectModifyBody, ConnectProjectStatus, ConnectStoryStatus } from './project/types.js';
|
|
8
|
+
import type { ConnectPullQuery, ConnectSessionOpen, ConnectSessionParams } from './session/types.js';
|
|
32
9
|
/**
|
|
33
10
|
* Declare the connector's HTTP surface — exactly the routes a connector calls: the session (long
|
|
34
11
|
* poll, no socket), the operation relay, projects, story status, generated files, conversion,
|
|
@@ -43,44 +20,41 @@ export declare const connectProtocols: (opts: ConnectEntrypointOptions) => {
|
|
|
43
20
|
session: {
|
|
44
21
|
open: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
45
22
|
body: ConnectSessionOpen;
|
|
46
|
-
},
|
|
23
|
+
}, unknown>;
|
|
47
24
|
openDelegated: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
48
25
|
body: ConnectSessionOpen;
|
|
49
|
-
},
|
|
26
|
+
}, unknown>;
|
|
50
27
|
close: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
51
28
|
params: ConnectSessionParams;
|
|
52
|
-
},
|
|
29
|
+
}, unknown>;
|
|
53
30
|
};
|
|
54
31
|
op: {
|
|
55
|
-
pull: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
56
|
-
params: ConnectSessionParams
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
body: ConnectOpResult;
|
|
62
|
-
} & {
|
|
63
|
-
params: {
|
|
32
|
+
pull: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
33
|
+
params: import("@owlmeans/entrypoint").Typed<ConnectSessionParams>;
|
|
34
|
+
query: import("@owlmeans/entrypoint").Typed<ConnectPullQuery>;
|
|
35
|
+
}>, unknown>;
|
|
36
|
+
submit: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
37
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
64
38
|
sessionId: string;
|
|
65
39
|
opId: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
40
|
+
}>;
|
|
41
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectOpResult>;
|
|
42
|
+
}>, unknown>;
|
|
68
43
|
};
|
|
69
44
|
project: {
|
|
70
45
|
create: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
71
46
|
body: ConnectCreateBody;
|
|
72
47
|
}, ConnectProjectStatus>;
|
|
73
|
-
list: import("@owlmeans/entrypoint").EntrypointProtocol<{},
|
|
48
|
+
list: import("@owlmeans/entrypoint").EntrypointProtocol<{}, unknown>;
|
|
74
49
|
attach: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
75
50
|
body: ConnectAttachBody;
|
|
76
|
-
},
|
|
77
|
-
confirm: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
78
|
-
|
|
79
|
-
} & {
|
|
80
|
-
params: {
|
|
51
|
+
}, unknown>;
|
|
52
|
+
confirm: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
53
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
81
54
|
id: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
55
|
+
}>;
|
|
56
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectConfirmBody>;
|
|
57
|
+
}>, ConnectProjectStatus>;
|
|
84
58
|
status: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
85
59
|
params: {
|
|
86
60
|
id: string;
|
|
@@ -91,26 +65,24 @@ export declare const connectProtocols: (opts: ConnectEntrypointOptions) => {
|
|
|
91
65
|
id: string;
|
|
92
66
|
};
|
|
93
67
|
}, ConnectProjectStatus>;
|
|
94
|
-
modify: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
95
|
-
|
|
96
|
-
} & {
|
|
97
|
-
params: {
|
|
68
|
+
modify: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
69
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
98
70
|
id: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
71
|
+
}>;
|
|
72
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectModifyBody>;
|
|
73
|
+
}>, ConnectProjectStatus>;
|
|
101
74
|
kit: {
|
|
102
75
|
describe: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
103
76
|
params: {
|
|
104
77
|
id: string;
|
|
105
78
|
};
|
|
106
79
|
}, ConnectKitDescribe>;
|
|
107
|
-
apply: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
108
|
-
|
|
109
|
-
} & {
|
|
110
|
-
params: {
|
|
80
|
+
apply: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
81
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
111
82
|
id: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
83
|
+
}>;
|
|
84
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectKitApplyBody>;
|
|
85
|
+
}>, ConnectKitApplyResult>;
|
|
114
86
|
};
|
|
115
87
|
branding: {
|
|
116
88
|
get: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
@@ -118,13 +90,12 @@ export declare const connectProtocols: (opts: ConnectEntrypointOptions) => {
|
|
|
118
90
|
id: string;
|
|
119
91
|
};
|
|
120
92
|
}, ConnectProjectBranding>;
|
|
121
|
-
save: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
122
|
-
|
|
123
|
-
} & {
|
|
124
|
-
params: {
|
|
93
|
+
save: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
94
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
125
95
|
id: string;
|
|
126
|
-
}
|
|
127
|
-
|
|
96
|
+
}>;
|
|
97
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectProjectBrandingSave>;
|
|
98
|
+
}>, ConnectProjectBranding>;
|
|
128
99
|
};
|
|
129
100
|
};
|
|
130
101
|
story: {
|
|
@@ -151,18 +122,18 @@ export declare const connectProtocols: (opts: ConnectEntrypointOptions) => {
|
|
|
151
122
|
id: string;
|
|
152
123
|
};
|
|
153
124
|
}, ConvertCheck>;
|
|
154
|
-
start: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
155
|
-
params: {
|
|
125
|
+
start: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
126
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
156
127
|
id: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
params: {
|
|
128
|
+
}>;
|
|
129
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectConvertStartBody>;
|
|
130
|
+
}>, ConversionStatusView>;
|
|
131
|
+
proceed: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
132
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
163
133
|
id: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
134
|
+
}>;
|
|
135
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectConvertProceedBody>;
|
|
136
|
+
}>, ConversionStatusView>;
|
|
166
137
|
status: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
167
138
|
params: {
|
|
168
139
|
id: string;
|
|
@@ -175,24 +146,22 @@ export declare const connectProtocols: (opts: ConnectEntrypointOptions) => {
|
|
|
175
146
|
}, ConversionStatusView>;
|
|
176
147
|
};
|
|
177
148
|
inquiry: {
|
|
178
|
-
answer: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
179
|
-
|
|
180
|
-
} & {
|
|
181
|
-
params: {
|
|
149
|
+
answer: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
150
|
+
params: import("@owlmeans/entrypoint").Typed<{
|
|
182
151
|
id: string;
|
|
183
152
|
inquiryId: string;
|
|
184
|
-
}
|
|
185
|
-
|
|
153
|
+
}>;
|
|
154
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectInquiryAnswerBody>;
|
|
155
|
+
}>, unknown>;
|
|
186
156
|
};
|
|
187
157
|
pipeline: {
|
|
188
158
|
state: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
189
159
|
params: ConnectPipelineParams;
|
|
190
160
|
}, ConnectPipelineState>;
|
|
191
|
-
resume: import("@owlmeans/entrypoint").EntrypointProtocol<{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}, ConnectPipelineState>;
|
|
161
|
+
resume: import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").RequestFromSources<{
|
|
162
|
+
params: import("@owlmeans/entrypoint").Typed<ConnectPipelineParams>;
|
|
163
|
+
body: import("@owlmeans/entrypoint").Typed<ConnectPipelineResumeBody>;
|
|
164
|
+
}>, ConnectPipelineState>;
|
|
196
165
|
};
|
|
197
166
|
};
|
|
198
167
|
//# sourceMappingURL=entrypoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/connect/entrypoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../../src/connect/entrypoints.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAA;AAC7F,OAAO,KAAK,EACV,wBAAwB,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,YAAY,EACjH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MAAM;;;;QAI9B,MAAM;;oBAEmC,MAAM;;;QAE/C,KAAK;;oBAEoC,MAAM;;;;;QAK/C,MAAM;;oBAKkB,MAAM;2BAAa,MAAM;;;;;;QAQjD,KAAK;;;QAML,MAAM;;;;;CAQT,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { contract, openProtocol, protocol, typed } from '@owlmeans/entrypoint';
|
|
2
2
|
import { route, RouteMethod } from '@owlmeans/route';
|
|
3
3
|
import { connect } from './consts.js';
|
|
4
|
-
import { ConnectAttachBodySchema, ConnectConfirmBodySchema, ConnectConvertCreateBodySchema, ConnectConvertProceedBodySchema, ConnectCreateBodySchema, ConnectInquiryParamsSchema, ConnectKitApplyBodySchema, ConnectModifyBodySchema, ConnectOpParamsSchema, ConnectOpResultSchema, ConnectPipelineParamsSchema, ConnectPipelineResumeBodySchema, ConnectProjectBrandingSaveSchema, ConnectProjectIdSchema, ConnectSessionOpenSchema, ConnectSessionParamsSchema, ConnectPullQuerySchema, ConnectStoryParamsSchema, InquiryAnswerSchema, } from './schemas.js';
|
|
4
|
+
import { ConnectAttachBodySchema, ConnectConfirmBodySchema, ConnectConvertCreateBodySchema, ConnectConvertProceedBodySchema, ConnectConvertStartBodySchema, ConnectCreateBodySchema, ConnectInquiryParamsSchema, ConnectKitApplyBodySchema, ConnectModifyBodySchema, ConnectOpParamsSchema, ConnectOpResultSchema, ConnectPipelineParamsSchema, ConnectPipelineResumeBodySchema, ConnectProjectBrandingSaveSchema, ConnectProjectIdSchema, ConnectSessionOpenSchema, ConnectSessionParamsSchema, ConnectPullQuerySchema, ConnectStoryParamsSchema, InquiryAnswerSchema, } from './schemas.js';
|
|
5
5
|
/**
|
|
6
6
|
* Declare the connector's HTTP surface — exactly the routes a connector calls: the session (long
|
|
7
7
|
* poll, no socket), the operation relay, projects, story status, generated files, conversion,
|
|
@@ -102,7 +102,10 @@ export const connectProtocols = (opts) => {
|
|
|
102
102
|
convert: {
|
|
103
103
|
create: protocol(route(connect.convert.create, '/convert', { parent: base, method: RouteMethod.POST }), contract.request({ body: typed(ConnectConvertCreateBodySchema) }, typed())),
|
|
104
104
|
check: protocol(route(connect.convert.check, '/convert/:id/check', { parent: base, method: RouteMethod.GET }), contract.request({ params: typed(ConnectProjectIdSchema) }, typed())),
|
|
105
|
-
start: protocol(route(connect.convert.start, '/convert/:id/start', { parent: base, method: RouteMethod.POST }), contract.request({
|
|
105
|
+
start: protocol(route(connect.convert.start, '/convert/:id/start', { parent: base, method: RouteMethod.POST }), contract.request({
|
|
106
|
+
params: typed(ConnectProjectIdSchema),
|
|
107
|
+
body: typed(ConnectConvertStartBodySchema),
|
|
108
|
+
}, typed())),
|
|
106
109
|
proceed: protocol(route(connect.convert.proceed, '/convert/:id/proceed', { parent: base, method: RouteMethod.POST }), contract.request({
|
|
107
110
|
params: typed(ConnectProjectIdSchema),
|
|
108
111
|
body: typed(ConnectConvertProceedBodySchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../../src/connect/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EACL,uBAAuB,EAAE,wBAAwB,EAAE,8BAA8B,EACjF,+BAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../../src/connect/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,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AmB,CAAC;aAC3D,EAAE,KAAK,EAAE,CAAC,CACZ;SACA;QAED,0FAA0F;QAC1F,QAAQ,EAAE;YACV,KAAK,EAAE,QAAQ,CACb,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,sBAAsB,EAAE;gBACpD,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG;aACtC,CAAC,EACF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,CAAwB,2BAA2B,CAAC,EAAE,EAAE,KAAK,EAAwB,CAAC,CACvH;YACD,MAAM,EAAE,QAAQ,CACd,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,6BAA6B,EAAE;gBAC5D,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,IAAI;aACvC,CAAC,EACF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,CAAwB,2BAA2B,CAAC,EAAE,IAAI,EAAE,KAAK,CAA4B,+BAA+B,CAAC,EAAE,EAAE,KAAK,EAAwB,CAAC,CAChM;SACA;KACF,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The conversion verb a {@link ConnectConfirmationRequired} stopped. */
|
|
2
|
+
export type ConnectConfirmationAction = 'convert-start' | 'convert-proceed';
|
|
3
|
+
/**
|
|
4
|
+
* What a person is asked to agree to before a conversion verb spends anything — credits, except
|
|
5
|
+
* `moneyUsd`. `cap` is the plan's conversion limit this conversion runs under (`0` when no plan unit
|
|
6
|
+
* covers it) and `spent` what the conversion has used of it so far; `estimate` is the stage's
|
|
7
|
+
* estimate (`0` while nothing has priced it), of which `fromAllowance` comes from the conversion
|
|
8
|
+
* limit, `fromCreditLimits` from the organization's open credit limits, and the rest from topped-up
|
|
9
|
+
* credits — `moneyUsd`, the only money figure.
|
|
10
|
+
*/
|
|
11
|
+
export interface ConnectConfirmation {
|
|
12
|
+
action: ConnectConfirmationAction;
|
|
13
|
+
cap: number;
|
|
14
|
+
spent: number;
|
|
15
|
+
estimate: number;
|
|
16
|
+
fromAllowance: number;
|
|
17
|
+
fromCreditLimits: number;
|
|
18
|
+
moneyUsd: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/connect/errors/types.ts"],"names":[],"mappings":"AAEA,yEAAyE;AACzE,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG,iBAAiB,CAAA;AAE3E;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,yBAAyB,CAAA;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/connect/errors/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ResilientError } from '@owlmeans/error';
|
|
2
|
+
import type { ConnectConfirmation, ConnectConfirmationAction } from './errors/types.js';
|
|
2
3
|
export declare class ConnectError extends ResilientError {
|
|
3
4
|
static typeName: string;
|
|
4
5
|
constructor(message?: string);
|
|
@@ -102,4 +103,35 @@ export declare class ConnectConsentRequired extends ConnectError {
|
|
|
102
103
|
private applyFields;
|
|
103
104
|
finalizeUnmarshal(): void;
|
|
104
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* A conversion verb would spend the plan's conversion or credits, and the caller has not said that a
|
|
108
|
+
* person agreed (`confirm: true`): a start that would use the organization's `conversions` unit, or a
|
|
109
|
+
* stage whose estimate reaches past what is left of the conversion limit into credit limits or
|
|
110
|
+
* topped-up credits. Nothing was started. The caller tells the person what it costs and repeats the
|
|
111
|
+
* call with `confirm: true` once they agree — unlike {@link ConnectConsentRequired}, this is agreed
|
|
112
|
+
* to in the conversation, not in the browser.
|
|
113
|
+
*
|
|
114
|
+
* Packed like the other two refusals a connector phrases for a person, because only `type` and
|
|
115
|
+
* `message` survive a marshal:
|
|
116
|
+
* `confirmation-required:<action>:<cap>:<spent>:<estimate>:<fromAllowance>:<fromCreditLimits>:<moneyUsd>`.
|
|
117
|
+
*/
|
|
118
|
+
export declare class ConnectConfirmationRequired extends ConnectError {
|
|
119
|
+
static typeName: string;
|
|
120
|
+
/** A precondition only a person can meet, not a fault: answered 428. */
|
|
121
|
+
static httpStatus: number;
|
|
122
|
+
action: ConnectConfirmationAction;
|
|
123
|
+
cap: number;
|
|
124
|
+
spent: number;
|
|
125
|
+
estimate: number;
|
|
126
|
+
fromAllowance: number;
|
|
127
|
+
fromCreditLimits: number;
|
|
128
|
+
moneyUsd: number;
|
|
129
|
+
/** Build the packed message a caller passes to the constructor. */
|
|
130
|
+
static encode(fields: ConnectConfirmation): string;
|
|
131
|
+
/** Read the packed fields back — what follows the marker, the inverse of {@link encode}. */
|
|
132
|
+
static decode(packed: string): ConnectConfirmation;
|
|
133
|
+
constructor(message?: string);
|
|
134
|
+
private applyFields;
|
|
135
|
+
finalizeUnmarshal(): void;
|
|
136
|
+
}
|
|
105
137
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/connect/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/connect/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,yBA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WAAW;IAOV,iBAAiB,IAAI,IAAI,CAEjC;CACF"}
|
package/build/connect/errors.js
CHANGED
|
@@ -166,6 +166,70 @@ export class ConnectConsentRequired extends ConnectError {
|
|
|
166
166
|
this.applyFields();
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
+
/** A packed number read back: anything unreadable is `0`, never `NaN`. */
|
|
170
|
+
const packedNumber = (value) => {
|
|
171
|
+
const parsed = Number(value ?? 0);
|
|
172
|
+
return Number.isFinite(parsed) ? parsed : 0;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* A conversion verb would spend the plan's conversion or credits, and the caller has not said that a
|
|
176
|
+
* person agreed (`confirm: true`): a start that would use the organization's `conversions` unit, or a
|
|
177
|
+
* stage whose estimate reaches past what is left of the conversion limit into credit limits or
|
|
178
|
+
* topped-up credits. Nothing was started. The caller tells the person what it costs and repeats the
|
|
179
|
+
* call with `confirm: true` once they agree — unlike {@link ConnectConsentRequired}, this is agreed
|
|
180
|
+
* to in the conversation, not in the browser.
|
|
181
|
+
*
|
|
182
|
+
* Packed like the other two refusals a connector phrases for a person, because only `type` and
|
|
183
|
+
* `message` survive a marshal:
|
|
184
|
+
* `confirmation-required:<action>:<cap>:<spent>:<estimate>:<fromAllowance>:<fromCreditLimits>:<moneyUsd>`.
|
|
185
|
+
*/
|
|
186
|
+
export class ConnectConfirmationRequired extends ConnectError {
|
|
187
|
+
static typeName = `ConfirmationRequired${ConnectError.typeName}`;
|
|
188
|
+
/** A precondition only a person can meet, not a fault: answered 428. */
|
|
189
|
+
static httpStatus = 428;
|
|
190
|
+
action = 'convert-start';
|
|
191
|
+
cap = 0;
|
|
192
|
+
spent = 0;
|
|
193
|
+
estimate = 0;
|
|
194
|
+
fromAllowance = 0;
|
|
195
|
+
fromCreditLimits = 0;
|
|
196
|
+
moneyUsd = 0;
|
|
197
|
+
/** Build the packed message a caller passes to the constructor. */
|
|
198
|
+
static encode(fields) {
|
|
199
|
+
return [
|
|
200
|
+
fields.action, fields.cap, fields.spent, fields.estimate, fields.fromAllowance, fields.fromCreditLimits,
|
|
201
|
+
fields.moneyUsd,
|
|
202
|
+
].map(value => typeof value === 'number' && !Number.isFinite(value) ? 0 : value).join(':');
|
|
203
|
+
}
|
|
204
|
+
/** Read the packed fields back — what follows the marker, the inverse of {@link encode}. */
|
|
205
|
+
static decode(packed) {
|
|
206
|
+
const [action, cap, spent, estimate, fromAllowance, fromCreditLimits, moneyUsd] = packed.split(':');
|
|
207
|
+
return {
|
|
208
|
+
action: (action ?? ''),
|
|
209
|
+
cap: packedNumber(cap),
|
|
210
|
+
spent: packedNumber(spent),
|
|
211
|
+
estimate: packedNumber(estimate),
|
|
212
|
+
fromAllowance: packedNumber(fromAllowance),
|
|
213
|
+
fromCreditLimits: packedNumber(fromCreditLimits),
|
|
214
|
+
moneyUsd: packedNumber(moneyUsd),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
constructor(message = 'error') {
|
|
218
|
+
super(`confirmation-required:${message}`);
|
|
219
|
+
this.type = ConnectConfirmationRequired.typeName;
|
|
220
|
+
this.applyFields();
|
|
221
|
+
}
|
|
222
|
+
applyFields() {
|
|
223
|
+
const marker = 'confirmation-required:';
|
|
224
|
+
const at = this.message.lastIndexOf(marker);
|
|
225
|
+
if (at < 0)
|
|
226
|
+
return;
|
|
227
|
+
Object.assign(this, ConnectConfirmationRequired.decode(this.message.slice(at + marker.length)));
|
|
228
|
+
}
|
|
229
|
+
finalizeUnmarshal() {
|
|
230
|
+
this.applyFields();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
169
233
|
ResilientError.registerErrorClass(ConnectError);
|
|
170
234
|
ResilientError.registerErrorClass(ConnectSessionNotFound);
|
|
171
235
|
ResilientError.registerErrorClass(ConnectSessionGone);
|
|
@@ -175,4 +239,5 @@ ResilientError.registerErrorClass(LocalSlotUnsupported);
|
|
|
175
239
|
ResilientError.registerErrorClass(ConnectOpUnknown);
|
|
176
240
|
ResilientError.registerErrorClass(ConnectOutOfCredits);
|
|
177
241
|
ResilientError.registerErrorClass(ConnectConsentRequired);
|
|
242
|
+
ResilientError.registerErrorClass(ConnectConfirmationRequired);
|
|
178
243
|
//# sourceMappingURL=errors.js.map
|