@rentnerproxy/app-contracts 0.0.0-stage → 1.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 (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -2
  3. package/contracts.schema.json +4007 -0
  4. package/dist/Types/contract.types.d.ts +15 -0
  5. package/dist/Types/contract.types.js +1 -0
  6. package/dist/catalog.d.ts +352 -0
  7. package/dist/catalog.js +54 -0
  8. package/dist/client.d.ts +31 -0
  9. package/dist/client.js +66 -0
  10. package/dist/http-operations.d.ts +333 -0
  11. package/dist/http-operations.generated.d.ts +299 -0
  12. package/dist/http-operations.generated.js +300 -0
  13. package/dist/http-operations.js +17 -0
  14. package/dist/http.d.ts +127 -0
  15. package/dist/http.js +142 -0
  16. package/dist/index.d.ts +5 -0
  17. package/dist/index.js +4 -0
  18. package/dist/manifest.d.ts +90 -0
  19. package/dist/manifest.js +106 -0
  20. package/dist/platform-api.d.ts +282 -0
  21. package/dist/platform-api.js +287 -0
  22. package/dist/primitives.d.ts +33 -0
  23. package/dist/primitives.js +87 -0
  24. package/dist/provider-api.d.ts +221 -0
  25. package/dist/provider-api.js +227 -0
  26. package/dist/public-schemas.d.ts +4 -0
  27. package/dist/public-schemas.js +6 -0
  28. package/dist/publication.d.ts +410 -0
  29. package/dist/publication.js +50 -0
  30. package/dist/runtime.d.ts +75 -0
  31. package/dist/runtime.js +88 -0
  32. package/dist/schemas.d.ts +926 -0
  33. package/dist/schemas.js +114 -0
  34. package/dist/ui-bridge.d.ts +81 -0
  35. package/dist/ui-bridge.js +92 -0
  36. package/dist/validation.d.ts +784 -0
  37. package/dist/validation.js +245 -0
  38. package/dist/wire.d.ts +31 -0
  39. package/dist/wire.js +54 -0
  40. package/fixtures.json +1094 -0
  41. package/http-fixtures.json +829 -0
  42. package/openapi.json +2557 -0
  43. package/package.json +60 -5
  44. package/protocol-fixtures.json +1804 -0
  45. package/upstream-probe-fixtures.json +852 -0
@@ -0,0 +1,926 @@
1
+ import { z } from 'zod';
2
+ export declare const protocolSchemas: {
3
+ LegacyHandoffDomain: z.ZodEnum<{
4
+ crowdsec: "crowdsec";
5
+ dns: "dns";
6
+ "docker-discovery": "docker-discovery";
7
+ "load-balancer": "load-balancer";
8
+ monitoring: "monitoring";
9
+ oidc: "oidc";
10
+ }>;
11
+ LegacyHandoffStatus: z.ZodDiscriminatedUnion<[z.ZodObject<{
12
+ domain: z.ZodEnum<{
13
+ crowdsec: "crowdsec";
14
+ dns: "dns";
15
+ "docker-discovery": "docker-discovery";
16
+ "load-balancer": "load-balancer";
17
+ monitoring: "monitoring";
18
+ oidc: "oidc";
19
+ }>;
20
+ state: z.ZodLiteral<"platform">;
21
+ }, z.core.$strict>, z.ZodObject<{
22
+ domain: z.ZodEnum<{
23
+ crowdsec: "crowdsec";
24
+ dns: "dns";
25
+ "docker-discovery": "docker-discovery";
26
+ "load-balancer": "load-balancer";
27
+ monitoring: "monitoring";
28
+ oidc: "oidc";
29
+ }>;
30
+ state: z.ZodLiteral<"exported">;
31
+ digest: z.ZodString;
32
+ partCount: z.ZodNumber;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ domain: z.ZodEnum<{
35
+ crowdsec: "crowdsec";
36
+ dns: "dns";
37
+ "docker-discovery": "docker-discovery";
38
+ "load-balancer": "load-balancer";
39
+ monitoring: "monitoring";
40
+ oidc: "oidc";
41
+ }>;
42
+ state: z.ZodLiteral<"committed">;
43
+ digest: z.ZodString;
44
+ }, z.core.$strict>], "state">;
45
+ LegacyHandoffBeginResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ domain: z.ZodEnum<{
47
+ crowdsec: "crowdsec";
48
+ dns: "dns";
49
+ "docker-discovery": "docker-discovery";
50
+ "load-balancer": "load-balancer";
51
+ monitoring: "monitoring";
52
+ oidc: "oidc";
53
+ }>;
54
+ state: z.ZodLiteral<"exported">;
55
+ digest: z.ZodString;
56
+ partCount: z.ZodNumber;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ domain: z.ZodEnum<{
59
+ crowdsec: "crowdsec";
60
+ dns: "dns";
61
+ "docker-discovery": "docker-discovery";
62
+ "load-balancer": "load-balancer";
63
+ monitoring: "monitoring";
64
+ oidc: "oidc";
65
+ }>;
66
+ state: z.ZodLiteral<"committed">;
67
+ digest: z.ZodString;
68
+ }, z.core.$strict>], "state">;
69
+ LegacyHandoffPartRequest: z.ZodObject<{
70
+ digest: z.ZodString;
71
+ sequence: z.ZodNumber;
72
+ }, z.core.$strict>;
73
+ LegacyHandoffPart: z.ZodObject<{
74
+ sequence: z.ZodNumber;
75
+ part: z.ZodJSONSchema;
76
+ }, z.core.$strict>;
77
+ LegacyHandoffCommit: z.ZodObject<{
78
+ digest: z.ZodString;
79
+ }, z.core.$strict>;
80
+ LegacyHandoffCommitResult: z.ZodObject<{
81
+ domain: z.ZodEnum<{
82
+ crowdsec: "crowdsec";
83
+ dns: "dns";
84
+ "docker-discovery": "docker-discovery";
85
+ "load-balancer": "load-balancer";
86
+ monitoring: "monitoring";
87
+ oidc: "oidc";
88
+ }>;
89
+ state: z.ZodLiteral<"committed">;
90
+ digest: z.ZodString;
91
+ }, z.core.$strict>;
92
+ AppApiPayload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
93
+ ProxyHostQuery: z.ZodObject<{
94
+ limit: z.ZodNumber;
95
+ cursor: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>;
97
+ ProxyHostPage: z.ZodObject<{
98
+ hosts: z.ZodArray<z.ZodObject<{
99
+ id: z.ZodString;
100
+ revision: z.ZodString;
101
+ hostname: z.ZodString;
102
+ enabled: z.ZodOptional<z.ZodBoolean>;
103
+ domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ probeRevision: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$loose>>;
106
+ nextCursor: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$loose>;
108
+ OwnedProxyHostChange: z.ZodDiscriminatedUnion<[z.ZodObject<{
109
+ action: z.ZodLiteral<"upsert">;
110
+ hostId: z.ZodString;
111
+ expectedRevision: z.ZodNullable<z.ZodString>;
112
+ hostname: z.ZodString;
113
+ upstream: z.ZodObject<{
114
+ scheme: z.ZodEnum<{
115
+ http: "http";
116
+ https: "https";
117
+ }>;
118
+ address: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6, z.ZodString]>;
119
+ port: z.ZodNumber;
120
+ }, z.core.$strict>;
121
+ }, z.core.$strict>, z.ZodObject<{
122
+ action: z.ZodLiteral<"remove">;
123
+ hostId: z.ZodString;
124
+ expectedRevision: z.ZodString;
125
+ }, z.core.$strict>], "action">;
126
+ UpstreamProbe: z.ZodObject<{
127
+ hostId: z.ZodString;
128
+ timeoutMs: z.ZodNumber;
129
+ }, z.core.$strict>;
130
+ UpstreamProbeResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
131
+ outcome: z.ZodLiteral<"reachable">;
132
+ durationMs: z.ZodNumber;
133
+ }, z.core.$loose>, z.ZodObject<{
134
+ outcome: z.ZodEnum<{
135
+ timedOut: "timedOut";
136
+ unreachable: "unreachable";
137
+ }>;
138
+ }, z.core.$loose>], "outcome">;
139
+ UpstreamProbeBatch: z.ZodObject<{
140
+ probes: z.ZodArray<z.ZodObject<{
141
+ hostId: z.ZodString;
142
+ domain: z.ZodString;
143
+ timeoutMs: z.ZodNumber;
144
+ }, z.core.$strict>>;
145
+ }, z.core.$strict>;
146
+ UpstreamProbeOutcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
147
+ hostId: z.ZodString;
148
+ domain: z.ZodString;
149
+ outcome: z.ZodLiteral<"probed">;
150
+ probeRevision: z.ZodString;
151
+ durationMs: z.ZodNumber;
152
+ httpStatus: z.ZodNullable<z.ZodNumber>;
153
+ failure: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
154
+ stage: z.ZodLiteral<"configuration">;
155
+ code: z.ZodEnum<{
156
+ configuration_changed: "configuration_changed";
157
+ configuration_stale: "configuration_stale";
158
+ host_not_active: "host_not_active";
159
+ runtime_unavailable: "runtime_unavailable";
160
+ }>;
161
+ }, z.core.$loose>, z.ZodObject<{
162
+ stage: z.ZodLiteral<"tls">;
163
+ code: z.ZodLiteral<"tls_failed">;
164
+ }, z.core.$loose>, z.ZodObject<{
165
+ stage: z.ZodLiteral<"upstream">;
166
+ code: z.ZodEnum<{
167
+ access_denied: "access_denied";
168
+ redirect_host: "redirect_host";
169
+ redirect_not_followed: "redirect_not_followed";
170
+ skipped: "skipped";
171
+ unexpected_status: "unexpected_status";
172
+ upstream_dns_failed: "upstream_dns_failed";
173
+ upstream_error: "upstream_error";
174
+ upstream_responded: "upstream_responded";
175
+ upstream_timeout: "upstream_timeout";
176
+ upstream_unreachable: "upstream_unreachable";
177
+ wildcard_domain: "wildcard_domain";
178
+ }>;
179
+ }, z.core.$loose>], "stage">>;
180
+ }, z.core.$loose>, z.ZodObject<{
181
+ hostId: z.ZodString;
182
+ domain: z.ZodString;
183
+ outcome: z.ZodEnum<{
184
+ busy: "busy";
185
+ configurationChanged: "configurationChanged";
186
+ domainNotFound: "domainNotFound";
187
+ hostDisabled: "hostDisabled";
188
+ hostRemoved: "hostRemoved";
189
+ rateLimited: "rateLimited";
190
+ scopeDenied: "scopeDenied";
191
+ unavailable: "unavailable";
192
+ }>;
193
+ }, z.core.$loose>], "outcome">;
194
+ UpstreamProbeBatchResult: z.ZodObject<{
195
+ results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
196
+ hostId: z.ZodString;
197
+ domain: z.ZodString;
198
+ outcome: z.ZodLiteral<"probed">;
199
+ probeRevision: z.ZodString;
200
+ durationMs: z.ZodNumber;
201
+ httpStatus: z.ZodNullable<z.ZodNumber>;
202
+ failure: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
203
+ stage: z.ZodLiteral<"configuration">;
204
+ code: z.ZodEnum<{
205
+ configuration_changed: "configuration_changed";
206
+ configuration_stale: "configuration_stale";
207
+ host_not_active: "host_not_active";
208
+ runtime_unavailable: "runtime_unavailable";
209
+ }>;
210
+ }, z.core.$loose>, z.ZodObject<{
211
+ stage: z.ZodLiteral<"tls">;
212
+ code: z.ZodLiteral<"tls_failed">;
213
+ }, z.core.$loose>, z.ZodObject<{
214
+ stage: z.ZodLiteral<"upstream">;
215
+ code: z.ZodEnum<{
216
+ access_denied: "access_denied";
217
+ redirect_host: "redirect_host";
218
+ redirect_not_followed: "redirect_not_followed";
219
+ skipped: "skipped";
220
+ unexpected_status: "unexpected_status";
221
+ upstream_dns_failed: "upstream_dns_failed";
222
+ upstream_error: "upstream_error";
223
+ upstream_responded: "upstream_responded";
224
+ upstream_timeout: "upstream_timeout";
225
+ upstream_unreachable: "upstream_unreachable";
226
+ wildcard_domain: "wildcard_domain";
227
+ }>;
228
+ }, z.core.$loose>], "stage">>;
229
+ }, z.core.$loose>, z.ZodObject<{
230
+ hostId: z.ZodString;
231
+ domain: z.ZodString;
232
+ outcome: z.ZodEnum<{
233
+ busy: "busy";
234
+ configurationChanged: "configurationChanged";
235
+ domainNotFound: "domainNotFound";
236
+ hostDisabled: "hostDisabled";
237
+ hostRemoved: "hostRemoved";
238
+ rateLimited: "rateLimited";
239
+ scopeDenied: "scopeDenied";
240
+ unavailable: "unavailable";
241
+ }>;
242
+ }, z.core.$loose>], "outcome">>;
243
+ }, z.core.$loose>;
244
+ AppNotification: z.ZodObject<{
245
+ category: z.ZodString;
246
+ severity: z.ZodEnum<{
247
+ error: "error";
248
+ info: "info";
249
+ warning: "warning";
250
+ }>;
251
+ title: z.ZodString;
252
+ message: z.ZodString;
253
+ }, z.core.$strict>;
254
+ AppIncidentChange: z.ZodDiscriminatedUnion<[z.ZodObject<{
255
+ status: z.ZodLiteral<"open">;
256
+ category: z.ZodString;
257
+ severity: z.ZodEnum<{
258
+ critical: "critical";
259
+ error: "error";
260
+ warning: "warning";
261
+ }>;
262
+ title: z.ZodString;
263
+ message: z.ZodString;
264
+ resourceId: z.ZodOptional<z.ZodString>;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ status: z.ZodLiteral<"resolved">;
267
+ }, z.core.$strict>], "status">;
268
+ AppAuditEvent: z.ZodObject<{
269
+ action: z.ZodString;
270
+ outcome: z.ZodEnum<{
271
+ failed: "failed";
272
+ rejected: "rejected";
273
+ succeeded: "succeeded";
274
+ }>;
275
+ resourceId: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strict>;
277
+ AppSecret: z.ZodObject<{
278
+ value: z.ZodString;
279
+ }, z.core.$strict>;
280
+ ProviderRegistration: z.ZodObject<{
281
+ id: z.ZodString;
282
+ profile: z.ZodEnum<{
283
+ crowdsec: "crowdsec";
284
+ dns: "dns";
285
+ "docker-discovery": "docker-discovery";
286
+ "load-balancer": "load-balancer";
287
+ monitoring: "monitoring";
288
+ oidc: "oidc";
289
+ }>;
290
+ version: z.ZodLiteral<"1.0.0">;
291
+ }, z.core.$strict>;
292
+ ProviderRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
293
+ profile: z.ZodEnum<{
294
+ monitoring: "monitoring";
295
+ }>;
296
+ payload: z.ZodObject<{
297
+ limit: z.ZodNumber;
298
+ }, z.core.$strict>;
299
+ }, z.core.$strict>, z.ZodObject<{
300
+ profile: z.ZodEnum<{
301
+ "docker-discovery": "docker-discovery";
302
+ }>;
303
+ payload: z.ZodObject<{
304
+ connectionId: z.ZodString;
305
+ limit: z.ZodNumber;
306
+ }, z.core.$strict>;
307
+ }, z.core.$strict>, z.ZodObject<{
308
+ profile: z.ZodEnum<{
309
+ "load-balancer": "load-balancer";
310
+ }>;
311
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
+ action: z.ZodLiteral<"apply">;
313
+ contributionId: z.ZodString;
314
+ revision: z.ZodString;
315
+ policy: z.ZodEnum<{
316
+ leastConnections: "leastConnections";
317
+ roundRobin: "roundRobin";
318
+ }>;
319
+ upstreams: z.ZodArray<z.ZodObject<{
320
+ address: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
321
+ port: z.ZodNumber;
322
+ }, z.core.$strict>>;
323
+ }, z.core.$strict>, z.ZodObject<{
324
+ action: z.ZodLiteral<"readStatus">;
325
+ contributionId: z.ZodString;
326
+ }, z.core.$strict>], "action">;
327
+ }, z.core.$strict>, z.ZodObject<{
328
+ profile: z.ZodEnum<{
329
+ dns: "dns";
330
+ }>;
331
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
332
+ action: z.ZodLiteral<"present">;
333
+ challengeId: z.ZodString;
334
+ zoneId: z.ZodString;
335
+ name: z.ZodString;
336
+ value: z.ZodString;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ action: z.ZodLiteral<"check">;
339
+ challengeId: z.ZodString;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ action: z.ZodLiteral<"cleanup">;
342
+ challengeId: z.ZodString;
343
+ }, z.core.$strict>], "action">;
344
+ }, z.core.$strict>, z.ZodObject<{
345
+ profile: z.ZodEnum<{
346
+ oidc: "oidc";
347
+ }>;
348
+ payload: z.ZodObject<{
349
+ transactionId: z.ZodString;
350
+ }, z.core.$strict>;
351
+ }, z.core.$strict>, z.ZodObject<{
352
+ profile: z.ZodEnum<{
353
+ crowdsec: "crowdsec";
354
+ }>;
355
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
356
+ action: z.ZodLiteral<"consumeLogs">;
357
+ batchId: z.ZodString;
358
+ entries: z.ZodArray<z.ZodObject<{
359
+ proxyHostId: z.ZodString;
360
+ observedAt: z.ZodISODateTime;
361
+ clientAddress: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
362
+ status: z.ZodNumber;
363
+ }, z.core.$strict>>;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ action: z.ZodLiteral<"evaluate">;
366
+ proxyHostId: z.ZodString;
367
+ clientAddress: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
368
+ }, z.core.$strict>], "action">;
369
+ }, z.core.$strict>], "profile">;
370
+ ProviderResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
371
+ profile: z.ZodEnum<{
372
+ monitoring: "monitoring";
373
+ }>;
374
+ payload: z.ZodObject<{
375
+ samples: z.ZodArray<z.ZodObject<{
376
+ serviceId: z.ZodString;
377
+ observedAt: z.ZodISODateTime;
378
+ healthy: z.ZodBoolean;
379
+ }, z.core.$loose>>;
380
+ }, z.core.$loose>;
381
+ }, z.core.$loose>, z.ZodObject<{
382
+ profile: z.ZodEnum<{
383
+ "docker-discovery": "docker-discovery";
384
+ }>;
385
+ payload: z.ZodObject<{
386
+ connectionId: z.ZodString;
387
+ observations: z.ZodArray<z.ZodObject<{
388
+ workloadId: z.ZodString;
389
+ observedAt: z.ZodISODateTime;
390
+ address: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
391
+ port: z.ZodNumber;
392
+ }, z.core.$loose>>;
393
+ }, z.core.$loose>;
394
+ }, z.core.$loose>, z.ZodObject<{
395
+ profile: z.ZodEnum<{
396
+ "load-balancer": "load-balancer";
397
+ }>;
398
+ payload: z.ZodObject<{
399
+ contributionId: z.ZodString;
400
+ revisionStatus: z.ZodDiscriminatedUnion<[z.ZodObject<{
401
+ status: z.ZodLiteral<"applied">;
402
+ appliedRevision: z.ZodString;
403
+ }, z.core.$loose>, z.ZodObject<{
404
+ status: z.ZodEnum<{
405
+ rejected: "rejected";
406
+ unavailable: "unavailable";
407
+ unchanged: "unchanged";
408
+ }>;
409
+ appliedRevision: z.ZodNullable<z.ZodString>;
410
+ }, z.core.$loose>], "status">;
411
+ }, z.core.$loose>;
412
+ }, z.core.$loose>, z.ZodObject<{
413
+ profile: z.ZodEnum<{
414
+ dns: "dns";
415
+ }>;
416
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
417
+ action: z.ZodEnum<{
418
+ cleanup: "cleanup";
419
+ present: "present";
420
+ }>;
421
+ challengeId: z.ZodString;
422
+ operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
+ id: z.ZodString;
424
+ status: z.ZodEnum<{
425
+ accepted: "accepted";
426
+ cancelled: "cancelled";
427
+ cancelling: "cancelling";
428
+ running: "running";
429
+ succeeded: "succeeded";
430
+ }>;
431
+ problem: z.ZodOptional<z.ZodNever>;
432
+ }, z.core.$loose>, z.ZodObject<{
433
+ id: z.ZodString;
434
+ status: z.ZodLiteral<"failed">;
435
+ problem: z.ZodObject<{
436
+ type: z.ZodString;
437
+ title: z.ZodString;
438
+ status: z.ZodNumber;
439
+ code: z.ZodString;
440
+ requestId: z.ZodString;
441
+ }, z.core.$strict>;
442
+ }, z.core.$loose>], "status">;
443
+ }, z.core.$loose>, z.ZodObject<{
444
+ action: z.ZodLiteral<"check">;
445
+ challengeId: z.ZodString;
446
+ outcome: z.ZodEnum<{
447
+ missing: "missing";
448
+ unavailable: "unavailable";
449
+ verified: "verified";
450
+ }>;
451
+ }, z.core.$loose>], "action">;
452
+ }, z.core.$loose>, z.ZodObject<{
453
+ profile: z.ZodEnum<{
454
+ oidc: "oidc";
455
+ }>;
456
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
457
+ outcome: z.ZodLiteral<"verified">;
458
+ transactionId: z.ZodString;
459
+ identity: z.ZodObject<{
460
+ subject: z.ZodString;
461
+ groups: z.ZodArray<z.ZodString>;
462
+ }, z.core.$loose>;
463
+ }, z.core.$loose>, z.ZodObject<{
464
+ outcome: z.ZodEnum<{
465
+ invalid: "invalid";
466
+ unavailable: "unavailable";
467
+ }>;
468
+ transactionId: z.ZodString;
469
+ }, z.core.$loose>], "outcome">;
470
+ }, z.core.$loose>, z.ZodObject<{
471
+ profile: z.ZodEnum<{
472
+ crowdsec: "crowdsec";
473
+ }>;
474
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
475
+ action: z.ZodLiteral<"consumeLogs">;
476
+ batchId: z.ZodString;
477
+ outcome: z.ZodEnum<{
478
+ processed: "processed";
479
+ unavailable: "unavailable";
480
+ }>;
481
+ }, z.core.$loose>, z.ZodObject<{
482
+ action: z.ZodLiteral<"evaluate">;
483
+ decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
+ outcome: z.ZodLiteral<"allow">;
485
+ allowed: z.ZodLiteral<true>;
486
+ cachedBlock: z.ZodLiteral<false>;
487
+ }, z.core.$loose>, z.ZodObject<{
488
+ outcome: z.ZodLiteral<"deny">;
489
+ allowed: z.ZodLiteral<false>;
490
+ cachedBlock: z.ZodLiteral<true>;
491
+ }, z.core.$loose>, z.ZodObject<{
492
+ outcome: z.ZodLiteral<"unavailable">;
493
+ allowed: z.ZodLiteral<false>;
494
+ cachedBlock: z.ZodBoolean;
495
+ }, z.core.$loose>], "outcome">;
496
+ }, z.core.$loose>], "action">;
497
+ }, z.core.$loose>], "profile">;
498
+ RecordId: z.ZodString;
499
+ Generation: z.ZodNumber;
500
+ BootstrapDescriptor: z.ZodObject<{
501
+ appId: z.ZodString;
502
+ installationId: z.ZodString;
503
+ generation: z.ZodNumber;
504
+ formatVersion: z.ZodLiteral<1>;
505
+ runtimeProfile: z.ZodLiteral<"rentnerproxy-linux-v1">;
506
+ versions: z.ZodObject<{
507
+ appProtocol: z.ZodLiteral<"1.0.0">;
508
+ platformApi: z.ZodLiteral<"1.0.0">;
509
+ uiBridge: z.ZodOptional<z.ZodLiteral<"1.0.0">>;
510
+ }, z.core.$strict>;
511
+ appSocket: z.ZodString;
512
+ coreSocket: z.ZodString;
513
+ appCredential: z.ZodString;
514
+ coreCredential: z.ZodString;
515
+ }, z.core.$strict>;
516
+ AppHealth: z.ZodObject<{
517
+ healthy: z.ZodLiteral<true>;
518
+ }, z.core.$loose>;
519
+ AppReadiness: z.ZodObject<{
520
+ ready: z.ZodLiteral<true>;
521
+ protocolVersion: z.ZodLiteral<"1.0.0">;
522
+ dataVersion: z.ZodOptional<z.ZodNumber>;
523
+ providers: z.ZodArray<z.ZodObject<{
524
+ id: z.ZodString;
525
+ profile: z.ZodEnum<{
526
+ crowdsec: "crowdsec";
527
+ dns: "dns";
528
+ "docker-discovery": "docker-discovery";
529
+ "load-balancer": "load-balancer";
530
+ monitoring: "monitoring";
531
+ oidc: "oidc";
532
+ }>;
533
+ version: z.ZodLiteral<"1.0.0">;
534
+ }, z.core.$strict>>;
535
+ }, z.core.$loose>;
536
+ PlatformContext: z.ZodObject<{
537
+ appId: z.ZodString;
538
+ installationId: z.ZodString;
539
+ generation: z.ZodNumber;
540
+ runtimeProfile: z.ZodLiteral<"rentnerproxy-linux-v1">;
541
+ versions: z.ZodObject<{
542
+ appProtocol: z.ZodLiteral<"1.0.0">;
543
+ platformApi: z.ZodLiteral<"1.0.0">;
544
+ uiBridge: z.ZodOptional<z.ZodLiteral<"1.0.0">>;
545
+ }, z.core.$strict>;
546
+ capabilities: z.ZodArray<z.ZodUnion<z.ZodObject<{
547
+ id: z.ZodLiteral<"access.logs.read.v1" | "diagnostics.upstream.probe.v1" | "diagnostics.upstream.probe.v2" | "dns.challenge.manage.v1" | "docker.inventory.observe.v1" | "engine.contributions.submit.v1" | "identity.provider.register.v1" | "notifications.incidents.manage.v1" | "notifications.publish.v1" | "proxy.hosts.manage-owned.v1" | "proxy.hosts.read.v1" | "security.enforcement.contribute.v1">;
548
+ scope: z.ZodLiteral<"dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts">;
549
+ }, z.core.$strict>[]>>;
550
+ }, z.core.$loose>;
551
+ AuthorizationRequest: z.ZodObject<{
552
+ capability: z.ZodUnion<z.ZodObject<{
553
+ id: z.ZodLiteral<"access.logs.read.v1" | "diagnostics.upstream.probe.v1" | "diagnostics.upstream.probe.v2" | "dns.challenge.manage.v1" | "docker.inventory.observe.v1" | "engine.contributions.submit.v1" | "identity.provider.register.v1" | "notifications.incidents.manage.v1" | "notifications.publish.v1" | "proxy.hosts.manage-owned.v1" | "proxy.hosts.read.v1" | "security.enforcement.contribute.v1">;
554
+ scope: z.ZodLiteral<"dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts">;
555
+ }, z.core.$strict>[]>;
556
+ resourceId: z.ZodString;
557
+ }, z.core.$strict>;
558
+ AuthorizationResult: z.ZodObject<{
559
+ allowed: z.ZodBoolean;
560
+ }, z.core.$loose>;
561
+ EventCursor: z.ZodString;
562
+ PlatformEvent: z.ZodObject<{
563
+ id: z.ZodString;
564
+ cursor: z.ZodString;
565
+ type: z.ZodString;
566
+ occurredAt: z.ZodISODateTime;
567
+ resourceId: z.ZodOptional<z.ZodString>;
568
+ revision: z.ZodOptional<z.ZodString>;
569
+ }, z.core.$loose>;
570
+ UiBridgeMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
571
+ type: z.ZodLiteral<"runtime:ready">;
572
+ nonce: z.ZodString;
573
+ }, z.core.$strict>, z.ZodObject<{
574
+ installId: z.ZodString;
575
+ installationGeneration: z.ZodNumber;
576
+ generation: z.ZodNumber;
577
+ type: z.ZodLiteral<"runtime:bootstrap">;
578
+ bridgeVersion: z.ZodLiteral<"1.0.0">;
579
+ }, z.core.$strict>, z.ZodObject<{
580
+ installId: z.ZodString;
581
+ installationGeneration: z.ZodNumber;
582
+ generation: z.ZodNumber;
583
+ type: z.ZodLiteral<"connected">;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ installId: z.ZodString;
586
+ installationGeneration: z.ZodNumber;
587
+ generation: z.ZodNumber;
588
+ type: z.ZodLiteral<"context">;
589
+ theme: z.ZodEnum<{
590
+ dark: "dark";
591
+ light: "light";
592
+ }>;
593
+ locale: z.ZodString;
594
+ route: z.ZodString;
595
+ ready: z.ZodBoolean;
596
+ }, z.core.$strict>, z.ZodObject<{
597
+ installId: z.ZodString;
598
+ installationGeneration: z.ZodNumber;
599
+ generation: z.ZodNumber;
600
+ type: z.ZodLiteral<"navigate">;
601
+ route: z.ZodString;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ installId: z.ZodString;
604
+ installationGeneration: z.ZodNumber;
605
+ generation: z.ZodNumber;
606
+ type: z.ZodLiteral<"dialog">;
607
+ requestId: z.ZodString;
608
+ dialogId: z.ZodString;
609
+ }, z.core.$strict>, z.ZodObject<{
610
+ installId: z.ZodString;
611
+ installationGeneration: z.ZodNumber;
612
+ generation: z.ZodNumber;
613
+ type: z.ZodLiteral<"dialogResult">;
614
+ requestId: z.ZodString;
615
+ outcome: z.ZodEnum<{
616
+ cancelled: "cancelled";
617
+ confirmed: "confirmed";
618
+ }>;
619
+ }, z.core.$strict>, z.ZodObject<{
620
+ installId: z.ZodString;
621
+ installationGeneration: z.ZodNumber;
622
+ generation: z.ZodNumber;
623
+ type: z.ZodLiteral<"apiRequest">;
624
+ requestId: z.ZodString;
625
+ operationId: z.ZodString;
626
+ idempotencyKey: z.ZodString;
627
+ payload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
628
+ }, z.core.$strict>, z.ZodObject<{
629
+ installId: z.ZodString;
630
+ installationGeneration: z.ZodNumber;
631
+ generation: z.ZodNumber;
632
+ type: z.ZodLiteral<"apiResult">;
633
+ requestId: z.ZodString;
634
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
635
+ ok: z.ZodLiteral<true>;
636
+ payload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
637
+ }, z.core.$strict>, z.ZodObject<{
638
+ ok: z.ZodLiteral<false>;
639
+ problem: z.ZodObject<{
640
+ type: z.ZodString;
641
+ title: z.ZodString;
642
+ status: z.ZodNumber;
643
+ code: z.ZodString;
644
+ requestId: z.ZodString;
645
+ }, z.core.$strict>;
646
+ }, z.core.$strict>], "ok">;
647
+ }, z.core.$strict>], "type">;
648
+ Problem: z.ZodObject<{
649
+ type: z.ZodString;
650
+ title: z.ZodString;
651
+ status: z.ZodNumber;
652
+ code: z.ZodString;
653
+ requestId: z.ZodString;
654
+ }, z.core.$strict>;
655
+ Operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
656
+ id: z.ZodString;
657
+ status: z.ZodEnum<{
658
+ accepted: "accepted";
659
+ cancelled: "cancelled";
660
+ cancelling: "cancelling";
661
+ running: "running";
662
+ succeeded: "succeeded";
663
+ }>;
664
+ problem: z.ZodOptional<z.ZodNever>;
665
+ }, z.core.$loose>, z.ZodObject<{
666
+ id: z.ZodString;
667
+ status: z.ZodLiteral<"failed">;
668
+ problem: z.ZodObject<{
669
+ type: z.ZodString;
670
+ title: z.ZodString;
671
+ status: z.ZodNumber;
672
+ code: z.ZodString;
673
+ requestId: z.ZodString;
674
+ }, z.core.$strict>;
675
+ }, z.core.$loose>], "status">;
676
+ };
677
+ export declare function buildContractDocuments(): {
678
+ 'contracts.schema.json': {
679
+ $schema: string;
680
+ $id: string;
681
+ title: string;
682
+ description: string;
683
+ $ref: string;
684
+ $defs: {
685
+ [k: string]: {
686
+ [k: string]: unknown;
687
+ $anchor?: string;
688
+ $ref?: string;
689
+ $dynamicRef?: string;
690
+ $dynamicAnchor?: string;
691
+ $vocabulary?: Record<string, boolean>;
692
+ $comment?: string;
693
+ $defs?: Record<string, z.core.JSONSchema.JSONSchema>;
694
+ type?: z.core.JSONSchema.SchemaType | z.core.JSONSchema.SchemaType[];
695
+ additionalItems?: z.core.JSONSchema._JSONSchema;
696
+ unevaluatedItems?: z.core.JSONSchema._JSONSchema;
697
+ prefixItems?: z.core.JSONSchema._JSONSchema[];
698
+ items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
699
+ contains?: z.core.JSONSchema._JSONSchema;
700
+ additionalProperties?: z.core.JSONSchema._JSONSchema;
701
+ unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
702
+ properties?: Record<string, z.core.JSONSchema._JSONSchema>;
703
+ patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
704
+ dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
705
+ propertyNames?: z.core.JSONSchema._JSONSchema;
706
+ if?: z.core.JSONSchema._JSONSchema;
707
+ then?: z.core.JSONSchema._JSONSchema;
708
+ else?: z.core.JSONSchema._JSONSchema;
709
+ allOf?: z.core.JSONSchema.JSONSchema[];
710
+ anyOf?: z.core.JSONSchema.JSONSchema[];
711
+ oneOf?: z.core.JSONSchema.JSONSchema[];
712
+ not?: z.core.JSONSchema._JSONSchema;
713
+ multipleOf?: number;
714
+ maximum?: number;
715
+ exclusiveMaximum?: number | boolean;
716
+ minimum?: number;
717
+ exclusiveMinimum?: number | boolean;
718
+ maxLength?: number;
719
+ minLength?: number;
720
+ pattern?: string;
721
+ maxItems?: number;
722
+ minItems?: number;
723
+ uniqueItems?: boolean;
724
+ maxContains?: number;
725
+ minContains?: number;
726
+ maxProperties?: number;
727
+ minProperties?: number;
728
+ required?: string[];
729
+ dependentRequired?: Record<string, string[]>;
730
+ enum?: Array<string | number | boolean | null>;
731
+ const?: string | number | boolean | null;
732
+ id?: string;
733
+ title?: string;
734
+ description?: string;
735
+ default?: unknown;
736
+ deprecated?: boolean;
737
+ readOnly?: boolean;
738
+ writeOnly?: boolean;
739
+ nullable?: boolean;
740
+ examples?: unknown[];
741
+ format?: string;
742
+ contentMediaType?: string;
743
+ contentEncoding?: string;
744
+ contentSchema?: z.core.JSONSchema.JSONSchema;
745
+ _prefault?: unknown;
746
+ "~standard": z.core.ZodStandardSchemaWithJSON<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
747
+ };
748
+ };
749
+ 'x-rentnerproxy-protocol-documents': string[];
750
+ 'x-rentnerproxy-compatibility': {
751
+ requests: string;
752
+ responses: string;
753
+ encoding: string;
754
+ evolution: string;
755
+ admission: string;
756
+ optionalMarketplace: string;
757
+ };
758
+ };
759
+ 'openapi.json': {
760
+ openapi: string;
761
+ info: {
762
+ title: string;
763
+ version: string;
764
+ description: string;
765
+ };
766
+ paths: Record<string, Partial<Record<"get" | "post", {
767
+ operationId: string;
768
+ summary: string;
769
+ description: string | undefined;
770
+ 'x-rentnerproxy-socket': import("./http-operations.ts").HttpSocket;
771
+ security: {
772
+ CoreCredential: never[];
773
+ }[] | {
774
+ AppCredential: never[];
775
+ }[];
776
+ parameters: {
777
+ $ref: string;
778
+ }[];
779
+ requestBody?: {
780
+ required: boolean;
781
+ content: {
782
+ 'application/json': {
783
+ schema: {
784
+ $ref: string;
785
+ };
786
+ };
787
+ };
788
+ } | undefined;
789
+ responses: Record<string, object>;
790
+ }>>>;
791
+ 'x-rentnerproxy-rpc-limits': Readonly<{
792
+ readonly maxJsonBytes: 1048576;
793
+ readonly maxJsonDepth: 64;
794
+ readonly maxListEntries: 100;
795
+ readonly defaultDeadlineMs: 10000;
796
+ readonly maxDeadlineMs: 30000;
797
+ }>;
798
+ 'x-rentnerproxy-compatibility': {
799
+ requests: string;
800
+ responses: string;
801
+ encoding: string;
802
+ evolution: string;
803
+ admission: string;
804
+ optionalMarketplace: string;
805
+ };
806
+ 'x-rentnerproxy-runtime-evidence': {
807
+ profile: string;
808
+ platformCommit: string;
809
+ workflowRun: string;
810
+ bunVersion: string;
811
+ highestReferencedGlibc: string;
812
+ testedTargets: {
813
+ target: string;
814
+ machine: string;
815
+ kernel: string;
816
+ libc: string;
817
+ elfAbi: string;
818
+ }[];
819
+ description: string;
820
+ };
821
+ components: {
822
+ securitySchemes: {
823
+ AppCredential: {
824
+ type: string;
825
+ scheme: string;
826
+ description: string;
827
+ };
828
+ CoreCredential: {
829
+ type: string;
830
+ scheme: string;
831
+ description: string;
832
+ };
833
+ };
834
+ parameters: {
835
+ Installation: {
836
+ name: string;
837
+ in: string;
838
+ required: boolean;
839
+ schema: {
840
+ $ref: string;
841
+ };
842
+ };
843
+ Generation: {
844
+ name: string;
845
+ in: string;
846
+ required: boolean;
847
+ description: string;
848
+ schema: {
849
+ $ref: string;
850
+ };
851
+ };
852
+ Delegation: {
853
+ name: string;
854
+ in: string;
855
+ description: string;
856
+ schema: {
857
+ type: string;
858
+ pattern: string;
859
+ };
860
+ };
861
+ IdempotencyKey: {
862
+ name: string;
863
+ in: string;
864
+ required: boolean;
865
+ description: string;
866
+ schema: {
867
+ $ref: string;
868
+ };
869
+ };
870
+ operationId: {
871
+ name: "domain" | "incidentKey" | "operationId" | "providerId" | "secretId";
872
+ in: string;
873
+ required: boolean;
874
+ schema: {
875
+ $ref: string;
876
+ };
877
+ };
878
+ providerId: {
879
+ name: "domain" | "incidentKey" | "operationId" | "providerId" | "secretId";
880
+ in: string;
881
+ required: boolean;
882
+ schema: {
883
+ $ref: string;
884
+ };
885
+ };
886
+ secretId: {
887
+ name: "domain" | "incidentKey" | "operationId" | "providerId" | "secretId";
888
+ in: string;
889
+ required: boolean;
890
+ schema: {
891
+ $ref: string;
892
+ };
893
+ };
894
+ incidentKey: {
895
+ name: "domain" | "incidentKey" | "operationId" | "providerId" | "secretId";
896
+ in: string;
897
+ required: boolean;
898
+ schema: {
899
+ $ref: string;
900
+ };
901
+ };
902
+ domain: {
903
+ name: "domain" | "incidentKey" | "operationId" | "providerId" | "secretId";
904
+ in: string;
905
+ required: boolean;
906
+ schema: {
907
+ $ref: string;
908
+ };
909
+ };
910
+ ResumeCursor: {
911
+ name: string;
912
+ in: string;
913
+ description: string;
914
+ schema: {
915
+ $ref: string;
916
+ };
917
+ };
918
+ };
919
+ schemas: {
920
+ [k: string]: {
921
+ $ref: string;
922
+ };
923
+ };
924
+ };
925
+ };
926
+ };