@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,161 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
2
|
-
export declare type CreateServiceBuildResult = {
|
|
3
|
-
/** Identifier for the service Example: "example-service" */
|
|
4
|
-
'id': string;
|
|
5
|
-
/** Full identifier used for service deployment Example: "/example-user/default-project/example-service" */
|
|
6
|
-
'appId': string;
|
|
7
|
-
/** Service name Example: "Example Service" */
|
|
8
|
-
'name': string;
|
|
9
|
-
/** A short description of the service Example: "This is the service description" */
|
|
10
|
-
'description'?: string;
|
|
11
|
-
/** ID of the project that the service belongs to Example: "default-project" */
|
|
12
|
-
'projectId': string;
|
|
13
|
-
/** The time the service was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
14
|
-
'createdAt': string;
|
|
15
|
-
/** Whether Continuous Integration is disabled */
|
|
16
|
-
'disabledCI': boolean;
|
|
17
|
-
/** Whether Continuous Deployment is disabled */
|
|
18
|
-
'disabledCD': boolean;
|
|
19
|
-
'billing': {
|
|
20
|
-
/** ID of the billing plan used by this service Example: "nf-compute-20" */
|
|
21
|
-
'deploymentPlan': string;
|
|
22
|
-
};
|
|
23
|
-
/** Details about the current service status. */
|
|
24
|
-
'status': {
|
|
25
|
-
/** Details about the status of the most recent build. */
|
|
26
|
-
'build'?: {
|
|
27
|
-
/** The current status of the build. Example: "SUCCESS" */
|
|
28
|
-
'status': 'PENDING' | 'STARTING' | 'CLONING' | 'BUILDING' | 'UPLOADING' | 'ABORTED' | 'FAILURE' | 'SUCCESS' | 'CRASHED';
|
|
29
|
-
/** The timestamp of when the build reached this status. Example: "2021-11-29T11:47:16.624Z" */
|
|
30
|
-
'lastTransitionTime'?: string;
|
|
31
|
-
};
|
|
32
|
-
/** Details about the current deployment status. */
|
|
33
|
-
'deployment'?: {
|
|
34
|
-
/** The current status of the deployment. Example: "COMPLETED" */
|
|
35
|
-
'status': 'IN_PROGRESS' | 'COMPLETED';
|
|
36
|
-
/** The reason the current deployment was started. Example: "DEPLOYING" */
|
|
37
|
-
'reason': 'SCALING' | 'DEPLOYING';
|
|
38
|
-
/** The timestamp of when the deployment reached this status. Example: "2021-11-29T11:47:16.624Z" */
|
|
39
|
-
'lastTransitionTime'?: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/** Is the service paused? */
|
|
43
|
-
'servicePaused': boolean;
|
|
44
|
-
/** Type of the service (combined, build or deployment) Example: "build" */
|
|
45
|
-
'serviceType': 'combined' | 'build' | 'deployment';
|
|
46
|
-
'vcsData'?: {
|
|
47
|
-
/** URL of the repository being built Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
48
|
-
'projectUrl': string;
|
|
49
|
-
/** VCS provider for the repo being built Example: "github" */
|
|
50
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
51
|
-
/** ID of the self-hosted VCS, if applicable. Example: "example-team/self-hosted-vcs" */
|
|
52
|
-
'selfHostedVcsId'?: string;
|
|
53
|
-
/** Branch of the repo being built Example: "master" */
|
|
54
|
-
'projectBranch'?: string;
|
|
55
|
-
/** Whether the repo is being accessed without authentication. */
|
|
56
|
-
'publicRepo'?: boolean;
|
|
57
|
-
/** Working directory used by the dockerfile Example: "/" */
|
|
58
|
-
'dockerWorkDir': string;
|
|
59
|
-
/** File path of the Dockerfile Example: "/Dockerfile" */
|
|
60
|
-
'dockerFilePath': string;
|
|
61
|
-
};
|
|
62
|
-
'buildConfiguration'?: {
|
|
63
|
-
'branchRestrictions'?: string[];
|
|
64
|
-
'prRestrictions'?: string[];
|
|
65
|
-
'pathIgnoreRules': string[];
|
|
66
|
-
};
|
|
67
|
-
'buildEngineConfiguration': {
|
|
68
|
-
/** The build engine used. Example: "buildpack" */
|
|
69
|
-
'buildEngine'?: 'buildpack' | 'kaniko' | 'buildkit';
|
|
70
|
-
/** Details about Buildpack settings. */
|
|
71
|
-
'buildpack'?: {
|
|
72
|
-
/** The Buildpack stack used. Example: "HEROKU_20" */
|
|
73
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY' | 'PAKETO_BASE' | 'PAKETO_FULL';
|
|
74
|
-
/** Array of custom Buildpacks used. */
|
|
75
|
-
'buildpackLocators'?: string[];
|
|
76
|
-
/** Should build dependencies be cached? */
|
|
77
|
-
'useCache'?: boolean;
|
|
78
|
-
};
|
|
79
|
-
/** Details about Buildkit settings. */
|
|
80
|
-
'buildkit'?: {
|
|
81
|
-
/** Should intermediate image layers be cached? */
|
|
82
|
-
'useCache'?: boolean;
|
|
83
|
-
};
|
|
84
|
-
/** Details about Kaniko settings. */
|
|
85
|
-
'kaniko'?: {
|
|
86
|
-
/** Should intermediate image layers be cached? */
|
|
87
|
-
'useCache'?: boolean;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
} | any;
|
|
91
|
-
export declare type CreateServiceBuildCall = (opts: CreateServiceBuildRequest) => Promise<ApiCallResponse<CreateServiceBuildResult>>;
|
|
92
|
-
export declare type CreateServiceBuildRequest = {
|
|
93
|
-
parameters: CreateServiceBuildParameters;
|
|
94
|
-
data: CreateServiceBuildData;
|
|
95
|
-
};
|
|
96
|
-
export declare type CreateServiceBuildParameters = {
|
|
97
|
-
/** ID of the project */ 'projectId': string;
|
|
98
|
-
};
|
|
99
|
-
export declare type CreateServiceBuildData = {
|
|
100
|
-
/** The name of the service. Example: "Example Service" */
|
|
101
|
-
'name': string;
|
|
102
|
-
/** A description of the service. Example: "A service description" */
|
|
103
|
-
'description'?: string;
|
|
104
|
-
'billing': {
|
|
105
|
-
/** The ID of the deployment plan to use. Example: "nf-compute-20" */
|
|
106
|
-
'deploymentPlan': string;
|
|
107
|
-
};
|
|
108
|
-
'vcsData': {
|
|
109
|
-
/** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
110
|
-
'projectUrl': string;
|
|
111
|
-
/** The VCS provider to use. Example: "github" */
|
|
112
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
113
|
-
/** If projectType is self-hosted, the ID of the self-hosted vcs to use. */
|
|
114
|
-
'selfHostedVcsId'?: string;
|
|
115
|
-
/** By default, if you have multiple version control accounts of the same provider linked, Northflank will pick a linked account that has access to the repository. If `accountLogin` is provided, Northflank will instead use your linked account with that login name. Example: "github-user" */
|
|
116
|
-
'accountLogin'?: string;
|
|
117
|
-
};
|
|
118
|
-
'buildSettings': {
|
|
119
|
-
'dockerfile': {
|
|
120
|
-
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
121
|
-
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
122
|
-
/** Should intermediate image layers be cached? */
|
|
123
|
-
'useCache'?: boolean;
|
|
124
|
-
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
125
|
-
'dockerFilePath': string;
|
|
126
|
-
/** The working directory of the Dockerfile. Example: "/" */
|
|
127
|
-
'dockerWorkDir': string;
|
|
128
|
-
};
|
|
129
|
-
} | {
|
|
130
|
-
'buildpack': {
|
|
131
|
-
/** Buildpack stack to use. Defaults to recommended stack `HEROKU_20`. Example: "HEROKU_20" */
|
|
132
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY' | 'PAKETO_BASE' | 'PAKETO_FULL';
|
|
133
|
-
/** Array of custom Buildpacks to use. */
|
|
134
|
-
'buildpackLocators'?: string[];
|
|
135
|
-
/** The working directory to build in. Example: "/" */
|
|
136
|
-
'buildContext'?: string;
|
|
137
|
-
/** Should build dependencies be cached? */
|
|
138
|
-
'useCache'?: boolean;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
'buildConfiguration'?: {
|
|
142
|
-
/** An array of pull request build rules. Only supported for build services. Each commit belonging to a pull request on a branch that matches one of the provided build rules will be built automatically. */
|
|
143
|
-
'prRestrictions'?: string[];
|
|
144
|
-
/** An array of branch build rules. Only supported for build services. Each commit belonging to a branch that matches one of the provided build rules will be built automatically. */
|
|
145
|
-
'branchRestrictions'?: string[];
|
|
146
|
-
/** An array of path ignore rules. A commit will only be built if a file has been changed that does not match any of the ignore rules. Path ignore rules follow `.gitignore` syntax. */
|
|
147
|
-
'pathIgnoreRules'?: string[];
|
|
148
|
-
};
|
|
149
|
-
/** An object containing the build arguments to set for the service Example: {"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"} */
|
|
150
|
-
'buildArguments'?: any;
|
|
151
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
152
|
-
'buildFiles'?: any;
|
|
153
|
-
};
|
|
154
|
-
/** Creates a new build service. */
|
|
155
|
-
export declare class CreateServiceBuildEndpoint extends PostApiEndpoint<CreateServiceBuildRequest, CreateServiceBuildResult> {
|
|
156
|
-
description: string;
|
|
157
|
-
withAuth: boolean;
|
|
158
|
-
requiredPermissions: string;
|
|
159
|
-
endpointUrl: (opts: CreateServiceBuildRequest) => string;
|
|
160
|
-
body: (payload: CreateServiceBuildRequest) => string;
|
|
161
|
-
}
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
2
|
-
export declare type CreateServiceCombinedResult = {
|
|
3
|
-
/** Identifier for the service Example: "example-service" */
|
|
4
|
-
'id': string;
|
|
5
|
-
/** Full identifier used for service deployment Example: "/example-user/default-project/example-service" */
|
|
6
|
-
'appId': string;
|
|
7
|
-
/** Service name Example: "Example Service" */
|
|
8
|
-
'name': string;
|
|
9
|
-
/** A short description of the service Example: "This is the service description" */
|
|
10
|
-
'description'?: string;
|
|
11
|
-
/** ID of the project that the service belongs to Example: "default-project" */
|
|
12
|
-
'projectId': string;
|
|
13
|
-
/** The time the service was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
14
|
-
'createdAt': string;
|
|
15
|
-
/** Whether Continuous Integration is disabled */
|
|
16
|
-
'disabledCI': boolean;
|
|
17
|
-
/** Whether Continuous Deployment is disabled */
|
|
18
|
-
'disabledCD': boolean;
|
|
19
|
-
'billing': {
|
|
20
|
-
/** ID of the billing plan used by this service Example: "nf-compute-20" */
|
|
21
|
-
'deploymentPlan': string;
|
|
22
|
-
};
|
|
23
|
-
/** Details about the current service status. */
|
|
24
|
-
'status': {
|
|
25
|
-
/** Details about the status of the most recent build. */
|
|
26
|
-
'build'?: {
|
|
27
|
-
/** The current status of the build. Example: "SUCCESS" */
|
|
28
|
-
'status': 'PENDING' | 'STARTING' | 'CLONING' | 'BUILDING' | 'UPLOADING' | 'ABORTED' | 'FAILURE' | 'SUCCESS' | 'CRASHED';
|
|
29
|
-
/** The timestamp of when the build reached this status. Example: "2021-11-29T11:47:16.624Z" */
|
|
30
|
-
'lastTransitionTime'?: string;
|
|
31
|
-
};
|
|
32
|
-
/** Details about the current deployment status. */
|
|
33
|
-
'deployment'?: {
|
|
34
|
-
/** The current status of the deployment. Example: "COMPLETED" */
|
|
35
|
-
'status': 'IN_PROGRESS' | 'COMPLETED';
|
|
36
|
-
/** The reason the current deployment was started. Example: "DEPLOYING" */
|
|
37
|
-
'reason': 'SCALING' | 'DEPLOYING';
|
|
38
|
-
/** The timestamp of when the deployment reached this status. Example: "2021-11-29T11:47:16.624Z" */
|
|
39
|
-
'lastTransitionTime'?: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/** Is the service paused? */
|
|
43
|
-
'servicePaused': boolean;
|
|
44
|
-
/** Type of the service (combined, build or deployment) Example: "combined" */
|
|
45
|
-
'serviceType': 'combined' | 'build' | 'deployment';
|
|
46
|
-
'vcsData'?: {
|
|
47
|
-
/** URL of the repository being built Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
48
|
-
'projectUrl': string;
|
|
49
|
-
/** VCS provider for the repo being built Example: "github" */
|
|
50
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
51
|
-
/** ID of the self-hosted VCS, if applicable. Example: "example-team/self-hosted-vcs" */
|
|
52
|
-
'selfHostedVcsId'?: string;
|
|
53
|
-
/** Branch of the repo being built Example: "master" */
|
|
54
|
-
'projectBranch'?: string;
|
|
55
|
-
/** Whether the repo is being accessed without authentication. */
|
|
56
|
-
'publicRepo'?: boolean;
|
|
57
|
-
/** Working directory used by the dockerfile Example: "/" */
|
|
58
|
-
'dockerWorkDir': string;
|
|
59
|
-
/** File path of the Dockerfile Example: "/Dockerfile" */
|
|
60
|
-
'dockerFilePath': string;
|
|
61
|
-
};
|
|
62
|
-
'deployment'?: {
|
|
63
|
-
/** Region where this service is deployed and/or built Example: "europe-west" */
|
|
64
|
-
'region'?: string;
|
|
65
|
-
/** Number of instances/replicas running Example: 1 */
|
|
66
|
-
'instances'?: number;
|
|
67
|
-
'internal'?: {
|
|
68
|
-
/** Database ID of deployed entity Example: "example-service" */
|
|
69
|
-
'nfObjectId': string;
|
|
70
|
-
/** Type of deployed entity Example: "service" */
|
|
71
|
-
'nfObjectType': 'service';
|
|
72
|
-
/** URL of the repository being deployed Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
73
|
-
'repository': string;
|
|
74
|
-
/** Branch of the repo being deployed Example: "master" */
|
|
75
|
-
'branch': string;
|
|
76
|
-
/** Commit SHA to be deployed. `latest` means the latest commit is automatically being deployed. Example: "latest" */
|
|
77
|
-
'buildSHA': string;
|
|
78
|
-
/** Currently deployed commit SHA. If buildSHA is set to `latest`, this will show the SHA of the latest commit. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
79
|
-
'deployedSHA'?: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
'buildConfiguration': {
|
|
83
|
-
/** An array of path ignore rules. A commit will only be built if a file has been changed that does not match any of the ignore rules. Path ignore rules follow `.gitignore` syntax. */
|
|
84
|
-
'pathIgnoreRules'?: string[];
|
|
85
|
-
};
|
|
86
|
-
'buildEngineConfiguration': {
|
|
87
|
-
/** The build engine used. Example: "buildpack" */
|
|
88
|
-
'buildEngine'?: 'buildpack' | 'kaniko' | 'buildkit';
|
|
89
|
-
/** Details about Buildpack settings. */
|
|
90
|
-
'buildpack'?: {
|
|
91
|
-
/** The Buildpack stack used. Example: "HEROKU_20" */
|
|
92
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY' | 'PAKETO_BASE' | 'PAKETO_FULL';
|
|
93
|
-
/** Array of custom Buildpacks used. */
|
|
94
|
-
'buildpackLocators'?: string[];
|
|
95
|
-
/** Should build dependencies be cached? */
|
|
96
|
-
'useCache'?: boolean;
|
|
97
|
-
};
|
|
98
|
-
/** Details about Buildkit settings. */
|
|
99
|
-
'buildkit'?: {
|
|
100
|
-
/** Should intermediate image layers be cached? */
|
|
101
|
-
'useCache'?: boolean;
|
|
102
|
-
};
|
|
103
|
-
/** Details about Kaniko settings. */
|
|
104
|
-
'kaniko'?: {
|
|
105
|
-
/** Should intermediate image layers be cached? */
|
|
106
|
-
'useCache'?: boolean;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
/** Whether the service will be built immediately Example: true */
|
|
110
|
-
'buildInitiated': boolean;
|
|
111
|
-
/** The ID of the initial build of the service. Example: "joyous-view-6290" */
|
|
112
|
-
'buildId'?: string;
|
|
113
|
-
} | any;
|
|
114
|
-
export declare type CreateServiceCombinedCall = (opts: CreateServiceCombinedRequest) => Promise<ApiCallResponse<CreateServiceCombinedResult>>;
|
|
115
|
-
export declare type CreateServiceCombinedRequest = {
|
|
116
|
-
parameters: CreateServiceCombinedParameters;
|
|
117
|
-
data: CreateServiceCombinedData;
|
|
118
|
-
};
|
|
119
|
-
export declare type CreateServiceCombinedParameters = {
|
|
120
|
-
/** ID of the project */ 'projectId': string;
|
|
121
|
-
};
|
|
122
|
-
export declare type CreateServiceCombinedData = {
|
|
123
|
-
/** The name of the service. Example: "Example Service" */
|
|
124
|
-
'name': string;
|
|
125
|
-
/** A description of the service. Example: "A service description" */
|
|
126
|
-
'description'?: string;
|
|
127
|
-
'billing': {
|
|
128
|
-
/** The ID of the deployment plan to use. Example: "nf-compute-20" */
|
|
129
|
-
'deploymentPlan': string;
|
|
130
|
-
};
|
|
131
|
-
'deployment': {
|
|
132
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
133
|
-
'instances': number;
|
|
134
|
-
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
135
|
-
'cmdOverride'?: string;
|
|
136
|
-
/** If set, the service runs a custom entrypoint rather than one defined in the Dockerfile. Example: "/custom-entrypoint.sh" */
|
|
137
|
-
'entrypointOverride'?: string;
|
|
138
|
-
'storage'?: {
|
|
139
|
-
'ephemeralStorage'?: {
|
|
140
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
141
|
-
'storageSize'?: number;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
'ports'?: {
|
|
146
|
-
/** The name used to identify the port. Example: "port-1" */
|
|
147
|
-
'name': string;
|
|
148
|
-
/** The port number. Example: 8080 */
|
|
149
|
-
'internalPort': number;
|
|
150
|
-
/** If true, the port will be exposed publicly. Example: true */
|
|
151
|
-
'public'?: boolean;
|
|
152
|
-
'security'?: {
|
|
153
|
-
/** An array of credentials to access the service. */
|
|
154
|
-
'credentials'?: {
|
|
155
|
-
/** The username to access the service Example: "admin" */
|
|
156
|
-
'username': string;
|
|
157
|
-
/** The password to access the service with this username. Example: "password123" */
|
|
158
|
-
'password': string;
|
|
159
|
-
/** The type of authentication used Example: "basic-auth" */
|
|
160
|
-
'type': 'basic-auth';
|
|
161
|
-
}[];
|
|
162
|
-
/** An array of IP address policies. */
|
|
163
|
-
'policies'?: {
|
|
164
|
-
/** An array of IP addresses used for this rule */
|
|
165
|
-
'addresses': string[];
|
|
166
|
-
/** The action for this rule. Example: "DENY" */
|
|
167
|
-
'action': 'ALLOW' | 'DENY';
|
|
168
|
-
}[];
|
|
169
|
-
};
|
|
170
|
-
/** An array of domains to redirect to this port. Each domain must first be verified and registered to your account. */
|
|
171
|
-
'domains'?: string[];
|
|
172
|
-
/** Disable routing on the default code.run domain for public HTTP ports with custom domains. */
|
|
173
|
-
'disableNfDomain'?: boolean;
|
|
174
|
-
/** The protocol to use for the port. Example: "HTTP" */
|
|
175
|
-
'protocol': 'HTTP' | 'HTTP/2' | 'TCP' | 'UDP';
|
|
176
|
-
}[];
|
|
177
|
-
'vcsData': {
|
|
178
|
-
/** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
179
|
-
'projectUrl': string;
|
|
180
|
-
/** The VCS provider to use. Example: "github" */
|
|
181
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
182
|
-
/** If projectType is self-hosted, the ID of the self-hosted vcs to use. */
|
|
183
|
-
'selfHostedVcsId'?: string;
|
|
184
|
-
/** By default, if you have multiple version control accounts of the same provider linked, Northflank will pick a linked account that has access to the repository. If `accountLogin` is provided, Northflank will instead use your linked account with that login name. Example: "github-user" */
|
|
185
|
-
'accountLogin'?: string;
|
|
186
|
-
/** The name of the branch to use. Example: "master" */
|
|
187
|
-
'projectBranch': string;
|
|
188
|
-
};
|
|
189
|
-
'buildSettings': {
|
|
190
|
-
'dockerfile': {
|
|
191
|
-
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
192
|
-
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
193
|
-
/** Should intermediate image layers be cached? */
|
|
194
|
-
'useCache'?: boolean;
|
|
195
|
-
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
196
|
-
'dockerFilePath': string;
|
|
197
|
-
/** The working directory of the Dockerfile. Example: "/" */
|
|
198
|
-
'dockerWorkDir': string;
|
|
199
|
-
};
|
|
200
|
-
} | {
|
|
201
|
-
'buildpack': {
|
|
202
|
-
/** Buildpack stack to use. Defaults to recommended stack `HEROKU_20`. Example: "HEROKU_20" */
|
|
203
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY' | 'PAKETO_BASE' | 'PAKETO_FULL';
|
|
204
|
-
/** Array of custom Buildpacks to use. */
|
|
205
|
-
'buildpackLocators'?: string[];
|
|
206
|
-
/** The working directory to build in. Example: "/" */
|
|
207
|
-
'buildContext'?: string;
|
|
208
|
-
/** Should build dependencies be cached? */
|
|
209
|
-
'useCache'?: boolean;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
'buildConfiguration'?: {
|
|
213
|
-
/** An array of path ignore rules. A commit will only be built if a file has been changed that does not match any of the ignore rules. Path ignore rules follow `.gitignore` syntax. */
|
|
214
|
-
'pathIgnoreRules'?: string[];
|
|
215
|
-
};
|
|
216
|
-
/** An object containing the runtime environment 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"} */
|
|
217
|
-
'runtimeEnvironment'?: any;
|
|
218
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
219
|
-
'runtimeFiles'?: any;
|
|
220
|
-
/** An object containing the build arguments to set for the service. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"} */
|
|
221
|
-
'buildArguments'?: any;
|
|
222
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
223
|
-
'buildFiles'?: any;
|
|
224
|
-
/** An array of health checks. */
|
|
225
|
-
'healthChecks'?: {
|
|
226
|
-
/** The protocol to access the health check with. Example: "HTTP" */
|
|
227
|
-
'protocol': 'HTTP' | 'CMD' | 'TCP';
|
|
228
|
-
/** The type of health check. Example: "readinessProbe" */
|
|
229
|
-
'type': 'livenessProbe' | 'readinessProbe' | 'startupProbe';
|
|
230
|
-
/** The path of the health check endpoint. Required when protocol is HTTP. Example: "/health-check" */
|
|
231
|
-
'path'?: string;
|
|
232
|
-
/** The command to run for the health check. Required when protocol is CMD */
|
|
233
|
-
'cmd'?: string;
|
|
234
|
-
/** Port number for the health check endpoint. Required when protocol is HTTP. Example: 8080 */
|
|
235
|
-
'port'?: number;
|
|
236
|
-
/** Initial delay, in seconds, before the health check is first run. Example: 10 */
|
|
237
|
-
'initialDelaySeconds': number;
|
|
238
|
-
/** The time between each check, in seconds. Example: 60 */
|
|
239
|
-
'periodSeconds': number;
|
|
240
|
-
/** The time to wait for a response before marking the health check as a failure. Example: 1 */
|
|
241
|
-
'timeoutSeconds': number;
|
|
242
|
-
/** The maximum number of allowed failures. Example: 3 */
|
|
243
|
-
'failureThreshold': number;
|
|
244
|
-
/** The number of successes required to mark the health check as a success. Example: 1 */
|
|
245
|
-
'successThreshold'?: number;
|
|
246
|
-
}[];
|
|
247
|
-
};
|
|
248
|
-
/** Creates a new combined service. */
|
|
249
|
-
export declare class CreateServiceCombinedEndpoint extends PostApiEndpoint<CreateServiceCombinedRequest, CreateServiceCombinedResult> {
|
|
250
|
-
description: string;
|
|
251
|
-
withAuth: boolean;
|
|
252
|
-
requiredPermissions: string;
|
|
253
|
-
endpointUrl: (opts: CreateServiceCombinedRequest) => string;
|
|
254
|
-
body: (payload: CreateServiceCombinedRequest) => string;
|
|
255
|
-
}
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
2
|
-
export declare type CreateServiceDeploymentResult = {
|
|
3
|
-
/** Identifier for the service Example: "example-service" */
|
|
4
|
-
'id': string;
|
|
5
|
-
/** Full identifier used for service deployment Example: "/example-user/default-project/example-service" */
|
|
6
|
-
'appId': string;
|
|
7
|
-
/** Service name Example: "Example Service" */
|
|
8
|
-
'name': string;
|
|
9
|
-
/** A short description of the service Example: "This is the service description" */
|
|
10
|
-
'description'?: string;
|
|
11
|
-
/** ID of the project that the service belongs to Example: "default-project" */
|
|
12
|
-
'projectId': string;
|
|
13
|
-
/** The time the service was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
14
|
-
'createdAt': string;
|
|
15
|
-
/** Whether Continuous Integration is disabled */
|
|
16
|
-
'disabledCI': boolean;
|
|
17
|
-
/** Whether Continuous Deployment is disabled */
|
|
18
|
-
'disabledCD': boolean;
|
|
19
|
-
'billing': {
|
|
20
|
-
/** ID of the billing plan used by this service Example: "nf-compute-20" */
|
|
21
|
-
'deploymentPlan': string;
|
|
22
|
-
};
|
|
23
|
-
/** Details about the current service status. */
|
|
24
|
-
'status': {
|
|
25
|
-
/** Details about the status of the most recent build. */
|
|
26
|
-
'build'?: {
|
|
27
|
-
/** The current status of the build. Example: "SUCCESS" */
|
|
28
|
-
'status': 'PENDING' | 'STARTING' | 'CLONING' | 'BUILDING' | 'UPLOADING' | 'ABORTED' | 'FAILURE' | 'SUCCESS' | 'CRASHED';
|
|
29
|
-
/** The timestamp of when the build reached this status. Example: "2021-11-29T11:47:16.624Z" */
|
|
30
|
-
'lastTransitionTime'?: string;
|
|
31
|
-
};
|
|
32
|
-
/** Details about the current deployment status. */
|
|
33
|
-
'deployment'?: {
|
|
34
|
-
/** The current status of the deployment. Example: "COMPLETED" */
|
|
35
|
-
'status': 'IN_PROGRESS' | 'COMPLETED';
|
|
36
|
-
/** The reason the current deployment was started. Example: "DEPLOYING" */
|
|
37
|
-
'reason': 'SCALING' | 'DEPLOYING';
|
|
38
|
-
/** The timestamp of when the deployment reached this status. Example: "2021-11-29T11:47:16.624Z" */
|
|
39
|
-
'lastTransitionTime'?: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/** Is the service paused? */
|
|
43
|
-
'servicePaused': boolean;
|
|
44
|
-
/** Type of the service (combined, build or deployment) Example: "deployment" */
|
|
45
|
-
'serviceType': 'combined' | 'build' | 'deployment';
|
|
46
|
-
'deployment'?: {
|
|
47
|
-
/** Region where this service is deployed and/or built Example: "europe-west" */
|
|
48
|
-
'region'?: string;
|
|
49
|
-
/** Number of instances/replicas running Example: 1 */
|
|
50
|
-
'instances'?: number;
|
|
51
|
-
/** Data about a deployment from an external registry. */
|
|
52
|
-
'external'?: {
|
|
53
|
-
/** Path of the external image excluding the hostname */
|
|
54
|
-
'imagePath': string;
|
|
55
|
-
/** Registry provider hosting the external image */
|
|
56
|
-
'registryProvider': 'dockerhub' | 'gcr' | 'gcr-eu' | 'gcr-us' | 'gitlab' | 'github' | 'custom';
|
|
57
|
-
/** Does the image require authentication */
|
|
58
|
-
'privateImage': boolean;
|
|
59
|
-
};
|
|
60
|
-
'internal'?: {
|
|
61
|
-
/** Database ID of deployed entity Example: "example-service" */
|
|
62
|
-
'nfObjectId': string;
|
|
63
|
-
/** Type of deployed entity Example: "service" */
|
|
64
|
-
'nfObjectType': 'service';
|
|
65
|
-
/** URL of the repository being deployed Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
66
|
-
'repository': string;
|
|
67
|
-
/** Branch of the repo being deployed Example: "master" */
|
|
68
|
-
'branch': string;
|
|
69
|
-
/** Commit SHA to be deployed. `latest` means the latest commit is automatically being deployed. Example: "latest" */
|
|
70
|
-
'buildSHA': string;
|
|
71
|
-
/** Currently deployed commit SHA. If buildSHA is set to `latest`, this will show the SHA of the latest commit. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
72
|
-
'deployedSHA'?: string;
|
|
73
|
-
};
|
|
74
|
-
/** Details about the Docker overrides for this deployment. */
|
|
75
|
-
'docker'?: {
|
|
76
|
-
/** Details about the CMD override for this deployment. */
|
|
77
|
-
'cmd': {
|
|
78
|
-
/** Whether the CMD override is enabled. Example: true */
|
|
79
|
-
'enabled': boolean;
|
|
80
|
-
/** The CMD to run instead of the default if CMD override is enabled. Example: "nginx -g" */
|
|
81
|
-
'value': string;
|
|
82
|
-
};
|
|
83
|
-
/** Details about the entrypoint override for this deployment. */
|
|
84
|
-
'entrypoint': {
|
|
85
|
-
/** Whether the entrypoint override is enabled. Example: true */
|
|
86
|
-
'enabled': boolean;
|
|
87
|
-
/** The CMD to run instead of the default if entrypoint override is enabled. Example: "/docker-entrypoint.sh" */
|
|
88
|
-
'value': string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
/** Details about storage settings for this deployment. */
|
|
92
|
-
'storage'?: {
|
|
93
|
-
/** Details about ephemeral storage settings for this deployment. */
|
|
94
|
-
'ephemeralStorage'?: {
|
|
95
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
96
|
-
'storageSize': number;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
} | any;
|
|
101
|
-
export declare type CreateServiceDeploymentCall = (opts: CreateServiceDeploymentRequest) => Promise<ApiCallResponse<CreateServiceDeploymentResult>>;
|
|
102
|
-
export declare type CreateServiceDeploymentRequest = {
|
|
103
|
-
parameters: CreateServiceDeploymentParameters;
|
|
104
|
-
data: CreateServiceDeploymentData;
|
|
105
|
-
};
|
|
106
|
-
export declare type CreateServiceDeploymentParameters = {
|
|
107
|
-
/** ID of the project */ 'projectId': string;
|
|
108
|
-
};
|
|
109
|
-
export declare type CreateServiceDeploymentData = {
|
|
110
|
-
/** The name of the service. Example: "Example Service" */
|
|
111
|
-
'name': string;
|
|
112
|
-
/** A description of the service. Example: "A service description" */
|
|
113
|
-
'description'?: string;
|
|
114
|
-
'billing': {
|
|
115
|
-
/** The ID of the deployment plan to use. Example: "nf-compute-20" */
|
|
116
|
-
'deploymentPlan': string;
|
|
117
|
-
};
|
|
118
|
-
/** Deployment type */
|
|
119
|
-
'deployment': {
|
|
120
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
121
|
-
'instances': number;
|
|
122
|
-
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
123
|
-
'cmdOverride'?: string;
|
|
124
|
-
/** If set, the service runs a custom entrypoint rather than one defined in the Dockerfile. Example: "/custom-entrypoint.sh" */
|
|
125
|
-
'entrypointOverride'?: string;
|
|
126
|
-
'storage'?: {
|
|
127
|
-
'ephemeralStorage'?: {
|
|
128
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
129
|
-
'storageSize'?: number;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
'internal': {
|
|
133
|
-
/** ID of the build service to deploy Example: "example-build-service" */
|
|
134
|
-
'id'?: string;
|
|
135
|
-
/** Branch to deploy Example: "master" */
|
|
136
|
-
'branch'?: string;
|
|
137
|
-
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
138
|
-
'buildSHA'?: string | 'latest';
|
|
139
|
-
/** ID of the build that should be deployed Example: "premium-guide-6393" */
|
|
140
|
-
'buildId'?: string;
|
|
141
|
-
};
|
|
142
|
-
} | {
|
|
143
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
144
|
-
'instances': number;
|
|
145
|
-
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
146
|
-
'cmdOverride'?: string;
|
|
147
|
-
/** If set, the service runs a custom entrypoint rather than one defined in the Dockerfile. Example: "/custom-entrypoint.sh" */
|
|
148
|
-
'entrypointOverride'?: string;
|
|
149
|
-
'storage'?: {
|
|
150
|
-
'ephemeralStorage'?: {
|
|
151
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
152
|
-
'storageSize'?: number;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
'external': {
|
|
156
|
-
/** Image to be deployed. When not deploying from Dockerhub the URL must be specified. Example: "nginx:latest" */
|
|
157
|
-
'imagePath': string;
|
|
158
|
-
/** ID of the saved credentials to use to access this external image. Example: "example-credentials" */
|
|
159
|
-
'credentials'?: string;
|
|
160
|
-
};
|
|
161
|
-
} | {
|
|
162
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
163
|
-
'instances': number;
|
|
164
|
-
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
165
|
-
'cmdOverride'?: string;
|
|
166
|
-
/** If set, the service runs a custom entrypoint rather than one defined in the Dockerfile. Example: "/custom-entrypoint.sh" */
|
|
167
|
-
'entrypointOverride'?: string;
|
|
168
|
-
'storage'?: {
|
|
169
|
-
'ephemeralStorage'?: {
|
|
170
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
171
|
-
'storageSize'?: number;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
'ports'?: {
|
|
176
|
-
/** The name used to identify the port. Example: "port-1" */
|
|
177
|
-
'name': string;
|
|
178
|
-
/** The port number. Example: 8080 */
|
|
179
|
-
'internalPort': number;
|
|
180
|
-
/** If true, the port will be exposed publicly. Example: true */
|
|
181
|
-
'public'?: boolean;
|
|
182
|
-
'security'?: {
|
|
183
|
-
/** An array of credentials to access the service. */
|
|
184
|
-
'credentials'?: {
|
|
185
|
-
/** The username to access the service Example: "admin" */
|
|
186
|
-
'username': string;
|
|
187
|
-
/** The password to access the service with this username. Example: "password123" */
|
|
188
|
-
'password': string;
|
|
189
|
-
/** The type of authentication used Example: "basic-auth" */
|
|
190
|
-
'type': 'basic-auth';
|
|
191
|
-
}[];
|
|
192
|
-
/** An array of IP address policies. */
|
|
193
|
-
'policies'?: {
|
|
194
|
-
/** An array of IP addresses used for this rule */
|
|
195
|
-
'addresses': string[];
|
|
196
|
-
/** The action for this rule. Example: "DENY" */
|
|
197
|
-
'action': 'ALLOW' | 'DENY';
|
|
198
|
-
}[];
|
|
199
|
-
};
|
|
200
|
-
/** An array of domains to redirect to this port. Each domain must first be verified and registered to your account. */
|
|
201
|
-
'domains'?: string[];
|
|
202
|
-
/** Disable routing on the default code.run domain for public HTTP ports with custom domains. */
|
|
203
|
-
'disableNfDomain'?: boolean;
|
|
204
|
-
/** The protocol to use for the port. Example: "HTTP" */
|
|
205
|
-
'protocol': 'HTTP' | 'HTTP/2' | 'TCP' | 'UDP';
|
|
206
|
-
}[];
|
|
207
|
-
/** An object containing the runtime environment to set for the service Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
208
|
-
'runtimeEnvironment'?: any;
|
|
209
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
210
|
-
'runtimeFiles'?: any;
|
|
211
|
-
/** An array of health checks. */
|
|
212
|
-
'healthChecks'?: {
|
|
213
|
-
/** The protocol to access the health check with. Example: "HTTP" */
|
|
214
|
-
'protocol': 'HTTP' | 'CMD' | 'TCP';
|
|
215
|
-
/** The type of health check. Example: "readinessProbe" */
|
|
216
|
-
'type': 'livenessProbe' | 'readinessProbe' | 'startupProbe';
|
|
217
|
-
/** The path of the health check endpoint. Required when protocol is HTTP. Example: "/health-check" */
|
|
218
|
-
'path'?: string;
|
|
219
|
-
/** The command to run for the health check. Required when protocol is CMD */
|
|
220
|
-
'cmd'?: string;
|
|
221
|
-
/** Port number for the health check endpoint. Required when protocol is HTTP. Example: 8080 */
|
|
222
|
-
'port'?: number;
|
|
223
|
-
/** Initial delay, in seconds, before the health check is first run. Example: 10 */
|
|
224
|
-
'initialDelaySeconds': number;
|
|
225
|
-
/** The time between each check, in seconds. Example: 60 */
|
|
226
|
-
'periodSeconds': number;
|
|
227
|
-
/** The time to wait for a response before marking the health check as a failure. Example: 1 */
|
|
228
|
-
'timeoutSeconds': number;
|
|
229
|
-
/** The maximum number of allowed failures. Example: 3 */
|
|
230
|
-
'failureThreshold': number;
|
|
231
|
-
/** The number of successes required to mark the health check as a success. Example: 1 */
|
|
232
|
-
'successThreshold'?: number;
|
|
233
|
-
}[];
|
|
234
|
-
};
|
|
235
|
-
/** Creates a new deployment service. */
|
|
236
|
-
export declare class CreateServiceDeploymentEndpoint extends PostApiEndpoint<CreateServiceDeploymentRequest, CreateServiceDeploymentResult> {
|
|
237
|
-
description: string;
|
|
238
|
-
withAuth: boolean;
|
|
239
|
-
requiredPermissions: string;
|
|
240
|
-
endpointUrl: (opts: CreateServiceDeploymentRequest) => string;
|
|
241
|
-
body: (payload: CreateServiceDeploymentRequest) => string;
|
|
242
|
-
}
|