@madebyentropy/tnl 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/LICENSE +28 -0
  2. package/NOTICE +5 -0
  3. package/THIRD_PARTY_LICENSES.txt +3297 -0
  4. package/dist/adapters/ioredis.d.ts +7 -0
  5. package/dist/adapters/ioredis.js +87 -0
  6. package/dist/adapters/node-postgres.d.ts +8 -0
  7. package/dist/adapters/node-postgres.js +41 -0
  8. package/dist/adapters/postgres-js.d.ts +7 -0
  9. package/dist/adapters/postgres-js.js +55 -0
  10. package/dist/bin/tnl.d.ts +2 -0
  11. package/dist/bin/tnl.js +16 -0
  12. package/dist/browser.d.ts +18 -0
  13. package/dist/browser.js +43 -0
  14. package/dist/bun.d.ts +9 -0
  15. package/dist/bun.js +6 -0
  16. package/dist/cloudflare.d.ts +9 -0
  17. package/dist/cloudflare.js +16 -0
  18. package/dist/config.d.ts +107 -0
  19. package/dist/config.gen.d.ts +1185 -0
  20. package/dist/config.gen.js +2 -0
  21. package/dist/config.js +3 -0
  22. package/dist/control.d.ts +5 -0
  23. package/dist/control.js +9 -0
  24. package/dist/durable-object.d.ts +51 -0
  25. package/dist/durable-object.js +374 -0
  26. package/dist/durable-object.worker.d.ts +5 -0
  27. package/dist/durable-object.worker.js +11 -0
  28. package/dist/errors.d.ts +17 -0
  29. package/dist/errors.js +230 -0
  30. package/dist/index.d.ts +10 -0
  31. package/dist/index.js +2 -0
  32. package/dist/internal/connector/cancellation.d.ts +7 -0
  33. package/dist/internal/connector/cancellation.js +30 -0
  34. package/dist/internal/connector/client.d.ts +62 -0
  35. package/dist/internal/connector/client.js +504 -0
  36. package/dist/internal/connector/client_factory.d.ts +6 -0
  37. package/dist/internal/connector/client_factory.js +123 -0
  38. package/dist/internal/connector/connection.d.ts +39 -0
  39. package/dist/internal/connector/connection.js +739 -0
  40. package/dist/internal/connector/connection_ipc.d.ts +12 -0
  41. package/dist/internal/connector/connection_ipc.js +198 -0
  42. package/dist/internal/connector/context.d.ts +28 -0
  43. package/dist/internal/connector/context.js +19 -0
  44. package/dist/internal/connector/contract.d.ts +392 -0
  45. package/dist/internal/connector/contract.js +56 -0
  46. package/dist/internal/connector/deployment_types.d.ts +27 -0
  47. package/dist/internal/connector/deployment_types.js +1 -0
  48. package/dist/internal/connector/driver_socket.d.ts +21 -0
  49. package/dist/internal/connector/driver_socket.js +129 -0
  50. package/dist/internal/connector/management.d.ts +29 -0
  51. package/dist/internal/connector/management.js +118 -0
  52. package/dist/internal/connector/native_operations.d.ts +16 -0
  53. package/dist/internal/connector/native_operations.js +30 -0
  54. package/dist/internal/connector/native_stream.d.ts +7 -0
  55. package/dist/internal/connector/native_stream.js +219 -0
  56. package/dist/internal/connector/operation_handles.d.ts +9 -0
  57. package/dist/internal/connector/operation_handles.js +18 -0
  58. package/dist/internal/connector/portable_operations.d.ts +13 -0
  59. package/dist/internal/connector/portable_operations.js +25 -0
  60. package/dist/internal/connector/snapshot.d.ts +183 -0
  61. package/dist/internal/connector/snapshot.js +47 -0
  62. package/dist/internal/connector/wasm_abi.d.ts +76 -0
  63. package/dist/internal/connector/wasm_abi.js +5 -0
  64. package/dist/internal/connector/wasm_client.d.ts +58 -0
  65. package/dist/internal/connector/wasm_client.js +545 -0
  66. package/dist/internal/connector/wasm_loader.d.ts +15 -0
  67. package/dist/internal/connector/wasm_loader.js +99 -0
  68. package/dist/internal/connector/wasm_stream.d.ts +4 -0
  69. package/dist/internal/connector/wasm_stream.js +177 -0
  70. package/dist/internal/connector/workload/contract.d.ts +54 -0
  71. package/dist/internal/connector/workload/contract.js +14 -0
  72. package/dist/internal/connector/workload/provider.d.ts +24 -0
  73. package/dist/internal/connector/workload/provider.js +130 -0
  74. package/dist/internal/enrollment_source.d.ts +4 -0
  75. package/dist/internal/enrollment_source.js +34 -0
  76. package/dist/internal/management/client/client.gen.d.ts +2 -0
  77. package/dist/internal/management/client/client.gen.js +216 -0
  78. package/dist/internal/management/client/index.d.ts +10 -0
  79. package/dist/internal/management/client/index.js +6 -0
  80. package/dist/internal/management/client/types.gen.d.ts +120 -0
  81. package/dist/internal/management/client/types.gen.js +2 -0
  82. package/dist/internal/management/client/utils.gen.d.ts +37 -0
  83. package/dist/internal/management/client/utils.gen.js +228 -0
  84. package/dist/internal/management/client.gen.d.ts +12 -0
  85. package/dist/internal/management/client.gen.js +3 -0
  86. package/dist/internal/management/core/auth.gen.d.ts +25 -0
  87. package/dist/internal/management/core/auth.gen.js +14 -0
  88. package/dist/internal/management/core/bodySerializer.gen.d.ts +25 -0
  89. package/dist/internal/management/core/bodySerializer.gen.js +57 -0
  90. package/dist/internal/management/core/params.gen.d.ts +43 -0
  91. package/dist/internal/management/core/params.gen.js +109 -0
  92. package/dist/internal/management/core/pathSerializer.gen.d.ts +33 -0
  93. package/dist/internal/management/core/pathSerializer.gen.js +106 -0
  94. package/dist/internal/management/core/queryKeySerializer.gen.d.ts +18 -0
  95. package/dist/internal/management/core/queryKeySerializer.gen.js +92 -0
  96. package/dist/internal/management/core/serverSentEvents.gen.d.ts +71 -0
  97. package/dist/internal/management/core/serverSentEvents.gen.js +132 -0
  98. package/dist/internal/management/core/types.gen.d.ts +83 -0
  99. package/dist/internal/management/core/types.gen.js +2 -0
  100. package/dist/internal/management/core/utils.gen.d.ts +19 -0
  101. package/dist/internal/management/core/utils.gen.js +87 -0
  102. package/dist/internal/management/index.d.ts +2 -0
  103. package/dist/internal/management/index.js +2 -0
  104. package/dist/internal/management/sdk.gen.d.ts +73 -0
  105. package/dist/internal/management/sdk.gen.js +191 -0
  106. package/dist/internal/management/types.gen.d.ts +464 -0
  107. package/dist/internal/management/types.gen.js +2 -0
  108. package/dist/internal/management/zod.gen.d.ts +850 -0
  109. package/dist/internal/management/zod.gen.js +252 -0
  110. package/dist/internal/native/launcher.d.ts +8 -0
  111. package/dist/internal/native/launcher.js +75 -0
  112. package/dist/internal/native/native-targets.d.ts +9 -0
  113. package/dist/internal/native/native-targets.js +8 -0
  114. package/dist/internal/portable/cloudflare-publisher-client.d.ts +54 -0
  115. package/dist/internal/portable/cloudflare-publisher-client.js +91 -0
  116. package/dist/internal/portable/cloudflare-publisher.d.ts +19 -0
  117. package/dist/internal/portable/cloudflare-publisher.js +210 -0
  118. package/dist/internal/portable/durable-deployment.d.ts +10 -0
  119. package/dist/internal/portable/durable-deployment.js +22 -0
  120. package/dist/internal/portable/enrollment.d.ts +26 -0
  121. package/dist/internal/portable/enrollment.js +196 -0
  122. package/dist/internal/portable/publication.d.ts +54 -0
  123. package/dist/internal/portable/publication.js +304 -0
  124. package/dist/internal/portable/request.d.ts +1 -0
  125. package/dist/internal/portable/request.js +20 -0
  126. package/dist/internal/portable/storage-browser.d.ts +9 -0
  127. package/dist/internal/portable/storage-browser.js +115 -0
  128. package/dist/internal/portable/storage-durable-object.d.ts +11 -0
  129. package/dist/internal/portable/storage-durable-object.js +110 -0
  130. package/dist/internal/portable/storage-host.d.ts +8 -0
  131. package/dist/internal/portable/storage-host.js +142 -0
  132. package/dist/internal/portable/storage.d.ts +15 -0
  133. package/dist/internal/portable/storage.js +29 -0
  134. package/dist/internal/project/native_runtime.d.ts +24 -0
  135. package/dist/internal/project/native_runtime.js +23 -0
  136. package/dist/internal/project/runtime.d.ts +467 -0
  137. package/dist/internal/project/runtime.js +183 -0
  138. package/dist/internal/project/service_metadata.d.ts +3 -0
  139. package/dist/internal/project/service_metadata.js +12 -0
  140. package/dist/internal/publication_certificate.d.ts +28 -0
  141. package/dist/internal/publication_certificate.js +32 -0
  142. package/dist/internal/publication_run.d.ts +8 -0
  143. package/dist/internal/publication_run.js +19 -0
  144. package/dist/internal/publisher/app.d.ts +33 -0
  145. package/dist/internal/publisher/app.js +317 -0
  146. package/dist/internal/publisher/fetch.d.ts +6 -0
  147. package/dist/internal/publisher/fetch.js +135 -0
  148. package/dist/internal/publisher/fetch_types.d.ts +1 -0
  149. package/dist/internal/publisher/fetch_types.js +1 -0
  150. package/dist/internal/publisher/framework.d.ts +27 -0
  151. package/dist/internal/publisher/framework.js +82 -0
  152. package/dist/internal/publisher/local.d.ts +39 -0
  153. package/dist/internal/publisher/local.js +312 -0
  154. package/dist/internal/publisher/native_publisher.d.ts +25 -0
  155. package/dist/internal/publisher/native_publisher.js +228 -0
  156. package/dist/internal/publisher/port.d.ts +2 -0
  157. package/dist/internal/publisher/port.js +15 -0
  158. package/dist/internal/publisher/publication.d.ts +88 -0
  159. package/dist/internal/publisher/publication.js +627 -0
  160. package/dist/internal/publisher/register.d.ts +31 -0
  161. package/dist/internal/publisher/register.js +136 -0
  162. package/dist/internal/publisher/registration.d.ts +385 -0
  163. package/dist/internal/publisher/registration.js +223 -0
  164. package/dist/internal/publisher/status.d.ts +47 -0
  165. package/dist/internal/publisher/status.js +137 -0
  166. package/dist/internal/publisher/target.d.ts +6 -0
  167. package/dist/internal/publisher/target.js +44 -0
  168. package/dist/internal/runtime_resources.d.ts +38 -0
  169. package/dist/internal/runtime_resources.js +52 -0
  170. package/dist/internal/tracing.d.ts +10 -0
  171. package/dist/internal/tracing.js +78 -0
  172. package/dist/internal/validation.d.ts +3 -0
  173. package/dist/internal/validation.js +9 -0
  174. package/dist/internal/values.d.ts +27 -0
  175. package/dist/internal/values.js +54 -0
  176. package/dist/next.d.ts +12 -0
  177. package/dist/next.js +82 -0
  178. package/dist/node.d.ts +9 -0
  179. package/dist/node.js +6 -0
  180. package/dist/project.d.ts +173 -0
  181. package/dist/project.js +1 -0
  182. package/dist/response.d.ts +1 -0
  183. package/dist/response.js +34 -0
  184. package/dist/third-party-licenses.txt +1537 -0
  185. package/dist/vite.d.ts +5 -0
  186. package/dist/vite.js +200 -0
  187. package/dist/wasm/build.json +16 -0
  188. package/dist/wasm/connector.wasm +0 -0
  189. package/dist/wasm/go-license.txt +27 -0
  190. package/dist/wasm/publisher.wasm +0 -0
  191. package/dist/wasm/third-party-licenses.txt +3297 -0
  192. package/dist/wasm/wasm_exec.d.ts +1 -0
  193. package/dist/wasm/wasm_exec.js +575 -0
  194. package/dist/workload.d.ts +11 -0
  195. package/dist/workload.js +4 -0
  196. package/package.json +159 -4
  197. package/readme.md +13 -0
  198. package/README.md +0 -3
@@ -0,0 +1,1185 @@
1
+ type TnlRateSegment = `${number}${"ns" | "us" | "µs" | "ms" | "s" | "m" | "h"}`;
2
+ /** whole binary byte units; tnl checks the 1MiB–1GiB bound at runtime. */
3
+ export type TnlByteSize = `${bigint}${"KiB" | "MiB" | "GiB"}`;
4
+ /** a Go duration with one to four numeric unit segments; tnl checks positivity at runtime. */
5
+ export type TnlRatePeriod = TnlRateSegment | `${TnlRateSegment}${TnlRateSegment}` | `${TnlRateSegment}${TnlRateSegment}${TnlRateSegment}` | `${TnlRateSegment}${TnlRateSegment}${TnlRateSegment}${TnlRateSegment}`;
6
+ export interface TnlConfig {
7
+ name?: string;
8
+ server?: string;
9
+ team?: string;
10
+ /**
11
+ * Use opaque hosted addresses for new public HTTP development services.
12
+ */
13
+ naming?: "opaque";
14
+ feedback?: boolean;
15
+ oauth?: boolean;
16
+ inspection?: Inspection;
17
+ services?: {
18
+ [k: string]: {
19
+ protocol?: "http" | "tcp" | "mysql" | "postgres" | "kubernetes";
20
+ } | undefined;
21
+ };
22
+ deployments?: {
23
+ [k: string]: {
24
+ description?: string;
25
+ domain?: string;
26
+ public?: never;
27
+ targets?: {
28
+ [k: string]: {
29
+ type?: "app";
30
+ /**
31
+ * Verified publisher-to-target TLS. The protocol selects PostgreSQL or MySQL native negotiation, or direct TLS for HTTP/TCP. Independent of mandatory managed visitor TLS; never falls back to plaintext or unverified TLS.
32
+ */
33
+ tls?: {
34
+ /**
35
+ * Verified target certificate hostname or IP; defaults to the resolved target host. Required when applying an app target before its listener is known.
36
+ */
37
+ hostname?: string;
38
+ /**
39
+ * system (the default), aws-rds, or CA-only PEM certificates. Never a path or URL. aws-rds selects pinned regional roots offline and verifies the exact database hostname.
40
+ */
41
+ ca?: string;
42
+ };
43
+ address?: never;
44
+ project?: never;
45
+ file?: never;
46
+ service?: never;
47
+ port?: never;
48
+ container?: never;
49
+ region?: never;
50
+ cluster?: never;
51
+ instance?: never;
52
+ endpoint?: never;
53
+ name?: string;
54
+ auth?: never;
55
+ access?: {
56
+ team: true;
57
+ };
58
+ /**
59
+ * Public endpoint access for this service binding, independent of visitor authorization. False keeps connector access only.
60
+ */
61
+ public?: boolean;
62
+ inspection?: Inspection;
63
+ /**
64
+ * Exact canonical DNS hostname for the service endpoint; never an HTTPS origin.
65
+ */
66
+ hostname?: string;
67
+ /**
68
+ * Ready team domain used for the service endpoint.
69
+ */
70
+ domain?: string;
71
+ /**
72
+ * Remove the service after its publication stops.
73
+ */
74
+ ephemeral?: boolean;
75
+ traffic?: {
76
+ connections?: number;
77
+ rate?: number;
78
+ burst?: number;
79
+ downloadBytes?: number;
80
+ ratePer?: TnlRatePeriod;
81
+ totalConnections?: number;
82
+ totalDownloadBytes?: number;
83
+ totalUploadBytes?: number;
84
+ uploadBytes?: number;
85
+ };
86
+ http?: {
87
+ access?: ("restricted" | "anonymous") | {
88
+ mode?: "restricted" | "anonymous";
89
+ /**
90
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
91
+ *
92
+ * @minItems 1
93
+ */
94
+ ip?: [string, ...string[]];
95
+ };
96
+ limits?: {
97
+ total?: number;
98
+ concurrency?: number;
99
+ rate?: {
100
+ count?: number;
101
+ per?: TnlRatePeriod;
102
+ burst?: number;
103
+ };
104
+ };
105
+ /**
106
+ * Readiness probe for a local HTTP service. Remote publisher assignments do not support HTTP settings.
107
+ */
108
+ readiness?: {
109
+ path: string;
110
+ };
111
+ open?: boolean;
112
+ /**
113
+ * Mount another local HTTP service at a path on this HTTP service. Remote publisher assignments do not support path mounts.
114
+ */
115
+ paths?: {
116
+ [k: string]: string | {
117
+ service: string;
118
+ stripPrefix?: boolean;
119
+ } | undefined;
120
+ };
121
+ /**
122
+ * Positive Go duration while awaiting incoming request body bytes; defaults to 30s. Body progress resets the timer. Target backpressure, completed uploads, responses, and WebSockets do not spend this timeout.
123
+ */
124
+ requestBodyIdleTimeout?: TnlRatePeriod;
125
+ };
126
+ /**
127
+ * Authorize a managed wildcard for enrolled publishers of this public HTTP deployment binding. Match the publisher alias parent and directly contain the service hostname in a dedicated custom-domain subtree.
128
+ */
129
+ certificateScope?: string;
130
+ /**
131
+ * Give each publisher a stable HTTP hostname for this service beneath this authorized DNS parent. Empty disables aliases; public reachability remains separate.
132
+ */
133
+ publisherAliasParent?: string;
134
+ /**
135
+ * Require hybrid post-quantum key agreement for visitor TLS.
136
+ */
137
+ requirePostQuantum?: boolean;
138
+ } | {
139
+ type?: "address";
140
+ address: string | number;
141
+ /**
142
+ * Verified publisher-to-target TLS. The protocol selects PostgreSQL or MySQL native negotiation, or direct TLS for HTTP/TCP. Independent of mandatory managed visitor TLS; never falls back to plaintext or unverified TLS.
143
+ */
144
+ tls?: {
145
+ /**
146
+ * Verified target certificate hostname or IP; defaults to the resolved target host. Required when applying an app target before its listener is known.
147
+ */
148
+ hostname?: string;
149
+ /**
150
+ * system (the default), aws-rds, or CA-only PEM certificates. Never a path or URL. aws-rds selects pinned regional roots offline and verifies the exact database hostname.
151
+ */
152
+ ca?: string;
153
+ };
154
+ project?: never;
155
+ file?: never;
156
+ service?: never;
157
+ port?: never;
158
+ container?: never;
159
+ region?: never;
160
+ cluster?: never;
161
+ instance?: never;
162
+ endpoint?: never;
163
+ name?: string;
164
+ auth?: never;
165
+ access?: {
166
+ team: true;
167
+ };
168
+ /**
169
+ * Public endpoint access for this service binding, independent of visitor authorization. False keeps connector access only.
170
+ */
171
+ public?: boolean;
172
+ inspection?: Inspection;
173
+ /**
174
+ * Exact canonical DNS hostname for the service endpoint; never an HTTPS origin.
175
+ */
176
+ hostname?: string;
177
+ /**
178
+ * Ready team domain used for the service endpoint.
179
+ */
180
+ domain?: string;
181
+ /**
182
+ * Remove the service after its publication stops.
183
+ */
184
+ ephemeral?: boolean;
185
+ traffic?: {
186
+ connections?: number;
187
+ rate?: number;
188
+ burst?: number;
189
+ downloadBytes?: number;
190
+ ratePer?: TnlRatePeriod;
191
+ totalConnections?: number;
192
+ totalDownloadBytes?: number;
193
+ totalUploadBytes?: number;
194
+ uploadBytes?: number;
195
+ };
196
+ http?: {
197
+ access?: ("restricted" | "anonymous") | {
198
+ mode?: "restricted" | "anonymous";
199
+ /**
200
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
201
+ *
202
+ * @minItems 1
203
+ */
204
+ ip?: [string, ...string[]];
205
+ };
206
+ limits?: {
207
+ total?: number;
208
+ concurrency?: number;
209
+ rate?: {
210
+ count?: number;
211
+ per?: TnlRatePeriod;
212
+ burst?: number;
213
+ };
214
+ };
215
+ /**
216
+ * Readiness probe for a local HTTP service. Remote publisher assignments do not support HTTP settings.
217
+ */
218
+ readiness?: {
219
+ path: string;
220
+ };
221
+ open?: boolean;
222
+ /**
223
+ * Mount another local HTTP service at a path on this HTTP service. Remote publisher assignments do not support path mounts.
224
+ */
225
+ paths?: {
226
+ [k: string]: string | {
227
+ service: string;
228
+ stripPrefix?: boolean;
229
+ } | undefined;
230
+ };
231
+ /**
232
+ * Positive Go duration while awaiting incoming request body bytes; defaults to 30s. Body progress resets the timer. Target backpressure, completed uploads, responses, and WebSockets do not spend this timeout.
233
+ */
234
+ requestBodyIdleTimeout?: TnlRatePeriod;
235
+ };
236
+ /**
237
+ * Authorize a managed wildcard for enrolled publishers of this public HTTP deployment binding. Match the publisher alias parent and directly contain the service hostname in a dedicated custom-domain subtree.
238
+ */
239
+ certificateScope?: string;
240
+ /**
241
+ * Give each publisher a stable HTTP hostname for this service beneath this authorized DNS parent. Empty disables aliases; public reachability remains separate.
242
+ */
243
+ publisherAliasParent?: string;
244
+ /**
245
+ * Require hybrid post-quantum key agreement for visitor TLS.
246
+ */
247
+ requirePostQuantum?: boolean;
248
+ } | {
249
+ type: "compose";
250
+ project?: string;
251
+ file?: string;
252
+ service: string;
253
+ port: number;
254
+ /**
255
+ * Verified publisher-to-target TLS. The protocol selects PostgreSQL or MySQL native negotiation, or direct TLS for HTTP/TCP. Independent of mandatory managed visitor TLS; never falls back to plaintext or unverified TLS.
256
+ */
257
+ tls?: {
258
+ /**
259
+ * Verified target certificate hostname or IP; defaults to the resolved target host. Required when applying an app target before its listener is known.
260
+ */
261
+ hostname?: string;
262
+ /**
263
+ * system (the default), aws-rds, or CA-only PEM certificates. Never a path or URL. aws-rds selects pinned regional roots offline and verifies the exact database hostname.
264
+ */
265
+ ca?: string;
266
+ };
267
+ address?: never;
268
+ container?: never;
269
+ region?: never;
270
+ cluster?: never;
271
+ instance?: never;
272
+ endpoint?: never;
273
+ name?: string;
274
+ auth?: never;
275
+ access?: {
276
+ team: true;
277
+ };
278
+ /**
279
+ * Public endpoint access for this service binding, independent of visitor authorization. False keeps connector access only.
280
+ */
281
+ public?: boolean;
282
+ inspection?: Inspection;
283
+ /**
284
+ * Exact canonical DNS hostname for the service endpoint; never an HTTPS origin.
285
+ */
286
+ hostname?: string;
287
+ /**
288
+ * Ready team domain used for the service endpoint.
289
+ */
290
+ domain?: string;
291
+ /**
292
+ * Remove the service after its publication stops.
293
+ */
294
+ ephemeral?: boolean;
295
+ traffic?: {
296
+ connections?: number;
297
+ rate?: number;
298
+ burst?: number;
299
+ downloadBytes?: number;
300
+ ratePer?: TnlRatePeriod;
301
+ totalConnections?: number;
302
+ totalDownloadBytes?: number;
303
+ totalUploadBytes?: number;
304
+ uploadBytes?: number;
305
+ };
306
+ http?: {
307
+ access?: ("restricted" | "anonymous") | {
308
+ mode?: "restricted" | "anonymous";
309
+ /**
310
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
311
+ *
312
+ * @minItems 1
313
+ */
314
+ ip?: [string, ...string[]];
315
+ };
316
+ limits?: {
317
+ total?: number;
318
+ concurrency?: number;
319
+ rate?: {
320
+ count?: number;
321
+ per?: TnlRatePeriod;
322
+ burst?: number;
323
+ };
324
+ };
325
+ /**
326
+ * Readiness probe for a local HTTP service. Remote publisher assignments do not support HTTP settings.
327
+ */
328
+ readiness?: {
329
+ path: string;
330
+ };
331
+ open?: boolean;
332
+ /**
333
+ * Mount another local HTTP service at a path on this HTTP service. Remote publisher assignments do not support path mounts.
334
+ */
335
+ paths?: {
336
+ [k: string]: string | {
337
+ service: string;
338
+ stripPrefix?: boolean;
339
+ } | undefined;
340
+ };
341
+ /**
342
+ * Positive Go duration while awaiting incoming request body bytes; defaults to 30s. Body progress resets the timer. Target backpressure, completed uploads, responses, and WebSockets do not spend this timeout.
343
+ */
344
+ requestBodyIdleTimeout?: TnlRatePeriod;
345
+ };
346
+ /**
347
+ * Authorize a managed wildcard for enrolled publishers of this public HTTP deployment binding. Match the publisher alias parent and directly contain the service hostname in a dedicated custom-domain subtree.
348
+ */
349
+ certificateScope?: string;
350
+ /**
351
+ * Give each publisher a stable HTTP hostname for this service beneath this authorized DNS parent. Empty disables aliases; public reachability remains separate.
352
+ */
353
+ publisherAliasParent?: string;
354
+ /**
355
+ * Require hybrid post-quantum key agreement for visitor TLS.
356
+ */
357
+ requirePostQuantum?: boolean;
358
+ } | {
359
+ type: "docker";
360
+ container: string;
361
+ port: number;
362
+ /**
363
+ * Verified publisher-to-target TLS. The protocol selects PostgreSQL or MySQL native negotiation, or direct TLS for HTTP/TCP. Independent of mandatory managed visitor TLS; never falls back to plaintext or unverified TLS.
364
+ */
365
+ tls?: {
366
+ /**
367
+ * Verified target certificate hostname or IP; defaults to the resolved target host. Required when applying an app target before its listener is known.
368
+ */
369
+ hostname?: string;
370
+ /**
371
+ * system (the default), aws-rds, or CA-only PEM certificates. Never a path or URL. aws-rds selects pinned regional roots offline and verifies the exact database hostname.
372
+ */
373
+ ca?: string;
374
+ };
375
+ address?: never;
376
+ project?: never;
377
+ file?: never;
378
+ service?: never;
379
+ region?: never;
380
+ cluster?: never;
381
+ instance?: never;
382
+ endpoint?: never;
383
+ name?: string;
384
+ auth?: never;
385
+ access?: {
386
+ team: true;
387
+ };
388
+ /**
389
+ * Public endpoint access for this service binding, independent of visitor authorization. False keeps connector access only.
390
+ */
391
+ public?: boolean;
392
+ inspection?: Inspection;
393
+ /**
394
+ * Exact canonical DNS hostname for the service endpoint; never an HTTPS origin.
395
+ */
396
+ hostname?: string;
397
+ /**
398
+ * Ready team domain used for the service endpoint.
399
+ */
400
+ domain?: string;
401
+ /**
402
+ * Remove the service after its publication stops.
403
+ */
404
+ ephemeral?: boolean;
405
+ traffic?: {
406
+ connections?: number;
407
+ rate?: number;
408
+ burst?: number;
409
+ downloadBytes?: number;
410
+ ratePer?: TnlRatePeriod;
411
+ totalConnections?: number;
412
+ totalDownloadBytes?: number;
413
+ totalUploadBytes?: number;
414
+ uploadBytes?: number;
415
+ };
416
+ http?: {
417
+ access?: ("restricted" | "anonymous") | {
418
+ mode?: "restricted" | "anonymous";
419
+ /**
420
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
421
+ *
422
+ * @minItems 1
423
+ */
424
+ ip?: [string, ...string[]];
425
+ };
426
+ limits?: {
427
+ total?: number;
428
+ concurrency?: number;
429
+ rate?: {
430
+ count?: number;
431
+ per?: TnlRatePeriod;
432
+ burst?: number;
433
+ };
434
+ };
435
+ /**
436
+ * Readiness probe for a local HTTP service. Remote publisher assignments do not support HTTP settings.
437
+ */
438
+ readiness?: {
439
+ path: string;
440
+ };
441
+ open?: boolean;
442
+ /**
443
+ * Mount another local HTTP service at a path on this HTTP service. Remote publisher assignments do not support path mounts.
444
+ */
445
+ paths?: {
446
+ [k: string]: string | {
447
+ service: string;
448
+ stripPrefix?: boolean;
449
+ } | undefined;
450
+ };
451
+ /**
452
+ * Positive Go duration while awaiting incoming request body bytes; defaults to 30s. Body progress resets the timer. Target backpressure, completed uploads, responses, and WebSockets do not spend this timeout.
453
+ */
454
+ requestBodyIdleTimeout?: TnlRatePeriod;
455
+ };
456
+ /**
457
+ * Authorize a managed wildcard for enrolled publishers of this public HTTP deployment binding. Match the publisher alias parent and directly contain the service hostname in a dedicated custom-domain subtree.
458
+ */
459
+ certificateScope?: string;
460
+ /**
461
+ * Give each publisher a stable HTTP hostname for this service beneath this authorized DNS parent. Empty disables aliases; public reachability remains separate.
462
+ */
463
+ publisherAliasParent?: string;
464
+ /**
465
+ * Require hybrid post-quantum key agreement for visitor TLS.
466
+ */
467
+ requirePostQuantum?: boolean;
468
+ } | {
469
+ type: "eks";
470
+ region: string;
471
+ cluster: string;
472
+ tls?: never;
473
+ address?: never;
474
+ project?: never;
475
+ file?: never;
476
+ service?: never;
477
+ port?: never;
478
+ container?: never;
479
+ instance?: never;
480
+ endpoint?: never;
481
+ name?: string;
482
+ auth?: never;
483
+ access?: {
484
+ team: true;
485
+ };
486
+ /**
487
+ * Public endpoint access for this service binding, independent of visitor authorization. False keeps connector access only.
488
+ */
489
+ public?: boolean;
490
+ inspection?: Inspection;
491
+ /**
492
+ * Exact canonical DNS hostname for the service endpoint; never an HTTPS origin.
493
+ */
494
+ hostname?: string;
495
+ /**
496
+ * Ready team domain used for the service endpoint.
497
+ */
498
+ domain?: string;
499
+ /**
500
+ * Remove the service after its publication stops.
501
+ */
502
+ ephemeral?: boolean;
503
+ traffic?: {
504
+ connections?: number;
505
+ rate?: number;
506
+ burst?: number;
507
+ downloadBytes?: number;
508
+ ratePer?: TnlRatePeriod;
509
+ totalConnections?: number;
510
+ totalDownloadBytes?: number;
511
+ totalUploadBytes?: number;
512
+ uploadBytes?: number;
513
+ };
514
+ http?: {
515
+ access?: ("restricted" | "anonymous") | {
516
+ mode?: "restricted" | "anonymous";
517
+ /**
518
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
519
+ *
520
+ * @minItems 1
521
+ */
522
+ ip?: [string, ...string[]];
523
+ };
524
+ limits?: {
525
+ total?: number;
526
+ concurrency?: number;
527
+ rate?: {
528
+ count?: number;
529
+ per?: TnlRatePeriod;
530
+ burst?: number;
531
+ };
532
+ };
533
+ /**
534
+ * Readiness probe for a local HTTP service. Remote publisher assignments do not support HTTP settings.
535
+ */
536
+ readiness?: {
537
+ path: string;
538
+ };
539
+ open?: boolean;
540
+ /**
541
+ * Mount another local HTTP service at a path on this HTTP service. Remote publisher assignments do not support path mounts.
542
+ */
543
+ paths?: {
544
+ [k: string]: string | {
545
+ service: string;
546
+ stripPrefix?: boolean;
547
+ } | undefined;
548
+ };
549
+ /**
550
+ * Positive Go duration while awaiting incoming request body bytes; defaults to 30s. Body progress resets the timer. Target backpressure, completed uploads, responses, and WebSockets do not spend this timeout.
551
+ */
552
+ requestBodyIdleTimeout?: TnlRatePeriod;
553
+ };
554
+ /**
555
+ * Authorize a managed wildcard for enrolled publishers of this public HTTP deployment binding. Match the publisher alias parent and directly contain the service hostname in a dedicated custom-domain subtree.
556
+ */
557
+ certificateScope?: string;
558
+ /**
559
+ * Give each publisher a stable HTTP hostname for this service beneath this authorized DNS parent. Empty disables aliases; public reachability remains separate.
560
+ */
561
+ publisherAliasParent?: string;
562
+ /**
563
+ * Require hybrid post-quantum key agreement for visitor TLS.
564
+ */
565
+ requirePostQuantum?: boolean;
566
+ } | {
567
+ type: "rds";
568
+ region: string;
569
+ cluster?: never;
570
+ instance: string;
571
+ endpoint?: "writer";
572
+ tls?: never;
573
+ address?: never;
574
+ project?: never;
575
+ file?: never;
576
+ service?: never;
577
+ port?: never;
578
+ container?: never;
579
+ name?: string;
580
+ auth?: never;
581
+ access?: {
582
+ team: true;
583
+ };
584
+ /**
585
+ * Public endpoint access for this service binding, independent of visitor authorization. False keeps connector access only.
586
+ */
587
+ public?: boolean;
588
+ inspection?: Inspection;
589
+ /**
590
+ * Exact canonical DNS hostname for the service endpoint; never an HTTPS origin.
591
+ */
592
+ hostname?: string;
593
+ /**
594
+ * Ready team domain used for the service endpoint.
595
+ */
596
+ domain?: string;
597
+ /**
598
+ * Remove the service after its publication stops.
599
+ */
600
+ ephemeral?: boolean;
601
+ traffic?: {
602
+ connections?: number;
603
+ rate?: number;
604
+ burst?: number;
605
+ downloadBytes?: number;
606
+ ratePer?: TnlRatePeriod;
607
+ totalConnections?: number;
608
+ totalDownloadBytes?: number;
609
+ totalUploadBytes?: number;
610
+ uploadBytes?: number;
611
+ };
612
+ http?: {
613
+ access?: ("restricted" | "anonymous") | {
614
+ mode?: "restricted" | "anonymous";
615
+ /**
616
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
617
+ *
618
+ * @minItems 1
619
+ */
620
+ ip?: [string, ...string[]];
621
+ };
622
+ limits?: {
623
+ total?: number;
624
+ concurrency?: number;
625
+ rate?: {
626
+ count?: number;
627
+ per?: TnlRatePeriod;
628
+ burst?: number;
629
+ };
630
+ };
631
+ /**
632
+ * Readiness probe for a local HTTP service. Remote publisher assignments do not support HTTP settings.
633
+ */
634
+ readiness?: {
635
+ path: string;
636
+ };
637
+ open?: boolean;
638
+ /**
639
+ * Mount another local HTTP service at a path on this HTTP service. Remote publisher assignments do not support path mounts.
640
+ */
641
+ paths?: {
642
+ [k: string]: string | {
643
+ service: string;
644
+ stripPrefix?: boolean;
645
+ } | undefined;
646
+ };
647
+ /**
648
+ * Positive Go duration while awaiting incoming request body bytes; defaults to 30s. Body progress resets the timer. Target backpressure, completed uploads, responses, and WebSockets do not spend this timeout.
649
+ */
650
+ requestBodyIdleTimeout?: TnlRatePeriod;
651
+ };
652
+ /**
653
+ * Authorize a managed wildcard for enrolled publishers of this public HTTP deployment binding. Match the publisher alias parent and directly contain the service hostname in a dedicated custom-domain subtree.
654
+ */
655
+ certificateScope?: string;
656
+ /**
657
+ * Give each publisher a stable HTTP hostname for this service beneath this authorized DNS parent. Empty disables aliases; public reachability remains separate.
658
+ */
659
+ publisherAliasParent?: string;
660
+ /**
661
+ * Require hybrid post-quantum key agreement for visitor TLS.
662
+ */
663
+ requirePostQuantum?: boolean;
664
+ } | {
665
+ type: "rds";
666
+ region: string;
667
+ cluster: string;
668
+ instance?: never;
669
+ endpoint?: "writer" | "reader";
670
+ tls?: never;
671
+ address?: never;
672
+ project?: never;
673
+ file?: never;
674
+ service?: never;
675
+ port?: never;
676
+ container?: never;
677
+ name?: string;
678
+ auth?: never;
679
+ access?: {
680
+ team: true;
681
+ };
682
+ /**
683
+ * Public endpoint access for this service binding, independent of visitor authorization. False keeps connector access only.
684
+ */
685
+ public?: boolean;
686
+ inspection?: Inspection;
687
+ /**
688
+ * Exact canonical DNS hostname for the service endpoint; never an HTTPS origin.
689
+ */
690
+ hostname?: string;
691
+ /**
692
+ * Ready team domain used for the service endpoint.
693
+ */
694
+ domain?: string;
695
+ /**
696
+ * Remove the service after its publication stops.
697
+ */
698
+ ephemeral?: boolean;
699
+ traffic?: {
700
+ connections?: number;
701
+ rate?: number;
702
+ burst?: number;
703
+ downloadBytes?: number;
704
+ ratePer?: TnlRatePeriod;
705
+ totalConnections?: number;
706
+ totalDownloadBytes?: number;
707
+ totalUploadBytes?: number;
708
+ uploadBytes?: number;
709
+ };
710
+ http?: {
711
+ access?: ("restricted" | "anonymous") | {
712
+ mode?: "restricted" | "anonymous";
713
+ /**
714
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
715
+ *
716
+ * @minItems 1
717
+ */
718
+ ip?: [string, ...string[]];
719
+ };
720
+ limits?: {
721
+ total?: number;
722
+ concurrency?: number;
723
+ rate?: {
724
+ count?: number;
725
+ per?: TnlRatePeriod;
726
+ burst?: number;
727
+ };
728
+ };
729
+ /**
730
+ * Readiness probe for a local HTTP service. Remote publisher assignments do not support HTTP settings.
731
+ */
732
+ readiness?: {
733
+ path: string;
734
+ };
735
+ open?: boolean;
736
+ /**
737
+ * Mount another local HTTP service at a path on this HTTP service. Remote publisher assignments do not support path mounts.
738
+ */
739
+ paths?: {
740
+ [k: string]: string | {
741
+ service: string;
742
+ stripPrefix?: boolean;
743
+ } | undefined;
744
+ };
745
+ /**
746
+ * Positive Go duration while awaiting incoming request body bytes; defaults to 30s. Body progress resets the timer. Target backpressure, completed uploads, responses, and WebSockets do not spend this timeout.
747
+ */
748
+ requestBodyIdleTimeout?: TnlRatePeriod;
749
+ };
750
+ /**
751
+ * Authorize a managed wildcard for enrolled publishers of this public HTTP deployment binding. Match the publisher alias parent and directly contain the service hostname in a dedicated custom-domain subtree.
752
+ */
753
+ certificateScope?: string;
754
+ /**
755
+ * Give each publisher a stable HTTP hostname for this service beneath this authorized DNS parent. Empty disables aliases; public reachability remains separate.
756
+ */
757
+ publisherAliasParent?: string;
758
+ /**
759
+ * Require hybrid post-quantum key agreement for visitor TLS.
760
+ */
761
+ requirePostQuantum?: boolean;
762
+ } | undefined;
763
+ };
764
+ aws?: never;
765
+ } | undefined;
766
+ };
767
+ webhooks?: {
768
+ [k: string]: {
769
+ /**
770
+ * Configured local HTTP service. App, address, Compose and Docker targets are supported.
771
+ */
772
+ service: string;
773
+ path: string;
774
+ delivery?: "fanout" | "selected";
775
+ /**
776
+ * @minItems 1
777
+ */
778
+ methods?: [
779
+ "GET" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | "DELETE",
780
+ ...("GET" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | "DELETE")[]
781
+ ];
782
+ provider: "amazon-sns" | "auth0" | "clerk" | "custom" | "discord" | "github" | "gitlab" | "incident-io" | "lemon-squeezy" | "linear" | "loops" | "paddle" | "postmark" | "resend" | "sendgrid" | "shopify" | "slack" | "stripe" | "supabase" | "telegram" | "twilio" | "vercel" | "workos";
783
+ /**
784
+ * Replace this endpoint's provider-managed sender ranges with these exact prefixes; do not union or fetch provider ranges. Other endpoints keep their own source checks. Apps still verify webhook signatures.
785
+ *
786
+ * @minItems 1
787
+ */
788
+ sourceIPs?: [string, ...string[]];
789
+ } | undefined;
790
+ };
791
+ aliases?: {
792
+ [k: string]: {
793
+ /**
794
+ * configured local HTTP entry service.
795
+ */
796
+ service: string;
797
+ /**
798
+ * Relative DNS name beneath the member namespace; defaults to the alias key. Nested names require server permission.
799
+ */
800
+ name?: string;
801
+ /**
802
+ * Ready team domain; otherwise inherit the entry service's domain.
803
+ */
804
+ domain?: string;
805
+ /**
806
+ * Exact canonical DNS hostname; mutually exclusive with name and domain.
807
+ */
808
+ hostname?: string;
809
+ access?: ("restricted" | "anonymous") | {
810
+ mode?: "restricted" | "anonymous";
811
+ /**
812
+ * At most 256 normalized IP prefixes. Addresses become host prefixes; prefixes are masked, IPv4-mapped aliases are unmapped, and equivalent entries are deduplicated and sorted. Overlapping but unequal prefixes remain distinct. IP matches only narrow the visitor access mode; they never grant access by themselves.
813
+ *
814
+ * @minItems 1
815
+ */
816
+ ip?: [string, ...string[]];
817
+ };
818
+ } | undefined;
819
+ };
820
+ workloads?: {
821
+ [k: string]: {
822
+ vercel?: never;
823
+ fly?: never;
824
+ oidc?: never;
825
+ google?: never;
826
+ kubernetes?: never;
827
+ gitlab?: never;
828
+ /**
829
+ * Exact bound service keys in the selected remote deployment; local services cannot be workload targets.
830
+ *
831
+ * @minItems 1
832
+ */
833
+ services: [string, ...string[]];
834
+ token?: {
835
+ file: string;
836
+ env?: never;
837
+ } | {
838
+ file?: never;
839
+ env: string;
840
+ };
841
+ github: {
842
+ repository?: string;
843
+ workflow: string;
844
+ environment?: string;
845
+ /**
846
+ * @minItems 1
847
+ */
848
+ events?: [
849
+ ("push" | "pull_request" | "pull_request_target" | "workflow_dispatch" | "workflow_call" | "schedule" | "release" | "merge_group" | "repository_dispatch" | "workflow_run"),
850
+ ...("push" | "pull_request" | "pull_request_target" | "workflow_dispatch" | "workflow_call" | "schedule" | "release" | "merge_group" | "repository_dispatch" | "workflow_run")[]
851
+ ];
852
+ branch?: never;
853
+ tag?: never;
854
+ reusableWorkflow?: string;
855
+ } | {
856
+ repository?: string;
857
+ workflow: string;
858
+ environment?: string;
859
+ /**
860
+ * @minItems 1
861
+ */
862
+ events?: [
863
+ ("push" | "pull_request" | "pull_request_target" | "workflow_dispatch" | "workflow_call" | "schedule" | "release" | "merge_group" | "repository_dispatch" | "workflow_run"),
864
+ ...("push" | "pull_request" | "pull_request_target" | "workflow_dispatch" | "workflow_call" | "schedule" | "release" | "merge_group" | "repository_dispatch" | "workflow_run")[]
865
+ ];
866
+ branch: string;
867
+ tag?: never;
868
+ reusableWorkflow?: string;
869
+ } | {
870
+ repository?: string;
871
+ workflow: string;
872
+ environment?: string;
873
+ /**
874
+ * @minItems 1
875
+ */
876
+ events?: [
877
+ ("push" | "pull_request" | "pull_request_target" | "workflow_dispatch" | "workflow_call" | "schedule" | "release" | "merge_group" | "repository_dispatch" | "workflow_run"),
878
+ ...("push" | "pull_request" | "pull_request_target" | "workflow_dispatch" | "workflow_call" | "schedule" | "release" | "merge_group" | "repository_dispatch" | "workflow_run")[]
879
+ ];
880
+ branch?: never;
881
+ tag: string;
882
+ reusableWorkflow?: string;
883
+ };
884
+ deployment: string;
885
+ /**
886
+ * Optional absolute session limit, in positive whole seconds. Omit to allow continued renewal with current platform proof.
887
+ */
888
+ maxDuration?: TnlRatePeriod;
889
+ } | {
890
+ github?: never;
891
+ fly?: never;
892
+ oidc?: never;
893
+ google?: never;
894
+ kubernetes?: never;
895
+ gitlab?: never;
896
+ /**
897
+ * Exact bound service keys in the selected remote deployment; local services cannot be workload targets.
898
+ *
899
+ * @minItems 1
900
+ */
901
+ services: [string, ...string[]];
902
+ token?: {
903
+ file: string;
904
+ env?: never;
905
+ } | {
906
+ file?: never;
907
+ env: string;
908
+ };
909
+ vercel: {
910
+ /**
911
+ * Project name; defaults to the linked Vercel project.
912
+ */
913
+ project?: string;
914
+ /**
915
+ * Team slug; defaults to the linked project's owner.
916
+ */
917
+ team?: string;
918
+ environment: "production" | "preview" | "development";
919
+ };
920
+ deployment: string;
921
+ /**
922
+ * Optional absolute session limit, in positive whole seconds. Omit to allow continued renewal with current platform proof.
923
+ */
924
+ maxDuration?: TnlRatePeriod;
925
+ } | {
926
+ github?: never;
927
+ vercel?: never;
928
+ oidc?: never;
929
+ google?: never;
930
+ kubernetes?: never;
931
+ gitlab?: never;
932
+ /**
933
+ * Exact bound service keys in the selected remote deployment; local services cannot be workload targets.
934
+ *
935
+ * @minItems 1
936
+ */
937
+ services: [string, ...string[]];
938
+ token?: {
939
+ file: string;
940
+ env?: never;
941
+ } | {
942
+ file?: never;
943
+ env: string;
944
+ };
945
+ fly: {
946
+ /**
947
+ * Application name; defaults to fly.toml.
948
+ */
949
+ app?: string;
950
+ /**
951
+ * Organization slug; defaults to the application's owner.
952
+ */
953
+ org?: string;
954
+ machineId?: string;
955
+ };
956
+ deployment: string;
957
+ /**
958
+ * Optional absolute session limit, in positive whole seconds. Omit to allow continued renewal with current platform proof.
959
+ */
960
+ maxDuration?: TnlRatePeriod;
961
+ } | {
962
+ github?: never;
963
+ vercel?: never;
964
+ fly?: never;
965
+ google?: never;
966
+ kubernetes?: never;
967
+ gitlab?: never;
968
+ /**
969
+ * Exact bound service keys in the selected remote deployment; local services cannot be workload targets.
970
+ *
971
+ * @minItems 1
972
+ */
973
+ services: [string, ...string[]];
974
+ token?: {
975
+ file: string;
976
+ env?: never;
977
+ } | {
978
+ file?: never;
979
+ env: string;
980
+ };
981
+ oidc: {
982
+ issuer: string;
983
+ /**
984
+ * Intended token recipient; defaults to the control URL.
985
+ */
986
+ audience?: string;
987
+ claims: {
988
+ [k: string]: string | undefined;
989
+ };
990
+ /**
991
+ * Signing-key endpoint; defaults to issuer discovery during apply.
992
+ */
993
+ jwksUrl?: string;
994
+ };
995
+ deployment: string;
996
+ /**
997
+ * Optional absolute session limit, in positive whole seconds. Omit to allow continued renewal with current platform proof.
998
+ */
999
+ maxDuration?: TnlRatePeriod;
1000
+ } | {
1001
+ github?: never;
1002
+ vercel?: never;
1003
+ fly?: never;
1004
+ oidc?: never;
1005
+ kubernetes?: never;
1006
+ gitlab?: never;
1007
+ /**
1008
+ * Exact bound service keys in the selected remote deployment; local services cannot be workload targets.
1009
+ *
1010
+ * @minItems 1
1011
+ */
1012
+ services: [string, ...string[]];
1013
+ token?: {
1014
+ file: string;
1015
+ env?: never;
1016
+ } | {
1017
+ file?: never;
1018
+ env: string;
1019
+ };
1020
+ google: {
1021
+ /**
1022
+ * Intended token recipient; defaults to the control URL.
1023
+ */
1024
+ audience?: string;
1025
+ /**
1026
+ * Google service account email or immutable numeric ID. Trusted apply resolves an email with gcloud and saves the numeric identity.
1027
+ */
1028
+ serviceAccount: string;
1029
+ };
1030
+ deployment: string;
1031
+ /**
1032
+ * Optional absolute session limit, in positive whole seconds. Omit to allow continued renewal with current platform proof.
1033
+ */
1034
+ maxDuration?: TnlRatePeriod;
1035
+ } | {
1036
+ github?: never;
1037
+ vercel?: never;
1038
+ fly?: never;
1039
+ oidc?: never;
1040
+ google?: never;
1041
+ gitlab?: never;
1042
+ /**
1043
+ * Exact bound service keys in the selected remote deployment; local services cannot be workload targets.
1044
+ *
1045
+ * @minItems 1
1046
+ */
1047
+ services: [string, ...string[]];
1048
+ token?: {
1049
+ file: string;
1050
+ env?: never;
1051
+ } | {
1052
+ file?: never;
1053
+ env: string;
1054
+ };
1055
+ kubernetes: {
1056
+ /**
1057
+ * Trusted setup context; defaults to the current kubectl context. Runtime acquisition never reads kubeconfig.
1058
+ */
1059
+ context?: string;
1060
+ /**
1061
+ * Namespace; defaults to the selected context's namespace, then default.
1062
+ */
1063
+ namespace?: string;
1064
+ /**
1065
+ * Projected token audience; defaults to the control URL.
1066
+ */
1067
+ audience?: string;
1068
+ serviceAccount: string;
1069
+ };
1070
+ deployment: string;
1071
+ /**
1072
+ * Optional absolute session limit, in positive whole seconds. Omit to allow continued renewal with current platform proof.
1073
+ */
1074
+ maxDuration?: TnlRatePeriod;
1075
+ } | {
1076
+ github?: never;
1077
+ vercel?: never;
1078
+ fly?: never;
1079
+ oidc?: never;
1080
+ google?: never;
1081
+ kubernetes?: never;
1082
+ /**
1083
+ * Exact bound service keys in the selected remote deployment; local services cannot be workload targets.
1084
+ *
1085
+ * @minItems 1
1086
+ */
1087
+ services: [string, ...string[]];
1088
+ token?: {
1089
+ file: string;
1090
+ env?: never;
1091
+ } | {
1092
+ file?: never;
1093
+ env: string;
1094
+ };
1095
+ gitlab: {
1096
+ /**
1097
+ * GitLab project path; defaults to the Git origin on the selected server.
1098
+ */
1099
+ project?: string;
1100
+ /**
1101
+ * GitLab HTTPS origin; defaults to https://gitlab.com.
1102
+ */
1103
+ server?: string;
1104
+ environment?: string;
1105
+ /**
1106
+ * Intended token recipient; defaults to the control URL.
1107
+ */
1108
+ audience?: string;
1109
+ branch?: never;
1110
+ tag?: never;
1111
+ pipelineSource?: "push" | "web" | "schedule" | "api" | "trigger" | "pipeline" | "parent_pipeline" | "merge_request_event" | "external" | "external_pull_request_event" | "chat" | "webide" | "ondemand_dast_scan" | "ondemand_dast_validation" | "security_orchestration_policy";
1112
+ } | {
1113
+ /**
1114
+ * GitLab project path; defaults to the Git origin on the selected server.
1115
+ */
1116
+ project?: string;
1117
+ /**
1118
+ * GitLab HTTPS origin; defaults to https://gitlab.com.
1119
+ */
1120
+ server?: string;
1121
+ environment?: string;
1122
+ /**
1123
+ * Intended token recipient; defaults to the control URL.
1124
+ */
1125
+ audience?: string;
1126
+ branch: string;
1127
+ tag?: never;
1128
+ pipelineSource?: "push" | "web" | "schedule" | "api" | "trigger" | "pipeline" | "parent_pipeline" | "merge_request_event" | "external" | "external_pull_request_event" | "chat" | "webide" | "ondemand_dast_scan" | "ondemand_dast_validation" | "security_orchestration_policy";
1129
+ } | {
1130
+ /**
1131
+ * GitLab project path; defaults to the Git origin on the selected server.
1132
+ */
1133
+ project?: string;
1134
+ /**
1135
+ * GitLab HTTPS origin; defaults to https://gitlab.com.
1136
+ */
1137
+ server?: string;
1138
+ environment?: string;
1139
+ /**
1140
+ * Intended token recipient; defaults to the control URL.
1141
+ */
1142
+ audience?: string;
1143
+ branch?: never;
1144
+ tag: string;
1145
+ pipelineSource?: "push" | "web" | "schedule" | "api" | "trigger" | "pipeline" | "parent_pipeline" | "merge_request_event" | "external" | "external_pull_request_event" | "chat" | "webide" | "ondemand_dast_scan" | "ondemand_dast_validation" | "security_orchestration_policy";
1146
+ };
1147
+ deployment: string;
1148
+ /**
1149
+ * Optional absolute session limit, in positive whole seconds. Omit to allow continued renewal with current platform proof.
1150
+ */
1151
+ maxDuration?: TnlRatePeriod;
1152
+ } | undefined;
1153
+ };
1154
+ }
1155
+ export interface Inspection {
1156
+ mode?: "none" | "summary";
1157
+ retention?: TnlRatePeriod;
1158
+ maxBytes?: TnlByteSize;
1159
+ }
1160
+ /** The Git worktree or project directory that contains tnl.config.ts. */
1161
+ export interface TnlWorktree {
1162
+ readonly isGit: boolean;
1163
+ /** DNS-safe project/worktree label derived from this checkout and client state. */
1164
+ readonly label: TnlWorktreeLabel;
1165
+ readonly name: string;
1166
+ readonly root: string;
1167
+ }
1168
+ export interface TnlWorktreeLabel {
1169
+ readonly project: string;
1170
+ readonly checkout?: string;
1171
+ readonly id: string;
1172
+ readonly fullLabel: string;
1173
+ }
1174
+ /** Values passed to a tnl.config.ts configuration factory. */
1175
+ export interface TnlConfigContext {
1176
+ readonly cwd: string;
1177
+ readonly env: Readonly<Record<string, string | undefined>>;
1178
+ readonly worktree: TnlWorktree;
1179
+ readonly project: {
1180
+ readonly relativeDirectory: string;
1181
+ };
1182
+ }
1183
+ export type TnlConfigFactory = (context: TnlConfigContext) => TnlConfig | Promise<TnlConfig>;
1184
+ export type TnlConfigInput = TnlConfig | TnlConfigFactory;
1185
+ export {};