sporades 0.1.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.
Files changed (112) hide show
  1. package/Dockerfile.base +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +289 -0
  4. package/bin/sporades-host-helper.js +4001 -0
  5. package/bin/sporades.js +14198 -0
  6. package/dist/base-image.d.ts +43 -0
  7. package/dist/base-image.d.ts.map +1 -0
  8. package/dist/base-image.js +53 -0
  9. package/dist/base-image.js.map +1 -0
  10. package/dist/bundle-pipeline.d.ts +110 -0
  11. package/dist/bundle-pipeline.d.ts.map +1 -0
  12. package/dist/bundle-pipeline.js +369 -0
  13. package/dist/bundle-pipeline.js.map +1 -0
  14. package/dist/capsule-services.d.ts +94 -0
  15. package/dist/capsule-services.d.ts.map +1 -0
  16. package/dist/capsule-services.js +310 -0
  17. package/dist/capsule-services.js.map +1 -0
  18. package/dist/cli/cli-help.d.ts +16 -0
  19. package/dist/cli/cli-help.d.ts.map +1 -0
  20. package/dist/cli/cli-help.js +202 -0
  21. package/dist/cli/cli-help.js.map +1 -0
  22. package/dist/cli/cli-support.d.ts +17 -0
  23. package/dist/cli/cli-support.d.ts.map +1 -0
  24. package/dist/cli/cli-support.js +46 -0
  25. package/dist/cli/cli-support.js.map +1 -0
  26. package/dist/cli/github-autodeploy-workflow.d.ts +7 -0
  27. package/dist/cli/github-autodeploy-workflow.d.ts.map +1 -0
  28. package/dist/cli/github-autodeploy-workflow.js +185 -0
  29. package/dist/cli/github-autodeploy-workflow.js.map +1 -0
  30. package/dist/cli/host-helper-archive.d.ts +9 -0
  31. package/dist/cli/host-helper-archive.d.ts.map +1 -0
  32. package/dist/cli/host-helper-archive.js +74 -0
  33. package/dist/cli/host-helper-archive.js.map +1 -0
  34. package/dist/cli/host-helper-config.d.ts +15 -0
  35. package/dist/cli/host-helper-config.d.ts.map +1 -0
  36. package/dist/cli/host-helper-config.js +111 -0
  37. package/dist/cli/host-helper-config.js.map +1 -0
  38. package/dist/cli/host-helper-contract.d.ts +5 -0
  39. package/dist/cli/host-helper-contract.d.ts.map +1 -0
  40. package/dist/cli/host-helper-contract.js +5 -0
  41. package/dist/cli/host-helper-contract.js.map +1 -0
  42. package/dist/cli/host-helper-docker-types.d.ts +27 -0
  43. package/dist/cli/host-helper-docker-types.d.ts.map +1 -0
  44. package/dist/cli/host-helper-docker-types.js +2 -0
  45. package/dist/cli/host-helper-docker-types.js.map +1 -0
  46. package/dist/cli/host-helper-json.d.ts +6 -0
  47. package/dist/cli/host-helper-json.d.ts.map +1 -0
  48. package/dist/cli/host-helper-json.js +2 -0
  49. package/dist/cli/host-helper-json.js.map +1 -0
  50. package/dist/cli/host-helper-release-files.d.ts +4 -0
  51. package/dist/cli/host-helper-release-files.d.ts.map +1 -0
  52. package/dist/cli/host-helper-release-files.js +21 -0
  53. package/dist/cli/host-helper-release-files.js.map +1 -0
  54. package/dist/cli/host-helper-requests.d.ts +163 -0
  55. package/dist/cli/host-helper-requests.d.ts.map +1 -0
  56. package/dist/cli/host-helper-requests.js +2 -0
  57. package/dist/cli/host-helper-requests.js.map +1 -0
  58. package/dist/cli/host-helper-validation.d.ts +27 -0
  59. package/dist/cli/host-helper-validation.d.ts.map +1 -0
  60. package/dist/cli/host-helper-validation.js +256 -0
  61. package/dist/cli/host-helper-validation.js.map +1 -0
  62. package/dist/cli/host-request-builders.d.ts +143 -0
  63. package/dist/cli/host-request-builders.d.ts.map +1 -0
  64. package/dist/cli/host-request-builders.js +266 -0
  65. package/dist/cli/host-request-builders.js.map +1 -0
  66. package/dist/cli/hosted-capsule-contract.d.ts +128 -0
  67. package/dist/cli/hosted-capsule-contract.d.ts.map +1 -0
  68. package/dist/cli/hosted-capsule-contract.js +2 -0
  69. package/dist/cli/hosted-capsule-contract.js.map +1 -0
  70. package/dist/cli/sporades-host-helper.d.ts +3 -0
  71. package/dist/cli/sporades-host-helper.d.ts.map +1 -0
  72. package/dist/cli/sporades-host-helper.js +3120 -0
  73. package/dist/cli/sporades-host-helper.js.map +1 -0
  74. package/dist/cli/sporades.d.ts +3 -0
  75. package/dist/cli/sporades.d.ts.map +1 -0
  76. package/dist/cli/sporades.js +4066 -0
  77. package/dist/cli/sporades.js.map +1 -0
  78. package/dist/client.d.ts +7 -0
  79. package/dist/client.d.ts.map +1 -0
  80. package/dist/client.js +9 -0
  81. package/dist/client.js.map +1 -0
  82. package/dist/runtime-restart-policy.d.ts +29 -0
  83. package/dist/runtime-restart-policy.d.ts.map +1 -0
  84. package/dist/runtime-restart-policy.js +53 -0
  85. package/dist/runtime-restart-policy.js.map +1 -0
  86. package/dist/sealed-server-env.d.ts +56 -0
  87. package/dist/sealed-server-env.d.ts.map +1 -0
  88. package/dist/sealed-server-env.js +170 -0
  89. package/dist/sealed-server-env.js.map +1 -0
  90. package/dist/server-runtime-source.d.ts +1262 -0
  91. package/dist/server-runtime-source.d.ts.map +1 -0
  92. package/dist/server-runtime-source.js +6397 -0
  93. package/dist/server-runtime-source.js.map +1 -0
  94. package/dist/server.d.ts +58 -0
  95. package/dist/server.d.ts.map +1 -0
  96. package/dist/server.js +183 -0
  97. package/dist/server.js.map +1 -0
  98. package/dist/templates/client-runtime-template.d.ts +2 -0
  99. package/dist/templates/client-runtime-template.d.ts.map +1 -0
  100. package/dist/templates/client-runtime-template.js +438 -0
  101. package/dist/templates/client-runtime-template.js.map +1 -0
  102. package/dist/templates/scaffold-template.d.ts +19 -0
  103. package/dist/templates/scaffold-template.d.ts.map +1 -0
  104. package/dist/templates/scaffold-template.js +1201 -0
  105. package/dist/templates/scaffold-template.js.map +1 -0
  106. package/dist/templates/server-bundle-template.d.ts +8 -0
  107. package/dist/templates/server-bundle-template.d.ts.map +1 -0
  108. package/dist/templates/server-bundle-template.js +162 -0
  109. package/dist/templates/server-bundle-template.js.map +1 -0
  110. package/package.json +44 -0
  111. package/src/types/client.d.ts +161 -0
  112. package/src/types/server.d.ts +300 -0
@@ -0,0 +1,256 @@
1
+ import path from "node:path";
2
+ import { helperError } from "./cli-support.js";
3
+ import { expectedReleaseFiles, isExpectedClaimedReleaseFile } from "./host-helper-release-files.js";
4
+ export function missingCapsuleHint(request, purpose) {
5
+ if (purpose === "push") {
6
+ return `Run \`sporades host register ${request.capsule.subname} --host ${request.host.alias}\` before pushing a release.`;
7
+ }
8
+ if (purpose === "stats") {
9
+ return `Run \`sporades host register ${request.capsule.subname} --host ${request.host.alias}\` before reading stats.`;
10
+ }
11
+ if (purpose === "unregister") {
12
+ return `Run \`sporades host register ${request.capsule.subname} --host ${request.host.alias}\` before unregistering the Hosted Capsule.`;
13
+ }
14
+ return `Run \`sporades host register ${request.capsule.subname} --host ${request.host.alias}\` before managing the Hosted Capsule lifecycle.`;
15
+ }
16
+ export function hostRegistryRetryCommand(request) {
17
+ return request.action === "host.stats" ? `sporades host stats --host ${request.host.alias}` : `sporades host list --host ${request.host.alias}`;
18
+ }
19
+ export function validateLifecycleRequest(request) {
20
+ const requiredStrings = [
21
+ request.host?.domain,
22
+ request.host?.alias,
23
+ request.host?.remoteRoot,
24
+ request.capsule?.subname,
25
+ ];
26
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
27
+ throw helperError("Invalid Hosted Capsule lifecycle request.", "Update the Sporades CLI and retry the host lifecycle command.");
28
+ }
29
+ }
30
+ export function validateSealedEnvRotationRequest(request) {
31
+ const requiredStrings = [
32
+ request.host?.domain,
33
+ request.host?.alias,
34
+ request.host?.remoteRoot,
35
+ request.capsule?.subname,
36
+ ];
37
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
38
+ throw helperError("Invalid Hosted Capsule sealed-env key rotation request.", "Update the Sporades CLI and retry `sporades host rotate-key`.");
39
+ }
40
+ }
41
+ export function validateStatsRequest(request) {
42
+ const requiredStrings = [
43
+ request.host?.domain,
44
+ request.host?.alias,
45
+ request.host?.remoteRoot,
46
+ request.capsule?.subname,
47
+ ];
48
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
49
+ throw helperError("Invalid Hosted Capsule stats request.", "Update the Sporades CLI and retry the host stats command.");
50
+ }
51
+ }
52
+ export function validateReleaseListRequest(request) {
53
+ const requiredStrings = [
54
+ request.host?.domain,
55
+ request.host?.alias,
56
+ request.host?.remoteRoot,
57
+ request.capsule?.subname,
58
+ ];
59
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
60
+ throw helperError("Invalid Hosted Capsule releases request.", "Update the Sporades CLI and retry `sporades host releases`.");
61
+ }
62
+ }
63
+ export function validateHealthRequest(request) {
64
+ const requiredStrings = [
65
+ request.host?.domain,
66
+ request.host?.alias,
67
+ request.host?.remoteRoot,
68
+ request.capsule?.subname,
69
+ ];
70
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
71
+ throw helperError("Invalid Hosted Capsule health request.", "Update the Sporades CLI and retry the host health command.");
72
+ }
73
+ }
74
+ export function validateHostStatsRequest(request) {
75
+ const requiredStrings = [
76
+ request.host?.domain,
77
+ request.host?.alias,
78
+ request.host?.remoteRoot,
79
+ ];
80
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
81
+ throw helperError("Invalid Host stats request.", "Update the Sporades CLI and retry `sporades host stats`.");
82
+ }
83
+ }
84
+ export function validateRollbackRequest(request) {
85
+ const requiredStrings = [
86
+ request.host?.domain,
87
+ request.host?.alias,
88
+ request.host?.remoteRoot,
89
+ request.capsule?.subname,
90
+ request.rollback?.releaseId,
91
+ ];
92
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
93
+ throw helperError("Invalid Hosted Capsule rollback request.", "Update the Sporades CLI and retry `sporades host rollback`.");
94
+ }
95
+ const releaseId = request.rollback?.releaseId;
96
+ if (!releaseId || !/^\d{8}T\d{6}Z-[a-f0-9]{8}$/.test(releaseId)) {
97
+ throw helperError("Invalid Hosted Capsule release ID.", `Choose a recorded release ID from \`sporades host releases ${request.capsule.subname} --host ${request.host.alias} --json\`.`);
98
+ }
99
+ }
100
+ export function validateHostLogsRequest(request, limits) {
101
+ const requiredStrings = [
102
+ request.host?.alias,
103
+ request.host?.domain,
104
+ request.host?.remoteRoot,
105
+ ];
106
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
107
+ throw helperError("Invalid Host logs request.", "Update the Sporades CLI and retry `sporades host logs`.");
108
+ }
109
+ const source = request.logs?.source ?? "caddy-combined";
110
+ if (!["http", "caddy-combined", "stdout", "stderr"].includes(source)) {
111
+ throw helperError("Invalid Host log source.", "Use `http`, `stdout`, or `stderr` for `sporades host logs`.");
112
+ }
113
+ if ((source === "stdout" || source === "stderr") && (typeof request.capsule?.subname !== "string" || request.capsule.subname.length === 0)) {
114
+ throw helperError("Missing Capsule subname for container logs.", "Pass `--subname <capsule-subname>` or run the command from a project with a Hosted Capsule binding.");
115
+ }
116
+ const lines = request.logs?.lines ?? limits.defaultLines;
117
+ if (!Number.isInteger(lines) || lines < 1 || lines > limits.maxLines) {
118
+ throw helperError("Invalid Host log line count.", `Pass \`--lines <n>\` with a whole number between 1 and ${limits.maxLines}.`);
119
+ }
120
+ }
121
+ export function validateListRequest(request) {
122
+ const requiredStrings = [
123
+ request.host?.domain,
124
+ request.host?.alias,
125
+ request.host?.remoteRoot,
126
+ ];
127
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
128
+ throw helperError("Invalid Hosted Capsule list request.", "Update the Sporades CLI and retry `sporades host list`.");
129
+ }
130
+ }
131
+ export function validateListRegistryRecord(request, record, recordPath) {
132
+ const capsuleRecord = record;
133
+ const expectedSubname = path.basename(recordPath, ".json");
134
+ const expectedRemoteCapsuleId = `${request.host.domain}/${typeof capsuleRecord?.subname === "string" ? capsuleRecord.subname : expectedSubname}`;
135
+ const valid = capsuleRecord &&
136
+ typeof capsuleRecord.subname === "string" &&
137
+ capsuleRecord.subname.length > 0 &&
138
+ capsuleRecord.subname === expectedSubname &&
139
+ capsuleRecord.domain === request.host.domain &&
140
+ (capsuleRecord.remoteCapsuleId ?? expectedRemoteCapsuleId) === expectedRemoteCapsuleId;
141
+ if (!valid) {
142
+ throw helperError("Hosted Capsule registry record is invalid.", `Repair the Host server registry record at ${recordPath}, then retry \`${hostRegistryRetryCommand(request)}\`.`);
143
+ }
144
+ }
145
+ export function validateBootstrapRequest(request) {
146
+ const requiredStrings = [
147
+ request.host?.domain,
148
+ request.host?.alias,
149
+ request.host?.remoteRoot,
150
+ ];
151
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
152
+ throw helperError("Invalid Host bootstrap request.", "Update the Sporades CLI and retry `sporades host bootstrap`.");
153
+ }
154
+ const tlsMode = request.bootstrap?.tls?.mode ?? "automatic";
155
+ if (tlsMode !== "automatic" && tlsMode !== "cloudflare-origin") {
156
+ throw helperError("Invalid Host TLS mode.", "Use `--tls automatic` for Caddy-managed certificates or `--tls cloudflare-origin` for preinstalled Cloudflare origin certificates.");
157
+ }
158
+ }
159
+ export function validateRegisterRequest(request) {
160
+ const requiredStrings = [
161
+ request.host?.domain,
162
+ request.host?.alias,
163
+ request.host?.remoteRoot,
164
+ request.capsule?.subname,
165
+ ];
166
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
167
+ throw helperError("Invalid Hosted Capsule registration request.", "Update the Sporades CLI and retry `sporades host register`.");
168
+ }
169
+ const registration = request.registration ?? {};
170
+ const mismatchedIdentity = (registration.subname && registration.subname !== request.capsule.subname) ||
171
+ (registration.domain && registration.domain !== request.host.domain) ||
172
+ (registration.remoteCapsuleId && registration.remoteCapsuleId !== `${request.host.domain}/${request.capsule.subname}`);
173
+ if (mismatchedIdentity) {
174
+ throw helperError("Hosted Capsule registration request does not match the Host profile.", "Rebind the local project or pass the correct Host profile and Capsule subname.");
175
+ }
176
+ const tlsMode = request.registration?.bootstrap?.tls?.mode ?? request.bootstrap?.tls?.mode ?? "automatic";
177
+ if (tlsMode !== "automatic" && tlsMode !== "cloudflare-origin") {
178
+ throw helperError("Invalid Host TLS mode.", "Use `--tls automatic` for Caddy-managed certificates or `--tls cloudflare-origin` for preinstalled Cloudflare origin certificates.");
179
+ }
180
+ }
181
+ export function validateUnregisterRequest(request) {
182
+ const requiredStrings = [
183
+ request.host?.domain,
184
+ request.host?.alias,
185
+ request.host?.remoteRoot,
186
+ request.capsule?.subname,
187
+ ];
188
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
189
+ throw helperError("Invalid Hosted Capsule unregister request.", "Update the Sporades CLI and retry `sporades host unregister`.");
190
+ }
191
+ const unregister = request.unregister ?? {};
192
+ const mismatchedIdentity = (unregister.subname && unregister.subname !== request.capsule.subname) ||
193
+ (unregister.domain && unregister.domain !== request.host.domain) ||
194
+ (unregister.remoteCapsuleId && unregister.remoteCapsuleId !== `${request.host.domain}/${request.capsule.subname}`);
195
+ if (mismatchedIdentity) {
196
+ throw helperError("Hosted Capsule unregister request does not match the Host profile.", "Rebind the local project or pass the correct Host profile and Capsule subname.");
197
+ }
198
+ }
199
+ export function validateDeleteRequest(request) {
200
+ const requiredStrings = [
201
+ request.host?.domain,
202
+ request.host?.alias,
203
+ request.host?.remoteRoot,
204
+ request.capsule?.subname,
205
+ ];
206
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
207
+ throw helperError("Invalid Hosted Capsule delete request.", "Update the Sporades CLI and retry `sporades host delete`.");
208
+ }
209
+ const deletion = request.delete ?? {};
210
+ const mismatchedIdentity = (deletion.subname && deletion.subname !== request.capsule.subname) ||
211
+ (deletion.domain && deletion.domain !== request.host.domain) ||
212
+ (deletion.remoteCapsuleId && deletion.remoteCapsuleId !== `${request.host.domain}/${request.capsule.subname}`);
213
+ if (mismatchedIdentity) {
214
+ throw helperError("Hosted Capsule delete request does not match the Host profile.", "Rebind the local project or pass the correct Host profile and Capsule subname.");
215
+ }
216
+ }
217
+ export function validateInstallRequest(request) {
218
+ const release = request.release;
219
+ const requiredStrings = [
220
+ request.host?.domain,
221
+ request.host?.alias,
222
+ request.host?.remoteRoot,
223
+ request.capsule?.subname,
224
+ release?.id,
225
+ release?.remoteArchive,
226
+ release?.hostedUrl,
227
+ release?.directories?.releases,
228
+ release?.directories?.release,
229
+ release?.directories?.data,
230
+ release?.currentLink,
231
+ ];
232
+ if (requiredStrings.some((value) => typeof value !== "string" || value.length === 0)) {
233
+ throw helperError("Invalid release install request.", "Update the Sporades CLI and retry `sporades host push`.");
234
+ }
235
+ if (!/^\d{8}T\d{6}Z-[a-f0-9]{8}$/.test(release.id)) {
236
+ throw helperError("Invalid Hosted Capsule release ID.", "Push again to generate a fresh UTC-sortable release ID.");
237
+ }
238
+ if (!Array.isArray(release.files) || release.files.some((file) => !isExpectedClaimedReleaseFile(file))) {
239
+ throw helperError("Invalid Hosted Capsule release file list.", "Update the Sporades CLI and retry `sporades host push`.");
240
+ }
241
+ const expectedFiles = expectedReleaseFiles(release);
242
+ const claimedFiles = [...release.files].sort();
243
+ const sortedExpectedFiles = [...expectedFiles].sort();
244
+ if (claimedFiles.length !== sortedExpectedFiles.length || claimedFiles.some((file, index) => file !== sortedExpectedFiles[index])) {
245
+ throw helperError("Invalid Hosted Capsule release file list.", "Update the Sporades CLI and retry `sporades host push`.");
246
+ }
247
+ const directories = release.directories;
248
+ if (!directories?.releases || !directories.release) {
249
+ throw helperError("Invalid Hosted Capsule release directory.", "Update the Sporades CLI and retry `sporades host push`.");
250
+ }
251
+ const expectedReleaseDirectory = path.join(directories.releases, release.id);
252
+ if (path.resolve(directories.release) !== path.resolve(expectedReleaseDirectory)) {
253
+ throw helperError("Invalid Hosted Capsule release directory.", "Update the Sporades CLI and retry `sporades host push`.");
254
+ }
255
+ }
256
+ //# sourceMappingURL=host-helper-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-helper-validation.js","sourceRoot":"","sources":["../../src/cli/host-helper-validation.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,oBAAo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,WAAW,EAAE,QAAQ,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QACnD,MAAM,WAAW,CAAC,2CAA2C,EAAE,yDAAyD,CAAC,CAAC;IAC5H,CAAC;IACD,MAAM,wBAAwB,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7E,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,CAAC;QACjF,MAAM,WAAW,CAAC,2CAA2C,EAAE,yDAAyD,CAAC,CAAC;IAC5H,CAAC;AACH,CAAC"}
@@ -0,0 +1,143 @@
1
+ import type { HostHelperRelease, HostLifecycleOptions } from "./host-helper-contract.js";
2
+ import type { LooseRecord } from "./cli-support.js";
3
+ export declare function createHostReleaseRequest(options: LooseRecord): HostHelperRelease;
4
+ export declare function createHostLifecycleRequest(alias: string, profile: LooseRecord, subname: string, options?: LooseRecord): HostLifecycleOptions;
5
+ export declare function createHostStatsRequest(profile: LooseRecord, subname: string): {
6
+ domain: any;
7
+ subname: string;
8
+ hostedUrl: string;
9
+ remoteCapsuleId: string;
10
+ container: {
11
+ name: string;
12
+ };
13
+ };
14
+ export declare function createHostRuntimeHealthRequest(profile: LooseRecord, subname: string): {
15
+ domain: any;
16
+ subname: string;
17
+ hostedUrl: string;
18
+ remoteCapsuleId: string;
19
+ runtimeHealthUrl: string;
20
+ container: {
21
+ name: string;
22
+ };
23
+ };
24
+ export declare function createHostBootstrapRequest(profile: LooseRecord): {
25
+ substrate: {
26
+ packages: string[];
27
+ services: string[];
28
+ };
29
+ directories: {
30
+ remoteRoot: any;
31
+ bin: string;
32
+ incoming: string;
33
+ caddy: string;
34
+ caddyHosts: string;
35
+ hosts: string;
36
+ domain: string;
37
+ tls: string;
38
+ registry: string;
39
+ capsules: string;
40
+ };
41
+ domainDirectory: string;
42
+ tls: {
43
+ mode: string;
44
+ directory: string;
45
+ certificate: string | null;
46
+ key: string | null;
47
+ };
48
+ caddy: {
49
+ managedInclude: string;
50
+ domainInclude: string;
51
+ };
52
+ };
53
+ export declare function createHostRegistrationRequest(alias: string, profile: LooseRecord, subname: string): {
54
+ subname: string;
55
+ domain: any;
56
+ hostedUrl: string;
57
+ remoteCapsuleId: string;
58
+ registryRecord: string;
59
+ directories: {
60
+ capsule: string;
61
+ releases: string;
62
+ data: string;
63
+ logs: string;
64
+ };
65
+ route: {
66
+ hostname: string;
67
+ target: string;
68
+ statusCode: number;
69
+ routeFile: string;
70
+ tls: {
71
+ mode: string;
72
+ directory: string;
73
+ certificate: string | null;
74
+ key: string | null;
75
+ };
76
+ log: {
77
+ file: string;
78
+ };
79
+ };
80
+ baseImage: {
81
+ name: string;
82
+ image: string;
83
+ version: string;
84
+ updatePolicy: {
85
+ mode: string;
86
+ autoPatch: {
87
+ supported: boolean;
88
+ reason: string;
89
+ };
90
+ };
91
+ };
92
+ bootstrap: {
93
+ command: string;
94
+ tls: {
95
+ mode: string;
96
+ directory: string;
97
+ certificate: string | null;
98
+ key: string | null;
99
+ };
100
+ };
101
+ };
102
+ export declare function createHostUnregisterRequest(profile: LooseRecord, subname: string): {
103
+ subname: string;
104
+ domain: any;
105
+ hostedUrl: string;
106
+ remoteCapsuleId: string;
107
+ registryRecord: string;
108
+ directories: {
109
+ capsule: string;
110
+ releases: string;
111
+ data: string;
112
+ };
113
+ container: {
114
+ name: string;
115
+ };
116
+ routes: {
117
+ removed: {
118
+ hostname: string;
119
+ target: string;
120
+ routeFile: string;
121
+ };
122
+ };
123
+ };
124
+ export declare function createHostDeleteRequest(profile: LooseRecord, subname: string): {
125
+ subname: string;
126
+ domain: any;
127
+ hostedUrl: string;
128
+ remoteCapsuleId: string;
129
+ registryRecord: string;
130
+ directories: {
131
+ capsule: string;
132
+ releases: string;
133
+ data: string;
134
+ };
135
+ routes: {
136
+ removed: {
137
+ hostname: string;
138
+ target: string;
139
+ routeFile: string;
140
+ };
141
+ };
142
+ };
143
+ //# sourceMappingURL=host-request-builders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-request-builders.d.ts","sourceRoot":"","sources":["../../src/cli/host-request-builders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAMpD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,iBAAiB,CAoChF;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,WAAgB,GACxB,oBAAoB,CAgEtB;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM;;;;;;;;EAU3E;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM;;;;;;;;;EAYnF;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmC9D;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BjG;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EAyBhF;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;EAsB5E"}