@northflank/js-client 0.7.0 → 0.7.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-client.d.ts +7267 -2476
- package/dist/cjs/api-client.js +1 -1
- package/dist/esm/api-client.d.ts +7267 -2476
- package/dist/esm/api-client.js +1 -15
- package/package.json +1 -1
- package/dist/cjs/api-endpoint.d.ts +0 -57
- package/dist/cjs/api-error.d.ts +0 -16
- package/dist/cjs/context/api-client-context-provider.d.ts +0 -47
- package/dist/cjs/context/api-client-file-context-provider.d.ts +0 -11
- package/dist/cjs/context/api-client-in-memory-context-provider.d.ts +0 -6
- package/dist/cjs/context/index.d.ts +0 -3
- package/dist/cjs/endpoints/abort/addon/backup.d.ts +0 -21
- package/dist/cjs/endpoints/abort/addon/restore.d.ts +0 -26
- package/dist/cjs/endpoints/abort/job/build.d.ts +0 -21
- package/dist/cjs/endpoints/abort/job/run.d.ts +0 -21
- package/dist/cjs/endpoints/abort/service/build.d.ts +0 -21
- package/dist/cjs/endpoints/add/domain/subdomain.d.ts +0 -33
- package/dist/cjs/endpoints/add/registry.d.ts +0 -47
- package/dist/cjs/endpoints/assign/subdomain/service.d.ts +0 -28
- package/dist/cjs/endpoints/attach/volume.d.ts +0 -29
- package/dist/cjs/endpoints/backup/addon.d.ts +0 -51
- package/dist/cjs/endpoints/create/addon/backupSchedule.d.ts +0 -40
- package/dist/cjs/endpoints/create/addon.d.ts +0 -101
- package/dist/cjs/endpoints/create/cluster.d.ts +0 -97
- package/dist/cjs/endpoints/create/domain.d.ts +0 -27
- package/dist/cjs/endpoints/create/integration.d.ts +0 -58
- package/dist/cjs/endpoints/create/job/cron.d.ts +0 -247
- package/dist/cjs/endpoints/create/job/manual.d.ts +0 -237
- package/dist/cjs/endpoints/create/project.d.ts +0 -31
- package/dist/cjs/endpoints/create/secret.d.ts +0 -83
- package/dist/cjs/endpoints/create/service/build.d.ts +0 -161
- package/dist/cjs/endpoints/create/service/combined.d.ts +0 -255
- package/dist/cjs/endpoints/create/service/deployment.d.ts +0 -242
- package/dist/cjs/endpoints/create/template.d.ts +0 -132
- package/dist/cjs/endpoints/create/volume.d.ts +0 -78
- package/dist/cjs/endpoints/delete/addon/backupSchedule.d.ts +0 -21
- package/dist/cjs/endpoints/delete/addon.d.ts +0 -19
- package/dist/cjs/endpoints/delete/backup.d.ts +0 -21
- package/dist/cjs/endpoints/delete/cluster.d.ts +0 -17
- package/dist/cjs/endpoints/delete/domain.d.ts +0 -17
- package/dist/cjs/endpoints/delete/integration.d.ts +0 -17
- package/dist/cjs/endpoints/delete/job.d.ts +0 -19
- package/dist/cjs/endpoints/delete/project.d.ts +0 -17
- package/dist/cjs/endpoints/delete/registry.d.ts +0 -17
- package/dist/cjs/endpoints/delete/secret.d.ts +0 -19
- package/dist/cjs/endpoints/delete/secretLink.d.ts +0 -21
- package/dist/cjs/endpoints/delete/service.d.ts +0 -19
- package/dist/cjs/endpoints/delete/subdomain.d.ts +0 -19
- package/dist/cjs/endpoints/delete/template.d.ts +0 -17
- package/dist/cjs/endpoints/delete/volume.d.ts +0 -19
- package/dist/cjs/endpoints/detach/volume.d.ts +0 -21
- package/dist/cjs/endpoints/get/addon/backup/download.d.ts +0 -24
- package/dist/cjs/endpoints/get/addon/backup.d.ts +0 -46
- package/dist/cjs/endpoints/get/addon/backupSchedules.d.ts +0 -52
- package/dist/cjs/endpoints/get/addon/backups.d.ts +0 -54
- package/dist/cjs/endpoints/get/addon/containers.d.ts +0 -40
- package/dist/cjs/endpoints/get/addon/credentials.d.ts +0 -24
- package/dist/cjs/endpoints/get/addon/types.d.ts +0 -48
- package/dist/cjs/endpoints/get/addon/version.d.ts +0 -53
- package/dist/cjs/endpoints/get/addon.d.ts +0 -71
- package/dist/cjs/endpoints/get/cluster.d.ts +0 -55
- package/dist/cjs/endpoints/get/dnsId.d.ts +0 -15
- package/dist/cjs/endpoints/get/domain.d.ts +0 -33
- package/dist/cjs/endpoints/get/integration.d.ts +0 -37
- package/dist/cjs/endpoints/get/invoice/details.d.ts +0 -139
- package/dist/cjs/endpoints/get/job/branches.d.ts +0 -49
- package/dist/cjs/endpoints/get/job/build.d.ts +0 -42
- package/dist/cjs/endpoints/get/job/buildArgumentDetails.d.ts +0 -71
- package/dist/cjs/endpoints/get/job/buildArguments.d.ts +0 -29
- package/dist/cjs/endpoints/get/job/builds.d.ts +0 -52
- package/dist/cjs/endpoints/get/job/containers.d.ts +0 -40
- package/dist/cjs/endpoints/get/job/deployment.d.ts +0 -55
- package/dist/cjs/endpoints/get/job/healthChecks.d.ts +0 -45
- package/dist/cjs/endpoints/get/job/pullRequests.d.ts +0 -49
- package/dist/cjs/endpoints/get/job/run.d.ts +0 -44
- package/dist/cjs/endpoints/get/job/runs.d.ts +0 -54
- package/dist/cjs/endpoints/get/job/runtimeEnvironment.d.ts +0 -29
- package/dist/cjs/endpoints/get/job/runtimeEnvironmentDetails.d.ts +0 -71
- package/dist/cjs/endpoints/get/job.d.ts +0 -128
- package/dist/cjs/endpoints/get/project.d.ts +0 -72
- package/dist/cjs/endpoints/get/registry.d.ts +0 -34
- package/dist/cjs/endpoints/get/secret.d.ts +0 -55
- package/dist/cjs/endpoints/get/secretDetails.d.ts +0 -63
- package/dist/cjs/endpoints/get/secretLink.d.ts +0 -44
- package/dist/cjs/endpoints/get/service/branches.d.ts +0 -49
- package/dist/cjs/endpoints/get/service/build.d.ts +0 -42
- package/dist/cjs/endpoints/get/service/buildArgumentDetails.d.ts +0 -71
- package/dist/cjs/endpoints/get/service/buildArguments.d.ts +0 -29
- package/dist/cjs/endpoints/get/service/builds.d.ts +0 -52
- package/dist/cjs/endpoints/get/service/containers.d.ts +0 -40
- package/dist/cjs/endpoints/get/service/deployment.d.ts +0 -55
- package/dist/cjs/endpoints/get/service/healthChecks.d.ts +0 -45
- package/dist/cjs/endpoints/get/service/ports.d.ts +0 -70
- package/dist/cjs/endpoints/get/service/pullRequests.d.ts +0 -49
- package/dist/cjs/endpoints/get/service/runtimeEnvironment.d.ts +0 -29
- package/dist/cjs/endpoints/get/service/runtimeEnvironmentDetails.d.ts +0 -71
- package/dist/cjs/endpoints/get/service.d.ts +0 -211
- package/dist/cjs/endpoints/get/subdomain.d.ts +0 -30
- package/dist/cjs/endpoints/get/template.d.ts +0 -61
- package/dist/cjs/endpoints/get/templateRun.d.ts +0 -73
- package/dist/cjs/endpoints/get/volume.d.ts +0 -49
- package/dist/cjs/endpoints/import/addon/backup.d.ts +0 -31
- package/dist/cjs/endpoints/list/addons.d.ts +0 -45
- package/dist/cjs/endpoints/list/branches.d.ts +0 -51
- package/dist/cjs/endpoints/list/clusters.d.ts +0 -63
- package/dist/cjs/endpoints/list/domains.d.ts +0 -34
- package/dist/cjs/endpoints/list/integrations.d.ts +0 -36
- package/dist/cjs/endpoints/list/invoices.d.ts +0 -40
- package/dist/cjs/endpoints/list/jobs.d.ts +0 -46
- package/dist/cjs/endpoints/list/plans.d.ts +0 -30
- package/dist/cjs/endpoints/list/projects.d.ts +0 -32
- package/dist/cjs/endpoints/list/providers.d.ts +0 -37
- package/dist/cjs/endpoints/list/regions.d.ts +0 -18
- package/dist/cjs/endpoints/list/registries.d.ts +0 -41
- package/dist/cjs/endpoints/list/repos.d.ts +0 -51
- package/dist/cjs/endpoints/list/secrets.d.ts +0 -54
- package/dist/cjs/endpoints/list/services.d.ts +0 -65
- package/dist/cjs/endpoints/list/templateRuns.d.ts +0 -54
- package/dist/cjs/endpoints/list/templates.d.ts +0 -41
- package/dist/cjs/endpoints/list/vcs.d.ts +0 -32
- package/dist/cjs/endpoints/list/volumes.d.ts +0 -47
- package/dist/cjs/endpoints/pause/addon.d.ts +0 -19
- package/dist/cjs/endpoints/pause/job.d.ts +0 -19
- package/dist/cjs/endpoints/pause/service.d.ts +0 -19
- package/dist/cjs/endpoints/restart/addon.d.ts +0 -19
- package/dist/cjs/endpoints/restart/service.d.ts +0 -19
- package/dist/cjs/endpoints/restore/addon/backup.d.ts +0 -24
- package/dist/cjs/endpoints/resume/addon.d.ts +0 -19
- package/dist/cjs/endpoints/resume/job.d.ts +0 -28
- package/dist/cjs/endpoints/resume/service.d.ts +0 -28
- package/dist/cjs/endpoints/retain/addon/backup.d.ts +0 -21
- package/dist/cjs/endpoints/run/template.d.ts +0 -62
- package/dist/cjs/endpoints/scale/addon.d.ts +0 -28
- package/dist/cjs/endpoints/scale/job.d.ts +0 -30
- package/dist/cjs/endpoints/scale/service.d.ts +0 -32
- package/dist/cjs/endpoints/start/job/build.d.ts +0 -47
- package/dist/cjs/endpoints/start/job/run.d.ts +0 -74
- package/dist/cjs/endpoints/start/service/build.d.ts +0 -55
- package/dist/cjs/endpoints/suspend/job.d.ts +0 -24
- package/dist/cjs/endpoints/unassign/subdomain.d.ts +0 -19
- package/dist/cjs/endpoints/update/addon/networkSettings.d.ts +0 -26
- package/dist/cjs/endpoints/update/addon/security.d.ts +0 -29
- package/dist/cjs/endpoints/update/addon/version.d.ts +0 -24
- package/dist/cjs/endpoints/update/cluster.d.ts +0 -76
- package/dist/cjs/endpoints/update/integration.d.ts +0 -53
- package/dist/cjs/endpoints/update/job/buildArguments.d.ts +0 -29
- package/dist/cjs/endpoints/update/job/buildOptions.d.ts +0 -50
- package/dist/cjs/endpoints/update/job/buildSource.d.ts +0 -32
- package/dist/cjs/endpoints/update/job/cmdOverride.d.ts +0 -24
- package/dist/cjs/endpoints/update/job/deployment.d.ts +0 -39
- package/dist/cjs/endpoints/update/job/entrypointOverride.d.ts +0 -24
- package/dist/cjs/endpoints/update/job/healthChecks.d.ts +0 -45
- package/dist/cjs/endpoints/update/job/runtimeEnvironment.d.ts +0 -29
- package/dist/cjs/endpoints/update/job/settings.d.ts +0 -32
- package/dist/cjs/endpoints/update/registry.d.ts +0 -31
- package/dist/cjs/endpoints/update/secret.d.ts +0 -58
- package/dist/cjs/endpoints/update/secretLink.d.ts +0 -40
- package/dist/cjs/endpoints/update/service/buildArguments.d.ts +0 -29
- package/dist/cjs/endpoints/update/service/buildOptions.d.ts +0 -62
- package/dist/cjs/endpoints/update/service/buildSource.d.ts +0 -32
- package/dist/cjs/endpoints/update/service/cmdOverride.d.ts +0 -24
- package/dist/cjs/endpoints/update/service/deployment.d.ts +0 -39
- package/dist/cjs/endpoints/update/service/entrypointOverride.d.ts +0 -24
- package/dist/cjs/endpoints/update/service/healthChecks.d.ts +0 -45
- package/dist/cjs/endpoints/update/service/ports.d.ts +0 -57
- package/dist/cjs/endpoints/update/service/runtimeEnvironment.d.ts +0 -34
- package/dist/cjs/endpoints/update/template.d.ts +0 -81
- package/dist/cjs/endpoints/update/volume.d.ts +0 -33
- package/dist/cjs/endpoints/verify/domain.d.ts +0 -17
- package/dist/cjs/endpoints/verify/subdomain.d.ts +0 -19
- package/dist/cjs/exec-command/client/exec-command-runner.d.ts +0 -70
- package/dist/cjs/exec-command/client/exec-command-standard.d.ts +0 -42
- package/dist/cjs/port-forward/client/api-helper.d.ts +0 -30
- package/dist/cjs/port-forward/client/atomic-write.d.ts +0 -2
- package/dist/cjs/port-forward/client/host-file-ast.d.ts +0 -52
- package/dist/cjs/port-forward/client/host-file.d.ts +0 -26
- package/dist/cjs/port-forward/client/loopback.d.ts +0 -4
- package/dist/cjs/port-forward/client/port-forwarder.d.ts +0 -87
- package/dist/cjs/port-forward/client/port-tunnel-tcp.d.ts +0 -36
- package/dist/cjs/port-forward/client/port-tunnel-udp.d.ts +0 -27
- package/dist/cjs/port-forward/client/promise-mutex.d.ts +0 -4
- package/dist/cjs/utils.d.ts +0 -21
- package/dist/esm/api-endpoint.d.ts +0 -57
- package/dist/esm/api-error.d.ts +0 -16
- package/dist/esm/context/api-client-context-provider.d.ts +0 -47
- package/dist/esm/context/api-client-file-context-provider.d.ts +0 -11
- package/dist/esm/context/api-client-in-memory-context-provider.d.ts +0 -6
- package/dist/esm/context/index.d.ts +0 -3
- package/dist/esm/endpoints/abort/addon/backup.d.ts +0 -21
- package/dist/esm/endpoints/abort/addon/restore.d.ts +0 -26
- package/dist/esm/endpoints/abort/job/build.d.ts +0 -21
- package/dist/esm/endpoints/abort/job/run.d.ts +0 -21
- package/dist/esm/endpoints/abort/service/build.d.ts +0 -21
- package/dist/esm/endpoints/add/domain/subdomain.d.ts +0 -33
- package/dist/esm/endpoints/add/registry.d.ts +0 -47
- package/dist/esm/endpoints/assign/subdomain/service.d.ts +0 -28
- package/dist/esm/endpoints/attach/volume.d.ts +0 -29
- package/dist/esm/endpoints/backup/addon.d.ts +0 -51
- package/dist/esm/endpoints/create/addon/backupSchedule.d.ts +0 -40
- package/dist/esm/endpoints/create/addon.d.ts +0 -101
- package/dist/esm/endpoints/create/cluster.d.ts +0 -97
- package/dist/esm/endpoints/create/domain.d.ts +0 -27
- package/dist/esm/endpoints/create/integration.d.ts +0 -58
- package/dist/esm/endpoints/create/job/cron.d.ts +0 -247
- package/dist/esm/endpoints/create/job/manual.d.ts +0 -237
- package/dist/esm/endpoints/create/project.d.ts +0 -31
- package/dist/esm/endpoints/create/secret.d.ts +0 -83
- package/dist/esm/endpoints/create/service/build.d.ts +0 -161
- package/dist/esm/endpoints/create/service/combined.d.ts +0 -255
- package/dist/esm/endpoints/create/service/deployment.d.ts +0 -242
- package/dist/esm/endpoints/create/template.d.ts +0 -132
- package/dist/esm/endpoints/create/volume.d.ts +0 -78
- package/dist/esm/endpoints/delete/addon/backupSchedule.d.ts +0 -21
- package/dist/esm/endpoints/delete/addon.d.ts +0 -19
- package/dist/esm/endpoints/delete/backup.d.ts +0 -21
- package/dist/esm/endpoints/delete/cluster.d.ts +0 -17
- package/dist/esm/endpoints/delete/domain.d.ts +0 -17
- package/dist/esm/endpoints/delete/integration.d.ts +0 -17
- package/dist/esm/endpoints/delete/job.d.ts +0 -19
- package/dist/esm/endpoints/delete/project.d.ts +0 -17
- package/dist/esm/endpoints/delete/registry.d.ts +0 -17
- package/dist/esm/endpoints/delete/secret.d.ts +0 -19
- package/dist/esm/endpoints/delete/secretLink.d.ts +0 -21
- package/dist/esm/endpoints/delete/service.d.ts +0 -19
- package/dist/esm/endpoints/delete/subdomain.d.ts +0 -19
- package/dist/esm/endpoints/delete/template.d.ts +0 -17
- package/dist/esm/endpoints/delete/volume.d.ts +0 -19
- package/dist/esm/endpoints/detach/volume.d.ts +0 -21
- package/dist/esm/endpoints/get/addon/backup/download.d.ts +0 -24
- package/dist/esm/endpoints/get/addon/backup.d.ts +0 -46
- package/dist/esm/endpoints/get/addon/backupSchedules.d.ts +0 -52
- package/dist/esm/endpoints/get/addon/backups.d.ts +0 -54
- package/dist/esm/endpoints/get/addon/containers.d.ts +0 -40
- package/dist/esm/endpoints/get/addon/credentials.d.ts +0 -24
- package/dist/esm/endpoints/get/addon/types.d.ts +0 -48
- package/dist/esm/endpoints/get/addon/version.d.ts +0 -53
- package/dist/esm/endpoints/get/addon.d.ts +0 -71
- package/dist/esm/endpoints/get/cluster.d.ts +0 -55
- package/dist/esm/endpoints/get/dnsId.d.ts +0 -15
- package/dist/esm/endpoints/get/domain.d.ts +0 -33
- package/dist/esm/endpoints/get/integration.d.ts +0 -37
- package/dist/esm/endpoints/get/invoice/details.d.ts +0 -139
- package/dist/esm/endpoints/get/job/branches.d.ts +0 -49
- package/dist/esm/endpoints/get/job/build.d.ts +0 -42
- package/dist/esm/endpoints/get/job/buildArgumentDetails.d.ts +0 -71
- package/dist/esm/endpoints/get/job/buildArguments.d.ts +0 -29
- package/dist/esm/endpoints/get/job/builds.d.ts +0 -52
- package/dist/esm/endpoints/get/job/containers.d.ts +0 -40
- package/dist/esm/endpoints/get/job/deployment.d.ts +0 -55
- package/dist/esm/endpoints/get/job/healthChecks.d.ts +0 -45
- package/dist/esm/endpoints/get/job/pullRequests.d.ts +0 -49
- package/dist/esm/endpoints/get/job/run.d.ts +0 -44
- package/dist/esm/endpoints/get/job/runs.d.ts +0 -54
- package/dist/esm/endpoints/get/job/runtimeEnvironment.d.ts +0 -29
- package/dist/esm/endpoints/get/job/runtimeEnvironmentDetails.d.ts +0 -71
- package/dist/esm/endpoints/get/job.d.ts +0 -128
- package/dist/esm/endpoints/get/project.d.ts +0 -72
- package/dist/esm/endpoints/get/registry.d.ts +0 -34
- package/dist/esm/endpoints/get/secret.d.ts +0 -55
- package/dist/esm/endpoints/get/secretDetails.d.ts +0 -63
- package/dist/esm/endpoints/get/secretLink.d.ts +0 -44
- package/dist/esm/endpoints/get/service/branches.d.ts +0 -49
- package/dist/esm/endpoints/get/service/build.d.ts +0 -42
- package/dist/esm/endpoints/get/service/buildArgumentDetails.d.ts +0 -71
- package/dist/esm/endpoints/get/service/buildArguments.d.ts +0 -29
- package/dist/esm/endpoints/get/service/builds.d.ts +0 -52
- package/dist/esm/endpoints/get/service/containers.d.ts +0 -40
- package/dist/esm/endpoints/get/service/deployment.d.ts +0 -55
- package/dist/esm/endpoints/get/service/healthChecks.d.ts +0 -45
- package/dist/esm/endpoints/get/service/ports.d.ts +0 -70
- package/dist/esm/endpoints/get/service/pullRequests.d.ts +0 -49
- package/dist/esm/endpoints/get/service/runtimeEnvironment.d.ts +0 -29
- package/dist/esm/endpoints/get/service/runtimeEnvironmentDetails.d.ts +0 -71
- package/dist/esm/endpoints/get/service.d.ts +0 -211
- package/dist/esm/endpoints/get/subdomain.d.ts +0 -30
- package/dist/esm/endpoints/get/template.d.ts +0 -61
- package/dist/esm/endpoints/get/templateRun.d.ts +0 -73
- package/dist/esm/endpoints/get/volume.d.ts +0 -49
- package/dist/esm/endpoints/import/addon/backup.d.ts +0 -31
- package/dist/esm/endpoints/list/addons.d.ts +0 -45
- package/dist/esm/endpoints/list/branches.d.ts +0 -51
- package/dist/esm/endpoints/list/clusters.d.ts +0 -63
- package/dist/esm/endpoints/list/domains.d.ts +0 -34
- package/dist/esm/endpoints/list/integrations.d.ts +0 -36
- package/dist/esm/endpoints/list/invoices.d.ts +0 -40
- package/dist/esm/endpoints/list/jobs.d.ts +0 -46
- package/dist/esm/endpoints/list/plans.d.ts +0 -30
- package/dist/esm/endpoints/list/projects.d.ts +0 -32
- package/dist/esm/endpoints/list/providers.d.ts +0 -37
- package/dist/esm/endpoints/list/regions.d.ts +0 -18
- package/dist/esm/endpoints/list/registries.d.ts +0 -41
- package/dist/esm/endpoints/list/repos.d.ts +0 -51
- package/dist/esm/endpoints/list/secrets.d.ts +0 -54
- package/dist/esm/endpoints/list/services.d.ts +0 -65
- package/dist/esm/endpoints/list/templateRuns.d.ts +0 -54
- package/dist/esm/endpoints/list/templates.d.ts +0 -41
- package/dist/esm/endpoints/list/vcs.d.ts +0 -32
- package/dist/esm/endpoints/list/volumes.d.ts +0 -47
- package/dist/esm/endpoints/pause/addon.d.ts +0 -19
- package/dist/esm/endpoints/pause/job.d.ts +0 -19
- package/dist/esm/endpoints/pause/service.d.ts +0 -19
- package/dist/esm/endpoints/restart/addon.d.ts +0 -19
- package/dist/esm/endpoints/restart/service.d.ts +0 -19
- package/dist/esm/endpoints/restore/addon/backup.d.ts +0 -24
- package/dist/esm/endpoints/resume/addon.d.ts +0 -19
- package/dist/esm/endpoints/resume/job.d.ts +0 -28
- package/dist/esm/endpoints/resume/service.d.ts +0 -28
- package/dist/esm/endpoints/retain/addon/backup.d.ts +0 -21
- package/dist/esm/endpoints/run/template.d.ts +0 -62
- package/dist/esm/endpoints/scale/addon.d.ts +0 -28
- package/dist/esm/endpoints/scale/job.d.ts +0 -30
- package/dist/esm/endpoints/scale/service.d.ts +0 -32
- package/dist/esm/endpoints/start/job/build.d.ts +0 -47
- package/dist/esm/endpoints/start/job/run.d.ts +0 -74
- package/dist/esm/endpoints/start/service/build.d.ts +0 -55
- package/dist/esm/endpoints/suspend/job.d.ts +0 -24
- package/dist/esm/endpoints/unassign/subdomain.d.ts +0 -19
- package/dist/esm/endpoints/update/addon/networkSettings.d.ts +0 -26
- package/dist/esm/endpoints/update/addon/security.d.ts +0 -29
- package/dist/esm/endpoints/update/addon/version.d.ts +0 -24
- package/dist/esm/endpoints/update/cluster.d.ts +0 -76
- package/dist/esm/endpoints/update/integration.d.ts +0 -53
- package/dist/esm/endpoints/update/job/buildArguments.d.ts +0 -29
- package/dist/esm/endpoints/update/job/buildOptions.d.ts +0 -50
- package/dist/esm/endpoints/update/job/buildSource.d.ts +0 -32
- package/dist/esm/endpoints/update/job/cmdOverride.d.ts +0 -24
- package/dist/esm/endpoints/update/job/deployment.d.ts +0 -39
- package/dist/esm/endpoints/update/job/entrypointOverride.d.ts +0 -24
- package/dist/esm/endpoints/update/job/healthChecks.d.ts +0 -45
- package/dist/esm/endpoints/update/job/runtimeEnvironment.d.ts +0 -29
- package/dist/esm/endpoints/update/job/settings.d.ts +0 -32
- package/dist/esm/endpoints/update/registry.d.ts +0 -31
- package/dist/esm/endpoints/update/secret.d.ts +0 -58
- package/dist/esm/endpoints/update/secretLink.d.ts +0 -40
- package/dist/esm/endpoints/update/service/buildArguments.d.ts +0 -29
- package/dist/esm/endpoints/update/service/buildOptions.d.ts +0 -62
- package/dist/esm/endpoints/update/service/buildSource.d.ts +0 -32
- package/dist/esm/endpoints/update/service/cmdOverride.d.ts +0 -24
- package/dist/esm/endpoints/update/service/deployment.d.ts +0 -39
- package/dist/esm/endpoints/update/service/entrypointOverride.d.ts +0 -24
- package/dist/esm/endpoints/update/service/healthChecks.d.ts +0 -45
- package/dist/esm/endpoints/update/service/ports.d.ts +0 -57
- package/dist/esm/endpoints/update/service/runtimeEnvironment.d.ts +0 -34
- package/dist/esm/endpoints/update/template.d.ts +0 -81
- package/dist/esm/endpoints/update/volume.d.ts +0 -33
- package/dist/esm/endpoints/verify/domain.d.ts +0 -17
- package/dist/esm/endpoints/verify/subdomain.d.ts +0 -19
- package/dist/esm/exec-command/client/exec-command-runner.d.ts +0 -70
- package/dist/esm/exec-command/client/exec-command-standard.d.ts +0 -42
- package/dist/esm/port-forward/client/api-helper.d.ts +0 -30
- package/dist/esm/port-forward/client/atomic-write.d.ts +0 -2
- package/dist/esm/port-forward/client/host-file-ast.d.ts +0 -52
- package/dist/esm/port-forward/client/host-file.d.ts +0 -26
- package/dist/esm/port-forward/client/loopback.d.ts +0 -4
- package/dist/esm/port-forward/client/port-forwarder.d.ts +0 -87
- package/dist/esm/port-forward/client/port-tunnel-tcp.d.ts +0 -36
- package/dist/esm/port-forward/client/port-tunnel-udp.d.ts +0 -27
- package/dist/esm/port-forward/client/promise-mutex.d.ts +0 -4
- package/dist/esm/utils.d.ts +0 -21
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
2
|
-
export declare type UpdateServiceHealthchecksResult = any;
|
|
3
|
-
export declare type UpdateServiceHealthchecksCall = (opts: UpdateServiceHealthchecksRequest) => Promise<ApiCallResponse<UpdateServiceHealthchecksResult>>;
|
|
4
|
-
export declare type UpdateServiceHealthchecksRequest = {
|
|
5
|
-
parameters: UpdateServiceHealthchecksParameters;
|
|
6
|
-
data: UpdateServiceHealthchecksData;
|
|
7
|
-
};
|
|
8
|
-
export declare type UpdateServiceHealthchecksParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the service */
|
|
11
|
-
'serviceId': string;
|
|
12
|
-
};
|
|
13
|
-
export declare type UpdateServiceHealthchecksData = {
|
|
14
|
-
/** An array of health checks. */
|
|
15
|
-
'healthChecks': {
|
|
16
|
-
/** The protocol to access the health check with. Example: "HTTP" */
|
|
17
|
-
'protocol': 'HTTP' | 'CMD' | 'TCP';
|
|
18
|
-
/** The type of health check. Example: "readinessProbe" */
|
|
19
|
-
'type': 'livenessProbe' | 'readinessProbe' | 'startupProbe';
|
|
20
|
-
/** The path of the health check endpoint. Required when protocol is HTTP. Example: "/health-check" */
|
|
21
|
-
'path'?: string;
|
|
22
|
-
/** The command to run for the health check. Required when protocol is CMD */
|
|
23
|
-
'cmd'?: string;
|
|
24
|
-
/** Port number for the health check endpoint. Required when protocol is HTTP. Example: 8080 */
|
|
25
|
-
'port'?: number;
|
|
26
|
-
/** Initial delay, in seconds, before the health check is first run. Example: 10 */
|
|
27
|
-
'initialDelaySeconds': number;
|
|
28
|
-
/** The time between each check, in seconds. Example: 60 */
|
|
29
|
-
'periodSeconds': number;
|
|
30
|
-
/** The time to wait for a response before marking the health check as a failure. Example: 1 */
|
|
31
|
-
'timeoutSeconds': number;
|
|
32
|
-
/** The maximum number of allowed failures. Example: 3 */
|
|
33
|
-
'failureThreshold': number;
|
|
34
|
-
/** The number of successes required to mark the health check as a success. Example: 1 */
|
|
35
|
-
'successThreshold'?: number;
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
/** Updates health checks for the given service. */
|
|
39
|
-
export declare class UpdateServiceHealthchecksEndpoint extends PostApiEndpoint<UpdateServiceHealthchecksRequest, UpdateServiceHealthchecksResult> {
|
|
40
|
-
description: string;
|
|
41
|
-
withAuth: boolean;
|
|
42
|
-
requiredPermissions: string;
|
|
43
|
-
endpointUrl: (opts: UpdateServiceHealthchecksRequest) => string;
|
|
44
|
-
body: (payload: UpdateServiceHealthchecksRequest) => string;
|
|
45
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
2
|
-
export declare type UpdateServicePortsResult = any | any;
|
|
3
|
-
export declare type UpdateServicePortsCall = (opts: UpdateServicePortsRequest) => Promise<ApiCallResponse<UpdateServicePortsResult>>;
|
|
4
|
-
export declare type UpdateServicePortsRequest = {
|
|
5
|
-
parameters: UpdateServicePortsParameters;
|
|
6
|
-
data: UpdateServicePortsData;
|
|
7
|
-
};
|
|
8
|
-
export declare type UpdateServicePortsParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the service */
|
|
11
|
-
'serviceId': string;
|
|
12
|
-
};
|
|
13
|
-
export declare type UpdateServicePortsData = {
|
|
14
|
-
/** An array of ports to replace or update existing ports with. */
|
|
15
|
-
'ports': {
|
|
16
|
-
/** The id of an existing port. Pass this when changing in order to keep security configurations. Example: "p01" */
|
|
17
|
-
'id'?: string;
|
|
18
|
-
/** The name used to identify the port. Example: "port-1" */
|
|
19
|
-
'name': string;
|
|
20
|
-
/** The port number. Example: 12345 */
|
|
21
|
-
'internalPort': number;
|
|
22
|
-
/** If true, the port will be exposed publicly. Example: true */
|
|
23
|
-
'public'?: boolean;
|
|
24
|
-
/** The protocol to use for the port. Public ports only support `HTTP` and `HTTP/2`. Example: "HTTP" */
|
|
25
|
-
'protocol': 'HTTP' | 'HTTP/2' | 'TCP' | 'UDP';
|
|
26
|
-
/** An array of domains to redirect to this port. Each domain must first be verified and registered to your account. */
|
|
27
|
-
'domains'?: string[];
|
|
28
|
-
'security'?: {
|
|
29
|
-
/** An array of credentials to access the service. */
|
|
30
|
-
'credentials'?: {
|
|
31
|
-
/** The username to access the service Example: "admin" */
|
|
32
|
-
'username': string;
|
|
33
|
-
/** The password to access the service with this username. Example: "password123" */
|
|
34
|
-
'password': string;
|
|
35
|
-
/** The type of authentication used Example: "basic-auth" */
|
|
36
|
-
'type': 'basic-auth';
|
|
37
|
-
}[];
|
|
38
|
-
/** An array of IP address policies. */
|
|
39
|
-
'policies'?: {
|
|
40
|
-
/** An array of IP addresses used for this rule */
|
|
41
|
-
'addresses': string[];
|
|
42
|
-
/** The action for this rule. Example: "DENY" */
|
|
43
|
-
'action': 'ALLOW' | 'DENY';
|
|
44
|
-
}[];
|
|
45
|
-
};
|
|
46
|
-
/** Disable routing on the default code.run domain for public HTTP ports with custom domains. */
|
|
47
|
-
'disableNfDomain'?: boolean;
|
|
48
|
-
}[];
|
|
49
|
-
};
|
|
50
|
-
/** Updates the list of ports for the given service. */
|
|
51
|
-
export declare class UpdateServicePortsEndpoint extends PostApiEndpoint<UpdateServicePortsRequest, UpdateServicePortsResult> {
|
|
52
|
-
description: string;
|
|
53
|
-
withAuth: boolean;
|
|
54
|
-
requiredPermissions: string;
|
|
55
|
-
endpointUrl: (opts: UpdateServicePortsRequest) => string;
|
|
56
|
-
body: (payload: UpdateServicePortsRequest) => string;
|
|
57
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
2
|
-
export declare type UpdateServiceRuntimeenvironmentResult = {
|
|
3
|
-
/** True if the operation was successful. Example: true */
|
|
4
|
-
'success': boolean;
|
|
5
|
-
/** Did the service successfully restart with the new environment variables? Example: true */
|
|
6
|
-
'restartSuccessful': boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare type UpdateServiceRuntimeenvironmentCall = (opts: UpdateServiceRuntimeenvironmentRequest) => Promise<ApiCallResponse<UpdateServiceRuntimeenvironmentResult>>;
|
|
9
|
-
export declare type UpdateServiceRuntimeenvironmentRequest = {
|
|
10
|
-
parameters: UpdateServiceRuntimeenvironmentParameters;
|
|
11
|
-
data: UpdateServiceRuntimeenvironmentData;
|
|
12
|
-
};
|
|
13
|
-
export declare type UpdateServiceRuntimeenvironmentParameters = {
|
|
14
|
-
/** ID of the project */ 'projectId': string;
|
|
15
|
-
/** ID of the service */
|
|
16
|
-
'serviceId': string;
|
|
17
|
-
};
|
|
18
|
-
export declare type UpdateServiceRuntimeenvironmentData = {
|
|
19
|
-
/** An object containing the all of the environment variables to set for the service. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
20
|
-
'runtimeEnvironment': any;
|
|
21
|
-
} | {
|
|
22
|
-
/** An object containing the all of the environment variables to set for the service. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
23
|
-
'runtimeEnvironment': any;
|
|
24
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
25
|
-
'runtimeFiles'?: any;
|
|
26
|
-
};
|
|
27
|
-
/** Sets the runtime environment for the given service. */
|
|
28
|
-
export declare class UpdateServiceRuntimeenvironmentEndpoint extends PostApiEndpoint<UpdateServiceRuntimeenvironmentRequest, UpdateServiceRuntimeenvironmentResult> {
|
|
29
|
-
description: string;
|
|
30
|
-
withAuth: boolean;
|
|
31
|
-
requiredPermissions: string;
|
|
32
|
-
endpointUrl: (opts: UpdateServiceRuntimeenvironmentRequest) => string;
|
|
33
|
-
body: (payload: UpdateServiceRuntimeenvironmentRequest) => string;
|
|
34
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
2
|
-
export declare type UpdateTemplateResult = {
|
|
3
|
-
/** ID of the template. Example: "example-template" */
|
|
4
|
-
'id': string;
|
|
5
|
-
/** Timestamp of when the template was created. Example: "2022-06-14 15:10:42.842Z" */
|
|
6
|
-
'createdAt': string;
|
|
7
|
-
/** Timestamp of when the template was last updated. Example: "2022-06-14 15:10:42.842Z" */
|
|
8
|
-
'updatedAt': string;
|
|
9
|
-
'content'?: {
|
|
10
|
-
/** Name of the template. Example: "Example Template" */
|
|
11
|
-
'name': string;
|
|
12
|
-
/** Description of the template. Example: "This is a sample template." */
|
|
13
|
-
'description'?: string;
|
|
14
|
-
/** The version of the Northflank API to run the template against. Example: "v1" */
|
|
15
|
-
'apiVersion': 'v1';
|
|
16
|
-
/** Details of the project the template will run in. */
|
|
17
|
-
'project': {
|
|
18
|
-
/** The ID of the project to use. */
|
|
19
|
-
'id': string;
|
|
20
|
-
} | {
|
|
21
|
-
/** Details about the project to create. */
|
|
22
|
-
'spec': {
|
|
23
|
-
/** The name of the project. Example: "New Project" */
|
|
24
|
-
'name': string;
|
|
25
|
-
/** The description of the project. Example: "This is a new project." */
|
|
26
|
-
'description'?: string;
|
|
27
|
-
/** The region the project will be hosted in. Example: "europe-west" */
|
|
28
|
-
'region'?: string;
|
|
29
|
-
/** The BYOC cluster this project will be hosted in. Example: "gcp-cluster-1" */
|
|
30
|
-
'clusterId'?: string;
|
|
31
|
-
/** The color of the project in the Northflank App. Example: "#EF233C" */
|
|
32
|
-
'color'?: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
'spec': any;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export declare type UpdateTemplateCall = (opts: UpdateTemplateRequest) => Promise<ApiCallResponse<UpdateTemplateResult>>;
|
|
39
|
-
export declare type UpdateTemplateRequest = {
|
|
40
|
-
parameters: UpdateTemplateParameters;
|
|
41
|
-
data: UpdateTemplateData;
|
|
42
|
-
};
|
|
43
|
-
export declare type UpdateTemplateParameters = {
|
|
44
|
-
/** ID of the template */ 'templateId': string;
|
|
45
|
-
};
|
|
46
|
-
export declare type UpdateTemplateData = {
|
|
47
|
-
/** Name of the template. Example: "Example Template" */
|
|
48
|
-
'name': string;
|
|
49
|
-
/** Description of the template. Example: "This is a sample template." */
|
|
50
|
-
'description'?: string;
|
|
51
|
-
/** The version of the Northflank API to run the template against. Example: "v1" */
|
|
52
|
-
'apiVersion': 'v1';
|
|
53
|
-
/** Details of the project the template will run in. */
|
|
54
|
-
'project': {
|
|
55
|
-
/** The ID of the project to use. */
|
|
56
|
-
'id': string;
|
|
57
|
-
} | {
|
|
58
|
-
/** Details about the project to create. */
|
|
59
|
-
'spec': {
|
|
60
|
-
/** The name of the project. Example: "New Project" */
|
|
61
|
-
'name': string;
|
|
62
|
-
/** The description of the project. Example: "This is a new project." */
|
|
63
|
-
'description'?: string;
|
|
64
|
-
/** The region the project will be hosted in. Example: "europe-west" */
|
|
65
|
-
'region'?: string;
|
|
66
|
-
/** The BYOC cluster this project will be hosted in. Example: "gcp-cluster-1" */
|
|
67
|
-
'clusterId'?: string;
|
|
68
|
-
/** The color of the project in the Northflank App. Example: "#EF233C" */
|
|
69
|
-
'color'?: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
'spec': any;
|
|
73
|
-
};
|
|
74
|
-
/** Update a template */
|
|
75
|
-
export declare class UpdateTemplateEndpoint extends PostApiEndpoint<UpdateTemplateRequest, UpdateTemplateResult> {
|
|
76
|
-
description: string;
|
|
77
|
-
withAuth: boolean;
|
|
78
|
-
requiredPermissions: string;
|
|
79
|
-
endpointUrl: (opts: UpdateTemplateRequest) => string;
|
|
80
|
-
body: (payload: UpdateTemplateRequest) => string;
|
|
81
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
2
|
-
export declare type UpdateVolumeResult = any;
|
|
3
|
-
export declare type UpdateVolumeCall = (opts: UpdateVolumeRequest) => Promise<ApiCallResponse<UpdateVolumeResult>>;
|
|
4
|
-
export declare type UpdateVolumeRequest = {
|
|
5
|
-
parameters: UpdateVolumeParameters;
|
|
6
|
-
data: UpdateVolumeData;
|
|
7
|
-
};
|
|
8
|
-
export declare type UpdateVolumeParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the volume */
|
|
11
|
-
'volumeId': string;
|
|
12
|
-
};
|
|
13
|
-
export declare type UpdateVolumeData = {
|
|
14
|
-
/** Array of mounts, containerMountPaths must be unique */
|
|
15
|
-
'mounts'?: {
|
|
16
|
-
/** Optionally specify the path inside this volume that should be mounted */
|
|
17
|
-
'volumeMountPath'?: string;
|
|
18
|
-
/** Specify the path into which the volume should be mounted Example: "/container" */
|
|
19
|
-
'containerMountPath': string;
|
|
20
|
-
}[];
|
|
21
|
-
'spec'?: {
|
|
22
|
-
/** The size of the storage, in megabytes. Configurable sizes depend on the storage class. Example: 4096 */
|
|
23
|
-
'storageSize'?: number;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
/** Update volume mounts and storage size */
|
|
27
|
-
export declare class UpdateVolumeEndpoint extends PostApiEndpoint<UpdateVolumeRequest, UpdateVolumeResult> {
|
|
28
|
-
description: string;
|
|
29
|
-
withAuth: boolean;
|
|
30
|
-
requiredPermissions: string;
|
|
31
|
-
endpointUrl: (opts: UpdateVolumeRequest) => string;
|
|
32
|
-
body: (payload: UpdateVolumeRequest) => string;
|
|
33
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
2
|
-
export declare type VerifyDomainResult = any | any;
|
|
3
|
-
export declare type VerifyDomainCall = (opts: VerifyDomainRequest) => Promise<ApiCallResponse<VerifyDomainResult>>;
|
|
4
|
-
export declare type VerifyDomainRequest = {
|
|
5
|
-
parameters: VerifyDomainParameters;
|
|
6
|
-
};
|
|
7
|
-
export declare type VerifyDomainParameters = {
|
|
8
|
-
/** Name of the domain */ 'domain': string;
|
|
9
|
-
};
|
|
10
|
-
/** Attempts to verify the domain */
|
|
11
|
-
export declare class VerifyDomainEndpoint extends PostApiEndpoint<VerifyDomainRequest, VerifyDomainResult> {
|
|
12
|
-
description: string;
|
|
13
|
-
withAuth: boolean;
|
|
14
|
-
requiredPermissions: string;
|
|
15
|
-
endpointUrl: (opts: VerifyDomainRequest) => string;
|
|
16
|
-
body: () => undefined;
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
2
|
-
export declare type VerifySubdomainResult = any | any;
|
|
3
|
-
export declare type VerifySubdomainCall = (opts: VerifySubdomainRequest) => Promise<ApiCallResponse<VerifySubdomainResult>>;
|
|
4
|
-
export declare type VerifySubdomainRequest = {
|
|
5
|
-
parameters: VerifySubdomainParameters;
|
|
6
|
-
};
|
|
7
|
-
export declare type VerifySubdomainParameters = {
|
|
8
|
-
/** Name of the domain */ 'domain': string;
|
|
9
|
-
/** Name of the subdomain */
|
|
10
|
-
'subdomain': string;
|
|
11
|
-
};
|
|
12
|
-
/** Gets details about the given subdomain */
|
|
13
|
-
export declare class VerifySubdomainEndpoint extends PostApiEndpoint<VerifySubdomainRequest, VerifySubdomainResult> {
|
|
14
|
-
description: string;
|
|
15
|
-
withAuth: boolean;
|
|
16
|
-
requiredPermissions: string;
|
|
17
|
-
endpointUrl: (opts: VerifySubdomainRequest) => string;
|
|
18
|
-
body: () => undefined;
|
|
19
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ApiClientContextProvider } from '../../context';
|
|
2
|
-
import { ExecCommandStandard } from './exec-command-standard';
|
|
3
|
-
export { ExecCommandStandard };
|
|
4
|
-
export declare type CommandResult = {
|
|
5
|
-
exitCode: number;
|
|
6
|
-
status: 'Success' | 'Failure' | 'Unknown';
|
|
7
|
-
message?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare type ExecCommandData = {
|
|
10
|
-
command: string | string[];
|
|
11
|
-
containerName?: string;
|
|
12
|
-
shell?: string;
|
|
13
|
-
user?: string | number;
|
|
14
|
-
group?: string | number;
|
|
15
|
-
};
|
|
16
|
-
export declare type ExecSessionData = Omit<ExecCommandData, 'command'> & {
|
|
17
|
-
command?: string | string[];
|
|
18
|
-
ttyRows?: number;
|
|
19
|
-
ttyColumns?: number;
|
|
20
|
-
};
|
|
21
|
-
export declare class NorthflankExecCommand {
|
|
22
|
-
private readonly contextProvider;
|
|
23
|
-
constructor(contextProvider: ApiClientContextProvider);
|
|
24
|
-
/**
|
|
25
|
-
* Runs command on a Northflank service and waits for completion returning command result and
|
|
26
|
-
* standard output and standard error emitted during commmand execution.
|
|
27
|
-
*/
|
|
28
|
-
execServiceCommand(parameters: {
|
|
29
|
-
projectId: string;
|
|
30
|
-
serviceId: string;
|
|
31
|
-
}, data: ExecCommandData): Promise<{
|
|
32
|
-
commandResult: CommandResult;
|
|
33
|
-
stdOut: string;
|
|
34
|
-
stdErr: string;
|
|
35
|
-
}>;
|
|
36
|
-
/**
|
|
37
|
-
* Starts a session on a Northflank service. This is usually a longer-running command. The returned object allows to listen to events as well
|
|
38
|
-
* as consume streams for standard output (stdOut) and standard error (stdErr). Input can be sent using the standard input (stdIn)
|
|
39
|
-
* writable stream.
|
|
40
|
-
*/
|
|
41
|
-
execServiceSession(parameters: {
|
|
42
|
-
projectId: string;
|
|
43
|
-
serviceId: string;
|
|
44
|
-
}, data?: ExecSessionData): Promise<ExecCommandStandard>;
|
|
45
|
-
/**
|
|
46
|
-
* Runs command on a Northflank job and waits for completion returning command result and
|
|
47
|
-
* standard output and standard error emitted during commmand execution.
|
|
48
|
-
*/
|
|
49
|
-
execJobCommand(parameters: {
|
|
50
|
-
projectId: string;
|
|
51
|
-
jobId: string;
|
|
52
|
-
}, data: ExecCommandData): Promise<{
|
|
53
|
-
commandResult: CommandResult;
|
|
54
|
-
stdOut: string;
|
|
55
|
-
stdErr: string;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Starts a session on a Northflank job. This is usually a longer-running command. The returned object allows to listen to events as well
|
|
59
|
-
* as consume streams for standard output (stdOut) and standard error (stdErr). Input can be sent using the standard input (stdIn)
|
|
60
|
-
* writable stream.
|
|
61
|
-
*/
|
|
62
|
-
execJobSession(parameters: {
|
|
63
|
-
projectId: string;
|
|
64
|
-
jobId: string;
|
|
65
|
-
}, data?: ExecSessionData): Promise<ExecCommandStandard>;
|
|
66
|
-
private execCommand;
|
|
67
|
-
private shellSession;
|
|
68
|
-
private getCommandRunner;
|
|
69
|
-
private assertStartedWithNodejs;
|
|
70
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { EventEmitter } from 'events';
|
|
4
|
-
import * as stream from 'stream';
|
|
5
|
-
import { ExecCommand } from './exec-command';
|
|
6
|
-
import { CommandResult } from './exec-command-runner';
|
|
7
|
-
export declare type ExecConfig = {
|
|
8
|
-
projectId: string;
|
|
9
|
-
entityType: 'service' | 'job' | 'addon' | 'build';
|
|
10
|
-
entityId: string;
|
|
11
|
-
containerName?: string;
|
|
12
|
-
command?: string | string[];
|
|
13
|
-
shell?: string;
|
|
14
|
-
user?: string | number;
|
|
15
|
-
group?: string | number;
|
|
16
|
-
ttyRows?: number;
|
|
17
|
-
ttyColumns?: number;
|
|
18
|
-
};
|
|
19
|
-
export declare class ExecCommandStandard extends EventEmitter implements ExecCommand {
|
|
20
|
-
private readonly baseUrl;
|
|
21
|
-
readonly execConfig: ExecConfig;
|
|
22
|
-
private readonly token;
|
|
23
|
-
readonly stdOut: stream.PassThrough;
|
|
24
|
-
readonly stdErr: stream.PassThrough;
|
|
25
|
-
readonly stdIn: stream.PassThrough;
|
|
26
|
-
private remote;
|
|
27
|
-
private currentCommand;
|
|
28
|
-
private duplex;
|
|
29
|
-
constructor(baseUrl: string, execConfig: ExecConfig, token: string, // readonly timeout: number = 120 // Timeout in seconds
|
|
30
|
-
stdOut?: stream.PassThrough, stdErr?: stream.PassThrough, stdIn?: stream.PassThrough);
|
|
31
|
-
private get execEndpoint();
|
|
32
|
-
waitForCommandResult: () => Promise<CommandResult>;
|
|
33
|
-
sendInputToCurrentCommand: (input: string) => Promise<void>;
|
|
34
|
-
resizeTerminal: (size: {
|
|
35
|
-
rows?: number;
|
|
36
|
-
columns?: number;
|
|
37
|
-
}) => Promise<void>;
|
|
38
|
-
start(): Promise<CommandResult>;
|
|
39
|
-
private constructPayloadPacket;
|
|
40
|
-
private initialAuth;
|
|
41
|
-
private reset;
|
|
42
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ApiClientContextProvider } from '../../context';
|
|
2
|
-
interface ServiceInfo {
|
|
3
|
-
targetDomain: string;
|
|
4
|
-
namespace: string;
|
|
5
|
-
instances: {
|
|
6
|
-
podName: string;
|
|
7
|
-
}[];
|
|
8
|
-
ports: PortInfo[];
|
|
9
|
-
}
|
|
10
|
-
interface AddonInfo {
|
|
11
|
-
targetDomain: string;
|
|
12
|
-
instances: {
|
|
13
|
-
podName: string;
|
|
14
|
-
internalHostname: string;
|
|
15
|
-
ports: PortInfo[];
|
|
16
|
-
}[];
|
|
17
|
-
}
|
|
18
|
-
export interface PortInfo {
|
|
19
|
-
name?: string;
|
|
20
|
-
internalPort: number;
|
|
21
|
-
protocol?: 'HTTP' | 'TCP' | 'UDP';
|
|
22
|
-
}
|
|
23
|
-
export declare class PortProxyApiClient {
|
|
24
|
-
private readonly contextProvider;
|
|
25
|
-
constructor(contextProvider: ApiClientContextProvider);
|
|
26
|
-
getServiceDetails(project: string, service: string): Promise<ServiceInfo>;
|
|
27
|
-
getAddonDetails(project: string, addon: string): Promise<AddonInfo>;
|
|
28
|
-
private fetch;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export interface InvalidNode {
|
|
2
|
-
type: 'invalid';
|
|
3
|
-
line: string;
|
|
4
|
-
}
|
|
5
|
-
export interface EolNode {
|
|
6
|
-
type: 'eol';
|
|
7
|
-
line: string;
|
|
8
|
-
}
|
|
9
|
-
export interface BlankNode {
|
|
10
|
-
type: 'blank';
|
|
11
|
-
line: string;
|
|
12
|
-
}
|
|
13
|
-
export interface CommentNode {
|
|
14
|
-
type: 'comment';
|
|
15
|
-
line: string;
|
|
16
|
-
}
|
|
17
|
-
export interface EntryNode {
|
|
18
|
-
type: 'entry';
|
|
19
|
-
ipPrefixWhitespace: string;
|
|
20
|
-
ip: string;
|
|
21
|
-
hosts: {
|
|
22
|
-
whitespace: string;
|
|
23
|
-
host: string;
|
|
24
|
-
}[];
|
|
25
|
-
}
|
|
26
|
-
export declare type HostsFileNode = InvalidNode | EolNode | BlankNode | CommentNode | EntryNode;
|
|
27
|
-
export interface HostsFileAstOptions {
|
|
28
|
-
eol: string;
|
|
29
|
-
indent: number;
|
|
30
|
-
ipPrefixWhitespace: string;
|
|
31
|
-
}
|
|
32
|
-
export declare class HostsFileAst {
|
|
33
|
-
private nodes;
|
|
34
|
-
private readonly config;
|
|
35
|
-
constructor(nodes: HostsFileNode[], config: HostsFileAstOptions);
|
|
36
|
-
add(ip: string, hosts: string[], header?: string): this;
|
|
37
|
-
remove(ip: string, hosts: string[]): this;
|
|
38
|
-
removeHosts(hosts: string[]): void;
|
|
39
|
-
removeIps(ips: string[]): this;
|
|
40
|
-
resolveHosts(ip: string): any;
|
|
41
|
-
resolveIps(host: string): string[];
|
|
42
|
-
toString(): string;
|
|
43
|
-
private removeEntry;
|
|
44
|
-
private findEntries;
|
|
45
|
-
private findOrCreateEntry;
|
|
46
|
-
private insertAt;
|
|
47
|
-
private makeEntry;
|
|
48
|
-
static fromNodes(nodes: HostsFileNode[], options?: Partial<HostsFileAstOptions>): HostsFileAst;
|
|
49
|
-
static parse(data: string, options?: Partial<HostsFileAstOptions>): HostsFileAst;
|
|
50
|
-
}
|
|
51
|
-
export declare const generateHostsFile: (nodes: HostsFileNode[], eol?: string) => string;
|
|
52
|
-
export declare const parseHostsFile: (data: string) => HostsFileNode[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { HostsFileAstOptions } from './host-file-ast';
|
|
2
|
-
export declare type HostsFileOptions = Partial<HostsFileConfig>;
|
|
3
|
-
export declare type HostsFileWriteMode = 'disabled' | 'atomic' | 'standard';
|
|
4
|
-
export interface HostsFileConfig extends Partial<HostsFileAstOptions> {
|
|
5
|
-
writeMode: HostsFileWriteMode;
|
|
6
|
-
header?: string;
|
|
7
|
-
hostsFile: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class HostsFile {
|
|
10
|
-
private readonly config;
|
|
11
|
-
private ast;
|
|
12
|
-
constructor(options?: HostsFileOptions);
|
|
13
|
-
add(ip: string, ...hosts: string[]): this;
|
|
14
|
-
remove(ip: string, ...hosts: string[]): this;
|
|
15
|
-
removeHosts(...hosts: string[]): this;
|
|
16
|
-
removeIps(...ips: string[]): this;
|
|
17
|
-
read(): Promise<this>;
|
|
18
|
-
write(options?: {
|
|
19
|
-
writeMode?: HostsFileWriteMode;
|
|
20
|
-
}): Promise<this>;
|
|
21
|
-
backup(options: {
|
|
22
|
-
suffix: string;
|
|
23
|
-
rewrite?: boolean;
|
|
24
|
-
}): Promise<void>;
|
|
25
|
-
static load(options?: HostsFileOptions): Promise<HostsFile>;
|
|
26
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const findAvailableLoopbackIp: (port: number, ipMinStr?: string, ipMaxStr?: string) => Promise<string>;
|
|
2
|
-
export declare const isPortAvailableForIp: (port: number, ip?: string) => Promise<unknown>;
|
|
3
|
-
export declare const ip2int: (ip: string) => number;
|
|
4
|
-
export declare const int2ip: (int: number) => string;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import { PortForwardingInfo, PortTunnel } from './port-tunnel';
|
|
4
|
-
import { ApiClientContextProvider } from '../../context';
|
|
5
|
-
import { ListServicesCall } from '../../endpoints/list/services';
|
|
6
|
-
import { ListAddonsCall } from '../../endpoints/list/addons';
|
|
7
|
-
export interface NorthflankPortForwarder {
|
|
8
|
-
on(event: 'connection-accept', listener: (tunnel: PortTunnel) => any): any;
|
|
9
|
-
on(event: 'connection-close', listener: (tunnel: PortTunnel) => any): any;
|
|
10
|
-
on(event: 'connection-error', listener: (tunnel: PortTunnel, data: PortForwardingInfo, error: any) => any): any;
|
|
11
|
-
on(event: 'tunnel-open', listener: (tunnel: PortTunnel, data: PortForwardingInfo) => any): any;
|
|
12
|
-
on(event: 'tunnel-close', listener: (tunnel: PortTunnel, data: PortForwardingInfo) => any): any;
|
|
13
|
-
}
|
|
14
|
-
export declare type PortForwardingResult = {
|
|
15
|
-
data: PortForwardingInfo;
|
|
16
|
-
error?: never;
|
|
17
|
-
} | {
|
|
18
|
-
data?: never;
|
|
19
|
-
error: {
|
|
20
|
-
message: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare class NorthflankPortForwarder extends EventEmitter {
|
|
24
|
-
private readonly contextProvider;
|
|
25
|
-
private readonly listServices;
|
|
26
|
-
private readonly listAddons;
|
|
27
|
-
private nextIpAddress?;
|
|
28
|
-
private connections;
|
|
29
|
-
private proxyApiClient;
|
|
30
|
-
private hostsFileMutex;
|
|
31
|
-
private ipAllocationMutex;
|
|
32
|
-
constructor(contextProvider: ApiClientContextProvider, listServices: ListServicesCall, listAddons: ListAddonsCall);
|
|
33
|
-
withProjectForwarding<T = any>(parameters: {
|
|
34
|
-
projectId: string;
|
|
35
|
-
}, func: (p: {
|
|
36
|
-
services: PortForwardingResult[][];
|
|
37
|
-
addons: PortForwardingResult[][];
|
|
38
|
-
}) => Promise<T>, ipOnly?: boolean): Promise<T>;
|
|
39
|
-
forwardProject(parameters: {
|
|
40
|
-
projectId: string;
|
|
41
|
-
}, ipOnly?: boolean): Promise<{
|
|
42
|
-
services: PortForwardingResult[][];
|
|
43
|
-
addons: PortForwardingResult[][];
|
|
44
|
-
}>;
|
|
45
|
-
withServiceForwarding<T = any>(parameters: {
|
|
46
|
-
projectId: string;
|
|
47
|
-
serviceId: string;
|
|
48
|
-
}, func: (p: PortForwardingResult[]) => Promise<T>, ipOnly?: boolean): Promise<T>;
|
|
49
|
-
forwardService(parameters: {
|
|
50
|
-
projectId: string;
|
|
51
|
-
serviceId: string;
|
|
52
|
-
}, ipOnly?: boolean): Promise<PortForwardingResult[]>;
|
|
53
|
-
withAddonForwarding<T = any>(parameters: {
|
|
54
|
-
projectId: string;
|
|
55
|
-
addonId: string;
|
|
56
|
-
}, func: (p: PortForwardingResult[]) => Promise<T>, ipOnly?: boolean): Promise<T>;
|
|
57
|
-
forwardAddon(parameters: {
|
|
58
|
-
projectId: string;
|
|
59
|
-
addonId: string;
|
|
60
|
-
}, ipOnly?: boolean): Promise<PortForwardingResult[]>;
|
|
61
|
-
private allocateIpAddress;
|
|
62
|
-
private forwardPort;
|
|
63
|
-
private determineSocketAddress;
|
|
64
|
-
private registerHostnames;
|
|
65
|
-
private unregisterHostnames;
|
|
66
|
-
private modifyHostsFile;
|
|
67
|
-
stopProjectForwarding(opts: {
|
|
68
|
-
projectId: string;
|
|
69
|
-
}): Promise<void>;
|
|
70
|
-
stopServiceForwarding(opts: {
|
|
71
|
-
projectId: string;
|
|
72
|
-
serviceId: string;
|
|
73
|
-
}): Promise<void>;
|
|
74
|
-
stopAddonForwarding(opts: {
|
|
75
|
-
projectId: string;
|
|
76
|
-
addonId: string;
|
|
77
|
-
}): Promise<void>;
|
|
78
|
-
private stopForwarding;
|
|
79
|
-
stop(): Promise<void>;
|
|
80
|
-
canExecuteWithHostnames: () => {
|
|
81
|
-
error: boolean;
|
|
82
|
-
message?: string | undefined;
|
|
83
|
-
type?: "windows-admin" | "unix-admin" | undefined;
|
|
84
|
-
};
|
|
85
|
-
private assertStartedWithNodejs;
|
|
86
|
-
}
|
|
87
|
-
export declare const retry: (retries: number, retryDelay?: number) => (action: () => any) => Promise<any>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import { PortTunnel } from './port-tunnel';
|
|
4
|
-
export declare class PortTunnelTcp extends EventEmitter implements PortTunnel {
|
|
5
|
-
private readonly endpoint;
|
|
6
|
-
private readonly headers;
|
|
7
|
-
private readonly rewriteHostHeader?;
|
|
8
|
-
private readonly bindToAssign?;
|
|
9
|
-
private readonly closeTimeout;
|
|
10
|
-
private readonly tcpServer;
|
|
11
|
-
readonly protocol = "TCP";
|
|
12
|
-
private readonly hostRegex;
|
|
13
|
-
private readonly openConnections;
|
|
14
|
-
private boundTo?;
|
|
15
|
-
constructor(endpoint: string, headers: {
|
|
16
|
-
[_: string]: string;
|
|
17
|
-
}, rewriteHostHeader?: {
|
|
18
|
-
altHostnames: string[];
|
|
19
|
-
targetHostname: string;
|
|
20
|
-
} | undefined, bindToAssign?: {
|
|
21
|
-
address: string;
|
|
22
|
-
port: number;
|
|
23
|
-
} | undefined, closeTimeout?: number);
|
|
24
|
-
get bindTo(): {
|
|
25
|
-
address: string;
|
|
26
|
-
port: number;
|
|
27
|
-
} | undefined;
|
|
28
|
-
open(): Promise<{
|
|
29
|
-
address: string;
|
|
30
|
-
port: number;
|
|
31
|
-
}>;
|
|
32
|
-
close(): Promise<void>;
|
|
33
|
-
private handleConnection;
|
|
34
|
-
/** rewrite host header which can lead to issues when request coming from a different hostname */
|
|
35
|
-
private getHeaderTransform;
|
|
36
|
-
}
|