@dagger.io/dagger 0.14.0 → 0.15.1

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 (284) hide show
  1. package/dist/{api → src/api}/client.gen.d.ts +145 -201
  2. package/dist/src/api/client.gen.d.ts.map +1 -0
  3. package/dist/{api → src/api}/client.gen.js +1114 -3520
  4. package/dist/src/common/context.d.ts +12 -0
  5. package/dist/src/common/context.d.ts.map +1 -0
  6. package/dist/src/common/context.js +22 -0
  7. package/dist/{common → src/common}/errors/DaggerSDKError.d.ts +1 -1
  8. package/dist/src/common/errors/DaggerSDKError.d.ts.map +1 -0
  9. package/dist/src/common/errors/DockerImageRefValidationError.d.ts.map +1 -0
  10. package/dist/src/common/errors/EngineSessionConnectParamsParseError.d.ts.map +1 -0
  11. package/dist/src/common/errors/EngineSessionConnectionTimeoutError.d.ts.map +1 -0
  12. package/dist/src/common/errors/EngineSessionErrorOptions.d.ts.map +1 -0
  13. package/dist/{common → src/common}/errors/ExecError.d.ts +0 -1
  14. package/dist/src/common/errors/ExecError.d.ts.map +1 -0
  15. package/dist/{common → src/common}/errors/ExecError.js +0 -3
  16. package/dist/src/common/errors/FunctionNotFound.d.ts.map +1 -0
  17. package/dist/src/common/errors/GraphQLRequestError.d.ts.map +1 -0
  18. package/dist/src/common/errors/InitEngineSessionBinaryError.d.ts.map +1 -0
  19. package/dist/src/common/errors/IntrospectionError.d.ts +7 -0
  20. package/dist/src/common/errors/IntrospectionError.d.ts.map +1 -0
  21. package/dist/src/common/errors/IntrospectionError.js +9 -0
  22. package/dist/src/common/errors/NotAwaitedRequestError.d.ts.map +1 -0
  23. package/dist/src/common/errors/TooManyNestedObjectsError.d.ts.map +1 -0
  24. package/dist/src/common/errors/UnknownDaggerError.d.ts.map +1 -0
  25. package/dist/{common → src/common}/errors/errors-codes.d.ts +4 -0
  26. package/dist/src/common/errors/errors-codes.d.ts.map +1 -0
  27. package/dist/{common → src/common}/errors/errors-codes.js +4 -0
  28. package/dist/{common → src/common}/errors/index.d.ts +2 -0
  29. package/dist/src/common/errors/index.d.ts.map +1 -0
  30. package/dist/{common → src/common}/errors/index.js +2 -0
  31. package/dist/src/common/graphql/client.d.ts.map +1 -0
  32. package/dist/{api/utils.d.ts → src/common/graphql/compute_query.d.ts} +10 -2
  33. package/dist/src/common/graphql/compute_query.d.ts.map +1 -0
  34. package/dist/{api/utils.js → src/common/graphql/compute_query.js} +4 -4
  35. package/dist/src/common/graphql/connect.d.ts +8 -0
  36. package/dist/src/common/graphql/connect.d.ts.map +1 -0
  37. package/dist/src/common/graphql/connect.js +22 -0
  38. package/dist/src/common/graphql/connection.d.ts +14 -0
  39. package/dist/src/common/graphql/connection.d.ts.map +1 -0
  40. package/dist/src/common/graphql/connection.js +23 -0
  41. package/dist/{common → src/common}/utils.d.ts +4 -4
  42. package/dist/src/common/utils.d.ts.map +1 -0
  43. package/dist/{connect.d.ts → src/connect.d.ts} +0 -4
  44. package/dist/src/connect.d.ts.map +1 -0
  45. package/dist/{connect.js → src/connect.js} +21 -23
  46. package/dist/src/connectOpts.d.ts.map +1 -0
  47. package/dist/{index.d.ts → src/index.d.ts} +5 -5
  48. package/dist/src/index.d.ts.map +1 -0
  49. package/dist/src/index.js +10 -0
  50. package/dist/{introspector/decorators → src/module}/decorators.d.ts +3 -3
  51. package/dist/src/module/decorators.d.ts.map +1 -0
  52. package/dist/{introspector/decorators → src/module}/decorators.js +1 -1
  53. package/dist/{entrypoint → src/module/entrypoint}/context.d.ts +1 -1
  54. package/dist/src/module/entrypoint/context.d.ts.map +1 -0
  55. package/dist/src/module/entrypoint/entrypoint.d.ts +2 -0
  56. package/dist/src/module/entrypoint/entrypoint.d.ts.map +1 -0
  57. package/dist/{entrypoint → src/module/entrypoint}/entrypoint.js +7 -16
  58. package/dist/{entrypoint → src/module/entrypoint}/invoke.d.ts +2 -2
  59. package/dist/src/module/entrypoint/invoke.d.ts.map +1 -0
  60. package/dist/{entrypoint → src/module/entrypoint}/invoke.js +2 -2
  61. package/dist/{entrypoint → src/module/entrypoint}/load.d.ts +6 -11
  62. package/dist/src/module/entrypoint/load.d.ts.map +1 -0
  63. package/dist/{entrypoint → src/module/entrypoint}/load.js +15 -5
  64. package/dist/src/module/entrypoint/register.d.ts +7 -0
  65. package/dist/src/module/entrypoint/register.d.ts.map +1 -0
  66. package/dist/{entrypoint → src/module/entrypoint}/register.js +3 -3
  67. package/dist/{introspector/executor → src/module}/executor.d.ts +4 -2
  68. package/dist/src/module/executor.d.ts.map +1 -0
  69. package/dist/src/module/executor.js +45 -0
  70. package/dist/src/module/introspector/case_convertor.d.ts +2 -0
  71. package/dist/src/module/introspector/case_convertor.d.ts.map +1 -0
  72. package/dist/src/module/introspector/case_convertor.js +17 -0
  73. package/dist/src/module/introspector/dagger_module/argument.d.ts +47 -0
  74. package/dist/src/module/introspector/dagger_module/argument.d.ts.map +1 -0
  75. package/dist/src/module/introspector/dagger_module/argument.js +109 -0
  76. package/dist/src/module/introspector/dagger_module/constructor.d.ts +18 -0
  77. package/dist/src/module/introspector/dagger_module/constructor.d.ts.map +1 -0
  78. package/dist/src/module/introspector/dagger_module/constructor.js +38 -0
  79. package/dist/src/module/introspector/dagger_module/decorator.d.ts +7 -0
  80. package/dist/src/module/introspector/dagger_module/decorator.d.ts.map +1 -0
  81. package/dist/src/module/introspector/dagger_module/decorator.js +6 -0
  82. package/dist/src/module/introspector/dagger_module/enum.d.ts +37 -0
  83. package/dist/src/module/introspector/dagger_module/enum.d.ts.map +1 -0
  84. package/dist/src/module/introspector/dagger_module/enum.js +55 -0
  85. package/dist/src/module/introspector/dagger_module/enumBase.d.ts +17 -0
  86. package/dist/src/module/introspector/dagger_module/enumBase.d.ts.map +1 -0
  87. package/dist/src/module/introspector/dagger_module/enumClass.d.ts +37 -0
  88. package/dist/src/module/introspector/dagger_module/enumClass.d.ts.map +1 -0
  89. package/dist/src/module/introspector/dagger_module/enumClass.js +61 -0
  90. package/dist/src/module/introspector/dagger_module/function.d.ts +35 -0
  91. package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -0
  92. package/dist/src/module/introspector/dagger_module/function.js +86 -0
  93. package/dist/src/module/introspector/dagger_module/index.d.ts +13 -0
  94. package/dist/src/module/introspector/dagger_module/index.d.ts.map +1 -0
  95. package/dist/src/module/introspector/dagger_module/index.js +12 -0
  96. package/dist/src/module/introspector/dagger_module/module.d.ts +110 -0
  97. package/dist/src/module/introspector/dagger_module/module.d.ts.map +1 -0
  98. package/dist/src/module/introspector/dagger_module/module.js +275 -0
  99. package/dist/src/module/introspector/dagger_module/object.d.ts +29 -0
  100. package/dist/src/module/introspector/dagger_module/object.d.ts.map +1 -0
  101. package/dist/src/module/introspector/dagger_module/object.js +91 -0
  102. package/dist/src/module/introspector/dagger_module/objectBase.d.ts +29 -0
  103. package/dist/src/module/introspector/dagger_module/objectBase.d.ts.map +1 -0
  104. package/dist/src/module/introspector/dagger_module/property.d.ts +33 -0
  105. package/dist/src/module/introspector/dagger_module/property.d.ts.map +1 -0
  106. package/dist/src/module/introspector/dagger_module/property.js +76 -0
  107. package/dist/src/module/introspector/dagger_module/reference.d.ts +13 -0
  108. package/dist/src/module/introspector/dagger_module/reference.d.ts.map +1 -0
  109. package/dist/src/module/introspector/dagger_module/reference.js +33 -0
  110. package/dist/src/module/introspector/dagger_module/typeObject.d.ts +25 -0
  111. package/dist/src/module/introspector/dagger_module/typeObject.d.ts.map +1 -0
  112. package/dist/src/module/introspector/dagger_module/typeObject.js +58 -0
  113. package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts +31 -0
  114. package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts.map +1 -0
  115. package/dist/src/module/introspector/dagger_module/typeObjectProperty.js +54 -0
  116. package/dist/src/module/introspector/index.d.ts +3 -0
  117. package/dist/src/module/introspector/index.d.ts.map +1 -0
  118. package/dist/src/module/introspector/index.js +16 -0
  119. package/dist/{introspector/scanner/typeDefs.d.ts → src/module/introspector/typedef.d.ts} +1 -1
  120. package/dist/src/module/introspector/typedef.d.ts.map +1 -0
  121. package/dist/src/module/introspector/typescript_module/ast.d.ts +42 -0
  122. package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -0
  123. package/dist/src/module/introspector/typescript_module/ast.js +254 -0
  124. package/dist/src/module/introspector/typescript_module/declarations.d.ts +15 -0
  125. package/dist/src/module/introspector/typescript_module/declarations.d.ts.map +1 -0
  126. package/dist/src/module/introspector/typescript_module/declarations.js +10 -0
  127. package/dist/src/module/introspector/typescript_module/explorer.d.ts +4 -0
  128. package/dist/src/module/introspector/typescript_module/explorer.d.ts.map +1 -0
  129. package/dist/src/module/introspector/typescript_module/explorer.js +16 -0
  130. package/dist/src/module/introspector/typescript_module/index.d.ts +4 -0
  131. package/dist/src/module/introspector/typescript_module/index.d.ts.map +1 -0
  132. package/dist/src/module/introspector/typescript_module/index.js +3 -0
  133. package/dist/src/module/introspector/typescript_module/typedef_utils.d.ts +5 -0
  134. package/dist/src/module/introspector/typescript_module/typedef_utils.d.ts.map +1 -0
  135. package/dist/src/module/introspector/typescript_module/typedef_utils.js +26 -0
  136. package/dist/src/module/introspector/utils/files.d.ts.map +1 -0
  137. package/dist/{introspector → src/module/introspector}/utils/files.js +1 -1
  138. package/dist/src/module/registry.d.ts.map +1 -0
  139. package/dist/{introspector/registry → src/module}/registry.js +1 -1
  140. package/dist/src/provisioning/bin.d.ts.map +1 -0
  141. package/dist/{provisioning → src/provisioning}/bin.js +1 -1
  142. package/dist/src/provisioning/default.d.ts +2 -0
  143. package/dist/src/provisioning/default.d.ts.map +1 -0
  144. package/dist/{provisioning → src/provisioning}/default.js +1 -1
  145. package/dist/src/provisioning/engineconn.d.ts +30 -0
  146. package/dist/src/provisioning/engineconn.d.ts.map +1 -0
  147. package/dist/src/provisioning/engineconn.js +1 -0
  148. package/dist/src/provisioning/index.d.ts +4 -0
  149. package/dist/src/provisioning/index.d.ts.map +1 -0
  150. package/dist/src/provisioning/index.js +14 -0
  151. package/dist/src/telemetry/index.d.ts.map +1 -0
  152. package/dist/src/telemetry/init.d.ts.map +1 -0
  153. package/dist/src/telemetry/telemetry.d.ts.map +1 -0
  154. package/dist/src/telemetry/tracer.d.ts.map +1 -0
  155. package/package.json +5 -4
  156. package/dist/api/client.gen.d.ts.map +0 -1
  157. package/dist/api/utils.d.ts.map +0 -1
  158. package/dist/common/errors/DaggerSDKError.d.ts.map +0 -1
  159. package/dist/common/errors/DockerImageRefValidationError.d.ts.map +0 -1
  160. package/dist/common/errors/EngineSessionConnectParamsParseError.d.ts.map +0 -1
  161. package/dist/common/errors/EngineSessionConnectionTimeoutError.d.ts.map +0 -1
  162. package/dist/common/errors/EngineSessionErrorOptions.d.ts.map +0 -1
  163. package/dist/common/errors/ExecError.d.ts.map +0 -1
  164. package/dist/common/errors/FunctionNotFound.d.ts.map +0 -1
  165. package/dist/common/errors/GraphQLRequestError.d.ts.map +0 -1
  166. package/dist/common/errors/InitEngineSessionBinaryError.d.ts.map +0 -1
  167. package/dist/common/errors/NotAwaitedRequestError.d.ts.map +0 -1
  168. package/dist/common/errors/TooManyNestedObjectsError.d.ts.map +0 -1
  169. package/dist/common/errors/UnknownDaggerError.d.ts.map +0 -1
  170. package/dist/common/errors/errors-codes.d.ts.map +0 -1
  171. package/dist/common/errors/index.d.ts.map +0 -1
  172. package/dist/common/utils.d.ts.map +0 -1
  173. package/dist/connect.d.ts.map +0 -1
  174. package/dist/connectOpts.d.ts.map +0 -1
  175. package/dist/context/builder.d.ts +0 -9
  176. package/dist/context/builder.d.ts.map +0 -1
  177. package/dist/context/builder.js +0 -34
  178. package/dist/context/context.d.ts +0 -40
  179. package/dist/context/context.d.ts.map +0 -1
  180. package/dist/context/context.js +0 -53
  181. package/dist/entrypoint/context.d.ts.map +0 -1
  182. package/dist/entrypoint/entrypoint.d.ts +0 -2
  183. package/dist/entrypoint/entrypoint.d.ts.map +0 -1
  184. package/dist/entrypoint/invoke.d.ts.map +0 -1
  185. package/dist/entrypoint/load.d.ts.map +0 -1
  186. package/dist/entrypoint/register.d.ts +0 -7
  187. package/dist/entrypoint/register.d.ts.map +0 -1
  188. package/dist/graphql/client.d.ts.map +0 -1
  189. package/dist/index.d.ts.map +0 -1
  190. package/dist/index.js +0 -7
  191. package/dist/introspector/decorators/decorators.d.ts.map +0 -1
  192. package/dist/introspector/executor/executor.d.ts.map +0 -1
  193. package/dist/introspector/executor/executor.js +0 -32
  194. package/dist/introspector/registry/registry.d.ts.map +0 -1
  195. package/dist/introspector/scanner/abtractions/argument.d.ts +0 -104
  196. package/dist/introspector/scanner/abtractions/argument.d.ts.map +0 -1
  197. package/dist/introspector/scanner/abtractions/argument.js +0 -207
  198. package/dist/introspector/scanner/abtractions/constructor.d.ts +0 -17
  199. package/dist/introspector/scanner/abtractions/constructor.d.ts.map +0 -1
  200. package/dist/introspector/scanner/abtractions/constructor.js +0 -40
  201. package/dist/introspector/scanner/abtractions/enum.d.ts +0 -33
  202. package/dist/introspector/scanner/abtractions/enum.d.ts.map +0 -1
  203. package/dist/introspector/scanner/abtractions/enum.js +0 -73
  204. package/dist/introspector/scanner/abtractions/enumValue.d.ts +0 -24
  205. package/dist/introspector/scanner/abtractions/enumValue.d.ts.map +0 -1
  206. package/dist/introspector/scanner/abtractions/enumValue.js +0 -51
  207. package/dist/introspector/scanner/abtractions/method.d.ts +0 -67
  208. package/dist/introspector/scanner/abtractions/method.d.ts.map +0 -1
  209. package/dist/introspector/scanner/abtractions/method.js +0 -132
  210. package/dist/introspector/scanner/abtractions/module.d.ts +0 -26
  211. package/dist/introspector/scanner/abtractions/module.d.ts.map +0 -1
  212. package/dist/introspector/scanner/abtractions/module.js +0 -103
  213. package/dist/introspector/scanner/abtractions/object.d.ts +0 -52
  214. package/dist/introspector/scanner/abtractions/object.d.ts.map +0 -1
  215. package/dist/introspector/scanner/abtractions/object.js +0 -118
  216. package/dist/introspector/scanner/abtractions/property.d.ts +0 -55
  217. package/dist/introspector/scanner/abtractions/property.d.ts.map +0 -1
  218. package/dist/introspector/scanner/abtractions/property.js +0 -110
  219. package/dist/introspector/scanner/abtractions/typeToTypedef.d.ts +0 -8
  220. package/dist/introspector/scanner/abtractions/typeToTypedef.d.ts.map +0 -1
  221. package/dist/introspector/scanner/abtractions/typeToTypedef.js +0 -85
  222. package/dist/introspector/scanner/scan.d.ts +0 -14
  223. package/dist/introspector/scanner/scan.d.ts.map +0 -1
  224. package/dist/introspector/scanner/scan.js +0 -26
  225. package/dist/introspector/scanner/typeDefs.d.ts.map +0 -1
  226. package/dist/introspector/scanner/utils.d.ts +0 -22
  227. package/dist/introspector/scanner/utils.d.ts.map +0 -1
  228. package/dist/introspector/scanner/utils.js +0 -101
  229. package/dist/introspector/utils/files.d.ts.map +0 -1
  230. package/dist/provisioning/bin.d.ts.map +0 -1
  231. package/dist/provisioning/default.d.ts +0 -2
  232. package/dist/provisioning/default.d.ts.map +0 -1
  233. package/dist/provisioning/engineconn.d.ts +0 -28
  234. package/dist/provisioning/engineconn.d.ts.map +0 -1
  235. package/dist/provisioning/index.d.ts +0 -4
  236. package/dist/provisioning/index.d.ts.map +0 -1
  237. package/dist/provisioning/index.js +0 -3
  238. package/dist/telemetry/attributes.d.ts +0 -2
  239. package/dist/telemetry/attributes.d.ts.map +0 -1
  240. package/dist/telemetry/index.d.ts.map +0 -1
  241. package/dist/telemetry/init.d.ts.map +0 -1
  242. package/dist/telemetry/telemetry.d.ts.map +0 -1
  243. package/dist/telemetry/tracer.d.ts.map +0 -1
  244. /package/dist/{common → src/common}/errors/DaggerSDKError.js +0 -0
  245. /package/dist/{common → src/common}/errors/DockerImageRefValidationError.d.ts +0 -0
  246. /package/dist/{common → src/common}/errors/DockerImageRefValidationError.js +0 -0
  247. /package/dist/{common → src/common}/errors/EngineSessionConnectParamsParseError.d.ts +0 -0
  248. /package/dist/{common → src/common}/errors/EngineSessionConnectParamsParseError.js +0 -0
  249. /package/dist/{common → src/common}/errors/EngineSessionConnectionTimeoutError.d.ts +0 -0
  250. /package/dist/{common → src/common}/errors/EngineSessionConnectionTimeoutError.js +0 -0
  251. /package/dist/{common → src/common}/errors/EngineSessionErrorOptions.d.ts +0 -0
  252. /package/dist/{common → src/common}/errors/EngineSessionErrorOptions.js +0 -0
  253. /package/dist/{common → src/common}/errors/FunctionNotFound.d.ts +0 -0
  254. /package/dist/{common → src/common}/errors/FunctionNotFound.js +0 -0
  255. /package/dist/{common → src/common}/errors/GraphQLRequestError.d.ts +0 -0
  256. /package/dist/{common → src/common}/errors/GraphQLRequestError.js +0 -0
  257. /package/dist/{common → src/common}/errors/InitEngineSessionBinaryError.d.ts +0 -0
  258. /package/dist/{common → src/common}/errors/InitEngineSessionBinaryError.js +0 -0
  259. /package/dist/{common → src/common}/errors/NotAwaitedRequestError.d.ts +0 -0
  260. /package/dist/{common → src/common}/errors/NotAwaitedRequestError.js +0 -0
  261. /package/dist/{common → src/common}/errors/TooManyNestedObjectsError.d.ts +0 -0
  262. /package/dist/{common → src/common}/errors/TooManyNestedObjectsError.js +0 -0
  263. /package/dist/{common → src/common}/errors/UnknownDaggerError.d.ts +0 -0
  264. /package/dist/{common → src/common}/errors/UnknownDaggerError.js +0 -0
  265. /package/dist/{graphql → src/common/graphql}/client.d.ts +0 -0
  266. /package/dist/{graphql → src/common/graphql}/client.js +0 -0
  267. /package/dist/{common → src/common}/utils.js +0 -0
  268. /package/dist/{connectOpts.d.ts → src/connectOpts.d.ts} +0 -0
  269. /package/dist/{connectOpts.js → src/connectOpts.js} +0 -0
  270. /package/dist/{entrypoint → src/module/entrypoint}/context.js +0 -0
  271. /package/dist/{introspector/scanner/typeDefs.js → src/module/introspector/dagger_module/enumBase.js} +0 -0
  272. /package/dist/{provisioning/engineconn.js → src/module/introspector/dagger_module/objectBase.js} +0 -0
  273. /package/dist/{telemetry/attributes.js → src/module/introspector/typedef.js} +0 -0
  274. /package/dist/{introspector → src/module/introspector}/utils/files.d.ts +0 -0
  275. /package/dist/{introspector/registry → src/module}/registry.d.ts +0 -0
  276. /package/dist/{provisioning → src/provisioning}/bin.d.ts +0 -0
  277. /package/dist/{telemetry → src/telemetry}/index.d.ts +0 -0
  278. /package/dist/{telemetry → src/telemetry}/index.js +0 -0
  279. /package/dist/{telemetry → src/telemetry}/init.d.ts +0 -0
  280. /package/dist/{telemetry → src/telemetry}/init.js +0 -0
  281. /package/dist/{telemetry → src/telemetry}/telemetry.d.ts +0 -0
  282. /package/dist/{telemetry → src/telemetry}/telemetry.js +0 -0
  283. /package/dist/{telemetry → src/telemetry}/tracer.d.ts +0 -0
  284. /package/dist/{telemetry → src/telemetry}/tracer.js +0 -0
@@ -2,37 +2,13 @@
2
2
  * This file was auto-generated by `client-gen`.
3
3
  * Do not make direct changes to the file.
4
4
  */
5
- import { Context } from "../context/context.js";
6
- /**
7
- * @hidden
8
- */
9
- export type QueryTree = {
10
- operation: string;
11
- args?: Record<string, unknown>;
12
- };
13
- /**
14
- * @hidden
15
- */
16
- export type Metadata = {
17
- [key: string]: {
18
- is_enum?: boolean;
19
- };
20
- };
21
- interface ClientConfig {
22
- queryTree?: QueryTree[];
23
- ctx?: Context;
24
- }
5
+ import { Context } from "../common/context.js";
25
6
  declare class BaseClient {
26
- protected _queryTree: QueryTree[];
27
7
  protected _ctx: Context;
28
8
  /**
29
9
  * @hidden
30
10
  */
31
- constructor({ queryTree, ctx }?: ClientConfig);
32
- /**
33
- * @hidden
34
- */
35
- get queryTree(): QueryTree[];
11
+ constructor(_ctx?: Context);
36
12
  }
37
13
  export type BuildArg = {
38
14
  /**
@@ -67,6 +43,38 @@ export declare enum CacheSharingMode {
67
43
  export type CacheVolumeID = string & {
68
44
  __CacheVolumeID: never;
69
45
  };
46
+ export type ContainerAsServiceOpts = {
47
+ /**
48
+ * Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
49
+ *
50
+ * If empty, the container's default command is used.
51
+ */
52
+ args?: string[];
53
+ /**
54
+ * If the container has an entrypoint, prepend it to the args.
55
+ */
56
+ useEntrypoint?: boolean;
57
+ /**
58
+ * Provides Dagger access to the executed command.
59
+ *
60
+ * Do not use this option unless you trust the command being executed; the command being executed WILL BE GRANTED FULL ACCESS TO YOUR HOST FILESYSTEM.
61
+ */
62
+ experimentalPrivilegedNesting?: boolean;
63
+ /**
64
+ * Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
65
+ */
66
+ insecureRootCapabilities?: boolean;
67
+ /**
68
+ * Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
69
+ */
70
+ expand?: boolean;
71
+ /**
72
+ * If set, skip the automatic init process injected into containers by default.
73
+ *
74
+ * This should only be used if the user requires that their exec process be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
75
+ */
76
+ noInit?: boolean;
77
+ };
70
78
  export type ContainerAsTarballOpts = {
71
79
  /**
72
80
  * Identifiers for other platform specific containers.
@@ -631,6 +639,9 @@ export type DirectoryWithNewFileOpts = {
631
639
  export type DirectoryID = string & {
632
640
  __DirectoryID: never;
633
641
  };
642
+ export type EngineCacheEntrySetOpts = {
643
+ key?: string;
644
+ };
634
645
  /**
635
646
  * The `EngineCacheEntryID` scalar type represents an identifier for an object of type EngineCacheEntry.
636
647
  */
@@ -673,6 +684,12 @@ export type EnumValueTypeDefID = string & {
673
684
  export type EnvVariableID = string & {
674
685
  __EnvVariableID: never;
675
686
  };
687
+ /**
688
+ * The `ErrorID` scalar type represents an identifier for an object of type Error.
689
+ */
690
+ export type ErrorID = string & {
691
+ __ErrorID: never;
692
+ };
676
693
  /**
677
694
  * The `FieldTypeDefID` scalar type represents an identifier for an object of type FieldTypeDef.
678
695
  */
@@ -1244,10 +1261,7 @@ export declare class CacheVolume extends BaseClient {
1244
1261
  /**
1245
1262
  * Constructor is used for internal usage only, do not create object from it.
1246
1263
  */
1247
- constructor(parent?: {
1248
- queryTree?: QueryTree[];
1249
- ctx: Context;
1250
- }, _id?: CacheVolumeID);
1264
+ constructor(ctx?: Context, _id?: CacheVolumeID);
1251
1265
  /**
1252
1266
  * A unique identifier for this CacheVolume.
1253
1267
  */
@@ -1274,10 +1288,7 @@ export declare class Container extends BaseClient {
1274
1288
  /**
1275
1289
  * Constructor is used for internal usage only, do not create object from it.
1276
1290
  */
1277
- constructor(parent?: {
1278
- queryTree?: QueryTree[];
1279
- ctx: Context;
1280
- }, _id?: ContainerID, _envVariable?: string, _exitCode?: number, _export?: string, _imageRef?: string, _label?: string, _platform?: Platform, _publish?: string, _stderr?: string, _stdout?: string, _sync?: ContainerID, _up?: Void, _user?: string, _workdir?: string);
1291
+ constructor(ctx?: Context, _id?: ContainerID, _envVariable?: string, _exitCode?: number, _export?: string, _imageRef?: string, _label?: string, _platform?: Platform, _publish?: string, _stderr?: string, _stdout?: string, _sync?: ContainerID, _up?: Void, _user?: string, _workdir?: string);
1281
1292
  /**
1282
1293
  * A unique identifier for this Container.
1283
1294
  */
@@ -1286,8 +1297,20 @@ export declare class Container extends BaseClient {
1286
1297
  * Turn the container into a Service.
1287
1298
  *
1288
1299
  * Be sure to set any exposed ports before this conversion.
1300
+ * @param opts.args Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
1301
+ *
1302
+ * If empty, the container's default command is used.
1303
+ * @param opts.useEntrypoint If the container has an entrypoint, prepend it to the args.
1304
+ * @param opts.experimentalPrivilegedNesting Provides Dagger access to the executed command.
1305
+ *
1306
+ * Do not use this option unless you trust the command being executed; the command being executed WILL BE GRANTED FULL ACCESS TO YOUR HOST FILESYSTEM.
1307
+ * @param opts.insecureRootCapabilities Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
1308
+ * @param opts.expand Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
1309
+ * @param opts.noInit If set, skip the automatic init process injected into containers by default.
1310
+ *
1311
+ * This should only be used if the user requires that their exec process be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
1289
1312
  */
1290
- asService: () => Service;
1313
+ asService: (opts?: ContainerAsServiceOpts) => Service;
1291
1314
  /**
1292
1315
  * Returns a File representing the container serialized to a tarball.
1293
1316
  * @param opts.platformVariants Identifiers for other platform specific containers.
@@ -1543,7 +1566,7 @@ export declare class Container extends BaseClient {
1543
1566
  withEnvVariable: (name: string, value: string, opts?: ContainerWithEnvVariableOpts) => Container;
1544
1567
  /**
1545
1568
  * Retrieves this container after executing the specified command inside it.
1546
- * @param args Command to run instead of the container's default command (e.g., ["run", "main.go"]).
1569
+ * @param args Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
1547
1570
  *
1548
1571
  * If empty, the container's default command is used.
1549
1572
  * @param opts.useEntrypoint If the container has an entrypoint, prepend it to the args.
@@ -1609,7 +1632,7 @@ export declare class Container extends BaseClient {
1609
1632
  withLabel: (name: string, value: string) => Container;
1610
1633
  /**
1611
1634
  * Retrieves this container plus a cache volume mounted at the given path.
1612
- * @param path Location of the cache directory (e.g., "/cache/node_modules").
1635
+ * @param path Location of the cache directory (e.g., "/root/.npm").
1613
1636
  * @param cache Identifier of the cache volume to mount.
1614
1637
  * @param opts.source Identifier of the directory to use as the cache volume's root.
1615
1638
  * @param opts.sharing Sharing mode of the cache volume.
@@ -1787,7 +1810,7 @@ export declare class Container extends BaseClient {
1787
1810
  withoutLabel: (name: string) => Container;
1788
1811
  /**
1789
1812
  * Retrieves this container after unmounting everything at the given path.
1790
- * @param path Location of the cache directory (e.g., "/cache/node_modules").
1813
+ * @param path Location of the cache directory (e.g., "/root/.npm").
1791
1814
  * @param opts.expand Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").
1792
1815
  */
1793
1816
  withoutMount: (path: string, opts?: ContainerWithoutMountOpts) => Container;
@@ -1841,10 +1864,7 @@ export declare class CurrentModule extends BaseClient {
1841
1864
  /**
1842
1865
  * Constructor is used for internal usage only, do not create object from it.
1843
1866
  */
1844
- constructor(parent?: {
1845
- queryTree?: QueryTree[];
1846
- ctx: Context;
1847
- }, _id?: CurrentModuleID, _name?: string);
1867
+ constructor(ctx?: Context, _id?: CurrentModuleID, _name?: string);
1848
1868
  /**
1849
1869
  * A unique identifier for this CurrentModule.
1850
1870
  */
@@ -1881,10 +1901,7 @@ export declare class Directory extends BaseClient {
1881
1901
  /**
1882
1902
  * Constructor is used for internal usage only, do not create object from it.
1883
1903
  */
1884
- constructor(parent?: {
1885
- queryTree?: QueryTree[];
1886
- ctx: Context;
1887
- }, _id?: DirectoryID, _digest?: string, _export?: string, _sync?: DirectoryID);
1904
+ constructor(ctx?: Context, _id?: DirectoryID, _digest?: string, _export?: string, _sync?: DirectoryID);
1888
1905
  /**
1889
1906
  * A unique identifier for this Directory.
1890
1907
  */
@@ -2031,10 +2048,7 @@ export declare class Engine extends BaseClient {
2031
2048
  /**
2032
2049
  * Constructor is used for internal usage only, do not create object from it.
2033
2050
  */
2034
- constructor(parent?: {
2035
- queryTree?: QueryTree[];
2036
- ctx: Context;
2037
- }, _id?: EngineID);
2051
+ constructor(ctx?: Context, _id?: EngineID);
2038
2052
  /**
2039
2053
  * A unique identifier for this Engine.
2040
2054
  */
@@ -2057,10 +2071,7 @@ export declare class EngineCache extends BaseClient {
2057
2071
  /**
2058
2072
  * Constructor is used for internal usage only, do not create object from it.
2059
2073
  */
2060
- constructor(parent?: {
2061
- queryTree?: QueryTree[];
2062
- ctx: Context;
2063
- }, _id?: EngineCacheID, _keepBytes?: number, _maxUsedSpace?: number, _minFreeSpace?: number, _prune?: Void, _reservedSpace?: number);
2074
+ constructor(ctx?: Context, _id?: EngineCacheID, _keepBytes?: number, _maxUsedSpace?: number, _minFreeSpace?: number, _prune?: Void, _reservedSpace?: number);
2064
2075
  /**
2065
2076
  * A unique identifier for this EngineCache.
2066
2077
  */
@@ -2068,7 +2079,7 @@ export declare class EngineCache extends BaseClient {
2068
2079
  /**
2069
2080
  * The current set of entries in the cache
2070
2081
  */
2071
- entrySet: () => EngineCacheEntrySet;
2082
+ entrySet: (opts?: EngineCacheEntrySetOpts) => EngineCacheEntrySet;
2072
2083
  /**
2073
2084
  * The maximum bytes to keep in the cache without pruning, after which automatic pruning may kick in.
2074
2085
  * @deprecated Use minFreeSpace instead.
@@ -2101,10 +2112,7 @@ export declare class EngineCacheEntry extends BaseClient {
2101
2112
  /**
2102
2113
  * Constructor is used for internal usage only, do not create object from it.
2103
2114
  */
2104
- constructor(parent?: {
2105
- queryTree?: QueryTree[];
2106
- ctx: Context;
2107
- }, _id?: EngineCacheEntryID, _activelyUsed?: boolean, _createdTimeUnixNano?: number, _description?: string, _diskSpaceBytes?: number, _mostRecentUseTimeUnixNano?: number);
2115
+ constructor(ctx?: Context, _id?: EngineCacheEntryID, _activelyUsed?: boolean, _createdTimeUnixNano?: number, _description?: string, _diskSpaceBytes?: number, _mostRecentUseTimeUnixNano?: number);
2108
2116
  /**
2109
2117
  * A unique identifier for this EngineCacheEntry.
2110
2118
  */
@@ -2140,10 +2148,7 @@ export declare class EngineCacheEntrySet extends BaseClient {
2140
2148
  /**
2141
2149
  * Constructor is used for internal usage only, do not create object from it.
2142
2150
  */
2143
- constructor(parent?: {
2144
- queryTree?: QueryTree[];
2145
- ctx: Context;
2146
- }, _id?: EngineCacheEntrySetID, _diskSpaceBytes?: number, _entryCount?: number);
2151
+ constructor(ctx?: Context, _id?: EngineCacheEntrySetID, _diskSpaceBytes?: number, _entryCount?: number);
2147
2152
  /**
2148
2153
  * A unique identifier for this EngineCacheEntrySet.
2149
2154
  */
@@ -2172,10 +2177,7 @@ export declare class EnumTypeDef extends BaseClient {
2172
2177
  /**
2173
2178
  * Constructor is used for internal usage only, do not create object from it.
2174
2179
  */
2175
- constructor(parent?: {
2176
- queryTree?: QueryTree[];
2177
- ctx: Context;
2178
- }, _id?: EnumTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
2180
+ constructor(ctx?: Context, _id?: EnumTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
2179
2181
  /**
2180
2182
  * A unique identifier for this EnumTypeDef.
2181
2183
  */
@@ -2211,10 +2213,7 @@ export declare class EnumValueTypeDef extends BaseClient {
2211
2213
  /**
2212
2214
  * Constructor is used for internal usage only, do not create object from it.
2213
2215
  */
2214
- constructor(parent?: {
2215
- queryTree?: QueryTree[];
2216
- ctx: Context;
2217
- }, _id?: EnumValueTypeDefID, _description?: string, _name?: string);
2216
+ constructor(ctx?: Context, _id?: EnumValueTypeDefID, _description?: string, _name?: string);
2218
2217
  /**
2219
2218
  * A unique identifier for this EnumValueTypeDef.
2220
2219
  */
@@ -2242,10 +2241,7 @@ export declare class EnvVariable extends BaseClient {
2242
2241
  /**
2243
2242
  * Constructor is used for internal usage only, do not create object from it.
2244
2243
  */
2245
- constructor(parent?: {
2246
- queryTree?: QueryTree[];
2247
- ctx: Context;
2248
- }, _id?: EnvVariableID, _name?: string, _value?: string);
2244
+ constructor(ctx?: Context, _id?: EnvVariableID, _name?: string, _value?: string);
2249
2245
  /**
2250
2246
  * A unique identifier for this EnvVariable.
2251
2247
  */
@@ -2259,6 +2255,22 @@ export declare class EnvVariable extends BaseClient {
2259
2255
  */
2260
2256
  value: () => Promise<string>;
2261
2257
  }
2258
+ export declare class Error extends BaseClient {
2259
+ private readonly _id?;
2260
+ private readonly _message?;
2261
+ /**
2262
+ * Constructor is used for internal usage only, do not create object from it.
2263
+ */
2264
+ constructor(ctx?: Context, _id?: ErrorID, _message?: string);
2265
+ /**
2266
+ * A unique identifier for this Error.
2267
+ */
2268
+ id: () => Promise<ErrorID>;
2269
+ /**
2270
+ * A description of the error.
2271
+ */
2272
+ message: () => Promise<string>;
2273
+ }
2262
2274
  /**
2263
2275
  * A definition of a field on a custom object defined in a Module.
2264
2276
  *
@@ -2271,10 +2283,7 @@ export declare class FieldTypeDef extends BaseClient {
2271
2283
  /**
2272
2284
  * Constructor is used for internal usage only, do not create object from it.
2273
2285
  */
2274
- constructor(parent?: {
2275
- queryTree?: QueryTree[];
2276
- ctx: Context;
2277
- }, _id?: FieldTypeDefID, _description?: string, _name?: string);
2286
+ constructor(ctx?: Context, _id?: FieldTypeDefID, _description?: string, _name?: string);
2278
2287
  /**
2279
2288
  * A unique identifier for this FieldTypeDef.
2280
2289
  */
@@ -2310,10 +2319,7 @@ export declare class File extends BaseClient {
2310
2319
  /**
2311
2320
  * Constructor is used for internal usage only, do not create object from it.
2312
2321
  */
2313
- constructor(parent?: {
2314
- queryTree?: QueryTree[];
2315
- ctx: Context;
2316
- }, _id?: FileID, _contents?: string, _digest?: string, _export?: string, _name?: string, _size?: number, _sync?: FileID);
2322
+ constructor(ctx?: Context, _id?: FileID, _contents?: string, _digest?: string, _export?: string, _name?: string, _size?: number, _sync?: FileID);
2317
2323
  /**
2318
2324
  * A unique identifier for this File.
2319
2325
  */
@@ -2376,10 +2382,7 @@ export declare class Function_ extends BaseClient {
2376
2382
  /**
2377
2383
  * Constructor is used for internal usage only, do not create object from it.
2378
2384
  */
2379
- constructor(parent?: {
2380
- queryTree?: QueryTree[];
2381
- ctx: Context;
2382
- }, _id?: FunctionID, _description?: string, _name?: string);
2385
+ constructor(ctx?: Context, _id?: FunctionID, _description?: string, _name?: string);
2383
2386
  /**
2384
2387
  * A unique identifier for this Function.
2385
2388
  */
@@ -2445,10 +2448,7 @@ export declare class FunctionArg extends BaseClient {
2445
2448
  /**
2446
2449
  * Constructor is used for internal usage only, do not create object from it.
2447
2450
  */
2448
- constructor(parent?: {
2449
- queryTree?: QueryTree[];
2450
- ctx: Context;
2451
- }, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _description?: string, _name?: string);
2451
+ constructor(ctx?: Context, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _description?: string, _name?: string);
2452
2452
  /**
2453
2453
  * A unique identifier for this FunctionArg.
2454
2454
  */
@@ -2490,14 +2490,12 @@ export declare class FunctionCall extends BaseClient {
2490
2490
  private readonly _name?;
2491
2491
  private readonly _parent?;
2492
2492
  private readonly _parentName?;
2493
+ private readonly _returnError?;
2493
2494
  private readonly _returnValue?;
2494
2495
  /**
2495
2496
  * Constructor is used for internal usage only, do not create object from it.
2496
2497
  */
2497
- constructor(parent?: {
2498
- queryTree?: QueryTree[];
2499
- ctx: Context;
2500
- }, _id?: FunctionCallID, _name?: string, _parent?: JSON, _parentName?: string, _returnValue?: Void);
2498
+ constructor(ctx?: Context, _id?: FunctionCallID, _name?: string, _parent?: JSON, _parentName?: string, _returnError?: Void, _returnValue?: Void);
2501
2499
  /**
2502
2500
  * A unique identifier for this FunctionCall.
2503
2501
  */
@@ -2518,6 +2516,11 @@ export declare class FunctionCall extends BaseClient {
2518
2516
  * The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.
2519
2517
  */
2520
2518
  parentName: () => Promise<string>;
2519
+ /**
2520
+ * Return an error from the function.
2521
+ * @param error The error to return.
2522
+ */
2523
+ returnError: (error: Error) => Promise<void>;
2521
2524
  /**
2522
2525
  * Set the return value of the function call to the provided value.
2523
2526
  * @param value JSON serialization of the return value.
@@ -2534,10 +2537,7 @@ export declare class FunctionCallArgValue extends BaseClient {
2534
2537
  /**
2535
2538
  * Constructor is used for internal usage only, do not create object from it.
2536
2539
  */
2537
- constructor(parent?: {
2538
- queryTree?: QueryTree[];
2539
- ctx: Context;
2540
- }, _id?: FunctionCallArgValueID, _name?: string, _value?: JSON);
2540
+ constructor(ctx?: Context, _id?: FunctionCallArgValueID, _name?: string, _value?: JSON);
2541
2541
  /**
2542
2542
  * A unique identifier for this FunctionCallArgValue.
2543
2543
  */
@@ -2559,10 +2559,7 @@ export declare class GeneratedCode extends BaseClient {
2559
2559
  /**
2560
2560
  * Constructor is used for internal usage only, do not create object from it.
2561
2561
  */
2562
- constructor(parent?: {
2563
- queryTree?: QueryTree[];
2564
- ctx: Context;
2565
- }, _id?: GeneratedCodeID);
2562
+ constructor(ctx?: Context, _id?: GeneratedCodeID);
2566
2563
  /**
2567
2564
  * A unique identifier for this GeneratedCode.
2568
2565
  */
@@ -2609,10 +2606,7 @@ export declare class GitModuleSource extends BaseClient {
2609
2606
  /**
2610
2607
  * Constructor is used for internal usage only, do not create object from it.
2611
2608
  */
2612
- constructor(parent?: {
2613
- queryTree?: QueryTree[];
2614
- ctx: Context;
2615
- }, _id?: GitModuleSourceID, _cloneRef?: string, _commit?: string, _htmlRepoURL?: string, _htmlURL?: string, _root?: string, _rootSubpath?: string, _version?: string);
2609
+ constructor(ctx?: Context, _id?: GitModuleSourceID, _cloneRef?: string, _commit?: string, _htmlRepoURL?: string, _htmlURL?: string, _root?: string, _rootSubpath?: string, _version?: string);
2616
2610
  /**
2617
2611
  * A unique identifier for this GitModuleSource.
2618
2612
  */
@@ -2659,10 +2653,7 @@ export declare class GitRef extends BaseClient {
2659
2653
  /**
2660
2654
  * Constructor is used for internal usage only, do not create object from it.
2661
2655
  */
2662
- constructor(parent?: {
2663
- queryTree?: QueryTree[];
2664
- ctx: Context;
2665
- }, _id?: GitRefID, _commit?: string);
2656
+ constructor(ctx?: Context, _id?: GitRefID, _commit?: string);
2666
2657
  /**
2667
2658
  * A unique identifier for this GitRef.
2668
2659
  */
@@ -2685,10 +2676,7 @@ export declare class GitRepository extends BaseClient {
2685
2676
  /**
2686
2677
  * Constructor is used for internal usage only, do not create object from it.
2687
2678
  */
2688
- constructor(parent?: {
2689
- queryTree?: QueryTree[];
2690
- ctx: Context;
2691
- }, _id?: GitRepositoryID);
2679
+ constructor(ctx?: Context, _id?: GitRepositoryID);
2692
2680
  /**
2693
2681
  * A unique identifier for this GitRepository.
2694
2682
  */
@@ -2747,10 +2735,7 @@ export declare class Host extends BaseClient {
2747
2735
  /**
2748
2736
  * Constructor is used for internal usage only, do not create object from it.
2749
2737
  */
2750
- constructor(parent?: {
2751
- queryTree?: QueryTree[];
2752
- ctx: Context;
2753
- }, _id?: HostID);
2738
+ constructor(ctx?: Context, _id?: HostID);
2754
2739
  /**
2755
2740
  * A unique identifier for this Host.
2756
2741
  */
@@ -2818,10 +2803,7 @@ export declare class InputTypeDef extends BaseClient {
2818
2803
  /**
2819
2804
  * Constructor is used for internal usage only, do not create object from it.
2820
2805
  */
2821
- constructor(parent?: {
2822
- queryTree?: QueryTree[];
2823
- ctx: Context;
2824
- }, _id?: InputTypeDefID, _name?: string);
2806
+ constructor(ctx?: Context, _id?: InputTypeDefID, _name?: string);
2825
2807
  /**
2826
2808
  * A unique identifier for this InputTypeDef.
2827
2809
  */
@@ -2846,10 +2828,7 @@ export declare class InterfaceTypeDef extends BaseClient {
2846
2828
  /**
2847
2829
  * Constructor is used for internal usage only, do not create object from it.
2848
2830
  */
2849
- constructor(parent?: {
2850
- queryTree?: QueryTree[];
2851
- ctx: Context;
2852
- }, _id?: InterfaceTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
2831
+ constructor(ctx?: Context, _id?: InterfaceTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
2853
2832
  /**
2854
2833
  * A unique identifier for this InterfaceTypeDef.
2855
2834
  */
@@ -2885,10 +2864,7 @@ export declare class Label extends BaseClient {
2885
2864
  /**
2886
2865
  * Constructor is used for internal usage only, do not create object from it.
2887
2866
  */
2888
- constructor(parent?: {
2889
- queryTree?: QueryTree[];
2890
- ctx: Context;
2891
- }, _id?: LabelID, _name?: string, _value?: string);
2867
+ constructor(ctx?: Context, _id?: LabelID, _name?: string, _value?: string);
2892
2868
  /**
2893
2869
  * A unique identifier for this Label.
2894
2870
  */
@@ -2910,10 +2886,7 @@ export declare class ListTypeDef extends BaseClient {
2910
2886
  /**
2911
2887
  * Constructor is used for internal usage only, do not create object from it.
2912
2888
  */
2913
- constructor(parent?: {
2914
- queryTree?: QueryTree[];
2915
- ctx: Context;
2916
- }, _id?: ListTypeDefID);
2889
+ constructor(ctx?: Context, _id?: ListTypeDefID);
2917
2890
  /**
2918
2891
  * A unique identifier for this ListTypeDef.
2919
2892
  */
@@ -2933,10 +2906,7 @@ export declare class LocalModuleSource extends BaseClient {
2933
2906
  /**
2934
2907
  * Constructor is used for internal usage only, do not create object from it.
2935
2908
  */
2936
- constructor(parent?: {
2937
- queryTree?: QueryTree[];
2938
- ctx: Context;
2939
- }, _id?: LocalModuleSourceID, _relHostPath?: string, _rootSubpath?: string);
2909
+ constructor(ctx?: Context, _id?: LocalModuleSourceID, _relHostPath?: string, _rootSubpath?: string);
2940
2910
  /**
2941
2911
  * A unique identifier for this LocalModuleSource.
2942
2912
  */
@@ -2966,10 +2936,7 @@ export declare class Module_ extends BaseClient {
2966
2936
  /**
2967
2937
  * Constructor is used for internal usage only, do not create object from it.
2968
2938
  */
2969
- constructor(parent?: {
2970
- queryTree?: QueryTree[];
2971
- ctx: Context;
2972
- }, _id?: ModuleID, _description?: string, _name?: string, _sdk?: string, _serve?: Void);
2939
+ constructor(ctx?: Context, _id?: ModuleID, _description?: string, _name?: string, _sdk?: string, _serve?: Void);
2973
2940
  /**
2974
2941
  * A unique identifier for this Module.
2975
2942
  */
@@ -3071,10 +3038,7 @@ export declare class ModuleDependency extends BaseClient {
3071
3038
  /**
3072
3039
  * Constructor is used for internal usage only, do not create object from it.
3073
3040
  */
3074
- constructor(parent?: {
3075
- queryTree?: QueryTree[];
3076
- ctx: Context;
3077
- }, _id?: ModuleDependencyID, _name?: string);
3041
+ constructor(ctx?: Context, _id?: ModuleDependencyID, _name?: string);
3078
3042
  /**
3079
3043
  * A unique identifier for this ModuleDependency.
3080
3044
  */
@@ -3099,16 +3063,14 @@ export declare class ModuleSource extends BaseClient {
3099
3063
  private readonly _kind?;
3100
3064
  private readonly _moduleName?;
3101
3065
  private readonly _moduleOriginalName?;
3066
+ private readonly _pin?;
3102
3067
  private readonly _resolveContextPathFromCaller?;
3103
3068
  private readonly _sourceRootSubpath?;
3104
3069
  private readonly _sourceSubpath?;
3105
3070
  /**
3106
3071
  * Constructor is used for internal usage only, do not create object from it.
3107
3072
  */
3108
- constructor(parent?: {
3109
- queryTree?: QueryTree[];
3110
- ctx: Context;
3111
- }, _id?: ModuleSourceID, _asString?: string, _configExists?: boolean, _digest?: string, _kind?: ModuleSourceKind, _moduleName?: string, _moduleOriginalName?: string, _resolveContextPathFromCaller?: string, _sourceRootSubpath?: string, _sourceSubpath?: string);
3073
+ constructor(ctx?: Context, _id?: ModuleSourceID, _asString?: string, _configExists?: boolean, _digest?: string, _kind?: ModuleSourceKind, _moduleName?: string, _moduleOriginalName?: string, _pin?: string, _resolveContextPathFromCaller?: string, _sourceRootSubpath?: string, _sourceSubpath?: string);
3112
3074
  /**
3113
3075
  * A unique identifier for this ModuleSource.
3114
3076
  */
@@ -3135,11 +3097,11 @@ export declare class ModuleSource extends BaseClient {
3135
3097
  */
3136
3098
  configExists: () => Promise<boolean>;
3137
3099
  /**
3138
- * The directory containing everything needed to load load and use the module.
3100
+ * The directory containing everything needed to load and use the module.
3139
3101
  */
3140
3102
  contextDirectory: () => Directory;
3141
3103
  /**
3142
- * The dependencies of the module source. Includes dependencies from the configuration and any extras from withDependencies calls.
3104
+ * The effective module source dependencies from the configuration, and calls to withDependencies and withoutDependencies.
3143
3105
  */
3144
3106
  dependencies: () => Promise<ModuleDependency[]>;
3145
3107
  /**
@@ -3163,6 +3125,10 @@ export declare class ModuleSource extends BaseClient {
3163
3125
  * The original name of the module this source references, as defined in the module configuration.
3164
3126
  */
3165
3127
  moduleOriginalName: () => Promise<string>;
3128
+ /**
3129
+ * The pinned version of this module source.
3130
+ */
3131
+ pin: () => Promise<string>;
3166
3132
  /**
3167
3133
  * The path to the module source's context directory on the caller's filesystem. Only valid for local sources.
3168
3134
  */
@@ -3236,6 +3202,11 @@ export declare class ModuleSource extends BaseClient {
3236
3202
  * @param patterns The patterns to set as the view filters.
3237
3203
  */
3238
3204
  withView: (name: string, patterns: string[]) => ModuleSource;
3205
+ /**
3206
+ * Remove the provided dependencies from the module source's dependency list.
3207
+ * @param dependencies The dependencies to remove.
3208
+ */
3209
+ withoutDependencies: (dependencies: string[]) => ModuleSource;
3239
3210
  /**
3240
3211
  * Call the provided function with current ModuleSource.
3241
3212
  *
@@ -3252,10 +3223,7 @@ export declare class ModuleSourceView extends BaseClient {
3252
3223
  /**
3253
3224
  * Constructor is used for internal usage only, do not create object from it.
3254
3225
  */
3255
- constructor(parent?: {
3256
- queryTree?: QueryTree[];
3257
- ctx: Context;
3258
- }, _id?: ModuleSourceViewID, _name?: string);
3226
+ constructor(ctx?: Context, _id?: ModuleSourceViewID, _name?: string);
3259
3227
  /**
3260
3228
  * A unique identifier for this ModuleSourceView.
3261
3229
  */
@@ -3280,10 +3248,7 @@ export declare class ObjectTypeDef extends BaseClient {
3280
3248
  /**
3281
3249
  * Constructor is used for internal usage only, do not create object from it.
3282
3250
  */
3283
- constructor(parent?: {
3284
- queryTree?: QueryTree[];
3285
- ctx: Context;
3286
- }, _id?: ObjectTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
3251
+ constructor(ctx?: Context, _id?: ObjectTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
3287
3252
  /**
3288
3253
  * A unique identifier for this ObjectTypeDef.
3289
3254
  */
@@ -3329,10 +3294,7 @@ export declare class Port extends BaseClient {
3329
3294
  /**
3330
3295
  * Constructor is used for internal usage only, do not create object from it.
3331
3296
  */
3332
- constructor(parent?: {
3333
- queryTree?: QueryTree[];
3334
- ctx: Context;
3335
- }, _id?: PortID, _description?: string, _experimentalSkipHealthcheck?: boolean, _port?: number, _protocol?: NetworkProtocol);
3297
+ constructor(ctx?: Context, _id?: PortID, _description?: string, _experimentalSkipHealthcheck?: boolean, _port?: number, _protocol?: NetworkProtocol);
3336
3298
  /**
3337
3299
  * A unique identifier for this Port.
3338
3300
  */
@@ -3363,10 +3325,7 @@ export declare class Client extends BaseClient {
3363
3325
  /**
3364
3326
  * Constructor is used for internal usage only, do not create object from it.
3365
3327
  */
3366
- constructor(parent?: {
3367
- queryTree?: QueryTree[];
3368
- ctx: Context;
3369
- }, _defaultPlatform?: Platform, _version?: string);
3328
+ constructor(ctx?: Context, _defaultPlatform?: Platform, _version?: string);
3370
3329
  /**
3371
3330
  * Get the Raw GraphQL client.
3372
3331
  */
@@ -3374,11 +3333,8 @@ export declare class Client extends BaseClient {
3374
3333
  /**
3375
3334
  * Retrieves a content-addressed blob.
3376
3335
  * @param digest Digest of the blob
3377
- * @param size Size of the blob
3378
- * @param mediaType Media type of the blob
3379
- * @param uncompressed Digest of the uncompressed blob
3380
3336
  */
3381
- blob: (digest: string, size: number, mediaType: string, uncompressed: string) => Directory;
3337
+ blob: (digest: string) => Directory;
3382
3338
  /**
3383
3339
  * Retrieves a container builtin to the engine.
3384
3340
  * @param digest Digest of the image manifest
@@ -3422,6 +3378,11 @@ export declare class Client extends BaseClient {
3422
3378
  * The Dagger engine container configuration and state
3423
3379
  */
3424
3380
  engine: () => Engine;
3381
+ /**
3382
+ * Create a new error.
3383
+ * @param message A brief description of the error.
3384
+ */
3385
+ error: (message: string) => Error;
3425
3386
  /**
3426
3387
  * Creates a function.
3427
3388
  * @param name Name of the function, in its original format from the implementation language.
@@ -3499,6 +3460,10 @@ export declare class Client extends BaseClient {
3499
3460
  * Load a EnvVariable from its ID.
3500
3461
  */
3501
3462
  loadEnvVariableFromID: (id: EnvVariableID) => EnvVariable;
3463
+ /**
3464
+ * Load a Error from its ID.
3465
+ */
3466
+ loadErrorFromID: (id: ErrorID) => Error;
3502
3467
  /**
3503
3468
  * Load a FieldTypeDef from its ID.
3504
3469
  */
@@ -3672,10 +3637,7 @@ export declare class ScalarTypeDef extends BaseClient {
3672
3637
  /**
3673
3638
  * Constructor is used for internal usage only, do not create object from it.
3674
3639
  */
3675
- constructor(parent?: {
3676
- queryTree?: QueryTree[];
3677
- ctx: Context;
3678
- }, _id?: ScalarTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
3640
+ constructor(ctx?: Context, _id?: ScalarTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
3679
3641
  /**
3680
3642
  * A unique identifier for this ScalarTypeDef.
3681
3643
  */
@@ -3703,10 +3665,7 @@ export declare class Secret extends BaseClient {
3703
3665
  /**
3704
3666
  * Constructor is used for internal usage only, do not create object from it.
3705
3667
  */
3706
- constructor(parent?: {
3707
- queryTree?: QueryTree[];
3708
- ctx: Context;
3709
- }, _id?: SecretID, _name?: string, _plaintext?: string);
3668
+ constructor(ctx?: Context, _id?: SecretID, _name?: string, _plaintext?: string);
3710
3669
  /**
3711
3670
  * A unique identifier for this Secret.
3712
3671
  */
@@ -3733,10 +3692,7 @@ export declare class Service extends BaseClient {
3733
3692
  /**
3734
3693
  * Constructor is used for internal usage only, do not create object from it.
3735
3694
  */
3736
- constructor(parent?: {
3737
- queryTree?: QueryTree[];
3738
- ctx: Context;
3739
- }, _id?: ServiceID, _endpoint?: string, _hostname?: string, _start?: ServiceID, _stop?: ServiceID, _up?: Void);
3695
+ constructor(ctx?: Context, _id?: ServiceID, _endpoint?: string, _hostname?: string, _start?: ServiceID, _stop?: ServiceID, _up?: Void);
3740
3696
  /**
3741
3697
  * A unique identifier for this Service.
3742
3698
  */
@@ -3798,10 +3754,7 @@ export declare class Socket extends BaseClient {
3798
3754
  /**
3799
3755
  * Constructor is used for internal usage only, do not create object from it.
3800
3756
  */
3801
- constructor(parent?: {
3802
- queryTree?: QueryTree[];
3803
- ctx: Context;
3804
- }, _id?: SocketID);
3757
+ constructor(ctx?: Context, _id?: SocketID);
3805
3758
  /**
3806
3759
  * A unique identifier for this Socket.
3807
3760
  */
@@ -3819,10 +3772,7 @@ export declare class SourceMap extends BaseClient {
3819
3772
  /**
3820
3773
  * Constructor is used for internal usage only, do not create object from it.
3821
3774
  */
3822
- constructor(parent?: {
3823
- queryTree?: QueryTree[];
3824
- ctx: Context;
3825
- }, _id?: SourceMapID, _column?: number, _filename?: string, _line?: number, _module?: string);
3775
+ constructor(ctx?: Context, _id?: SourceMapID, _column?: number, _filename?: string, _line?: number, _module?: string);
3826
3776
  /**
3827
3777
  * A unique identifier for this SourceMap.
3828
3778
  */
@@ -3853,10 +3803,7 @@ export declare class Terminal extends BaseClient {
3853
3803
  /**
3854
3804
  * Constructor is used for internal usage only, do not create object from it.
3855
3805
  */
3856
- constructor(parent?: {
3857
- queryTree?: QueryTree[];
3858
- ctx: Context;
3859
- }, _id?: TerminalID, _sync?: TerminalID);
3806
+ constructor(ctx?: Context, _id?: TerminalID, _sync?: TerminalID);
3860
3807
  /**
3861
3808
  * A unique identifier for this Terminal.
3862
3809
  */
@@ -3878,10 +3825,7 @@ export declare class TypeDef extends BaseClient {
3878
3825
  /**
3879
3826
  * Constructor is used for internal usage only, do not create object from it.
3880
3827
  */
3881
- constructor(parent?: {
3882
- queryTree?: QueryTree[];
3883
- ctx: Context;
3884
- }, _id?: TypeDefID, _kind?: TypeDefKind, _optional?: boolean);
3828
+ constructor(ctx?: Context, _id?: TypeDefID, _kind?: TypeDefKind, _optional?: boolean);
3885
3829
  /**
3886
3830
  * A unique identifier for this TypeDef.
3887
3831
  */