@rentnerproxy/app-contracts 0.0.0-stage → 1.0.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 (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -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/publication.d.ts +410 -0
  27. package/dist/publication.js +50 -0
  28. package/dist/runtime.d.ts +75 -0
  29. package/dist/runtime.js +88 -0
  30. package/dist/schemas.d.ts +926 -0
  31. package/dist/schemas.js +114 -0
  32. package/dist/ui-bridge.d.ts +81 -0
  33. package/dist/ui-bridge.js +92 -0
  34. package/dist/validation.d.ts +784 -0
  35. package/dist/validation.js +245 -0
  36. package/dist/wire.d.ts +31 -0
  37. package/dist/wire.js +54 -0
  38. package/fixtures.json +1094 -0
  39. package/http-fixtures.json +829 -0
  40. package/openapi.json +2557 -0
  41. package/package.json +56 -5
  42. package/protocol-fixtures.json +1804 -0
  43. package/upstream-probe-fixtures.json +852 -0
@@ -0,0 +1,90 @@
1
+ import { z } from 'zod';
2
+ export declare const capabilityRequest: z.ZodUnion<z.ZodObject<{
3
+ 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">;
4
+ scope: z.ZodLiteral<"dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts">;
5
+ }, z.core.$strict>[]>;
6
+ export declare const providerProfile: z.ZodEnum<{
7
+ crowdsec: "crowdsec";
8
+ dns: "dns";
9
+ "docker-discovery": "docker-discovery";
10
+ "load-balancer": "load-balancer";
11
+ monitoring: "monitoring";
12
+ oidc: "oidc";
13
+ }>;
14
+ export declare const appManifest: z.ZodObject<{
15
+ formatVersion: z.ZodLiteral<1>;
16
+ id: z.ZodString;
17
+ version: z.ZodString;
18
+ target: z.ZodEnum<{
19
+ "linux-amd64": "linux-amd64";
20
+ "linux-arm64": "linux-arm64";
21
+ }>;
22
+ source: z.ZodObject<{
23
+ repositoryId: z.ZodString;
24
+ commit: z.ZodString;
25
+ }, z.core.$strict>;
26
+ display: z.ZodObject<{
27
+ name: z.ZodString;
28
+ summary: z.ZodString;
29
+ license: z.ZodString;
30
+ }, z.core.$strict>;
31
+ requires: z.ZodObject<{
32
+ runtimeProfile: z.ZodLiteral<"rentnerproxy-linux-v1">;
33
+ platformApi: z.ZodString;
34
+ appProtocol: z.ZodString;
35
+ uiBridge: z.ZodOptional<z.ZodString>;
36
+ engineCapabilities: z.ZodArray<z.ZodEnum<{
37
+ "caddy.crowdsec.v1": "caddy.crowdsec.v1";
38
+ "caddy.load-balancing.v1": "caddy.load-balancing.v1";
39
+ }>>;
40
+ }, z.core.$strict>;
41
+ entrypoint: z.ZodLiteral<"bin/app">;
42
+ api: z.ZodLiteral<"api/openapi.json">;
43
+ configSchema: z.ZodOptional<z.ZodString>;
44
+ ui: z.ZodOptional<z.ZodObject<{
45
+ entrypoint: z.ZodString;
46
+ slots: z.ZodArray<z.ZodEnum<{
47
+ dashboardWidget: "dashboardWidget";
48
+ navigation: "navigation";
49
+ proxyHostTab: "proxyHostTab";
50
+ search: "search";
51
+ }>>;
52
+ }, z.core.$strict>>;
53
+ providers: z.ZodArray<z.ZodEnum<{
54
+ crowdsec: "crowdsec";
55
+ dns: "dns";
56
+ "docker-discovery": "docker-discovery";
57
+ "load-balancer": "load-balancer";
58
+ monitoring: "monitoring";
59
+ oidc: "oidc";
60
+ }>>;
61
+ capabilities: z.ZodArray<z.ZodUnion<z.ZodObject<{
62
+ 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">;
63
+ scope: z.ZodLiteral<"dnsZones" | "dockerConnections" | "identityProviders" | "installation" | "ownedEngineResources" | "ownedProxyHosts" | "proxyHosts">;
64
+ }, z.core.$strict>[]>>;
65
+ permissions: z.ZodArray<z.ZodString>;
66
+ data: z.ZodOptional<z.ZodObject<{
67
+ targetVersion: z.ZodNumber;
68
+ readVersions: z.ZodArray<z.ZodNumber>;
69
+ writeVersions: z.ZodArray<z.ZodNumber>;
70
+ migrations: z.ZodArray<z.ZodObject<{
71
+ fromVersion: z.ZodNumber;
72
+ toVersion: z.ZodNumber;
73
+ path: z.ZodString;
74
+ }, z.core.$strict>>;
75
+ }, z.core.$strict>>;
76
+ incidentCategories: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ id: z.ZodString;
78
+ name: z.ZodString;
79
+ resource: z.ZodEnum<{
80
+ none: "none";
81
+ proxyHost: "proxyHost";
82
+ }>;
83
+ }, z.core.$strict>>>;
84
+ resources: z.ZodObject<{
85
+ startupTimeoutMs: z.ZodNumber;
86
+ drainTimeoutMs: z.ZodNumber;
87
+ memoryMiB: z.ZodNumber;
88
+ processLimit: z.ZodNumber;
89
+ }, z.core.$strict>;
90
+ }, z.core.$strict>;
@@ -0,0 +1,106 @@
1
+ import { z } from 'zod';
2
+ import { appId, appVersion, displayName, formatVersion, packagePath, protocolRange, recordId, runtimeProfile, sourceIdentity, stateVersion, summary, target, } from './primitives.js';
3
+ const capabilities = [
4
+ ['proxy.hosts.read.v1', 'proxyHosts'],
5
+ ['proxy.hosts.manage-owned.v1', 'ownedProxyHosts'],
6
+ ['diagnostics.upstream.probe.v1', 'proxyHosts'],
7
+ ['diagnostics.upstream.probe.v2', 'proxyHosts'],
8
+ ['notifications.publish.v1', 'installation'],
9
+ ['notifications.incidents.manage.v1', 'installation'],
10
+ ['docker.inventory.observe.v1', 'dockerConnections'],
11
+ ['dns.challenge.manage.v1', 'dnsZones'],
12
+ ['engine.contributions.submit.v1', 'ownedEngineResources'],
13
+ ['identity.provider.register.v1', 'identityProviders'],
14
+ ['access.logs.read.v1', 'proxyHosts'],
15
+ ['security.enforcement.contribute.v1', 'ownedEngineResources'],
16
+ ];
17
+ export const capabilityRequest = z
18
+ .union(capabilities.map(([id, scope]) => z.strictObject({
19
+ id: z.literal(id),
20
+ scope: z.literal(scope),
21
+ })))
22
+ .describe('Requested resource scope type. Grants and resource IDs are assigned by the local administrator.');
23
+ export const providerProfile = z.enum([
24
+ 'monitoring',
25
+ 'docker-discovery',
26
+ 'load-balancer',
27
+ 'dns',
28
+ 'oidc',
29
+ 'crowdsec',
30
+ ]);
31
+ const requirements = z.strictObject({
32
+ runtimeProfile,
33
+ platformApi: protocolRange,
34
+ appProtocol: protocolRange,
35
+ uiBridge: protocolRange.optional(),
36
+ engineCapabilities: z
37
+ .array(z.enum(['caddy.load-balancing.v1', 'caddy.crowdsec.v1']))
38
+ .max(2),
39
+ });
40
+ const ui = z.strictObject({
41
+ entrypoint: packagePath('ui', 'html'),
42
+ slots: z
43
+ .array(z.enum(['navigation', 'proxyHostTab', 'dashboardWidget', 'search']))
44
+ .max(4),
45
+ });
46
+ const data = z
47
+ .strictObject({
48
+ targetVersion: stateVersion,
49
+ readVersions: z.array(stateVersion).min(1).max(64),
50
+ writeVersions: z.array(stateVersion).min(1).max(64),
51
+ migrations: z
52
+ .array(z.strictObject({
53
+ fromVersion: z.number().int().min(0).max(2_147_483_646),
54
+ toVersion: stateVersion,
55
+ path: packagePath('migrations', 'sql|json'),
56
+ }))
57
+ .max(64),
58
+ })
59
+ .describe('Write versions must be readable and include the target version. Order migrations by source version. Every declared forward migration must lead to the target, with one outgoing step per source version. Zero denotes fresh state.');
60
+ export const appManifest = z
61
+ .strictObject({
62
+ formatVersion,
63
+ id: appId,
64
+ version: appVersion,
65
+ target,
66
+ source: sourceIdentity,
67
+ display: z.strictObject({
68
+ name: displayName,
69
+ summary,
70
+ license: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9.+-]{0,63}$/),
71
+ }),
72
+ requires: requirements,
73
+ entrypoint: z.literal('bin/app'),
74
+ api: z.literal('api/openapi.json'),
75
+ configSchema: packagePath('schemas', 'json').optional(),
76
+ ui: ui.optional(),
77
+ providers: z.array(providerProfile).max(6),
78
+ capabilities: z.array(capabilityRequest).max(capabilities.length),
79
+ permissions: z
80
+ .array(z.string().regex(/^[a-z][a-z0-9-]{0,31}$/))
81
+ .max(64)
82
+ .describe('App-owned permission keys. The platform qualifies keys with the app ID.'),
83
+ data: data.optional(),
84
+ incidentCategories: z
85
+ .array(z.strictObject({
86
+ id: recordId.describe('App-local category ID. Keep it stable across releases: subscriptions refer to it together with the app ID.'),
87
+ name: z
88
+ .string()
89
+ .regex(/^[^\p{Cc}\p{Cs}\p{Cf}\p{Zl}\p{Zp}]{1,80}$/u)
90
+ .describe('Name users see when they subscribe and in notifications: one line of plain text without format characters.'),
91
+ resource: z
92
+ .enum(['proxyHost', 'none'])
93
+ .describe('What each incident of the category refers to. A proxyHost incident names a host the app may read or probe, and only users who may view that host receive it.'),
94
+ }))
95
+ .min(1)
96
+ .max(16)
97
+ .optional()
98
+ .describe('Incident categories the app opens with notifications.incidents.manage.v1. Users subscribe to each category. The SDK checks unique IDs, and that the categories and the capability are declared together.'),
99
+ resources: z.strictObject({
100
+ startupTimeoutMs: z.number().int().min(100).max(120_000),
101
+ drainTimeoutMs: z.number().int().min(100).max(120_000),
102
+ memoryMiB: z.number().int().min(16).max(16_384),
103
+ processLimit: z.number().int().min(1).max(64),
104
+ }),
105
+ })
106
+ .describe('app.json inside a self-contained tar.zst. Omitted optional blocks are absent, never null. Runtime compatibility, safe extraction, and signed approval are independent checks.');
@@ -0,0 +1,282 @@
1
+ import { z } from 'zod';
2
+ export declare const jsonValue: z.ZodJSONSchema;
3
+ export declare const appApiPayload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
4
+ export declare const platformApiSchemas: {
5
+ LegacyHandoffDomain: z.ZodEnum<{
6
+ crowdsec: "crowdsec";
7
+ dns: "dns";
8
+ "docker-discovery": "docker-discovery";
9
+ "load-balancer": "load-balancer";
10
+ monitoring: "monitoring";
11
+ oidc: "oidc";
12
+ }>;
13
+ LegacyHandoffStatus: z.ZodDiscriminatedUnion<[z.ZodObject<{
14
+ domain: z.ZodEnum<{
15
+ crowdsec: "crowdsec";
16
+ dns: "dns";
17
+ "docker-discovery": "docker-discovery";
18
+ "load-balancer": "load-balancer";
19
+ monitoring: "monitoring";
20
+ oidc: "oidc";
21
+ }>;
22
+ state: z.ZodLiteral<"platform">;
23
+ }, z.core.$strict>, z.ZodObject<{
24
+ domain: z.ZodEnum<{
25
+ crowdsec: "crowdsec";
26
+ dns: "dns";
27
+ "docker-discovery": "docker-discovery";
28
+ "load-balancer": "load-balancer";
29
+ monitoring: "monitoring";
30
+ oidc: "oidc";
31
+ }>;
32
+ state: z.ZodLiteral<"exported">;
33
+ digest: z.ZodString;
34
+ partCount: z.ZodNumber;
35
+ }, z.core.$strict>, z.ZodObject<{
36
+ domain: z.ZodEnum<{
37
+ crowdsec: "crowdsec";
38
+ dns: "dns";
39
+ "docker-discovery": "docker-discovery";
40
+ "load-balancer": "load-balancer";
41
+ monitoring: "monitoring";
42
+ oidc: "oidc";
43
+ }>;
44
+ state: z.ZodLiteral<"committed">;
45
+ digest: z.ZodString;
46
+ }, z.core.$strict>], "state">;
47
+ LegacyHandoffBeginResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
48
+ domain: z.ZodEnum<{
49
+ crowdsec: "crowdsec";
50
+ dns: "dns";
51
+ "docker-discovery": "docker-discovery";
52
+ "load-balancer": "load-balancer";
53
+ monitoring: "monitoring";
54
+ oidc: "oidc";
55
+ }>;
56
+ state: z.ZodLiteral<"exported">;
57
+ digest: z.ZodString;
58
+ partCount: z.ZodNumber;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ domain: z.ZodEnum<{
61
+ crowdsec: "crowdsec";
62
+ dns: "dns";
63
+ "docker-discovery": "docker-discovery";
64
+ "load-balancer": "load-balancer";
65
+ monitoring: "monitoring";
66
+ oidc: "oidc";
67
+ }>;
68
+ state: z.ZodLiteral<"committed">;
69
+ digest: z.ZodString;
70
+ }, z.core.$strict>], "state">;
71
+ LegacyHandoffPartRequest: z.ZodObject<{
72
+ digest: z.ZodString;
73
+ sequence: z.ZodNumber;
74
+ }, z.core.$strict>;
75
+ LegacyHandoffPart: z.ZodObject<{
76
+ sequence: z.ZodNumber;
77
+ part: z.ZodJSONSchema;
78
+ }, z.core.$strict>;
79
+ LegacyHandoffCommit: z.ZodObject<{
80
+ digest: z.ZodString;
81
+ }, z.core.$strict>;
82
+ LegacyHandoffCommitResult: z.ZodObject<{
83
+ domain: z.ZodEnum<{
84
+ crowdsec: "crowdsec";
85
+ dns: "dns";
86
+ "docker-discovery": "docker-discovery";
87
+ "load-balancer": "load-balancer";
88
+ monitoring: "monitoring";
89
+ oidc: "oidc";
90
+ }>;
91
+ state: z.ZodLiteral<"committed">;
92
+ digest: z.ZodString;
93
+ }, z.core.$strict>;
94
+ AppApiPayload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
95
+ ProxyHostQuery: z.ZodObject<{
96
+ limit: z.ZodNumber;
97
+ cursor: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strict>;
99
+ ProxyHostPage: z.ZodObject<{
100
+ hosts: z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ revision: z.ZodString;
103
+ hostname: z.ZodString;
104
+ enabled: z.ZodOptional<z.ZodBoolean>;
105
+ domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
+ probeRevision: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$loose>>;
108
+ nextCursor: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$loose>;
110
+ OwnedProxyHostChange: z.ZodDiscriminatedUnion<[z.ZodObject<{
111
+ action: z.ZodLiteral<"upsert">;
112
+ hostId: z.ZodString;
113
+ expectedRevision: z.ZodNullable<z.ZodString>;
114
+ hostname: z.ZodString;
115
+ upstream: z.ZodObject<{
116
+ scheme: z.ZodEnum<{
117
+ http: "http";
118
+ https: "https";
119
+ }>;
120
+ address: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6, z.ZodString]>;
121
+ port: z.ZodNumber;
122
+ }, z.core.$strict>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ action: z.ZodLiteral<"remove">;
125
+ hostId: z.ZodString;
126
+ expectedRevision: z.ZodString;
127
+ }, z.core.$strict>], "action">;
128
+ UpstreamProbe: z.ZodObject<{
129
+ hostId: z.ZodString;
130
+ timeoutMs: z.ZodNumber;
131
+ }, z.core.$strict>;
132
+ UpstreamProbeResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
133
+ outcome: z.ZodLiteral<"reachable">;
134
+ durationMs: z.ZodNumber;
135
+ }, z.core.$loose>, z.ZodObject<{
136
+ outcome: z.ZodEnum<{
137
+ timedOut: "timedOut";
138
+ unreachable: "unreachable";
139
+ }>;
140
+ }, z.core.$loose>], "outcome">;
141
+ UpstreamProbeBatch: z.ZodObject<{
142
+ probes: z.ZodArray<z.ZodObject<{
143
+ hostId: z.ZodString;
144
+ domain: z.ZodString;
145
+ timeoutMs: z.ZodNumber;
146
+ }, z.core.$strict>>;
147
+ }, z.core.$strict>;
148
+ UpstreamProbeOutcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ hostId: z.ZodString;
150
+ domain: z.ZodString;
151
+ outcome: z.ZodLiteral<"probed">;
152
+ probeRevision: z.ZodString;
153
+ durationMs: z.ZodNumber;
154
+ httpStatus: z.ZodNullable<z.ZodNumber>;
155
+ failure: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
156
+ stage: z.ZodLiteral<"configuration">;
157
+ code: z.ZodEnum<{
158
+ configuration_changed: "configuration_changed";
159
+ configuration_stale: "configuration_stale";
160
+ host_not_active: "host_not_active";
161
+ runtime_unavailable: "runtime_unavailable";
162
+ }>;
163
+ }, z.core.$loose>, z.ZodObject<{
164
+ stage: z.ZodLiteral<"tls">;
165
+ code: z.ZodLiteral<"tls_failed">;
166
+ }, z.core.$loose>, z.ZodObject<{
167
+ stage: z.ZodLiteral<"upstream">;
168
+ code: z.ZodEnum<{
169
+ access_denied: "access_denied";
170
+ redirect_host: "redirect_host";
171
+ redirect_not_followed: "redirect_not_followed";
172
+ skipped: "skipped";
173
+ unexpected_status: "unexpected_status";
174
+ upstream_dns_failed: "upstream_dns_failed";
175
+ upstream_error: "upstream_error";
176
+ upstream_responded: "upstream_responded";
177
+ upstream_timeout: "upstream_timeout";
178
+ upstream_unreachable: "upstream_unreachable";
179
+ wildcard_domain: "wildcard_domain";
180
+ }>;
181
+ }, z.core.$loose>], "stage">>;
182
+ }, z.core.$loose>, z.ZodObject<{
183
+ hostId: z.ZodString;
184
+ domain: z.ZodString;
185
+ outcome: z.ZodEnum<{
186
+ busy: "busy";
187
+ configurationChanged: "configurationChanged";
188
+ domainNotFound: "domainNotFound";
189
+ hostDisabled: "hostDisabled";
190
+ hostRemoved: "hostRemoved";
191
+ rateLimited: "rateLimited";
192
+ scopeDenied: "scopeDenied";
193
+ unavailable: "unavailable";
194
+ }>;
195
+ }, z.core.$loose>], "outcome">;
196
+ UpstreamProbeBatchResult: z.ZodObject<{
197
+ results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
198
+ hostId: z.ZodString;
199
+ domain: z.ZodString;
200
+ outcome: z.ZodLiteral<"probed">;
201
+ probeRevision: z.ZodString;
202
+ durationMs: z.ZodNumber;
203
+ httpStatus: z.ZodNullable<z.ZodNumber>;
204
+ failure: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
205
+ stage: z.ZodLiteral<"configuration">;
206
+ code: z.ZodEnum<{
207
+ configuration_changed: "configuration_changed";
208
+ configuration_stale: "configuration_stale";
209
+ host_not_active: "host_not_active";
210
+ runtime_unavailable: "runtime_unavailable";
211
+ }>;
212
+ }, z.core.$loose>, z.ZodObject<{
213
+ stage: z.ZodLiteral<"tls">;
214
+ code: z.ZodLiteral<"tls_failed">;
215
+ }, z.core.$loose>, z.ZodObject<{
216
+ stage: z.ZodLiteral<"upstream">;
217
+ code: z.ZodEnum<{
218
+ access_denied: "access_denied";
219
+ redirect_host: "redirect_host";
220
+ redirect_not_followed: "redirect_not_followed";
221
+ skipped: "skipped";
222
+ unexpected_status: "unexpected_status";
223
+ upstream_dns_failed: "upstream_dns_failed";
224
+ upstream_error: "upstream_error";
225
+ upstream_responded: "upstream_responded";
226
+ upstream_timeout: "upstream_timeout";
227
+ upstream_unreachable: "upstream_unreachable";
228
+ wildcard_domain: "wildcard_domain";
229
+ }>;
230
+ }, z.core.$loose>], "stage">>;
231
+ }, z.core.$loose>, z.ZodObject<{
232
+ hostId: z.ZodString;
233
+ domain: z.ZodString;
234
+ outcome: z.ZodEnum<{
235
+ busy: "busy";
236
+ configurationChanged: "configurationChanged";
237
+ domainNotFound: "domainNotFound";
238
+ hostDisabled: "hostDisabled";
239
+ hostRemoved: "hostRemoved";
240
+ rateLimited: "rateLimited";
241
+ scopeDenied: "scopeDenied";
242
+ unavailable: "unavailable";
243
+ }>;
244
+ }, z.core.$loose>], "outcome">>;
245
+ }, z.core.$loose>;
246
+ AppNotification: z.ZodObject<{
247
+ category: z.ZodString;
248
+ severity: z.ZodEnum<{
249
+ error: "error";
250
+ info: "info";
251
+ warning: "warning";
252
+ }>;
253
+ title: z.ZodString;
254
+ message: z.ZodString;
255
+ }, z.core.$strict>;
256
+ AppIncidentChange: z.ZodDiscriminatedUnion<[z.ZodObject<{
257
+ status: z.ZodLiteral<"open">;
258
+ category: z.ZodString;
259
+ severity: z.ZodEnum<{
260
+ critical: "critical";
261
+ error: "error";
262
+ warning: "warning";
263
+ }>;
264
+ title: z.ZodString;
265
+ message: z.ZodString;
266
+ resourceId: z.ZodOptional<z.ZodString>;
267
+ }, z.core.$strict>, z.ZodObject<{
268
+ status: z.ZodLiteral<"resolved">;
269
+ }, z.core.$strict>], "status">;
270
+ AppAuditEvent: z.ZodObject<{
271
+ action: z.ZodString;
272
+ outcome: z.ZodEnum<{
273
+ failed: "failed";
274
+ rejected: "rejected";
275
+ succeeded: "succeeded";
276
+ }>;
277
+ resourceId: z.ZodOptional<z.ZodString>;
278
+ }, z.core.$strict>;
279
+ AppSecret: z.ZodObject<{
280
+ value: z.ZodString;
281
+ }, z.core.$strict>;
282
+ };