@codiac.io/codiac-cli 1.2.174 → 1.2.202
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 +4696 -4634
- package/bin/dev +16 -16
- package/bin/dev.cmd +2 -2
- package/bin/run +3 -3
- package/bin/run.cmd +3 -3
- package/codiac.json +1 -1
- package/dist/apis/codiac-api/common/api-client-base.d.ts +165 -0
- package/dist/apis/codiac-api/common/api-client-base.js +548 -0
- package/dist/apis/codiac-api/common/api-client-base.js.map +1 -0
- package/dist/apis/codiac-api/common/api-user-creds.d.ts +7 -0
- package/dist/apis/codiac-api/common/api-user-creds.js +19 -0
- package/dist/apis/codiac-api/common/api-user-creds.js.map +1 -0
- package/dist/apis/codiac-api/common/config-loader.d.ts +6 -0
- package/dist/apis/codiac-api/common/config-loader.js +19 -0
- package/dist/apis/codiac-api/common/endpoint-spec.d.ts +17 -0
- package/dist/apis/codiac-api/common/endpoint-spec.js +28 -0
- package/dist/apis/codiac-api/common/security/api-auth-methods-legacy.d.ts +87 -0
- package/dist/apis/codiac-api/common/security/api-auth-methods-legacy.js +368 -0
- package/dist/apis/codiac-api/common/security/api-auth-methods-legacy.js.map +1 -0
- package/dist/apis/codiac-api/common/security/auth-constants.d.ts +15 -0
- package/dist/apis/codiac-api/common/security/auth-constants.js +22 -0
- package/dist/apis/codiac-api/common/security/i-auth-client.d.ts +44 -0
- package/dist/apis/codiac-api/common/security/i-auth-client.js +3 -0
- package/dist/apis/codiac-api/common/security/token-holder.d.ts +13 -0
- package/dist/apis/codiac-api/common/security/token-holder.js +18 -0
- package/dist/apis/codiac-api/common/utils.d.ts +23 -0
- package/dist/apis/codiac-api/common/utils.js +83 -0
- package/dist/apis/codiac-api/contracts/index.d.ts +1 -0
- package/dist/apis/codiac-api/contracts/index.js +5 -0
- package/dist/apis/codiac-api/gen/client-config.d.ts +10 -0
- package/dist/apis/codiac-api/gen/client-config.js +29 -0
- package/dist/apis/codiac-api/gen/client-config.js.map +1 -0
- package/dist/apis/codiac-api/gen/client.d.ts +1663 -0
- package/dist/apis/codiac-api/gen/client.js +15630 -0
- package/dist/apis/codiac-api/gen/client.js.map +1 -0
- package/dist/apis/codiac-api/gen/contracts.d.ts +2722 -0
- package/dist/apis/codiac-api/gen/contracts.js +403 -0
- package/dist/apis/codiac-api/index.d.ts +3 -0
- package/dist/apis/codiac-api/index.js +9 -0
- package/dist/apis/codiac-relay/common/api-client-base.d.ts +165 -0
- package/dist/apis/codiac-relay/common/api-client-base.js +548 -0
- package/dist/apis/codiac-relay/common/api-client-base.js.map +1 -0
- package/dist/apis/codiac-relay/common/api-user-creds.d.ts +7 -0
- package/dist/apis/codiac-relay/common/api-user-creds.js +19 -0
- package/dist/apis/codiac-relay/common/api-user-creds.js.map +1 -0
- package/dist/apis/codiac-relay/common/config-loader.d.ts +6 -0
- package/dist/apis/codiac-relay/common/config-loader.js +19 -0
- package/dist/apis/codiac-relay/common/endpoint-spec.d.ts +17 -0
- package/dist/apis/codiac-relay/common/endpoint-spec.js +28 -0
- package/dist/apis/codiac-relay/common/security/api-auth-methods-legacy.d.ts +87 -0
- package/dist/apis/codiac-relay/common/security/api-auth-methods-legacy.js +368 -0
- package/dist/apis/codiac-relay/common/security/api-auth-methods-legacy.js.map +1 -0
- package/dist/apis/codiac-relay/common/security/auth-constants.d.ts +15 -0
- package/dist/apis/codiac-relay/common/security/auth-constants.js +22 -0
- package/dist/apis/codiac-relay/common/security/i-auth-client.d.ts +44 -0
- package/dist/apis/codiac-relay/common/security/i-auth-client.js +3 -0
- package/dist/apis/codiac-relay/common/security/token-holder.d.ts +13 -0
- package/dist/apis/codiac-relay/common/security/token-holder.js +18 -0
- package/dist/apis/codiac-relay/common/utils.d.ts +23 -0
- package/dist/apis/codiac-relay/common/utils.js +83 -0
- package/dist/apis/codiac-relay/contracts/index.d.ts +1 -0
- package/dist/apis/codiac-relay/contracts/index.js +5 -0
- package/dist/apis/codiac-relay/gen/client-config.d.ts +10 -0
- package/dist/apis/codiac-relay/gen/client-config.js +29 -0
- package/dist/apis/codiac-relay/gen/client-config.js.map +1 -0
- package/dist/apis/codiac-relay/gen/client.d.ts +244 -0
- package/dist/apis/codiac-relay/gen/client.js +1863 -0
- package/dist/apis/codiac-relay/gen/client.js.map +1 -0
- package/dist/apis/codiac-relay/gen/contracts.d.ts +3111 -0
- package/dist/apis/codiac-relay/gen/contracts.js +435 -0
- package/dist/apis/codiac-relay/index.d.ts +3 -0
- package/dist/apis/codiac-relay/index.js +9 -0
- package/dist/cli-common/ImagesList.js +67 -0
- package/dist/cli-common/argument-manager.d.ts +28 -0
- package/dist/cli-common/argument-manager.js +195 -0
- package/dist/cli-common/built-in-cli-user-input.d.ts +18 -0
- package/dist/cli-common/built-in-cli-user-input.js +310 -0
- package/dist/cli-common/built-in-cli-user-input.js.map +1 -0
- package/dist/cli-common/cli-interfaces.js +7 -0
- package/dist/cli-common/command-base.d.ts +72 -0
- package/dist/cli-common/command-base.js +182 -0
- package/dist/cli-common/entities/index.d.ts +1 -0
- package/dist/cli-common/entities/index.js +5 -0
- package/dist/cli-common/entities/prompt-choice.d.ts +7 -0
- package/dist/cli-common/entities/prompt-choice.js +3 -0
- package/dist/cli-common/file-selector.d.ts +48 -0
- package/dist/cli-common/file-selector.js +187 -0
- package/dist/cli-common/i-user-input-provider.js +19 -0
- package/dist/cli-common/index.d.ts +4 -0
- package/dist/cli-common/index.js +11 -0
- package/dist/cli-common/mock-ui.d.ts +27 -0
- package/dist/cli-common/mock-ui.js +83 -0
- package/dist/cli-common/prompt-select-fuzzy.d.ts +19 -0
- package/dist/cli-common/prompt-select-fuzzy.js +119 -0
- package/dist/cli-common/prompt-select-fuzzy.js.map +1 -0
- package/dist/cli-common/tenant-contextualizer.js +436 -0
- package/dist/cli-common/test/tenant-contextualizer.spec.js +143 -0
- package/dist/cli-entities/output-format-enum.d.ts +7 -0
- package/dist/cli-entities/output-format-enum.js +12 -0
- package/dist/cli-entities/prompt-choice.js +6 -0
- package/dist/codiac-constants.d.ts +35 -0
- package/dist/codiac-constants.js +41 -0
- package/dist/codiac-entities/asset-binding.d.ts +12 -0
- package/dist/codiac-entities/asset-binding.js +18 -0
- package/dist/codiac-entities/azure-container-registry.d.ts +4 -0
- package/dist/codiac-entities/azure-container-registry.js +3 -0
- package/dist/codiac-entities/azure-service-principal.d.ts +23 -0
- package/dist/codiac-entities/azure-service-principal.js +24 -0
- package/dist/codiac-entities/cloud-account-ref.d.ts +28 -0
- package/dist/codiac-entities/cloud-account-ref.js +37 -0
- package/dist/codiac-entities/deployment-temp.js +133 -0
- package/dist/codiac-entities/i-cloud-account-ref.d.ts +5 -0
- package/dist/codiac-entities/i-cloud-account-ref.js +3 -0
- package/dist/command-base-enterprise.d.ts +121 -0
- package/dist/command-base-enterprise.js +524 -0
- package/dist/command-base-tenantless.d.ts +44 -0
- package/dist/command-base-tenantless.js +180 -0
- package/dist/commands/asset/create.d.ts +42 -0
- package/dist/commands/asset/create.js +467 -0
- package/dist/commands/asset/destroy.d.ts +20 -0
- package/dist/commands/asset/destroy.js +129 -0
- package/dist/commands/asset/helm.d.ts +23 -0
- package/dist/commands/asset/helm.js +153 -0
- package/dist/commands/asset/list.d.ts +28 -0
- package/dist/commands/asset/list.js +172 -0
- package/dist/commands/asset/probe/create.d.ts +38 -0
- package/dist/commands/asset/probe/create.js +187 -0
- package/dist/commands/asset/recycle.d.ts +23 -0
- package/dist/commands/asset/recycle.js +175 -0
- package/dist/commands/asset/view.d.ts +188 -0
- package/dist/commands/asset/view.js +1365 -0
- package/dist/commands/asset/volume/create.d.ts +23 -0
- package/dist/commands/asset/volume/create.js +176 -0
- package/dist/commands/asset/volume/delete.d.ts +19 -0
- package/dist/commands/asset/volume/delete.js +112 -0
- package/dist/commands/asset/volume/list.d.ts +19 -0
- package/dist/commands/asset/volume/list.js +70 -0
- package/dist/commands/branch/current.d.ts +10 -0
- package/dist/commands/branch/current.js +34 -0
- package/dist/commands/branch/list.d.ts +15 -0
- package/dist/commands/branch/list.js +56 -0
- package/dist/commands/branch.d.ts +12 -0
- package/dist/commands/branch.js +42 -0
- package/dist/commands/build.d.ts +38 -0
- package/dist/commands/build.js +120 -0
- package/dist/commands/cabinet/create.d.ts +21 -0
- package/dist/commands/cabinet/create.js +108 -0
- package/dist/commands/cabinet/list.d.ts +23 -0
- package/dist/commands/cabinet/list.js +134 -0
- package/dist/commands/cabinet/obliterate.d.ts +20 -0
- package/dist/commands/cabinet/obliterate.js +83 -0
- package/dist/commands/cli.d.ts +10 -0
- package/dist/commands/cli.js +100 -0
- package/dist/commands/commit.d.ts +11 -0
- package/dist/commands/commit.js +40 -0
- package/dist/commands/config/add.d.ts +78 -0
- package/dist/commands/config/add.js +560 -0
- package/dist/commands/config/delete.d.ts +18 -0
- package/dist/commands/config/delete.js +119 -0
- package/dist/commands/config/deploy.d.ts +22 -0
- package/dist/commands/config/deploy.js +125 -0
- package/dist/commands/config/import.d.ts +27 -0
- package/dist/commands/config/import.js +196 -0
- package/dist/commands/config/view.d.ts +25 -0
- package/dist/commands/config/view.js +121 -0
- package/dist/commands/csp/login.d.ts +18 -0
- package/dist/commands/csp/login.js +123 -0
- package/dist/commands/csp/login.js.map +1 -0
- package/dist/commands/csp/logout.d.ts +15 -0
- package/dist/commands/csp/logout.js +74 -0
- package/dist/commands/dep/create.d.ts +13 -0
- package/dist/commands/dep/create.js +41 -0
- package/dist/commands/dep/install.d.ts +9 -0
- package/dist/commands/dep/install.js +30 -0
- package/dist/commands/dep/list.d.ts +55 -0
- package/dist/commands/dep/list.js +98 -0
- package/dist/commands/dep/remove.d.ts +12 -0
- package/dist/commands/dep/remove.js +62 -0
- package/dist/commands/dep/source.d.ts +13 -0
- package/dist/commands/dep/source.js +83 -0
- package/dist/commands/dep/syncup.d.ts +11 -0
- package/dist/commands/dep/syncup.js +54 -0
- package/dist/commands/dep/unsource.d.ts +14 -0
- package/dist/commands/dep/unsource.js +68 -0
- package/dist/commands/dep/upgrade.d.ts +44 -0
- package/dist/commands/dep/upgrade.js +244 -0
- package/dist/commands/dep.d.ts +12 -0
- package/dist/commands/dep.js +51 -0
- package/dist/commands/deploy.d.ts +38 -0
- package/dist/commands/deploy.js +386 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/enterprise/create.d.ts +20 -0
- package/dist/commands/enterprise/create.js +98 -0
- package/dist/commands/enterprise/list.d.ts +14 -0
- package/dist/commands/enterprise/list.js +84 -0
- package/dist/commands/env/add.d.ts +22 -0
- package/dist/commands/env/add.js +200 -0
- package/dist/commands/environment/create.d.ts +19 -0
- package/dist/commands/environment/create.js +89 -0
- package/dist/commands/environment/list.d.ts +25 -0
- package/dist/commands/environment/list.js +158 -0
- package/dist/commands/filestore/capture.d.ts +31 -0
- package/dist/commands/filestore/capture.js +342 -0
- package/dist/commands/host/map.d.ts +33 -0
- package/dist/commands/host/map.js +347 -0
- package/dist/commands/identity/delete.d.ts +15 -0
- package/dist/commands/identity/delete.js +83 -0
- package/dist/commands/identity/list.d.ts +11 -0
- package/dist/commands/identity/list.js +43 -0
- package/dist/commands/identity.d.ts +22 -0
- package/dist/commands/identity.js +77 -0
- package/dist/commands/imageRegistry/capture.d.ts +27 -0
- package/dist/commands/imageRegistry/capture.js +160 -0
- package/dist/commands/imageRegistry/forget.d.ts +23 -0
- package/dist/commands/imageRegistry/forget.js +161 -0
- package/dist/commands/imageRegistry/pullSecret/set.d.ts +27 -0
- package/dist/commands/imageRegistry/pullSecret/set.js +300 -0
- package/dist/commands/imageRegistry/pullSecret/unset.d.ts +24 -0
- package/dist/commands/imageRegistry/pullSecret/unset.js +243 -0
- package/dist/commands/images/add.d.ts +25 -0
- package/dist/commands/images/add.js +76 -0
- package/dist/commands/images/list.d.ts +14 -0
- package/dist/commands/images/list.js +72 -0
- package/dist/commands/images/patch.d.ts +14 -0
- package/dist/commands/images/patch.js +93 -0
- package/dist/commands/images/remove.d.ts +12 -0
- package/dist/commands/images/remove.js +38 -0
- package/dist/commands/images/version/bump.d.ts +18 -0
- package/dist/commands/images/version/bump.js +61 -0
- package/dist/commands/images/version.d.ts +16 -0
- package/dist/commands/images/version.js +65 -0
- package/dist/commands/init.d.ts +17 -0
- package/dist/commands/init.js +131 -0
- package/dist/commands/kit/create.d.ts +25 -0
- package/dist/commands/kit/create.js +142 -0
- package/dist/commands/login.d.ts +22 -0
- package/dist/commands/login.js +93 -0
- package/dist/commands/logout.d.ts +8 -0
- package/dist/commands/logout.js +37 -0
- package/dist/commands/merge.d.ts +12 -0
- package/dist/commands/merge.js +43 -0
- package/dist/commands/noc/cluster/create.d.ts +28 -0
- package/dist/commands/noc/cluster/create.js +133 -0
- package/dist/commands/noc/cluster/deinit.d.ts +17 -0
- package/dist/commands/noc/cluster/deinit.js +117 -0
- package/dist/commands/noc/cluster/destroy.d.ts +20 -0
- package/dist/commands/noc/cluster/destroy.js +138 -0
- package/dist/commands/noc/cluster/forget.d.ts +16 -0
- package/dist/commands/noc/cluster/forget.js +137 -0
- package/dist/commands/noc/cluster/grant.d.ts +24 -0
- package/dist/commands/noc/cluster/grant.js +160 -0
- package/dist/commands/noc/cluster/init.d.ts +17 -0
- package/dist/commands/noc/cluster/init.js +117 -0
- package/dist/commands/noc/cluster/list.d.ts +21 -0
- package/dist/commands/noc/cluster/list.js +84 -0
- package/dist/commands/noc/cluster/recreate.d.ts +28 -0
- package/dist/commands/noc/cluster/recreate.js +186 -0
- package/dist/commands/pkg/add.d.ts +15 -0
- package/dist/commands/pkg/add.js +43 -0
- package/dist/commands/pkg/list.d.ts +9 -0
- package/dist/commands/pkg/list.js +33 -0
- package/dist/commands/pkg/patch.d.ts +13 -0
- package/dist/commands/pkg/patch.js +79 -0
- package/dist/commands/pkg/remove.d.ts +12 -0
- package/dist/commands/pkg/remove.js +70 -0
- package/dist/commands/portal.d.ts +11 -0
- package/dist/commands/portal.js +82 -0
- package/dist/commands/publish.d.ts +21 -0
- package/dist/commands/publish.js +52 -0
- package/dist/commands/pull.d.ts +13 -0
- package/dist/commands/pull.js +30 -0
- package/dist/commands/push.d.ts +13 -0
- package/dist/commands/push.js +30 -0
- package/dist/commands/run.d.ts +35 -0
- package/dist/commands/run.js +194 -0
- package/dist/commands/secretStore/capture.d.ts +27 -0
- package/dist/commands/secretStore/capture.js +175 -0
- package/dist/commands/secretStore/forget.d.ts +20 -0
- package/dist/commands/secretStore/forget.js +147 -0
- package/dist/commands/stage.d.ts +13 -0
- package/dist/commands/stage.js +65 -0
- package/dist/commands/stash.d.ts +13 -0
- package/dist/commands/stash.js +31 -0
- package/dist/commands/status.d.ts +12 -0
- package/dist/commands/status.js +49 -0
- package/dist/commands/stop.d.ts +10 -0
- package/dist/commands/stop.js +52 -0
- package/dist/commands/switch.d.ts +11 -0
- package/dist/commands/switch.js +42 -0
- package/dist/commands/sync.d.ts +14 -0
- package/dist/commands/sync.js +21 -0
- package/dist/commands/tenant/create.d.ts +27 -0
- package/dist/commands/tenant/create.js +120 -0
- package/dist/commands/tenant/switch.d.ts +24 -0
- package/dist/commands/tenant/switch.js +109 -0
- package/dist/commands/test.d.ts +13 -0
- package/dist/commands/test.js +32 -0
- package/dist/commands/test.js.map +1 -0
- package/dist/commands/testent.d.ts +13 -0
- package/dist/commands/testent.js +33 -0
- package/dist/commands/testent.js.map +1 -0
- package/dist/commands/unstage.d.ts +12 -0
- package/dist/commands/unstage.js +58 -0
- package/dist/commands/whereami.d.ts +15 -0
- package/dist/commands/whereami.js +123 -0
- package/dist/commands/whoami.d.ts +8 -0
- package/dist/commands/whoami.js +40 -0
- package/dist/errors/NoMembershipError.d.ts +8 -0
- package/dist/errors/NoMembershipError.js +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/log-update-wrapper.d.ts +24 -0
- package/dist/log-update-wrapper.js +29 -0
- package/dist/log4js-logger.d.ts +26 -0
- package/dist/log4js-logger.js +138 -0
- package/dist/log4js-logger.js.map +1 -0
- package/dist/ops/INTERFACES_CLI.d.ts +3 -0
- package/dist/ops/INTERFACES_CLI.js +8 -0
- package/dist/ops/LocalOps.d.ts +417 -0
- package/dist/ops/LocalOps.js +3122 -0
- package/dist/ops/LocalOps.js.map +1 -0
- package/dist/ops/azure-container-registry-client/azure-container-registry-client.js +148 -0
- package/dist/ops/cli-path-walker.js +55 -0
- package/dist/ops/codiac-entities/dependency.d.ts +5 -0
- package/dist/ops/codiac-entities/dependency.js +11 -0
- package/dist/ops/codiac-entities/index.d.ts +1 -0
- package/dist/ops/codiac-entities/index.js +5 -0
- package/dist/ops/composite-image-registry-client.js +74 -0
- package/dist/ops/data/cli-context-repo.d.ts +61 -0
- package/dist/ops/data/cli-context-repo.js +270 -0
- package/dist/ops/data/cli-context-repo.js.map +1 -0
- package/dist/ops/data/index.d.ts +2 -0
- package/dist/ops/data/index.js +6 -0
- package/dist/ops/data/npm-config-repo.d.ts +13 -0
- package/dist/ops/data/npm-config-repo.js +65 -0
- package/dist/ops/docker-config.js +131 -0
- package/dist/ops/docker-constants.js +22 -0
- package/dist/ops/docker-credentials-store.js +238 -0
- package/dist/ops/docker-registry-api-client/docker-registry-api-client.js +289 -0
- package/dist/ops/docker-registry-api-client/entities/blob-sum.d.ts +7 -0
- package/dist/ops/docker-registry-api-client/entities/blob-sum.js +13 -0
- package/dist/ops/docker-registry-api-client/entities/docker-access-actions-enum.d.ts +5 -0
- package/dist/ops/docker-registry-api-client/entities/docker-access-actions-enum.js +10 -0
- package/dist/ops/docker-registry-api-client/entities/docker-auth-token-criteria.d.ts +30 -0
- package/dist/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js +36 -0
- package/dist/ops/docker-registry-api-client/entities/i-docker-error-response.d.ts +55 -0
- package/dist/ops/docker-registry-api-client/entities/i-docker-error-response.js +52 -0
- package/dist/ops/docker-registry-api-client/entities/i-docker-list-response.d.ts +7 -0
- package/dist/ops/docker-registry-api-client/entities/i-docker-list-response.js +3 -0
- package/dist/ops/docker-registry-api-client/entities/image-repository.d.ts +31 -0
- package/dist/ops/docker-registry-api-client/entities/image-repository.js +30 -0
- package/dist/ops/docker-registry-api-client/entities/image-tag-criteria.d.ts +8 -0
- package/dist/ops/docker-registry-api-client/entities/image-tag-criteria.js +14 -0
- package/dist/ops/docker-registry-api-client/entities/image-tag-list.d.ts +7 -0
- package/dist/ops/docker-registry-api-client/entities/image-tag-list.js +13 -0
- package/dist/ops/docker-registry-api-client/entities/manifest-criteria.d.ts +9 -0
- package/dist/ops/docker-registry-api-client/entities/manifest-criteria.js +15 -0
- package/dist/ops/docker-registry-api-client/entities/manifest.d.ts +15 -0
- package/dist/ops/docker-registry-api-client/entities/manifest.js +21 -0
- package/dist/ops/docker-registry-api-client/entities/repository-criteria.d.ts +16 -0
- package/dist/ops/docker-registry-api-client/entities/repository-criteria.js +24 -0
- package/dist/ops/docker-registry-api-client/entities/token-response.d.ts +15 -0
- package/dist/ops/docker-registry-api-client/entities/token-response.js +15 -0
- package/dist/ops/docker-registry-api-client/entities/token.d.ts +17 -0
- package/dist/ops/docker-registry-api-client/entities/token.js +22 -0
- package/dist/ops/docker-registry-api-client/entities/version-check-criteria.d.ts +4 -0
- package/dist/ops/docker-registry-api-client/entities/version-check-criteria.js +10 -0
- package/dist/ops/dx-constants.d.ts +26 -0
- package/dist/ops/dx-constants.js +43 -0
- package/dist/ops/entities/ImageBuildContext.d.ts +12 -0
- package/dist/ops/entities/ImageBuildContext.js +19 -0
- package/dist/ops/entities/PipelineContext.d.ts +21 -0
- package/dist/ops/entities/PipelineContext.js +23 -0
- package/dist/ops/entities/TenantContext.d.ts +10 -0
- package/dist/ops/entities/TenantContext.js +16 -0
- package/dist/ops/entities/ThaulConfig.js +30 -0
- package/dist/ops/entities/azure-service-principal.d.ts +23 -0
- package/dist/ops/entities/azure-service-principal.js +24 -0
- package/dist/ops/entities/better-logger.js +2 -0
- package/dist/ops/entities/branch.d.ts +13 -0
- package/dist/ops/entities/branch.js +16 -0
- package/dist/ops/entities/cli-config.d.ts +48 -0
- package/dist/ops/entities/cli-config.js +61 -0
- package/dist/ops/entities/cli-config.js.map +1 -0
- package/dist/ops/entities/docker-image.d.ts +60 -0
- package/dist/ops/entities/docker-image.js +3 -0
- package/dist/ops/entities/helm-spec.d.ts +15 -0
- package/dist/ops/entities/helm-spec.js +23 -0
- package/dist/ops/entities/index.d.ts +4 -0
- package/dist/ops/entities/index.js +12 -0
- package/dist/ops/entities/operation-meta.d.ts +8 -0
- package/dist/ops/entities/operation-meta.js +19 -0
- package/dist/ops/entities/operation-meta.js.map +1 -0
- package/dist/ops/entities/scaffolding.d.ts +19 -0
- package/dist/ops/entities/scaffolding.js +21 -0
- package/dist/ops/extensions/azart-identity-adapter.d.ts +19 -0
- package/dist/ops/extensions/azart-identity-adapter.js +97 -0
- package/dist/ops/extensions/npm-identity-adapter-base.d.ts +13 -0
- package/dist/ops/extensions/npm-identity-adapter-base.js +3 -0
- package/dist/ops/extensions/npmjs-identity-adapter.d.ts +13 -0
- package/dist/ops/extensions/npmjs-identity-adapter.js +64 -0
- package/dist/ops/git-ops.d.ts +8 -0
- package/dist/ops/git-ops.js +14 -0
- package/dist/ops/i-client-for-image-registry.js +17 -0
- package/dist/ops/i-identity-handler.d.ts +33 -0
- package/dist/ops/i-identity-handler.js +165 -0
- package/dist/ops/i-output-styler.js +17 -0
- package/dist/ops/index.d.ts +12 -0
- package/dist/ops/index.js +15 -0
- package/dist/ops/json-utils.js +59 -0
- package/dist/ops/no-style-output-styler.js +30 -0
- package/dist/ops/oauth2-client.ts/oauth2-client.d.ts +23 -0
- package/dist/ops/oauth2-client.ts/oauth2-client.js +64 -0
- package/dist/ops/oauth2-client.ts/oauth2-client.js.map +1 -0
- package/dist/ops/project-initializer.d.ts +36 -0
- package/dist/ops/project-initializer.js +219 -0
- package/dist/ops/scaffolding/base-scaffolding.d.ts +7 -0
- package/dist/ops/scaffolding/base-scaffolding.js +21 -0
- package/dist/ops/scaffolding/base-scaffolding.js.map +1 -0
- package/dist/ops/scaffolding/codiac-api-scaffolding.d.ts +7 -0
- package/dist/ops/scaffolding/codiac-api-scaffolding.js +64 -0
- package/dist/ops/scaffolding/codiac-api-scaffolding.js.map +1 -0
- package/dist/ops/scaffolding/typescript-scaffolding.d.ts +15 -0
- package/dist/ops/scaffolding/typescript-scaffolding.js +163 -0
- package/dist/ops/scaffolding/typescript-scaffolding.js.map +1 -0
- package/dist/ops/test/mock-ui.d.ts +26 -0
- package/dist/ops/test/mock-ui.js +88 -0
- package/dist/ops/test/test-extensions.d.ts +13 -0
- package/dist/ops/test/test-extensions.js +71 -0
- package/dist/ops/test/when-a-recursive-file-search-is-run.spec.d.ts +2 -0
- package/dist/ops/test/when-a-recursive-file-search-is-run.spec.js +55 -0
- package/dist/ops/test/when-git-branchline-is-attempted.spec.d.ts +2 -0
- package/dist/ops/test/when-git-branchline-is-attempted.spec.js +38 -0
- package/dist/ops/test/when-versions-are-parsed.spec.d.ts +2 -0
- package/dist/ops/test/when-versions-are-parsed.spec.js +62 -0
- package/dist/ops/throwing-user-input-provider.js +37 -0
- package/dist/ops/workspace-versioner.d.ts +122 -0
- package/dist/ops/workspace-versioner.js +292 -0
- package/dist/ops/workspace-versioner.js.map +1 -0
- package/dist/prettify.d.ts +7 -0
- package/dist/prettify.js +24 -0
- package/dist/read-stdin.d.ts +2 -0
- package/dist/read-stdin.js +29 -0
- package/dist/relay/contracts/contracts.d.ts +207 -0
- package/dist/relay/contracts/contracts.js +230 -0
- package/dist/relay/extended-relay-client.d.ts +27 -0
- package/dist/relay/extended-relay-client.js +28 -0
- package/dist/relay/relay-container.d.ts +41 -0
- package/dist/relay/relay-container.js +298 -0
- package/dist/relay/relay-container.js.map +1 -0
- package/dist/relay/wsclient/relay-socket-listener.d.ts +68 -0
- package/dist/relay/wsclient/relay-socket-listener.js +165 -0
- package/dist/relay/wsclient/relay-socket-listener.js.map +1 -0
- package/dist/relay/wsclient/relay-websocket-client.d.ts +33 -0
- package/dist/relay/wsclient/relay-websocket-client.js +179 -0
- package/dist/relay/wsclient/relay-websocket-client.js.map +1 -0
- package/dist/relay/wsclient/rx-websocket-subject.d.ts +25 -0
- package/dist/relay/wsclient/rx-websocket-subject.js +134 -0
- package/dist/relay/wsclient/rx-websocket-subject.js.map +1 -0
- package/dist/relay/wsclient/socket-contracts.d.ts +22 -0
- package/dist/relay/wsclient/socket-contracts.js +3 -0
- package/dist/standard-probes.d.ts +5 -0
- package/dist/standard-probes.js +22 -0
- package/dist/uilogic/build-configurator.d.ts +21 -0
- package/dist/uilogic/build-configurator.js +111 -0
- package/dist/uilogic/cloud-provider-contextualizer.d.ts +46 -0
- package/dist/uilogic/cloud-provider-contextualizer.js +194 -0
- package/dist/uilogic/cloud-provider-contextualizer.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurator-factory.d.ts +41 -0
- package/dist/uilogic/cloud-resource-configurator-factory.js +158 -0
- package/dist/uilogic/cloud-resource-configurator-factory.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +38 -0
- package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js +348 -0
- package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js +78 -0
- package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.d.ts +42 -0
- package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js +248 -0
- package/dist/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +110 -0
- package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js +782 -0
- package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurators/azure-types.js +10 -0
- package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.d.ts +24 -0
- package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js +106 -0
- package/dist/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.d.ts +16 -0
- package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.js +45 -0
- package/dist/uilogic/cloud-resource-configurators/helm-resource-configurator.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.d.ts +18 -0
- package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js +62 -0
- package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js.map +1 -0
- package/dist/uilogic/enterprise-contextualizer.d.ts +76 -0
- package/dist/uilogic/enterprise-contextualizer.js +671 -0
- package/dist/uilogic/environment-contextualizer.d.ts +15 -0
- package/dist/uilogic/environment-contextualizer.js +43 -0
- package/dist/uilogic/i-cluster-configurator.d.ts +9 -0
- package/dist/uilogic/i-cluster-configurator.js +3 -0
- package/dist/uilogic/i-login-configurator.d.ts +6 -0
- package/dist/uilogic/i-login-configurator.js +3 -0
- package/dist/uilogic/i-registry-configurator.d.ts +6 -0
- package/dist/uilogic/i-registry-configurator.js +3 -0
- package/dist/uilogic/i-secret-store-configurator.d.ts +7 -0
- package/dist/uilogic/i-secret-store-configurator.js +3 -0
- package/dist/uilogic/image-configurator.d.ts +133 -0
- package/dist/uilogic/image-configurator.js +578 -0
- package/dist/uilogic/image-configurator.js.map +1 -0
- package/dist/uilogic/image-contextualizer.d.ts +24 -0
- package/dist/uilogic/image-contextualizer.js +90 -0
- package/dist/uilogic/image-contextualizer.js.map +1 -0
- package/dist/uilogic/image-registry-contextualizer.d.ts +28 -0
- package/dist/uilogic/image-registry-contextualizer.js +127 -0
- package/dist/uilogic/image-registry-contextualizer.js.map +1 -0
- package/dist/uilogic/index.d.ts +9 -0
- package/dist/uilogic/index.js +14 -0
- package/dist/uilogic/prompt-select-fuzzy.js +139 -0
- package/dist/uilogic/render-methods.d.ts +12 -0
- package/dist/uilogic/render-methods.js +65 -0
- package/dist/uilogic/tenant-contextualizer.d.ts +79 -0
- package/dist/uilogic/tenant-contextualizer.js +578 -0
- package/dist/user-context-loader.d.ts +60 -0
- package/dist/user-context-loader.js +184 -0
- package/oclif.manifest.json +67 -1
- package/package.json +149 -150
- package/scaffolding/api/.gitignore-scaffolding +68 -68
- package/scaffolding/api/.vscode/launch.json +16 -16
- package/scaffolding/api/.vscode/settings.json +7 -7
- package/scaffolding/api/.vscode/tasks.json +15 -15
- package/scaffolding/api/src/app-config.json +2 -2
- package/scaffolding/api/src/index.ts-scaffolding +13 -13
- package/scaffolding/api/src/myApiDef.ts-scaffolding +25 -25
- package/scaffolding/default/.gitignore-scaffolding +2 -2
- package/scaffolding/typescript/.gitignore-scaffolding +69 -69
- package/scaffolding/typescript/.vscode/launch.json +16 -16
- package/scaffolding/typescript/.vscode/settings.json +7 -7
- package/scaffolding/typescript/.vscode/tasks.json +15 -15
- package/lib/apis/codiac-api/common/api-client-base.d.ts +0 -165
- package/lib/apis/codiac-api/common/api-client-base.js +0 -548
- package/lib/apis/codiac-api/common/api-client-base.js.map +0 -1
- package/lib/apis/codiac-api/common/api-user-creds.d.ts +0 -7
- package/lib/apis/codiac-api/common/api-user-creds.js +0 -19
- package/lib/apis/codiac-api/common/api-user-creds.js.map +0 -1
- package/lib/apis/codiac-api/common/config-loader.d.ts +0 -6
- package/lib/apis/codiac-api/common/config-loader.js +0 -19
- package/lib/apis/codiac-api/common/endpoint-spec.d.ts +0 -17
- package/lib/apis/codiac-api/common/endpoint-spec.js +0 -28
- package/lib/apis/codiac-api/common/security/api-auth-methods-legacy.d.ts +0 -87
- package/lib/apis/codiac-api/common/security/api-auth-methods-legacy.js +0 -368
- package/lib/apis/codiac-api/common/security/api-auth-methods-legacy.js.map +0 -1
- package/lib/apis/codiac-api/common/security/auth-constants.d.ts +0 -15
- package/lib/apis/codiac-api/common/security/auth-constants.js +0 -22
- package/lib/apis/codiac-api/common/security/i-auth-client.d.ts +0 -44
- package/lib/apis/codiac-api/common/security/i-auth-client.js +0 -3
- package/lib/apis/codiac-api/common/security/token-holder.d.ts +0 -13
- package/lib/apis/codiac-api/common/security/token-holder.js +0 -18
- package/lib/apis/codiac-api/common/utils.d.ts +0 -23
- package/lib/apis/codiac-api/common/utils.js +0 -83
- package/lib/apis/codiac-api/contracts/index.d.ts +0 -1
- package/lib/apis/codiac-api/contracts/index.js +0 -5
- package/lib/apis/codiac-api/gen/client-config.d.ts +0 -10
- package/lib/apis/codiac-api/gen/client-config.js +0 -29
- package/lib/apis/codiac-api/gen/client-config.js.map +0 -1
- package/lib/apis/codiac-api/gen/client.d.ts +0 -1663
- package/lib/apis/codiac-api/gen/client.js +0 -15630
- package/lib/apis/codiac-api/gen/client.js.map +0 -1
- package/lib/apis/codiac-api/gen/contracts.d.ts +0 -2722
- package/lib/apis/codiac-api/gen/contracts.js +0 -403
- package/lib/apis/codiac-api/index.d.ts +0 -3
- package/lib/apis/codiac-api/index.js +0 -9
- package/lib/apis/codiac-relay/common/api-client-base.d.ts +0 -165
- package/lib/apis/codiac-relay/common/api-client-base.js +0 -548
- package/lib/apis/codiac-relay/common/api-client-base.js.map +0 -1
- package/lib/apis/codiac-relay/common/api-user-creds.d.ts +0 -7
- package/lib/apis/codiac-relay/common/api-user-creds.js +0 -19
- package/lib/apis/codiac-relay/common/api-user-creds.js.map +0 -1
- package/lib/apis/codiac-relay/common/config-loader.d.ts +0 -6
- package/lib/apis/codiac-relay/common/config-loader.js +0 -19
- package/lib/apis/codiac-relay/common/endpoint-spec.d.ts +0 -17
- package/lib/apis/codiac-relay/common/endpoint-spec.js +0 -28
- package/lib/apis/codiac-relay/common/security/api-auth-methods-legacy.d.ts +0 -87
- package/lib/apis/codiac-relay/common/security/api-auth-methods-legacy.js +0 -368
- package/lib/apis/codiac-relay/common/security/api-auth-methods-legacy.js.map +0 -1
- package/lib/apis/codiac-relay/common/security/auth-constants.d.ts +0 -15
- package/lib/apis/codiac-relay/common/security/auth-constants.js +0 -22
- package/lib/apis/codiac-relay/common/security/i-auth-client.d.ts +0 -44
- package/lib/apis/codiac-relay/common/security/i-auth-client.js +0 -3
- package/lib/apis/codiac-relay/common/security/token-holder.d.ts +0 -13
- package/lib/apis/codiac-relay/common/security/token-holder.js +0 -18
- package/lib/apis/codiac-relay/common/utils.d.ts +0 -23
- package/lib/apis/codiac-relay/common/utils.js +0 -83
- package/lib/apis/codiac-relay/contracts/index.d.ts +0 -1
- package/lib/apis/codiac-relay/contracts/index.js +0 -5
- package/lib/apis/codiac-relay/gen/client-config.d.ts +0 -10
- package/lib/apis/codiac-relay/gen/client-config.js +0 -29
- package/lib/apis/codiac-relay/gen/client-config.js.map +0 -1
- package/lib/apis/codiac-relay/gen/client.d.ts +0 -244
- package/lib/apis/codiac-relay/gen/client.js +0 -1863
- package/lib/apis/codiac-relay/gen/client.js.map +0 -1
- package/lib/apis/codiac-relay/gen/contracts.d.ts +0 -3111
- package/lib/apis/codiac-relay/gen/contracts.js +0 -435
- package/lib/apis/codiac-relay/index.d.ts +0 -3
- package/lib/apis/codiac-relay/index.js +0 -9
- package/lib/cli-common/ImagesList.js +0 -67
- package/lib/cli-common/argument-manager.d.ts +0 -28
- package/lib/cli-common/argument-manager.js +0 -195
- package/lib/cli-common/built-in-cli-user-input.d.ts +0 -18
- package/lib/cli-common/built-in-cli-user-input.js +0 -310
- package/lib/cli-common/built-in-cli-user-input.js.map +0 -1
- package/lib/cli-common/cli-interfaces.js +0 -7
- package/lib/cli-common/command-base.d.ts +0 -72
- package/lib/cli-common/command-base.js +0 -182
- package/lib/cli-common/entities/index.d.ts +0 -1
- package/lib/cli-common/entities/index.js +0 -5
- package/lib/cli-common/entities/prompt-choice.d.ts +0 -7
- package/lib/cli-common/entities/prompt-choice.js +0 -3
- package/lib/cli-common/file-selector.d.ts +0 -48
- package/lib/cli-common/file-selector.js +0 -187
- package/lib/cli-common/i-user-input-provider.js +0 -19
- package/lib/cli-common/index.d.ts +0 -4
- package/lib/cli-common/index.js +0 -11
- package/lib/cli-common/mock-ui.d.ts +0 -27
- package/lib/cli-common/mock-ui.js +0 -83
- package/lib/cli-common/prompt-select-fuzzy.d.ts +0 -19
- package/lib/cli-common/prompt-select-fuzzy.js +0 -119
- package/lib/cli-common/prompt-select-fuzzy.js.map +0 -1
- package/lib/cli-common/tenant-contextualizer.js +0 -436
- package/lib/cli-common/test/tenant-contextualizer.spec.js +0 -143
- package/lib/cli-entities/output-format-enum.d.ts +0 -7
- package/lib/cli-entities/output-format-enum.js +0 -12
- package/lib/cli-entities/prompt-choice.js +0 -6
- package/lib/codiac-constants.d.ts +0 -35
- package/lib/codiac-constants.js +0 -41
- package/lib/codiac-entities/asset-binding.d.ts +0 -12
- package/lib/codiac-entities/asset-binding.js +0 -18
- package/lib/codiac-entities/azure-container-registry.d.ts +0 -4
- package/lib/codiac-entities/azure-container-registry.js +0 -3
- package/lib/codiac-entities/azure-service-principal.d.ts +0 -23
- package/lib/codiac-entities/azure-service-principal.js +0 -24
- package/lib/codiac-entities/cloud-account-ref.d.ts +0 -28
- package/lib/codiac-entities/cloud-account-ref.js +0 -37
- package/lib/codiac-entities/deployment-temp.js +0 -133
- package/lib/codiac-entities/i-cloud-account-ref.d.ts +0 -5
- package/lib/codiac-entities/i-cloud-account-ref.js +0 -3
- package/lib/command-base-enterprise.d.ts +0 -121
- package/lib/command-base-enterprise.js +0 -524
- package/lib/command-base-tenantless.d.ts +0 -44
- package/lib/command-base-tenantless.js +0 -180
- package/lib/commands/asset/create.d.ts +0 -42
- package/lib/commands/asset/create.js +0 -467
- package/lib/commands/asset/destroy.d.ts +0 -20
- package/lib/commands/asset/destroy.js +0 -129
- package/lib/commands/asset/helm.d.ts +0 -23
- package/lib/commands/asset/helm.js +0 -153
- package/lib/commands/asset/list.d.ts +0 -28
- package/lib/commands/asset/list.js +0 -172
- package/lib/commands/asset/probe/create.d.ts +0 -38
- package/lib/commands/asset/probe/create.js +0 -187
- package/lib/commands/asset/recycle.d.ts +0 -23
- package/lib/commands/asset/recycle.js +0 -175
- package/lib/commands/asset/view.d.ts +0 -188
- package/lib/commands/asset/view.js +0 -1365
- package/lib/commands/asset/volume/create.d.ts +0 -23
- package/lib/commands/asset/volume/create.js +0 -176
- package/lib/commands/asset/volume/delete.d.ts +0 -19
- package/lib/commands/asset/volume/delete.js +0 -112
- package/lib/commands/asset/volume/list.d.ts +0 -19
- package/lib/commands/asset/volume/list.js +0 -70
- package/lib/commands/branch/current.d.ts +0 -10
- package/lib/commands/branch/current.js +0 -34
- package/lib/commands/branch/list.d.ts +0 -15
- package/lib/commands/branch/list.js +0 -56
- package/lib/commands/branch.d.ts +0 -12
- package/lib/commands/branch.js +0 -42
- package/lib/commands/build.d.ts +0 -38
- package/lib/commands/build.js +0 -120
- package/lib/commands/cabinet/create.d.ts +0 -21
- package/lib/commands/cabinet/create.js +0 -108
- package/lib/commands/cabinet/list.d.ts +0 -23
- package/lib/commands/cabinet/list.js +0 -134
- package/lib/commands/cabinet/obliterate.d.ts +0 -20
- package/lib/commands/cabinet/obliterate.js +0 -83
- package/lib/commands/cli.d.ts +0 -10
- package/lib/commands/cli.js +0 -100
- package/lib/commands/commit.d.ts +0 -11
- package/lib/commands/commit.js +0 -40
- package/lib/commands/config/add.d.ts +0 -78
- package/lib/commands/config/add.js +0 -560
- package/lib/commands/config/delete.d.ts +0 -18
- package/lib/commands/config/delete.js +0 -119
- package/lib/commands/config/deploy.d.ts +0 -22
- package/lib/commands/config/deploy.js +0 -125
- package/lib/commands/config/import.d.ts +0 -27
- package/lib/commands/config/import.js +0 -196
- package/lib/commands/config/view.d.ts +0 -25
- package/lib/commands/config/view.js +0 -121
- package/lib/commands/csp/login.d.ts +0 -18
- package/lib/commands/csp/login.js +0 -120
- package/lib/commands/csp/login.js.map +0 -1
- package/lib/commands/csp/logout.d.ts +0 -15
- package/lib/commands/csp/logout.js +0 -74
- package/lib/commands/dep/create.d.ts +0 -13
- package/lib/commands/dep/create.js +0 -41
- package/lib/commands/dep/install.d.ts +0 -9
- package/lib/commands/dep/install.js +0 -30
- package/lib/commands/dep/list.d.ts +0 -55
- package/lib/commands/dep/list.js +0 -98
- package/lib/commands/dep/remove.d.ts +0 -12
- package/lib/commands/dep/remove.js +0 -62
- package/lib/commands/dep/source.d.ts +0 -13
- package/lib/commands/dep/source.js +0 -83
- package/lib/commands/dep/syncup.d.ts +0 -11
- package/lib/commands/dep/syncup.js +0 -54
- package/lib/commands/dep/unsource.d.ts +0 -14
- package/lib/commands/dep/unsource.js +0 -68
- package/lib/commands/dep/upgrade.d.ts +0 -44
- package/lib/commands/dep/upgrade.js +0 -244
- package/lib/commands/dep.d.ts +0 -12
- package/lib/commands/dep.js +0 -51
- package/lib/commands/deploy.d.ts +0 -38
- package/lib/commands/deploy.js +0 -383
- package/lib/commands/deploy.js.map +0 -1
- package/lib/commands/enterprise/create.d.ts +0 -20
- package/lib/commands/enterprise/create.js +0 -98
- package/lib/commands/enterprise/list.d.ts +0 -14
- package/lib/commands/enterprise/list.js +0 -84
- package/lib/commands/env/add.d.ts +0 -22
- package/lib/commands/env/add.js +0 -200
- package/lib/commands/environment/create.d.ts +0 -19
- package/lib/commands/environment/create.js +0 -89
- package/lib/commands/environment/list.d.ts +0 -25
- package/lib/commands/environment/list.js +0 -158
- package/lib/commands/filestore/capture.d.ts +0 -31
- package/lib/commands/filestore/capture.js +0 -342
- package/lib/commands/host/map.d.ts +0 -33
- package/lib/commands/host/map.js +0 -347
- package/lib/commands/identity/delete.d.ts +0 -15
- package/lib/commands/identity/delete.js +0 -83
- package/lib/commands/identity/list.d.ts +0 -11
- package/lib/commands/identity/list.js +0 -43
- package/lib/commands/identity.d.ts +0 -22
- package/lib/commands/identity.js +0 -77
- package/lib/commands/imageRegistry/capture.d.ts +0 -27
- package/lib/commands/imageRegistry/capture.js +0 -160
- package/lib/commands/imageRegistry/forget.d.ts +0 -23
- package/lib/commands/imageRegistry/forget.js +0 -161
- package/lib/commands/imageRegistry/pullSecret/set.d.ts +0 -27
- package/lib/commands/imageRegistry/pullSecret/set.js +0 -300
- package/lib/commands/imageRegistry/pullSecret/unset.d.ts +0 -24
- package/lib/commands/imageRegistry/pullSecret/unset.js +0 -243
- package/lib/commands/images/add.d.ts +0 -25
- package/lib/commands/images/add.js +0 -76
- package/lib/commands/images/list.d.ts +0 -14
- package/lib/commands/images/list.js +0 -72
- package/lib/commands/images/patch.d.ts +0 -14
- package/lib/commands/images/patch.js +0 -93
- package/lib/commands/images/remove.d.ts +0 -12
- package/lib/commands/images/remove.js +0 -38
- package/lib/commands/images/version/bump.d.ts +0 -18
- package/lib/commands/images/version/bump.js +0 -61
- package/lib/commands/images/version.d.ts +0 -16
- package/lib/commands/images/version.js +0 -65
- package/lib/commands/init.d.ts +0 -17
- package/lib/commands/init.js +0 -131
- package/lib/commands/kit/create.d.ts +0 -25
- package/lib/commands/kit/create.js +0 -142
- package/lib/commands/login.d.ts +0 -22
- package/lib/commands/login.js +0 -93
- package/lib/commands/logout.d.ts +0 -8
- package/lib/commands/logout.js +0 -37
- package/lib/commands/merge.d.ts +0 -12
- package/lib/commands/merge.js +0 -43
- package/lib/commands/noc/cluster/create.d.ts +0 -28
- package/lib/commands/noc/cluster/create.js +0 -133
- package/lib/commands/noc/cluster/deinit.d.ts +0 -17
- package/lib/commands/noc/cluster/deinit.js +0 -117
- package/lib/commands/noc/cluster/destroy.d.ts +0 -20
- package/lib/commands/noc/cluster/destroy.js +0 -138
- package/lib/commands/noc/cluster/forget.d.ts +0 -16
- package/lib/commands/noc/cluster/forget.js +0 -137
- package/lib/commands/noc/cluster/grant.d.ts +0 -24
- package/lib/commands/noc/cluster/grant.js +0 -160
- package/lib/commands/noc/cluster/init.d.ts +0 -17
- package/lib/commands/noc/cluster/init.js +0 -117
- package/lib/commands/noc/cluster/list.d.ts +0 -21
- package/lib/commands/noc/cluster/list.js +0 -84
- package/lib/commands/noc/cluster/recreate.d.ts +0 -28
- package/lib/commands/noc/cluster/recreate.js +0 -186
- package/lib/commands/pkg/add.d.ts +0 -15
- package/lib/commands/pkg/add.js +0 -43
- package/lib/commands/pkg/list.d.ts +0 -9
- package/lib/commands/pkg/list.js +0 -33
- package/lib/commands/pkg/patch.d.ts +0 -13
- package/lib/commands/pkg/patch.js +0 -79
- package/lib/commands/pkg/remove.d.ts +0 -12
- package/lib/commands/pkg/remove.js +0 -70
- package/lib/commands/portal.d.ts +0 -11
- package/lib/commands/portal.js +0 -82
- package/lib/commands/publish.d.ts +0 -21
- package/lib/commands/publish.js +0 -52
- package/lib/commands/pull.d.ts +0 -13
- package/lib/commands/pull.js +0 -30
- package/lib/commands/push.d.ts +0 -13
- package/lib/commands/push.js +0 -30
- package/lib/commands/run.d.ts +0 -35
- package/lib/commands/run.js +0 -194
- package/lib/commands/secretStore/capture.d.ts +0 -27
- package/lib/commands/secretStore/capture.js +0 -175
- package/lib/commands/secretStore/forget.d.ts +0 -20
- package/lib/commands/secretStore/forget.js +0 -147
- package/lib/commands/stage.d.ts +0 -13
- package/lib/commands/stage.js +0 -65
- package/lib/commands/stash.d.ts +0 -13
- package/lib/commands/stash.js +0 -31
- package/lib/commands/status.d.ts +0 -12
- package/lib/commands/status.js +0 -49
- package/lib/commands/stop.d.ts +0 -10
- package/lib/commands/stop.js +0 -52
- package/lib/commands/switch.d.ts +0 -11
- package/lib/commands/switch.js +0 -42
- package/lib/commands/sync.d.ts +0 -14
- package/lib/commands/sync.js +0 -21
- package/lib/commands/tenant/create.d.ts +0 -27
- package/lib/commands/tenant/create.js +0 -120
- package/lib/commands/tenant/switch.d.ts +0 -24
- package/lib/commands/tenant/switch.js +0 -109
- package/lib/commands/unstage.d.ts +0 -12
- package/lib/commands/unstage.js +0 -58
- package/lib/commands/whereami.d.ts +0 -15
- package/lib/commands/whereami.js +0 -123
- package/lib/commands/whoami.d.ts +0 -8
- package/lib/commands/whoami.js +0 -40
- package/lib/errors/NoMembershipError.d.ts +0 -8
- package/lib/errors/NoMembershipError.js +0 -15
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -17
- package/lib/log-update-wrapper.d.ts +0 -24
- package/lib/log-update-wrapper.js +0 -29
- package/lib/log4js-logger.d.ts +0 -26
- package/lib/log4js-logger.js +0 -138
- package/lib/log4js-logger.js.map +0 -1
- package/lib/ops/INTERFACES_CLI.d.ts +0 -3
- package/lib/ops/INTERFACES_CLI.js +0 -8
- package/lib/ops/LocalOps.d.ts +0 -417
- package/lib/ops/LocalOps.js +0 -3122
- package/lib/ops/LocalOps.js.map +0 -1
- package/lib/ops/azure-container-registry-client/azure-container-registry-client.js +0 -148
- package/lib/ops/cli-path-walker.js +0 -55
- package/lib/ops/codiac-entities/dependency.d.ts +0 -5
- package/lib/ops/codiac-entities/dependency.js +0 -11
- package/lib/ops/codiac-entities/index.d.ts +0 -1
- package/lib/ops/codiac-entities/index.js +0 -5
- package/lib/ops/composite-image-registry-client.js +0 -74
- package/lib/ops/data/cli-context-repo.d.ts +0 -61
- package/lib/ops/data/cli-context-repo.js +0 -270
- package/lib/ops/data/cli-context-repo.js.map +0 -1
- package/lib/ops/data/index.d.ts +0 -2
- package/lib/ops/data/index.js +0 -6
- package/lib/ops/data/npm-config-repo.d.ts +0 -13
- package/lib/ops/data/npm-config-repo.js +0 -65
- package/lib/ops/docker-config.js +0 -131
- package/lib/ops/docker-constants.js +0 -22
- package/lib/ops/docker-credentials-store.js +0 -238
- package/lib/ops/docker-registry-api-client/docker-registry-api-client.js +0 -289
- package/lib/ops/docker-registry-api-client/entities/blob-sum.d.ts +0 -7
- package/lib/ops/docker-registry-api-client/entities/blob-sum.js +0 -13
- package/lib/ops/docker-registry-api-client/entities/docker-access-actions-enum.d.ts +0 -5
- package/lib/ops/docker-registry-api-client/entities/docker-access-actions-enum.js +0 -10
- package/lib/ops/docker-registry-api-client/entities/docker-auth-token-criteria.d.ts +0 -30
- package/lib/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js +0 -36
- package/lib/ops/docker-registry-api-client/entities/i-docker-error-response.d.ts +0 -55
- package/lib/ops/docker-registry-api-client/entities/i-docker-error-response.js +0 -52
- package/lib/ops/docker-registry-api-client/entities/i-docker-list-response.d.ts +0 -7
- package/lib/ops/docker-registry-api-client/entities/i-docker-list-response.js +0 -3
- package/lib/ops/docker-registry-api-client/entities/image-repository.d.ts +0 -31
- package/lib/ops/docker-registry-api-client/entities/image-repository.js +0 -30
- package/lib/ops/docker-registry-api-client/entities/image-tag-criteria.d.ts +0 -8
- package/lib/ops/docker-registry-api-client/entities/image-tag-criteria.js +0 -14
- package/lib/ops/docker-registry-api-client/entities/image-tag-list.d.ts +0 -7
- package/lib/ops/docker-registry-api-client/entities/image-tag-list.js +0 -13
- package/lib/ops/docker-registry-api-client/entities/manifest-criteria.d.ts +0 -9
- package/lib/ops/docker-registry-api-client/entities/manifest-criteria.js +0 -15
- package/lib/ops/docker-registry-api-client/entities/manifest.d.ts +0 -15
- package/lib/ops/docker-registry-api-client/entities/manifest.js +0 -21
- package/lib/ops/docker-registry-api-client/entities/repository-criteria.d.ts +0 -16
- package/lib/ops/docker-registry-api-client/entities/repository-criteria.js +0 -24
- package/lib/ops/docker-registry-api-client/entities/token-response.d.ts +0 -15
- package/lib/ops/docker-registry-api-client/entities/token-response.js +0 -15
- package/lib/ops/docker-registry-api-client/entities/token.d.ts +0 -17
- package/lib/ops/docker-registry-api-client/entities/token.js +0 -22
- package/lib/ops/docker-registry-api-client/entities/version-check-criteria.d.ts +0 -4
- package/lib/ops/docker-registry-api-client/entities/version-check-criteria.js +0 -10
- package/lib/ops/dx-constants.d.ts +0 -26
- package/lib/ops/dx-constants.js +0 -43
- package/lib/ops/entities/ImageBuildContext.d.ts +0 -12
- package/lib/ops/entities/ImageBuildContext.js +0 -19
- package/lib/ops/entities/PipelineContext.d.ts +0 -21
- package/lib/ops/entities/PipelineContext.js +0 -23
- package/lib/ops/entities/TenantContext.d.ts +0 -10
- package/lib/ops/entities/TenantContext.js +0 -16
- package/lib/ops/entities/ThaulConfig.js +0 -30
- package/lib/ops/entities/azure-service-principal.d.ts +0 -23
- package/lib/ops/entities/azure-service-principal.js +0 -24
- package/lib/ops/entities/better-logger.js +0 -2
- package/lib/ops/entities/branch.d.ts +0 -13
- package/lib/ops/entities/branch.js +0 -16
- package/lib/ops/entities/cli-config.d.ts +0 -48
- package/lib/ops/entities/cli-config.js +0 -61
- package/lib/ops/entities/cli-config.js.map +0 -1
- package/lib/ops/entities/docker-image.d.ts +0 -60
- package/lib/ops/entities/docker-image.js +0 -3
- package/lib/ops/entities/helm-spec.d.ts +0 -15
- package/lib/ops/entities/helm-spec.js +0 -23
- package/lib/ops/entities/index.d.ts +0 -4
- package/lib/ops/entities/index.js +0 -12
- package/lib/ops/entities/operation-meta.d.ts +0 -8
- package/lib/ops/entities/operation-meta.js +0 -19
- package/lib/ops/entities/operation-meta.js.map +0 -1
- package/lib/ops/entities/scaffolding.d.ts +0 -19
- package/lib/ops/entities/scaffolding.js +0 -21
- package/lib/ops/extensions/azart-identity-adapter.d.ts +0 -19
- package/lib/ops/extensions/azart-identity-adapter.js +0 -97
- package/lib/ops/extensions/npm-identity-adapter-base.d.ts +0 -13
- package/lib/ops/extensions/npm-identity-adapter-base.js +0 -3
- package/lib/ops/extensions/npmjs-identity-adapter.d.ts +0 -13
- package/lib/ops/extensions/npmjs-identity-adapter.js +0 -64
- package/lib/ops/git-ops.d.ts +0 -8
- package/lib/ops/git-ops.js +0 -14
- package/lib/ops/i-client-for-image-registry.js +0 -17
- package/lib/ops/i-identity-handler.d.ts +0 -33
- package/lib/ops/i-identity-handler.js +0 -165
- package/lib/ops/i-output-styler.js +0 -17
- package/lib/ops/index.d.ts +0 -12
- package/lib/ops/index.js +0 -15
- package/lib/ops/json-utils.js +0 -59
- package/lib/ops/no-style-output-styler.js +0 -30
- package/lib/ops/oauth2-client.ts/oauth2-client.d.ts +0 -23
- package/lib/ops/oauth2-client.ts/oauth2-client.js +0 -64
- package/lib/ops/oauth2-client.ts/oauth2-client.js.map +0 -1
- package/lib/ops/project-initializer.d.ts +0 -36
- package/lib/ops/project-initializer.js +0 -219
- package/lib/ops/scaffolding/base-scaffolding.d.ts +0 -7
- package/lib/ops/scaffolding/base-scaffolding.js +0 -21
- package/lib/ops/scaffolding/base-scaffolding.js.map +0 -1
- package/lib/ops/scaffolding/codiac-api-scaffolding.d.ts +0 -7
- package/lib/ops/scaffolding/codiac-api-scaffolding.js +0 -64
- package/lib/ops/scaffolding/codiac-api-scaffolding.js.map +0 -1
- package/lib/ops/scaffolding/typescript-scaffolding.d.ts +0 -15
- package/lib/ops/scaffolding/typescript-scaffolding.js +0 -163
- package/lib/ops/scaffolding/typescript-scaffolding.js.map +0 -1
- package/lib/ops/test/mock-ui.d.ts +0 -26
- package/lib/ops/test/mock-ui.js +0 -88
- package/lib/ops/test/test-extensions.d.ts +0 -13
- package/lib/ops/test/test-extensions.js +0 -71
- package/lib/ops/test/when-a-recursive-file-search-is-run.spec.d.ts +0 -2
- package/lib/ops/test/when-a-recursive-file-search-is-run.spec.js +0 -55
- package/lib/ops/test/when-git-branchline-is-attempted.spec.d.ts +0 -2
- package/lib/ops/test/when-git-branchline-is-attempted.spec.js +0 -38
- package/lib/ops/test/when-versions-are-parsed.spec.d.ts +0 -2
- package/lib/ops/test/when-versions-are-parsed.spec.js +0 -62
- package/lib/ops/throwing-user-input-provider.js +0 -37
- package/lib/ops/workspace-versioner.d.ts +0 -122
- package/lib/ops/workspace-versioner.js +0 -292
- package/lib/ops/workspace-versioner.js.map +0 -1
- package/lib/prettify.d.ts +0 -7
- package/lib/prettify.js +0 -24
- package/lib/read-stdin.d.ts +0 -2
- package/lib/read-stdin.js +0 -29
- package/lib/relay/contracts/contracts.d.ts +0 -207
- package/lib/relay/contracts/contracts.js +0 -230
- package/lib/relay/extended-relay-client.d.ts +0 -27
- package/lib/relay/extended-relay-client.js +0 -28
- package/lib/relay/relay-container.d.ts +0 -41
- package/lib/relay/relay-container.js +0 -298
- package/lib/relay/relay-container.js.map +0 -1
- package/lib/relay/wsclient/relay-socket-listener.d.ts +0 -68
- package/lib/relay/wsclient/relay-socket-listener.js +0 -165
- package/lib/relay/wsclient/relay-socket-listener.js.map +0 -1
- package/lib/relay/wsclient/relay-websocket-client.d.ts +0 -33
- package/lib/relay/wsclient/relay-websocket-client.js +0 -179
- package/lib/relay/wsclient/relay-websocket-client.js.map +0 -1
- package/lib/relay/wsclient/rx-websocket-subject.d.ts +0 -25
- package/lib/relay/wsclient/rx-websocket-subject.js +0 -134
- package/lib/relay/wsclient/rx-websocket-subject.js.map +0 -1
- package/lib/relay/wsclient/socket-contracts.d.ts +0 -22
- package/lib/relay/wsclient/socket-contracts.js +0 -3
- package/lib/standard-probes.d.ts +0 -5
- package/lib/standard-probes.js +0 -22
- package/lib/uilogic/build-configurator.d.ts +0 -21
- package/lib/uilogic/build-configurator.js +0 -111
- package/lib/uilogic/cloud-provider-contextualizer.d.ts +0 -46
- package/lib/uilogic/cloud-provider-contextualizer.js +0 -194
- package/lib/uilogic/cloud-provider-contextualizer.js.map +0 -1
- package/lib/uilogic/cloud-resource-configurator-factory.d.ts +0 -41
- package/lib/uilogic/cloud-resource-configurator-factory.js +0 -158
- package/lib/uilogic/cloud-resource-configurator-factory.js.map +0 -1
- package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +0 -38
- package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.js +0 -348
- package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +0 -1
- package/lib/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js +0 -78
- package/lib/uilogic/cloud-resource-configurators/az-interactive-login-configurator.d.ts +0 -42
- package/lib/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js +0 -248
- package/lib/uilogic/cloud-resource-configurators/az-interactive-login-configurator.js.map +0 -1
- package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +0 -110
- package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.js +0 -782
- package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +0 -1
- package/lib/uilogic/cloud-resource-configurators/azure-types.js +0 -10
- package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.d.ts +0 -24
- package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js +0 -106
- package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js.map +0 -1
- package/lib/uilogic/cloud-resource-configurators/helm-resource-configurator.d.ts +0 -16
- package/lib/uilogic/cloud-resource-configurators/helm-resource-configurator.js +0 -45
- package/lib/uilogic/cloud-resource-configurators/helm-resource-configurator.js.map +0 -1
- package/lib/uilogic/cloud-resource-configurators/unsupported-resource-configurator.d.ts +0 -18
- package/lib/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js +0 -62
- package/lib/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js.map +0 -1
- package/lib/uilogic/enterprise-contextualizer.d.ts +0 -76
- package/lib/uilogic/enterprise-contextualizer.js +0 -671
- package/lib/uilogic/environment-contextualizer.d.ts +0 -15
- package/lib/uilogic/environment-contextualizer.js +0 -43
- package/lib/uilogic/i-cluster-configurator.d.ts +0 -9
- package/lib/uilogic/i-cluster-configurator.js +0 -3
- package/lib/uilogic/i-login-configurator.d.ts +0 -6
- package/lib/uilogic/i-login-configurator.js +0 -3
- package/lib/uilogic/i-registry-configurator.d.ts +0 -6
- package/lib/uilogic/i-registry-configurator.js +0 -3
- package/lib/uilogic/i-secret-store-configurator.d.ts +0 -7
- package/lib/uilogic/i-secret-store-configurator.js +0 -3
- package/lib/uilogic/image-configurator.d.ts +0 -133
- package/lib/uilogic/image-configurator.js +0 -578
- package/lib/uilogic/image-configurator.js.map +0 -1
- package/lib/uilogic/image-contextualizer.d.ts +0 -24
- package/lib/uilogic/image-contextualizer.js +0 -90
- package/lib/uilogic/image-contextualizer.js.map +0 -1
- package/lib/uilogic/image-registry-contextualizer.d.ts +0 -28
- package/lib/uilogic/image-registry-contextualizer.js +0 -127
- package/lib/uilogic/image-registry-contextualizer.js.map +0 -1
- package/lib/uilogic/index.d.ts +0 -9
- package/lib/uilogic/index.js +0 -14
- package/lib/uilogic/prompt-select-fuzzy.js +0 -139
- package/lib/uilogic/render-methods.d.ts +0 -12
- package/lib/uilogic/render-methods.js +0 -65
- package/lib/uilogic/tenant-contextualizer.d.ts +0 -79
- package/lib/uilogic/tenant-contextualizer.js +0 -578
- package/lib/user-context-loader.d.ts +0 -60
- package/lib/user-context-loader.js +0 -184
- /package/{lib → dist}/apis/codiac-api/common/config-loader.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/common/endpoint-spec.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/common/security/auth-constants.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/common/security/i-auth-client.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/common/security/token-holder.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/common/utils.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/contracts/index.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/gen/contracts.js.map +0 -0
- /package/{lib → dist}/apis/codiac-api/index.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/common/config-loader.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/common/endpoint-spec.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/common/security/auth-constants.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/common/security/i-auth-client.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/common/security/token-holder.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/common/utils.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/contracts/index.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/gen/contracts.js.map +0 -0
- /package/{lib → dist}/apis/codiac-relay/index.js.map +0 -0
- /package/{lib → dist}/cli-common/ImagesList.d.ts +0 -0
- /package/{lib → dist}/cli-common/ImagesList.js.map +0 -0
- /package/{lib → dist}/cli-common/argument-manager.js.map +0 -0
- /package/{lib → dist}/cli-common/cli-interfaces.d.ts +0 -0
- /package/{lib → dist}/cli-common/cli-interfaces.js.map +0 -0
- /package/{lib → dist}/cli-common/command-base.js.map +0 -0
- /package/{lib → dist}/cli-common/entities/index.js.map +0 -0
- /package/{lib → dist}/cli-common/entities/prompt-choice.js.map +0 -0
- /package/{lib → dist}/cli-common/file-selector.js.map +0 -0
- /package/{lib → dist}/cli-common/i-user-input-provider.d.ts +0 -0
- /package/{lib → dist}/cli-common/i-user-input-provider.js.map +0 -0
- /package/{lib → dist}/cli-common/index.js.map +0 -0
- /package/{lib → dist}/cli-common/mock-ui.js.map +0 -0
- /package/{lib → dist}/cli-common/tenant-contextualizer.d.ts +0 -0
- /package/{lib → dist}/cli-common/tenant-contextualizer.js.map +0 -0
- /package/{lib → dist}/cli-common/test/tenant-contextualizer.spec.d.ts +0 -0
- /package/{lib → dist}/cli-common/test/tenant-contextualizer.spec.js.map +0 -0
- /package/{lib → dist}/cli-entities/output-format-enum.js.map +0 -0
- /package/{lib → dist}/cli-entities/prompt-choice.d.ts +0 -0
- /package/{lib → dist}/cli-entities/prompt-choice.js.map +0 -0
- /package/{lib → dist}/codiac-constants.js.map +0 -0
- /package/{lib → dist}/codiac-entities/asset-binding.js.map +0 -0
- /package/{lib → dist}/codiac-entities/azure-container-registry.js.map +0 -0
- /package/{lib → dist}/codiac-entities/azure-service-principal.js.map +0 -0
- /package/{lib → dist}/codiac-entities/cloud-account-ref.js.map +0 -0
- /package/{lib → dist}/codiac-entities/deployment-temp.d.ts +0 -0
- /package/{lib → dist}/codiac-entities/deployment-temp.js.map +0 -0
- /package/{lib → dist}/codiac-entities/i-cloud-account-ref.js.map +0 -0
- /package/{lib → dist}/command-base-enterprise.js.map +0 -0
- /package/{lib → dist}/command-base-tenantless.js.map +0 -0
- /package/{lib → dist}/commands/asset/create.js.map +0 -0
- /package/{lib → dist}/commands/asset/destroy.js.map +0 -0
- /package/{lib → dist}/commands/asset/helm.js.map +0 -0
- /package/{lib → dist}/commands/asset/list.js.map +0 -0
- /package/{lib → dist}/commands/asset/probe/create.js.map +0 -0
- /package/{lib → dist}/commands/asset/recycle.js.map +0 -0
- /package/{lib → dist}/commands/asset/view.js.map +0 -0
- /package/{lib → dist}/commands/asset/volume/create.js.map +0 -0
- /package/{lib → dist}/commands/asset/volume/delete.js.map +0 -0
- /package/{lib → dist}/commands/asset/volume/list.js.map +0 -0
- /package/{lib → dist}/commands/branch/current.js.map +0 -0
- /package/{lib → dist}/commands/branch/list.js.map +0 -0
- /package/{lib → dist}/commands/branch.js.map +0 -0
- /package/{lib → dist}/commands/build.js.map +0 -0
- /package/{lib → dist}/commands/cabinet/create.js.map +0 -0
- /package/{lib → dist}/commands/cabinet/list.js.map +0 -0
- /package/{lib → dist}/commands/cabinet/obliterate.js.map +0 -0
- /package/{lib → dist}/commands/cli.js.map +0 -0
- /package/{lib → dist}/commands/commit.js.map +0 -0
- /package/{lib → dist}/commands/config/add.js.map +0 -0
- /package/{lib → dist}/commands/config/delete.js.map +0 -0
- /package/{lib → dist}/commands/config/deploy.js.map +0 -0
- /package/{lib → dist}/commands/config/import.js.map +0 -0
- /package/{lib → dist}/commands/config/view.js.map +0 -0
- /package/{lib → dist}/commands/csp/logout.js.map +0 -0
- /package/{lib → dist}/commands/dep/create.js.map +0 -0
- /package/{lib → dist}/commands/dep/install.js.map +0 -0
- /package/{lib → dist}/commands/dep/list.js.map +0 -0
- /package/{lib → dist}/commands/dep/remove.js.map +0 -0
- /package/{lib → dist}/commands/dep/source.js.map +0 -0
- /package/{lib → dist}/commands/dep/syncup.js.map +0 -0
- /package/{lib → dist}/commands/dep/unsource.js.map +0 -0
- /package/{lib → dist}/commands/dep/upgrade.js.map +0 -0
- /package/{lib → dist}/commands/dep.js.map +0 -0
- /package/{lib → dist}/commands/enterprise/create.js.map +0 -0
- /package/{lib → dist}/commands/enterprise/list.js.map +0 -0
- /package/{lib → dist}/commands/env/add.js.map +0 -0
- /package/{lib → dist}/commands/environment/create.js.map +0 -0
- /package/{lib → dist}/commands/environment/list.js.map +0 -0
- /package/{lib → dist}/commands/filestore/capture.js.map +0 -0
- /package/{lib → dist}/commands/host/map.js.map +0 -0
- /package/{lib → dist}/commands/identity/delete.js.map +0 -0
- /package/{lib → dist}/commands/identity/list.js.map +0 -0
- /package/{lib → dist}/commands/identity.js.map +0 -0
- /package/{lib → dist}/commands/imageRegistry/capture.js.map +0 -0
- /package/{lib → dist}/commands/imageRegistry/forget.js.map +0 -0
- /package/{lib → dist}/commands/imageRegistry/pullSecret/set.js.map +0 -0
- /package/{lib → dist}/commands/imageRegistry/pullSecret/unset.js.map +0 -0
- /package/{lib → dist}/commands/images/add.js.map +0 -0
- /package/{lib → dist}/commands/images/list.js.map +0 -0
- /package/{lib → dist}/commands/images/patch.js.map +0 -0
- /package/{lib → dist}/commands/images/remove.js.map +0 -0
- /package/{lib → dist}/commands/images/version/bump.js.map +0 -0
- /package/{lib → dist}/commands/images/version.js.map +0 -0
- /package/{lib → dist}/commands/init.js.map +0 -0
- /package/{lib → dist}/commands/kit/create.js.map +0 -0
- /package/{lib → dist}/commands/login.js.map +0 -0
- /package/{lib → dist}/commands/logout.js.map +0 -0
- /package/{lib → dist}/commands/merge.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/create.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/deinit.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/destroy.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/forget.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/grant.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/init.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/list.js.map +0 -0
- /package/{lib → dist}/commands/noc/cluster/recreate.js.map +0 -0
- /package/{lib → dist}/commands/pkg/add.js.map +0 -0
- /package/{lib → dist}/commands/pkg/list.js.map +0 -0
- /package/{lib → dist}/commands/pkg/patch.js.map +0 -0
- /package/{lib → dist}/commands/pkg/remove.js.map +0 -0
- /package/{lib → dist}/commands/portal.js.map +0 -0
- /package/{lib → dist}/commands/publish.js.map +0 -0
- /package/{lib → dist}/commands/pull.js.map +0 -0
- /package/{lib → dist}/commands/push.js.map +0 -0
- /package/{lib → dist}/commands/run.js.map +0 -0
- /package/{lib → dist}/commands/secretStore/capture.js.map +0 -0
- /package/{lib → dist}/commands/secretStore/forget.js.map +0 -0
- /package/{lib → dist}/commands/stage.js.map +0 -0
- /package/{lib → dist}/commands/stash.js.map +0 -0
- /package/{lib → dist}/commands/status.js.map +0 -0
- /package/{lib → dist}/commands/stop.js.map +0 -0
- /package/{lib → dist}/commands/switch.js.map +0 -0
- /package/{lib → dist}/commands/sync.js.map +0 -0
- /package/{lib → dist}/commands/tenant/create.js.map +0 -0
- /package/{lib → dist}/commands/tenant/switch.js.map +0 -0
- /package/{lib → dist}/commands/unstage.js.map +0 -0
- /package/{lib → dist}/commands/whereami.js.map +0 -0
- /package/{lib → dist}/commands/whoami.js.map +0 -0
- /package/{lib → dist}/errors/NoMembershipError.js.map +0 -0
- /package/{lib → dist}/index.js.map +0 -0
- /package/{lib → dist}/log-update-wrapper.js.map +0 -0
- /package/{lib → dist}/ops/INTERFACES_CLI.js.map +0 -0
- /package/{lib → dist}/ops/azure-container-registry-client/azure-container-registry-client.d.ts +0 -0
- /package/{lib → dist}/ops/azure-container-registry-client/azure-container-registry-client.js.map +0 -0
- /package/{lib → dist}/ops/cli-path-walker.d.ts +0 -0
- /package/{lib → dist}/ops/cli-path-walker.js.map +0 -0
- /package/{lib → dist}/ops/codiac-entities/dependency.js.map +0 -0
- /package/{lib → dist}/ops/codiac-entities/index.js.map +0 -0
- /package/{lib → dist}/ops/composite-image-registry-client.d.ts +0 -0
- /package/{lib → dist}/ops/composite-image-registry-client.js.map +0 -0
- /package/{lib → dist}/ops/data/index.js.map +0 -0
- /package/{lib → dist}/ops/data/npm-config-repo.js.map +0 -0
- /package/{lib → dist}/ops/docker-config.d.ts +0 -0
- /package/{lib → dist}/ops/docker-config.js.map +0 -0
- /package/{lib → dist}/ops/docker-constants.d.ts +0 -0
- /package/{lib → dist}/ops/docker-constants.js.map +0 -0
- /package/{lib → dist}/ops/docker-credentials-store.d.ts +0 -0
- /package/{lib → dist}/ops/docker-credentials-store.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/docker-registry-api-client.d.ts +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/docker-registry-api-client.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/blob-sum.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/docker-access-actions-enum.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/i-docker-error-response.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/i-docker-list-response.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/image-repository.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/image-tag-criteria.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/image-tag-list.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/manifest-criteria.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/manifest.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/repository-criteria.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/token-response.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/token.js.map +0 -0
- /package/{lib → dist}/ops/docker-registry-api-client/entities/version-check-criteria.js.map +0 -0
- /package/{lib → dist}/ops/dx-constants.js.map +0 -0
- /package/{lib → dist}/ops/entities/ImageBuildContext.js.map +0 -0
- /package/{lib → dist}/ops/entities/PipelineContext.js.map +0 -0
- /package/{lib → dist}/ops/entities/TenantContext.js.map +0 -0
- /package/{lib → dist}/ops/entities/ThaulConfig.d.ts +0 -0
- /package/{lib → dist}/ops/entities/ThaulConfig.js.map +0 -0
- /package/{lib → dist}/ops/entities/azure-service-principal.js.map +0 -0
- /package/{lib → dist}/ops/entities/better-logger.d.ts +0 -0
- /package/{lib → dist}/ops/entities/better-logger.js.map +0 -0
- /package/{lib → dist}/ops/entities/branch.js.map +0 -0
- /package/{lib → dist}/ops/entities/docker-image.js.map +0 -0
- /package/{lib → dist}/ops/entities/helm-spec.js.map +0 -0
- /package/{lib → dist}/ops/entities/index.js.map +0 -0
- /package/{lib → dist}/ops/entities/scaffolding.js.map +0 -0
- /package/{lib → dist}/ops/extensions/azart-identity-adapter.js.map +0 -0
- /package/{lib → dist}/ops/extensions/npm-identity-adapter-base.js.map +0 -0
- /package/{lib → dist}/ops/extensions/npmjs-identity-adapter.js.map +0 -0
- /package/{lib → dist}/ops/git-ops.js.map +0 -0
- /package/{lib → dist}/ops/i-client-for-image-registry.d.ts +0 -0
- /package/{lib → dist}/ops/i-client-for-image-registry.js.map +0 -0
- /package/{lib → dist}/ops/i-identity-handler.js.map +0 -0
- /package/{lib → dist}/ops/i-output-styler.d.ts +0 -0
- /package/{lib → dist}/ops/i-output-styler.js.map +0 -0
- /package/{lib → dist}/ops/index.js.map +0 -0
- /package/{lib → dist}/ops/json-utils.d.ts +0 -0
- /package/{lib → dist}/ops/json-utils.js.map +0 -0
- /package/{lib → dist}/ops/no-style-output-styler.d.ts +0 -0
- /package/{lib → dist}/ops/no-style-output-styler.js.map +0 -0
- /package/{lib → dist}/ops/project-initializer.js.map +0 -0
- /package/{lib → dist}/ops/test/mock-ui.js.map +0 -0
- /package/{lib → dist}/ops/test/test-extensions.js.map +0 -0
- /package/{lib → dist}/ops/test/when-a-recursive-file-search-is-run.spec.js.map +0 -0
- /package/{lib → dist}/ops/test/when-git-branchline-is-attempted.spec.js.map +0 -0
- /package/{lib → dist}/ops/test/when-versions-are-parsed.spec.js.map +0 -0
- /package/{lib → dist}/ops/throwing-user-input-provider.d.ts +0 -0
- /package/{lib → dist}/ops/throwing-user-input-provider.js.map +0 -0
- /package/{lib → dist}/prettify.js.map +0 -0
- /package/{lib → dist}/read-stdin.js.map +0 -0
- /package/{lib → dist}/relay/contracts/contracts.js.map +0 -0
- /package/{lib → dist}/relay/extended-relay-client.js.map +0 -0
- /package/{lib → dist}/relay/wsclient/socket-contracts.js.map +0 -0
- /package/{lib → dist}/standard-probes.js.map +0 -0
- /package/{lib → dist}/uilogic/build-configurator.js.map +0 -0
- /package/{lib → dist}/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.d.ts +0 -0
- /package/{lib → dist}/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js.map +0 -0
- /package/{lib → dist}/uilogic/cloud-resource-configurators/azure-types.d.ts +0 -0
- /package/{lib → dist}/uilogic/cloud-resource-configurators/azure-types.js.map +0 -0
- /package/{lib → dist}/uilogic/enterprise-contextualizer.js.map +0 -0
- /package/{lib → dist}/uilogic/environment-contextualizer.js.map +0 -0
- /package/{lib → dist}/uilogic/i-cluster-configurator.js.map +0 -0
- /package/{lib → dist}/uilogic/i-login-configurator.js.map +0 -0
- /package/{lib → dist}/uilogic/i-registry-configurator.js.map +0 -0
- /package/{lib → dist}/uilogic/i-secret-store-configurator.js.map +0 -0
- /package/{lib → dist}/uilogic/index.js.map +0 -0
- /package/{lib → dist}/uilogic/prompt-select-fuzzy.d.ts +0 -0
- /package/{lib → dist}/uilogic/prompt-select-fuzzy.js.map +0 -0
- /package/{lib → dist}/uilogic/render-methods.js.map +0 -0
- /package/{lib → dist}/uilogic/tenant-contextualizer.js.map +0 -0
- /package/{lib → dist}/user-context-loader.js.map +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.endpointSpec = void 0;
|
|
4
|
-
// export interface IEndpointSpec {
|
|
5
|
-
// entityType: typeRef; // this requires that TRequest extends Object. It prob should. Not sure where that breaks down - what is the scenario that we are passing in a contract that doesnt extend Object?
|
|
6
|
-
// httpMethod: httpRestVerb;
|
|
7
|
-
// route: string;
|
|
8
|
-
// serializerMap?: stringDictionary;
|
|
9
|
-
// }
|
|
10
|
-
class endpointSpec {
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param entityType
|
|
14
|
-
* @param httpMethod
|
|
15
|
-
* @param route
|
|
16
|
-
* @param baseUrl Overrides the api base url.
|
|
17
|
-
* @param serializerMap
|
|
18
|
-
*/
|
|
19
|
-
constructor(entityType, httpMethod, route, baseUrl, serializerMap) {
|
|
20
|
-
this.entityType = entityType;
|
|
21
|
-
this.httpMethod = httpMethod;
|
|
22
|
-
this.route = route;
|
|
23
|
-
this.baseUrl = baseUrl;
|
|
24
|
-
this.serializerMap = serializerMap;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.endpointSpec = endpointSpec;
|
|
28
|
-
//# sourceMappingURL=endpoint-spec.js.map
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from "axios";
|
|
2
|
-
import * as contracts from "@codiac.io/codiac-common/contracts";
|
|
3
|
-
import { classDef, httpRestVerb, IBetterLogger } from "@codiac.io/codiac-common";
|
|
4
|
-
import { TenantUser, AuthTenant } from "@codiac.io/codiac-common/security";
|
|
5
|
-
import { ApiClientBase } from "../api-client-base";
|
|
6
|
-
import { IAuthClient } from "./i-auth-client";
|
|
7
|
-
import { AuthConstants } from "./auth-constants";
|
|
8
|
-
import { TokenHolder } from "./token-holder";
|
|
9
|
-
/** Contains hard-coded Codiac Auth methods.
|
|
10
|
-
* It is considered legacy because it is to be replaced by methods generated from an openApi spec. */
|
|
11
|
-
export declare class ApiAuthMethodsLegacy implements IAuthClient {
|
|
12
|
-
private core;
|
|
13
|
-
private logger;
|
|
14
|
-
/** Hardcoded to match the current setting on the server.
|
|
15
|
-
* TODO: Get this from a config that is copied from the server project to the client project on build.
|
|
16
|
-
*/
|
|
17
|
-
static TOKEN_HEADER_PARAM: string;
|
|
18
|
-
constructor(core: ApiClientBase, logger: IBetterLogger);
|
|
19
|
-
/** The name of the http request header that declares the authentication token for the request.
|
|
20
|
-
* NOTE: This gets set to DEFAULT_TOKEN_HEADER_NAME in the ctor of ApiClientBase,
|
|
21
|
-
* so child classes can override it in their own ctor AFTER calling super(). */
|
|
22
|
-
protected tokenHeaderName: string;
|
|
23
|
-
protected authConstants: AuthConstants;
|
|
24
|
-
/** Logs in remotely with the given credentials.
|
|
25
|
-
* Returns a valid token in the headers of the response
|
|
26
|
-
* and the user info in the body of the response.
|
|
27
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
28
|
-
* @param login The human readable unique identifier for the user.
|
|
29
|
-
* @param password the secret held for this particular user.
|
|
30
|
-
* @param tenantCode (optional) Unique identifier of the tenant to activate with this authentication.
|
|
31
|
-
*/
|
|
32
|
-
authenticate(login: string, password: string, tenantCode?: string): Promise<contracts.SingleResult<TokenHolder>>;
|
|
33
|
-
/** Traps the errors thrown by axios on non-200 statuses. */
|
|
34
|
-
protected executeAxiosRequest<TRequest, TResponse extends contracts.Result>(verb: httpRestVerb, responseType: classDef<TResponse>, url: string, request?: TRequest, options?: AxiosRequestConfig): Promise<{
|
|
35
|
-
data: TResponse;
|
|
36
|
-
headers?: any;
|
|
37
|
-
status: number;
|
|
38
|
-
statusText: string;
|
|
39
|
-
}>;
|
|
40
|
-
/** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
|
|
41
|
-
* throws if the axios response does not contain a data property. */
|
|
42
|
-
private convertToTokenHolderResult;
|
|
43
|
-
/** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
|
|
44
|
-
* throws if the axios response does not contain a data property.
|
|
45
|
-
* @deprecated Use `convertToTokenHolderResult()` instead.*/
|
|
46
|
-
private convertToTokenHolderResponse;
|
|
47
|
-
/** Determines whether the given token is expired.
|
|
48
|
-
* @param throwOnError throws any encountered errors, including token parsing errors.
|
|
49
|
-
*/
|
|
50
|
-
isExpired(token: string, throwOnError?: boolean): boolean;
|
|
51
|
-
extractTokenExpiration(token: string): Date | undefined;
|
|
52
|
-
/** Provides the ability to extend an existing token.
|
|
53
|
-
* Returns failure for invalid or revoked tokens.
|
|
54
|
-
* Returns any errors encountered refreshing.
|
|
55
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
56
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
57
|
-
* */
|
|
58
|
-
refreshToken(currentToken: string): Promise<contracts.SingleResult<TokenHolder>>;
|
|
59
|
-
/** Retrieves the full account info for the current user (minus any passwords),
|
|
60
|
-
* including all tenant profiles.
|
|
61
|
-
* Returns failure for invalid or revoked tokens.
|
|
62
|
-
* Returns any errors encountered refreshing.
|
|
63
|
-
* NOTE: keeps the returned auth token in scope for this client instance.
|
|
64
|
-
* @param currentToken (optional if the client instance has already authenticated) The JWT token returned in a prior request.
|
|
65
|
-
*/
|
|
66
|
-
whoAmI(currentToken?: string): Promise<contracts.SingleResult<TenantUser>>;
|
|
67
|
-
/** Provides the ability to extend an existing token.
|
|
68
|
-
* Returns failure for invalid or revoked tokens.
|
|
69
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
70
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
71
|
-
* @param tenantCode Unique identifier of the tenant being switched to.
|
|
72
|
-
* Returns any errors encountered refreshing. */
|
|
73
|
-
switchTenant(currentToken: string, tenantCode: string): Promise<contracts.SingleResult<TokenHolder>>;
|
|
74
|
-
/** Declares a new organization in the toyhauler system.
|
|
75
|
-
* The given user account is made the administrator for that organization,
|
|
76
|
-
* and if the new user flag is given,
|
|
77
|
-
* the user account will get created.
|
|
78
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
79
|
-
* @param tenantName Human readable friendly title for the tenant. NOT used for system identification.
|
|
80
|
-
* @param newUser Flag to create a new user account with the given credentials.
|
|
81
|
-
* @param userName User to be the adminstrator for the new tenant.
|
|
82
|
-
* @param password Password for the given user (desired password if the newuser flag is set).
|
|
83
|
-
* @param tenantCode (optional) Desired unique identifier for the new tenant (if omitted one will be generated).
|
|
84
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
85
|
-
* */
|
|
86
|
-
registerTenant(tenantName: string, newUser: boolean, userName: string, password: string, tenantCode?: string, currentToken?: string): Promise<contracts.SingleResult<AuthTenant>>;
|
|
87
|
-
}
|
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var ApiAuthMethodsLegacy_1;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ApiAuthMethodsLegacy = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const path = require("path");
|
|
7
|
-
const inversify_1 = require("inversify");
|
|
8
|
-
const axios_1 = require("axios");
|
|
9
|
-
const contracts = require("@codiac.io/codiac-common/contracts");
|
|
10
|
-
const codiac_common_1 = require("@codiac.io/codiac-common");
|
|
11
|
-
const jwt_lib_1 = require("@codiac.io/jwt-lib");
|
|
12
|
-
const api_client_base_1 = require("../api-client-base");
|
|
13
|
-
const auth_constants_1 = require("./auth-constants");
|
|
14
|
-
const token_holder_1 = require("./token-holder");
|
|
15
|
-
/** Contains hard-coded Codiac Auth methods.
|
|
16
|
-
* It is considered legacy because it is to be replaced by methods generated from an openApi spec. */
|
|
17
|
-
let ApiAuthMethodsLegacy = ApiAuthMethodsLegacy_1 = class ApiAuthMethodsLegacy {
|
|
18
|
-
// /**
|
|
19
|
-
// * @param apiRootUrl The base url of the api. That is, prepending it to any individual endpoint route will yield the fully qualified url for that endpoint.
|
|
20
|
-
// * @param authToken Either a Principal or TenantUser token for the api this client is targeting. NOTE: Also gets hydrated on successful attempts of authenticate / switchTenant / refreshToken / registerTenant.
|
|
21
|
-
// */
|
|
22
|
-
// constructor(logger: IBetterLogger, apiRootUrl?: string, authToken?: string) {
|
|
23
|
-
// super(logger, apiRootUrl, authToken);
|
|
24
|
-
// this.tokenHeaderName = ApiClientBaseWithAuth.TOKEN_HEADER_PARAM; // Right now this is redundant bc this class and the apiClientBase have the same value for tokenHeaderName. But it's here bc the auth client should explicitly declare it anyway and the base is just a default.
|
|
25
|
-
// }
|
|
26
|
-
constructor(core, logger) {
|
|
27
|
-
this.core = core;
|
|
28
|
-
this.logger = logger;
|
|
29
|
-
this.authConstants = new auth_constants_1.AuthConstants();
|
|
30
|
-
this.tokenHeaderName = ApiAuthMethodsLegacy_1.TOKEN_HEADER_PARAM; // Right now this is redundant bc this class and the apiClientBase have the same value for tokenHeaderName. But it's here bc this auth client should explicitly declare it anyway and the base is just a default.
|
|
31
|
-
}
|
|
32
|
-
;
|
|
33
|
-
/** Logs in remotely with the given credentials.
|
|
34
|
-
* Returns a valid token in the headers of the response
|
|
35
|
-
* and the user info in the body of the response.
|
|
36
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
37
|
-
* @param login The human readable unique identifier for the user.
|
|
38
|
-
* @param password the secret held for this particular user.
|
|
39
|
-
* @param tenantCode (optional) Unique identifier of the tenant to activate with this authentication.
|
|
40
|
-
*/
|
|
41
|
-
authenticate(login, password, tenantCode) {
|
|
42
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
var _a, _b, _c, _d, _e;
|
|
45
|
-
try {
|
|
46
|
-
let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_LOGIN);
|
|
47
|
-
let req = { login: login, password: password.trim(), tenantCode: tenantCode };
|
|
48
|
-
let options = {
|
|
49
|
-
"baseURL": this.core.apiRootUrl,
|
|
50
|
-
"headers": { "content-type": "application/json" }
|
|
51
|
-
};
|
|
52
|
-
// let apiResponse = await axios.post<contracts.SingleResult<TenantUser>>(url, req, options);
|
|
53
|
-
// let result = this.convertToTokenHolderResponse(apiResponse);
|
|
54
|
-
let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
|
|
55
|
-
if (httpResp.data === undefined) {
|
|
56
|
-
throw new Error(`Authentication request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
|
|
57
|
-
}
|
|
58
|
-
let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
|
|
59
|
-
if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
|
|
60
|
-
this.core.authToken = result.output.token;
|
|
61
|
-
}
|
|
62
|
-
resolve(result);
|
|
63
|
-
}
|
|
64
|
-
catch (err) {
|
|
65
|
-
let output = new contracts.SingleResult(false, `Error during authenticate: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
|
|
66
|
-
this.logger.debug(output.message);
|
|
67
|
-
resolve(output);
|
|
68
|
-
}
|
|
69
|
-
}));
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/** Traps the errors thrown by axios on non-200 statuses. */
|
|
73
|
-
executeAxiosRequest(verb, responseType, url, request, options) {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
75
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
try {
|
|
77
|
-
let axr;
|
|
78
|
-
switch (verb) {
|
|
79
|
-
case codiac_common_1.httpRestVerb.POST:
|
|
80
|
-
axr = yield axios_1.default.post(url, request, options);
|
|
81
|
-
break;
|
|
82
|
-
case codiac_common_1.httpRestVerb.PUT:
|
|
83
|
-
axr = yield axios_1.default.put(url, request, options);
|
|
84
|
-
break;
|
|
85
|
-
case codiac_common_1.httpRestVerb.PATCH:
|
|
86
|
-
axr = yield axios_1.default.patch(url, request, options);
|
|
87
|
-
break;
|
|
88
|
-
case codiac_common_1.httpRestVerb.DELETE:
|
|
89
|
-
axr = yield axios_1.default.delete(url, options);
|
|
90
|
-
break;
|
|
91
|
-
default: // GET
|
|
92
|
-
axr = yield axios_1.default.get(url, options);
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
let expected = responseType; // <-- just to satisfy TS (we want to infer the generics, dont want the caller to have to explicitly type them)
|
|
96
|
-
return axr; // { data: axr.data, headers: axr.headers, status: axr.status, statusText: axr.statusText };
|
|
97
|
-
}
|
|
98
|
-
catch (err) {
|
|
99
|
-
if (err.isAxiosError === true && err.response) {
|
|
100
|
-
let axErrResponse = (err.response);
|
|
101
|
-
this.logger.debug(`Remote api returned failure http status: ${axErrResponse.status || ""} ${axErrResponse.statusText || ""}.`); // , stringify(axr); // need json-safe-stringify
|
|
102
|
-
return { data: axErrResponse.data, headers: axErrResponse.headers, status: axErrResponse.status, statusText: axErrResponse.statusText };
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
let result = new contracts.Result(false, `Error communicating with remote api: ${(_a = err.name) !== null && _a !== void 0 ? _a : ""} ${(_b = err.message) !== null && _b !== void 0 ? _b : "unspecified error."}`, err);
|
|
106
|
-
return { data: result, headers: (_d = (_c = err.response) === null || _c === void 0 ? void 0 : _c.headers) !== null && _d !== void 0 ? _d : {}, status: (_f = (_e = err.response) === null || _e === void 0 ? void 0 : _e.status) !== null && _f !== void 0 ? _f : -1, statusText: (_h = (_g = err.response) === null || _g === void 0 ? void 0 : _g.statusText) !== null && _h !== void 0 ? _h : "" };
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
|
|
112
|
-
* throws if the axios response does not contain a data property. */
|
|
113
|
-
convertToTokenHolderResult(apiResponse, headers) {
|
|
114
|
-
let result = new contracts.SingleResult(apiResponse.success, apiResponse.message, apiResponse.error, undefined, apiResponse.validation);
|
|
115
|
-
if (apiResponse.output) {
|
|
116
|
-
let token = headers[this.tokenHeaderName];
|
|
117
|
-
if (!token)
|
|
118
|
-
throw new Error(`Authentication service did not provide a user token.`);
|
|
119
|
-
let exp = this.extractTokenExpiration(token);
|
|
120
|
-
result.output = new token_holder_1.TokenHolder(apiResponse.output, token, exp);
|
|
121
|
-
}
|
|
122
|
-
return result;
|
|
123
|
-
}
|
|
124
|
-
/** Replaces the user in the output with a TokenHolder so that they client consumer has access to the token.
|
|
125
|
-
* throws if the axios response does not contain a data property.
|
|
126
|
-
* @deprecated Use `convertToTokenHolderResult()` instead.*/
|
|
127
|
-
convertToTokenHolderResponse(apiResponse) {
|
|
128
|
-
if (apiResponse.data) {
|
|
129
|
-
// TODO: Dont construct new - just cast or ducktype and replace the output property.
|
|
130
|
-
let result = new contracts.SingleResult(apiResponse.data.success, apiResponse.data.message, apiResponse.data.error, undefined, apiResponse.data.validation);
|
|
131
|
-
if (apiResponse.data.output) {
|
|
132
|
-
let token = apiResponse.headers[this.tokenHeaderName];
|
|
133
|
-
if (!token)
|
|
134
|
-
throw new Error(`Authentication service did not provide a user token.`);
|
|
135
|
-
let exp = this.extractTokenExpiration(token);
|
|
136
|
-
result.output = new token_holder_1.TokenHolder(apiResponse.data.output, token, exp);
|
|
137
|
-
}
|
|
138
|
-
return result;
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
throw new Error(`Authentication request did not return an output object. HttpStatus: ${apiResponse.status} ${apiResponse.statusText}`);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
/** Determines whether the given token is expired.
|
|
145
|
-
* @param throwOnError throws any encountered errors, including token parsing errors.
|
|
146
|
-
*/
|
|
147
|
-
isExpired(token, throwOnError = false) {
|
|
148
|
-
try {
|
|
149
|
-
const exp = this.extractTokenExpiration(token);
|
|
150
|
-
return (exp == undefined) || !(0, codiac_common_1.isFuture)(exp);
|
|
151
|
-
}
|
|
152
|
-
catch (err) {
|
|
153
|
-
let newErr = new contracts.CodiacError(`Error determining expiry status: ${err.message || ""}`, err);
|
|
154
|
-
this.logger.detail(newErr.message);
|
|
155
|
-
if (throwOnError) {
|
|
156
|
-
throw newErr;
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
extractTokenExpiration(token) {
|
|
164
|
-
let exp;
|
|
165
|
-
try {
|
|
166
|
-
const encoder = new jwt_lib_1.JwtEncoder();
|
|
167
|
-
const tokenObj = encoder.tryDecode(token);
|
|
168
|
-
const CLAIM_KEY_FOR_EXPIRATION = "exp"; // this is just a standard claim so it ought to come from the jwt lib
|
|
169
|
-
const rawExp = tokenObj === null || tokenObj === void 0 ? void 0 : tokenObj.payload[CLAIM_KEY_FOR_EXPIRATION];
|
|
170
|
-
if (rawExp) {
|
|
171
|
-
try {
|
|
172
|
-
exp = new Date(rawExp);
|
|
173
|
-
this.logger.trace(`Exracted token expiration (utc): ${(exp === null || exp === void 0 ? void 0 : exp.toUTCString()) || "undefined"}`);
|
|
174
|
-
}
|
|
175
|
-
catch (_a) {
|
|
176
|
-
this.logger.trace(`Invalid date format in token expiration: [${rawExp}]`);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
return exp;
|
|
180
|
-
}
|
|
181
|
-
catch (err) {
|
|
182
|
-
throw new Error(`Error parsing expiration from token: ${err.message}`);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
/** Provides the ability to extend an existing token.
|
|
186
|
-
* Returns failure for invalid or revoked tokens.
|
|
187
|
-
* Returns any errors encountered refreshing.
|
|
188
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
189
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
190
|
-
* */
|
|
191
|
-
refreshToken(currentToken) {
|
|
192
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
193
|
-
return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
194
|
-
var _a, _b, _c, _d, _e;
|
|
195
|
-
try {
|
|
196
|
-
let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_TOKEN_REFRESH);
|
|
197
|
-
let req = {};
|
|
198
|
-
let options = {
|
|
199
|
-
"baseURL": this.core.apiRootUrl,
|
|
200
|
-
"headers": {
|
|
201
|
-
"content-type": "application/json",
|
|
202
|
-
[this.tokenHeaderName]: currentToken
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
// let apiResponse = await axios.post<contracts.SingleResult<TenantUser>>(url, req, options);
|
|
206
|
-
// let result = this.convertToTokenHolderResponse(apiResponse);
|
|
207
|
-
let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
|
|
208
|
-
if (httpResp.data === undefined) {
|
|
209
|
-
throw new Error(`refreshToken request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
|
|
210
|
-
}
|
|
211
|
-
let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
|
|
212
|
-
if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
|
|
213
|
-
this.core.authToken = result.output.token;
|
|
214
|
-
}
|
|
215
|
-
resolve(result);
|
|
216
|
-
}
|
|
217
|
-
catch (err) {
|
|
218
|
-
let output = new contracts.SingleResult(false, `Error during refreshToken: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
|
|
219
|
-
this.logger.debug(output.message);
|
|
220
|
-
resolve(output);
|
|
221
|
-
}
|
|
222
|
-
}));
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
/** Retrieves the full account info for the current user (minus any passwords),
|
|
226
|
-
* including all tenant profiles.
|
|
227
|
-
* Returns failure for invalid or revoked tokens.
|
|
228
|
-
* Returns any errors encountered refreshing.
|
|
229
|
-
* NOTE: keeps the returned auth token in scope for this client instance.
|
|
230
|
-
* @param currentToken (optional if the client instance has already authenticated) The JWT token returned in a prior request.
|
|
231
|
-
*/
|
|
232
|
-
whoAmI(currentToken) {
|
|
233
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
235
|
-
var _a, _b, _c, _d, _e;
|
|
236
|
-
try {
|
|
237
|
-
let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_TOKEN_WHOAMI);
|
|
238
|
-
let options = {
|
|
239
|
-
"baseURL": this.core.apiRootUrl,
|
|
240
|
-
"headers": {
|
|
241
|
-
"content-type": "application/json"
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
if (currentToken || this.core.authToken)
|
|
245
|
-
options.headers[this.tokenHeaderName] = currentToken || this.core.authToken;
|
|
246
|
-
// let apiResponse = await axios.get<contracts.SingleResult<TenantUser>>(url, options);
|
|
247
|
-
// let result = apiResponse.data;
|
|
248
|
-
// if (apiResponse.headers[RestClientBaseWithAuth.TOKEN_HEADER_PARAM]) {
|
|
249
|
-
// this.core.authToken = apiResponse.headers[RestClientBaseWithAuth.TOKEN_HEADER_PARAM];
|
|
250
|
-
// }
|
|
251
|
-
let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.GET, (contracts.SingleResult), url, undefined, options);
|
|
252
|
-
if (httpResp.data === undefined) {
|
|
253
|
-
throw new Error(`whoAmI request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
|
|
254
|
-
}
|
|
255
|
-
let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
|
|
256
|
-
if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
|
|
257
|
-
this.core.authToken = result.output.token;
|
|
258
|
-
}
|
|
259
|
-
resolve(httpResp.data); // result); // this method should have returned a tokenHolder, not a tenantUser.
|
|
260
|
-
}
|
|
261
|
-
catch (err) {
|
|
262
|
-
let output = new contracts.SingleResult(false, `Error during whoAmI: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
|
|
263
|
-
this.logger.debug(output.message);
|
|
264
|
-
resolve(output);
|
|
265
|
-
}
|
|
266
|
-
}));
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
/** Provides the ability to extend an existing token.
|
|
270
|
-
* Returns failure for invalid or revoked tokens.
|
|
271
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
272
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
273
|
-
* @param tenantCode Unique identifier of the tenant being switched to.
|
|
274
|
-
* Returns any errors encountered refreshing. */
|
|
275
|
-
switchTenant(currentToken, tenantCode) {
|
|
276
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
277
|
-
return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
278
|
-
var _a, _b, _c, _d, _e;
|
|
279
|
-
try {
|
|
280
|
-
let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_SWITCH_TENANT);
|
|
281
|
-
let req = { newTenantCode: tenantCode };
|
|
282
|
-
let options = {
|
|
283
|
-
"baseURL": this.core.apiRootUrl,
|
|
284
|
-
"headers": {
|
|
285
|
-
"content-type": "application/json",
|
|
286
|
-
[this.tokenHeaderName]: currentToken
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
|
|
290
|
-
if (httpResp.data === undefined) {
|
|
291
|
-
throw new Error(`switchTenant request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
|
|
292
|
-
}
|
|
293
|
-
let result = this.convertToTokenHolderResult(httpResp.data, httpResp.headers);
|
|
294
|
-
if ((_c = result.output) === null || _c === void 0 ? void 0 : _c.token) {
|
|
295
|
-
this.core.authToken = result.output.token;
|
|
296
|
-
}
|
|
297
|
-
resolve(result);
|
|
298
|
-
}
|
|
299
|
-
catch (err) {
|
|
300
|
-
let output = new contracts.SingleResult(false, `Error during switchTenant: ${(_d = err.name) !== null && _d !== void 0 ? _d : ""} ${(_e = err.message) !== null && _e !== void 0 ? _e : "(no error message available)"}`, err);
|
|
301
|
-
this.logger.debug(output.message);
|
|
302
|
-
resolve(output);
|
|
303
|
-
}
|
|
304
|
-
}));
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
/** Declares a new organization in the toyhauler system.
|
|
308
|
-
* The given user account is made the administrator for that organization,
|
|
309
|
-
* and if the new user flag is given,
|
|
310
|
-
* the user account will get created.
|
|
311
|
-
* NOTE: If successful, keeps the returned auth token in scope for this client instance.
|
|
312
|
-
* @param tenantName Human readable friendly title for the tenant. NOT used for system identification.
|
|
313
|
-
* @param newUser Flag to create a new user account with the given credentials.
|
|
314
|
-
* @param userName User to be the adminstrator for the new tenant.
|
|
315
|
-
* @param password Password for the given user (desired password if the newuser flag is set).
|
|
316
|
-
* @param tenantCode (optional) Desired unique identifier for the new tenant (if omitted one will be generated).
|
|
317
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
318
|
-
* */
|
|
319
|
-
registerTenant(tenantName, newUser, userName, password, tenantCode, currentToken) {
|
|
320
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
321
|
-
return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
322
|
-
var _a, _b, _c, _d;
|
|
323
|
-
try {
|
|
324
|
-
let url = path.join(this.authConstants.ROUTE_PREFIX, this.authConstants.ROUTE_SUBPATH_TENANT_REGISTER);
|
|
325
|
-
let req = { tenantName: tenantName, newUser: newUser, userName: userName, password: password, tenantCode: tenantCode };
|
|
326
|
-
let options = {
|
|
327
|
-
"baseURL": this.core.apiRootUrl,
|
|
328
|
-
"headers": {
|
|
329
|
-
"content-type": "application/json"
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
if (currentToken)
|
|
333
|
-
options.headers[this.tokenHeaderName] = currentToken;
|
|
334
|
-
// let response = await axios.post<contracts.SingleResult<AuthTenant>>(url, req, options);
|
|
335
|
-
// let opResult = response.data;
|
|
336
|
-
// if (opResult && opResult.success && response.headers[this.tokenHeaderName]) {
|
|
337
|
-
// this.core.authToken = response.headers[this.tokenHeaderName];
|
|
338
|
-
// }
|
|
339
|
-
// resolve(response.data);
|
|
340
|
-
let httpResp = yield this.executeAxiosRequest(codiac_common_1.httpRestVerb.POST, (contracts.SingleResult), url, req, options);
|
|
341
|
-
if (httpResp.data === undefined) {
|
|
342
|
-
throw new Error(`registerTenant request did not return an output object. HttpStatus: ${(_a = httpResp.status) !== null && _a !== void 0 ? _a : ""} ${(_b = httpResp.statusText) !== null && _b !== void 0 ? _b : ""}`);
|
|
343
|
-
}
|
|
344
|
-
let result = httpResp.data;
|
|
345
|
-
if (result.success && httpResp.headers[this.tokenHeaderName]) {
|
|
346
|
-
this.core.authToken = httpResp.headers[this.tokenHeaderName];
|
|
347
|
-
}
|
|
348
|
-
resolve(result); // this should have been a tokenHolder result instead of an AuthTenant.
|
|
349
|
-
}
|
|
350
|
-
catch (err) {
|
|
351
|
-
let output = new contracts.SingleResult(false, `Error during registerTenant: ${(_c = err.name) !== null && _c !== void 0 ? _c : ""} ${(_d = err.message) !== null && _d !== void 0 ? _d : "(no error message available)"}`, err);
|
|
352
|
-
this.logger.debug(output.message);
|
|
353
|
-
resolve(output);
|
|
354
|
-
}
|
|
355
|
-
}));
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
|
-
/** Hardcoded to match the current setting on the server.
|
|
360
|
-
* TODO: Get this from a config that is copied from the server project to the client project on build.
|
|
361
|
-
*/
|
|
362
|
-
ApiAuthMethodsLegacy.TOKEN_HEADER_PARAM = "authorization";
|
|
363
|
-
ApiAuthMethodsLegacy = ApiAuthMethodsLegacy_1 = tslib_1.__decorate([
|
|
364
|
-
(0, inversify_1.injectable)(),
|
|
365
|
-
tslib_1.__metadata("design:paramtypes", [api_client_base_1.ApiClientBase, Object])
|
|
366
|
-
], ApiAuthMethodsLegacy);
|
|
367
|
-
exports.ApiAuthMethodsLegacy = ApiAuthMethodsLegacy;
|
|
368
|
-
//# sourceMappingURL=api-auth-methods-legacy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-auth-methods-legacy.js","sourceRoot":"","sources":["../../../../../src/apis/codiac-api/common/security/api-auth-methods-legacy.ts"],"names":[],"mappings":";;;;;AAAA,6BAA6B;AAC7B,yCAAuC;AACvC,iCAAiE;AAEjE,gEAAgE;AAChE,4DAA2F;AAE3F,gDAAgD;AAEhD,wDAAmD;AAEnD,qDAAiD;AACjD,iDAA6C;AAI7C;qGACqG;AAE9F,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAO/B,MAAM;IACN,+JAA+J;IAC/J,qNAAqN;IACrN,MAAM;IACN,gFAAgF;IAChF,0CAA0C;IAC1C,wRAAwR;IACxR,IAAI;IAEJ,YAAoB,IAAmB,EAAU,MAAqB;QAAlD,SAAI,GAAJ,IAAI,CAAe;QAAU,WAAM,GAAN,MAAM,CAAe;QAS5D,kBAAa,GAAkB,IAAI,8BAAa,EAAE,CAAC;QAR3D,IAAI,CAAC,eAAe,GAAG,sBAAoB,CAAC,kBAAkB,CAAC,CAAE,kNAAkN;IACrR,CAAC;IAAA,CAAC;IAWF;;;;;;;OAOG;IACU,YAAY,CAAC,KAAa,EAAE,QAAgB,EAAE,UAAmB;;YAC5E,OAAO,IAAI,OAAO,CAAsC,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;;gBAChF,IAAI;oBACF,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;oBAC5F,IAAI,GAAG,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAA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,uEAAuE;iBAC1F;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAI,MAAM,GAAG,IAAI,SAAS,CAAC,YAAY,CAAa,KAAK,EAAE,gCAAgC,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE,IAAI,MAAA,GAAG,CAAC,OAAO,mCAAI,8BAA8B,EAAE,EAAE,GAAG,CAAC,CAAC;oBACnK,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAQ,CAAC,CAAA;oBAClC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACjB;YACH,CAAC,CAAA,CAAC,CAAC;QACL,CAAC;KAAA;;AA9VD;;GAEG;AACI,uCAAkB,GAAG,eAAe,CAAC;AALjC,oBAAoB;IADhC,IAAA,sBAAU,GAAE;6CAiBe,+BAAa;GAhB5B,oBAAoB,CAiWhC;AAjWY,oDAAoB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** THIS IS A REDUNDANT COPY of the one in: auth-sdk/authentication-plugin.ts. */
|
|
2
|
-
export declare class AuthConstants {
|
|
3
|
-
/** The url segments prepended to all the auth endpoint routes. */
|
|
4
|
-
readonly ROUTE_PREFIX = "auth";
|
|
5
|
-
/** The default route for the login endpoint (unprefixed). */
|
|
6
|
-
readonly ROUTE_SUBPATH_LOGIN = "login";
|
|
7
|
-
/** The default route for the tenant registration endpoint (unprefixed). */
|
|
8
|
-
readonly ROUTE_SUBPATH_TENANT_REGISTER = "tenants";
|
|
9
|
-
/** The default route for the switch tenant endpoint (unprefixed). */
|
|
10
|
-
readonly ROUTE_SUBPATH_SWITCH_TENANT = "switch";
|
|
11
|
-
/** The default route for the token refresh endpoint (unprefixed). */
|
|
12
|
-
readonly ROUTE_SUBPATH_TOKEN_REFRESH = "refresh";
|
|
13
|
-
/** The default route for the WhoAmI endpoint (unprefixed). */
|
|
14
|
-
readonly ROUTE_SUBPATH_TOKEN_WHOAMI = "whoami";
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthConstants = void 0;
|
|
4
|
-
/** THIS IS A REDUNDANT COPY of the one in: auth-sdk/authentication-plugin.ts. */
|
|
5
|
-
class AuthConstants {
|
|
6
|
-
constructor() {
|
|
7
|
-
/** The url segments prepended to all the auth endpoint routes. */
|
|
8
|
-
this.ROUTE_PREFIX = "auth";
|
|
9
|
-
/** The default route for the login endpoint (unprefixed). */
|
|
10
|
-
this.ROUTE_SUBPATH_LOGIN = "login";
|
|
11
|
-
/** The default route for the tenant registration endpoint (unprefixed). */
|
|
12
|
-
this.ROUTE_SUBPATH_TENANT_REGISTER = "tenants";
|
|
13
|
-
/** The default route for the switch tenant endpoint (unprefixed). */
|
|
14
|
-
this.ROUTE_SUBPATH_SWITCH_TENANT = "switch";
|
|
15
|
-
/** The default route for the token refresh endpoint (unprefixed). */
|
|
16
|
-
this.ROUTE_SUBPATH_TOKEN_REFRESH = "refresh";
|
|
17
|
-
/** The default route for the WhoAmI endpoint (unprefixed). */
|
|
18
|
-
this.ROUTE_SUBPATH_TOKEN_WHOAMI = "whoami";
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.AuthConstants = AuthConstants;
|
|
22
|
-
//# sourceMappingURL=auth-constants.js.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as contracts from "@codiac.io/codiac-common/contracts";
|
|
2
|
-
import { AuthTenant, TenantUser } from "@codiac.io/codiac-common/security";
|
|
3
|
-
import { TokenHolder } from "./token-holder";
|
|
4
|
-
export interface IAuthClient {
|
|
5
|
-
/** Logs in remotely with the given credentials.
|
|
6
|
-
* Returns a valid token in the headers of the response
|
|
7
|
-
* and the user info in the body of the response.
|
|
8
|
-
* @param login The human readable unique identifier for the user.
|
|
9
|
-
* @param password the secret held for this particular user.
|
|
10
|
-
* @param tenantCode (optional) Unique identifier of the tenant to activate with this authentication.
|
|
11
|
-
*/
|
|
12
|
-
authenticate(login: string, password: string, tenantCode?: string): Promise<contracts.SingleResult<TokenHolder>>;
|
|
13
|
-
/** Provides the ability to extend an existing token.
|
|
14
|
-
* Returns failure for invalid or revoked tokens.
|
|
15
|
-
* Returns any errors encountered refreshing.
|
|
16
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
17
|
-
* */
|
|
18
|
-
refreshToken(currentToken: string): Promise<contracts.SingleResult<TokenHolder>>;
|
|
19
|
-
/** Retrieves the full account info for the current user (minus any passwords),
|
|
20
|
-
* including all tenant profiles.
|
|
21
|
-
* Returns failure for invalid or revoked tokens.
|
|
22
|
-
* Returns any errors encountered refreshing.
|
|
23
|
-
* NOTE: keeps the returned auth token in scope for this client instance.
|
|
24
|
-
* @param currentToken The JWT token returned in a prior request. */
|
|
25
|
-
whoAmI(currentToken: string): Promise<contracts.SingleResult<TenantUser>>;
|
|
26
|
-
/** Provides the ability to extend an existing token.
|
|
27
|
-
* Returns failure for invalid or revoked tokens.
|
|
28
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
29
|
-
* @param tenantCode Unique identifier of the tenant being switched to.
|
|
30
|
-
* Returns any errors encountered refreshing. */
|
|
31
|
-
switchTenant(currentToken: string, tenantCode: string): Promise<contracts.SingleResult<TokenHolder>>;
|
|
32
|
-
/** Declares a new organization in the toyhauler system.
|
|
33
|
-
* The given user account is made the administrator for that organization,
|
|
34
|
-
* and if the new user flag is given,
|
|
35
|
-
* the user account will get created.
|
|
36
|
-
* @param tenantName Human readable friendly title for the tenant. NOT used for system identification.
|
|
37
|
-
* @param newUser Flag to create a new user account with the given credentials.
|
|
38
|
-
* @param userName User to be the adminstrator for the new tenant.
|
|
39
|
-
* @param password Password for the given user (desired password if the newuser flag is set).
|
|
40
|
-
* @param tenantCode (optional) Desired unique identifier for the new tenant (if omitted one will be generated).
|
|
41
|
-
* @param currentToken The JWT token returned in a prior request.
|
|
42
|
-
* */
|
|
43
|
-
registerTenant(tenantName: string, newUser: boolean, userName: string, password: string, tenantCode?: string, currentToken?: string): Promise<contracts.SingleResult<AuthTenant>>;
|
|
44
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TenantUser } from "@codiac.io/codiac-common/security";
|
|
2
|
-
export declare class TokenHolder {
|
|
3
|
-
user: TenantUser;
|
|
4
|
-
token: string;
|
|
5
|
-
expiration: Date | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* @param user A user or principal (ie: tenantCode is optional)
|
|
8
|
-
* @param token The JWT returned by the auth api. If there's a tenantCode,
|
|
9
|
-
* then the token is a tenant-user token. Otherwise just a user token.
|
|
10
|
-
* @param expiration in GMT
|
|
11
|
-
*/
|
|
12
|
-
constructor(user: TenantUser, token: string, expiration: Date | undefined);
|
|
13
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TokenHolder = void 0;
|
|
4
|
-
class TokenHolder {
|
|
5
|
-
/**
|
|
6
|
-
* @param user A user or principal (ie: tenantCode is optional)
|
|
7
|
-
* @param token The JWT returned by the auth api. If there's a tenantCode,
|
|
8
|
-
* then the token is a tenant-user token. Otherwise just a user token.
|
|
9
|
-
* @param expiration in GMT
|
|
10
|
-
*/
|
|
11
|
-
constructor(user, token, expiration) {
|
|
12
|
-
this.user = user;
|
|
13
|
-
this.token = token;
|
|
14
|
-
this.expiration = expiration;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.TokenHolder = TokenHolder;
|
|
18
|
-
//# sourceMappingURL=token-holder.js.map
|