@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,784 @@
1
+ import type { ContractErrorCode, ProtocolDocument, ProtocolDocumentName } from './Types/contract.types.ts';
2
+ export declare class ContractError extends Error {
3
+ readonly code: ContractErrorCode;
4
+ constructor(code: ContractErrorCode, message: string);
5
+ }
6
+ /** Validate already-decoded wire JSON and retain its application payload and open response fields. */
7
+ export declare function parseProtocolDocument<Name extends ProtocolDocumentName>(name: Name, input: unknown): ProtocolDocument<Name>;
8
+ export declare function parseAppManifest(input: unknown): {
9
+ formatVersion: 1;
10
+ id: string;
11
+ version: string;
12
+ target: "linux-amd64" | "linux-arm64";
13
+ source: {
14
+ repositoryId: string;
15
+ commit: string;
16
+ };
17
+ display: {
18
+ name: string;
19
+ summary: string;
20
+ license: string;
21
+ };
22
+ requires: {
23
+ runtimeProfile: "rentnerproxy-linux-v1";
24
+ platformApi: string;
25
+ appProtocol: string;
26
+ uiBridge?: string | undefined;
27
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
28
+ };
29
+ entrypoint: "bin/app";
30
+ api: "api/openapi.json";
31
+ configSchema?: string | undefined;
32
+ ui?: {
33
+ entrypoint: string;
34
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
35
+ } | undefined;
36
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
37
+ capabilities: {
38
+ id: "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";
39
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
40
+ }[];
41
+ permissions: string[];
42
+ data?: {
43
+ targetVersion: number;
44
+ readVersions: number[];
45
+ writeVersions: number[];
46
+ migrations: {
47
+ fromVersion: number;
48
+ toVersion: number;
49
+ path: string;
50
+ }[];
51
+ } | undefined;
52
+ incidentCategories?: {
53
+ id: string;
54
+ name: string;
55
+ resource: "none" | "proxyHost";
56
+ }[] | undefined;
57
+ resources: {
58
+ startupTimeoutMs: number;
59
+ drainTimeoutMs: number;
60
+ memoryMiB: number;
61
+ processLimit: number;
62
+ };
63
+ };
64
+ export interface ManifestEnvironment {
65
+ readonly target: string;
66
+ readonly runtimeProfile: string;
67
+ readonly platformApi: string;
68
+ readonly appProtocol: string;
69
+ readonly uiBridge?: string;
70
+ readonly engineCapabilities: readonly string[];
71
+ }
72
+ /** Compare requirements with the capabilities of the trusted local runtime. */
73
+ export declare function checkManifestCompatibility(input: unknown, environment: ManifestEnvironment): {
74
+ formatVersion: 1;
75
+ id: string;
76
+ version: string;
77
+ target: "linux-amd64" | "linux-arm64";
78
+ source: {
79
+ repositoryId: string;
80
+ commit: string;
81
+ };
82
+ display: {
83
+ name: string;
84
+ summary: string;
85
+ license: string;
86
+ };
87
+ requires: {
88
+ runtimeProfile: "rentnerproxy-linux-v1";
89
+ platformApi: string;
90
+ appProtocol: string;
91
+ uiBridge?: string | undefined;
92
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
93
+ };
94
+ entrypoint: "bin/app";
95
+ api: "api/openapi.json";
96
+ configSchema?: string | undefined;
97
+ ui?: {
98
+ entrypoint: string;
99
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
100
+ } | undefined;
101
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
102
+ capabilities: {
103
+ id: "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";
104
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
105
+ }[];
106
+ permissions: string[];
107
+ data?: {
108
+ targetVersion: number;
109
+ readVersions: number[];
110
+ writeVersions: number[];
111
+ migrations: {
112
+ fromVersion: number;
113
+ toVersion: number;
114
+ path: string;
115
+ }[];
116
+ } | undefined;
117
+ incidentCategories?: {
118
+ id: string;
119
+ name: string;
120
+ resource: "none" | "proxyHost";
121
+ }[] | undefined;
122
+ resources: {
123
+ startupTimeoutMs: number;
124
+ drainTimeoutMs: number;
125
+ memoryMiB: number;
126
+ processLimit: number;
127
+ };
128
+ };
129
+ export declare function parseCatalog(input: unknown): {
130
+ formatVersion: 1;
131
+ revision: number;
132
+ releases: {
133
+ appId: string;
134
+ version: string;
135
+ source: {
136
+ repositoryId: string;
137
+ commit: string;
138
+ };
139
+ publisher: {
140
+ namespace: string;
141
+ name: string;
142
+ };
143
+ packages: {
144
+ manifest: {
145
+ formatVersion: 1;
146
+ id: string;
147
+ version: string;
148
+ target: "linux-amd64" | "linux-arm64";
149
+ source: {
150
+ repositoryId: string;
151
+ commit: string;
152
+ };
153
+ display: {
154
+ name: string;
155
+ summary: string;
156
+ license: string;
157
+ };
158
+ requires: {
159
+ runtimeProfile: "rentnerproxy-linux-v1";
160
+ platformApi: string;
161
+ appProtocol: string;
162
+ uiBridge?: string | undefined;
163
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
164
+ };
165
+ entrypoint: "bin/app";
166
+ api: "api/openapi.json";
167
+ configSchema?: string | undefined;
168
+ ui?: {
169
+ entrypoint: string;
170
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
171
+ } | undefined;
172
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
173
+ capabilities: {
174
+ id: "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";
175
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
176
+ }[];
177
+ permissions: string[];
178
+ data?: {
179
+ targetVersion: number;
180
+ readVersions: number[];
181
+ writeVersions: number[];
182
+ migrations: {
183
+ fromVersion: number;
184
+ toVersion: number;
185
+ path: string;
186
+ }[];
187
+ } | undefined;
188
+ incidentCategories?: {
189
+ id: string;
190
+ name: string;
191
+ resource: "none" | "proxyHost";
192
+ }[] | undefined;
193
+ resources: {
194
+ startupTimeoutMs: number;
195
+ drainTimeoutMs: number;
196
+ memoryMiB: number;
197
+ processLimit: number;
198
+ };
199
+ };
200
+ archive: {
201
+ sha256: string;
202
+ sizeBytes: number;
203
+ };
204
+ manifestSha256: string;
205
+ sbom: {
206
+ sha256: string;
207
+ sizeBytes: number;
208
+ };
209
+ provenance: {
210
+ sha256: string;
211
+ sizeBytes: number;
212
+ };
213
+ }[];
214
+ icon?: {
215
+ format: "png" | "webp";
216
+ sha256: string;
217
+ sizeBytes: number;
218
+ } | undefined;
219
+ notes?: string | undefined;
220
+ }[];
221
+ revocations: {
222
+ appId: string;
223
+ version: string;
224
+ revokedAt: string;
225
+ reason: "invalidPublication" | "security" | "withdrawn";
226
+ }[];
227
+ };
228
+ export declare function parseCandidate(input: unknown): {
229
+ formatVersion: 1;
230
+ id: string;
231
+ revision: number;
232
+ source: {
233
+ repositoryId: string;
234
+ commit: string;
235
+ };
236
+ build: {
237
+ repositoryId: string;
238
+ workflowCommit: string;
239
+ workflowPath: string;
240
+ runId: string;
241
+ attempt: number;
242
+ };
243
+ evidence: {
244
+ revision: number;
245
+ report: {
246
+ sha256: string;
247
+ sizeBytes: number;
248
+ };
249
+ result: "passed";
250
+ };
251
+ release: {
252
+ appId: string;
253
+ version: string;
254
+ source: {
255
+ repositoryId: string;
256
+ commit: string;
257
+ };
258
+ publisher: {
259
+ namespace: string;
260
+ name: string;
261
+ };
262
+ packages: {
263
+ manifest: {
264
+ formatVersion: 1;
265
+ id: string;
266
+ version: string;
267
+ target: "linux-amd64" | "linux-arm64";
268
+ source: {
269
+ repositoryId: string;
270
+ commit: string;
271
+ };
272
+ display: {
273
+ name: string;
274
+ summary: string;
275
+ license: string;
276
+ };
277
+ requires: {
278
+ runtimeProfile: "rentnerproxy-linux-v1";
279
+ platformApi: string;
280
+ appProtocol: string;
281
+ uiBridge?: string | undefined;
282
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
283
+ };
284
+ entrypoint: "bin/app";
285
+ api: "api/openapi.json";
286
+ configSchema?: string | undefined;
287
+ ui?: {
288
+ entrypoint: string;
289
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
290
+ } | undefined;
291
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
292
+ capabilities: {
293
+ id: "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";
294
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
295
+ }[];
296
+ permissions: string[];
297
+ data?: {
298
+ targetVersion: number;
299
+ readVersions: number[];
300
+ writeVersions: number[];
301
+ migrations: {
302
+ fromVersion: number;
303
+ toVersion: number;
304
+ path: string;
305
+ }[];
306
+ } | undefined;
307
+ incidentCategories?: {
308
+ id: string;
309
+ name: string;
310
+ resource: "none" | "proxyHost";
311
+ }[] | undefined;
312
+ resources: {
313
+ startupTimeoutMs: number;
314
+ drainTimeoutMs: number;
315
+ memoryMiB: number;
316
+ processLimit: number;
317
+ };
318
+ };
319
+ archive: {
320
+ sha256: string;
321
+ sizeBytes: number;
322
+ };
323
+ manifestSha256: string;
324
+ sbom: {
325
+ sha256: string;
326
+ sizeBytes: number;
327
+ };
328
+ provenance: {
329
+ sha256: string;
330
+ sizeBytes: number;
331
+ };
332
+ }[];
333
+ icon?: {
334
+ format: "png" | "webp";
335
+ sha256: string;
336
+ sizeBytes: number;
337
+ } | undefined;
338
+ notes?: string | undefined;
339
+ };
340
+ };
341
+ export declare function parseApproval(input: unknown): {
342
+ formatVersion: 1;
343
+ id: string;
344
+ revision: number;
345
+ actorId: string;
346
+ approvedAt: string;
347
+ candidate: {
348
+ formatVersion: 1;
349
+ id: string;
350
+ revision: number;
351
+ source: {
352
+ repositoryId: string;
353
+ commit: string;
354
+ };
355
+ build: {
356
+ repositoryId: string;
357
+ workflowCommit: string;
358
+ workflowPath: string;
359
+ runId: string;
360
+ attempt: number;
361
+ };
362
+ evidence: {
363
+ revision: number;
364
+ report: {
365
+ sha256: string;
366
+ sizeBytes: number;
367
+ };
368
+ result: "passed";
369
+ };
370
+ release: {
371
+ appId: string;
372
+ version: string;
373
+ source: {
374
+ repositoryId: string;
375
+ commit: string;
376
+ };
377
+ publisher: {
378
+ namespace: string;
379
+ name: string;
380
+ };
381
+ packages: {
382
+ manifest: {
383
+ formatVersion: 1;
384
+ id: string;
385
+ version: string;
386
+ target: "linux-amd64" | "linux-arm64";
387
+ source: {
388
+ repositoryId: string;
389
+ commit: string;
390
+ };
391
+ display: {
392
+ name: string;
393
+ summary: string;
394
+ license: string;
395
+ };
396
+ requires: {
397
+ runtimeProfile: "rentnerproxy-linux-v1";
398
+ platformApi: string;
399
+ appProtocol: string;
400
+ uiBridge?: string | undefined;
401
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
402
+ };
403
+ entrypoint: "bin/app";
404
+ api: "api/openapi.json";
405
+ configSchema?: string | undefined;
406
+ ui?: {
407
+ entrypoint: string;
408
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
409
+ } | undefined;
410
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
411
+ capabilities: {
412
+ id: "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";
413
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
414
+ }[];
415
+ permissions: string[];
416
+ data?: {
417
+ targetVersion: number;
418
+ readVersions: number[];
419
+ writeVersions: number[];
420
+ migrations: {
421
+ fromVersion: number;
422
+ toVersion: number;
423
+ path: string;
424
+ }[];
425
+ } | undefined;
426
+ incidentCategories?: {
427
+ id: string;
428
+ name: string;
429
+ resource: "none" | "proxyHost";
430
+ }[] | undefined;
431
+ resources: {
432
+ startupTimeoutMs: number;
433
+ drainTimeoutMs: number;
434
+ memoryMiB: number;
435
+ processLimit: number;
436
+ };
437
+ };
438
+ archive: {
439
+ sha256: string;
440
+ sizeBytes: number;
441
+ };
442
+ manifestSha256: string;
443
+ sbom: {
444
+ sha256: string;
445
+ sizeBytes: number;
446
+ };
447
+ provenance: {
448
+ sha256: string;
449
+ sizeBytes: number;
450
+ };
451
+ }[];
452
+ icon?: {
453
+ format: "png" | "webp";
454
+ sha256: string;
455
+ sizeBytes: number;
456
+ } | undefined;
457
+ notes?: string | undefined;
458
+ };
459
+ };
460
+ };
461
+ export declare function parsePublication(input: unknown): {
462
+ formatVersion: 1;
463
+ id: string;
464
+ approvalId: string;
465
+ approvalRevision: number;
466
+ catalogRevision: number;
467
+ publishedAt: string;
468
+ run: {
469
+ repositoryId: string;
470
+ workflowCommit: string;
471
+ workflowPath: string;
472
+ runId: string;
473
+ attempt: number;
474
+ };
475
+ release: {
476
+ appId: string;
477
+ version: string;
478
+ source: {
479
+ repositoryId: string;
480
+ commit: string;
481
+ };
482
+ publisher: {
483
+ namespace: string;
484
+ name: string;
485
+ };
486
+ packages: {
487
+ manifest: {
488
+ formatVersion: 1;
489
+ id: string;
490
+ version: string;
491
+ target: "linux-amd64" | "linux-arm64";
492
+ source: {
493
+ repositoryId: string;
494
+ commit: string;
495
+ };
496
+ display: {
497
+ name: string;
498
+ summary: string;
499
+ license: string;
500
+ };
501
+ requires: {
502
+ runtimeProfile: "rentnerproxy-linux-v1";
503
+ platformApi: string;
504
+ appProtocol: string;
505
+ uiBridge?: string | undefined;
506
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
507
+ };
508
+ entrypoint: "bin/app";
509
+ api: "api/openapi.json";
510
+ configSchema?: string | undefined;
511
+ ui?: {
512
+ entrypoint: string;
513
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
514
+ } | undefined;
515
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
516
+ capabilities: {
517
+ id: "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";
518
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
519
+ }[];
520
+ permissions: string[];
521
+ data?: {
522
+ targetVersion: number;
523
+ readVersions: number[];
524
+ writeVersions: number[];
525
+ migrations: {
526
+ fromVersion: number;
527
+ toVersion: number;
528
+ path: string;
529
+ }[];
530
+ } | undefined;
531
+ incidentCategories?: {
532
+ id: string;
533
+ name: string;
534
+ resource: "none" | "proxyHost";
535
+ }[] | undefined;
536
+ resources: {
537
+ startupTimeoutMs: number;
538
+ drainTimeoutMs: number;
539
+ memoryMiB: number;
540
+ processLimit: number;
541
+ };
542
+ };
543
+ archive: {
544
+ sha256: string;
545
+ sizeBytes: number;
546
+ };
547
+ manifestSha256: string;
548
+ sbom: {
549
+ sha256: string;
550
+ sizeBytes: number;
551
+ };
552
+ provenance: {
553
+ sha256: string;
554
+ sizeBytes: number;
555
+ };
556
+ }[];
557
+ icon?: {
558
+ format: "png" | "webp";
559
+ sha256: string;
560
+ sizeBytes: number;
561
+ } | undefined;
562
+ notes?: string | undefined;
563
+ };
564
+ };
565
+ export declare function checkApprovalBinding(candidateInput: unknown, approvalInput: unknown): {
566
+ appId: string;
567
+ version: string;
568
+ source: {
569
+ repositoryId: string;
570
+ commit: string;
571
+ };
572
+ publisher: {
573
+ namespace: string;
574
+ name: string;
575
+ };
576
+ packages: {
577
+ manifest: {
578
+ formatVersion: 1;
579
+ id: string;
580
+ version: string;
581
+ target: "linux-amd64" | "linux-arm64";
582
+ source: {
583
+ repositoryId: string;
584
+ commit: string;
585
+ };
586
+ display: {
587
+ name: string;
588
+ summary: string;
589
+ license: string;
590
+ };
591
+ requires: {
592
+ runtimeProfile: "rentnerproxy-linux-v1";
593
+ platformApi: string;
594
+ appProtocol: string;
595
+ uiBridge?: string | undefined;
596
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
597
+ };
598
+ entrypoint: "bin/app";
599
+ api: "api/openapi.json";
600
+ configSchema?: string | undefined;
601
+ ui?: {
602
+ entrypoint: string;
603
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
604
+ } | undefined;
605
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
606
+ capabilities: {
607
+ id: "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";
608
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
609
+ }[];
610
+ permissions: string[];
611
+ data?: {
612
+ targetVersion: number;
613
+ readVersions: number[];
614
+ writeVersions: number[];
615
+ migrations: {
616
+ fromVersion: number;
617
+ toVersion: number;
618
+ path: string;
619
+ }[];
620
+ } | undefined;
621
+ incidentCategories?: {
622
+ id: string;
623
+ name: string;
624
+ resource: "none" | "proxyHost";
625
+ }[] | undefined;
626
+ resources: {
627
+ startupTimeoutMs: number;
628
+ drainTimeoutMs: number;
629
+ memoryMiB: number;
630
+ processLimit: number;
631
+ };
632
+ };
633
+ archive: {
634
+ sha256: string;
635
+ sizeBytes: number;
636
+ };
637
+ manifestSha256: string;
638
+ sbom: {
639
+ sha256: string;
640
+ sizeBytes: number;
641
+ };
642
+ provenance: {
643
+ sha256: string;
644
+ sizeBytes: number;
645
+ };
646
+ }[];
647
+ icon?: {
648
+ format: "png" | "webp";
649
+ sha256: string;
650
+ sizeBytes: number;
651
+ } | undefined;
652
+ notes?: string | undefined;
653
+ };
654
+ export declare function checkPublicationBinding(approvalInput: unknown, publicationInput: unknown, catalogInput: unknown): {
655
+ formatVersion: 1;
656
+ id: string;
657
+ approvalId: string;
658
+ approvalRevision: number;
659
+ catalogRevision: number;
660
+ publishedAt: string;
661
+ run: {
662
+ repositoryId: string;
663
+ workflowCommit: string;
664
+ workflowPath: string;
665
+ runId: string;
666
+ attempt: number;
667
+ };
668
+ release: {
669
+ appId: string;
670
+ version: string;
671
+ source: {
672
+ repositoryId: string;
673
+ commit: string;
674
+ };
675
+ publisher: {
676
+ namespace: string;
677
+ name: string;
678
+ };
679
+ packages: {
680
+ manifest: {
681
+ formatVersion: 1;
682
+ id: string;
683
+ version: string;
684
+ target: "linux-amd64" | "linux-arm64";
685
+ source: {
686
+ repositoryId: string;
687
+ commit: string;
688
+ };
689
+ display: {
690
+ name: string;
691
+ summary: string;
692
+ license: string;
693
+ };
694
+ requires: {
695
+ runtimeProfile: "rentnerproxy-linux-v1";
696
+ platformApi: string;
697
+ appProtocol: string;
698
+ uiBridge?: string | undefined;
699
+ engineCapabilities: ("caddy.crowdsec.v1" | "caddy.load-balancing.v1")[];
700
+ };
701
+ entrypoint: "bin/app";
702
+ api: "api/openapi.json";
703
+ configSchema?: string | undefined;
704
+ ui?: {
705
+ entrypoint: string;
706
+ slots: ("dashboardWidget" | "navigation" | "proxyHostTab" | "search")[];
707
+ } | undefined;
708
+ providers: ("crowdsec" | "dns" | "docker-discovery" | "load-balancer" | "monitoring" | "oidc")[];
709
+ capabilities: {
710
+ id: "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";
711
+ scope: "dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts";
712
+ }[];
713
+ permissions: string[];
714
+ data?: {
715
+ targetVersion: number;
716
+ readVersions: number[];
717
+ writeVersions: number[];
718
+ migrations: {
719
+ fromVersion: number;
720
+ toVersion: number;
721
+ path: string;
722
+ }[];
723
+ } | undefined;
724
+ incidentCategories?: {
725
+ id: string;
726
+ name: string;
727
+ resource: "none" | "proxyHost";
728
+ }[] | undefined;
729
+ resources: {
730
+ startupTimeoutMs: number;
731
+ drainTimeoutMs: number;
732
+ memoryMiB: number;
733
+ processLimit: number;
734
+ };
735
+ };
736
+ archive: {
737
+ sha256: string;
738
+ sizeBytes: number;
739
+ };
740
+ manifestSha256: string;
741
+ sbom: {
742
+ sha256: string;
743
+ sizeBytes: number;
744
+ };
745
+ provenance: {
746
+ sha256: string;
747
+ sizeBytes: number;
748
+ };
749
+ }[];
750
+ icon?: {
751
+ format: "png" | "webp";
752
+ sha256: string;
753
+ sizeBytes: number;
754
+ } | undefined;
755
+ notes?: string | undefined;
756
+ };
757
+ };
758
+ /** Resolve download locations and byte identities from a trusted catalog. */
759
+ export declare function packageReleaseAssets(input: unknown): {
760
+ archive: {
761
+ sha256: string;
762
+ sizeBytes: number;
763
+ url: string;
764
+ };
765
+ manifestSha256: string;
766
+ sbom: {
767
+ sha256: string;
768
+ sizeBytes: number;
769
+ url: string;
770
+ };
771
+ provenance: {
772
+ sha256: string;
773
+ sizeBytes: number;
774
+ url: string;
775
+ };
776
+ };
777
+ export declare function packageDownloadUrl(input: unknown): string;
778
+ /** Resolve the icon target and byte identity from a trusted catalog. */
779
+ export declare function catalogIconTarget(input: unknown): {
780
+ path: string;
781
+ sha256: string;
782
+ sizeBytes: number;
783
+ };
784
+ export declare function catalogIconPath(input: unknown): string;