@hearsay-tools/squawk 0.19.0-dev.9137 → 0.19.0-dev.9155

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 (49) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/contract/hosts.d.ts +254 -0
  3. package/dist/contract/index.js +35 -0
  4. package/dist/core/http-route-registry.d.ts +7 -4
  5. package/dist/core/http-route-registry.js +6 -0
  6. package/dist/core/http-route-registry.js.map +1 -1
  7. package/dist/features/automations/server-plugin.js.map +1 -1
  8. package/dist/features/hosts/bootstrap.d.ts +1 -0
  9. package/dist/features/hosts/bootstrap.js +18 -6
  10. package/dist/features/hosts/bootstrap.js.map +1 -1
  11. package/dist/features/hosts/gateway-routes.d.ts +14 -0
  12. package/dist/features/hosts/gateway-routes.js +20 -0
  13. package/dist/features/hosts/gateway-routes.js.map +1 -0
  14. package/dist/features/hosts/gateway.d.ts +105 -0
  15. package/dist/features/hosts/gateway.js +800 -0
  16. package/dist/features/hosts/gateway.js.map +1 -0
  17. package/dist/features/hosts/index.d.ts +7 -1
  18. package/dist/features/hosts/index.js +23 -16
  19. package/dist/features/hosts/index.js.map +1 -1
  20. package/dist/features/hosts/routes.d.ts +91 -2
  21. package/dist/features/hosts/routes.js +142 -11
  22. package/dist/features/hosts/routes.js.map +1 -1
  23. package/dist/features/hosts/supervisor.d.ts +22 -8
  24. package/dist/features/hosts/supervisor.js +94 -37
  25. package/dist/features/hosts/supervisor.js.map +1 -1
  26. package/dist/features/reports/routes.d.ts +2 -2
  27. package/dist/features/webhooks/server-plugin.js.map +1 -1
  28. package/dist/plugin/index.d.ts +1 -1
  29. package/dist/plugin/index.js.map +1 -1
  30. package/dist/server/activity-routes.d.ts +23 -23
  31. package/dist/server/checkout.d.ts +10 -0
  32. package/dist/server/checkout.js +1 -1
  33. package/dist/server/checkout.js.map +1 -1
  34. package/dist/server/create-project.d.ts +6 -0
  35. package/dist/server/create-project.js +1 -1
  36. package/dist/server/create-project.js.map +1 -1
  37. package/dist/server/plugin-http-routes.d.ts +18 -6
  38. package/dist/server/plugin-http-routes.js +30 -14
  39. package/dist/server/plugin-http-routes.js.map +1 -1
  40. package/dist/server/project-settings-routes.d.ts +107 -107
  41. package/dist/server/projects-routes.d.ts +41 -41
  42. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  43. package/dist/server/runner-install-routes.d.ts +10 -10
  44. package/dist/server/runs-routes.d.ts +333 -333
  45. package/dist/server/server.d.ts +1170 -1170
  46. package/dist/server/server.js +10 -8
  47. package/dist/server/server.js.map +1 -1
  48. package/dist/server/workspace-identity-routes.d.ts +5 -5
  49. package/package.json +4 -4
@@ -62,17 +62,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
62
62
  } & {
63
63
  "/projects": {
64
64
  $post: {
65
- output: {
66
- error: string;
67
- };
68
- outputFormat: "json";
69
- status: 400 | 500;
70
- input: {
71
- json: {
72
- root: string;
73
- };
74
- };
75
- } | {
76
65
  output: {
77
66
  project: {
78
67
  id: string;
@@ -103,10 +92,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
103
92
  agent: boolean;
104
93
  }[] | undefined;
105
94
  };
106
- error: string;
95
+ error?: string | undefined;
107
96
  };
108
97
  outputFormat: "json";
109
- status: 409;
98
+ status: 200;
110
99
  input: {
111
100
  json: {
112
101
  root: string;
@@ -143,32 +132,31 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
143
132
  agent: boolean;
144
133
  }[] | undefined;
145
134
  };
146
- error?: string | undefined;
135
+ error: string;
147
136
  };
148
137
  outputFormat: "json";
149
- status: 200;
138
+ status: 409;
150
139
  input: {
151
140
  json: {
152
141
  root: string;
153
142
  };
154
143
  };
155
- };
156
- };
157
- } & {
158
- "/projects/:projectId": {
159
- $delete: {
144
+ } | {
160
145
  output: {
161
146
  error: string;
162
- code?: "no-boot-project" | undefined;
163
147
  };
164
148
  outputFormat: "json";
165
- status: 404 | 409;
149
+ status: 400 | 500;
166
150
  input: {
167
- param: {
168
- projectId: string;
151
+ json: {
152
+ root: string;
169
153
  };
170
154
  };
171
- } | {
155
+ };
156
+ };
157
+ } & {
158
+ "/projects/:projectId": {
159
+ $delete: {
172
160
  output: {
173
161
  error: string;
174
162
  };
@@ -213,11 +201,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
213
201
  projectId: string;
214
202
  };
215
203
  };
216
- };
217
- };
218
- } & {
219
- "/projects/:projectId": {
220
- $patch: {
204
+ } | {
221
205
  output: {
222
206
  error: string;
223
207
  code?: "no-boot-project" | undefined;
@@ -225,21 +209,15 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
225
209
  outputFormat: "json";
226
210
  status: 404 | 409;
227
211
  input: {
228
- json: {
229
- maxParallel?: number | null | undefined;
230
- tags?: string[] | null | undefined;
231
- webhook?: {
232
- url: string;
233
- token?: string | undefined;
234
- triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
235
- } | null | undefined;
236
- };
237
- } & {
238
212
  param: {
239
213
  projectId: string;
240
214
  };
241
215
  };
242
- } | {
216
+ };
217
+ };
218
+ } & {
219
+ "/projects/:projectId": {
220
+ $patch: {
243
221
  output: {
244
222
  error: string;
245
223
  };
@@ -330,6 +308,28 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
330
308
  projectId: string;
331
309
  };
332
310
  };
311
+ } | {
312
+ output: {
313
+ error: string;
314
+ code?: "no-boot-project" | undefined;
315
+ };
316
+ outputFormat: "json";
317
+ status: 404 | 409;
318
+ input: {
319
+ json: {
320
+ maxParallel?: number | null | undefined;
321
+ tags?: string[] | null | undefined;
322
+ webhook?: {
323
+ url: string;
324
+ token?: string | undefined;
325
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
326
+ } | null | undefined;
327
+ };
328
+ } & {
329
+ param: {
330
+ projectId: string;
331
+ };
332
+ };
333
333
  };
334
334
  };
335
335
  } & {
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
18
18
  error: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 409;
21
+ status: 400;
22
22
  input: {
23
23
  json: {
24
24
  provider: string;
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
30
30
  error: string;
31
31
  };
32
32
  outputFormat: "json";
33
- status: 400;
33
+ status: 409;
34
34
  input: {
35
35
  json: {
36
36
  provider: string;
@@ -52,11 +52,15 @@ export declare function createRunnerInstallRoutes(options: {
52
52
  "/runner-install/:runner": {
53
53
  $post: {
54
54
  output: {
55
- error: string;
56
- code?: "invalid_input" | undefined;
55
+ supported: boolean;
56
+ installedVersion: string | null;
57
+ latestVersion: string | null;
58
+ updateAvailable: boolean;
59
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
60
+ error: string | null;
57
61
  };
58
62
  outputFormat: "json";
59
- status: 400;
63
+ status: 202;
60
64
  input: {
61
65
  param: {
62
66
  runner: string;
@@ -68,15 +72,11 @@ export declare function createRunnerInstallRoutes(options: {
68
72
  };
69
73
  } | {
70
74
  output: {
71
- supported: boolean;
72
- installedVersion: string | null;
73
- latestVersion: string | null;
74
- updateAvailable: boolean;
75
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
76
- error: string | null;
75
+ error: string;
76
+ code?: "invalid_input" | undefined;
77
77
  };
78
78
  outputFormat: "json";
79
- status: 202;
79
+ status: 400;
80
80
  input: {
81
81
  param: {
82
82
  runner: string;