jive-connector-compute-digitalocean 0.0.0-stage → 0.2.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 (132) hide show
  1. package/README.md +106 -2
  2. package/dist/client/index.d.ts +3 -0
  3. package/dist/client/index.d.ts.map +1 -0
  4. package/dist/client/index.js +3 -0
  5. package/dist/client/index.js.map +1 -0
  6. package/dist/component/_generated/api.d.ts +64 -0
  7. package/dist/component/_generated/api.d.ts.map +1 -0
  8. package/dist/component/_generated/api.js +31 -0
  9. package/dist/component/_generated/api.js.map +1 -0
  10. package/dist/component/_generated/component.d.ts +422 -0
  11. package/dist/component/_generated/component.d.ts.map +1 -0
  12. package/dist/component/_generated/component.js +11 -0
  13. package/dist/component/_generated/component.js.map +1 -0
  14. package/dist/component/_generated/dataModel.d.ts +46 -0
  15. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  16. package/dist/component/_generated/dataModel.js +11 -0
  17. package/dist/component/_generated/dataModel.js.map +1 -0
  18. package/dist/component/_generated/server.d.ts +137 -0
  19. package/dist/component/_generated/server.d.ts.map +1 -0
  20. package/dist/component/_generated/server.js +80 -0
  21. package/dist/component/_generated/server.js.map +1 -0
  22. package/dist/component/bootScript.d.ts +42 -0
  23. package/dist/component/bootScript.d.ts.map +1 -0
  24. package/dist/component/bootScript.js +130 -0
  25. package/dist/component/bootScript.js.map +1 -0
  26. package/dist/component/connection.d.ts +118 -0
  27. package/dist/component/connection.d.ts.map +1 -0
  28. package/dist/component/connection.js +6 -0
  29. package/dist/component/connection.js.map +1 -0
  30. package/dist/component/connector.d.ts +6 -0
  31. package/dist/component/connector.d.ts.map +1 -0
  32. package/dist/component/connector.js +23 -0
  33. package/dist/component/connector.js.map +1 -0
  34. package/dist/component/convex.config.d.ts +8 -0
  35. package/dist/component/convex.config.d.ts.map +1 -0
  36. package/dist/component/convex.config.js +15 -0
  37. package/dist/component/convex.config.js.map +1 -0
  38. package/dist/component/credential.d.ts +28 -0
  39. package/dist/component/credential.d.ts.map +1 -0
  40. package/dist/component/credential.js +16 -0
  41. package/dist/component/credential.js.map +1 -0
  42. package/dist/component/digitalOceanApi/impl.d.ts +7 -0
  43. package/dist/component/digitalOceanApi/impl.d.ts.map +1 -0
  44. package/dist/component/digitalOceanApi/impl.js +155 -0
  45. package/dist/component/digitalOceanApi/impl.js.map +1 -0
  46. package/dist/component/digitalOceanApi/interface.d.ts +142 -0
  47. package/dist/component/digitalOceanApi/interface.d.ts.map +1 -0
  48. package/dist/component/digitalOceanApi/interface.js +13 -0
  49. package/dist/component/digitalOceanApi/interface.js.map +1 -0
  50. package/dist/component/hashing.d.ts +3 -0
  51. package/dist/component/hashing.d.ts.map +1 -0
  52. package/dist/component/hashing.js +6 -0
  53. package/dist/component/hashing.js.map +1 -0
  54. package/dist/component/network.d.ts +30 -0
  55. package/dist/component/network.d.ts.map +1 -0
  56. package/dist/component/network.js +77 -0
  57. package/dist/component/network.js.map +1 -0
  58. package/dist/component/records.d.ts +169 -0
  59. package/dist/component/records.d.ts.map +1 -0
  60. package/dist/component/records.js +144 -0
  61. package/dist/component/records.js.map +1 -0
  62. package/dist/component/reports.d.ts +29 -0
  63. package/dist/component/reports.d.ts.map +1 -0
  64. package/dist/component/reports.js +44 -0
  65. package/dist/component/reports.js.map +1 -0
  66. package/dist/component/schema.d.ts +131 -0
  67. package/dist/component/schema.d.ts.map +1 -0
  68. package/dist/component/schema.js +39 -0
  69. package/dist/component/schema.js.map +1 -0
  70. package/dist/component/signIn/impl.d.ts +7 -0
  71. package/dist/component/signIn/impl.d.ts.map +1 -0
  72. package/dist/component/signIn/impl.js +31 -0
  73. package/dist/component/signIn/impl.js.map +1 -0
  74. package/dist/component/signIn/interface.d.ts +45 -0
  75. package/dist/component/signIn/interface.d.ts.map +1 -0
  76. package/dist/component/signIn/interface.js +7 -0
  77. package/dist/component/signIn/interface.js.map +1 -0
  78. package/dist/component/sizes.d.ts +10 -0
  79. package/dist/component/sizes.d.ts.map +1 -0
  80. package/dist/component/sizes.js +9 -0
  81. package/dist/component/sizes.js.map +1 -0
  82. package/dist/component/system.d.ts +23 -0
  83. package/dist/component/system.d.ts.map +1 -0
  84. package/dist/component/system.js +321 -0
  85. package/dist/component/system.js.map +1 -0
  86. package/dist/component/volumes.d.ts +2 -0
  87. package/dist/component/volumes.d.ts.map +1 -0
  88. package/dist/component/volumes.js +3 -0
  89. package/dist/component/volumes.js.map +1 -0
  90. package/dist/component/workers.d.ts +2 -0
  91. package/dist/component/workers.d.ts.map +1 -0
  92. package/dist/component/workers.js +3 -0
  93. package/dist/component/workers.js.map +1 -0
  94. package/dist/identity.d.ts +24 -0
  95. package/dist/identity.d.ts.map +1 -0
  96. package/dist/identity.js +15 -0
  97. package/dist/identity.js.map +1 -0
  98. package/dist/oauth.d.ts +15 -0
  99. package/dist/oauth.d.ts.map +1 -0
  100. package/dist/oauth.js +22 -0
  101. package/dist/oauth.js.map +1 -0
  102. package/dist/regions.d.ts +3 -0
  103. package/dist/regions.d.ts.map +1 -0
  104. package/dist/regions.js +3 -0
  105. package/dist/regions.js.map +1 -0
  106. package/package.json +45 -4
  107. package/src/client/index.ts +2 -0
  108. package/src/component/_generated/api.ts +80 -0
  109. package/src/component/_generated/component.ts +392 -0
  110. package/src/component/_generated/dataModel.ts +60 -0
  111. package/src/component/_generated/server.ts +173 -0
  112. package/src/component/bootScript.ts +150 -0
  113. package/src/component/connection.ts +6 -0
  114. package/src/component/connector.ts +24 -0
  115. package/src/component/convex.config.ts +15 -0
  116. package/src/component/credential.ts +39 -0
  117. package/src/component/digitalOceanApi/impl.ts +181 -0
  118. package/src/component/digitalOceanApi/interface.ts +108 -0
  119. package/src/component/hashing.ts +5 -0
  120. package/src/component/network.ts +82 -0
  121. package/src/component/records.ts +152 -0
  122. package/src/component/reports.ts +44 -0
  123. package/src/component/schema.ts +40 -0
  124. package/src/component/signIn/impl.ts +34 -0
  125. package/src/component/signIn/interface.ts +31 -0
  126. package/src/component/sizes.ts +16 -0
  127. package/src/component/system.ts +327 -0
  128. package/src/component/volumes.ts +3 -0
  129. package/src/component/workers.ts +3 -0
  130. package/src/identity.ts +15 -0
  131. package/src/oauth.ts +21 -0
  132. package/src/regions.ts +2 -0
package/README.md CHANGED
@@ -1,3 +1,107 @@
1
- # Temporary Holding Version
1
+ # jive-connector-compute-digitalocean
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A Jive compute connector for DigitalOcean: a Convex component, `computeDigitalocean`, implementing
4
+ `ComputeComponentApi` from [jive-abstract-connector-compute](https://github.com/jive-sh/jive-abstract-connector-compute).
5
+ Each worker runs its task on a droplet of its own, from the task's container image. The droplet sits behind a Cloud
6
+ Firewall, and the container is narrowed further by Docker to the network its step's kind allows. Workers mount
7
+ DigitalOcean network file shares as volumes. A worker reports its result once, and its droplet is always removed: when
8
+ it reports, when it fails to start, and at its deadline.
9
+
10
+ ## Install it in a Convex app
11
+
12
+ ```ts
13
+ // convex/convex.config.ts
14
+ import computeDigitalocean from "jive-connector-compute-digitalocean/convex.config.js";
15
+
16
+ app.use(computeDigitalocean, { env: { CONNECTION_KEY: app.env.CONNECTION_KEY, WORKER_REPORT_URL: app.env.WORKER_REPORT_URL } });
17
+ ```
18
+
19
+ | Setting | Is |
20
+ | --- | --- |
21
+ | `CONNECTION_KEY` | Seals each connection's DigitalOcean tokens. Unset, nothing connects |
22
+ | `WORKER_REPORT_URL` | The HTTPS address of the app's route to `reports:report`, which every worker's droplet posts its result to. Unset, no worker starts |
23
+ | `DIGITALOCEAN_API_URL`, `DIGITALOCEAN_OAUTH_URL` | Unset, DigitalOcean's. Tests name fakes on 127.0.0.1; any other address must be HTTPS |
24
+
25
+ The app must route `WORKER_REPORT_URL` to the component. `example/convex/http.ts` does it in one route, and answers
26
+ the droplet only whether its report was taken.
27
+
28
+ ## Signing in
29
+
30
+ A connection holds one DigitalOcean team's OAuth tokens, and a person connects it from the Jive app: Compute, then
31
+ DigitalOcean. Their whole part is picking the region and clicking Authorize on DigitalOcean's own page. No token is
32
+ created, copied or pasted by hand.
33
+
34
+ The package root exports two things the Jive server reads:
35
+
36
+ - `digitalOceanIdentity` (`src/identity.ts`): the system, its name, and how it connects: one input, `region` (the
37
+ region workers with no volume run in, a choice of the regions with network file shares), then an `oauth-pkce` step.
38
+ - `digitalOceanOAuth` (`src/oauth.ts`): DigitalOcean's authorization endpoint, Jive's client id and the scopes. The
39
+ client is public: DigitalOcean registered it by [dynamic client registration](https://docs.digitalocean.com/reference/api/oauth/)
40
+ with no secret, and its one redirect is the server's `/connectors/oauth/callback`.
41
+
42
+ The server builds the consent link with its own state, its callback and the S256 challenge of a verifier it keeps. When
43
+ the code comes back, it calls `connection:connect` with `{ code, verifier, redirectUri, inputs }`. The component
44
+ exchanges the code (`DigitalOceanSignIn`, `src/component/signIn/interface.ts`), so a token first exists inside it, and
45
+ seals the tokens behind the gate. A public client's access token lasts an hour; the gate refreshes it, and DigitalOcean
46
+ takes each refresh token once. Disconnecting revokes the access token.
47
+
48
+ A connection makes no credential for a job (`issue` is `unavailable`). A task's droplet holds only its one-time report
49
+ secret.
50
+
51
+ ## A worker's life
52
+
53
+ 1. `workers:create` checks the spec first. It needs the image reference, environment names and values an env file can
54
+ carry, a timeout of 1 second to 24 hours, a network policy of addresses (never domains), and for each volume a
55
+ `mount` grant and a ready share. Any refusal comes before anything is made.
56
+ 2. It writes the worker's record: its tag (`jive-worker-<random>`), its creator, its deadline and the sha256 of a
57
+ one-time report secret. Only the hash is kept. The record also schedules the worker's removal for 60 seconds past
58
+ its deadline.
59
+ 3. It creates a Cloud Firewall bound to the worker's tag, so the droplet is covered from its first boot. Nothing comes
60
+ in. Out go HTTPS and DNS for the host (to pull the image and report), NFS (TCP 2049) to each mounted share's
61
+ host, and what the step's kind allows.
62
+ 4. It creates the droplet, in the cheapest size with the CPUs and memory asked for. The droplet goes in the volumes'
63
+ region and VPC, or the connection's region, and carries `jive-worker`, the organization's tag and its own tag.
64
+ 5. The droplet's boot script (`src/component/bootScript.ts`) does four things. It pulls the image, and mounts each
65
+ share as a Docker NFS volume. It sets the container's network: `--network none` for kind `none`; for `addresses`, a
66
+ bridge of its own whose forwarded traffic the host's DOCKER-USER chain drops except to those blocks and ports; for
67
+ `internet`, Docker's default. It then runs the task once, under `timeout` at the deadline.
68
+ 6. When the container exits, the droplet posts its exit code and the last 64 KiB of its output to `WORKER_REPORT_URL`
69
+ with its secret. `reports:report` takes it once, before the deadline, and only with that worker's secret. The output
70
+ is stored as a file, and the worker's machine is removed at once.
71
+ 7. `workers:get` answers the worker's state, exit code and output, before and after its machine is gone.
72
+
73
+ A container never runs privileged. The only Docker flags it gets are the ones this connector writes, each with only
74
+ the values it writes (`ALLOWED_FLAGS`). Anything else, such as `--privileged`, `--cap-add`, `--device`, `--pid host`,
75
+ `--network host` or a bind mount, is refused before the droplet is made. The task's command comes after the image,
76
+ where Docker reads nothing of it.
77
+
78
+ ### Cleanup
79
+
80
+ A worker's machine (its droplets and its firewall) is removed by any of these, whichever comes first:
81
+
82
+ - the report;
83
+ - the removal scheduled at the deadline, which acts through `workers:remove` as the worker's creator, so the grant is
84
+ checked again;
85
+ - the sweep, which every `workers:create`, `get` and `list` call runs first. It removes the machine of each of the
86
+ organization's workers that has ended or is past its deadline. It also removes every droplet carrying the
87
+ organization's tag that no live worker owns.
88
+
89
+ A machine is found by its recorded ids and by its own tag, so a droplet created just before its id could be recorded is
90
+ removed too. A create that fails at DigitalOcean removes what it made and ends the worker `failed`. If every grant of
91
+ the worker's creator is taken away, the scheduled removal is refused, and the machine waits for the organization's next
92
+ worker call. Give workflows `run` on every worker (`*`) of their pools, so they can read and remove what they start.
93
+
94
+ ## Work on it
95
+
96
+ - `bun test` runs the component on an in-memory Convex (convex-test) against a fake DigitalOcean API and OAuth server
97
+ on 127.0.0.1 (`test/fakeDigitalOcean.ts`). The boot script, the firewall rules and Docker's flags have tests of their
98
+ own (`test/bootScript.test.ts`). Every cleanup path, the single-use report and the refusal of every flag but the
99
+ allowed ones fail a test when broken: a mutation check broke each in turn, and all 13 broken versions failed.
100
+ - After changing the component's functions, run `bun run codegen`, which regenerates `src/component/_generated`
101
+ against a local Convex backend. Commit the result.
102
+ - A push to `main` publishes the version in package.json to npm.
103
+
104
+ ## Not checked against DigitalOcean yet
105
+
106
+ - The droplet image `docker-20-04` and the share resize action (`POST /v2/nfs/{id}/actions`, `type: resize`).
107
+ - Whether DigitalOcean accepts digits in a share's name, which its docs describe as lowercase letters and dashes.
@@ -0,0 +1,3 @@
1
+ export { digitalOceanIdentity } from "../identity";
2
+ export { digitalOceanOAuth } from "../oauth";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { digitalOceanIdentity } from "../identity";
2
+ export { digitalOceanOAuth } from "../oauth";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Generated `api` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type * as bootScript from "../bootScript.js";
10
+ import type * as connection from "../connection.js";
11
+ import type * as connector from "../connector.js";
12
+ import type * as credential from "../credential.js";
13
+ import type * as digitalOceanApi_impl from "../digitalOceanApi/impl.js";
14
+ import type * as digitalOceanApi_interface from "../digitalOceanApi/interface.js";
15
+ import type * as hashing from "../hashing.js";
16
+ import type * as network from "../network.js";
17
+ import type * as records from "../records.js";
18
+ import type * as reports from "../reports.js";
19
+ import type * as signIn_impl from "../signIn/impl.js";
20
+ import type * as signIn_interface from "../signIn/interface.js";
21
+ import type * as sizes from "../sizes.js";
22
+ import type * as system from "../system.js";
23
+ import type * as volumes from "../volumes.js";
24
+ import type * as workers from "../workers.js";
25
+ import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
26
+ declare const fullApi: ApiFromModules<{
27
+ bootScript: typeof bootScript;
28
+ connection: typeof connection;
29
+ connector: typeof connector;
30
+ credential: typeof credential;
31
+ "digitalOceanApi/impl": typeof digitalOceanApi_impl;
32
+ "digitalOceanApi/interface": typeof digitalOceanApi_interface;
33
+ hashing: typeof hashing;
34
+ network: typeof network;
35
+ records: typeof records;
36
+ reports: typeof reports;
37
+ "signIn/impl": typeof signIn_impl;
38
+ "signIn/interface": typeof signIn_interface;
39
+ sizes: typeof sizes;
40
+ system: typeof system;
41
+ volumes: typeof volumes;
42
+ workers: typeof workers;
43
+ }>;
44
+ /**
45
+ * A utility for referencing Convex functions in your app's public API.
46
+ *
47
+ * Usage:
48
+ * ```js
49
+ * const myFunctionReference = api.myModule.myFunction;
50
+ * ```
51
+ */
52
+ export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
53
+ /**
54
+ * A utility for referencing Convex functions in your app's internal API.
55
+ *
56
+ * Usage:
57
+ * ```js
58
+ * const myFunctionReference = internal.myModule.myFunction;
59
+ * ```
60
+ */
61
+ export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
62
+ export declare const components: {};
63
+ export {};
64
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/component/_generated/api.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,UAAU,MAAM,kBAAkB,CAAC;AACpD,OAAO,K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O,CAAC;IACxB,aAAa,EAAE,OAAO,WAAW,CAAC;IAClC,kBAAkB,EAAE,OAAO,gBAAgB,CAAC;IAC5C,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB,CAAiB,CAAC;AAEnB;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,EAAE,SAAS,CACzB,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,CACjB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,CAC9B,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CACnB,CAAC;AAElB,eAAO,MAAM,UAAU,EAAqC,EAAE,CAAC"}
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `api` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ import { anyApi, componentsGeneric } from "convex/server";
11
+ const fullApi = anyApi;
12
+ /**
13
+ * A utility for referencing Convex functions in your app's public API.
14
+ *
15
+ * Usage:
16
+ * ```js
17
+ * const myFunctionReference = api.myModule.myFunction;
18
+ * ```
19
+ */
20
+ export const api = anyApi;
21
+ /**
22
+ * A utility for referencing Convex functions in your app's internal API.
23
+ *
24
+ * Usage:
25
+ * ```js
26
+ * const myFunctionReference = internal.myModule.myFunction;
27
+ * ```
28
+ */
29
+ export const internal = anyApi;
30
+ export const components = componentsGeneric();
31
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAwBH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GAiBR,MAAa,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAGZ,MAAa,CAAC;AAElB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAGjB,MAAa,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAAmB,CAAC"}
@@ -0,0 +1,422 @@
1
+ /**
2
+ * Generated `ComponentApi` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type { FunctionReference } from "convex/server";
10
+ /**
11
+ * A utility for referencing a Convex component's exposed API.
12
+ *
13
+ * Useful when expecting a parameter like `components.myComponent`.
14
+ * Usage:
15
+ * ```ts
16
+ * async function myFunction(ctx: QueryCtx, component: ComponentApi) {
17
+ * return ctx.runQuery(component.someFile.someQuery, { ...args });
18
+ * }
19
+ * ```
20
+ */
21
+ export type ComponentApi<Name extends string | undefined = string | undefined> = {
22
+ connection: {
23
+ allow: FunctionReference<"mutation", "internal", {
24
+ connection: string;
25
+ grants: Array<{
26
+ immutableId?: string;
27
+ instance: string;
28
+ permission: string;
29
+ resourceType: string;
30
+ }>;
31
+ holder: string;
32
+ organization: string;
33
+ }, null, Name>;
34
+ connect: FunctionReference<"action", "internal", {
35
+ blob: string;
36
+ organization: string;
37
+ reach: Array<string>;
38
+ }, {
39
+ account: {
40
+ id: string;
41
+ name: string;
42
+ };
43
+ connection: string;
44
+ previousNotEnded?: string;
45
+ status: "connected";
46
+ } | {
47
+ reason: string;
48
+ status: "refused";
49
+ }, Name>;
50
+ disconnect: FunctionReference<"action", "internal", {
51
+ connection: string;
52
+ forgetUnreadable?: boolean;
53
+ organization: string;
54
+ }, {
55
+ notEnded?: string;
56
+ status: "disconnected";
57
+ } | {
58
+ status: "missing";
59
+ } | {
60
+ reason: string;
61
+ status: "refused";
62
+ }, Name>;
63
+ issue: FunctionReference<"action", "internal", {
64
+ caller: {
65
+ holder: string;
66
+ organization: string;
67
+ };
68
+ connection: string;
69
+ grant: {
70
+ immutableId?: string;
71
+ instance: string;
72
+ permission: string;
73
+ resourceType: string;
74
+ };
75
+ job: {
76
+ environment: string | null;
77
+ idToken: string | null;
78
+ repository: {
79
+ id: string;
80
+ name: string;
81
+ owner: string;
82
+ };
83
+ step: "context" | "build" | "deploy";
84
+ };
85
+ }, {
86
+ expiresAt: number | null;
87
+ status: "issued";
88
+ variables: Record<string, string>;
89
+ } | {
90
+ reason: string;
91
+ status: "unavailable";
92
+ } | {
93
+ reason: string;
94
+ status: "refused";
95
+ }, Name>;
96
+ ofOrganization: FunctionReference<"query", "internal", {
97
+ organization: string;
98
+ }, {
99
+ connection: string;
100
+ status: "connected";
101
+ } | {
102
+ status: "missing";
103
+ }, Name>;
104
+ status: FunctionReference<"query", "internal", {
105
+ connection: string;
106
+ organization: string;
107
+ }, {
108
+ account: {
109
+ id: string;
110
+ name: string;
111
+ };
112
+ expiresAt: number | null;
113
+ status: "connected";
114
+ } | {
115
+ status: "missing";
116
+ }, Name>;
117
+ types: FunctionReference<"query", "internal", {}, Array<{
118
+ permissions: Array<string>;
119
+ provider: string;
120
+ type: string;
121
+ }>, Name>;
122
+ };
123
+ reports: {
124
+ report: FunctionReference<"action", "internal", {
125
+ exitCode: number | null;
126
+ outputBase64: string;
127
+ secret: string;
128
+ timedOut: boolean;
129
+ worker: string;
130
+ }, any, Name>;
131
+ };
132
+ volumes: {
133
+ create: FunctionReference<"action", "internal", {
134
+ caller: {
135
+ holder: string;
136
+ organization: string;
137
+ };
138
+ connection: string;
139
+ spec: {
140
+ name: string;
141
+ pool: string;
142
+ region: string;
143
+ sizeGib: number;
144
+ };
145
+ }, {
146
+ resource: {
147
+ id: string;
148
+ name: string;
149
+ pool: string;
150
+ region: string;
151
+ sizeGib: number;
152
+ state: "creating" | "ready";
153
+ };
154
+ status: "ready";
155
+ } | {
156
+ retryAfterSeconds: number;
157
+ status: "inProgress";
158
+ } | {
159
+ reason: string;
160
+ status: "personNeeded";
161
+ url: string;
162
+ } | {
163
+ reason: string;
164
+ status: "refused";
165
+ }, Name>;
166
+ get: FunctionReference<"action", "internal", {
167
+ caller: {
168
+ holder: string;
169
+ organization: string;
170
+ };
171
+ connection: string;
172
+ id: string;
173
+ }, {
174
+ resource: {
175
+ id: string;
176
+ name: string;
177
+ pool: string;
178
+ region: string;
179
+ sizeGib: number;
180
+ state: "creating" | "ready";
181
+ };
182
+ status: "found";
183
+ } | {
184
+ status: "missing";
185
+ } | {
186
+ reason: string;
187
+ status: "refused";
188
+ }, Name>;
189
+ list: FunctionReference<"action", "internal", {
190
+ caller: {
191
+ holder: string;
192
+ organization: string;
193
+ };
194
+ connection: string;
195
+ parent: {
196
+ pool: string;
197
+ };
198
+ }, {
199
+ resources: Array<{
200
+ id: string;
201
+ name: string;
202
+ pool: string;
203
+ region: string;
204
+ sizeGib: number;
205
+ state: "creating" | "ready";
206
+ }>;
207
+ status: "listed";
208
+ } | {
209
+ reason: string;
210
+ status: "refused";
211
+ }, Name>;
212
+ remove: FunctionReference<"action", "internal", {
213
+ caller: {
214
+ holder: string;
215
+ organization: string;
216
+ };
217
+ connection: string;
218
+ id: string;
219
+ }, {
220
+ status: "removed";
221
+ } | {
222
+ status: "missing";
223
+ } | {
224
+ reason: string;
225
+ status: "personNeeded";
226
+ url: string;
227
+ } | {
228
+ reason: string;
229
+ status: "refused";
230
+ }, Name>;
231
+ update: FunctionReference<"action", "internal", {
232
+ caller: {
233
+ holder: string;
234
+ organization: string;
235
+ };
236
+ changes: {
237
+ sizeGib?: number;
238
+ };
239
+ connection: string;
240
+ id: string;
241
+ }, {
242
+ resource: {
243
+ id: string;
244
+ name: string;
245
+ pool: string;
246
+ region: string;
247
+ sizeGib: number;
248
+ state: "creating" | "ready";
249
+ };
250
+ status: "ready";
251
+ } | {
252
+ retryAfterSeconds: number;
253
+ status: "inProgress";
254
+ } | {
255
+ reason: string;
256
+ status: "personNeeded";
257
+ url: string;
258
+ } | {
259
+ reason: string;
260
+ status: "refused";
261
+ } | {
262
+ status: "missing";
263
+ }, Name>;
264
+ };
265
+ workers: {
266
+ create: FunctionReference<"action", "internal", {
267
+ caller: {
268
+ holder: string;
269
+ organization: string;
270
+ };
271
+ connection: string;
272
+ spec: {
273
+ command: Array<string>;
274
+ cpus: number;
275
+ environment: Record<string, string>;
276
+ image: string;
277
+ memoryGib: number;
278
+ name: string;
279
+ network: {
280
+ kind: "none";
281
+ } | {
282
+ addresses: Array<string>;
283
+ kind: "addresses";
284
+ ports?: Array<number>;
285
+ } | {
286
+ kind: "internet";
287
+ };
288
+ pool: string;
289
+ timeoutSeconds: number;
290
+ volumes: Array<{
291
+ path: string;
292
+ volume: string;
293
+ }>;
294
+ };
295
+ }, {
296
+ resource: {
297
+ createdAt: number;
298
+ endedAt: number | null;
299
+ exitCode: number | null;
300
+ id: string;
301
+ name: string;
302
+ output: string | null;
303
+ pool: string;
304
+ state: "starting" | "running" | "succeeded" | "failed" | "timedOut";
305
+ };
306
+ status: "ready";
307
+ } | {
308
+ retryAfterSeconds: number;
309
+ status: "inProgress";
310
+ } | {
311
+ reason: string;
312
+ status: "personNeeded";
313
+ url: string;
314
+ } | {
315
+ reason: string;
316
+ status: "refused";
317
+ }, Name>;
318
+ get: FunctionReference<"action", "internal", {
319
+ caller: {
320
+ holder: string;
321
+ organization: string;
322
+ };
323
+ connection: string;
324
+ id: string;
325
+ }, {
326
+ resource: {
327
+ createdAt: number;
328
+ endedAt: number | null;
329
+ exitCode: number | null;
330
+ id: string;
331
+ name: string;
332
+ output: string | null;
333
+ pool: string;
334
+ state: "starting" | "running" | "succeeded" | "failed" | "timedOut";
335
+ };
336
+ status: "found";
337
+ } | {
338
+ status: "missing";
339
+ } | {
340
+ reason: string;
341
+ status: "refused";
342
+ }, Name>;
343
+ list: FunctionReference<"action", "internal", {
344
+ caller: {
345
+ holder: string;
346
+ organization: string;
347
+ };
348
+ connection: string;
349
+ parent: {
350
+ pool: string;
351
+ };
352
+ }, {
353
+ resources: Array<{
354
+ createdAt: number;
355
+ endedAt: number | null;
356
+ exitCode: number | null;
357
+ id: string;
358
+ name: string;
359
+ output: string | null;
360
+ pool: string;
361
+ state: "starting" | "running" | "succeeded" | "failed" | "timedOut";
362
+ }>;
363
+ status: "listed";
364
+ } | {
365
+ reason: string;
366
+ status: "refused";
367
+ }, Name>;
368
+ remove: FunctionReference<"action", "internal", {
369
+ caller: {
370
+ holder: string;
371
+ organization: string;
372
+ };
373
+ connection: string;
374
+ id: string;
375
+ }, {
376
+ status: "removed";
377
+ } | {
378
+ status: "missing";
379
+ } | {
380
+ reason: string;
381
+ status: "personNeeded";
382
+ url: string;
383
+ } | {
384
+ reason: string;
385
+ status: "refused";
386
+ }, Name>;
387
+ update: FunctionReference<"action", "internal", {
388
+ caller: {
389
+ holder: string;
390
+ organization: string;
391
+ };
392
+ changes: {};
393
+ connection: string;
394
+ id: string;
395
+ }, {
396
+ resource: {
397
+ createdAt: number;
398
+ endedAt: number | null;
399
+ exitCode: number | null;
400
+ id: string;
401
+ name: string;
402
+ output: string | null;
403
+ pool: string;
404
+ state: "starting" | "running" | "succeeded" | "failed" | "timedOut";
405
+ };
406
+ status: "ready";
407
+ } | {
408
+ retryAfterSeconds: number;
409
+ status: "inProgress";
410
+ } | {
411
+ reason: string;
412
+ status: "personNeeded";
413
+ url: string;
414
+ } | {
415
+ reason: string;
416
+ status: "refused";
417
+ } | {
418
+ status: "missing";
419
+ }, Name>;
420
+ };
421
+ };
422
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../src/component/_generated/component.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,MAAM,MAAM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