@codiac.io/codiac-cli 1.3.181 → 1.3.183
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 +1 -1
- package/dist/apis/codiac-api/gen/client.d.ts +5 -1
- package/dist/apis/codiac-api/gen/client.js +12 -0
- package/dist/apis/codiac-api/gen/client.js.map +1 -1
- package/dist/apis/codiac-api/gen/contracts/types.gen.d.ts +25 -0
- package/dist/apis/codiac-api/gen/contracts/types.gen.js.map +1 -1
- package/dist/apis/codiac-api/i-client.d.ts +4 -0
- package/dist/apis/codiac-api-nats/gen/client.d.ts +4 -0
- package/dist/apis/codiac-api-nats/gen/client.js +17 -1
- package/dist/apis/codiac-api-nats/gen/client.js.map +1 -1
- package/dist/apis/codiac-api-nats/gen/contracts/types.gen.d.ts +25 -0
- package/dist/apis/codiac-api-nats/gen/contracts/types.gen.js.map +1 -1
- package/dist/apis/codiac-relay/gen/client.d.ts +16 -3
- package/dist/apis/codiac-relay/gen/client.js +58 -1
- package/dist/apis/codiac-relay/gen/client.js.map +1 -1
- package/dist/apis/codiac-relay/gen/contracts/types.gen.d.ts +173 -7
- package/dist/apis/codiac-relay/gen/contracts/types.gen.js.map +1 -1
- package/dist/apis/codiac-relay/i-client.d.ts +8 -0
- package/dist/apis/codiac-relay-nats/gen/client.d.ts +15 -7
- package/dist/apis/codiac-relay-nats/gen/client.js +86 -19
- package/dist/apis/codiac-relay-nats/gen/client.js.map +1 -1
- package/dist/apis/codiac-relay-nats/gen/contracts/types.gen.d.ts +151 -15
- package/dist/apis/codiac-relay-nats/gen/contracts/types.gen.js +4 -4
- package/dist/apis/codiac-relay-nats/gen/contracts/types.gen.js.map +1 -1
- package/dist/apis/codiac-relay-nats/gen/contracts.ng.d.ts +6 -0
- package/dist/apis/codiac-relay-nats/gen/contracts.ng.js +1 -0
- package/dist/apis/codiac-relay-nats/gen/contracts.ng.js.map +1 -1
- package/dist/bootstrapper-for-api-clients.js +14 -2
- package/dist/bootstrapper-for-api-clients.js.map +1 -1
- package/dist/cli-common/built-in-cli-user-input.d.ts +2 -1
- package/dist/cli-common/built-in-cli-user-input.js +52 -1
- package/dist/cli-common/built-in-cli-user-input.js.map +1 -1
- package/dist/cli-common/entities/prompt-choice.d.ts +2 -7
- package/dist/cli-common/mock-ui.d.ts +2 -1
- package/dist/cli-common/mock-ui.js +3 -0
- package/dist/cli-common/mock-ui.js.map +1 -1
- package/dist/codiac-constants.d.ts +3 -0
- package/dist/codiac-constants.js +3 -0
- package/dist/codiac-constants.js.map +1 -1
- package/dist/command-base-enterprise.d.ts +23 -2
- package/dist/command-base-enterprise.js +82 -26
- package/dist/command-base-enterprise.js.map +1 -1
- package/dist/command-base-exec.js +4 -2
- package/dist/command-base-exec.js.map +1 -1
- package/dist/commands/asset/deploy.d.ts +2 -1
- package/dist/commands/asset/deploy.js +3 -2
- package/dist/commands/asset/deploy.js.map +1 -1
- package/dist/commands/asset/list.d.ts +26 -7
- package/dist/commands/asset/list.js +127 -112
- package/dist/commands/asset/list.js.map +1 -1
- package/dist/commands/asset/probe/create.d.ts +26 -5
- package/dist/commands/asset/probe/create.js +182 -164
- package/dist/commands/asset/probe/create.js.map +1 -1
- package/dist/commands/asset/recycle.js +3 -4
- package/dist/commands/asset/recycle.js.map +1 -1
- package/dist/commands/asset/undeploy.d.ts +24 -9
- package/dist/commands/asset/undeploy.js +162 -161
- package/dist/commands/asset/undeploy.js.map +1 -1
- package/dist/commands/asset/view.js +1 -1
- package/dist/commands/asset/view.js.map +1 -1
- package/dist/commands/asset/volume/create.d.ts +24 -13
- package/dist/commands/asset/volume/create.js +153 -158
- package/dist/commands/asset/volume/create.js.map +1 -1
- package/dist/commands/asset/volume/delete.d.ts +21 -7
- package/dist/commands/asset/volume/delete.js +107 -101
- package/dist/commands/asset/volume/delete.js.map +1 -1
- package/dist/commands/asset/volume/list.d.ts +23 -9
- package/dist/commands/asset/volume/list.js +74 -54
- package/dist/commands/asset/volume/list.js.map +1 -1
- package/dist/commands/cabinet/cluster/attach.d.ts +32 -0
- package/dist/commands/cabinet/cluster/attach.js +144 -0
- package/dist/commands/cabinet/cluster/attach.js.map +1 -0
- package/dist/commands/cabinet/create.d.ts +1 -0
- package/dist/commands/cabinet/create.js +5 -1
- package/dist/commands/cabinet/create.js.map +1 -1
- package/dist/commands/cabinet/list.d.ts +27 -6
- package/dist/commands/cabinet/list.js +130 -121
- package/dist/commands/cabinet/list.js.map +1 -1
- package/dist/commands/cabinet/obliterate.d.ts +1 -0
- package/dist/commands/cabinet/obliterate.js +5 -1
- package/dist/commands/cabinet/obliterate.js.map +1 -1
- package/dist/commands/cabinet/restore.d.ts +36 -0
- package/dist/commands/cabinet/restore.js +186 -0
- package/dist/commands/cabinet/restore.js.map +1 -0
- package/dist/commands/cluster/agent/configure.d.ts +47 -0
- package/dist/commands/cluster/agent/configure.js +320 -0
- package/dist/commands/cluster/agent/configure.js.map +1 -0
- package/dist/commands/cluster/agent/install.d.ts +32 -0
- package/dist/commands/cluster/agent/install.js +152 -0
- package/dist/commands/cluster/agent/install.js.map +1 -0
- package/dist/commands/cluster/agent/uninstall.d.ts +29 -0
- package/dist/commands/cluster/agent/uninstall.js +130 -0
- package/dist/commands/cluster/agent/uninstall.js.map +1 -0
- package/dist/commands/cluster/bootstrap.d.ts +50 -0
- package/dist/commands/cluster/bootstrap.js +310 -0
- package/dist/commands/cluster/bootstrap.js.map +1 -0
- package/dist/commands/cluster/connect.d.ts +0 -5
- package/dist/commands/cluster/connect.js +1 -26
- package/dist/commands/cluster/connect.js.map +1 -1
- package/dist/commands/cluster/install.d.ts +45 -0
- package/dist/commands/cluster/install.js +224 -0
- package/dist/commands/cluster/install.js.map +1 -0
- package/dist/commands/cluster/stack/capture.js +0 -2
- package/dist/commands/cluster/stack/capture.js.map +1 -1
- package/dist/commands/cluster/stack/install.d.ts +40 -0
- package/dist/commands/cluster/stack/install.js +196 -0
- package/dist/commands/cluster/stack/install.js.map +1 -0
- package/dist/commands/cluster/start.d.ts +0 -5
- package/dist/commands/cluster/start.js +1 -27
- package/dist/commands/cluster/start.js.map +1 -1
- package/dist/commands/cluster/stop.d.ts +0 -5
- package/dist/commands/cluster/stop.js +1 -27
- package/dist/commands/cluster/stop.js.map +1 -1
- package/dist/commands/config/add.d.ts +9 -11
- package/dist/commands/config/add.js +59 -125
- package/dist/commands/config/add.js.map +1 -1
- package/dist/commands/config/delete.d.ts +22 -11
- package/dist/commands/config/delete.js +28 -83
- package/dist/commands/config/delete.js.map +1 -1
- package/dist/commands/config/deploy.d.ts +26 -8
- package/dist/commands/config/deploy.js +169 -198
- package/dist/commands/config/deploy.js.map +1 -1
- package/dist/commands/config/import.d.ts +27 -22
- package/dist/commands/config/import.js +222 -253
- package/dist/commands/config/import.js.map +1 -1
- package/dist/commands/config/settings/get.d.ts +25 -14
- package/dist/commands/config/settings/get.js +30 -123
- package/dist/commands/config/settings/get.js.map +1 -1
- package/dist/commands/config/view.d.ts +26 -6
- package/dist/commands/config/view.js +112 -95
- package/dist/commands/config/view.js.map +1 -1
- package/dist/commands/csp/logout.d.ts +23 -6
- package/dist/commands/csp/logout.js +86 -63
- package/dist/commands/csp/logout.js.map +1 -1
- package/dist/commands/deploy.d.ts +31 -14
- package/dist/commands/deploy.js +264 -385
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/enterprise/list.d.ts +22 -4
- package/dist/commands/enterprise/list.js +97 -67
- package/dist/commands/enterprise/list.js.map +1 -1
- package/dist/commands/env/add.d.ts +26 -7
- package/dist/commands/env/add.js +182 -179
- package/dist/commands/env/add.js.map +1 -1
- package/dist/commands/environment/cluster/attach.d.ts +1 -0
- package/dist/commands/environment/cluster/attach.js +5 -1
- package/dist/commands/environment/cluster/attach.js.map +1 -1
- package/dist/commands/environment/cluster/detach.d.ts +1 -0
- package/dist/commands/environment/cluster/detach.js +5 -1
- package/dist/commands/environment/cluster/detach.js.map +1 -1
- package/dist/commands/environment/create.d.ts +1 -0
- package/dist/commands/environment/create.js +5 -1
- package/dist/commands/environment/create.js.map +1 -1
- package/dist/commands/environment/delete.d.ts +39 -0
- package/dist/commands/environment/delete.js +135 -0
- package/dist/commands/environment/delete.js.map +1 -0
- package/dist/commands/environment/list.d.ts +28 -9
- package/dist/commands/environment/list.js +128 -167
- package/dist/commands/environment/list.js.map +1 -1
- package/dist/commands/host/map.d.ts +29 -19
- package/dist/commands/host/map.js +263 -324
- package/dist/commands/host/map.js.map +1 -1
- package/dist/commands/imageRegistry/capture.d.ts +12 -11
- package/dist/commands/imageRegistry/capture.js +49 -113
- package/dist/commands/imageRegistry/capture.js.map +1 -1
- package/dist/commands/imageRegistry/forget.d.ts +12 -11
- package/dist/commands/imageRegistry/forget.js +53 -114
- package/dist/commands/imageRegistry/forget.js.map +1 -1
- package/dist/commands/imageRegistry/pullSecret/set.d.ts +21 -11
- package/dist/commands/imageRegistry/pullSecret/set.js +184 -278
- package/dist/commands/imageRegistry/pullSecret/set.js.map +1 -1
- package/dist/commands/imageRegistry/pullSecret/unset.d.ts +19 -11
- package/dist/commands/imageRegistry/pullSecret/unset.js +117 -190
- package/dist/commands/imageRegistry/pullSecret/unset.js.map +1 -1
- package/dist/commands/images/add.d.ts +19 -6
- package/dist/commands/images/add.js +63 -53
- package/dist/commands/images/add.js.map +1 -1
- package/dist/commands/kit/create.d.ts +22 -10
- package/dist/commands/kit/create.js +119 -121
- package/dist/commands/kit/create.js.map +1 -1
- package/dist/commands/logout.d.ts +21 -5
- package/dist/commands/logout.js +44 -25
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/noc/cluster/create.js +22 -10
- package/dist/commands/noc/cluster/create.js.map +1 -1
- package/dist/commands/noc/cluster/credentials-set.d.ts +38 -0
- package/dist/commands/noc/cluster/credentials-set.js +174 -0
- package/dist/commands/noc/cluster/credentials-set.js.map +1 -0
- package/dist/commands/noc/cluster/define.d.ts +46 -0
- package/dist/commands/noc/cluster/define.js +305 -0
- package/dist/commands/noc/cluster/define.js.map +1 -0
- package/dist/commands/noc/cluster/deinit.d.ts +22 -5
- package/dist/commands/noc/cluster/deinit.js +99 -106
- package/dist/commands/noc/cluster/deinit.js.map +1 -1
- package/dist/commands/noc/cluster/forget.js +2 -4
- package/dist/commands/noc/cluster/forget.js.map +1 -1
- package/dist/commands/noc/cluster/grant.d.ts +20 -11
- package/dist/commands/noc/cluster/grant.js +94 -132
- package/dist/commands/noc/cluster/grant.js.map +1 -1
- package/dist/commands/noc/cluster/init.d.ts +25 -7
- package/dist/commands/noc/cluster/init.js +121 -133
- package/dist/commands/noc/cluster/init.js.map +1 -1
- package/dist/commands/noc/cluster/journal.d.ts +0 -5
- package/dist/commands/noc/cluster/journal.js +1 -26
- package/dist/commands/noc/cluster/journal.js.map +1 -1
- package/dist/commands/noc/cluster/list.d.ts +23 -5
- package/dist/commands/noc/cluster/list.js +107 -111
- package/dist/commands/noc/cluster/list.js.map +1 -1
- package/dist/commands/noc/cluster/restore.d.ts +36 -0
- package/dist/commands/noc/cluster/restore.js +196 -0
- package/dist/commands/noc/cluster/restore.js.map +1 -0
- package/dist/commands/portal.d.ts +21 -5
- package/dist/commands/portal.js +37 -36
- package/dist/commands/portal.js.map +1 -1
- package/dist/commands/secretStore/capture.d.ts +13 -11
- package/dist/commands/secretStore/capture.js +63 -123
- package/dist/commands/secretStore/capture.js.map +1 -1
- package/dist/commands/secretStore/forget.d.ts +13 -11
- package/dist/commands/secretStore/forget.js +55 -111
- package/dist/commands/secretStore/forget.js.map +1 -1
- package/dist/commands/shell/init.d.ts +15 -0
- package/dist/commands/shell/init.js +96 -0
- package/dist/commands/shell/init.js.map +1 -0
- package/dist/commands/snapshot/deploy.d.ts +22 -42
- package/dist/commands/snapshot/deploy.js +173 -269
- package/dist/commands/snapshot/deploy.js.map +1 -1
- package/dist/commands/snapshot/list.d.ts +26 -5
- package/dist/commands/snapshot/list.js +116 -109
- package/dist/commands/snapshot/list.js.map +1 -1
- package/dist/commands/tenant/create.d.ts +18 -13
- package/dist/commands/tenant/create.js +69 -69
- package/dist/commands/tenant/create.js.map +1 -1
- package/dist/commands/tenant/switch.d.ts +18 -12
- package/dist/commands/tenant/switch.js +65 -59
- package/dist/commands/tenant/switch.js.map +1 -1
- package/dist/commands/whereami.d.ts +18 -8
- package/dist/commands/whereami.js +67 -102
- package/dist/commands/whereami.js.map +1 -1
- package/dist/commands/whoami.d.ts +19 -3
- package/dist/commands/whoami.js +44 -13
- package/dist/commands/whoami.js.map +1 -1
- package/dist/ops/i-user-input-provider.d.ts +20 -1
- package/dist/ops/i-user-input-provider.js.map +1 -1
- package/dist/ops/test/mock-ui.d.ts +2 -1
- package/dist/ops/test/mock-ui.js +3 -0
- package/dist/ops/test/mock-ui.js.map +1 -1
- package/dist/ops/throwing-user-input-provider.d.ts +2 -1
- package/dist/ops/throwing-user-input-provider.js +3 -0
- package/dist/ops/throwing-user-input-provider.js.map +1 -1
- package/dist/relay/relay-container.js +1 -1
- package/dist/sdk-adapters/other/other-cluster-configurator.d.ts +24 -0
- package/dist/sdk-adapters/other/other-cluster-configurator.js +80 -0
- package/dist/sdk-adapters/other/other-cluster-configurator.js.map +1 -0
- package/dist/sdk-adapters/other/other-login-configurator.d.ts +24 -0
- package/dist/sdk-adapters/other/other-login-configurator.js +68 -0
- package/dist/sdk-adapters/other/other-login-configurator.js.map +1 -0
- package/dist/uilogic/cloud-resource-configurator-factory.js +12 -0
- package/dist/uilogic/cloud-resource-configurator-factory.js.map +1 -1
- package/dist/uilogic/lrp-watcher-predef.d.ts +2 -1
- package/dist/uilogic/lrp-watcher-predef.js +31 -17
- package/dist/uilogic/lrp-watcher-predef.js.map +1 -1
- package/dist/uilogic/lrp-watcher-utils.d.ts +2 -0
- package/dist/uilogic/lrp-watcher-utils.js +2 -0
- package/dist/uilogic/lrp-watcher-utils.js.map +1 -1
- package/dist/uilogic/rootmap-ui-utils.d.ts +18 -1
- package/dist/uilogic/rootmap-ui-utils.js +30 -0
- package/dist/uilogic/rootmap-ui-utils.js.map +1 -1
- package/dist/uilogic/tenant-contextualizer.js +11 -1
- package/dist/uilogic/tenant-contextualizer.js.map +1 -1
- package/dist/user-context-loader.d.ts +12 -7
- package/dist/user-context-loader.js +89 -43
- package/dist/user-context-loader.js.map +1 -1
- package/oclif.manifest.json +3984 -1453
- package/package.json +2 -2
- package/dist/commands/noc/cluster/recreate.d.ts +0 -28
- package/dist/commands/noc/cluster/recreate.js +0 -197
- package/dist/commands/noc/cluster/recreate.js.map +0 -1
|
@@ -255,6 +255,12 @@ export type AssetVersionState = {
|
|
|
255
255
|
usage: AssetResourcesUsage;
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
|
+
export type AssetDeployRequestAsync = {
|
|
259
|
+
spec: DeployRequest;
|
|
260
|
+
socketId: string;
|
|
261
|
+
correlationId?: string;
|
|
262
|
+
callbackUrl?: string;
|
|
263
|
+
};
|
|
258
264
|
export type AssetWhereRequest = {
|
|
259
265
|
asset: string;
|
|
260
266
|
/**
|
|
@@ -1436,6 +1442,8 @@ export type CabinetSelector = {
|
|
|
1436
1442
|
enterprise: string;
|
|
1437
1443
|
environment?: string;
|
|
1438
1444
|
cabinet?: string;
|
|
1445
|
+
/** When provided, resolves the infrx cabinet for the named cluster, eliminating the need for callers to know the cabinet naming convention. Takes precedence over environment and cabinet if present. */
|
|
1446
|
+
clusterName?: string;
|
|
1439
1447
|
/**
|
|
1440
1448
|
* Searches cabinets with "OR" logic
|
|
1441
1449
|
* (ie: returns cabinet records that contain ANY of the tags specified in this property)
|
|
@@ -1504,6 +1512,10 @@ export type ClusterCaptureRequest = {
|
|
|
1504
1512
|
awsRegion?: string | undefined;
|
|
1505
1513
|
ingressDef?: Partial<Pick<IngressDef, "internal" | "disableExternal" | "ip_name" | "ingressIp">>;
|
|
1506
1514
|
};
|
|
1515
|
+
export type ClusterDefineRequest = {
|
|
1516
|
+
/** The cluster metadata record to create or update. Must include a name. */
|
|
1517
|
+
spec?: ClusterDef;
|
|
1518
|
+
};
|
|
1507
1519
|
export type ClusterConnectionRequest = {
|
|
1508
1520
|
cluster?: string;
|
|
1509
1521
|
cabinet?: {
|
|
@@ -3866,6 +3878,8 @@ export type DeploymentCriteria = {
|
|
|
3866
3878
|
export type DeployRequest = {
|
|
3867
3879
|
target: CabinetSelector;
|
|
3868
3880
|
assets: Array<AssetVersion>;
|
|
3881
|
+
/** When true, waits for all chart/asset startup to complete before returning. Defaults to false. */
|
|
3882
|
+
wait?: boolean | undefined;
|
|
3869
3883
|
};
|
|
3870
3884
|
export type DnsConnectionRequest = {
|
|
3871
3885
|
domain?: string;
|
|
@@ -5178,18 +5192,13 @@ export type ExecuteClusterIngressDeleteResponse = {
|
|
|
5178
5192
|
error?: _Error;
|
|
5179
5193
|
validation?: IValidationStatus;
|
|
5180
5194
|
};
|
|
5181
|
-
export type ExecuteClusterDeinitRequest = ExecuteClusterIngressDeleteRequest;
|
|
5182
|
-
export type ExecuteClusterDeinitRequestAsync = {
|
|
5183
|
-
spec: ExecuteClusterDeinitRequest;
|
|
5184
|
-
socketId: string;
|
|
5185
|
-
correlationId?: string;
|
|
5186
|
-
callbackUrl?: string;
|
|
5187
|
-
};
|
|
5188
5195
|
export type ExecuteClusterInitRequest = {
|
|
5189
5196
|
clusterName?: string;
|
|
5190
5197
|
ingressDef?: Partial<IngressDef>;
|
|
5191
5198
|
stackName?: string | undefined;
|
|
5192
5199
|
stackVersion?: string | undefined;
|
|
5200
|
+
/** When true, waits for all chart/asset startup to complete before returning. Defaults to false. */
|
|
5201
|
+
wait?: boolean | undefined;
|
|
5193
5202
|
};
|
|
5194
5203
|
export type ExecuteClusterInitRequestAsync = {
|
|
5195
5204
|
spec: ExecuteClusterInitRequest;
|
|
@@ -5197,6 +5206,115 @@ export type ExecuteClusterInitRequestAsync = {
|
|
|
5197
5206
|
correlationId?: string;
|
|
5198
5207
|
callbackUrl?: string;
|
|
5199
5208
|
};
|
|
5209
|
+
export type ClusterStackInstallRequestAsync = ExecuteClusterInitRequestAsync;
|
|
5210
|
+
export type CodiacAgentValues = {
|
|
5211
|
+
fullnameOverride?: string;
|
|
5212
|
+
configMap?: {
|
|
5213
|
+
create: boolean;
|
|
5214
|
+
data: Record<string, string>;
|
|
5215
|
+
};
|
|
5216
|
+
env?: Record<string, string>;
|
|
5217
|
+
keel?: {
|
|
5218
|
+
images: Array<{
|
|
5219
|
+
repository: string;
|
|
5220
|
+
tag: string;
|
|
5221
|
+
}>;
|
|
5222
|
+
policy: string;
|
|
5223
|
+
pollSchedule: string;
|
|
5224
|
+
trigger: string;
|
|
5225
|
+
};
|
|
5226
|
+
secret?: {
|
|
5227
|
+
create: boolean;
|
|
5228
|
+
creds: Array<{
|
|
5229
|
+
name: string;
|
|
5230
|
+
natsJwt: string;
|
|
5231
|
+
nkeySeed: string;
|
|
5232
|
+
}>;
|
|
5233
|
+
};
|
|
5234
|
+
};
|
|
5235
|
+
export type CodiacKeelValues = {
|
|
5236
|
+
image: {
|
|
5237
|
+
repository: string;
|
|
5238
|
+
tag: string;
|
|
5239
|
+
pullPolicy: string;
|
|
5240
|
+
};
|
|
5241
|
+
helmProvider?: {
|
|
5242
|
+
enabled: boolean;
|
|
5243
|
+
version: string;
|
|
5244
|
+
};
|
|
5245
|
+
keel?: {
|
|
5246
|
+
images: Array<{
|
|
5247
|
+
repository: string;
|
|
5248
|
+
tag: string;
|
|
5249
|
+
}>;
|
|
5250
|
+
policy: string;
|
|
5251
|
+
pollSchedule: string;
|
|
5252
|
+
trigger: string;
|
|
5253
|
+
};
|
|
5254
|
+
nodeSelector?: Record<string, string>;
|
|
5255
|
+
rbac?: {
|
|
5256
|
+
enabled?: boolean;
|
|
5257
|
+
role?: {
|
|
5258
|
+
create: boolean;
|
|
5259
|
+
};
|
|
5260
|
+
serviceAccount?: {
|
|
5261
|
+
create: boolean;
|
|
5262
|
+
};
|
|
5263
|
+
};
|
|
5264
|
+
resources?: {
|
|
5265
|
+
limits?: {
|
|
5266
|
+
cpu?: string;
|
|
5267
|
+
};
|
|
5268
|
+
};
|
|
5269
|
+
};
|
|
5270
|
+
export type CodiacInClusterSettings = {
|
|
5271
|
+
"codiac-cluster-agent-chart"?: CodiacAgentValues;
|
|
5272
|
+
keel?: CodiacKeelValues;
|
|
5273
|
+
};
|
|
5274
|
+
export type CodiacInClusterSettingsOverride = Partial<CodiacInClusterSettings>;
|
|
5275
|
+
export type ClusterAgentInstallRequestAsync = {
|
|
5276
|
+
spec: ClusterAgentOperationRequest;
|
|
5277
|
+
socketId: string;
|
|
5278
|
+
correlationId?: string;
|
|
5279
|
+
callbackUrl?: string;
|
|
5280
|
+
};
|
|
5281
|
+
export type ClusterAgentUninstallRequestAsync = ClusterAgentInstallRequestAsync;
|
|
5282
|
+
export type ClusterAgentConfigureMode = "overlay" | "replace";
|
|
5283
|
+
export type ClusterAgentConfigureRequest = {
|
|
5284
|
+
clusterName: string;
|
|
5285
|
+
mode: ClusterAgentConfigureMode;
|
|
5286
|
+
settings?: CodiacInClusterSettingsOverride;
|
|
5287
|
+
};
|
|
5288
|
+
export type ClusterAgentConfigureRequestAsync = {
|
|
5289
|
+
spec: ClusterAgentConfigureRequest;
|
|
5290
|
+
socketId: string;
|
|
5291
|
+
correlationId?: string;
|
|
5292
|
+
callbackUrl?: string;
|
|
5293
|
+
};
|
|
5294
|
+
export type ClusterAgentConfigReadFormat = "json" | "yaml";
|
|
5295
|
+
export type ClusterAgentConfigReadRequest = {
|
|
5296
|
+
spec: ClusterAgentOperationRequest;
|
|
5297
|
+
socketId: string;
|
|
5298
|
+
correlationId?: string;
|
|
5299
|
+
callbackUrl?: string;
|
|
5300
|
+
/** The desired format for the settings data in the response. Defaults to "json". */
|
|
5301
|
+
format?: ClusterAgentConfigReadFormat;
|
|
5302
|
+
};
|
|
5303
|
+
export type ClusterAgentOperationRequest = {
|
|
5304
|
+
clusterName?: string;
|
|
5305
|
+
version?: string;
|
|
5306
|
+
settings?: CodiacInClusterSettingsOverride;
|
|
5307
|
+
};
|
|
5308
|
+
export interface ExecuteClusterDeinitRequest {
|
|
5309
|
+
clusterName?: string | undefined;
|
|
5310
|
+
}
|
|
5311
|
+
export interface ExecuteClusterDeinitRequestAsync {
|
|
5312
|
+
spec: ExecuteClusterDeinitRequest;
|
|
5313
|
+
socketId: string;
|
|
5314
|
+
correlationId?: string;
|
|
5315
|
+
callbackUrl?: string;
|
|
5316
|
+
}
|
|
5317
|
+
export type ClusterStackUninstallRequestAsync = ExecuteClusterDeinitRequestAsync;
|
|
5200
5318
|
export type ExecuteClusterInitResponse = {
|
|
5201
5319
|
ingressDef?: IngressDef;
|
|
5202
5320
|
success: boolean;
|
|
@@ -15540,6 +15658,10 @@ export type ZombiePeriodDeleteWhereData = {
|
|
|
15540
15658
|
query?: never;
|
|
15541
15659
|
url: '/local/zombie-periods(/)';
|
|
15542
15660
|
};
|
|
15661
|
+
export type WorkUnitAck = {
|
|
15662
|
+
correlationId: string;
|
|
15663
|
+
taskMap: TaskMap;
|
|
15664
|
+
};
|
|
15543
15665
|
export type ZombiePeriodDeleteWhereResponses = {
|
|
15544
15666
|
200: BatchResult_ZombiePeriod_;
|
|
15545
15667
|
};
|
|
@@ -15869,6 +15991,50 @@ export type ClientOptions = {
|
|
|
15869
15991
|
};
|
|
15870
15992
|
/** Indicates which authentication flow is to be used with the given credentials. */
|
|
15871
15993
|
export type CredentialType = "client_credentials" | "username_password" | "refresh_token";
|
|
15994
|
+
export type CabinetRestoreItem = {
|
|
15995
|
+
cabinet: string;
|
|
15996
|
+
enterprise: string;
|
|
15997
|
+
environment: string;
|
|
15998
|
+
};
|
|
15999
|
+
export type CabinetRestoreRequest = {
|
|
16000
|
+
cabinets?: Array<CabinetRestoreItem>;
|
|
16001
|
+
/** Restore all cabinets on this cluster. Mutually exclusive with cabinets. */
|
|
16002
|
+
cluster?: string;
|
|
16003
|
+
/** Optional enterprise scope when using cluster shorthand. */
|
|
16004
|
+
enterprise?: string;
|
|
16005
|
+
correlationId?: string;
|
|
16006
|
+
socketId?: string;
|
|
16007
|
+
callbackUrl?: string;
|
|
16008
|
+
};
|
|
16009
|
+
export type ClusterRestoreRequest = {
|
|
16010
|
+
/** Name of the cluster to restore. Must reference an existing ClusterDef. */
|
|
16011
|
+
clusterName?: string;
|
|
16012
|
+
/** When true, skips cloud infrastructure provisioning. */
|
|
16013
|
+
skipProvision?: boolean;
|
|
16014
|
+
/** When true, skips Codiac agent installation (also skips infrx and cabinets). */
|
|
16015
|
+
skipAgent?: boolean;
|
|
16016
|
+
/** When true, skips infrx stack installation (also skips cabinets). */
|
|
16017
|
+
skipInfrx?: boolean;
|
|
16018
|
+
/** When true, skips SDLC cabinet restore. */
|
|
16019
|
+
skipCabinets?: boolean;
|
|
16020
|
+
/** Optional: scope cabinet restore to a single enterprise. */
|
|
16021
|
+
enterprise?: string;
|
|
16022
|
+
socketId?: string;
|
|
16023
|
+
correlationId?: string;
|
|
16024
|
+
callbackUrl?: string;
|
|
16025
|
+
};
|
|
16026
|
+
export type OtherClusterCredentialsSetRequest = {
|
|
16027
|
+
/** Name of the ClusterDef to associate these credentials with. */
|
|
16028
|
+
clusterName?: string;
|
|
16029
|
+
/** Raw kubeconfig YAML (single-context or multi-context). */
|
|
16030
|
+
kubeconfigYaml?: string;
|
|
16031
|
+
/**
|
|
16032
|
+
* Name of the context to extract from a multi-context kubeconfig.
|
|
16033
|
+
* Required when the file contains more than one context.
|
|
16034
|
+
* Ignored (but validated if provided) when there is only one context.
|
|
16035
|
+
*/
|
|
16036
|
+
contextName?: string;
|
|
16037
|
+
};
|
|
15872
16038
|
/** Indicates which authentication flow is to be used with the given credentials. */
|
|
15873
16039
|
export declare const CredentialType: {
|
|
15874
16040
|
readonly client_credentials: "client_credentials";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../../../../src/apis/codiac-relay/gen/contracts/types.gen.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AA8GxC,QAAA,eAAe,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAiDE,QAAA,iBAAiB,GAAG;IAC7B,aAAa,EAAE,eAAe;IAC9B,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,cAAc;IAC5B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;CAClB,CAAC;AAwEX;;GAEG;AACU,QAAA,KAAK,GAAG;IACjB,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,GAAG,EAAE,GAAG;CACF,CAAC;AA8BX;;GAEG;AACU,QAAA,QAAQ,GAAG;IACpB,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,IAAI;IACR,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,IAAI;IACR,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,IAAI;IACR,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,IAAI;IACR,CAAC,EAAE,GAAG;CACA,CAAC;AA8CE,QAAA,cAAc,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;CACZ,CAAC;
|
|
1
|
+
{"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../../../../src/apis/codiac-relay/gen/contracts/types.gen.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AA8GxC,QAAA,eAAe,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAiDE,QAAA,iBAAiB,GAAG;IAC7B,aAAa,EAAE,eAAe;IAC9B,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,cAAc;IAC5B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;CAClB,CAAC;AAwEX;;GAEG;A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;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACF,CAAC;AAIE,QAAA,IAAI,GAAG;IAChB,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;CACE,CAAC;AAynIX,oFAAoF;AACvE,QAAA,cAAc,GAAG;IAC1B,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;CACxB,CAAC"}
|
|
@@ -758,9 +758,14 @@ export interface IOtherOperations {
|
|
|
758
758
|
assetStatus(request: Contracts.AssetStatusRequest, options?: IRepoOptions): Promise<BatchResult<Contracts.AssetStatus>>;
|
|
759
759
|
/** Shows the cabinets to which the given asset is currently deployed and which version is where. */
|
|
760
760
|
assetWhere(request: Contracts.AssetWhereRequest, options?: IRepoOptions): Promise<ListResult<Contracts.CabinetAssetVersion>>;
|
|
761
|
+
/** Creates or updates a ClusterDef metadata record without touching any physical cloud infrastructure. */
|
|
762
|
+
clusterDefine(request: Contracts.ClusterDefineRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.ClusterDef>>;
|
|
761
763
|
/** Creates a new record in Codiac for a cluster that already physically exists in a cloud subscription. */
|
|
762
764
|
clusterCapture(request: Contracts.ExecuteClusterInitRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.ClusterDef>>;
|
|
763
765
|
clusterCreateAsync(request: Contracts.CreateClusterRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.CreateClusterAck>>;
|
|
766
|
+
clusterRestoreAsync(request: Contracts.ClusterRestoreRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
767
|
+
/** Registers connection credentials for a self-managed ("other") cluster. */
|
|
768
|
+
otherClusterCredentialsSet(request: Contracts.OtherClusterCredentialsSetRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.ClusterDef>>;
|
|
764
769
|
clusterDeinit(request: Contracts.ExecuteClusterDeinitRequestAsync, options?: IRepoOptions): Promise<Contracts.ExecuteClusterIngressDeleteResponse>;
|
|
765
770
|
clusterInit(request: Contracts.ExecuteClusterInitRequestAsync, options?: IRepoOptions): Promise<Contracts.ExecuteClusterInitResponse>;
|
|
766
771
|
/** Authenticates with the given cloud service provider using the given credentials or, if none provided, using the credentials cached for the given csp. */
|
|
@@ -859,6 +864,9 @@ export interface IOtherOperations {
|
|
|
859
864
|
postExecuteDeployConfigsFor(request: Contracts.ExecuteDeployConfigsForRequest, options?: IRepoOptions): Promise<Contracts.ExecuteDeployConfigsForResponse>;
|
|
860
865
|
/** (generated operationId) */
|
|
861
866
|
postExecuteDeployIngressFor(request: Contracts.ExecuteDeployIngressForAssetsRequest, options?: IRepoOptions): Promise<Contracts.ExecuteDeployIngressForAssetsResponse>;
|
|
867
|
+
assetDeploy(request: Contracts.AssetDeployRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
868
|
+
/** Restores one or more cabinets to their cluster: attaches, creates the k8s namespace, and deploys the stamped version if one exists. */
|
|
869
|
+
cabinetRestore(request: Contracts.CabinetRestoreRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
862
870
|
/** (generated operationId) */
|
|
863
871
|
postExecuteDeployment(request: Contracts.DeployRequest, options?: IRepoOptions): Promise<BatchResult<Contracts.IPartialAsset>>;
|
|
864
872
|
/** (generated operationId) */
|
|
@@ -4,13 +4,12 @@ import { interfaces } from "inversify";
|
|
|
4
4
|
import { Buffer } from "buffer";
|
|
5
5
|
import { IRepoOptions, IBetterLogger } from "@codiac.io/codiac-common";
|
|
6
6
|
import { ListResult, BatchResult, SingleResult, PatchSpecForOne, PatchSpecForMany, IdSpecFor } from "@codiac.io/codiac-common/contracts";
|
|
7
|
-
import { TokenCreds } from "@codiac.io/codiac-messaging/dist/contracts";
|
|
8
7
|
import { RelayNatsClientConfig } from "./config";
|
|
9
8
|
import { UpdatePartialWhereRequest, IThrowingRepoOptions } from "../common/types";
|
|
10
9
|
import * as Contracts from './contracts';
|
|
11
10
|
import { IStackableNatsClient } from "../../codiac-api/i-client";
|
|
12
11
|
import { TokenUtils } from "../common/token-utils";
|
|
13
|
-
import { IStreamingConnector } from "@codiac.io/codiac-messaging";
|
|
12
|
+
import { IStreamingConnector, TokenCreds } from "@codiac.io/codiac-messaging";
|
|
14
13
|
export type NatsRequestOptions = {
|
|
15
14
|
requestTimeoutInMs: number;
|
|
16
15
|
};
|
|
@@ -42,7 +41,7 @@ export declare class RelayNatsClient implements /* ICodiacClient, */ IStackableN
|
|
|
42
41
|
isExpired(token: string, throwOnError?: boolean): boolean;
|
|
43
42
|
/** Sets the user context to impersonate in requests made to the api. */
|
|
44
43
|
setUserToken(token: string): void;
|
|
45
|
-
connect(): Promise<string>;
|
|
44
|
+
connect(): Promise<string | undefined>;
|
|
46
45
|
isConnected(): boolean;
|
|
47
46
|
disconnect(): Promise<void>;
|
|
48
47
|
/** Disregards any instances and checks the underlying connection store
|
|
@@ -862,19 +861,30 @@ declare class OtherOperations {
|
|
|
862
861
|
assetStatus(request: Contracts.AssetStatusRequest, options?: IRepoOptions): Promise<BatchResult<Contracts.AssetStatus>>;
|
|
863
862
|
/** Shows the cabinets to which the given asset is currently deployed and which version is where. */
|
|
864
863
|
assetWhere(request: Contracts.AssetWhereRequest, options?: IRepoOptions): Promise<ListResult<Contracts.CabinetAssetVersion>>;
|
|
864
|
+
/** Creates or updates a ClusterDef metadata record without touching any physical cloud infrastructure. */
|
|
865
|
+
clusterDefine(request: Contracts.ClusterDefineRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.ClusterDef>>;
|
|
865
866
|
/** Creates a new record in Codiac for a cluster that already physically exists in a cloud subscription. */
|
|
866
867
|
clusterCapture(request: Contracts.ClusterCaptureRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.ClusterDef>>;
|
|
867
868
|
clusterCreateAsync(request: Contracts.CreateClusterRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.CreateClusterAck>>;
|
|
869
|
+
clusterRestoreAsync(request: Contracts.ClusterRestoreRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
870
|
+
otherClusterCredentialsSet(request: Contracts.OtherClusterCredentialsSetRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.ClusterDef>>;
|
|
868
871
|
clusterDeinit(request: Contracts.ExecuteClusterDeinitRequestAsync, options?: IRepoOptions): Promise<Contracts.ExecuteClusterIngressDeleteResponse>;
|
|
869
872
|
clusterInit(request: Contracts.ExecuteClusterInitRequestAsync, options?: IRepoOptions): Promise<Contracts.ExecuteClusterInitResponse>;
|
|
873
|
+
clusterAgentInstall(request: Contracts.ClusterAgentInstallRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
874
|
+
clusterAgentConfigRead(request: Contracts.ClusterAgentConfigReadRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.CodiacInClusterSettingsOverride>>;
|
|
875
|
+
clusterAgentConfigure(request: Contracts.ClusterAgentConfigureRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
876
|
+
clusterAgentUninstall(request: Contracts.ClusterAgentUninstallRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
877
|
+
assetDeploy(request: Contracts.AssetDeployRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
878
|
+
clusterStackInstall(request: Contracts.ClusterStackInstallRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
879
|
+
clusterStackUninstall(request: Contracts.ClusterStackUninstallRequestAsync, options?: IRepoOptions): Promise<SingleResult<Contracts.WorkUnitAck>>;
|
|
870
880
|
/** Authenticates with the given cloud service provider using the given credentials or, if none provided, using the credentials cached for the given csp. */
|
|
871
881
|
csp_login(request: Contracts.LogintoCloudProviderRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.CspTokenAndUserMeta>>;
|
|
882
|
+
/** Authenticates with a cloud service provider using credentials from app-config.json hostedCloudCreds settings. */
|
|
883
|
+
hosted_csp_login(request?: {}, options?: IRepoOptions): Promise<SingleResult<Contracts.CspTokenAndUserMeta>>;
|
|
872
884
|
/** Target for the OAuth 2.0 Authorization Code Flow redirect. Receives the authorization code, converts it to a token and passes the token down to the calling application (via websocket backchannel specified in the message state). */
|
|
873
885
|
csp_login_auth_code_catcher(request: Contracts.CspLoginAuthCodeCatcherRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.CspLoginAuthCodeCatcherResponse>>;
|
|
874
886
|
/** Invokes the OAuth 2.0 interactive login sequence for the given cloud service provider. */
|
|
875
887
|
csp_login_interactive(request: Contracts.CspLoginInteractiveRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.CspLoginInteractiveResponse>>;
|
|
876
|
-
/** Invokes the single request-response logout sequence for the given cloud service provider. */
|
|
877
|
-
csp_logout(request: Contracts.CspLogoutRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.CspLogoutResponse>>;
|
|
878
888
|
/** Target for the OAuth 2.0 sign-out redirect. Purges any existing tokens for the given csp and notifies the calling application (via websocket backchannel specified in the message). */
|
|
879
889
|
csp_logout_catcher(request: Contracts.CspLogoutCatcherRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.CspLoginAuthCodeCatcherResponse>>;
|
|
880
890
|
/** Invokes the OAuth 2.0 interactive sign out sequence for the given cloud service provider (ensures that the browser and any other sso-related systems also get the sign-out message). */
|
|
@@ -893,8 +903,6 @@ declare class OtherOperations {
|
|
|
893
903
|
get_autoscaling_metrics(request: Contracts.GetAutoscalingMetricsRequest, options?: IRepoOptions): Promise<SingleResult<Contracts.Schema>>;
|
|
894
904
|
/** Returns the currently cached username for the given cloud service provider. */
|
|
895
905
|
get_current_users_for(request: Contracts.GetCloudProviderUserRequest, options?: IRepoOptions): Promise<ListResult<Contracts.CspPrimaryCredsMeta>>;
|
|
896
|
-
/** Returns the current user's list of stored credentials for cloud service providers (CSP). */
|
|
897
|
-
get_csp_creds_list(request: Contracts.CspCredsListRequest, options?: IRepoOptions): Promise<ListResult<Contracts.CspPrimaryCredsMeta>>;
|
|
898
906
|
/** Retrieves the list of k8s versions supported by the given cloud provider (and Codiac), for use in creating a cluster. */
|
|
899
907
|
getAvailableK8sVersions(request: Contracts.GetAvailableK8sVersionsRequest, options?: IRepoOptions): Promise<ListResult<Contracts.AvailableK8sVersion>>;
|
|
900
908
|
/** Retrieves the list of vm specs available for use as Aws cluster nodes. */
|
|
@@ -7,7 +7,6 @@ const inversify_1 = require("inversify");
|
|
|
7
7
|
const codiac_common_1 = require("@codiac.io/codiac-common");
|
|
8
8
|
const contracts_1 = require("@codiac.io/codiac-common/contracts");
|
|
9
9
|
const jwt_lib_1 = require("@codiac.io/jwt-lib");
|
|
10
|
-
const contracts_2 = require("@codiac.io/codiac-messaging/dist/contracts");
|
|
11
10
|
const config_1 = require("./config");
|
|
12
11
|
const Nats = require("@nats-io/nats-core");
|
|
13
12
|
const Utils = require("../common/utils");
|
|
@@ -35,7 +34,8 @@ let RelayNatsClient = RelayNatsClient_1 = class RelayNatsClient {
|
|
|
35
34
|
nats_1.NatsConnector.bootstrap(ioc, {
|
|
36
35
|
natsInstance: ultimate.natsInstance,
|
|
37
36
|
baseUrl: ultimate.baseUrl,
|
|
38
|
-
connectTimeoutInMs: ultimate.connectTimeoutInMs
|
|
37
|
+
connectTimeoutInMs: ultimate.connectTimeoutInMs,
|
|
38
|
+
reconnect: ultimate.reconnect,
|
|
39
39
|
}, ultimate.natsInstance);
|
|
40
40
|
// COMMENTED OUT BC:
|
|
41
41
|
// We cant bind the client here bc we need to use lazy-loaded properties
|
|
@@ -49,9 +49,20 @@ let RelayNatsClient = RelayNatsClient_1 = class RelayNatsClient {
|
|
|
49
49
|
// ioc.rebind(RelayNatsClient).toSelf();
|
|
50
50
|
// }
|
|
51
51
|
// Use a placeholder if necessary
|
|
52
|
-
if (!ioc.isBound(
|
|
53
|
-
ioc.bind(
|
|
52
|
+
if (!ioc.isBound(codiac_messaging_1.TokenCreds.SYMBOL)) {
|
|
53
|
+
ioc.bind(codiac_messaging_1.TokenCreds.SYMBOL).toDynamicValue(ctx => undefined).inSingletonScope();
|
|
54
54
|
}
|
|
55
|
+
// const tokenBinding = iocUtils.properBind<TokenCreds | undefined>(ioc, TokenCreds.SYMBOL).toDynamicValue(ctx => {
|
|
56
|
+
// // return undefined;
|
|
57
|
+
// const userCtxt = ctx.container.get(UserContext);
|
|
58
|
+
// const tokenCreds = (userCtxt?.currentToken) ? new TokenCreds(userCtxt.currentToken) : undefined;
|
|
59
|
+
// return tokenCreds;
|
|
60
|
+
// });
|
|
61
|
+
// if (ultimate.natsInstance) {
|
|
62
|
+
// tokenBinding.whenTargetNamed(ultimate.natsInstance);
|
|
63
|
+
// } else {
|
|
64
|
+
// tokenBinding.whenTargetIsDefault();
|
|
65
|
+
// }
|
|
55
66
|
}
|
|
56
67
|
/** This factory method is just for convenience and hasty backward compatibility with consumers not using ioc. */
|
|
57
68
|
static create(logger, connector, configuration, codiacJwt) {
|
|
@@ -121,6 +132,7 @@ let RelayNatsClient = RelayNatsClient_1 = class RelayNatsClient {
|
|
|
121
132
|
/** Sets the user context to impersonate in requests made to the api. */
|
|
122
133
|
setUserToken(token) {
|
|
123
134
|
this.connector.setUserToken(token);
|
|
135
|
+
this._tokenCredentials = { jwtToken: token };
|
|
124
136
|
}
|
|
125
137
|
connect() {
|
|
126
138
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -233,8 +245,8 @@ RelayNatsClient = RelayNatsClient_1 = tslib_1.__decorate([
|
|
|
233
245
|
tslib_1.__param(0, (0, inversify_1.inject)(codiac_common_1.INTERFACES.IBetterLogger)),
|
|
234
246
|
tslib_1.__param(1, (0, inversify_1.inject)(config_1.RelayNatsClientConfig)),
|
|
235
247
|
tslib_1.__param(2, (0, inversify_1.inject)(codiac_messaging_1.StreamingConstants.IStreamingConnector)),
|
|
236
|
-
tslib_1.__param(3, (0, inversify_1.inject)(
|
|
237
|
-
tslib_1.__metadata("design:paramtypes", [Object, config_1.RelayNatsClientConfig, Object,
|
|
248
|
+
tslib_1.__param(3, (0, inversify_1.inject)(codiac_messaging_1.TokenCreds.SYMBOL)),
|
|
249
|
+
tslib_1.__metadata("design:paramtypes", [Object, config_1.RelayNatsClientConfig, Object, codiac_messaging_1.TokenCreds])
|
|
238
250
|
], RelayNatsClient);
|
|
239
251
|
exports.RelayNatsClient = RelayNatsClient;
|
|
240
252
|
// // EXAMPLE
|
|
@@ -5140,17 +5152,27 @@ class OtherOperations {
|
|
|
5140
5152
|
"activateBusListener": ["post.activate-bus-listener"],
|
|
5141
5153
|
"assetStatus": ["post.asset-status"],
|
|
5142
5154
|
"assetWhere": ["get.local.asset.where"],
|
|
5155
|
+
"clusterDefine": ["post.execute-cluster-define"],
|
|
5156
|
+
"otherClusterCredentialsSet": ["post.other.cluster-credentials-set"],
|
|
5143
5157
|
"clusterCapture": ["post.execute-cluster-capture"],
|
|
5144
5158
|
"clusterCreateAsync": ["post.execute-cluster-create-async"],
|
|
5159
|
+
"clusterRestoreAsync": ["post.execute-cluster-restore"],
|
|
5145
5160
|
"clusterDeinit": ["post.execute-cluster-deinit"],
|
|
5146
5161
|
"clusterInit": ["post.execute-cluster-init"],
|
|
5147
5162
|
"clusterStackCapture": ["post.execute-cluster-stack-capture"],
|
|
5163
|
+
"clusterAgentInstall": ["post.execute-cluster-agent-install"],
|
|
5164
|
+
"clusterAgentConfigure": ["post.execute-cluster-agent-configure"],
|
|
5165
|
+
"clusterAgentUninstall": ["post.execute-cluster-agent-uninstall"],
|
|
5166
|
+
"assetDeploy": ["post.execute-asset-deploy"],
|
|
5167
|
+
"clusterStackInstall": ["post.execute-cluster-stack-install"],
|
|
5168
|
+
"clusterStackUninstall": ["post.execute-cluster-stack-uninstall"],
|
|
5148
5169
|
"csp-login": ["post.csp.login"],
|
|
5149
5170
|
"csp-login-auth-code-catcher": ["dmz.get.csp.login.auth-code-catcher"],
|
|
5150
5171
|
"csp-login-interactive": ["post.csp.login.ui"],
|
|
5151
5172
|
"csp-logout-catcher": ["dmz.get.csp.logout-catcher"],
|
|
5152
5173
|
"csp-logout-interactive": ["post.csp.logout.ui"],
|
|
5153
5174
|
"csp-tenant-profile-getsert": ["post.csp.tenant-profile.new"],
|
|
5175
|
+
"hosted-csp-login": ["post.csp.hosted.login"],
|
|
5154
5176
|
"domainDelete": ["delete.domains"],
|
|
5155
5177
|
"executeDestroyAssets": ["post.execute-destroy-assets"],
|
|
5156
5178
|
"executeDomainUpsert": ["post.execute-domain-upsert"],
|
|
@@ -5319,6 +5341,12 @@ class OtherOperations {
|
|
|
5319
5341
|
return yield this.core.request("get.local.asset.where", request, options);
|
|
5320
5342
|
});
|
|
5321
5343
|
}
|
|
5344
|
+
/** Creates or updates a ClusterDef metadata record without touching any physical cloud infrastructure. */
|
|
5345
|
+
clusterDefine(request, options) {
|
|
5346
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5347
|
+
return yield this.core.request("post.execute-cluster-define", request, options);
|
|
5348
|
+
});
|
|
5349
|
+
}
|
|
5322
5350
|
/** Creates a new record in Codiac for a cluster that already physically exists in a cloud subscription. */
|
|
5323
5351
|
clusterCapture(request, options) {
|
|
5324
5352
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -5330,9 +5358,19 @@ class OtherOperations {
|
|
|
5330
5358
|
return yield this.core.request("post.execute-cluster-create-async", request, options);
|
|
5331
5359
|
});
|
|
5332
5360
|
}
|
|
5361
|
+
clusterRestoreAsync(request, options) {
|
|
5362
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5363
|
+
return yield this.core.request("post.execute-cluster-restore", request, options);
|
|
5364
|
+
});
|
|
5365
|
+
}
|
|
5366
|
+
otherClusterCredentialsSet(request, options) {
|
|
5367
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5368
|
+
return yield this.core.request("post.other.cluster-credentials-set", request, options);
|
|
5369
|
+
});
|
|
5370
|
+
}
|
|
5333
5371
|
clusterDeinit(request, options) {
|
|
5334
5372
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5335
|
-
return yield this.core.request("post.execute-cluster-deinit", request, options
|
|
5373
|
+
return yield this.core.request("post.execute-cluster-deinit", request, options);
|
|
5336
5374
|
});
|
|
5337
5375
|
}
|
|
5338
5376
|
clusterInit(request, options) {
|
|
@@ -5340,12 +5378,53 @@ class OtherOperations {
|
|
|
5340
5378
|
return yield this.core.request("post.execute-cluster-init", request, options, { requestTimeoutInMs: 12 * 60 * 1000 /* 12 mins for init */ });
|
|
5341
5379
|
});
|
|
5342
5380
|
}
|
|
5381
|
+
clusterAgentInstall(request, options) {
|
|
5382
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5383
|
+
return yield this.core.request("post.execute-cluster-agent-install", request, options);
|
|
5384
|
+
});
|
|
5385
|
+
}
|
|
5386
|
+
clusterAgentConfigRead(request, options) {
|
|
5387
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5388
|
+
return yield this.core.request("get.read-cluster-agent-config", request, options);
|
|
5389
|
+
});
|
|
5390
|
+
}
|
|
5391
|
+
clusterAgentConfigure(request, options) {
|
|
5392
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5393
|
+
return yield this.core.request("post.execute-cluster-agent-configure", request, options);
|
|
5394
|
+
});
|
|
5395
|
+
}
|
|
5396
|
+
clusterAgentUninstall(request, options) {
|
|
5397
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5398
|
+
return yield this.core.request("post.execute-cluster-agent-uninstall", request, options);
|
|
5399
|
+
});
|
|
5400
|
+
}
|
|
5401
|
+
assetDeploy(request, options) {
|
|
5402
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5403
|
+
return yield this.core.request("post.execute-asset-deploy", request, options);
|
|
5404
|
+
});
|
|
5405
|
+
}
|
|
5406
|
+
clusterStackInstall(request, options) {
|
|
5407
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5408
|
+
return yield this.core.request("post.execute-cluster-stack-install", request, options);
|
|
5409
|
+
});
|
|
5410
|
+
}
|
|
5411
|
+
clusterStackUninstall(request, options) {
|
|
5412
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5413
|
+
return yield this.core.request("post.execute-cluster-stack-uninstall", request, options);
|
|
5414
|
+
});
|
|
5415
|
+
}
|
|
5343
5416
|
/** Authenticates with the given cloud service provider using the given credentials or, if none provided, using the credentials cached for the given csp. */
|
|
5344
5417
|
csp_login(request, options) {
|
|
5345
5418
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5346
5419
|
return yield this.core.request("post.csp.login", request, options);
|
|
5347
5420
|
});
|
|
5348
5421
|
}
|
|
5422
|
+
/** Authenticates with a cloud service provider using credentials from app-config.json hostedCloudCreds settings. */
|
|
5423
|
+
hosted_csp_login(request = {}, options) {
|
|
5424
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5425
|
+
return yield this.core.request("post.csp.hosted.login", request, options);
|
|
5426
|
+
});
|
|
5427
|
+
}
|
|
5349
5428
|
/** Target for the OAuth 2.0 Authorization Code Flow redirect. Receives the authorization code, converts it to a token and passes the token down to the calling application (via websocket backchannel specified in the message state). */
|
|
5350
5429
|
csp_login_auth_code_catcher(request, options) {
|
|
5351
5430
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -5358,12 +5437,6 @@ class OtherOperations {
|
|
|
5358
5437
|
return yield this.core.request("post.csp.login.ui", request, options);
|
|
5359
5438
|
});
|
|
5360
5439
|
}
|
|
5361
|
-
/** Invokes the single request-response logout sequence for the given cloud service provider. */
|
|
5362
|
-
csp_logout(request, options) {
|
|
5363
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5364
|
-
return yield this.core.request("post.csp.logout", request, options);
|
|
5365
|
-
});
|
|
5366
|
-
}
|
|
5367
5440
|
/** Target for the OAuth 2.0 sign-out redirect. Purges any existing tokens for the given csp and notifies the calling application (via websocket backchannel specified in the message). */
|
|
5368
5441
|
csp_logout_catcher(request, options) {
|
|
5369
5442
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -5418,12 +5491,6 @@ class OtherOperations {
|
|
|
5418
5491
|
return yield this.core.request("get.current-users-for", request, options);
|
|
5419
5492
|
});
|
|
5420
5493
|
}
|
|
5421
|
-
/** Returns the current user's list of stored credentials for cloud service providers (CSP). */
|
|
5422
|
-
get_csp_creds_list(request, options) {
|
|
5423
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
5424
|
-
return yield this.core.request("get.csp.creds.list", request, options);
|
|
5425
|
-
});
|
|
5426
|
-
}
|
|
5427
5494
|
/** Retrieves the list of k8s versions supported by the given cloud provider (and Codiac), for use in creating a cluster. */
|
|
5428
5495
|
getAvailableK8sVersions(request, options) {
|
|
5429
5496
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|