@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,237 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
2
|
-
export declare type CreateJobManualResult = {
|
|
3
|
-
/** Identifier for the job Example: "example-job" */
|
|
4
|
-
'id': string;
|
|
5
|
-
/** Full identifier used for job deployment Example: "/example-user/default-project/example-job" */
|
|
6
|
-
'appId': string;
|
|
7
|
-
/** Job name Example: "Example Job" */
|
|
8
|
-
'name': string;
|
|
9
|
-
/** A short description of the job Example: "This is the job description" */
|
|
10
|
-
'description'?: string;
|
|
11
|
-
/** ID of the project that the job belongs to Example: "default-project" */
|
|
12
|
-
'projectId': string;
|
|
13
|
-
/** The time the job was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
14
|
-
'createdAt': string;
|
|
15
|
-
'vcsData'?: {
|
|
16
|
-
/** URL of the repository being built Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
17
|
-
'projectUrl': string;
|
|
18
|
-
/** VCS provider for the repo being built Example: "github" */
|
|
19
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
20
|
-
/** ID of the self-hosted VCS, if applicable. Example: "example-team/self-hosted-vcs" */
|
|
21
|
-
'selfHostedVcsId'?: string;
|
|
22
|
-
/** Branch of the repo being built Example: "master" */
|
|
23
|
-
'projectBranch'?: string;
|
|
24
|
-
/** Whether the repo is being accessed without authentication. */
|
|
25
|
-
'publicRepo'?: boolean;
|
|
26
|
-
/** Working directory used by the dockerfile Example: "/" */
|
|
27
|
-
'dockerWorkDir': string;
|
|
28
|
-
/** File path of the Dockerfile Example: "/Dockerfile" */
|
|
29
|
-
'dockerFilePath': string;
|
|
30
|
-
};
|
|
31
|
-
'buildConfiguration'?: {
|
|
32
|
-
/** 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. */
|
|
33
|
-
'pathIgnoreRules'?: string[];
|
|
34
|
-
};
|
|
35
|
-
'buildEngineConfiguration'?: {
|
|
36
|
-
/** The build engine used. Example: "buildpack" */
|
|
37
|
-
'buildEngine'?: 'buildpack' | 'kaniko' | 'buildkit';
|
|
38
|
-
/** Details about Buildpack settings. */
|
|
39
|
-
'buildpack'?: {
|
|
40
|
-
/** The Buildpack stack used. Example: "HEROKU_20" */
|
|
41
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY' | 'PAKETO_BASE' | 'PAKETO_FULL';
|
|
42
|
-
/** Array of custom Buildpacks used. */
|
|
43
|
-
'buildpackLocators'?: string[];
|
|
44
|
-
/** Should build dependencies be cached? */
|
|
45
|
-
'useCache'?: boolean;
|
|
46
|
-
};
|
|
47
|
-
/** Details about Buildkit settings. */
|
|
48
|
-
'buildkit'?: {
|
|
49
|
-
/** Should intermediate image layers be cached? */
|
|
50
|
-
'useCache'?: boolean;
|
|
51
|
-
};
|
|
52
|
-
/** Details about Kaniko settings. */
|
|
53
|
-
'kaniko'?: {
|
|
54
|
-
/** Should intermediate image layers be cached? */
|
|
55
|
-
'useCache'?: boolean;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
/** Whether Continuous Integration is disabled */
|
|
59
|
-
'disabledCI': boolean;
|
|
60
|
-
/** Whether Continuous Deployment is disabled */
|
|
61
|
-
'disabledCD': boolean;
|
|
62
|
-
'deployment'?: {
|
|
63
|
-
/** Region where this job is deployed and built Example: "europe-west" */
|
|
64
|
-
'region'?: string;
|
|
65
|
-
/** Details about the Docker overrides for this deployment. */
|
|
66
|
-
'docker'?: {
|
|
67
|
-
/** Details about the CMD override for this deployment. */
|
|
68
|
-
'cmd': {
|
|
69
|
-
/** Whether the CMD override is enabled. Example: true */
|
|
70
|
-
'enabled': boolean;
|
|
71
|
-
/** The CMD to run instead of the default if CMD override is enabled. Example: "nginx -g" */
|
|
72
|
-
'value': string;
|
|
73
|
-
};
|
|
74
|
-
/** Details about the entrypoint override for this deployment. */
|
|
75
|
-
'entrypoint': {
|
|
76
|
-
/** Whether the entrypoint override is enabled. Example: true */
|
|
77
|
-
'enabled': boolean;
|
|
78
|
-
/** The CMD to run instead of the default if entrypoint override is enabled. Example: "/docker-entrypoint.sh" */
|
|
79
|
-
'value': string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
/** Details about storage settings for this deployment. */
|
|
83
|
-
'storage'?: {
|
|
84
|
-
/** Details about ephemeral storage settings for this deployment. */
|
|
85
|
-
'ephemeralStorage'?: {
|
|
86
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
87
|
-
'storageSize': number;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
'billing': {
|
|
92
|
-
/** ID of the billing plan used by this job Example: "nf-compute-20" */
|
|
93
|
-
'deploymentPlan': string;
|
|
94
|
-
};
|
|
95
|
-
/** Type of the job (manual or cron) Example: "manual" */
|
|
96
|
-
'jobType': 'manual' | 'cron';
|
|
97
|
-
/** Job settings */
|
|
98
|
-
'settings': {
|
|
99
|
-
/** The number of attempts to rerun a job before it is marked as failed. */
|
|
100
|
-
'backoffLimit': number;
|
|
101
|
-
/** The maximum amount of time, in seconds, for a job to run before it is marked as failed. Example: 600 */
|
|
102
|
-
'activeDeadlineSeconds': number;
|
|
103
|
-
'cron'?: any;
|
|
104
|
-
};
|
|
105
|
-
/** Whether the job will be built immediately Example: true */
|
|
106
|
-
'buildInitiated': boolean;
|
|
107
|
-
};
|
|
108
|
-
export declare type CreateJobManualCall = (opts: CreateJobManualRequest) => Promise<ApiCallResponse<CreateJobManualResult>>;
|
|
109
|
-
export declare type CreateJobManualRequest = {
|
|
110
|
-
parameters: CreateJobManualParameters;
|
|
111
|
-
data: CreateJobManualData;
|
|
112
|
-
};
|
|
113
|
-
export declare type CreateJobManualParameters = {
|
|
114
|
-
/** ID of the project */ 'projectId': string;
|
|
115
|
-
};
|
|
116
|
-
export declare type CreateJobManualData = {
|
|
117
|
-
/** The name of the job. Example: "Example Job" */
|
|
118
|
-
'name': string;
|
|
119
|
-
/** A description of the job. Example: "A job description" */
|
|
120
|
-
'description'?: string;
|
|
121
|
-
'billing': {
|
|
122
|
-
/** The ID of the deployment plan to use. Example: "nf-compute-20" */
|
|
123
|
-
'deploymentPlan': string;
|
|
124
|
-
};
|
|
125
|
-
/** The number of attempts to rerun a job before it is marked as failed. */
|
|
126
|
-
'backoffLimit': number;
|
|
127
|
-
/** Configure when the job should be run if the source image changes. Example: "never" */
|
|
128
|
-
'runOnSourceChange'?: 'never' | 'cd-promote' | 'always';
|
|
129
|
-
/** The maximum amount of time, in seconds, for a job to run before it is marked as failed. Example: 600 */
|
|
130
|
-
'activeDeadlineSeconds'?: number;
|
|
131
|
-
/** Where to deploy the job from. */
|
|
132
|
-
'deployment'?: {
|
|
133
|
-
/** If set, the job runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
134
|
-
'cmdOverride'?: string;
|
|
135
|
-
/** If set, the job runs a custom entrypoint rather than one defined in the Dockerfile. Example: "/custom-entrypoint.sh" */
|
|
136
|
-
'entrypointOverride'?: string;
|
|
137
|
-
'storage'?: {
|
|
138
|
-
'ephemeralStorage'?: {
|
|
139
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
140
|
-
'storageSize'?: number;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
'vcs': {
|
|
144
|
-
/** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
145
|
-
'projectUrl': string;
|
|
146
|
-
/** The VCS provider to use. Example: "github" */
|
|
147
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
148
|
-
/** If projectType is self-hosted, the ID of the self-hosted vcs to use. */
|
|
149
|
-
'selfHostedVcsId'?: string;
|
|
150
|
-
/** 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" */
|
|
151
|
-
'accountLogin'?: string;
|
|
152
|
-
/** The name of the branch to use. Example: "master" */
|
|
153
|
-
'projectBranch': string;
|
|
154
|
-
};
|
|
155
|
-
} | {
|
|
156
|
-
/** If set, the job runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
157
|
-
'cmdOverride'?: string;
|
|
158
|
-
/** If set, the job runs a custom entrypoint rather than one defined in the Dockerfile. Example: "/custom-entrypoint.sh" */
|
|
159
|
-
'entrypointOverride'?: string;
|
|
160
|
-
'storage'?: {
|
|
161
|
-
'ephemeralStorage'?: {
|
|
162
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
163
|
-
'storageSize'?: number;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
'external': {
|
|
167
|
-
/** Image to be deployed. When not deploying from Dockerhub the URL must be specified. Example: "nginx:latest" */
|
|
168
|
-
'imagePath': string;
|
|
169
|
-
/** ID of the saved credentials to use to access this external image. Example: "example-credentials" */
|
|
170
|
-
'credentials'?: string;
|
|
171
|
-
};
|
|
172
|
-
} | {
|
|
173
|
-
/** If set, the job runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
174
|
-
'cmdOverride'?: string;
|
|
175
|
-
/** If set, the job runs a custom entrypoint rather than one defined in the Dockerfile. Example: "/custom-entrypoint.sh" */
|
|
176
|
-
'entrypointOverride'?: string;
|
|
177
|
-
'storage'?: {
|
|
178
|
-
'ephemeralStorage'?: {
|
|
179
|
-
/** Ephemeral storage per container in MB Example: 1024 */
|
|
180
|
-
'storageSize'?: number;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
'internal': {
|
|
184
|
-
/** ID of the build service to deploy Example: "example-build-service" */
|
|
185
|
-
'id'?: string;
|
|
186
|
-
/** Branch to deploy Example: "master" */
|
|
187
|
-
'branch'?: string;
|
|
188
|
-
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
189
|
-
'buildSHA'?: string | 'latest';
|
|
190
|
-
/** ID of the build that should be deployed Example: "premium-guide-6393" */
|
|
191
|
-
'buildId'?: string;
|
|
192
|
-
};
|
|
193
|
-
} | any;
|
|
194
|
-
'buildConfiguration'?: {
|
|
195
|
-
/** 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. */
|
|
196
|
-
'pathIgnoreRules'?: string[];
|
|
197
|
-
};
|
|
198
|
-
'buildSettings'?: {
|
|
199
|
-
'dockerfile': {
|
|
200
|
-
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
201
|
-
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
202
|
-
/** Should intermediate image layers be cached? */
|
|
203
|
-
'useCache'?: boolean;
|
|
204
|
-
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
205
|
-
'dockerFilePath': string;
|
|
206
|
-
/** The working directory of the Dockerfile. Example: "/" */
|
|
207
|
-
'dockerWorkDir': string;
|
|
208
|
-
};
|
|
209
|
-
} | {
|
|
210
|
-
'buildpack': {
|
|
211
|
-
/** Buildpack stack to use. Defaults to recommended stack `HEROKU_20`. Example: "HEROKU_20" */
|
|
212
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY' | 'PAKETO_BASE' | 'PAKETO_FULL';
|
|
213
|
-
/** Array of custom Buildpacks to use. */
|
|
214
|
-
'buildpackLocators'?: string[];
|
|
215
|
-
/** The working directory to build in. Example: "/" */
|
|
216
|
-
'buildContext'?: string;
|
|
217
|
-
/** Should build dependencies be cached? */
|
|
218
|
-
'useCache'?: boolean;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
/** An object containing the runtime environment to set for the job. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"variable1":"abcdef","variable2":"12345"} */
|
|
222
|
-
'runtimeEnvironment'?: any;
|
|
223
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
224
|
-
'runtimeFiles'?: any;
|
|
225
|
-
/** An object containing the build arguments to set for the job. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"variable1":"abcdef","variable2":"12345"} */
|
|
226
|
-
'buildArguments'?: any;
|
|
227
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
228
|
-
'buildFiles'?: any;
|
|
229
|
-
};
|
|
230
|
-
/** Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client. */
|
|
231
|
-
export declare class CreateJobManualEndpoint extends PostApiEndpoint<CreateJobManualRequest, CreateJobManualResult> {
|
|
232
|
-
description: string;
|
|
233
|
-
withAuth: boolean;
|
|
234
|
-
requiredPermissions: string;
|
|
235
|
-
endpointUrl: (opts: CreateJobManualRequest) => string;
|
|
236
|
-
body: (payload: CreateJobManualRequest) => string;
|
|
237
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
2
|
-
export declare type CreateProjectResult = {
|
|
3
|
-
/** Boolean flag that the operation was successful. Example: true */
|
|
4
|
-
'success': boolean;
|
|
5
|
-
/** ID for the created project. Example: "default-project" */
|
|
6
|
-
'id': string;
|
|
7
|
-
};
|
|
8
|
-
export declare type CreateProjectCall = (opts: CreateProjectRequest) => Promise<ApiCallResponse<CreateProjectResult>>;
|
|
9
|
-
export declare type CreateProjectRequest = {
|
|
10
|
-
data: CreateProjectData;
|
|
11
|
-
};
|
|
12
|
-
export declare type CreateProjectData = {
|
|
13
|
-
/** The name of the project. Example: "New Project" */
|
|
14
|
-
'name': string;
|
|
15
|
-
/** The description of the project. Example: "This is a new project." */
|
|
16
|
-
'description'?: string;
|
|
17
|
-
/** The region the project will be hosted in. Example: "europe-west" */
|
|
18
|
-
'region'?: string;
|
|
19
|
-
/** The BYOC cluster this project will be hosted in. Example: "gcp-cluster-1" */
|
|
20
|
-
'clusterId'?: string;
|
|
21
|
-
/** The color of the project in the Northflank App. Example: "#EF233C" */
|
|
22
|
-
'color'?: string;
|
|
23
|
-
};
|
|
24
|
-
/** Creates a new project. */
|
|
25
|
-
export declare class CreateProjectEndpoint extends PostApiEndpoint<CreateProjectRequest, CreateProjectResult> {
|
|
26
|
-
description: string;
|
|
27
|
-
withAuth: boolean;
|
|
28
|
-
requiredPermissions: string;
|
|
29
|
-
endpointUrl: (opts: CreateProjectRequest) => string;
|
|
30
|
-
body: (payload: CreateProjectRequest) => string;
|
|
31
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
2
|
-
export declare type CreateSecretResult = {
|
|
3
|
-
/** Identifier for the secret group Example: "example-secret-group" */
|
|
4
|
-
'id': string;
|
|
5
|
-
/** Secret group name Example: "Example secret group" */
|
|
6
|
-
'name': string;
|
|
7
|
-
/** A short description of the secret group Example: "This is the secret group description" */
|
|
8
|
-
'description'?: string;
|
|
9
|
-
/** The type of the created secret group Example: "environment" */
|
|
10
|
-
'secretType': 'environment-arguments' | 'environment' | 'arguments';
|
|
11
|
-
/** ID of the project that the secret group belongs to Example: "default-project" */
|
|
12
|
-
'projectId': string;
|
|
13
|
-
/** The priority with which different secret groups will be merged Example: 10 */
|
|
14
|
-
'priority': number;
|
|
15
|
-
/** Restriction settings of the secret */
|
|
16
|
-
'restrictions': {
|
|
17
|
-
/** Is the secret restricted Example: true */
|
|
18
|
-
'restricted'?: boolean;
|
|
19
|
-
/** List of Northflank services & jobs the secret is restricted to */
|
|
20
|
-
'nfObjects'?: {
|
|
21
|
-
/** ID of the entity the secret is restricted to. Example: "example-service" */
|
|
22
|
-
'id': string;
|
|
23
|
-
/** Type of the entity the secret is restricted to. Example: "service" */
|
|
24
|
-
'type': 'service' | 'job';
|
|
25
|
-
}[];
|
|
26
|
-
};
|
|
27
|
-
} | any;
|
|
28
|
-
export declare type CreateSecretCall = (opts: CreateSecretRequest) => Promise<ApiCallResponse<CreateSecretResult>>;
|
|
29
|
-
export declare type CreateSecretRequest = {
|
|
30
|
-
parameters: CreateSecretParameters;
|
|
31
|
-
data: CreateSecretData;
|
|
32
|
-
};
|
|
33
|
-
export declare type CreateSecretParameters = {
|
|
34
|
-
/** ID of the project */ 'projectId': string;
|
|
35
|
-
};
|
|
36
|
-
export declare type CreateSecretData = {
|
|
37
|
-
/** The name of the secret. Example: "Example Secret" */
|
|
38
|
-
'name': string;
|
|
39
|
-
/** A description of the secret. Example: "A description" */
|
|
40
|
-
'description'?: string;
|
|
41
|
-
/** The type of the created secret Example: "environment" */
|
|
42
|
-
'secretType': 'environment-arguments' | 'environment' | 'arguments';
|
|
43
|
-
/** The priority with which different secrets will be merged. Example: 10 */
|
|
44
|
-
'priority': number;
|
|
45
|
-
/** Restriction settings of the secret */
|
|
46
|
-
'restrictions'?: {
|
|
47
|
-
/** Is the secret restricted Example: true */
|
|
48
|
-
'restricted'?: boolean;
|
|
49
|
-
/** List of Northflank services & jobs the secret is restricted to */
|
|
50
|
-
'nfObjects'?: {
|
|
51
|
-
/** ID of the entity the secret is restricted to. Example: "example-service" */
|
|
52
|
-
'id': string;
|
|
53
|
-
/** Type of the entity the secret is restricted to. Example: "service" */
|
|
54
|
-
'type': 'service' | 'job';
|
|
55
|
-
}[];
|
|
56
|
-
};
|
|
57
|
-
/** An array of addons to link to this secret group. */
|
|
58
|
-
'addonDependencies'?: {
|
|
59
|
-
/** The internal id of the addon to link. Example: "example-addon" */
|
|
60
|
-
'addonId': string;
|
|
61
|
-
/** An array of objects containing details about the keys to link to this secret group. */
|
|
62
|
-
'keys': {
|
|
63
|
-
/** The name of the key to link. Example: "USERNAME" */
|
|
64
|
-
'keyName': string;
|
|
65
|
-
/** An array of aliases for the key. */
|
|
66
|
-
'aliases'?: string[];
|
|
67
|
-
}[];
|
|
68
|
-
}[];
|
|
69
|
-
'secrets'?: {
|
|
70
|
-
/** Secret variables as JSON object, encrypted at rest. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"NODE_ENV":"production","MONGO_DB":"some_connection_string"} */
|
|
71
|
-
'variables'?: any;
|
|
72
|
-
/** Secret files as JSON object, encrypted at rest. File path must be absolute Example: {"/dir/fileName":{"data":"VGhpcyBpcyBhbiBleGFtcGxlIHdpdGggYSB0ZW1wbGF0ZWQgJHtOT0RFX0VOVn0gdmFyaWFibGU=","encoding":"utf-8"}} */
|
|
73
|
-
'files'?: any;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
/** Creates a secret with the specified payload */
|
|
77
|
-
export declare class CreateSecretEndpoint extends PostApiEndpoint<CreateSecretRequest, CreateSecretResult> {
|
|
78
|
-
description: string;
|
|
79
|
-
withAuth: boolean;
|
|
80
|
-
requiredPermissions: string;
|
|
81
|
-
endpointUrl: (opts: CreateSecretRequest) => string;
|
|
82
|
-
body: (payload: CreateSecretRequest) => string;
|
|
83
|
-
}
|
|
@@ -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
|
-
}
|